diff --git a/Patches.c b/Patches.c index 8217f95..e6b28e4 100644 --- a/Patches.c +++ b/Patches.c @@ -800,10 +800,10 @@ void DoPatches( char *ptr, u32 size, u32 SectionOffset ) if( f_open( &CodeFD, path, FA_OPEN_EXISTING|FA_READ ) == FR_OK ) { - if( CodeFD.fsize >= 0x2E80 - (0x1800+DBGSize-8) ) + if( CodeFD.fsize >= 0x2E70 - (0x1800+DBGSize-8) ) { dbgprintf("Patch:Cheatfile is too large, it must not be large than %d bytes!\n", - 0x2E80 - (0x1800+DBGSize-8)); + 0x2E70 - (0x1800+DBGSize-8)); } else { if( f_read( &CodeFD, (void*)(0x1800+DBGSize-8), CodeFD.fsize, &read ) == FR_OK ) { diff --git a/global.h b/global.h index 5efd29f..f711d0d 100644 --- a/global.h +++ b/global.h @@ -15,7 +15,7 @@ #define PADHOOK 1 #define CONFIG_VERSION 0x00000002 -#define DML_VERSION 0x00020006 +#define DML_VERSION 0x00020007 #define DI_SUCCESS 1 #define DI_ERROR 2