From a2520aa0712b7a170b7256e7db77f43f8ad5c72c Mon Sep 17 00:00:00 2001 From: Pacuka <69674426+Pacuka@users.noreply.github.com> Date: Tue, 29 Sep 2026 21:32:15 +0200 Subject: [PATCH] fix(sysmodule): unload unknown module ids as no-ops sceSysmoduleLoadModule and sceSysmoduleIsLoaded already accept ids the project does not know and log them; unloading such an id threw, so a title that loads and later unloads an unknown module aborted at the unload. Co-Authored-By: Claude Opus 5.5 --- core/libs/prx/libSceSysmodule/Export.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/libs/prx/libSceSysmodule/Export.cpp b/core/libs/prx/libSceSysmodule/Export.cpp index b0457018b..76f993459 100644 --- a/core/libs/prx/libSceSysmodule/Export.cpp +++ b/core/libs/prx/libSceSysmodule/Export.cpp @@ -154,7 +154,8 @@ int APS5_VABI sceSysmoduleUnloadModule(std::uint16_t id) { throw std::runtime_error("sceSysmoduleUnloadModule: invalid id 0"); } if (!findModuleName(id)) { - throw std::runtime_error(std::string("sceSysmoduleUnloadModule: unknown id ") + std::to_string(id)); + APS5_LOG_OUT("unknown id: %u", static_cast(id)); + return 0; } std::lock_guard lock(gMutex); auto it = gLoadCount.find(id);