Skip to content

Commit

Permalink
1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lifehackerhansol committed May 11, 2022
1 parent 8d79138 commit 133c8ab
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dist
build
universal/data
generator/romfs/path.txt
generator/id.txt
generator/output
bannertool*
makerom*
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ YANBF (Yet Another nds-bootstrap Forwarder) is a forwarder structure for nds-boo
1. Open a terminal or command prompt and cd inside the generator folder
1. Run `generator <path to ROM on your SD card>`
- Make sure to replace `<path to ROM on your SD card>` with the full path to your ROM
- this ROM MUST BE ON YOUR SD CARD! It will fail to generate properly otherwise!
1. The resulting CIA, by default, will be available in `sd:/cias` folder
- If you do not have your SD card inserted in your computer, you **must** provide a custom ROM path using `-p <ROM path on SD>`
- This ROM path must follow POSIX standards
- i.e. if your ROM on SD card is at "sd:/ROMs/ROM.nds", pass `-p "/ROMs/ROM.nds"`
1. The resulting CIA will be generated in this same folder. Copy this to the `sd:/cias` folder
1. Boot your 3DS and install both CIAs using FBI

### Using the graphical user interface
Expand All @@ -44,10 +46,10 @@ YANBF (Yet Another nds-bootstrap Forwarder) is a forwarder structure for nds-boo
1. Install YANBFGenerator app
- Linux: Open YANBF-GUI.AppImage
1. Set the generator directory to the path of your `generator` folder. A file browser icon next to the input can help with this
1. Drag and drop as many ROMs as you need on your SD card to the app.
1. Drag and drop as many ROMs as you need on your SD card to the app
- These ROMs MUST BE ON YOUR SD CARD! It will fail to generate properly otherwise!
1. Click the Download button to start the generation process
1. The resulting CIA, by default, will be available in `sd:/cias` folder
1. The resulting CIA will be generated in this same folder. Copy this to the `sd:/cias` folder
1. Boot your 3DS and install all CIAs using FBI

## Updating files:
Expand Down
2 changes: 1 addition & 1 deletion generator/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def makeuniqueid(self):
return 0

def makecia(self):
makeromarg = f'{self.cmdarg}makerom -f cia -target t -exefslogo -rsf data/build-cia.rsf -elf data/forwarder.elf -banner data/banner.bin -icon data/output.smdh -DAPP_ROMFS=romfs -major 1 -minor 5 -micro 0 -DAPP_VERSION_MAJOR=1 -o "{self.output}" '
makeromarg = f'{self.cmdarg}makerom -f cia -target t -exefslogo -rsf data/build-cia.rsf -elf data/forwarder.elf -banner data/banner.bin -icon data/output.smdh -DAPP_ROMFS=romfs -major 1 -minor 6 -micro 0 -DAPP_VERSION_MAJOR=1 -o "{self.output}" '
makeromarg += f'-DAPP_PRODUCT_CODE=CTR-H-{self.gamecode} -DAPP_TITLE="{self.title["eng"][0]}" -DAPP_UNIQUE_ID={self.uniqueid}'
makeromrun = subprocess.run(makeromarg, shell=True, capture_output=True, universal_newlines=True)
if makeromrun.returncode != 0:
Expand Down
2 changes: 1 addition & 1 deletion generator/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

setup(
name="generator",
version="1.5.0",
version="1.6.0",
description="YANBF Generator",
options={"build_exe": build_exe_options},
executables=[Executable("generator.py", base=base)],
Expand Down

0 comments on commit 133c8ab

Please sign in to comment.