forked from zaksabeast/3ds-Friend-Account-Manager
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from TraceEntertains/pretendo
Juxtaposition patches, SSL patch, CIA building, code.bin decompressing guide, and more
- Loading branch information
Showing
29 changed files
with
496 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "patches/ssl"] | ||
path = patches/ssl | ||
url = https://github.com/TraceEntertains/3DS-SSL-Patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Decompressing code.bin files | ||
This is a tutorial on how to get, extract, and decompress code.bin files for patch compilation. | ||
|
||
## Method 1 | ||
1. Have a hacked 3DS | ||
2. Open GodMode9, press the HOME button, then open "Title manager" -> "NAND / TWL" | ||
3. For each module you need (list below), then press A, then press "Open title folder". | ||
4. Then press A on the .app file in the folder, select "NCCH image options...". | ||
5. Select "Extract .code" | ||
6. 0:/gm9/out should now have a file called <ModuleTitleID>.dec.code, which is your code.bin for that app. | ||
7. Repeat steps 3-6 for the remaining modules. | ||
8. For each module, move it to its proper folder named as code.bin (folder names are next to module names in module list below) | ||
9. Done! | ||
|
||
### Modules to dump | ||
- Account (act): 0004013000003802 | ||
- Friends (friends): 0004013000003202 | ||
- SSL (ssl): 0004013000002F02 | ||
- Miiverse (miiverse): | ||
- JPN: 000400300000BC02 | ||
- USA: 000400300000BD02 | ||
- EUR: 000400300000BE02 | ||
|
||
Any miiverse module is fine and should generate a patch that works and + is identical for all regions. | ||
|
||
## Method 2 (Requires running a GM9 script) | ||
1. Have a hacked 3DS | ||
2. Download dump_modules.gm9 from [here](https://github.com/TraceEntertains/nimbus-module-extractor/releases/latest) | ||
3. Put it in sd:/gm9/scripts | ||
4. Run the script (Home Button -> Scripts -> dump_modules.gm9) | ||
5. Turn off your 3DS and remove the SD card. | ||
6. Copy the folder (named patches) from the nimbusmodules folder located on your SD card to your local clone of nimbus, and merge when prompted. | ||
7. Done! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,59 @@ | ||
.PHONY: all patches app clean | ||
.PHONY: all clean | ||
|
||
all: patches app | ||
OUT_FOLDER := out | ||
|
||
FRIEND_TITLE_ID := 0004013000003202 | ||
CIA_OUT_FOLDER := $(OUT_FOLDER)/cia_out | ||
3DSX_OUT_FOLDER := $(OUT_FOLDER)/3dsx_out | ||
|
||
3DS_OUT := 3ds | ||
CIA_OUT := cias | ||
|
||
LUMA_OUT := luma/titles | ||
|
||
FRIENDS_TITLE_ID := 0004013000003202 | ||
ACT_TITLE_ID := 0004013000003802 | ||
SSL_TITLE_ID := 0004013000002F02 | ||
MIIVERSE_ID_JPN := 000400300000BC02 | ||
MIIVERSE_ID_USA := 000400300000BD02 | ||
MIIVERSE_ID_EUR := 000400300000BE02 | ||
|
||
FRIENDS_OUT := $(LUMA_OUT)/$(FRIENDS_TITLE_ID) | ||
ACT_OUT := $(LUMA_OUT)/$(ACT_TITLE_ID) | ||
SSL_OUT := $(LUMA_OUT)/$(SSL_TITLE_ID) | ||
MIIVERSE_OUT_JPN := $(LUMA_OUT)/$(MIIVERSE_ID_JPN) | ||
MIIVERSE_OUT_USA := $(LUMA_OUT)/$(MIIVERSE_ID_USA) | ||
MIIVERSE_OUT_EUR := $(LUMA_OUT)/$(MIIVERSE_ID_EUR) | ||
|
||
3DS_OUT := out/3ds | ||
LUMA_OUT := out/luma/titles | ||
FRIEND_OUT := $(LUMA_OUT)/$(FRIEND_TITLE_ID) | ||
ACT_OUT := $(LUMA_OUT)/$(ACT_TITLE_ID) | ||
all: | ||
@rm -rf $(OUT_FOLDER) | ||
|
||
patches: | ||
@mkdir -p $(FRIEND_OUT) $(ACT_OUT) | ||
@mkdir -p $(3DSX_OUT_FOLDER)/$(FRIENDS_OUT) $(3DSX_OUT_FOLDER)/$(ACT_OUT) | ||
@mkdir -p $(3DSX_OUT_FOLDER)/$(SSL_OUT) $(3DSX_OUT_FOLDER)/$(MIIVERSE_OUT_JPN) | ||
@mkdir -p $(3DSX_OUT_FOLDER)/$(MIIVERSE_OUT_USA) $(3DSX_OUT_FOLDER)/$(MIIVERSE_OUT_EUR) | ||
@mkdir -p $(3DSX_OUT_FOLDER)/$(3DS_OUT) $(CIA_OUT_FOLDER) | ||
@mkdir -p $(CIA_OUT_FOLDER)/$(CIA_OUT) | ||
|
||
@$(MAKE) -C patches | ||
@cp -r patches/friends/out/* $(FRIEND_OUT) | ||
@cp -r patches/act/out/* $(ACT_OUT) | ||
|
||
@cp -r patches/friends/out/* $(3DSX_OUT_FOLDER)/$(FRIENDS_OUT) | ||
@cp -r patches/act/out/* $(3DSX_OUT_FOLDER)/$(ACT_OUT) | ||
@cp -r patches/ssl/out/* $(3DSX_OUT_FOLDER)/$(SSL_OUT) | ||
@cp -r patches/miiverse/out/* $(3DSX_OUT_FOLDER)/$(MIIVERSE_OUT_JPN) | ||
@cp -r patches/miiverse/out/* $(3DSX_OUT_FOLDER)/$(MIIVERSE_OUT_USA) | ||
@cp -r patches/miiverse/out/* $(3DSX_OUT_FOLDER)/$(MIIVERSE_OUT_EUR) | ||
@cp -r patches/miiverse/*.pem $(3DSX_OUT_FOLDER)/$(3DS_OUT) | ||
|
||
@cp -r $(3DSX_OUT_FOLDER)/* $(CIA_OUT_FOLDER) | ||
|
||
app: | ||
@$(MAKE) -C app | ||
@mkdir -p $(3DS_OUT) | ||
@cp app/*.3dsx $(3DS_OUT) | ||
@$(MAKE) -C app 3dsx | ||
@echo copied 3dsx to 3dsx out folder... | ||
@cp app/*.3dsx $(3DSX_OUT_FOLDER)/$(3DS_OUT) | ||
|
||
@$(MAKE) -C app cia | ||
@echo copied cia to cia out folder... | ||
@cp app/*.cia $(CIA_OUT_FOLDER)/$(CIA_OUT) | ||
|
||
clean: | ||
@$(MAKE) -C patches clean | ||
@$(MAKE) -C app clean | ||
@rm -rf out | ||
@rm -rf $(OUT_FOLDER) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Oops, something went wrong.