Skip to content

Commit

Permalink
Load HLE library if native library can't be loaded (#1899)
Browse files Browse the repository at this point in the history
  • Loading branch information
mailwl authored Dec 27, 2024
1 parent cf84c46 commit 1c5947d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/emulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1c5947d

Please sign in to comment.