Skip to content

Commit

Permalink
Added in Skip MPEG to prevent the game from freezing on the emulator …
Browse files Browse the repository at this point in the history
…if the user did not have the SKIP MPEG game fix selected in the emulator settings.
  • Loading branch information
Zero1UP committed Jul 27, 2018
1 parent 3807575 commit db5bec2
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 36 deletions.
73 changes: 38 additions & 35 deletions fragmentPatcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,43 +489,46 @@ int getVTblAddr(void)
*(u32*)0x8007A1F8 = 0x00000000; //DNS Data 5
*(u32*)0x8007A1FC = 0x005E03B4; //DNS Address 6
*(u32*)0x8007A200 = 0x00000000; //DNS Data 6

*(u32*)0x8007A204 = 0x000C0000; //Begin Routine Loader that is going to be needed to load data due to how elf's are loaded in this game
*(u32*)0x8007A208 = 0x3c08000c;
*(u32*)0x8007A20C = 0x000C0004;
*(u32*)0x8007A210 = 0x35080034;
*(u32*)0x8007A214 = 0x000C0008;
*(u32*)0x8007A218 = 0x8d090000;
*(u32*)0x8007A21C = 0x000C000C;
*(u32*)0x8007A220 = 0x8d0a0004;
*(u32*)0x8007A224 = 0x000C0010;
*(u32*)0x8007A228 = 0x11200005;
*(u32*)0x8007A22C = 0x000C0018;
*(u32*)0x8007A230 = 0xad2a0000;
*(u32*)0x8007A234 = 0x000C0020;
*(u32*)0x8007A238 = 0x1000FFF9;
*(u32*)0x8007A23C = 0x000C0024;
*(u32*)0x8007A240 = 0x25080008;
*(u32*)0x8007A244 = 0x000C0028;
*(u32*)0x8007A248 = 0x03e00008;
*(u32*)0x8007A204 = 0x00113cf0; //Skip MPGEG Address
*(u32*)0x8007A208 = 0x24020001; //Skip MPGEG Data


*(u32*)0x8007A20C = 0x000C0000; //Begin Routine Loader that is going to be needed to load data due to how elf's are loaded in this game
*(u32*)0x8007A210 = 0x3c08000c;
*(u32*)0x8007A214 = 0x000C0004;
*(u32*)0x8007A218 = 0x35080034;
*(u32*)0x8007A21C = 0x000C0008;
*(u32*)0x8007A220 = 0x8d090000;
*(u32*)0x8007A224 = 0x000C000C;
*(u32*)0x8007A228 = 0x8d0a0004;
*(u32*)0x8007A22C = 0x000C0010;
*(u32*)0x8007A230 = 0x11200005;
*(u32*)0x8007A234 = 0x000C0018;
*(u32*)0x8007A238 = 0xad2a0000;
*(u32*)0x8007A23C = 0x000C0020;
*(u32*)0x8007A240 = 0x1000FFF9;
*(u32*)0x8007A244 = 0x000C0024;
*(u32*)0x8007A248 = 0x25080008;
*(u32*)0x8007A24C = 0x000C0028;
*(u32*)0x8007A250 = 0x03e00008;

//Begin Online Code Stack
*(u32*)0x8007A24C = 0x000C0034;
*(u32*)0x8007A250 = 0x00177528;
*(u32*)0x8007A254 = 0x000C0038;
*(u32*)0x8007A258 = 0x00001021;
*(u32*)0x8007A25C = 0x000C003C;
*(u32*)0x8007A260 = 0x0028733c;
*(u32*)0x8007A264 = 0x000C0040;
*(u32*)0x8007A268 = 0x00003021;
*(u32*)0x8007A26C = 0x000C0044;
*(u32*)0x8007A270 = 0x002CB9F0;
*(u32*)0x8007A274 = 0x000C0048;
*(u32*)0x8007A278 = 0x00003021;

*(u32*)0x8007A27C = 0x0013182C; //SCEPadRead Hook (online only)
*(u32*)0x8007A280 = 0x08030000;
*(u32*)0x8007A284 = 0x00000000; //Terminating Line
*(u32*)0x8007A254 = 0x000C0034;
*(u32*)0x8007A258 = 0x00177528;
*(u32*)0x8007A25C = 0x000C0038;
*(u32*)0x8007A260 = 0x00001021;
*(u32*)0x8007A264 = 0x000C003C;
*(u32*)0x8007A268 = 0x0028733c;
*(u32*)0x8007A26C = 0x000C0040;
*(u32*)0x8007A270 = 0x00003021;
*(u32*)0x8007A274 = 0x000C0044;
*(u32*)0x8007A278 = 0x002CB9F0;
*(u32*)0x8007A27C = 0x000C0048;
*(u32*)0x8007A280 = 0x00003021;

*(u32*)0x8007A284 = 0x0013182C; //SCEPadRead Hook (online only)
*(u32*)0x8007A288 = 0x08030000;
*(u32*)0x8007A28C = 0x00000000; //Terminating Line
// write kernal hook
*(u32*)0x800002FC = 0x0C01E800;

Expand Down
5 changes: 4 additions & 1 deletion menu.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "menu.h"
void menu_DisplayMain(void)
{
char *currentVersion = "Patch Version: 1.01\n";
char *currentVersion = "Patch Version: 1.02\n";


scr_printf(".hack//Fragment Patcher by 1UP\n");
Expand Down Expand Up @@ -29,7 +29,10 @@ void menu_PatchInformation(void)
scr_printf("DNS Updated to connect to Alkalime's Lobby Server\n");
scr_printf("No translations are available.\n");
scr_printf("Disable item loss on crash. (ONLINE ONLY) \n");
scr_printf("Disables the intro video from being played. This is an issue with the emulator unless the game fix is applied manually. \n");
scr_printf("You will not have to have this setting set. \n");
scr_printf("Press CROSS to return to main screen. \n");

}

void menu_GameInformation(void)
Expand Down

0 comments on commit db5bec2

Please sign in to comment.