mirror of
https://github.com/open-goal/launcher.git
synced 2024-10-20 04:57:38 -04:00
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:
parent
0cfbd3609a
commit
b12f47ff47
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue