mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-25 14:41:02 +00:00
Small fixes
This commit is contained in:
@@ -39,6 +39,19 @@ class module_manager
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
mapped_module* find_by_name(const std::string_view name)
|
||||
{
|
||||
for (auto& mod : this->modules_ | std::views::values)
|
||||
{
|
||||
if (mod.name == name)
|
||||
{
|
||||
return &mod;
|
||||
}
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
const char* find_name(const uint64_t address)
|
||||
{
|
||||
const auto* mod = this->find_by_address(address);
|
||||
|
||||
Reference in New Issue
Block a user