From c578ccc435e9995bdaf4dbf689cbcca9be380d1f Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Thu, 18 Jul 2024 18:34:08 +0300 Subject: [PATCH] load every available prx from sce_module folder of game --- src/emulator.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/emulator.cpp b/src/emulator.cpp index 91d92cd6..4e669e08 100644 --- a/src/emulator.cpp +++ b/src/emulator.cpp @@ -114,15 +114,11 @@ void Emulator::Run(const std::filesystem::path& file) { std::filesystem::path sce_module_folder = file.parent_path() / "sce_module"; if (std::filesystem::is_directory(sce_module_folder)) { for (const auto& entry : std::filesystem::directory_iterator(sce_module_folder)) { - if (entry.path().filename() == "libc.prx" || - entry.path().filename() == "libSceFios2.prx" || - entry.path().filename() == "libSceAudioLatencyEstimation.prx" || - entry.path().filename() == "libSceJobManager.prx" || - entry.path().filename() == "libSceS3DConversion.prx") { + if (entry.path().filename() == "libc.prx") { found = true; - LOG_INFO(Loader, "Loading {}", entry.path().string().c_str()); - linker->LoadModule(entry.path()); } + LOG_INFO(Loader, "Loading {}", entry.path().string().c_str()); + linker->LoadModule(entry.path()); } } }