From 7fa64ca7263d52f08693f381eaa98d656ffcd530 Mon Sep 17 00:00:00 2001 From: "crediar@rypp.net" Date: Sun, 24 Feb 2013 19:16:28 +0000 Subject: [PATCH] -updated to version 2.8- *Fixed a bug in GCLoader that broke the progressive patch *Moved progressive patch back 16 bytes, this fixes PADHOOK and progressive patching not working at the same time Thanks to FIX94 who sacrificed his school carer for testing this release! git-svn-id: svn://localhost/Users/andi/Downloads/code/trunk@36 be6c1b03-d731-4111-a574-e37d80d43941 --- Patches.c | 4 ++-- global.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Patches.c b/Patches.c index fa65ecc..34eac9a 100644 --- a/Patches.c +++ b/Patches.c @@ -796,10 +796,10 @@ void DoPatches( char *ptr, u32 size, u32 SectionOffset ) if( f_open( &CodeFD, path, FA_OPEN_EXISTING|FA_READ ) == FR_OK ) { - if( CodeFD.fsize >= 0x2E70 - (0x1800+DBGSize-8) ) + if( CodeFD.fsize >= 0x2E60 - (0x1800+DBGSize-8) ) { dbgprintf("Patch:Cheatfile is too large, it must not be large than %d bytes!\n", - 0x2E70 - (0x1800+DBGSize-8)); + 0x2E60 - (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 6f348ee..182a35b 100644 --- a/global.h +++ b/global.h @@ -15,7 +15,7 @@ #define PADHOOK 1 #define CONFIG_VERSION 0x00000002 -#define DM_VERSION 0x00020007 +#define DM_VERSION 0x00020008 #define DI_SUCCESS 1 #define DI_ERROR 2