mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-07-18 06:51:37 +00:00
fix: disable wivrn launch options instructions in debug view
This commit is contained in:
parent
e65c4a8d9d
commit
c5460758c5
1 changed files with 5 additions and 2 deletions
|
@ -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 {
|
let debug_launch_opts = if debug {
|
||||||
if launch_opts.contains(LAUNCH_OPTS_CMD_PLACEHOLDER) {
|
if launch_opts.contains(LAUNCH_OPTS_CMD_PLACEHOLDER) {
|
||||||
format!("{} {}", "gdbserver localhost:9000", launch_opts)
|
format!("{} {}", "gdbserver localhost:9000", launch_opts)
|
||||||
|
@ -189,10 +189,13 @@ impl InternalJobWorker {
|
||||||
String::default()
|
String::default()
|
||||||
};
|
};
|
||||||
launch_opts = if debug {
|
launch_opts = if debug {
|
||||||
debug_launch_opts.as_str()
|
debug_launch_opts
|
||||||
} else {
|
} else {
|
||||||
launch_opts
|
launch_opts
|
||||||
};
|
};
|
||||||
|
if !launch_opts.contains(" --no-instructions") {
|
||||||
|
launch_opts.push_str(" --no-instructions");
|
||||||
|
}
|
||||||
let (command, args) = match launch_opts.is_empty() {
|
let (command, args) = match launch_opts.is_empty() {
|
||||||
false => (
|
false => (
|
||||||
"sh".into(),
|
"sh".into(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue