Merge remote-tracking branch 'GliniakRepo/deleteFunctionsFromUnloadedModule' into canary_pr
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "xenia/base/byte_stream.h"
|
||||
#include "xenia/base/logging.h"
|
||||
#include "xenia/base/string.h"
|
||||
#include "xenia/cpu/processor.h"
|
||||
#include "xenia/kernel/kernel_state.h"
|
||||
#include "xenia/kernel/user_module.h"
|
||||
|
||||
@@ -48,7 +49,10 @@ bool XModule::Matches(const std::string_view name) const {
|
||||
|
||||
void XModule::OnLoad() { kernel_state_->RegisterModule(this); }
|
||||
|
||||
void XModule::OnUnload() { kernel_state_->UnregisterModule(this); }
|
||||
void XModule::OnUnload() {
|
||||
kernel_state_->processor()->RemoveModule(this->name());
|
||||
kernel_state_->UnregisterModule(this);
|
||||
}
|
||||
|
||||
X_STATUS XModule::GetSection(const std::string_view name,
|
||||
uint32_t* out_section_data,
|
||||
|
||||
Reference in New Issue
Block a user