Skip to content

Commit

Permalink
Added fatms371mod to Full Flash Install (FFI)
Browse files Browse the repository at this point in the history
  • Loading branch information
krazynez committed Sep 27, 2024
1 parent 5171ac9 commit c1ca2f2
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 8 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ copy-bin:
$(Q)cp extras/menus/arkMenu/themes/ARK_Revamped/THEME.ARK dist/ARK_01234/THEME.ARK # Launcher resources
$(Q)cp extras/menus/vshmenu/satelite.prx dist/ARK_01234/VSHMENU.PRX # New Default & Advanced VSH Menu
$(Q)cp extras/apps/installer/EBOOT.PBP dist/PSP/ARK_Full_Installer # Full installer
$(Q)cp contrib/PSP/fatms371mod/*.prx dist/PSP/ARK_Full_Installer/ # Full installer
$(Q)cp extras/apps/uninstaller/EBOOT.PBP dist/PSP/ARK_Uninstaller # ARK-4 Uninstaller
$(Q)cp contrib/UPDATER.TXT dist/ARK_01234/
$(Q)cp contrib/SETTINGS.TXT dist/ARK_01234/
Expand Down
Binary file added contrib/PSP/fatms371mod/fatms371.prx
Binary file not shown.
Binary file added contrib/PSP/fatms371mod/fatmshlp.prx
Binary file not shown.
1 change: 1 addition & 0 deletions extras/apps/installer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ EXTRA_TARGETS = EBOOT.PBP

PSP_FW_VERSION = 660


PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
22 changes: 17 additions & 5 deletions extras/apps/installer/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <systemctrl_se.h>
#include <ark.h>
#include "macros.h"
#include "../../../loader/rebootex/pspbtcnf.h"

PSP_MODULE_INFO("ARKInstaller", 0x800, 1, 0);
PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_VSH | PSP_THREAD_ATTR_VFPU);
Expand All @@ -28,7 +29,9 @@ struct {
{VSH_MENU, VSH_MENU_FLASH},
{RECOVERY_PRX, RECOVERY_PRX_FLASH},
{UPDATER_FILE, UPDATER_FILE_FLASH},
{ARK_SETTINGS, ARK_SETTINGS_FLASH}
{ARK_SETTINGS, ARK_SETTINGS_FLASH},
{PATH_FATMS_371, PATH_FATMS_371_FLASH},
{PATH_FATMS_HELPER, PATH_FATMS_HELPER_FLASH},
};


Expand Down Expand Up @@ -133,11 +136,20 @@ int main(int argc, char * argv[])
open_flash();

char path[ARK_PATH_SIZE];
int len = strlen(argv[0])-8;
char fatms[len];
for (int i=0; i<N_FLASH_FILES; i++){
strcpy(path, ark_config.arkpath);
strcat(path, flash_files[i].orig);
pspDebugScreenPrintf("Installing %s to %s\n", flash_files[i].orig, flash_files[i].dest);
copy_file(path, flash_files[i].dest);
if(strstr(flash_files[i].orig, "fatms")) {
snprintf(fatms, strlen(argv[0])-8, "%s", argv[0]);
strcpy(path, fatms);
strcat(path, flash_files[i].orig);
}
else {
strcpy(path, ark_config.arkpath);
strcat(path, flash_files[i].orig);
}
pspDebugScreenPrintf("Installing %s to %s\n", flash_files[i].orig, flash_files[i].dest);
copy_file(path, flash_files[i].dest);
}

// Kill Main Thread
Expand Down
8 changes: 5 additions & 3 deletions loader/rebootex/pspbtcnf.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
#define PATH_RECOVERY_ME PATH_FLASH0 "vsh/module/recovery.prx"

// fatms371
#define PATH_FATMS_HELPER PATH_FLASH0 "kd/_fatmshlp.prx"
#define PATH_FATMS_371 PATH_FLASH0 "kd/_fatms371.prx"
#define PATH_FATMS_HELPER_FLASH PATH_FLASH0 "kd/_fatmshlp.prx"
#define PATH_FATMS_371_FLASH PATH_FLASH0 "kd/_fatms371.prx"
#define PATH_FATMS_HELPER "fatmshlp.prx"
#define PATH_FATMS_371 "fatms371.prx"

typedef struct _btcnf_header
{
Expand Down Expand Up @@ -59,4 +61,4 @@ enum {
MLNAPP_RUNLEVEL = 0x80,
};

#endif
#endif

0 comments on commit c1ca2f2

Please sign in to comment.