diff --git a/source/homebrew/homebrew.cpp b/source/homebrew/homebrew.cpp index aea35097..a58a5265 100644 --- a/source/homebrew/homebrew.cpp +++ b/source/homebrew/homebrew.cpp @@ -137,17 +137,12 @@ int BootHomebrew() memcpy(BOOTER_ADDR, app_booter_bin, app_booter_bin_size); DCFlushRange(BOOTER_ADDR, app_booter_bin_size); - ICInvalidateRange(BOOTER_ADDR, app_booter_bin_size); entrypoint entry = (entrypoint) BOOTER_ADDR; - - if(!IsDollZ(homebrewbuffer)) - memcpy(ARGS_ADDR, &args, sizeof(args)); - else - memset(ARGS_ADDR, 0, sizeof(args)); - + + memmove(ARGS_ADDR, &args, sizeof(args)); DCFlushRange(ARGS_ADDR, sizeof(args) + args.length); - + SYS_ResetSystem(SYS_SHUTDOWN, 0, 0); entry(); diff --git a/source/loader/disc.c b/source/loader/disc.c index 220ecf2e..a0985dc8 100644 --- a/source/loader/disc.c +++ b/source/loader/disc.c @@ -384,7 +384,7 @@ s32 Disc_BootPartition(u64 offset, u8 vidMode, bool vipatch, bool countryString, /* Shutdown IOS subsystems */ SYS_ResetSystem(SYS_SHUTDOWN, 0, 0); - /* Originally from tueidj - taken from NeoGamme (thx) */ + /* Originally from tueidj - taken from NeoGamma (thx) */ *(vu32*)0xCC003024 = 1; // fix for PeppaPig