Extract main module cache into module manager

This commit is contained in:
momo5502
2025-02-10 17:43:09 +01:00
parent c1aa260f8f
commit 934374c4bb
11 changed files with 166 additions and 148 deletions

View File

@@ -89,7 +89,7 @@ void syscall_dispatcher::dispatch(windows_emulator& win_emu)
}
const auto* mod = win_emu.mod_manager.find_by_address(address);
if (mod != context.ntdll && mod != context.win32u)
if (mod != win_emu.mod_manager.ntdll && mod != win_emu.mod_manager.win32u)
{
win_emu.callbacks.inline_syscall(syscall_id, address, mod ? mod->name.c_str() : "<N/A>",
entry->second.name);