mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-26 07:01:02 +00:00
Optimize module_manager::get_module
This commit is contained in:
@@ -46,7 +46,7 @@ struct mapped_module
|
||||
|
||||
bool contains(const uint64_t address) const
|
||||
{
|
||||
return address >= this->image_base && address < (this->image_base + this->size_of_image);
|
||||
return (address - this->image_base) < this->size_of_image;
|
||||
}
|
||||
|
||||
uint64_t find_export(const std::string_view export_name) const
|
||||
|
||||
Reference in New Issue
Block a user