Skip to content

Commit

Permalink
Version 2.0 (Add back Game Cart support)
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicMastr committed May 12, 2023
1 parent a9fa064 commit 2954101
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ add_link_options(

include_directories(
${VDSUITE_KERNEL_INCLUDE_DIRECTORIES}
${VDSUITE_STANDARD_INCLUDE_DIRECTORIES}
${PSP2_SNC_STANDARD_INCLUDE_DIRECTORIES}
)

link_directories(
Expand Down
7 changes: 5 additions & 2 deletions repatch.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
rePatch v3.0 reDux0 -- PATCHING WITH FREEDOM
rePatch reLoaded v2.0
SonicMastr is fixing this now
Brought to you by SilicaTeam 2.0 --
Dev and "reV ur engines" by @dots_tb @CelesteBlue123 (especially his """holy grail""" and self_auth info)
Expand Down Expand Up @@ -177,7 +180,7 @@ static char eboot_path[PATH_MAX];
static int sceIoOpen_patched(const char *filename, int flag, SceIoMode mode) {
int ret = -1;

if ((flag & SCE_O_WRONLY) != SCE_O_WRONLY && sceSblACMgrIsSceShell(0) && (strncmp(filename, "ux0:", sizeof("ux0:") -1) == 0) && strstr(filename, "/eboot.bin") != NULL){
if ((flag & SCE_O_WRONLY) != SCE_O_WRONLY && sceSblACMgrIsSceShell(0) && ((strncmp(filename, "ux0:", sizeof("ux0:") -1) == 0) || (strncmp(filename, "gro0:", sizeof("gro0:") -1) == 0)) && strstr(filename, "/eboot.bin") != NULL){
stripDevice(filename, eboot_path);
resolveFolder(eboot_path);
if((ret = TAI_CONTINUE(int, ref_hooks[1], eboot_path, flag, mode))>0) {
Expand Down

0 comments on commit 2954101

Please sign in to comment.