load every available prx from sce_module folder of game
This commit is contained in:
parent
250bfbb494
commit
c578ccc435
|
@ -114,18 +114,14 @@ void Emulator::Run(const std::filesystem::path& file) {
|
||||||
std::filesystem::path sce_module_folder = file.parent_path() / "sce_module";
|
std::filesystem::path sce_module_folder = file.parent_path() / "sce_module";
|
||||||
if (std::filesystem::is_directory(sce_module_folder)) {
|
if (std::filesystem::is_directory(sce_module_folder)) {
|
||||||
for (const auto& entry : std::filesystem::directory_iterator(sce_module_folder)) {
|
for (const auto& entry : std::filesystem::directory_iterator(sce_module_folder)) {
|
||||||
if (entry.path().filename() == "libc.prx" ||
|
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") {
|
|
||||||
found = true;
|
found = true;
|
||||||
|
}
|
||||||
LOG_INFO(Loader, "Loading {}", entry.path().string().c_str());
|
LOG_INFO(Loader, "Loading {}", entry.path().string().c_str());
|
||||||
linker->LoadModule(entry.path());
|
linker->LoadModule(entry.path());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (!found) {
|
if (!found) {
|
||||||
Libraries::LibC::libcSymbolsRegister(&linker->GetHLESymbols());
|
Libraries::LibC::libcSymbolsRegister(&linker->GetHLESymbols());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue