Remove unused XboxkrnlModule::LaunchModule

This commit is contained in:
Dr. Chat 2015-12-02 14:20:56 -06:00 committed by Ben Vanik
parent 442f063ddf
commit 8a9493a048
2 changed files with 0 additions and 29 deletions

View File

@ -170,33 +170,6 @@ void XboxkrnlModule::RegisterExportTable(
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 kernel
} // namespace xe

View File

@ -32,8 +32,6 @@ class XboxkrnlModule : public KernelModule {
static void RegisterExportTable(xe::cpu::ExportResolver* export_resolver);
int LaunchModule(const char* path);
private:
std::unique_ptr<xe::threading::HighResolutionTimer> timestamp_timer_;
};