From c5460758c50c0878d03bd0993f4e49be62c3df5c Mon Sep 17 00:00:00 2001 From: Sapphire Date: Sat, 23 Nov 2024 00:59:50 -0600 Subject: [PATCH] fix: disable wivrn launch options instructions in debug view --- src/ui/job_worker/internal_worker.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ui/job_worker/internal_worker.rs b/src/ui/job_worker/internal_worker.rs index 103c822..25c40a2 100644 --- a/src/ui/job_worker/internal_worker.rs +++ b/src/ui/job_worker/internal_worker.rs @@ -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(),