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