Fix issues with macOS app launching on non .app executables

This commit is contained in:
Lncvrt committed 2026-04-06 13:05:21 -07:00
1 parent 138275d752
commit 141d17fea0
1 file changed
+1 -1
+1 -1
View File
@@ -467,7 +467,7 @@ fn launch_game(
Err(_) => return,
};
if platform() == "macos" && !bepinex_folder.exists() {
if platform() == "macos" && !bepinex_folder.exists() && executable.ends_with(".app") {
if let Err(_) = Command::new("open")
.arg(&executable)
.current_dir(&game_folder)