mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-07 15:46:01 +00:00
hotfix : check if dir exists
This commit is contained in:
parent
85e6e98ead
commit
e527ac8a73
|
@ -308,11 +308,15 @@ 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);
|
||||
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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef ENABLE_QT_GUI
|
||||
void Emulator::UpdatePlayTime(const std::string& serial) {
|
||||
|
|
Loading…
Reference in a new issue