diff --git a/source/fs.c b/source/fs.c index 7a3f190..b8c3f38 100644 --- a/source/fs.c +++ b/source/fs.c @@ -379,7 +379,7 @@ bool PathCopyVirtual(const char* destdir, const char* orig) { return false; // check if destination exists if (f_stat(dest, NULL) == FR_OK) { - if (!ShowPrompt(true, "Destination already exists:\n%s\nOverwrite existing file(s)?", deststr)) + if (!ShowPrompt(true, "Destination already exists:\n%s\nOverwrite existing file?", deststr)) return false; } if (f_open(&dfile, dest, FA_WRITE | FA_CREATE_ALWAYS) != FR_OK) diff --git a/source/godmode.c b/source/godmode.c index 79abadb..9429aac 100644 --- a/source/godmode.c +++ b/source/godmode.c @@ -7,7 +7,7 @@ #include "virtual.h" #include "image.h" -#define VERSION "0.4.5" +#define VERSION "0.4.6" #define N_PANES 2 #define IMG_DRV "789I" diff --git a/source/nand/nand.c b/source/nand/nand.c index 768bd34..6721782 100644 --- a/source/nand/nand.c +++ b/source/nand/nand.c @@ -295,7 +295,7 @@ int WriteNandSectors(const u8* buffer, u32 sector, u32 count, u32 keyslot, u32 n for (u32 s = 0; s < count; s += (NAND_BUFFER_SIZE / 0x200)) { u32 pcount = min((NAND_BUFFER_SIZE/0x200), (count - s)); memcpy(NAND_BUFFER, buffer + (s*0x200), pcount * 0x200); - if ((keyslot == 0x11) && (sector == 0x96)) CryptSector0x96((u8*) buffer, true); + if ((keyslot == 0x11) && (sector == 0x96)) CryptSector0x96(NAND_BUFFER, true); else if (keyslot < 0x40) CryptNand(NAND_BUFFER, sector + s, pcount, keyslot); if (nand_dst == NAND_EMUNAND) { int errorcode = 0;