-updated to version 2.7-
*Fixed a bug that caused a black screen when using PADHook and Progressive mode patching at the same time git-svn-id: svn://localhost/Users/andi/Downloads/code/trunk@35 be6c1b03-d731-4111-a574-e37d80d43941
This commit is contained in:
parent
b6e6f8ca44
commit
8e3d855eac
@ -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( 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",
|
dbgprintf("Patch:Cheatfile is too large, it must not be large than %d bytes!\n",
|
||||||
0x2E80 - (0x1800+DBGSize-8));
|
0x2E70 - (0x1800+DBGSize-8));
|
||||||
} else {
|
} else {
|
||||||
if( f_read( &CodeFD, (void*)(0x1800+DBGSize-8), CodeFD.fsize, &read ) == FR_OK )
|
if( f_read( &CodeFD, (void*)(0x1800+DBGSize-8), CodeFD.fsize, &read ) == FR_OK )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user