From 8ea838bca9cd2e5c4a3a8a88a4015db0db19be34 Mon Sep 17 00:00:00 2001 From: GitHub Wokann Date: Tue, 27 May 2025 13:04:43 +0800 Subject: [PATCH] Add error file reminder --- arm9/source/sckill.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arm9/source/sckill.cpp b/arm9/source/sckill.cpp index 557b2c6..facae7a 100644 --- a/arm9/source/sckill.cpp +++ b/arm9/source/sckill.cpp @@ -384,11 +384,11 @@ int main(void) { consoleSelect(&btConsole); consoleClear(); firmwareFilename = selectFirmware(); + consoleSelect(&tpConsole); if(!firmwareFilename) { FileSuccess = false; } else { src = fopen(firmwareFilename, "rb"); - consoleSelect(&tpConsole); if (src) { fseek(src, 0, SEEK_END); firmSize = ftell(src); @@ -412,7 +412,9 @@ int main(void) { } if (!FileSuccess) { + printf("\n\n\n\n\n\n\n\n [File error!]\n [USING SCFW's firmware.frm]"); consoleSelect(&btConsole); + consoleClear(); tonccpy(scfw_buffer, scfw_bin, (scfw_binEnd - scfw_bin)); firmSize = (scfw_binEnd - scfw_bin); }