Skip to content

Commit

Permalink
pass --game to goalc (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
dallmeyer authored Nov 8, 2023
1 parent fcf48cc commit fc70da1
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions src-tauri/src/commands/binaries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -563,15 +563,29 @@ pub async fn open_repl(
let data_folder = get_data_dir(&config_info, &game_name, false)?;
let exec_info = get_exec_location(&config_info, "goalc")?;
let mut command = Command::new("cmd");
command
.args([
"/K",
"start",
&bin_ext("goalc"),
"--proj-path",
&data_folder.to_string_lossy(),
])
.current_dir(exec_info.executable_dir);
if game_name == "jak1" {
command
.args([
"/K",
"start",
&bin_ext("goalc"),
"--proj-path",
&data_folder.to_string_lossy(),
])
.current_dir(exec_info.executable_dir);
} else {
command
.args([
"/K",
"start",
&bin_ext("goalc"),
"--proj-path",
&data_folder.to_string_lossy(),
"--game",
&game_name,
])
.current_dir(exec_info.executable_dir);
}
#[cfg(windows)]
{
command.creation_flags(0x08000000);
Expand Down

0 comments on commit fc70da1

Please sign in to comment.