mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-22 03:09:15 +01:00
forgot something
This commit is contained in:
parent
714aafa267
commit
eb052a0fe9
@ -10,7 +10,7 @@ extern "C" {
|
||||
bool Load_Dol(void **buffer, int* dollen, char * path);
|
||||
bool Remove_001_Protection(void *Address, int Size);
|
||||
u32 load_dol_image(void * dolstart);
|
||||
u32 Load_Dol_from_disc(u32 doloffset, u8 videoSelected, u8 patchcountrystring, u8 vipatch);
|
||||
u32 Load_Dol_from_disc(u32 doloffset, u8 videoSelected, u8 patchcountrystring, u8 vipatch, u8 cheat);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -440,7 +440,7 @@ s32 Apploader_Run(entry_point *entry, u8 cheat, u8 videoSelected, u8 vipatch, u8
|
||||
|
||||
FST_ENTRY *fst = (FST_ENTRY *)*(u32 *)0x80000038;
|
||||
|
||||
*entry = (entry_point) Load_Dol_from_disc(fst[alternatedoloffset].fileoffset, videoSelected, patchcountrystring, vipatch);
|
||||
*entry = (entry_point) Load_Dol_from_disc(fst[alternatedoloffset].fileoffset, videoSelected, patchcountrystring, vipatch, cheat);
|
||||
|
||||
if (*entry == 0)
|
||||
SYS_ResetSystem(SYS_RETURNTOMENU, 0, 0);
|
||||
|
@ -295,11 +295,14 @@ s32 Disc_BootPartition(u64 offset, u8 videoselected, u8 cheat, u8 vipatch, u8 pa
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
bool cheatloaded = false;
|
||||
|
||||
if (cheat == 1) {
|
||||
/* OCARINA STUFF - FISHEARS*/
|
||||
if(ocarina_load_code((u8 *) gameid) > 0)
|
||||
{
|
||||
ocarina_do_code();
|
||||
cheatloaded = true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -335,7 +338,7 @@ s32 Disc_BootPartition(u64 offset, u8 videoselected, u8 cheat, u8 vipatch, u8 pa
|
||||
|
||||
appentrypoint = (u32) p_entry;
|
||||
|
||||
if (cheat == 1)
|
||||
if (cheat == 1 && cheatloaded)
|
||||
{
|
||||
__asm__(
|
||||
"lis %r3, appentrypoint@h\n"
|
||||
|
Loading…
Reference in New Issue
Block a user