This commit is contained in:
briaguya 2024-06-18 14:06:15 +01:00 committed by GitHub
commit f6030a3efc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 60 additions and 1 deletions

9
.gitignore vendored
View File

@ -55,8 +55,15 @@ rt64.log
node_modules/
# Recompiler Linux binary
# Recompiler Linux binaries
N64Recomp
RSPRecomp
# Developer environment setup directories
elf_generating_decomp
recomp_for_zelda
# macOS specific directory information file
.DS_Store
# Controller mappings file

11
build-recomp-binaries.sh Executable file
View File

@ -0,0 +1,11 @@
mkdir recomp_for_zelda
cd recomp_for_zelda
git clone https://github.com/N64Recomp/N64Recomp.git
cd N64Recomp
git checkout 8dfed04919b7bfdd0fd34ff049eed7020dea0d71
git submodule update --init --recursive
cmake -DCMAKE_BUILD_TYPE=Release -G Ninja -S . -B cmake-build
cmake --build cmake-build --config Release --target N64Recomp -j$(nproc)
cmake --build cmake-build --config Release --target RSPRecomp -j$(nproc)
cp cmake-build/N64Recomp ../../
cp cmake-build/RSPRecomp ../../

View File

@ -0,0 +1,38 @@
# todo: check for and verify correct baserom exists
mkdir -p elf_generating_decomp
cd elf_generating_decomp
# clone decomp
git clone https://github.com/zeldaret/mm.git
# enter the decomp directory
cd mm
# checkout the required commit of decomp to generate the elf
git checkout 23beee0717364de43ca9a82957cc910cf818de90
# cherry pick the disasm.py fix
git cherry-pick 3b8db093f6f9cfb5850a7100ba8aff0c1b099e42
# copy the baserom into the decomp directory
cp ../../baserom.mm.us.rev1.z64 .
# create a python virtual environment to install decomp deps
python3 -m venv .mm-env
# activate the venv
source .mm-env/bin/activate
# install decomp deps
pip install -r requirements.txt
# generate the elf/decompressed rom
make init -j$(nproc)
# deactivate the venv
deactivate
# copy the elf and uncompressed rom to Zelda64Recomp repo root
cp ./mm.us.rev1.rom_uncompressed.elf ../../
cp ./mm.us.rev1.rom_uncompressed.z64 ../../

3
generate-recomp-c-code.sh Executable file
View File

@ -0,0 +1,3 @@
./N64Recomp us.rev1.toml
./RSPRecomp aspMain.us.rev1.toml
./RSPRecomp njpgdspMain.us.rev1.toml