From 25956c4fa170107ee6e7b362f6542c5e5a238dc2 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Fri, 30 Nov 2018 04:51:27 -0800 Subject: [PATCH] fatal: Print special message for version mistmatch. --- stratosphere/fatal/source/fatal_task_screen.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/stratosphere/fatal/source/fatal_task_screen.cpp b/stratosphere/fatal/source/fatal_task_screen.cpp index 66e39b69c..4ca01cee9 100644 --- a/stratosphere/fatal/source/fatal_task_screen.cpp +++ b/stratosphere/fatal/source/fatal_task_screen.cpp @@ -210,7 +210,17 @@ Result ShowFatalTask::ShowFatal() { FontManager::AddSpacingLines(0.5f); FontManager::PrintFormatLine(u8"Firmware: %s (Atmosphère %u.%u.%u-%s)", GetFatalConfig()->firmware_version.display_version, CURRENT_ATMOSPHERE_VERSION, GetAtmosphereGitRevision()); FontManager::AddSpacingLines(1.5f); - FontManager::Print(config->error_desc); + if (this->ctx->error_code != 0xCAFEF) { + FontManager::Print(config->error_desc); + } else { + /* Print a special message for atmosphere version mismatch. */ + FontManager::Print(u8"Atmosphère version mismatch detected.\n\n" + u8"Please press the POWER Button to restart the console. If you are\n" + u8"unable to restart the console, hold the POWER Button for 12 seconds\n" + u8"to turn the console off.\n\n" + u8"Please ensure that all Atmosphère components are updated.\n" + u8"github.com/Atmosphere-NX/Atmosphere/releases\n"); + } /* Add a line. */ for (size_t x = 32; x < FatalScreenWidth - 32; x++) {