make return-to-hbf work with ABHFIX

This commit is contained in:
Christopher Roy Bratusek 2012-06-01 12:17:11 +02:00
parent 4622e2fa3a
commit cb25758f96
2 changed files with 8 additions and 3 deletions

View File

@ -1 +1,2 @@
void LoadHBF();
u8 hbcStubAvailable();

View File

@ -24,14 +24,13 @@ distribution.
-------------------------------------------------------------*/
#include <stdlib.h>
#include <string.h>
#include <gccore.h>
#include <ogc/machine/processor.h>
#include "gecko.h"
#include "Tools/load_channel.h"
#include "filelist.h"
#define CHECK_AHB 0x0D800064
#define MEM2_PROT 0x0D8B420A
@ -72,6 +71,11 @@ s32 Patch_ahbprot(void)
//break;
}
}
memcpy((void*)0x80001800, stub_bin, stub_bin_size);
DCFlushRange((void*)0x80001800,stub_bin_size);
hbcStubAvailable();
}
return false;
}