mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-17 19:13:55 +00:00
Support hook deletion during hook deletion
This commit is contained in:
@@ -377,7 +377,9 @@ namespace icicle
|
||||
}
|
||||
|
||||
icicle_remove_hook(this->emu_, id);
|
||||
const auto obj = std::move(entry->second);
|
||||
this->hooks_.erase(entry);
|
||||
(void)obj;
|
||||
}
|
||||
|
||||
void serialize_state(utils::buffer_serializer& buffer, const bool is_snapshot) const override
|
||||
|
||||
@@ -605,7 +605,9 @@ namespace unicorn
|
||||
|
||||
if (entry != this->hooks_.end())
|
||||
{
|
||||
const auto obj = std::move(*entry);
|
||||
this->hooks_.erase(entry);
|
||||
(void)obj;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user