mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-29 13:56:17 +00:00
hotfix : check if dir exists
This commit is contained in:
parent
8d15388aeb
commit
67dfc7916c
1 changed files with 7 additions and 3 deletions
|
@ -308,11 +308,15 @@ void Emulator::LoadSystemModules(const std::filesystem::path& file, std::string
|
||||||
LOG_INFO(Loader, "No HLE available for {} module", module_name);
|
LOG_INFO(Loader, "No HLE available for {} module", module_name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (const auto& entry : std::filesystem::directory_iterator(sys_module_path / game_serial)) {
|
if (std::filesystem::exists(sys_module_path / game_serial)) {
|
||||||
LOG_INFO(Loader, "Loading {} from game serial file {}", entry.path().string(), 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());
|
linker->LoadModule(entry.path());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef ENABLE_QT_GUI
|
#ifdef ENABLE_QT_GUI
|
||||||
void Emulator::UpdatePlayTime(const std::string& serial) {
|
void Emulator::UpdatePlayTime(const std::string& serial) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue