From ca588cb0e5ca55257c1fe8b2eec6e893815f1f94 Mon Sep 17 00:00:00 2001 From: Maschell Date: Thu, 4 Jul 2024 17:22:06 +0200 Subject: [PATCH] Improve OSFatal/logging messages --- source/MenuUtils.cpp | 12 ++++++------ source/PairUtils.cpp | 4 ++-- source/QuickStartUtils.cpp | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/source/MenuUtils.cpp b/source/MenuUtils.cpp index 93382f3..7a9220f 100644 --- a/source/MenuUtils.cpp +++ b/source/MenuUtils.cpp @@ -110,7 +110,7 @@ void drawMenuScreen(const std::map &menu, uint32_t select int32_t handleMenuScreen(std::string &configPath, int32_t autobootOptionInput, const std::map &menu) { auto screenBuffer = DrawUtils::InitOSScreen(); if (!screenBuffer) { - OSFatal("Failed to alloc memory for screen"); + OSFatal("AutobootModule: Failed to alloc memory for screen"); } uint32_t tvBufferSize = OSScreenGetBufferSizeEx(SCREEN_TV); @@ -118,7 +118,7 @@ int32_t handleMenuScreen(std::string &configPath, int32_t autobootOptionInput, c DrawUtils::initBuffers(screenBuffer, tvBufferSize, (void *) ((uint32_t) screenBuffer + tvBufferSize), drcBufferSize); if (!DrawUtils::initFont()) { - OSFatal("Failed to init font"); + OSFatal("AutobootModule: Failed to init font"); } int32_t selectedIndex = autobootOptionInput > 0 ? autobootOptionInput : 0; @@ -225,7 +225,7 @@ int32_t handleMenuScreen(std::string &configPath, int32_t autobootOptionInput, c nn::act::SlotNo handleAccountSelectScreen(const std::vector> &data) { auto screenBuffer = DrawUtils::InitOSScreen(); if (!screenBuffer) { - OSFatal("Failed to alloc memory for screen"); + OSFatal("AutobootModule: Failed to alloc memory for screen"); } uint32_t tvBufferSize = OSScreenGetBufferSizeEx(SCREEN_TV); @@ -233,7 +233,7 @@ nn::act::SlotNo handleAccountSelectScreen(const std::vector