diff --git a/stratosphere/ams_mitm/source/bpc_mitm/bpcmitm_reboot_manager.cpp b/stratosphere/ams_mitm/source/bpc_mitm/bpcmitm_reboot_manager.cpp index 248f2964e..a8b526731 100644 --- a/stratosphere/ams_mitm/source/bpc_mitm/bpcmitm_reboot_manager.cpp +++ b/stratosphere/ams_mitm/source/bpc_mitm/bpcmitm_reboot_manager.cpp @@ -89,7 +89,7 @@ static void DoRebootToPayload() { Result BpcRebootManager::PerformReboot() { switch (g_reboot_type) { case BpcRebootType::Standard: - return RESULT_FORWARD_TO_SESSION; + return ResultAtmosphereMitmShouldForwardToSession; case BpcRebootType::ToRcm: RebootToRcm(); return 0; diff --git a/stratosphere/ams_mitm/source/fs_mitm/fsmitm_service.cpp b/stratosphere/ams_mitm/source/fs_mitm/fsmitm_service.cpp index 85e48bd0a..c24c9e135 100644 --- a/stratosphere/ams_mitm/source/fs_mitm/fsmitm_service.cpp +++ b/stratosphere/ams_mitm/source/fs_mitm/fsmitm_service.cpp @@ -116,7 +116,7 @@ Result FsMitmService::OpenFileSystemWithPatch(Outtitle_id) || filesystem_type != FsFileSystemType_ContentManual || !Utils::IsHblTid(title_id) || R_FAILED(Utils::OpenSdDir(AtmosphereHblWebContentDir, &d))) { - return RESULT_FORWARD_TO_SESSION; + return ResultAtmosphereMitmShouldForwardToSession; } fsDirClose(&d); } @@ -127,7 +127,7 @@ Result FsMitmService::OpenFileSystemWithPatch(Outforward_service.get(), &fs, title_id, static_cast(filesystem_type)))) { fsFsClose(&fs); - return RESULT_FORWARD_TO_SESSION; + return ResultAtmosphereMitmShouldForwardToSession; } } @@ -140,7 +140,7 @@ Result FsMitmService::OpenFileSystemWithId(Outtitle_id) || filesystem_type != FsFileSystemType_ContentManual || !Utils::IsHblTid(title_id) || R_FAILED(Utils::OpenSdDir(AtmosphereHblWebContentDir, &d))) { - return RESULT_FORWARD_TO_SESSION; + return ResultAtmosphereMitmShouldForwardToSession; } fsDirClose(&d); } @@ -151,7 +151,7 @@ Result FsMitmService::OpenFileSystemWithId(Outforward_service.get(), &fs, title_id, static_cast(filesystem_type), path.pointer))) { fsFsClose(&fs); - return RESULT_FORWARD_TO_SESSION; + return ResultAtmosphereMitmShouldForwardToSession; } } @@ -222,7 +222,7 @@ Result FsMitmService::OpenDataStorageByCurrentProcess(Outshould_override_contents) { - return RESULT_FORWARD_TO_SESSION; + return ResultAtmosphereMitmShouldForwardToSession; } bool has_cache = StorageCacheGetEntry(this->title_id, &storage); @@ -275,7 +275,7 @@ Result FsMitmService::OpenDataStorageByCurrentProcess(Outshould_override_contents) { - return RESULT_FORWARD_TO_SESSION; + return ResultAtmosphereMitmShouldForwardToSession; } std::shared_ptr storage = nullptr; @@ -342,7 +342,7 @@ Result FsMitmService::OpenDataStorageByDataId(Outfirmware_version.display_version, CURRENT_ATMOSPHERE_VERSION, GetAtmosphereGitRevision()); FontManager::AddSpacingLines(1.5f); - if (this->ctx->error_code != 0xCAFEF) { + if (this->ctx->error_code != ResultAtmosphereVersionMismatch) { FontManager::Print(config->error_desc); } else { /* Print a special message for atmosphere version mismatch. */ diff --git a/stratosphere/libstratosphere b/stratosphere/libstratosphere index 27164564a..8d15f82a9 160000 --- a/stratosphere/libstratosphere +++ b/stratosphere/libstratosphere @@ -1 +1 @@ -Subproject commit 27164564a193e0a91aced93194c5e646585594e7 +Subproject commit 8d15f82a9bf8a61e45856ae764f936a2d82e8a90 diff --git a/stratosphere/loader/source/ldr_main.cpp b/stratosphere/loader/source/ldr_main.cpp index e2607cc30..bf5ed23f7 100644 --- a/stratosphere/loader/source/ldr_main.cpp +++ b/stratosphere/loader/source/ldr_main.cpp @@ -64,23 +64,22 @@ void __appInit(void) { /* Initialize services we need (TODO: SPL) */ rc = smInitialize(); if (R_FAILED(rc)) { - fatalSimple(MAKERESULT(Module_Libnx, LibnxError_InitFail_SM)); + std::abort(); } rc = fsInitialize(); if (R_FAILED(rc)) { - fatalSimple(MAKERESULT(Module_Libnx, LibnxError_InitFail_FS)); + std::abort(); } - rc = lrInitialize(); if (R_FAILED(rc)) { - fatalSimple(0xCAFE << 4 | 1); + std::abort(); } rc = fsldrInitialize(); if (R_FAILED(rc)) { - fatalSimple(0xCAFE << 4 | 2); + std::abort(); } CheckAtmosphereVersion(CURRENT_ATMOSPHERE_VERSION); diff --git a/stratosphere/pm/source/pm_main.cpp b/stratosphere/pm/source/pm_main.cpp index 87171b6c4..fbbe63d73 100644 --- a/stratosphere/pm/source/pm_main.cpp +++ b/stratosphere/pm/source/pm_main.cpp @@ -90,12 +90,12 @@ void __appInit(void) { rc = smInitialize(); if (R_FAILED(rc)) { - fatalSimple(MAKERESULT(Module_Libnx, LibnxError_InitFail_SM)); + std::abort(); } rc = fsprInitialize(); if (R_FAILED(rc)) { - fatalSimple(0xCAFE << 4 | 1); + std::abort(); } /* This works around a bug with process permissions on < 4.0.0. */ @@ -105,32 +105,32 @@ void __appInit(void) { if (R_SUCCEEDED(rc)) { smManagerAmsEndInitialDefers(); } else { - fatalSimple(0xCAFE << 4 | 2); + std::abort(); } rc = smManagerInitialize(); if (R_FAILED(rc)) { - fatalSimple(0xCAFE << 4 | 3); + std::abort(); } rc = lrInitialize(); if (R_FAILED(rc)) { - fatalSimple(0xCAFE << 4 | 4); + std::abort(); } rc = ldrPmInitialize(); if (R_FAILED(rc)) { - fatalSimple(0xCAFE << 4 | 5); + std::abort(); } rc = splInitialize(); if (R_FAILED(rc)) { - fatalSimple(0xCAFE << 4 | 6); + std::abort(); } rc = fsInitialize(); if (R_FAILED(rc)) { - fatalSimple(MAKERESULT(Module_Libnx, LibnxError_InitFail_FS)); + std::abort(); } CheckAtmosphereVersion(CURRENT_ATMOSPHERE_VERSION);