fix: disable wivrn launch options instructions in debug view
Some checks failed
/ cargo-fmtcheck (push) Has been cancelled
/ cargo-clippy (push) Has been cancelled
/ cargo-test (push) Has been cancelled
/ appimage (push) Has been cancelled

This commit is contained in:
Sapphire 2024-11-23 00:59:50 -06:00
parent e65c4a8d9d
commit c5460758c5
No known key found for this signature in database
GPG key ID: 642911AA4025C8CC

View file

@ -175,7 +175,7 @@ impl InternalJobWorker {
}
}
}
let mut launch_opts = prof.xrservice_launch_options.trim();
let mut launch_opts = prof.xrservice_launch_options.trim().to_string();
let debug_launch_opts = if debug {
if launch_opts.contains(LAUNCH_OPTS_CMD_PLACEHOLDER) {
format!("{} {}", "gdbserver localhost:9000", launch_opts)
@ -189,10 +189,13 @@ impl InternalJobWorker {
String::default()
};
launch_opts = if debug {
debug_launch_opts.as_str()
debug_launch_opts
} else {
launch_opts
};
if !launch_opts.contains(" --no-instructions") {
launch_opts.push_str(" --no-instructions");
}
let (command, args) = match launch_opts.is_empty() {
false => (
"sh".into(),