mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-12-28 18:46:06 +00:00
hotfix : check if dir exists
This commit is contained in:
parent
8d15388aeb
commit
67dfc7916c
|
@ -308,9 +308,13 @@ void Emulator::LoadSystemModules(const std::filesystem::path& file, std::string
|
|||
LOG_INFO(Loader, "No HLE available for {} module", module_name);
|
||||
}
|
||||
}
|
||||
for (const auto& entry : std::filesystem::directory_iterator(sys_module_path / game_serial)) {
|
||||
LOG_INFO(Loader, "Loading {} from game serial file {}", entry.path().string(), game_serial);
|
||||
linker->LoadModule(entry.path());
|
||||
if (std::filesystem::exists(sys_module_path / game_serial)) {
|
||||
for (const auto& entry :
|
||||
std::filesystem::directory_iterator(sys_module_path / game_serial)) {
|
||||
LOG_INFO(Loader, "Loading {} from game serial file {}", entry.path().string(),
|
||||
game_serial);
|
||||
linker->LoadModule(entry.path());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue