Skip to content

Commit

Permalink
Update binaries.rs (#383)
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 two strings.
  • Loading branch information
HazzyDevil authored Dec 14, 2023
1 parent 0cfbd36 commit b12f47f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 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 Down

0 comments on commit b12f47f

Please sign in to comment.