Load HLE library if native library can't be loaded (#1899)

This commit is contained in:
mailwl 2024-12-27 17:44:57 +03:00 committed by GitHub
parent cf84c46a49
commit 1c5947d93b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -311,8 +311,9 @@ void Emulator::LoadSystemModules(const std::filesystem::path& file, std::string
found_modules, [&](const auto& path) { return path.filename() == module_name; });
if (it != found_modules.end()) {
LOG_INFO(Loader, "Loading {}", it->string());
linker->LoadModule(*it);
continue;
if (linker->LoadModule(*it) != -1) {
continue;
}
}
if (init_func) {
LOG_INFO(Loader, "Can't Load {} switching to HLE", module_name);