Skip to content

Commit

Permalink
3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Kronos2308 committed Jul 16, 2021
1 parent 4c901ff commit aa137dd
Show file tree
Hide file tree
Showing 17 changed files with 394 additions and 255 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 := 3.6
APP_VERSION := 3.8
ROMFS := romfs

#---------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion compile.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dir /b *.nro>%temp%\filete.txt
set /p File=<%temp%\filete.txt
del "%temp%\filete.txt"
title -%IP% - %File%
make clean
::make clean
make -j7
set a=%errorlevel%
echo ------------------------------------------
Expand Down
135 changes: 0 additions & 135 deletions romfs/EmuKiller/startup.te

This file was deleted.

3 changes: 0 additions & 3 deletions romfs/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
## EN
* 1 Copy [startup.te](startup.te?raw=true) and Copy [poweroff.bin](poweroff.bin) to the SD Root
* 2 Inject The payload [TegraExplorer.bin](https://github.com/StarDustCFW/Haku33/raw/master/romfs/TegraExplorer.bin)
* * No button input needed, Caution
### For clean emunand use [startup.te](EmuKiller/startup.te?raw=true) This one

## ES
* 1 Copia [startup.te](startup.te?raw=true) y Copia [poweroff.bin](poweroff.bin) a la raiz de la SD
* 2 injecta [TegraExplorer.bin](https://github.com/StarDustCFW/Haku33/raw/master/romfs/TegraExplorer.bin) via RCM
* * No pedira una combinación de botones, usar con cuidado
### Para Limpiar emunand debera usar [startup.te](EmuKiller/startup.te?raw=true) este

#### [Descargar-Downloads](https://github.com/StarDustCFW/Haku33/archive/master.zip)
### [Releases](https://github.com/StarDustCFW/Haku33/releases/latest)
Binary file added romfs/ini/Haku33.bmp
Binary file not shown.
3 changes: 3 additions & 0 deletions romfs/ini/Haku33.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[Haku33]
payload=/Haku33.bin
icon=/bootloader/res/Haku33.bmp
25 changes: 22 additions & 3 deletions romfs/startup.te
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,27 @@ println()

BTN_X = 0x2

println("Mounting Sysmmc")
mount = mmcConnect("SYSMMC")
if (_EMU) {
print("A to Continue")
print("Wipe from: ")
menuOptions = ["Sysmmc", "Emummc"]
res = menu(menuOptions, 0)
}
else() {
res = 0
}

clearscreen()

if (res == 0){
println("Mounting Sysmmc")
mount = mmcConnect("SYSMMC")
}

if (res == 1){
println("Mounting Emummc")
mount = mmcConnect("EMUMMC")
}

if (mount){
println("Error connecting mmc!")
Expand Down Expand Up @@ -102,8 +121,8 @@ println("\n\nCleaning!")
fileMove("sd:/Nintendo", "sd:/Hamburgesa_Nintendo")
fileMove("sd:/Nintendo", "sd:/Hamburgesa_Nintendo_1")

fileDel("sd:/startup.te")
fileDel("sd:/Haku33.bin")
fileDel("sd:/startup.te")
fileDel("sd:/Haku33.nro")
fileDel("sd:/Switch/Haku33.nro")
fileDel("sd:/Switch/Haku33/Haku33.nro")
Expand Down
45 changes: 45 additions & 0 deletions source/ams_bpc.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
* Copyright (c) 2018-2020 Atmosphère-NX
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <switch.h>
#include <string.h>
#include "ams_bpc.h"
#include "service_guard.h"

static Service g_amsBpcSrv;

NX_GENERATE_SERVICE_GUARD(amsBpc);

Result _amsBpcInitialize(void) {
Handle h;
Result rc = svcConnectToNamedPort(&h, "bpc:ams"); /* TODO: ams:bpc */
if (R_SUCCEEDED(rc)) serviceCreate(&g_amsBpcSrv, h);
return rc;
}

void _amsBpcCleanup(void) {
serviceClose(&g_amsBpcSrv);
}

Service *amsBpcGetServiceSession(void) {
return &g_amsBpcSrv;
}

Result amsBpcSetRebootPayload(const void *src, size_t src_size) {
return serviceDispatch(&g_amsBpcSrv, 65001,
.buffer_attrs = { SfBufferAttr_In | SfBufferAttr_HipcMapAlias },
.buffers = { { src, src_size } },
);
}
31 changes: 31 additions & 0 deletions source/ams_bpc.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Copyright (c) 2018-2020 Atmosphère-NX
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include <switch.h>

#ifdef __cplusplus
extern "C" {
#endif

Result amsBpcInitialize();
void amsBpcExit();
Service *amsBpcGetServiceSession(void);

Result amsBpcSetRebootPayload(const void *src, size_t src_size);

#ifdef __cplusplus
}
#endif
8 changes: 4 additions & 4 deletions source/lang.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ language LG;
LG.text4 = "\n\n\x1b[30;1m-------- LO DEVORARE TODO --------\x1b[0m\n\n";
LG.text5 = "\n\nPULSA \x1b[3%u;1m ZL\x1b[3%u;1m -\x1b[3%u;1m +\x1b[3%u;1m ZR \x1b[0m JUNTOS PARA LIMPIAR\n\n";
LG.text6 = "\x1b[33;1m*\x1b[0m Recuerda Desinstalar Incognito Desde Incognito-RCM\n\n";
LG.text7 = "\x1b[33;1m*\x1b[0m Recuerda Desactivar el Modo Avion ";
LG.text8 = "y borrar todas las redes de Internet\n\n";
LG.text7 = "\x1b[33;1m*\x1b[0m Luego del Reinicio ve a Hekate -> More configs -> Haku33\n\n";
LG.text8 = " No se puede Reiniciar al Payload en una consola Mariko\n";
LG.text9 = "\n\x1b[33;1m*\x1b[0m Si se congela mucho tiempo, Es que ha fallado. Pulsa POWER 15s \n\ny haslo de nuevo\n\n";
LG.text0 = "\x1b[32;1m*\x1b[0m Desabilitando FTP de SXOS\n";
LG.text11 = "\x1b[32;1m*\x1b[0m Esto no esta pensado para uasrse en EMU\n";
Expand All @@ -81,8 +81,8 @@ language LG;
LG.text4 = "\n\n\x1b[30;1m-------- I WILL CONSUME EVERYTHING --------\x1b[0m\n\n";
LG.text5 = "\n\nPRESS \x1b[3%u;1m ZL\x1b[3%u;1m -\x1b[3%u;1m +\x1b[3%u;1m ZR \x1b[0m TOGETHER TO CLEAN\n\n";
LG.text6 = "\x1b[33;1m*\x1b[0m Remember Uninstall Incognito from Incognito-RCM\n\n";
LG.text7 = "\x1b[33;1m*\x1b[0m Rememmber to Disable the Airplane mode ";
LG.text8 = "and delete all net configs\n\n";
LG.text7 = "\x1b[33;1m*\x1b[0m After the Reboot go to Hekate -> More configs -> Haku33\n\n";
LG.text8 = " Reboot to payload cannot be used on a Mariko system\n";
LG.text9 = "\n\x1b[33;1m*\x1b[0m If it freezes for a long time, It has failed. Press POWER 15s \n\nand try again \n\n";
LG.text0 = "\x1b[32;1m*\x1b[0m Disabling SXOS FTP\n";
LG.text11 = "\x1b[32;1m*\x1b[0m This is not intended to be used at EMU\n";
Expand Down
Loading

0 comments on commit aa137dd

Please sign in to comment.