From 7041b2fb6aa19477caab05cbb4c395916598116b Mon Sep 17 00:00:00 2001 From: Tobim6 <102646588+Tobim6@users.noreply.github.com> Date: Thu, 12 Nov 2026 16:22:59 +0100 Subject: [PATCH] NX2NAVI_SVC_WAITS: read only when set; unset, cfg_bool ended the game (the key has no settings row). Co-Authored-By: Claude Opus 5.5 --- runtime/kernel.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runtime/kernel.c b/runtime/kernel.c index 4243f01f..990813de 100644 --- a/runtime/kernel.c +++ b/runtime/kernel.c @@ -2422,6 +2422,10 @@ static void svc_wait_note(const Cpu *c, uint32_t imm, uint64_t ns) { int kern_svc(Cpu *c, uint32_t imm) { static int waits = -1; + if (waits < 0) { // no settings row: cfg_bool only on a set value (an unset key is fatal there) + const char *v = cfg_get("NX2NAVI_SVC_WAITS"); + waits = v && *v && cfg_bool("NX2NAVI_SVC_WAITS"); + } if (waits && plat_thread_id() == prof_main_tid) { uint64_t w0 = kern_now_ns(); int r = kern_svc_inner(c, imm);