Update binaries.rs (#383)

Adding format! macro to enclose directories in double quotes. Useful for
when the path has a space in between two strings.
This commit is contained in:
HazzyDevil 2023-12-14 14:52:59 +00:00 committed by GitHub
parent 0cfbd3609a
commit b12f47ff47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -692,7 +692,7 @@ fn generate_launch_game_string(
"-boot".to_string(), "-boot".to_string(),
"-fakeiso".to_string(), "-fakeiso".to_string(),
"-proj-path".to_string(), "-proj-path".to_string(),
data_folder.to_string_lossy().into_owned(), format!("\"{}\"", data_folder.to_string_lossy().into_owned()),
]; ];
if in_debug { if in_debug {
args.push("-debug".to_string()); args.push("-debug".to_string());
@ -701,7 +701,7 @@ fn generate_launch_game_string(
args = vec![ args = vec![
"-v".to_string(), "-v".to_string(),
"--proj-path".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 // Add new --game argument
if config_info.tooling_version.minor > 1 || config_info.tooling_version.patch >= 44 { if config_info.tooling_version.minor > 1 || config_info.tooling_version.patch >= 44 {