From 7b0247ae33cd9e781500811244dc2148fea13558 Mon Sep 17 00:00:00 2001
From: jon <97558900+erew70@users.noreply.github.com>
Date: Sun, 28 Jul 2024 00:19:27 -0500
Subject: [PATCH 01/19] Update README.md
---
README.md | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/README.md b/README.md
index 6576350..31d8cd1 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,8 @@
+# why this fork
+
+this fork was created to also kill a0 to stop system information
+because... when you unban a switch you dont want to send over banned info while using donor info to authenticate :(
+
## Lock-Logs (L-L)
From de1e7f7f778c8aff784da6322d467437051149fe Mon Sep 17 00:00:00 2001
From: jon <97558900+erew70@users.noreply.github.com>
Date: Sun, 28 Jul 2024 00:23:36 -0500
Subject: [PATCH 02/19] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 31d8cd1..7c47e46 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
this fork was created to also kill a0 to stop system information
because... when you unban a switch you dont want to send over banned info while using donor info to authenticate :(
-
+
## Lock-Logs (L-L)
* Stop sending telemetry to Nintendo
From 70a2d0d61f7cb61af7a40aac44adf84352da448c Mon Sep 17 00:00:00 2001
From: jon <97558900+erew70@users.noreply.github.com>
Date: Sun, 28 Jul 2024 00:24:32 -0500
Subject: [PATCH 03/19] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 7c47e46..8bf4f82 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
this fork was created to also kill a0 to stop system information
because... when you unban a switch you dont want to send over banned info while using donor info to authenticate :(
-
+
## Lock-Logs (L-L)
* Stop sending telemetry to Nintendo
From 3d72d5806f6651325e1e96446707732cba95f3e2 Mon Sep 17 00:00:00 2001
From: jon <97558900+erew70@users.noreply.github.com>
Date: Sun, 28 Jul 2024 00:25:35 -0500
Subject: [PATCH 04/19] Update README.md
---
README.md | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 8bf4f82..22fe686 100644
--- a/README.md
+++ b/README.md
@@ -3,15 +3,17 @@
this fork was created to also kill a0 to stop system information
because... when you unban a switch you dont want to send over banned info while using donor info to authenticate :(
-
+
## Lock-Logs (L-L)
* Stop sending telemetry to Nintendo
* Permanent modification of the save of [BCAT](https://switchbrew.org/wiki/BCAT_services)(Play Report)
-0x80000000000000A1
+0x80000000000000A0 (stop system information being sent over to avoid ban after unban)
+
+0x80000000000000A1 (stop bannable telemetry)
-0x80000000000000A2
+0x80000000000000A2 (stop bannable telemetry
[Source](https://switchbrew.org/wiki/Flash_Filesystem#System_Savegames)
From fac306454f31df6ff89ffb427acb9a4c92a003f8 Mon Sep 17 00:00:00 2001
From: jon <97558900+erew70@users.noreply.github.com>
Date: Sun, 28 Jul 2024 00:26:23 -0500
Subject: [PATCH 05/19] Update README.md
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 22fe686..f54781e 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
this fork was created to also kill a0 to stop system information
because... when you unban a switch you dont want to send over banned info while using donor info to authenticate :(
-
+yes switch unbanning is possible and very easy to do, literally the last thing to do and the hardest is.. telemetry
## Lock-Logs (L-L)
@@ -13,7 +13,7 @@ because... when you unban a switch you dont want to send over banned info while
0x80000000000000A1 (stop bannable telemetry)
-0x80000000000000A2 (stop bannable telemetry
+0x80000000000000A2 (stop bannable telemetry)
[Source](https://switchbrew.org/wiki/Flash_Filesystem#System_Savegames)
From 76010b3bbda76ba43dddab8730ad835ba7eb937c Mon Sep 17 00:00:00 2001
From: jon <97558900+erew70@users.noreply.github.com>
Date: Sun, 28 Jul 2024 00:26:33 -0500
Subject: [PATCH 06/19] Update README.md
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index f54781e..20566be 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,7 @@
this fork was created to also kill a0 to stop system information
because... when you unban a switch you dont want to send over banned info while using donor info to authenticate :(
+
yes switch unbanning is possible and very easy to do, literally the last thing to do and the hardest is.. telemetry
From 978acce674170f60f081085c944c9df18b882d9c Mon Sep 17 00:00:00 2001
From: jon <97558900+erew70@users.noreply.github.com>
Date: Sun, 28 Jul 2024 00:28:51 -0500
Subject: [PATCH 07/19] Update README.md
---
README.md | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 20566be..145f6bc 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,7 @@
this fork was created to also kill a0 to stop system information
because... when you unban a switch you dont want to send over banned info while using donor info to authenticate :(
+ until the dev who made this adds this fork via pull request then this fork will stay up
yes switch unbanning is possible and very easy to do, literally the last thing to do and the hardest is.. telemetry
@@ -18,7 +19,7 @@ yes switch unbanning is possible and very easy to do, literally the last thing t
[Source](https://switchbrew.org/wiki/Flash_Filesystem#System_Savegames)
-* This stops sending telemetry to Nintendo
+* This stops sending telemetry and system information to Nintendo to avoid bans after unbanning your switch ([Guide](https://github.com/erew70/SWITCH-UNBAN-GUIDE)
## Reason
* kill telemetry service to avoid get banned with cfw
From dffbbc57c66098d51c58e37ca284d66f9d6807ca Mon Sep 17 00:00:00 2001
From: jon <97558900+erew70@users.noreply.github.com>
Date: Sun, 28 Jul 2024 00:29:02 -0500
Subject: [PATCH 08/19] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 145f6bc..deaf535 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
this fork was created to also kill a0 to stop system information
because... when you unban a switch you dont want to send over banned info while using donor info to authenticate :(
- until the dev who made this adds this fork via pull request then this fork will stay up
+ until the dev who made this adds this fork via pull request then this fork will stay up
yes switch unbanning is possible and very easy to do, literally the last thing to do and the hardest is.. telemetry
From fcd93676ce8bd87d5d4a49ac8a592cba4affbc68 Mon Sep 17 00:00:00 2001
From: jon <97558900+erew70@users.noreply.github.com>
Date: Sun, 28 Jul 2024 00:29:18 -0500
Subject: [PATCH 09/19] Update README.md
---
README.md | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/README.md b/README.md
index deaf535..5031706 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,7 @@
# why this fork
this fork was created to also kill a0 to stop system information
-because... when you unban a switch you dont want to send over banned info while using donor info to authenticate :(
- until the dev who made this adds this fork via pull request then this fork will stay up
+because... when you unban a switch you dont want to send over banned info while using donor info to authenticate :( until the dev who made this adds this fork via pull request then this fork will stay up
yes switch unbanning is possible and very easy to do, literally the last thing to do and the hardest is.. telemetry
From 28ccef3dfb6452e53fca2e03a4e4f0e03c32be5d Mon Sep 17 00:00:00 2001
From: jon <97558900+erew70@users.noreply.github.com>
Date: Sun, 28 Jul 2024 00:29:30 -0500
Subject: [PATCH 10/19] Update README.md
---
README.md | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 5031706..0dc3dbc 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,9 @@
# why this fork
this fork was created to also kill a0 to stop system information
-because... when you unban a switch you dont want to send over banned info while using donor info to authenticate :( until the dev who made this adds this fork via pull request then this fork will stay up
+because... when you unban a switch you dont want to send over banned info while using donor info to authenticate :(
+
+until the dev who made this adds this fork via pull request then this fork will stay up
yes switch unbanning is possible and very easy to do, literally the last thing to do and the hardest is.. telemetry
From 89108bd0af0b19d8643a6d9fdbc0ff2ef135712d Mon Sep 17 00:00:00 2001
From: jon <97558900+erew70@users.noreply.github.com>
Date: Sun, 28 Jul 2024 00:33:09 -0500
Subject: [PATCH 11/19] Update README.md
---
README.md | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 0dc3dbc..df5ff55 100644
--- a/README.md
+++ b/README.md
@@ -50,5 +50,12 @@ Tested on:
### Known Bugs
* None
-
+
+WHAT IS SAFE:
+
+Hacking and mods online: ✅
+ this is safe as long as their is no reporting in the game (and also if the game servers log everything but most likely they dont)
+
+Cracked games: ❔
+This is sort of safe, if you wanna use cracked games and not get banned make sure to turn wifi off to turn off aauth or block it using a proxy then close the game restart the switch and turn wifi back on to use cracked games safely (i do not endorse piracy but this is what would have to be done to use them and not get banned
From cb297aa8176494e7efc65c16b2533fa09e6388e5 Mon Sep 17 00:00:00 2001
From: jon <97558900+erew70@users.noreply.github.com>
Date: Sun, 28 Jul 2024 00:35:03 -0500
Subject: [PATCH 12/19] Update README.md
---
README.md | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index df5ff55..bb7e347 100644
--- a/README.md
+++ b/README.md
@@ -54,8 +54,10 @@ Tested on:
WHAT IS SAFE:
-Hacking and mods online: ✅
- this is safe as long as their is no reporting in the game (and also if the game servers log everything but most likely they dont)
+# Hacking and mods online: ✅
+ ## this is safe as long as their is no reporting in the game (and also if the game servers log everything but most likely they dont)
-Cracked games: ❔
-This is sort of safe, if you wanna use cracked games and not get banned make sure to turn wifi off to turn off aauth or block it using a proxy then close the game restart the switch and turn wifi back on to use cracked games safely (i do not endorse piracy but this is what would have to be done to use them and not get banned
+# Cracked games: ❔
+ ## This is sort of safe, if you wanna use cracked games and not get banned make sure to turn wifi off before opening said cracked game to turn off aauth or block it using a
+ ## proxy then close the game
+ ## restart the switch and turn wifi back on when done playing to use cracked games safely (i do not endorse piracy but this is what would have to be done to use them and not get banned)
From 011a9293540d624f87f4bb468a1530f795cd7d44 Mon Sep 17 00:00:00 2001
From: jon <97558900+erew70@users.noreply.github.com>
Date: Sun, 28 Jul 2024 00:35:43 -0500
Subject: [PATCH 13/19] Update README.md
---
README.md | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/README.md b/README.md
index bb7e347..beb2d8b 100644
--- a/README.md
+++ b/README.md
@@ -58,6 +58,4 @@ WHAT IS SAFE:
## this is safe as long as their is no reporting in the game (and also if the game servers log everything but most likely they dont)
# Cracked games: ❔
- ## This is sort of safe, if you wanna use cracked games and not get banned make sure to turn wifi off before opening said cracked game to turn off aauth or block it using a
- ## proxy then close the game
- ## restart the switch and turn wifi back on when done playing to use cracked games safely (i do not endorse piracy but this is what would have to be done to use them and not get banned)
+ ## This is sort of safe, if you wanna use cracked games and not get banned make sure to turn wifi off before opening said cracked game to turn off aauth or block it using a proxy then close the game restart the switch and turn wifi back on when done playing to use cracked games safely (i do not endorse piracy but this is what would have to be done to use them and not get banned)
From 0a1e10856dee1362cb13636464ae67edadc414f9 Mon Sep 17 00:00:00 2001
From: jon <97558900+erew70@users.noreply.github.com>
Date: Sun, 28 Jul 2024 00:36:05 -0500
Subject: [PATCH 14/19] Update README.md
---
README.md | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index beb2d8b..c79a98d 100644
--- a/README.md
+++ b/README.md
@@ -52,10 +52,10 @@ Tested on:
-WHAT IS SAFE:
+# WHAT IS SAFE:
-# Hacking and mods online: ✅
- ## this is safe as long as their is no reporting in the game (and also if the game servers log everything but most likely they dont)
+## Hacking and mods online: ✅
+ ### this is safe as long as their is no reporting in the game (and also if the game servers log everything but most likely they dont)
-# Cracked games: ❔
- ## This is sort of safe, if you wanna use cracked games and not get banned make sure to turn wifi off before opening said cracked game to turn off aauth or block it using a proxy then close the game restart the switch and turn wifi back on when done playing to use cracked games safely (i do not endorse piracy but this is what would have to be done to use them and not get banned)
+## Cracked games: ❔
+ ### This is sort of safe, if you wanna use cracked games and not get banned make sure to turn wifi off before opening said cracked game to turn off aauth or block it using a proxy then close the game restart the switch and turn wifi back on when done playing to use cracked games safely (i do not endorse piracy but this is what would have to be done to use them and not get banned)
From 8068935e1a29e607754a09e4d1bcb0352efe3021 Mon Sep 17 00:00:00 2001
From: jon <97558900+erew70@users.noreply.github.com>
Date: Sun, 28 Jul 2024 00:38:03 -0500
Subject: [PATCH 15/19] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index c79a98d..8ad5064 100644
--- a/README.md
+++ b/README.md
@@ -58,4 +58,4 @@ Tested on:
### this is safe as long as their is no reporting in the game (and also if the game servers log everything but most likely they dont)
## Cracked games: ❔
- ### This is sort of safe, if you wanna use cracked games and not get banned make sure to turn wifi off before opening said cracked game to turn off aauth or block it using a proxy then close the game restart the switch and turn wifi back on when done playing to use cracked games safely (i do not endorse piracy but this is what would have to be done to use them and not get banned)
+ ### This is sort of safe, if you wanna use cracked games and not get banned make sure to turn wifi off before opening said cracked game to turn off aauth or block it using a proxy then close the game restart the switch and turn wifi back on when done playing to use cracked games safely and do not open said cracked game when connected to internet, even with telemetry blockers you will still get banned :( (i do not endorse piracy but this is what would have to be done to use them and not get banned)
From 97953ff7640d443807d31416839d49e82296e7f4 Mon Sep 17 00:00:00 2001
From: jon <97558900+erew70@users.noreply.github.com>
Date: Mon, 29 Jul 2024 12:06:49 -0500
Subject: [PATCH 16/19] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 8ad5064..cc341e2 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@ yes switch unbanning is possible and very easy to do, literally the last thing t
[Source](https://switchbrew.org/wiki/Flash_Filesystem#System_Savegames)
-* This stops sending telemetry and system information to Nintendo to avoid bans after unbanning your switch ([Guide](https://github.com/erew70/SWITCH-UNBAN-GUIDE)
+* This stops sending telemetry and system information to Nintendo to avoid bans after unbanning your switch ([Guide](https://github.com/erew70/SWITCH-UNBAN-GUIDE))
## Reason
* kill telemetry service to avoid get banned with cfw
From ee51cac85c515edc863419122762ee07987cce4f Mon Sep 17 00:00:00 2001
From: jon <97558900+erew70@users.noreply.github.com>
Date: Mon, 29 Jul 2024 12:08:30 -0500
Subject: [PATCH 17/19] Update README.md
---
README.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index cc341e2..64c4d56 100644
--- a/README.md
+++ b/README.md
@@ -31,17 +31,17 @@ yes switch unbanning is possible and very easy to do, literally the last thing t
* * Even so, the risk of ban exists so I recommend using emunand, if you don't want to take that risk
* This is a test, one thing is for sure, it stop the send telemetry through BCAT(PlayReport)
* It is not likely to happen but in case of instability in the system it can be uninstalled by Pressing + - inside the app or deleting from 'System:/save'
-80000000000000A1 and 80000000000000A2 saves
+80000000000000A0, 80000000000000A1, and 80000000000000A2 saves using NxNandManager
### Note:
Tested on:
-* 9.1.0 - 13.0.0
+* 9.1.0 - 17.0.0
* * For use this mod you need update to the latest version required by Nintendo
* This modification will remain installed and will not be deleted until you decide to remove it
#### It will only be removed if:
- - Uninstall it from the app
-- - Remove the saves 80000000000000A1 and 80000000000000A2
-- - Restoring a nand backup
+- - Remove the saves 80000000000000A0, 80000000000000A1, and 80000000000000A2
+- - Restoring a nand backup before installing
- - Using Haku33
### Credits
From 8123b25f75dcc4a80e0116e6ff5362e835cf895f Mon Sep 17 00:00:00 2001
From: jon <97558900+erew70@users.noreply.github.com>
Date: Mon, 29 Jul 2024 20:36:56 -0500
Subject: [PATCH 18/19] Delete source/main.cpp
---
source/main.cpp | 287 ------------------------------------------------
1 file changed, 287 deletions(-)
delete mode 100644 source/main.cpp
diff --git a/source/main.cpp b/source/main.cpp
deleted file mode 100644
index 12cf478..0000000
--- a/source/main.cpp
+++ /dev/null
@@ -1,287 +0,0 @@
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include "FileSystem.hpp"
-
-using namespace std;
-FsFileSystem loc;
-//traduction
-bool isSpanish = false;
-void set_LANG()
-{
- setInitialize();
- u64 lcode = 0;
- SetLanguage lang;
- setGetSystemLanguage(&lcode);
- setMakeLanguage(lcode, &lang);
- switch(lang)
- {
- case 5:
- case 14:
- isSpanish = true;
- break;
- default:
- isSpanish = false;
- break;
- }
- setsysExit();
-}
-
-bool fileExists(const char* path)
-{
- FILE* f = fopen(path, "rb");
- if (f)
- {
- fclose(f);
- return true;
- }
- return false;
-}
-
-
-bool led_on(void)
-{
- Result rc=0;
- s32 i;
- s32 total_entries;
- u64 UniquePadIds[2];
- HidsysNotificationLedPattern pattern;
- hidsysExit();
- rc = hidsysInitialize();
- if (R_FAILED(rc)) {printf("hidsysInitialize(): 0x%x\n", rc);}
-
- memset(&pattern, 0, sizeof(pattern));
- // Setup Breathing effect pattern data.
- pattern.baseMiniCycleDuration = 0x8; // 100ms.
- pattern.totalMiniCycles = 0x2; // 3 mini cycles. Last one 12.5ms.
- pattern.totalFullCycles = 0x6; // Repeat Time.
- pattern.startIntensity = 0x2; // 13%.
-
- pattern.miniCycles[0].ledIntensity = 0xF; // 100%.
- pattern.miniCycles[0].transitionSteps = 0xF; // 15 steps. Transition time 1.5s.
- pattern.miniCycles[0].finalStepDuration = 0x0; // Forced 12.5ms.
- pattern.miniCycles[1].ledIntensity = 0x2; // 13%.
- pattern.miniCycles[1].transitionSteps = 0xF; // 15 steps. Transition time 1.5s.
- pattern.miniCycles[1].finalStepDuration = 0x0; // Forced 12.5ms.
-
- rc = hidsysGetUniquePadsFromNpad(hidGetHandheldMode() ? CONTROLLER_HANDHELD : CONTROLLER_PLAYER_1, UniquePadIds, 2, &total_entries);
- if (R_SUCCEEDED(rc))
- {for(i=0; i= timeS*1000000) break;}//1000000
-}
-
-void Lock(u64 TID)
-{
- fsInitialize();
- char id[160];
- printf("\x1b[32;1m*\x1b[0m Locking %016lX\n",TID);
- consoleUpdate(NULL);
-
-
- mkdir("sdmc:/BCAT", 0777);
- mkdir("sdmc:/BCAT/Antes", 0777);
- mkdir("sdmc:/BCAT/Despues", 0777);
- AccountUid uid;
- fsdevMountSystemSaveData("save", FsSaveDataSpaceId_System, TID, uid);
-
- sprintf(id,"sdmc:/BCAT/Antes/%016lX/",TID);
- mkdir(id, 0777);
- fs::copyDirToDir("save:/",id);
-
- fs::DeleteDir("save:/");
- mkdir("save:/current.msgpack", 0777);
- rename("save:/posted", "save:/current.msgpack/posted");
- rename("save:/data", "save:/current.msgpack/data");
- fs::WriteFile("save:/posted", "LOCK");
- fs::WriteFile("save:/data", "LOCK");
-
- sprintf(id,"sdmc:/BCAT/Despues/%016lX/",TID);
- mkdir(id, 0777);
- fs::copyDirToDir("save:/",id);
-
- fsdevCommitDevice("save");
- fsdevUnmountDevice("save");
- fsFsClose(&loc);
-
-}
-
-void install()
-{
- //close BCAT ,lock and reboot
- printf("\x1b[32;1m*\x1b[0m Klling BCAT proc\n");
- consoleUpdate(NULL);
- Result rc;
- pmshellInitialize();
- if (R_FAILED(rc = pmshellTerminateProgram(0x010000000000000C)))
- printf("\x1b[31;1m*\x1b[0m Error Klling BCAT\n");
- else{
- Lock(0x80000000000000A1);
- Lock(0x80000000000000A2);
- printf("\x1b[32;1m*\x1b[0m W COMPLETE\n");
- consoleUpdate(NULL);
- led_on();
- espera(5);
- bpcInitialize();
- bpcRebootSystem();
- bpcExit();
- }
-
- consoleUpdate(NULL);
- //exit proc
- pmshellExit();
- fsExit();
- socketExit();
- fsdevUnmountAll();
- espera(5);
-}
-
-void uninstall()
-{
- //Initialize proc
- printf("\x1b[32;1m*\x1b[0m Klling BCAT proc\n");
- consoleUpdate(NULL);
- Result rc;
- pmshellInitialize();
- if (R_FAILED(rc = pmshellTerminateProgram(0x010000000000000C)))
- printf("\x1b[31;1m*\x1b[0m Error Klling BCAT\n");
-
- //Just in Case
- pmshellTerminateProgram(0x010000000000000E);//friends
- pmshellTerminateProgram(0x010000000000001E);//account
- pmshellTerminateProgram(0x010000000000001F);//ns
- pmshellTerminateProgram(0x0100000000000020);//nfc
- pmshellTerminateProgram(0x0100000000000022);//capsrv
- pmshellTerminateProgram(0x0100000000000024);//ssl
- pmshellTerminateProgram(0x0100000000000025);//nim
- pmshellTerminateProgram(0x010000000000002B);//erpt
- pmshellTerminateProgram(0x010000000000002E);//pctl
- pmshellTerminateProgram(0x010000000000002F);//npns
- pmshellTerminateProgram(0x0100000000000030);//eupld
- pmshellTerminateProgram(0x0100000000000033);//es
- pmshellTerminateProgram(0x0100000000000036);//creport
- pmshellTerminateProgram(0x010000000000003A);//migration
- pmshellTerminateProgram(0x010000000000003E);//olsc
- pmshellTerminateProgram(0x0100000000001000);//qlaunch - make freeze?
- pmshellTerminateProgram(0x0100000000001009);//miiEdit
-
-
- printf("\x1b[32;1m*\x1b[0m Mount System\n");
- consoleUpdate(NULL);
- FsFileSystem mySystem;
- fsOpenBisFileSystem(&mySystem, FsBisPartitionId_System, "");
- fsdevMountDevice("sytem33", mySystem);
-
- //uninstall
- printf("\x1b[32;1m*\x1b[0m Uninstalling Lock-Logs\n");
- consoleUpdate(NULL);
- remove("sytem33:/save/80000000000000A1");
- remove("sytem33:/save/80000000000000A2");
-
- //umount system
- printf("\x1b[32;1m*\x1b[0m umount system\n");
- consoleUpdate(NULL);
- fsdevCommitDevice("sytem33");
- fsdevUnmountDevice("sytem33");
- fsFsClose(&mySystem);
-
- printf("\x1b[32;1m*\x1b[0m W COMPLETE\n");
- consoleUpdate(NULL);
- espera(5);
- bpcInitialize();
- bpcRebootSystem();
- bpcExit();
-}
-
-int main(int argc, char **argv)
-{
-set_LANG();
- while (appletMainLoop())
- {
- hidScanInput();
- u64 kDown = hidKeysDown(CONTROLLER_P1_AUTO);
- u64 kHeld = hidKeysHeld(CONTROLLER_P1_AUTO);
-
- consoleInit(NULL);
- printf("\x1b[32;1m*\x1b[0m %s v%s Kronos2308, BCAT LOCKER\n",TITLE, VERSION);
- if(isSpanish)
- {
- printf("\n\x1b[30;1m SE BORRARAN Y BLOKEARAN LOS LOGS\x1b[0m\n");
- printf("\n\x1b[30;1m ASI SE PODRA JUGAR ONLINE SIN SER BANEADO\x1b[0m\n");
- printf("\n\x1b[30;1m RECUERDA SOLO USAR JUEGOS ORIGINALES\x1b[0m\n");
- printf("\n\x1b[30;1m LUEGO DE INSTALAR QUITA LOS DNS E INCOGNITO\x1b[0m\n");
- printf("\n\x1b[30;1m No me hago responsable de:\n Baneos, Bricks o Aniquilasion Nuclear\x1b[0m\n");
- printf("\n\n\x1b[30;1m-------- ---------------- --------\x1b[0m\n\n");
- printf("\n\x1b[30;1m PULSA \x1b[32;1mA\x1b[30;1m PARA INTALAR\n");
- printf("\n\x1b[30;1m PULSA \x1b[32;1mB\x1b[30;1m PARA SALIR \x1b[0m\n\n");
- if(fs::DirExists("sdmc:/BCAT"))
- printf("\n\x1b[30;1m PULSA \x1b[32;1m- +\x1b[30;1m PARA DESINTALAR\n\n");
- }else{
- printf("\n\x1b[30;1m THE LOGS WILL BE DELETED AND LOCKED \x1b[0m\n");
- printf("\n\n\x1b[30;1m SO YOU CAN PLAY ONLINE WITHOUT BEING BANED \x1b[0m\n\n");
- printf("\n\n\x1b[30;1m REMEMBER, ONLY USE ORIGINAL GAMES\x1b[0m\n\n");
- printf("\n\n\x1b[30;1m AFTER INSTALLING REMOVE THE DNS AND INCOGNITO\x1b[0m\n\n");
- printf("\n\n\x1b[30;1m I am not responsable for:\n Bans, Bricks or full Nuclear Explosion\x1b[0m\n\n");
- printf("\n\n\x1b[30;1m-------- ---------------- --------\x1b[0m\n\n");
- printf("\n\x1b[30;1m PRESS \x1b[32;1mA\x1b[30;1m TO INSTAL\n");
- printf("\n\x1b[30;1m PRESS \x1b[32;1mB\x1b[30;1m FOR EXIT \x1b[0m\n\n");
- if(fs::DirExists("sdmc:/BCAT"))
- printf("\n\x1b[30;1m PRESS \x1b[32;1m- +\x1b[30;1m TO UNINSTAL\n\n");
- }
- consoleUpdate(NULL);
-
- if (kDown & KEY_A)
- {
- install();
- break;
- }
-
- if ((kDown & KEY_MINUS || kDown & KEY_PLUS) && (kHeld & KEY_MINUS && kHeld & KEY_PLUS))
- {
- uninstall();
- break;
- }
-
-
- if (kDown & KEY_B || kDown & KEY_Y || kDown & KEY_X)
- {
- break;
- }
- }
-
- //Cansel
- fsExit();
- socketExit();
- fsdevUnmountAll();
- pmshellExit();
- consoleExit(NULL);
- return 0;
-}
\ No newline at end of file
From b47a446cc1bccb0323eb55591e3cfa470d13c697 Mon Sep 17 00:00:00 2001
From: jon <97558900+erew70@users.noreply.github.com>
Date: Mon, 29 Jul 2024 20:37:07 -0500
Subject: [PATCH 19/19] Add files via upload
---
source/main.cpp | 311 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 311 insertions(+)
create mode 100644 source/main.cpp
diff --git a/source/main.cpp b/source/main.cpp
new file mode 100644
index 0000000..62766ce
--- /dev/null
+++ b/source/main.cpp
@@ -0,0 +1,311 @@
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include "FileSystem.hpp"
+
+using namespace std;
+FsFileSystem loc;
+//traduction
+bool isSpanish = false;
+void set_LANG()
+{
+ setInitialize();
+ u64 lcode = 0;
+ SetLanguage lang;
+ setGetSystemLanguage(&lcode);
+ setMakeLanguage(lcode, &lang);
+ switch(lang)
+ {
+ case 5:
+ case 14:
+ isSpanish = true;
+ break;
+ default:
+ isSpanish = false;
+ break;
+ }
+ setsysExit();
+}
+
+bool fileExists(const char* path)
+{
+ FILE* f = fopen(path, "rb");
+ if (f)
+ {
+ fclose(f);
+ return true;
+ }
+ return false;
+}
+
+
+
+void espera(u32 timeS)
+{
+ u32 cout = 0;
+ while (appletMainLoop()){cout++; if(cout >= timeS*1000000) break;}//1000000
+}
+
+void Lock(u64 TID)
+{
+ fsInitialize();
+ char id[160];
+ printf("\x1b[32;1m*\x1b[0m Locking %016lX\n",TID);
+ consoleUpdate(NULL);
+
+
+ mkdir("sdmc:/BCAT", 0777);
+ mkdir("sdmc:/BCAT/Antes", 0777);
+ mkdir("sdmc:/BCAT/Despues", 0777);
+ AccountUid uid;
+ fsdevMountSystemSaveData("save", FsSaveDataSpaceId_System, TID, uid);
+
+ sprintf(id,"sdmc:/BCAT/Antes/%016lX/",TID);
+ mkdir(id, 0777);
+ fs::copyDirToDir("save:/",id);
+
+ fs::DeleteDir("save:/");
+ mkdir("save:/current.msgpack", 0777);
+ rename("save:/posted", "save:/current.msgpack/posted");
+ rename("save:/data", "save:/current.msgpack/data");
+ fs::WriteFile("save:/posted", "LOCK");
+ fs::WriteFile("save:/data", "LOCK");
+
+ sprintf(id,"sdmc:/BCAT/Despues/%016lX/",TID);
+ mkdir(id, 0777);
+ fs::copyDirToDir("save:/",id);
+
+ fsdevCommitDevice("save");
+ fsdevUnmountDevice("save");
+ fsFsClose(&loc);
+
+}
+
+
+void LockSysINFO(u64 TID)
+{
+ fsInitialize();
+ char id[160];
+ printf("\x1b[32;1m*\x1b[0m Locking %016lX\n",TID);
+ consoleUpdate(NULL);
+
+
+ mkdir("sdmc:/BCAT", 0777);
+ mkdir("sdmc:/BCAT/BSYSINFO", 0777);
+ mkdir("sdmc:/BCAT/ASYSINFO", 0777);
+ AccountUid uid;
+ fsdevMountSystemSaveData("save", FsSaveDataSpaceId_System, TID, uid);
+
+ sprintf(id,"sdmc:/BCAT/ASYSINFO/%016lX/",TID);
+ mkdir(id, 0777);
+ fs::copyDirToDir("save:/",id);
+
+ fs::DeleteDir("save:/");
+ fs::WriteFile("save:/statistics.bin", "EMPTY");
+ fs::WriteFile("save:/statistics_srepo.bin", "EMPTY");
+
+ sprintf(id,"sdmc:/BCAT/ASYSINFO/%016lX/",TID);
+ mkdir(id, 0777);
+ fs::copyDirToDir("save:/",id);
+
+ fsdevCommitDevice("save");
+ fsdevUnmountDevice("save");
+ fsFsClose(&loc);
+
+}
+
+void install()
+{
+ //close BCAT ,lock and reboot
+ printf("\x1b[32;1m*\x1b[0m Klling BCAT proc\n");
+ consoleUpdate(NULL);
+ Result rc;
+ pmshellInitialize();
+ if (R_FAILED(rc = pmshellTerminateProgram(0x010000000000000C)))
+ printf("\x1b[31;1m*\x1b[0m Error Klling BCAT\n");
+ else{
+ Lock(0x80000000000000A2);
+ Lock(0x80000000000000A1);
+ LockSysINFO(0x80000000000000A0);
+ printf("\x1b[32;1m*\x1b[0m W COMPLETE\n");
+ consoleUpdate(NULL);
+ espera(5);
+ bpcInitialize();
+ bpcRebootSystem();
+ bpcExit();
+ }
+
+ consoleUpdate(NULL);
+ //exit proc
+ pmshellExit();
+ fsExit();
+ socketExit();
+ fsdevUnmountAll();
+ espera(5);
+}
+
+void uninstall()
+{
+ //Initialize proc
+ printf("\x1b[32;1m*\x1b[0m Klling BCAT proc\n");
+ consoleUpdate(NULL);
+ Result rc;
+ pmshellInitialize();
+ if (R_FAILED(rc = pmshellTerminateProgram(0x010000000000000C)))
+ printf("\x1b[31;1m*\x1b[0m Error Klling BCAT\n");
+
+ //Just in Case
+ pmshellTerminateProgram(0x010000000000000E);//friends
+ pmshellTerminateProgram(0x010000000000001E);//account
+ pmshellTerminateProgram(0x010000000000001F);//ns
+ pmshellTerminateProgram(0x0100000000000020);//nfc
+ pmshellTerminateProgram(0x0100000000000022);//capsrv
+ pmshellTerminateProgram(0x0100000000000024);//ssl
+ pmshellTerminateProgram(0x0100000000000025);//nim
+ pmshellTerminateProgram(0x010000000000002B);//erpt
+ pmshellTerminateProgram(0x010000000000002E);//pctl
+ pmshellTerminateProgram(0x010000000000002F);//npns
+ pmshellTerminateProgram(0x0100000000000030);//eupld
+ pmshellTerminateProgram(0x0100000000000033);//es
+ pmshellTerminateProgram(0x0100000000000036);//creport
+ pmshellTerminateProgram(0x010000000000003A);//migration
+ pmshellTerminateProgram(0x010000000000003E);//olsc
+ pmshellTerminateProgram(0x0100000000001000);//qlaunch - make freeze?
+ pmshellTerminateProgram(0x0100000000001009);//miiEdit
+
+
+ printf("\x1b[32;1m*\x1b[0m Mount System\n");
+ consoleUpdate(NULL);
+ FsFileSystem mySystem;
+ fsOpenBisFileSystem(&mySystem, FsBisPartitionId_System, "");
+ fsdevMountDevice("sytem33", mySystem);
+
+ //uninstall
+ printf("\x1b[32;1m*\x1b[0m Uninstalling Lock-Logs\n");
+ consoleUpdate(NULL);
+ remove("sytem33:/save/80000000000000A1");
+ remove("sytem33:/save/80000000000000A2");
+ remove("system33:/save/80000000000000A0");
+
+ //umount system
+ printf("\x1b[32;1m*\x1b[0m umount system\n");
+ consoleUpdate(NULL);
+ fsdevCommitDevice("sytem33");
+ fsdevUnmountDevice("sytem33");
+ fsFsClose(&mySystem);
+
+ printf("\x1b[32;1m*\x1b[0m W COMPLETE\n");
+ consoleUpdate(NULL);
+ espera(5);
+ bpcInitialize();
+ bpcRebootSystem();
+ bpcExit();
+}
+
+int main(int argc, char **argv)
+{
+
+ char keysNames[28][32] = {
+ "A", "B", "X", "Y",
+ "StickL", "StickR", "L", "R",
+ "ZL", "ZR", "Plus", "Minus",
+ "Left", "Up", "Right", "Down",
+ "StickLLeft", "StickLUp", "StickLRight", "StickLDown",
+ "StickRLeft", "StickRUp", "StickRRight", "StickRDown",
+ "LeftSL", "LeftSR", "RightSL", "RightSR",
+ };
+
+
+
+ set_LANG();
+ consoleInit(NULL);
+ while (appletMainLoop())
+ {
+
+ PadState pad;
+ padInitializeDefault(&pad);
+ padUpdate(&pad);
+
+ u64 kDown = padGetButtonsDown(&pad);
+ u64 kHeld = padGetButtons(&pad);
+
+ consoleInit(NULL);
+
+ padConfigureInput(1, HidNpadStyleSet_NpadStandard);
+
+ printf("\x1b[32;1m*\x1b[0m %s v%s Kronos2308, BCAT LOCKER\n",TITLE, VERSION);
+ if(isSpanish)
+ {
+ printf("\n\x1b[30;1m SE BORRARAN Y BLOKEARAN LOS LOGS\x1b[0m\n");
+ printf("\n\x1b[30;1m ASI SE PODRA JUGAR ONLINE SIN SER BANEADO\x1b[0m\n");
+ printf("\n\x1b[30;1m RECUERDA SOLO USAR JUEGOS ORIGINALES\x1b[0m\n");
+ printf("\n\x1b[30;1m LUEGO DE INSTALAR QUITA LOS DNS E INCOGNITO\x1b[0m\n");
+ printf("\n\x1b[30;1m No me hago responsable de:\n Baneos, Bricks o Aniquilasion Nuclear\x1b[0m\n");
+ printf("\n\n\x1b[30;1m-------- ---------------- --------\x1b[0m\n\n");
+ printf("\n\x1b[30;1m PULSA \x1b[32;1mA\x1b[30;1m PARA INTALAR\n");
+ printf("\n\x1b[30;1m PULSA \x1b[32;1mB\x1b[30;1m PARA SALIR \x1b[0m\n\n");
+ if(fs::DirExists("sdmc:/BCAT"))
+ printf("\n\x1b[30;1m PULSA \x1b[32;1m- +\x1b[30;1m PARA DESINTALAR\n\n");
+ }else{
+ printf("\n\x1b[30;1m THE LOGS WILL BE DELETED AND LOCKED \x1b[0m\n");
+ printf("\n\n\x1b[30;1m SO YOU CAN PLAY ONLINE WITHOUT BEING BANED \x1b[0m\n\n");
+ printf("\n\n\x1b[30;1m REMEMBER, ONLY USE ORIGINAL GAMES\x1b[0m\n\n");
+ printf("\n\n\x1b[30;1m AFTER INSTALLING REMOVE THE DNS AND INCOGNITO\x1b[0m\n\n");
+ printf("\n\n\x1b[30;1m I am not responsable for:\n Bans, Bricks or full Nuclear Explosion\x1b[0m\n\n");
+ printf("\n\n\x1b[30;1m-------- ---------------- --------\x1b[0m\n\n");
+ printf("\n\x1b[30;1m PRESS \x1b[32;1mA\x1b[30;1m TO INSTAL\n");
+ printf("\n\x1b[30;1m PRESS \x1b[32;1mB\x1b[30;1m FOR EXIT \x1b[0m\n\n");
+ if(fs::DirExists("sdmc:/BCAT"))
+ printf("\n\x1b[30;1m PRESS \x1b[32;1m- +\x1b[30;1m TO UNINSTAL\n\n");
+ }
+ consoleUpdate(NULL);
+
+
+ if (kDown & HidNpadButton_A)
+ {
+ install();
+ break;
+ }
+
+ if ((kDown & HidNpadButton_Minus || kDown & HidNpadButton_Plus) && (kHeld & HidNpadButton_Minus && kHeld & HidNpadButton_Plus))
+ {
+ uninstall();
+ break;
+ }
+
+
+ if (kDown & HidNpadButton_B || kDown & HidNpadButton_Y || kDown & HidNpadButton_X)
+ {
+ break;
+ }
+ }
+
+ //Cansel
+ fsExit();
+ socketExit();
+ fsdevUnmountAll();
+ pmshellExit();
+ consoleExit(NULL);
+ return 0;
+}
\ No newline at end of file