Showing the changes to src/vm/tool_dispatch.cpp (1 of 10 files). Show all
Unified · Split
| @@ -126,13 +126,10 @@ void vm_tool_dispatch_t::on_exception_unhandled(vm_registers_t &r, const vm_stri · 125 unmodified lines | ||
| 126 | 126 | _events.fire_event_callbacks(vm_event_t::exception_unhandled, cxt); |
| 127 | 127 | } |
| 128 | 128 | |
| 129 | −void vm_tool_dispatch_t::on_module_vm_load(std::shared_ptr<vm_module_t> &m, const vm_string_t &path) | |
| 129 | +void vm_tool_dispatch_t::on_module_vm_load(const loaded_vm_module_t &m) | |
| 130 | 130 | { |
| 131 | − assert(m != nullptr); | |
| 132 | − | |
| 133 | 131 | vm_event_context_t cxt{}; |
| 134 | − cxt.value1.module = &m; | |
| 135 | − cxt.value2.str = &path; | |
| 132 | + cxt.value1.loaded_mod = &m; | |
| 136 | 133 | |
| 137 | 134 | _events.fire_event_callbacks(vm_event_t::module_vm_load, cxt); |
| 138 | 135 | } |