Skip to content

Commit

Permalink
removed duplicate eboot_path definition
Browse files Browse the repository at this point in the history
  • Loading branch information
krazynez committed Jan 14, 2024
1 parent 9946d81 commit 5bd600d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Makefile.signed
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ endif
TARGET = downgrader
OBJS = main.o kernel_exploit.o kernel_land.o rebootex.o utils.o extras.o extra_stubs.o libasm/libinfinityUser.o

INCDIR = ../include
INCDIR = include
CFLAGS = -Os -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS) -c
Expand Down
5 changes: 2 additions & 3 deletions src/downgrade660_ctrl/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,15 @@
#include <systemctrl.h>
#include <libinfinity.h>

#include "common.h"

#include "utils.h"
#include "patch_table.h"
#include "decrypt.h"

PSP_MODULE_INFO("DowngraderCTRL", 0x3007, 1, 0);


char eboot_path[] = "ef0:/PSP/GAME/UPDATE/EBOOT.PBP";


/* function pointers */
int (* PrologueModule)(void *modmgr_param, SceModule2 *mod) = NULL;
STMOD_HANDLER previous = NULL;
Expand Down
4 changes: 2 additions & 2 deletions src/downgrade_ctrl/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
#include <systemctrl.h>
#include <libinfinity.h>

#include <common.h>

#include "utils.h"
#include "patch_table.h"
#include "decrypt.h"

PSP_MODULE_INFO("DowngraderCTRL", 0x3007, 1, 0);

char eboot_path[] = "ef0:/PSP/GAME/UPDATE/EBOOT.PBP";

/* function pointers */
int (* PrologueModule)(void *modmgr_param, SceModule *mod) = NULL;
STMOD_HANDLER previous = NULL;
Expand Down
4 changes: 4 additions & 0 deletions src/include/common.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#ifndef _COMMON_H_
#define _COMMON_H_
#endif
char eboot_path[] = "ef0:/PSP/GAME/UPDATE/EBOOT.PBP";
3 changes: 2 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include <stdarg.h>
#include <malloc.h>

#include "common.h"

#include "utils.h"
#include "kernel_land.h"
#include "kernel_exploit.h"
Expand All @@ -31,7 +33,6 @@ PSP_HEAP_SIZE_KB(3 << 10);

#define DOWNGRADER_VER ("7.3")

char eboot_path[] = "ef0:/PSP/GAME/UPDATE/EBOOT.PBP";

typedef struct __attribute__((packed))
{
Expand Down

0 comments on commit 5bd600d

Please sign in to comment.