Skip to content

Commit

Permalink
Upload bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
RealYoti committed Dec 28, 2022
1 parent bc1265c commit fc0bd23
Show file tree
Hide file tree
Showing 3 changed files with 6,262 additions and 2 deletions.
94 changes: 94 additions & 0 deletions payload/bootstrap.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
https://github.com/RealYoti/henkaku
diff --git a/bootstrap/bootstrap.c b/bootstrap/bootstrap.c
index eb62117..6fc0a2a 100644
--- a/bootstrap/bootstrap.c
+++ b/bootstrap/bootstrap.c
@@ -10,7 +10,7 @@
#include "pspdebug.h"

#define WHITE 0xFFFFFFFF
-#define RED 0xFF0000FF
+#define AMBER 0xFF00BFFF

#define printf psvDebugScreenPrintf

@@ -47,7 +47,7 @@ enum Items {
EXIT,
INSTALL_HENKAKU,
DOWNLOAD_VITASHELL,
- PERSONALIZE_SAVEDATA,
+//PERSONALIZE_SAVEDATA,
RESET_TAIHEN_CONFIG
};

@@ -55,7 +55,7 @@ const char *items[] = {
"Exit",
"Install HENkaku",
"Download VitaShell",
- "Personalize savedata",
+//"Personalize savedata",
"Reset taiHEN config.txt"
};

@@ -378,7 +378,7 @@ int reset_taihen_config() {

return 0;
}
-
+/*
int personalize_savedata(int syscall_id) {
int res;
int fd;
@@ -402,7 +402,7 @@ int personalize_savedata(int syscall_id) {

return 0;
}
-
+*/
int enter_cross = 0;
uint32_t old_buttons = 0, current_buttons = 0, pressed_buttons = 0;

@@ -450,17 +450,17 @@ int print_menu(int sel) {
int i;

psvDebugScreenSetXY(0, 0);
- psvDebugScreenSetTextColor(RED);
- printf("\n h-encore bootstrap menu\n\n");
+ psvDebugScreenSetTextColor(AMBER);
+ printf("\n HENlo bootstrap menu\n\n");

for (i = 0; i < N_ITEMS; i++) {
- psvDebugScreenSetTextColor(sel == i ? RED : WHITE);
+ psvDebugScreenSetTextColor(sel == i ? AMBER : WHITE);
printf(" [%c] %s\n", sel == i ? '*' : ' ', items[i]);
}

printf("\n");

- psvDebugScreenSetTextColor(RED);
+ psvDebugScreenSetTextColor(AMBER);
printf("----------------------------\n\n");

return 0;
@@ -518,7 +518,7 @@ int module_start(SceSize args, void *argp) {

if ((enter_cross && pressed_buttons & SCE_CTRL_CROSS) ||
(!enter_cross && pressed_buttons & SCE_CTRL_CIRCLE)) {
- psvDebugScreenSetTextColor(RED);
+ psvDebugScreenSetTextColor(AMBER);

if (sel == EXIT) {
printf(" > Exiting...\n");
@@ -532,10 +532,12 @@ int module_start(SceSize args, void *argp) {
printf(" > Downloading VitaShell...\n");
sceKernelDelayThread(500 * 1000);
res = download_vitashell();
+/*
} else if (sel == PERSONALIZE_SAVEDATA) {
printf(" > Personalizing savedata...\n");
sceKernelDelayThread(500 * 1000);
res = personalize_savedata(syscall_id);
+*/
} else if (sel == RESET_TAIHEN_CONFIG) {
if (wait_confirm(" > Are you sure you want to reset taiHEN config.txt?\n")) {
printf(" > Resetting taiHEN config.txt...\n");

0 comments on commit fc0bd23

Please sign in to comment.