Skip to content

Latest commit

 

History

History
61 lines (37 loc) · 1.48 KB

BUILDING.md

File metadata and controls

61 lines (37 loc) · 1.48 KB

Building

Compiling

  1. Clone the repo with git clone https://github.com/hallcristobal/tpgz.git
  1. In the root tpgz folder, run:

    git submodule update --init --recursive
    
  2. Copy your NTSC-U Twilight Princess ISO to the root tpgz folder, then rename it to gz2e01.iso.

  3. Install devkitpro.

  4. Download Romhack-Compiler. This is used to add our compiled code into the ISO.
    (It is recommended that you add romhack.exe to your PATH.)

  5. Run make in the root tpgz folder to compile the code.

  6. Run romhack build --raw to create a new ISO with our changes applied.
    The new ISO is located at build/tpgz.iso.

Using Patches

Patch files are a convenient way to share your changes with others.

  • To create a patch, run:

    romhack build --raw --patch
    

    The new patch file is located at build/tpgz.patch.

  • To apply a patch, run:

    romhack apply <example.patch> <ntsc-u-input.iso> <output.iso>
    

    Your patched ISO will be named <output.iso>.

Fonts

To compile alternative fonts:

  1. Place your font in external/fonts/fonts/

  2. Replace the following command in the Makefile:

    cargo run -I fonts/your_font.ttf -S 18.0 -N Your_Font_Name -O build
  3. Run make font