diff --git a/_site/files/Syncfix.te b/_site/files/Syncfix.te deleted file mode 100644 index 0ae913fd..00000000 --- a/_site/files/Syncfix.te +++ /dev/null @@ -1,83 +0,0 @@ -BLUE = 0x0000FF -YELLOW = 0xFFFF00 -RED = 0xFF0000 -GREEN = 0x00FF00 -WHITE = 0xFFFFFF -ORANGE = 0xFFA500 -VIOLET = 0x8F00FF - -p=println -pe={pause() exit()} - -color(BLUE); -p("TegraScript Syncfix.te by MezBar"); -p("Ported to TegraScript v3 by xHR") -p(""); -color(YELLOW); -p("This script will fix joy-cons sync issue between SYSMMC and EMUMMC"); -p("Before using this script, pair all your joy-con and controllers to your SYSMMC"); -p(""); -color(RED); -p("If you're running 90DNS or any other DNS settings"); -p("please go in airplane mode on both SYSMMC"); -p("and EMUMMC because this script will copy"); -p("also the wifi settings from your SYSMMC to EMUMMC"); -p(""); -color(GREEN); -p("If you're running incognito you can proceed without go in airplane mode"); -p(""); -color(WHITE); - -p(""); -p("Press 'X' to sync both WiFi and Bluetooth settings from SYSMMC to EMUMMC"); -p(""); -color(ORANGE); -p("Press any other button to exit"); -p(""); - - -op=["Exit","Sync both WiFi and Bluetooth settings from SYSMMC to EMUMMC"].copy() -if (emu()){op+"Wipe emummc"} -r=menu(op,0)clear() -if(r==0){exit()} - -p(""); -if(r==1){if(!emu()){p("EMUMMC not found!")pe()}} -color(WHITE); -p("Mounting sysMMC..."); -if(mountsys("SYSTEM")){p("Mount failed!")pe()} - - -mkdir("sd:/tegraexplorer"); -mkdir("sd:/tegraexplorer/syncfix"); -mkdir("sd:/tegraexplorer/syncfix/backup"); -p("Backing up SYSMMC 8000000000000050 file to sd:/tegraexplorer/syncfix/backup"); -copyfile("bis:/save/8000000000000050", "sd:/tegraexplorer/syncfix/backup/8000000000000050_sysmmc_backup"); - - -color(VIOLET); -p("Mounting eumMMC"); - -if(mountemu("SYSTEM")){p("Mount failed!")pe()} - - -p("Backing up EMUMMC 8000000000000050 file to sd:/tegraexplorer/syncfix/backup"); -p(""); -copyfile("bis:/save/8000000000000050", "sd:/tegraexplorer/syncfix/backup/8000000000000050_emummc_backup"); - - -p("Copying 8000000000000050 file from SYSMMC to EMUMMC"); -p(""); -copyfile("sd:/tegraexplorer/syncfix/backup/8000000000000050_sysmmc_backup", "bis:/save/8000000000000050"); - - -color(GREEN); -p("DONE!"); -p(""); -p("Now your joy-cons should be synched between SYSMMC and EMUMMC"); -p(""); - -color(ORANGE); -p("Press any button to exit"); - -pe(); \ No newline at end of file diff --git a/_site/files/SystemRestoreV3.te b/_site/files/SystemRestoreV3.te deleted file mode 100644 index 96db7fcb..00000000 --- a/_site/files/SystemRestoreV3.te +++ /dev/null @@ -1,308 +0,0 @@ -#REQUIRE MINERVA -#REQUIRE KEYS -#REQUIRE SD - -wait={t=timer()while(timer()<(t+tw)){print("Wait for",(t+tw-timer()/1000),"seconds \r")}} -p = println - -getInt = { - resInt = (buff[0] << 24) | (buff[1] << 16) | (buff[2] << 8) | (buff[3]) -} -bisFileOffset = 0 - -getBisBytes = { - buff = bisFileDump.slice(bisFileOffset, bisGetLen).project() - bisFileOffset = bisFileOffset + bisGetLen -} - -getNextInt = { - getBisBytes(bisGetLen = 4) - getInt() -} - -fatal = { - color(0xFF0000) - p("\n[FATAL]", fatalMsg) - pause() - exit() -} - -readBisAttrs = { - path = combinepath(cwd(), "boot.bis") - bisFileRes = 1 - if (fsexists(path)){ - bisFileDump = readfile(path) - getBisBytes(bisGetLen = 0x10) - bisName = buff.bytestostr() - getBisBytes(bisGetLen = 1) - - sizes = [0,1,2,3].copy() - - sizes.foreach("x"){ - getNextInt() - sizes[x] = resInt - } - - bisFileRes = 0 - } -} - -extractBis = { - color(0xFF0000) - p("Extracting boot.bis...") - color(0xFFFFFF) - i = 0 - files = ["BOOT0.bin", "BOOT1.bin", "BCPKG2-1-Normal-Main", "BCPKG2-3-SafeMode-Main"] - - sizes.foreach("x"){ - getBisBytes(bisGetLen = x) - p("Extracting", files[i]) - if (writefile(combinepath(cwd(), files[i]), buff)){ - fatal(fatalMsg = "Extracting boot.bis failed!") - } - - i = i + 1 - } - - res = copyfile(combinepath(cwd(), "BCPKG2-1-Normal-Main"), combinepath(cwd(), "BCPKG2-2-Normal-Sub")) - if (!res){ - res = copyfile(combinepath(cwd(), "BCPKG2-3-SafeMode-Main"), combinepath(cwd(), "BCPKG2-4-SafeMode-Sub")) - } - - if (res) { - fatal(fatalMsg = "Extracting boot.bis failed!") - } - - p("\n") -} - -bisFiles = ["BOOT0.bin", "BOOT1.bin", "BCPKG2-1-Normal-Main", "BCPKG2-2-Normal-Sub", "BCPKG2-3-SafeMode-Main", "BCPKG2-4-SafeMode-Sub", "PRODINFO"] - -backupBis = { - color(0xFF0000) - p("Backing up BIS...") - color(0xFFFFFF) - - mkdir(combinepath(cwd(), "backup")) - path = combinepath(cwd(), "backup", "bis") - mkdir(path) - bisFiles.foreach("x"){ - print("Backing up", x, "") - if (mmcread(combinepath(path, x), x)){ - fatal(fatalMsg = "Failed backing up BIS") - } - p() - } - p() -} - -backupSys = { - color(0xFF0000) - p("Backing up SYSTEM...") - color(0xFFFFFF) - - mkdir(combinepath(cwd(), "backup")) - path = combinepath(cwd(), "backup", "system") - mkdir(path) - - if (mount("SYSTEM")){ - fatal(fatalMsg = "Failed to mount SYSTEM") - } - - if (copydir("bis:/Contents/registered", path)){ - fatal(fatalMsg = "Failed to copy registered") - } - - if (copyfile("bis:/save/8000000000000120", combinepath(path, "8000000000000120"))){ - fatal(fatalMsg = "Failed to copy 120 save") - } - - p("\n") -} - -signSave = { - color(0xFF0000) - p("Signing save...") - color(0xFFFFFF) - if (mount("SYSTEM")){ - fatal(fatalMsg = "Failed to mount SYSTEM") - } - sav = readsave("bis:/save/8000000000000120") - if (sav.commit()){ - fatal(fatalMsg = "Failed to sign save!") - } - sav = 0 # Free sav -} - -writeBis = { - color(0xFF0000) - p("Writing BIS...") - color(0xFFFFFF) - toRestore = bisFiles.copy() - toRestore - 1 - toRestore.foreach("x"){ - print("Restoring", x + "... ") - if (mmcwrite(combinepath(cwd(), x), x)){ - fatal(fatalMsg = "BIS write failed!!!") - } - p() - } - p() -} - -writeSys = { - if (mount("SYSTEM")){ - fatal(fatalMsg = "Failed to mount SYSTEM") - } - - color(0xFF0000) - print("Deleting SYSTEM contents... ") - color(0xFFFFFF) - if (deldir("bis:/Contents/registered")){ - fatal(fatalMsg = "An error occured during SYSTEM deletion!") - } - p() - - color(0xFF0000) - print("Copying registered... ") - color(0xFFFFFF) - if (copydir(combinepath(cwd(), "SYSTEM/Contents/registered"), "bis:/Contents")) { - fatal(fatalMsg = "An error occured during SYSTEM copying!") - } - p() - - color(0xFF0000) - print("Copying 120 save... ") - color(0xFFFFFF) - if (copyfile(combinepath(cwd(), "SYSTEM/save/8000000000000120"), "bis:/save/8000000000000120")) { - fatal(fatalMsg = "Failed to copy system save") - } - p("\n") -} - -actionRestoreBis = { - extractBis() - backupBis() - writeBis() -} - -actionRestoreSys = { - backupSys() - writeSys() - signSave() -} - -readBisAttrs() - -bootBisFound = !bisFileRes -systemFolderFound = fsexists(combinepath(cwd(), "SYSTEM")) - -if ((!bootBisFound) && (!systemFolderFound)){ - fatal(fatalMsg = "Nothing to restore found...\nPut a boot.bis and a SYSTEM dir from emmchaccgen next to this script!") -} - -if (!bootBisFound){ - p("Boot.bis not found. Cannot restore bis. Press any key to continue...") - pause() -} - -if (!systemFolderFound){ - p("SYSTEM dir not found. Cannot restore SYSTEM. Press any key to continue...") - pause() -} - -useSys = 1 - -if (emu()){ - p("Switch System Restore\n") - res = menu(["Exit", "Apply on Sysmmc", "Apply on Emummc"], 0) - if (res == 0){ - exit() - } - if (res == 2){ - useSys = 0 - } -} - -if (useSys){ - mmcread = emmcread - mmcwrite = emmcwrite - mount = mountsys -}.else() { - mmcread = emummcread - mmcwrite = emummcwrite - mount = mountemu -} - -clear() -p("Switch System Restore") -if (bootBisFound){ - p("Target:", bisName) -} -p() - -res = menu(["Exit", "Restore BIS", "Restore SYSTEM", "Restore Both"], 0) -if (res == 0){ - exit() -} - -clear() - -restoreBis = 0 -restoreSystem = 0 - -if ((res == 1) || (res == 3)){ - if (!bootBisFound){ - fatal(fatalMsg = "Boot.bis not found...") - } - - restoreBis = 1 -} - -if ((res == 2) || (res == 3)){ - if (!systemFolderFound){ - fatal(fatalMsg = "SYSTEM dir not found...") - } - - restoreSystem = 1 -} - -clear() -p("Switch System Restore") -color(0xFF00) - -if (useSys){ - mmcStr = "Sysmmc" -}.else() { - mmcStr = "Emummc" -} - -p("Restore BIS:", restoreBis) -p("Restore SYSTEM:", restoreSystem) -p("Restoring onto:", mmcStr) -color(0xFFFFFF) -p("Ready!") -color(0xE70000) -print("WARNING!!!\nIf you do not know exactly what this does. STOP!!!\nThis will fuck with your system!\nOnly do this as a last ditch recovery effort!\n") -color(0x40FF00) -p("For help go here: https://discord.gg/C29hYvh\n") -color(0xFFFFFF) -wait(tw = 10000) -p("Press Power to start the restore, any other key to exit") -if (!pause().power){ - exit() -} -clear() - -startMs = timer() - -if (restoreBis){ - actionRestoreBis() -} - -if (restoreSystem){ - actionRestoreSys() -} - -p("\n\nFully done in", (timer() - startMs) / 1000 ,"seconds!\nPress any key to exit") -pause() \ No newline at end of file diff --git a/_site/files/SystemRestoreV3_nobackup.te b/_site/files/SystemRestoreV3_nobackup.te deleted file mode 100644 index 5593398b..00000000 --- a/_site/files/SystemRestoreV3_nobackup.te +++ /dev/null @@ -1,306 +0,0 @@ -#REQUIRE MINERVA -#REQUIRE KEYS -#REQUIRE SD - -wait={t=timer()while(timer()<(t+tw)){print("Wait for",(t+tw-timer()/1000),"seconds \r")}} -p = println - -getInt = { - resInt = (buff[0] << 24) | (buff[1] << 16) | (buff[2] << 8) | (buff[3]) -} -bisFileOffset = 0 - -getBisBytes = { - buff = bisFileDump.slice(bisFileOffset, bisGetLen).project() - bisFileOffset = bisFileOffset + bisGetLen -} - -getNextInt = { - getBisBytes(bisGetLen = 4) - getInt() -} - -fatal = { - color(0xFF0000) - p("\n[FATAL]", fatalMsg) - pause() - exit() -} - -readBisAttrs = { - path = combinepath(cwd(), "boot.bis") - bisFileRes = 1 - if (fsexists(path)){ - bisFileDump = readfile(path) - getBisBytes(bisGetLen = 0x10) - bisName = buff.bytestostr() - getBisBytes(bisGetLen = 1) - - sizes = [0,1,2,3].copy() - - sizes.foreach("x"){ - getNextInt() - sizes[x] = resInt - } - - bisFileRes = 0 - } -} - -extractBis = { - color(0xFF0000) - p("Extracting boot.bis...") - color(0xFFFFFF) - i = 0 - files = ["BOOT0.bin", "BOOT1.bin", "BCPKG2-1-Normal-Main", "BCPKG2-3-SafeMode-Main"] - - sizes.foreach("x"){ - getBisBytes(bisGetLen = x) - p("Extracting", files[i]) - if (writefile(combinepath(cwd(), files[i]), buff)){ - fatal(fatalMsg = "Extracting boot.bis failed!") - } - - i = i + 1 - } - - res = copyfile(combinepath(cwd(), "BCPKG2-1-Normal-Main"), combinepath(cwd(), "BCPKG2-2-Normal-Sub")) - if (!res){ - res = copyfile(combinepath(cwd(), "BCPKG2-3-SafeMode-Main"), combinepath(cwd(), "BCPKG2-4-SafeMode-Sub")) - } - - if (res) { - fatal(fatalMsg = "Extracting boot.bis failed!") - } - - p("\n") -} - -bisFiles = ["BOOT0.bin", "BOOT1.bin", "BCPKG2-1-Normal-Main", "BCPKG2-2-Normal-Sub", "BCPKG2-3-SafeMode-Main", "BCPKG2-4-SafeMode-Sub", "PRODINFO"] - -backupBis = { - color(0xFF0000) - p("Backing up BIS...") - color(0xFFFFFF) - - mkdir(combinepath(cwd(), "backup")) - path = combinepath(cwd(), "backup", "bis") - mkdir(path) - bisFiles.foreach("x"){ - print("Backing up", x, "") - if (mmcread(combinepath(path, x), x)){ - fatal(fatalMsg = "Failed backing up BIS") - } - p() - } - p() -} - -backupSys = { - color(0xFF0000) - p("Backing up SYSTEM...") - color(0xFFFFFF) - - mkdir(combinepath(cwd(), "backup")) - path = combinepath(cwd(), "backup", "system") - mkdir(path) - - if (mount("SYSTEM")){ - fatal(fatalMsg = "Failed to mount SYSTEM") - } - - if (copydir("bis:/Contents/registered", path)){ - fatal(fatalMsg = "Failed to copy registered") - } - - if (copyfile("bis:/save/8000000000000120", combinepath(path, "8000000000000120"))){ - fatal(fatalMsg = "Failed to copy 120 save") - } - - p("\n") -} - -signSave = { - color(0xFF0000) - p("Signing save...") - color(0xFFFFFF) - if (mount("SYSTEM")){ - fatal(fatalMsg = "Failed to mount SYSTEM") - } - sav = readsave("bis:/save/8000000000000120") - if (sav.commit()){ - fatal(fatalMsg = "Failed to sign save!") - } - sav = 0 # Free sav -} - -writeBis = { - color(0xFF0000) - p("Writing BIS...") - color(0xFFFFFF) - toRestore = bisFiles.copy() - toRestore - 1 - toRestore.foreach("x"){ - print("Restoring", x + "... ") - if (mmcwrite(combinepath(cwd(), x), x)){ - fatal(fatalMsg = "BIS write failed!!!") - } - p() - } - p() -} - -writeSys = { - if (mount("SYSTEM")){ - fatal(fatalMsg = "Failed to mount SYSTEM") - } - - color(0xFF0000) - print("Deleting SYSTEM contents... ") - color(0xFFFFFF) - if (deldir("bis:/Contents/registered")){ - fatal(fatalMsg = "An error occured during SYSTEM deletion!") - } - p() - - color(0xFF0000) - print("Copying registered... ") - color(0xFFFFFF) - if (copydir(combinepath(cwd(), "SYSTEM/Contents/registered"), "bis:/Contents")) { - fatal(fatalMsg = "An error occured during SYSTEM copying!") - } - p() - - color(0xFF0000) - print("Copying 120 save... ") - color(0xFFFFFF) - if (copyfile(combinepath(cwd(), "SYSTEM/save/8000000000000120"), "bis:/save/8000000000000120")) { - fatal(fatalMsg = "Failed to copy system save") - } - p("\n") -} - -actionRestoreBis = { - extractBis() - writeBis() -} - -actionRestoreSys = { - writeSys() - signSave() -} - -readBisAttrs() - -bootBisFound = !bisFileRes -systemFolderFound = fsexists(combinepath(cwd(), "SYSTEM")) - -if ((!bootBisFound) && (!systemFolderFound)){ - fatal(fatalMsg = "Nothing to restore found...\nPut a boot.bis and a SYSTEM dir from emmchaccgen next to this script!") -} - -if (!bootBisFound){ - p("Boot.bis not found. Cannot restore bis. Press any key to continue...") - pause() -} - -if (!systemFolderFound){ - p("SYSTEM dir not found. Cannot restore SYSTEM. Press any key to continue...") - pause() -} - -useSys = 1 - -if (emu()){ - p("Switch System Restore\n") - res = menu(["Exit", "Apply on Sysmmc", "Apply on Emummc"], 0) - if (res == 0){ - exit() - } - if (res == 2){ - useSys = 0 - } -} - -if (useSys){ - mmcread = emmcread - mmcwrite = emmcwrite - mount = mountsys -}.else() { - mmcread = emummcread - mmcwrite = emummcwrite - mount = mountemu -} - -clear() -p("Switch System Restore") -if (bootBisFound){ - p("Target:", bisName) -} -p() - -res = menu(["Exit", "Restore BIS", "Restore SYSTEM", "Restore Both"], 0) -if (res == 0){ - exit() -} - -clear() - -restoreBis = 0 -restoreSystem = 0 - -if ((res == 1) || (res == 3)){ - if (!bootBisFound){ - fatal(fatalMsg = "Boot.bis not found...") - } - - restoreBis = 1 -} - -if ((res == 2) || (res == 3)){ - if (!systemFolderFound){ - fatal(fatalMsg = "SYSTEM dir not found...") - } - - restoreSystem = 1 -} - -clear() -p("Switch System Restore") -color(0xFF00) - -if (useSys){ - mmcStr = "Sysmmc" -}.else() { - mmcStr = "Emummc" -} - -p("Restore BIS:", restoreBis) -p("Restore SYSTEM:", restoreSystem) -p("Restoring onto:", mmcStr) -color(0xFFFFFF) -p("Ready!") -color(0xE70000) -print("WARNING!!!\nIf you do not know exactly what this does. STOP!!!\nThis will fuck with your system!\nOnly do this as a last ditch recovery effort!\n") -color(0x40FF00) -p("For help go here: https://discord.gg/C29hYvh\n") -color(0xFFFFFF) -wait(tw = 10000) -p("Press Power to start the restore, any other key to exit") -if (!pause().power){ - exit() -} -clear() - -startMs = timer() - -if (restoreBis){ - actionRestoreBis() -} - -if (restoreSystem){ - actionRestoreSys() -} - -p("\n\nFully done in", (timer() - startMs) / 1000 ,"seconds!\nPress any key to exit") -pause() \ No newline at end of file diff --git a/_site/files/keys.zip b/_site/files/keys.zip deleted file mode 100644 index 62332ebf..00000000 Binary files a/_site/files/keys.zip and /dev/null differ diff --git a/_site/files/keys_ini.zip b/_site/files/keys_ini.zip deleted file mode 100644 index d0a7068e..00000000 Binary files a/_site/files/keys_ini.zip and /dev/null differ diff --git a/_site/files/linux-macos.zip b/_site/files/linux-macos.zip deleted file mode 100644 index 5a8b51b3..00000000 Binary files a/_site/files/linux-macos.zip and /dev/null differ diff --git a/_site/files/mariko.zip b/_site/files/mariko.zip deleted file mode 100644 index ad32bd52..00000000 Binary files a/_site/files/mariko.zip and /dev/null differ diff --git a/_site/files/memloader.zip b/_site/files/memloader.zip deleted file mode 100644 index 066ecb3d..00000000 Binary files a/_site/files/memloader.zip and /dev/null differ diff --git a/_site/files/old.rar b/_site/files/old.rar deleted file mode 100644 index dd8a64d1..00000000 Binary files a/_site/files/old.rar and /dev/null differ diff --git a/_site/files/r4s.zip b/_site/files/r4s.zip deleted file mode 100644 index b0f07f22..00000000 Binary files a/_site/files/r4s.zip and /dev/null differ diff --git a/_site/files/reBoot.zip b/_site/files/reBoot.zip deleted file mode 100644 index c1644a3c..00000000 Binary files a/_site/files/reBoot.zip and /dev/null differ diff --git a/_site/files/su.zip b/_site/files/su.zip deleted file mode 100644 index 86a4ff43..00000000 Binary files a/_site/files/su.zip and /dev/null differ diff --git a/_site/files/sxos.zip b/_site/files/sxos.zip deleted file mode 100644 index 28adb86e..00000000 Binary files a/_site/files/sxos.zip and /dev/null differ