Skip to content

Commit

Permalink
After doing some debugging, I found out that the original address I c…
Browse files Browse the repository at this point in the history
…hecked for what file was currently active actually changes between different pcsx2 versions. I found another address that appears to remain static between versions and shouldn't break the check anymore.
  • Loading branch information
Zero1UP committed Aug 24, 2019
1 parent d364645 commit 5f30694
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion FragmentPatcher.cds
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lw t3, $a22c(t0)
// _01.ELF < Offline ELF
lw t4, $a230(t0)
// currently loaded ELF
setreg t5,$80014c14
setreg t5,$8007537C
// Load the currently loaded elf text
lw t6 zero(t5)

Expand Down
8 changes: 4 additions & 4 deletions fragmentPatcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ int port, slot;
extern void readPad(void);
extern int j_defhandler;


void initalise();
void initalise(void)
{
int ret;
Expand Down Expand Up @@ -477,8 +477,8 @@ int getVTblAddr(void)
*(u32*)0x8007A23C = 0x8D0AA228;
*(u32*)0x8007A240 = 0x8D0BA22C;
*(u32*)0x8007A244 = 0x8D0CA230;
*(u32*)0x8007A248 = 0x3C0D8001;
*(u32*)0x8007A24C = 0x35AD4C14;
*(u32*)0x8007A248 = 0x3C0D8007;
*(u32*)0x8007A24C = 0x35AD537C;
*(u32*)0x8007A250 = 0x8DAE0000;
*(u32*)0x8007A254 = 0x11C00023;
*(u32*)0x8007A258 = 0x00000000;
Expand Down Expand Up @@ -544,9 +544,9 @@ int getVTblAddr(void)
*(u32*)0x8007A700 = 0x002a87a8;
*(u32*)0x8007A704 = 0x24020001;

*(u32*)0x800002FC = 0x0C01E800;


*(u32*)0x800002FC = 0x0C01E800;


ee_kmode_exit();
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.0.4 beta \n";
char *currentVersion = "Patch Version: 1.0.4 beta 2 \n";

scr_printf(".hack//Fragment Patcher by 1UP\n");
scr_printf(currentVersion);
Expand Down Expand Up @@ -29,6 +29,9 @@ void menu_PatchInformation(void)
scr_printf("No translations are available.\n");
scr_printf("Disable item loss on crash. (ONLINE ONLY) \n");
scr_printf("You will not have to have this setting set. \n");
scr_printf("------------------------------------------- \n");
scr_printf("BETA INFORMATION!! \n");
scr_printf("Changed where the patcher checks for which file is loaded. \n");
scr_printf("Press CROSS to return to main screen.");

}

0 comments on commit 5f30694

Please sign in to comment.