Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
krazynez committed May 30, 2024
1 parent 3df7920 commit 33c1153
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Makefile.signed
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS) -c

LIBDIR = lib
LIBS = -lpsppower -lpspkubridge
LIBS = -lpsppower

PSP_FW_VERSION = 271

Expand Down
9 changes: 4 additions & 5 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <malloc.h>

#include "common.h"
#include "kubridge.h"

#include "utils.h"
#include "kernel_land.h"
Expand Down Expand Up @@ -74,12 +73,12 @@ u32 get_updater_version(char *argv)
eboot_path[0] = 'm';
eboot_path[1] = 's';
}

/* check for failure */
int model = execKernelFunction(getModel);
SceUID fd = -1;
if(model == 4 && strcasecmp(argv, "ef0") > 0) { return 0xFA4E; /*FAKE some reason CS on ef0 does not like reading from ms0 */}
if ((fd = sceIoOpen(eboot_path, PSP_O_RDONLY, 0777) < 0))
if(model == 4 && (strcasecmp(argv, "ef0")) > 0) { return 0xFA4E; /*FAKE some reason CS on ef0 does not like reading from ms0 */}
SceUID fd = sceIoOpen(eboot_path, PSP_O_RDONLY, 0777);
if (fd < 0)
{
printf("\nHmmmm? Are you sure you have EBOOT.PBP in PSP/GAME/UPDATE/ ???\n");
/* error firmware */
Expand Down

0 comments on commit 33c1153

Please sign in to comment.