diff --git a/main/components/GameOptions/Launch.vue b/main/components/GameOptions/Launch.vue
index 69101fe..f7aac79 100644
--- a/main/components/GameOptions/Launch.vue
+++ b/main/components/GameOptions/Launch.vue
@@ -22,203 +22,17 @@
>
-
- Proton override
-
-
- {{ currentProtonPath.name }} ({{ currentProtonPath.path }})
- No override configured
-
-
-
-
-
-
-
- Use global default
-
-
-
-
-
-
-
- Auto-discovered
-
-
-
- {{ proton.name }} ({{ proton.path }})
-
-
-
-
-
-
-
- No auto-discovered layers.
-
-
- Manually added
-
-
-
- {{ proton.name }} ({{ proton.path }})
-
-
-
-
-
-
-
- No manually added layers.
-
-
-
-
-
- Override the Proton layer used to launch this game. You can add or
- remove your custom Proton layer paths in
-
-
- Settings .
-
-
+
diff --git a/main/components/GameOptions/ProtonSelector.vue b/main/components/GameOptions/ProtonSelector.vue
new file mode 100644
index 0000000..39806d3
--- /dev/null
+++ b/main/components/GameOptions/ProtonSelector.vue
@@ -0,0 +1,189 @@
+
+
+ Proton override
+
+
+ {{ currentProtonPath.name }} ({{ currentProtonPath.path }})
+ No override configured
+
+
+
+
+
+
+
+ Use global default
+
+
+
+
+
+
+
+ Auto-discovered
+
+
+
+ {{ proton.name }} ({{ proton.path }})
+
+
+
+
+
+
+
+ No auto-discovered layers.
+
+
+ Manually added
+
+
+
+ {{ proton.name }} ({{ proton.path }})
+
+
+
+
+
+
+
+ No manually added layers.
+
+
+
+
+
+ Override the Proton layer used to launch this game. You can add or remove
+ your custom Proton layer paths in
+
+
+ Settings .
+
+
+
+
+
diff --git a/src-tauri/process/src/process_handlers.rs b/src-tauri/process/src/process_handlers.rs
index 91b8f3e..52d8495 100644
--- a/src-tauri/process/src/process_handlers.rs
+++ b/src-tauri/process/src/process_handlers.rs
@@ -17,7 +17,7 @@ impl ProcessHandler for NativeGameLauncher {
_current_dir: &str,
_database: &Database,
) -> Result {
- Ok(format!("\"{}\"", launch_command))
+ Ok(launch_command)
}
fn valid_for_platform(&self, _db: &Database, _target: &Platform) -> bool {
diff --git a/src-tauri/process/src/process_manager.rs b/src-tauri/process/src/process_manager.rs
index 7f670b4..c1e7b09 100644
--- a/src-tauri/process/src/process_manager.rs
+++ b/src-tauri/process/src/process_manager.rs
@@ -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)?;