Correcting escaping

Still not 100% sure it's good
This commit is contained in:
2023-06-07 22:51:33 +01:00
parent e21151b5d0
commit 786de4f0f1

View File

@@ -139,11 +139,9 @@ impl RustDoomLauncher {
Ok((launch, comms)) => { Ok((launch, comms)) => {
let mut command_string = String::new(); let mut command_string = String::new();
// Feels like a bit of a hack, but it works I think // Feels like a bit of a hack, but it works I think
command_string.push_str(&Cow::from(launch).to_string()); command_string.push_str(&format!(" '{}'", launch));
for c in comms { for c in comms {
command_string.push_str(" \'"); command_string.push_str(&format!(" '{}'", c));
command_string.push_str(c);
command_string.push('\'')
} }
command_string command_string
} }