From da07b7686ec92580e12c03ee833eb21cdb1e5934 Mon Sep 17 00:00:00 2001 From: PhazonicRidley Date: Wed, 1 Apr 2020 15:25:34 -0700 Subject: [PATCH 1/2] added a save dumper script --- scripts/savedumper.te | 50 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 scripts/savedumper.te diff --git a/scripts/savedumper.te b/scripts/savedumper.te new file mode 100644 index 0000000..1fa589a --- /dev/null +++ b/scripts/savedumper.te @@ -0,0 +1,50 @@ +printf("Such save, many dump"); +printf("What mmc would you like to dump from"); +printf("Press + for sysnand"); +if (@EMUMMC) { + printf("Or press - for emummc"); +} +printf("Press power to cancel"); + +pause(); + +if (@BTN_VOL+){ + printf("Mounting SYSMMC..."); + mmc_connect("SYSMMC"); +} +if (@BTN_VOL-){ + @noemu = invert(@EMUMMC); + if (@noemu){ + exit(); + } + printf("Mounting EMUMMC..."); + mmc_connect("EMUMMC"); +} +if (@BTN_POWER) { + exit(); +} + +printf("Which partition do you want to dump from? + for SYSTEM - for USER"); +pause(); + +if (@BTN_VOL+) { + printf("Mounting SYSTEM..."); + mmc_mount("SYSTEM"); + setString("systemSaves", $folder); +} + +if (@BTN_VOL-) { + printf("Mounting USER...."); + mmc_mount("USER"); + setString("userSaves", $folder); +} +combineStrings("sd:/tegraexplorer/", $folder, $path); +fs_mkdir($path); +combineStrings("Copying saves to ", $path, $out); +printf($out); +printf(""); +fs_copyRecursive("emmc:/save", $path); +printf(""); +printf("Done, press any button to exit"); +pause(); +exit(); \ No newline at end of file From f8db34c5e16bace21f6228de1015c4fb5fe116b2 Mon Sep 17 00:00:00 2001 From: PhazonicRidley Date: Wed, 1 Apr 2020 15:25:57 -0700 Subject: [PATCH 2/2] fixed a typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b82ffdd..cf450a5 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ You can use `if()`, `goto()`, `check()` and `math()` functions to control the fl ``` @i = setInt(0); ?LOOP; -@check = check(@i "<=", 10); +@check = check(@i, "<=", 10); if (@check){ @i = math(@i, "+", 1); printInt(@i);