|
|
@ -135,7 +135,6 @@ System::ResultStatus System::Load(Frontend::EmuWindow& emu_window, const std::st
|
|
|
|
LOG_CRITICAL(Core, "Failed to determine system mode (Error {})!",
|
|
|
|
LOG_CRITICAL(Core, "Failed to determine system mode (Error {})!",
|
|
|
|
static_cast<int>(system_mode.second));
|
|
|
|
static_cast<int>(system_mode.second));
|
|
|
|
|
|
|
|
|
|
|
|
if (system_mode.second != Loader::ResultStatus::Success)
|
|
|
|
|
|
|
|
return ResultStatus::ErrorSystemMode;
|
|
|
|
return ResultStatus::ErrorSystemMode;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -148,15 +147,13 @@ System::ResultStatus System::Load(Frontend::EmuWindow& emu_window, const std::st
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const Loader::ResultStatus load_result{app_loader->Load(current_process)};
|
|
|
|
const Loader::ResultStatus load_result{app_loader->Load(current_process)};
|
|
|
|
if (Loader::ResultStatus::Success != load_result) {
|
|
|
|
if (load_result != Loader::ResultStatus::Success) {
|
|
|
|
LOG_CRITICAL(Core, "Failed to load ROM (Error {})!", static_cast<int>(load_result));
|
|
|
|
LOG_CRITICAL(Core, "Failed to load ROM (Error {})!", static_cast<int>(load_result));
|
|
|
|
System::Shutdown();
|
|
|
|
System::Shutdown();
|
|
|
|
|
|
|
|
|
|
|
|
if (load_result != Loader::ResultStatus::Success) {
|
|
|
|
|
|
|
|
return static_cast<ResultStatus>(static_cast<u32>(ResultStatus::ErrorLoader) +
|
|
|
|
return static_cast<ResultStatus>(static_cast<u32>(ResultStatus::ErrorLoader) +
|
|
|
|
static_cast<u32>(load_result));
|
|
|
|
static_cast<u32>(load_result));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
status = ResultStatus::Success;
|
|
|
|
status = ResultStatus::Success;
|
|
|
|
return status;
|
|
|
|
return status;
|
|
|
|
}
|
|
|
|
}
|
|
|
|