Skip to content

Commit

Permalink
update to 16.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kronos2308 committed Mar 21, 2023
1 parent 71d6900 commit a3b62bf
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ INCLUDES := include
EXEFS_SRC := exefs_src
APP_TITLE := Haku33
APP_AUTHOR := Kronos2308
APP_VERSION := 4.8
APP_VERSION := 5.2
ROMFS := romfs

#---------------------------------------------------------------------------------
Expand Down
Binary file modified icon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions romfs/README.md

This file was deleted.

Binary file modified romfs/TegraExplorer.bin
Binary file not shown.
Binary file removed romfs/ini/Haku33.bmp
Binary file not shown.
3 changes: 0 additions & 3 deletions romfs/ini/Haku33.ini

This file was deleted.

4 changes: 2 additions & 2 deletions romfs/startup.te
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#REQUIRE KEYS
is=["8000000000000120","80000000000000d1","8000000000000047"]
is=["8000000000000120","8000000000000047"]
p=println
pr=print
pe={pause() exit()}
Expand Down Expand Up @@ -34,7 +34,7 @@ p("\n\nCleaning!")
movefile("sd:/Nintendo", "sd:/Hamburgesa_Nintendo")
movefile("sd:/Nintendo", "sd:/Hamburgesa_Nintendo_1")

delfile("sd:/Haku33.bin")
delfile("sd:/TegraExplorer.bin")
delfile("sd:/startup.te")
delfile("sd:/Haku33.nro")
delfile("sd:/Switch/Haku33.nro")
Expand Down
37 changes: 37 additions & 0 deletions romfs/startup_mariko.te
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#REQUIRE KEYS
is=["8000000000000120","8000000000000047"]
p=println
pr=print
pe={pause() exit()}
println("Haku33 Kronos2308 Hard Reset, Kronos2308 - Fork from TegraExplorer")
wait={t=timer()while(timer()<(t+tw)){print("Wait for",(t+tw-timer()/1000),"seconds \r")}}
p("System wiper\n")
mount=mountsys
if(mount("SYSTEM")){p("Mount failed!")pe()}
color(0x0000FF)
p("Press power to wipe, any other key to exit")a=pause()if(!a.power){exit()}clear()
color(0xFF0000)
pr("Deleting system saves... ")
f=readdir("bis:/save")
if(f.folders.len()!=0){p("Folders in save dir???")pe()}
f.files.foreach("x"){if(!is.contains(x)){if(delfile("bis:/save/"+x)){p("File deletion failed: ", x)pe()}}}
pr("Done!\nDeleting user dirs...")ud=["Album","Contents","save","saveMeta","temp"]
if(mount("USER")){p("Mount failed!")pe()}
ud.foreach("x"){pr("\n"+x,"")if(deldir("bis:/"+x)){p("Dir deletion failed")pe()}mkdir("bis:/"+x)}
mkdir("bis:/Contents/placehld")mkdir("bis:/Contents/registered")
color(0x00FF00)
p("\n\nCleaning!")

movefile("sd:/Nintendo", "sd:/Hamburgesa_Nintendo")
movefile("sd:/Nintendo", "sd:/Hamburgesa_Nintendo_1")

delfile("sd:/TegraExplorer.bin")
delfile("sd:/startup.te")
delfile("sd:/Haku33.nro")
delfile("sd:/Switch/Haku33.nro")
delfile("sd:/Switch/Haku33/Haku33.nro")
movefile("sd:/payload.bin.bak", "sd:/payload.bin")

p("\n\nDone!")
p("\n\nPress Any button to full power off!")
power(3)
13 changes: 7 additions & 6 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,24 +127,25 @@ void CheckHardware()
}

void SetupClean (){
copy_me("romfs:/TegraExplorer.bin", "/Haku33.bin");
copy_me("romfs:/startup.te", "/startup.te");
if (is_patched){
led_on(1);
//force boot
copy_me("romfs:/boot.dat", "/boot.dat");
copy_me("romfs:/boot.ini", "boot.ini");
copy_me("romfs:/boot.ini", "/boot.ini");
//copy keys
mkdir("sdmc:/bootloader",0777);
copy_me("romfs:/hekate_keys.ini", "/bootloader/hekate_keys.ini");
//copy Start
mkdir("sdmc:/bootloader/res",0777);
mkdir("sdmc:/bootloader/ini",0777);
copy_me("romfs:/ini/Haku33.bmp", "/bootloader/res/Haku33.bmp");
copy_me("romfs:/ini/Haku33.ini", "/bootloader/ini/Haku33.ini");
rename("/payload.bin","/payload.bin.bak");
copy_me("romfs:/TegraExplorer.bin", "/payload.bin");
copy_me("romfs:/startup_mariko.te", "/startup.te");
led_on(1);
spsmInitialize();
spsmShutdown(true);
}else{
copy_me("romfs:/TegraExplorer.bin", "/TegraExplorer.bin");
copy_me("romfs:/startup.te", "/startup.te");
led_on(1);
bpcInitialize();
if(init_slp()){reboot_to_payload();}
Expand Down
2 changes: 1 addition & 1 deletion source/spl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace spl

if (R_FAILED(ret = splGetConfig(SplConfigItem_HardwareType, &hardware_type)))
{
return hardware[4];
return hardware[6];
}
else
return hardware[hardware_type];
Expand Down

0 comments on commit a3b62bf

Please sign in to comment.