Skip to content

Commit

Permalink
Update binaries.rs
Browse files Browse the repository at this point in the history
Adding format! macro to enclose directories in double quotes. Useful for when the path has a space in between to strings.
  • Loading branch information
HazzyDevil authored Nov 13, 2023
1 parent d809f0b commit 29a468c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src-tauri/src/commands/binaries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ fn generate_launch_game_string(
"-boot".to_string(),
"-fakeiso".to_string(),
"-proj-path".to_string(),
data_folder.to_string_lossy().into_owned(),
format!("\"{}\"", data_folder.to_string_lossy().into_owned()),
];
if in_debug {
args.push("-debug".to_string());
Expand All @@ -701,7 +701,7 @@ fn generate_launch_game_string(
args = vec![
"-v".to_string(),
"--proj-path".to_string(),
data_folder.to_string_lossy().into_owned(),
format!("\"{}\"", data_folder.to_string_lossy().into_owned()),
];
// Add new --game argument
if config_info.tooling_version.minor > 1 || config_info.tooling_version.patch >= 44 {
Expand All @@ -719,6 +719,7 @@ fn generate_launch_game_string(
Ok(args)
}


#[tauri::command]
pub async fn get_launch_game_string(
config: tauri::State<'_, tokio::sync::Mutex<LauncherConfig>>,
Expand Down

0 comments on commit 29a468c

Please sign in to comment.