Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseAaronLopezGarcia committed Sep 7, 2024
1 parent c312b04 commit de7100f
Show file tree
Hide file tree
Showing 89 changed files with 90 additions and 88 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ copy-bin:
$(Q)cp common/include/kubridge.h dist/PC/sdk/include/
$(Q)cp common/include/systemctrl.h dist/PC/sdk/include/
$(Q)cp common/include/systemctrl_se.h dist/PC/sdk/include/
$(Q)cp common/include/module2.h dist/PC/sdk/include/
$(Q)cp common/include/ark.h dist/PC/sdk/include/
$(Q)cp -r contrib/PC/ciso dist/PC/

encrypt-prx: \
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion common/include/functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <sdk.h>
#include <psploadexec_kernel.h>
#include "module2.h"
#include "globals.h"
#include "ark.h"

struct minZipHeader {
char pk[2];
Expand Down
2 changes: 1 addition & 1 deletion common/include/rebootconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <systemctrl_se.h>
#include <functions.h>
#include "ansi_c_functions.h"
#include "globals.h"
#include "ark.h"

#define REBOOTEX_MAX_SIZE 0x5000
#define BTCNF_MAGIC 0x0F803001
Expand Down
4 changes: 2 additions & 2 deletions common/include/systemctrl.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ extern "C"{
#include <pspiofilemgr_kernel.h>
#include <pspthreadman_kernel.h>
#include <psploadcore.h>
#include <globals.h>
#include <ark.h>
#include <pspkernel.h>
#include <pspinit.h>
#include "module2.h"
Expand All @@ -38,7 +38,7 @@ extern "C"{
//#define sctrlKernelQuerySystemCall sceKernelQuerySystemCall

// Prologue Module Start Handler
typedef void (* STMOD_HANDLER)(SceModule2 *);
typedef int (* STMOD_HANDLER)(SceModule2 *);

// Thread Context
typedef struct SceThreadContext SceThreadContext;
Expand Down
2 changes: 1 addition & 1 deletion common/include/systemctrl_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ extern "C"{
#endif

#include "module2.h"
#include "globals.h"
#include "ark.h"

/*
* This File contains the required headers for exported, but internally used
Expand Down
2 changes: 1 addition & 1 deletion core/compat/pentazemin/impose_patch.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <systemctrl.h>
#include <systemctrl_se.h>
#include <systemctrl_private.h>
#include <globals.h>
#include <ark.h>
#include "functions.h"
#include "macros.h"
#include "exitgame.h"
Expand Down
2 changes: 1 addition & 1 deletion core/compat/pentazemin/init_patch.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <systemctrl.h>
#include <systemctrl_se.h>
#include <systemctrl_private.h>
#include <globals.h>
#include <ark.h>
#include "functions.h"
#include "macros.h"
#include "exitgame.h"
Expand Down
2 changes: 1 addition & 1 deletion core/compat/pentazemin/loadexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <systemctrl.h>
#include <systemctrl_se.h>
#include <systemctrl_private.h>
#include <globals.h>
#include <ark.h>
#include "functions.h"
#include "macros.h"

Expand Down
2 changes: 1 addition & 1 deletion core/compat/pentazemin/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <systemctrl.h>
#include <systemctrl_se.h>
#include <systemctrl_private.h>
#include <globals.h>
#include <ark.h>
#include "functions.h"
#include "macros.h"
#include "exitgame.h"
Expand Down
2 changes: 1 addition & 1 deletion core/compat/pentazemin/syspatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <systemctrl.h>
#include <systemctrl_se.h>
#include <systemctrl_private.h>
#include <globals.h>
#include <ark.h>
#include "functions.h"
#include "macros.h"
#include "exitgame.h"
Expand Down
2 changes: 1 addition & 1 deletion core/compat/pentazemin/vitamem.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <pspiofilemgr.h>
#include <stdio.h>
#include <string.h>
#include "globals.h"
#include "ark.h"
#include <systemctrl.h>
#include "sysmem.h"

Expand Down
2 changes: 1 addition & 1 deletion core/compat/psp/high_mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <pspiofilemgr.h>
#include <stdio.h>
#include <string.h>
#include "globals.h"
#include "ark.h"
#include <systemctrl.h>
#include "sysmem.h"

Expand Down
2 changes: 1 addition & 1 deletion core/compat/psp/libertas.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <string.h>
#include <pspiofilemgr.h>
#include "libertas.h"
#include "globals.h"
#include "ark.h"
#include "macros.h"
#include "systemctrl_se.h"

Expand Down
2 changes: 1 addition & 1 deletion core/compat/psp/main.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <pspsdk.h>
#include <pspinit.h>
#include <globals.h>
#include <ark.h>
#include <graphics.h>
#include <macros.h>
#include <module2.h>
Expand Down
2 changes: 1 addition & 1 deletion core/compat/psp/pops4tool.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <pspsdk.h>
#include <pspsysmem_kernel.h>
#include <pspinit.h>
#include <globals.h>
#include <ark.h>
#include <graphics.h>
#include <macros.h>
#include <module2.h>
Expand Down
2 changes: 1 addition & 1 deletion core/compat/psp/region_free.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <systemctrl_se.h>
#include <stdio.h>
#include <string.h>
#include "globals.h"
#include "ark.h"
#include "macros.h"
#include "module2.h"
#include "region_free.h"
Expand Down
2 changes: 1 addition & 1 deletion core/compat/psp/syspatch.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <pspsdk.h>
#include <pspsysmem_kernel.h>
#include <pspinit.h>
#include <globals.h>
#include <ark.h>
#include <graphics.h>
#include <macros.h>
#include <module2.h>
Expand Down
2 changes: 1 addition & 1 deletion core/compat/vita/filesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <string.h>
#include <stdio.h>
#include <module2.h>
#include <globals.h>
#include <ark.h>
#include <systemctrl.h>
#include <systemctrl_private.h>
#include <macros.h>
Expand Down
2 changes: 1 addition & 1 deletion core/compat/vita/gameinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <rebootconfig.h>
#include <systemctrl.h>

#include "globals.h"
#include "ark.h"
#include "macros.h"
#include "module2.h"

Expand Down
2 changes: 1 addition & 1 deletion core/compat/vita/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <systemctrl.h>
#include <systemctrl_se.h>
#include <systemctrl_private.h>
#include <globals.h>
#include <ark.h>
#include "functions.h"
#include "macros.h"
#include "exitgame.h"
Expand Down
2 changes: 1 addition & 1 deletion core/compat/vita/syspatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <systemctrl.h>
#include <systemctrl_se.h>
#include <systemctrl_private.h>
#include <globals.h>
#include <ark.h>
#include "functions.h"
#include "macros.h"
#include "exitgame.h"
Expand Down
2 changes: 1 addition & 1 deletion core/compat/vitapops/main.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <pspsdk.h>
#include <globals.h>
#include <ark.h>
#include <graphics.h>
#include <macros.h>
#include <module2.h>
Expand Down
2 changes: 1 addition & 1 deletion core/compat/vitapops/popsdisplay.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <pspsdk.h>
#include <globals.h>
#include <ark.h>
#include <macros.h>
#include <module2.h>
#include <pspdisplay_kernel.h>
Expand Down
2 changes: 1 addition & 1 deletion core/compat/vitapops/syspatch.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <pspsdk.h>
#include <globals.h>
#include <ark.h>
#include <macros.h>
#include <module2.h>
#include <pspdisplay_kernel.h>
Expand Down
2 changes: 1 addition & 1 deletion core/inferno/iodrv_funcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <pspthreadman_kernel.h>
#include "systemctrl_private.h"
#include "inferno.h"
#include "globals.h"
#include "ark.h"
#include "macros.h"

/*
Expand Down
2 changes: 1 addition & 1 deletion core/inferno/isocache.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <systemctrl.h>
#include <systemctrl_se.h>
#include "systemctrl_private.h"
#include "globals.h"
#include "ark.h"
#include "macros.h"

static u32 read_call = 0;
Expand Down
2 changes: 1 addition & 1 deletion core/inferno/isoread.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "systemctrl_private.h"
#include "inferno.h"
#include "lz4.h"
#include "globals.h"
#include "ark.h"
#include "macros.h"

#define CSO_MAGIC 0x4F534943 // CISO
Expand Down
2 changes: 1 addition & 1 deletion core/inferno/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <pspinit.h>
#include "systemctrl_private.h"
#include "inferno.h"
#include "globals.h"
#include "ark.h"
#include "macros.h"

PSP_MODULE_INFO("PRO_Inferno_Driver", 0x1000, 2, 1);
Expand Down
2 changes: 1 addition & 1 deletion core/inferno/umd.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <psprtc.h>
#include "systemctrl_private.h"
#include "inferno.h"
#include "globals.h"
#include "ark.h"
#include "macros.h"

extern int sceKernelGetCompiledSdkVersion(void);
Expand Down
2 changes: 1 addition & 1 deletion core/popcorn/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <systemctrl.h>
#include <systemctrl_private.h>
#include <macros.h>
#include <globals.h>
#include <ark.h>
#include <functions.h>

extern unsigned char g_icon_png[6108];
Expand Down
2 changes: 1 addition & 1 deletion core/stargate/chn_iso.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "systemctrl_private.h"
#include "kubridge.h"
#include "strsafe.h"
#include "globals.h"
#include "ark.h"
#include "macros.h"

typedef struct _pspMsPrivateDirent {
Expand Down
2 changes: 1 addition & 1 deletion core/stargate/gamefix.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <systemctrl.h>
#include <systemctrl_private.h>
#include <macros.h>
#include <globals.h>
#include <ark.h>
#include <functions.h>


Expand Down
2 changes: 1 addition & 1 deletion core/stargate/io_patch.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <systemctrl.h>
#include <systemctrl_private.h>
#include <macros.h>
#include <globals.h>
#include <ark.h>
#include <functions.h>

struct DeviceSize {
Expand Down
2 changes: 1 addition & 1 deletion core/stargate/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <systemctrl.h>
#include <systemctrl_private.h>
#include <macros.h>
#include <globals.h>
#include <ark.h>
#include <functions.h>
#include "loadmodule_patch.h"
#include "nodrm_patch.h"
Expand Down
2 changes: 1 addition & 1 deletion core/systemctrl/debug/dummy.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <pspsdk.h>
#include <systemctrl.h>
#include <systemctrl_private.h>
#include <globals.h>
#include <ark.h>
#include "rebootex.h"
#include "modulemanager.h"
#include "loadercore.h"
Expand Down
2 changes: 1 addition & 1 deletion core/systemctrl/debug/printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#include <systemctrl_private.h>
#include <stdarg.h>
#include <string.h>
#include <globals.h>
#include <ark.h>

#if DEBUG >= 3

Expand Down
2 changes: 1 addition & 1 deletion core/systemctrl/include/loadexec_patch.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <sdk.h>
#include <module2.h>
#include <macros.h>
#include <globals.h>
#include <ark.h>

extern void patchLoadExec(SceModule2* loadexec, u32 LoadReboot, u32 GetUserLevel, int k1_checks);

Expand Down
2 changes: 1 addition & 1 deletion core/systemctrl/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <pspsdk.h>
#include <systemctrl.h>
#include <systemctrl_private.h>
#include <globals.h>
#include <ark.h>
#include "rebootex.h"
#include "modulemanager.h"
#include "loadercore.h"
Expand Down
2 changes: 1 addition & 1 deletion core/systemctrl/src/cryptography.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <string.h>
#include <macros.h>
#include <module2.h>
#include <globals.h>
#include <ark.h>
#include <functions.h>
#include "imports.h"
#include "elf.h"
Expand Down
2 changes: 1 addition & 1 deletion core/systemctrl/src/exitgame.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <systemctrl_se.h>
#include <macros.h>
#include <string.h>
#include <globals.h>
#include <ark.h>
#include <functions.h>
#include <graphics.h>

Expand Down
2 changes: 1 addition & 1 deletion core/systemctrl/src/gameinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <rebootconfig.h>
#include <systemctrl.h>

#include "globals.h"
#include "ark.h"
#include "macros.h"
#include "module2.h"

Expand Down
2 changes: 1 addition & 1 deletion core/systemctrl/src/hooknids.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <stdio.h>
#include <string.h>
#include <macros.h>
#include <globals.h>
#include <ark.h>
#include <systemctrl.h>
#include "nidresolver.h"
#include "imports.h"
Expand Down
2 changes: 1 addition & 1 deletion core/systemctrl/src/interruptman.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <pspkernel.h>
#include <stdio.h>
#include <string.h>
#include <globals.h>
#include <ark.h>
#include <macros.h>
#include "module2.h"

Expand Down
2 changes: 1 addition & 1 deletion core/systemctrl/src/leda.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "globals.h"
#include "ark.h"
#include "macros.h"
#include <systemctrl.h>

Expand Down
Loading

0 comments on commit de7100f

Please sign in to comment.