Fix options modal and launcher on Windows (#189)

* fix: proton paths fetch on windows

* fix: fetch_proton_paths on windows

* fix: native launcher
This commit is contained in:
DecDuck
2026-02-26 01:59:29 +00:00
committed by GitHub
parent 84fa70f436
commit b3bb3133d7
4 changed files with 193 additions and 191 deletions
@@ -17,7 +17,7 @@ impl ProcessHandler for NativeGameLauncher {
_current_dir: &str,
_database: &Database,
) -> Result<String, ProcessError> {
Ok(format!("\"{}\"", launch_command))
Ok(launch_command)
}
fn valid_for_platform(&self, _db: &Database, _target: &Platform) -> bool {
@@ -276,7 +276,7 @@ impl ProcessManager<'_> {
debug!(
"Launching process {:?} with version {:?}",
&game_id,
db_lock.applications.game_versions.get(&game_id)
db_lock.applications.game_versions.get(version_name)
);
let game_version = db_lock
@@ -285,7 +285,6 @@ impl ProcessManager<'_> {
.get(version_name)
.ok_or(ProcessError::InvalidVersion)?;
// TODO: refactor this path with open_process_logs
let game_log_folder = &self.get_log_dir(game_id);
create_dir_all(game_log_folder)?;