From 130922fc5a10bc4e35e3882fa036fa5832939f6a Mon Sep 17 00:00:00 2001 From: Nomi Date: Tue, 26 Sep 2023 07:13:05 +0200 Subject: [PATCH] Update nim.cpp --- src/core/services/nim.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/core/services/nim.cpp b/src/core/services/nim.cpp index c9141756..4ef6a6de 100644 --- a/src/core/services/nim.cpp +++ b/src/core/services/nim.cpp @@ -12,14 +12,16 @@ void NIMService::reset() {} void NIMService::handleSyncRequest(u32 messagePointer, Type type) { const u32 command = mem.read32(messagePointer); switch (command) { - if (type == Type::AOC) { - switch (command) { - case NIMCommands::Initialize: initialize(messagePointer); break; + default: + if (type == Type::AOC) { + switch (command) { + case NIMCommands::Initialize: initialize(messagePointer); break; - default: Helpers::panic("NIM AOC service requested. Command: %08X\n", command); + default: Helpers::panic("NIM AOC service requested. Command: %08X\n", command); + } + } else { + Helpers::panic("NIM service requested. Command: %08X\n", command); } - } - default: Helpers::panic("NIM service requested. Command: %08X\n", command); } }