From 1ebfd74aa4965a1ec6a19dbaae353b7f6940f855 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Wed, 21 Jun 2017 02:19:18 +0200 Subject: [PATCH] Include official scripts in release archive --- Makefile | 1 + README.md | 2 +- resources/gm9/scripts/Backup EmuNAND.gm9 | 11 +++++++++++ resources/gm9/scripts/Backup SysNAND.gm9 | 10 ++++++++++ resources/gm9/support/aeskeydb.bin.here | 0 resources/gm9/support/encTitleKeys.bin.here | 0 resources/gm9/support/seeddb.bin.here | 0 7 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 resources/gm9/scripts/Backup EmuNAND.gm9 create mode 100644 resources/gm9/scripts/Backup SysNAND.gm9 create mode 100644 resources/gm9/support/aeskeydb.bin.here create mode 100644 resources/gm9/support/encTitleKeys.bin.here create mode 100644 resources/gm9/support/seeddb.bin.here diff --git a/Makefile b/Makefile index bba7012..26ea743 100644 --- a/Makefile +++ b/Makefile @@ -172,6 +172,7 @@ release: #@-cp $(OUTPUT).3dsx $(RELEASE)/$(TARGET) #@-cp $(OUTPUT).smdh $(RELEASE)/$(TARGET) @cp $(CURDIR)/README.md $(RELEASE) + @cp -R $(CURDIR)/resources/gm9 $(RELEASE)/gm9 @-7z a $(RELEASE)/$(TARGET)-`date +'%Y%m%d-%H%M%S'`.zip $(RELEASE)/* #--------------------------------------------------------------------------------- diff --git a/README.md b/README.md index 28b475f..3a34a52 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ __As always, be smart, keep backups, just to be safe__. These short instructions apply to all users who have ARM9loaderhax or SigHax and [Luma3DS](https://github.com/AuroraWright/Luma3DS) installed (Luma3DS set up with standard paths), which will be the majority of all GodMode9 users. Here's how to set it up quickly: * *[A9LH only]* Rename `GodMode9.bin`(from the release archive) to `X_GodMode9.bin`(change `X`to the button of your choice) and put it into `sd:/luma/payloads/` * *[SigHax only]* Rename `GodMode9.firm`(from the release archive) to `X_GodMode9.firm`(change `X`to the button of your choice) and put it into `sd:/luma/payloads/` -* Get good versions of `aeskeydb.bin`, `seeddb.bin` and `encTitlekeys.bin` from somewhere (don't ask me!) and put these three files into `sd:/gm9/support` (optional but recommended for full functionality). +* Copy the `gm9` folder from the release archive to your SD card. Then, get good versions of `aeskeydb.bin`, `seeddb.bin` and `encTitlekeys.bin` from somewhere (don't ask me!) and put these three files into `sd:/gm9/support` (optional but recommended for full functionality). * Helpful hint #1: Go [here](https://3ds.guide/godmode9-usage) for step by steps on doing some common tasks in GodMode9. Especially users coming from Decrypt9WIP or Hourglass9 may find this to be helpful. * Helpful hint #2: __Never unlock the red write permission level unless you know exactly what you're doing__. You will notice that prompt when it comes up, it features a completely red screen. It is recommended you stay on the yellow permission level or below at all times to be completely safe. Also read more on the write permissions system below. diff --git a/resources/gm9/scripts/Backup EmuNAND.gm9 b/resources/gm9/scripts/Backup EmuNAND.gm9 new file mode 100644 index 0000000..589c1b8 --- /dev/null +++ b/resources/gm9/scripts/Backup EmuNAND.gm9 @@ -0,0 +1,11 @@ +# EmuNAND backup GM9 script +# This will create a backup named [SERIAL]_nandmin_???.bin +# author: d0k3 + +set ERRORMSG "EmuNAND backup failed" +set SUCCESSMSGMSG "EmuNAND backup success" + +ask "Create a EmuNAND backup in $[GM9OUT]?" +findnot $[GM9OUT]/$[SERIAL]_emunand_???.bin OUTPATH +cp E:/nand_minsize.bin $[OUTPATH] +echo "Backup created succesfully:\n$[OUTPATH]" diff --git a/resources/gm9/scripts/Backup SysNAND.gm9 b/resources/gm9/scripts/Backup SysNAND.gm9 new file mode 100644 index 0000000..5f6977b --- /dev/null +++ b/resources/gm9/scripts/Backup SysNAND.gm9 @@ -0,0 +1,10 @@ +# SysNAND backup GM9 script +# This will create a backup named [SERIAL]_nandmin_???.bin +# author: d0k3 + +set ERRORMSG "SysNAND backup failed" + +ask "Create a SysNAND backup in $[GM9OUT]?" +findnot $[GM9OUT]/$[SERIAL]_sysnand_???.bin OUTPATH +cp S:/nand_minsize.bin $[OUTPATH] +echo "Backup created succesfully:\n$[OUTPATH]" diff --git a/resources/gm9/support/aeskeydb.bin.here b/resources/gm9/support/aeskeydb.bin.here new file mode 100644 index 0000000..e69de29 diff --git a/resources/gm9/support/encTitleKeys.bin.here b/resources/gm9/support/encTitleKeys.bin.here new file mode 100644 index 0000000..e69de29 diff --git a/resources/gm9/support/seeddb.bin.here b/resources/gm9/support/seeddb.bin.here new file mode 100644 index 0000000..e69de29