mirror of
https://github.com/ApacheThunder/SCKILL.git
synced 2025-06-19 03:25:32 -04:00
Add error file reminder
This commit is contained in:
parent
b1afb76b00
commit
8ea838bca9
@ -384,11 +384,11 @@ int main(void) {
|
|||||||
consoleSelect(&btConsole);
|
consoleSelect(&btConsole);
|
||||||
consoleClear();
|
consoleClear();
|
||||||
firmwareFilename = selectFirmware();
|
firmwareFilename = selectFirmware();
|
||||||
|
consoleSelect(&tpConsole);
|
||||||
if(!firmwareFilename) {
|
if(!firmwareFilename) {
|
||||||
FileSuccess = false;
|
FileSuccess = false;
|
||||||
} else {
|
} else {
|
||||||
src = fopen(firmwareFilename, "rb");
|
src = fopen(firmwareFilename, "rb");
|
||||||
consoleSelect(&tpConsole);
|
|
||||||
if (src) {
|
if (src) {
|
||||||
fseek(src, 0, SEEK_END);
|
fseek(src, 0, SEEK_END);
|
||||||
firmSize = ftell(src);
|
firmSize = ftell(src);
|
||||||
@ -412,7 +412,9 @@ int main(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!FileSuccess) {
|
if (!FileSuccess) {
|
||||||
|
printf("\n\n\n\n\n\n\n\n [File error!]\n [USING SCFW's firmware.frm]");
|
||||||
consoleSelect(&btConsole);
|
consoleSelect(&btConsole);
|
||||||
|
consoleClear();
|
||||||
tonccpy(scfw_buffer, scfw_bin, (scfw_binEnd - scfw_bin));
|
tonccpy(scfw_buffer, scfw_bin, (scfw_binEnd - scfw_bin));
|
||||||
firmSize = (scfw_binEnd - scfw_bin);
|
firmSize = (scfw_binEnd - scfw_bin);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user