Remove unused XboxkrnlModule::LaunchModule
This commit is contained in:
parent
442f063ddf
commit
8a9493a048
|
@ -170,33 +170,6 @@ void XboxkrnlModule::RegisterExportTable(
|
||||||
|
|
||||||
XboxkrnlModule::~XboxkrnlModule() = default;
|
XboxkrnlModule::~XboxkrnlModule() = default;
|
||||||
|
|
||||||
int XboxkrnlModule::LaunchModule(const char* path) {
|
|
||||||
// Create and register the module. We keep it local to this function and
|
|
||||||
// dispose it on exit.
|
|
||||||
auto module = kernel_state_->LoadUserModule(path);
|
|
||||||
if (!module) {
|
|
||||||
XELOGE("Failed to load user module %s.", path);
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set as the main module, while running.
|
|
||||||
kernel_state_->SetExecutableModule(module);
|
|
||||||
|
|
||||||
// Launch the module.
|
|
||||||
// NOTE: this won't return until the module exits.
|
|
||||||
X_STATUS result_code = module->Launch(0);
|
|
||||||
|
|
||||||
// Main thread exited. Terminate the title.
|
|
||||||
kernel_state_->TerminateTitle();
|
|
||||||
kernel_state_->SetExecutableModule(NULL);
|
|
||||||
if (XFAILED(result_code)) {
|
|
||||||
XELOGE("Failed to launch module %s: %.8X", path, result_code);
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace xboxkrnl
|
} // namespace xboxkrnl
|
||||||
} // namespace kernel
|
} // namespace kernel
|
||||||
} // namespace xe
|
} // namespace xe
|
||||||
|
|
|
@ -32,8 +32,6 @@ class XboxkrnlModule : public KernelModule {
|
||||||
|
|
||||||
static void RegisterExportTable(xe::cpu::ExportResolver* export_resolver);
|
static void RegisterExportTable(xe::cpu::ExportResolver* export_resolver);
|
||||||
|
|
||||||
int LaunchModule(const char* path);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::unique_ptr<xe::threading::HighResolutionTimer> timestamp_timer_;
|
std::unique_ptr<xe::threading::HighResolutionTimer> timestamp_timer_;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue