From 5aae4f63ec827d71e27b4a6451c130cb92f128c6 Mon Sep 17 00:00:00 2001 From: Dmugetsu Date: Mon, 21 Apr 2025 06:04:42 -0600 Subject: [PATCH] making init func work on load sysmodules. --- src/emulator.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/emulator.cpp b/src/emulator.cpp index 1a71b99cb..78f2959e2 100644 --- a/src/emulator.cpp +++ b/src/emulator.cpp @@ -311,7 +311,9 @@ void Emulator::LoadSystemModules(const std::string& game_serial) { if (it != found_modules.end()) { LOG_INFO(Loader, "Loading {}", it->string()); if (linker->LoadModule(*it) != -1) { - continue; + if (init_func) { + init_func(); + } } } if (init_func) {