mirror of
https://github.com/d0k3/SafeB9SInstaller.git
synced 2025-06-26 13:42:45 +00:00
SafeSigHaxInstaller -> SafeB9SInstaller
This commit is contained in:
parent
70791cd9b5
commit
bb6043b453
4
Makefile
4
Makefile
@ -16,7 +16,7 @@ include $(DEVKITARM)/ds_rules
|
|||||||
# INCLUDES is a list of directories containing header files
|
# INCLUDES is a list of directories containing header files
|
||||||
# SPECS is the directory containing the important build and link files
|
# SPECS is the directory containing the important build and link files
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
export TARGET := SafeSigHaxInstaller
|
export TARGET := SafeB9SInstaller
|
||||||
BUILD := build
|
BUILD := build
|
||||||
SOURCES := source source/common source/fs source/crypto source/fatfs source/nand source/safety
|
SOURCES := source source/common source/fs source/crypto source/fatfs source/nand source/safety
|
||||||
DATA := data
|
DATA := data
|
||||||
@ -163,7 +163,7 @@ clean:
|
|||||||
@-make clean --no-print-directory -C CakesROP
|
@-make clean --no-print-directory -C CakesROP
|
||||||
@echo clean BrahmaLoader...
|
@echo clean BrahmaLoader...
|
||||||
@-make clean --no-print-directory -C BrahmaLoader
|
@-make clean --no-print-directory -C BrahmaLoader
|
||||||
@echo clean SafeSigHaxInstaller...
|
@echo clean SafeB9SInstaller...
|
||||||
@rm -fr $(BUILD) $(OUTPUT_D) $(RELEASE)
|
@rm -fr $(BUILD) $(OUTPUT_D) $(RELEASE)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# SafeSigHaxInstaller
|
# SafeB9SInstaller
|
||||||
Safe, simple, user-friendly installer for sighaxed FIRMs
|
Safe, simple, user-friendly installer for sighaxed FIRMs
|
||||||
|
|
||||||
**DON'T USE THIS YET**
|
**DON'T USE THIS YET**
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
#define VERSION "0.0.3"
|
#define VERSION "0.0.3"
|
||||||
|
|
||||||
// input / output paths
|
// input / output paths
|
||||||
#define INPUT_PATH "0:/sighax"
|
#define INPUT_PATH "0:/boot9strap"
|
||||||
|
|
||||||
// buffer area defines (big buffer for firm)
|
// buffer area defines (big buffer for firm)
|
||||||
#define WORK_BUFFER ((u8*) 0x21000000)
|
#define WORK_BUFFER ((u8*) 0x21000000)
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
#define FIRM0_NAND_OFFSET FIRM_NAND_OFFSET
|
#define FIRM0_NAND_OFFSET FIRM_NAND_OFFSET
|
||||||
#define FIRM1_NAND_OFFSET (FIRM_NAND_OFFSET + (FIRM_NAND_SIZE/2))
|
#define FIRM1_NAND_OFFSET (FIRM_NAND_OFFSET + (FIRM_NAND_SIZE/2))
|
||||||
|
|
||||||
#define NAME_SIGHAXFIRM (INPUT_PATH "/sighaxfirm.bin")
|
#define NAME_SIGHAXFIRM (INPUT_PATH "/boot9strap.firm")
|
||||||
#define NAME_SIGHAXFIRMSHA (INPUT_PATH "/sighaxfirm.bin.sha")
|
#define NAME_SIGHAXFIRMSHA (INPUT_PATH "/boot9strap.firm.sha")
|
||||||
#define NAME_SECTOR0x96 (INPUT_PATH "/secret_sector.bin")
|
#define NAME_SECTOR0x96 (INPUT_PATH "/secret_sector.bin")
|
||||||
#define NAME_FIRMBACKUP (INPUT_PATH "/firm0firm1.bak")
|
#define NAME_FIRMBACKUP (INPUT_PATH "/firm0firm1.bak")
|
||||||
#define NAME_SECTORBACKUP (INPUT_PATH "/sector0x96.bak")
|
#define NAME_SECTORBACKUP (INPUT_PATH "/sector0x96.bak")
|
||||||
@ -50,7 +50,7 @@ u32 ShowInstallerStatus(void) {
|
|||||||
const u32 pos_y0 = pos_yb + 50;
|
const u32 pos_y0 = pos_yb + 50;
|
||||||
const u32 stp = 14;
|
const u32 stp = 14;
|
||||||
|
|
||||||
DrawStringF(BOT_SCREEN, pos_xb, pos_yb, COLOR_STD_FONT, COLOR_STD_BG, "SafeSigHaxInstaller v" VERSION "\n" "--------------------------" "\n" "https://github.com/d0k3/SafeSigHaxInstaller");
|
DrawStringF(BOT_SCREEN, pos_xb, pos_yb, COLOR_STD_FONT, COLOR_STD_BG, "SafeB9SInstaller v" VERSION "\n" "-----------------------" "\n" "https://github.com/d0k3/SafeB9SInstaller");
|
||||||
|
|
||||||
DrawStringF(BOT_SCREEN, pos_x0, pos_y0 + (0*stp), COLOR_STD_FONT, COLOR_STD_BG, "ARM9LoaderHax -");
|
DrawStringF(BOT_SCREEN, pos_x0, pos_y0 + (0*stp), COLOR_STD_FONT, COLOR_STD_BG, "ARM9LoaderHax -");
|
||||||
DrawStringF(BOT_SCREEN, pos_x0, pos_y0 + (1*stp), COLOR_STD_FONT, COLOR_STD_BG, "MicroSD Card -");
|
DrawStringF(BOT_SCREEN, pos_x0, pos_y0 + (1*stp), COLOR_STD_FONT, COLOR_STD_BG, "MicroSD Card -");
|
||||||
@ -72,7 +72,7 @@ u32 ShowInstallerStatus(void) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 SafeSigHaxInstaller(void) {
|
u32 SafeB9SInstaller(void) {
|
||||||
UINT bt;
|
UINT bt;
|
||||||
|
|
||||||
// initialization
|
// initialization
|
||||||
@ -277,7 +277,7 @@ u32 SafeSigHaxInstaller(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if we end up here: uhoh
|
// if we end up here: uhoh
|
||||||
ShowPrompt(false, "SafeSigHaxInstaller failed!\nThis really should not have happened :/.");
|
ShowPrompt(false, "SafeB9SInstaller failed!\nThis really should not have happened :/.");
|
||||||
ShowPrompt(false, "You may launch an external payload\nto try and fix up your system.\n \nThis may be your LAST CHANCE!\nUse it wisely.");
|
ShowPrompt(false, "You may launch an external payload\nto try and fix up your system.\n \nThis may be your LAST CHANCE!\nUse it wisely.");
|
||||||
const char* optionstr[2] = { "Unmount SD card", "Run " INPUT_PATH "/payload.bin" };
|
const char* optionstr[2] = { "Unmount SD card", "Run " INPUT_PATH "/payload.bin" };
|
||||||
while (true) {
|
while (true) {
|
||||||
|
@ -3,4 +3,4 @@
|
|||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
u32 ShowInstallerStatus(void);
|
u32 ShowInstallerStatus(void);
|
||||||
u32 SafeSigHaxInstaller(void);
|
u32 SafeB9SInstaller(void);
|
||||||
|
@ -13,7 +13,7 @@ void Reboot()
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
u32 ret = SafeSigHaxInstaller();
|
u32 ret = SafeB9SInstaller();
|
||||||
ShowInstallerStatus(); // update installer status one last time
|
ShowInstallerStatus(); // update installer status one last time
|
||||||
if (ret) ShowPrompt(false, "SigHaxed FIRM was not installed!\nCheck lower screen for info.");
|
if (ret) ShowPrompt(false, "SigHaxed FIRM was not installed!\nCheck lower screen for info.");
|
||||||
else ShowPrompt(false, "SigHaxed FIRM install success!");
|
else ShowPrompt(false, "SigHaxed FIRM install success!");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user