mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-18 19:23:56 +00:00
We can only wish
This commit is contained in:
@@ -531,7 +531,7 @@ mapped_module* module_manager::map_memory_module(uint64_t base_address, uint64_t
|
||||
void module_manager::serialize(utils::buffer_serializer& buffer) const
|
||||
{
|
||||
buffer.write_map(this->modules_);
|
||||
buffer.write_map(this->module_load_count);
|
||||
//buffer.write_map(this->module_load_count);
|
||||
|
||||
buffer.write(this->executable ? this->executable->image_base : 0);
|
||||
buffer.write(this->ntdll ? this->ntdll->image_base : 0);
|
||||
@@ -549,7 +549,7 @@ void module_manager::serialize(utils::buffer_serializer& buffer) const
|
||||
void module_manager::deserialize(utils::buffer_deserializer& buffer)
|
||||
{
|
||||
buffer.read_map(this->modules_);
|
||||
buffer.read_map(this->module_load_count);
|
||||
//buffer.read_map(this->module_load_count);
|
||||
this->last_module_cache_ = this->modules_.end();
|
||||
|
||||
const auto executable_base = buffer.read<uint64_t>();
|
||||
|
||||
@@ -159,7 +159,7 @@ class module_manager
|
||||
mapped_module* executable{};
|
||||
mapped_module* ntdll{};
|
||||
mapped_module* win32u{};
|
||||
std::map<windows_path, uint64_t> module_load_count;
|
||||
std::unordered_map<windows_path, uint64_t> module_load_count;
|
||||
|
||||
// WOW64-specific modules (for validation and future use)
|
||||
struct wow64_modules
|
||||
|
||||
@@ -256,11 +256,6 @@ class windows_path
|
||||
return !this->operator==(other);
|
||||
}
|
||||
|
||||
bool operator<(const windows_path& other) const
|
||||
{
|
||||
return this->string().length() < other.string().length();
|
||||
}
|
||||
|
||||
bool empty() const
|
||||
{
|
||||
return this->is_relative() && this->folders_.empty();
|
||||
|
||||
Reference in New Issue
Block a user