KernelState::GetKernelModule

This commit is contained in:
Dr. Chat
2015-07-05 17:27:25 -05:00
parent 8adbc2cd0c
commit 870aa092bb
4 changed files with 28 additions and 20 deletions

View File

@@ -275,13 +275,9 @@ X_STATUS Emulator::LaunchStfsContainer(std::wstring path) {
X_STATUS Emulator::CompleteLaunch(const std::wstring& path,
const std::string& module_path) {
// Allow xam to request module loads.
auto xam_module = kernel_state_->GetModule("xam.xex");
auto xam = kernel::object_ref<kernel::XamModule>(
reinterpret_cast<kernel::XamModule*>(xam_module.release()));
auto xboxkrnl_module = kernel_state_->GetModule("xboxkrnl.exe");
auto xboxkrnl = kernel::object_ref<kernel::XboxkrnlModule>(
reinterpret_cast<kernel::XboxkrnlModule*>(xboxkrnl_module.release()));
auto xam = kernel_state()->GetKernelModule<kernel::XamModule>("xam.xex");
auto xboxkrnl =
kernel_state()->GetKernelModule<kernel::XboxkrnlModule>("xboxkrnl.exe");
int result = 0;
auto next_module = module_path;