From 57fcc8bfe869ffe93aa5a0ff1ac46013531efb4b Mon Sep 17 00:00:00 2001 From: Jan Hofmeier Date: Fri, 21 Jul 2023 23:07:25 +0200 Subject: [PATCH] slccmpt01 --- ios_mcp/source/menu.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ios_mcp/source/menu.c b/ios_mcp/source/menu.c index 232001c..f1ec1df 100644 --- a/ios_mcp/source/menu.c +++ b/ios_mcp/source/menu.c @@ -1084,31 +1084,31 @@ static void option_flashBoot1(void){ int fileHandle = 0; int res = FSA_OpenFile(fsaHandle, "/vol/storage_recovsd/boot1.img", "rb", &fileHandle); if(res<0){ - gfx_printf(16, index+= CHAR_SIZE_DRC_Y + 4, 0, "Error opening boot1.img -%X", res); + gfx_printf(16, index+= CHAR_SIZE_DRC_Y + 4, 0, "Error opening boot1.img -%X", -res); goto end; } int read_bytes = FSA_ReadFile(fsaHandle, buffer, 1, buff_size, fileHandle, 0); FSA_CloseFile(fsaHandle, fileHandle); if(read_bytes<0){ - gfx_printf(16, index+= CHAR_SIZE_DRC_Y + 4, 0, "Error reading boot1.img -%X", read_bytes); + gfx_printf(16, index+= CHAR_SIZE_DRC_Y + 4, 0, "Error reading boot1.img -%X", -read_bytes); goto end; } - gfx_printf(16, index+= CHAR_SIZE_DRC_Y + 4, 0, "Writing %d bytes to slcmpt! CONFIRM?", res); + gfx_printf(16, index+= CHAR_SIZE_DRC_Y + 4, 0, "Writing %d bytes to slccmpt! CONFIRM?", res); waitButtonInput(); gfx_print(16, index+= CHAR_SIZE_DRC_Y + 4, 0, "Writing..."); - res = FSA_RawOpen(fsaHandle, "/dev/slcmpt01", &fileHandle); + res = FSA_RawOpen(fsaHandle, "/dev/slccmpt01", &fileHandle); if(res<0){ - gfx_printf(16, index+= CHAR_SIZE_DRC_Y + 4, 0, "Error opening slcmpt -%X", res); + gfx_printf(16, index+= CHAR_SIZE_DRC_Y + 4, 0, "Error opening slccmpt -%X", -res); goto end; } res = FSA_RawWrite(fsaHandle, buffer, 1, read_bytes, 0, fileHandle); if(res<0){ - gfx_printf(16, index+= CHAR_SIZE_DRC_Y + 4, 0, "Error writing slcmpt -%X", res); + gfx_printf(16, index+= CHAR_SIZE_DRC_Y + 4, 0, "Error writing slcmpt -%X", -res); } res = FSA_RawClose(fileHandle, fileHandle); if(res<0){ - gfx_printf(16, index+= CHAR_SIZE_DRC_Y + 4, 0, "Error closing slcmpt -%X", res); + gfx_printf(16, index+= CHAR_SIZE_DRC_Y + 4, 0, "Error closing slcmpt -%X", -res); } end: