prime/README.md

81 lines
2.7 KiB
Markdown
Raw Normal View History

2022-11-23 09:31:04 -08:00
Metroid Prime [![Build Status]][actions] ![Code Progress] ![Data Progress]
2022-07-18 16:52:28 -07:00
=============
2022-11-23 09:31:04 -08:00
[Build Status]: https://github.com/PrimeDecomp/prime/actions/workflows/build.yml/badge.svg
[actions]: https://github.com/PrimeDecomp/prime/actions/workflows/build.yml
[Code Progress]: https://img.shields.io/endpoint?label=Code&url=https%3A%2F%2Fprogress.deco.mp%2Fdata%2Fprime%2F0%2Fdol%2F%3Fmode%3Dshield%26measure%3Dcode
[Data Progress]: https://img.shields.io/endpoint?label=Data&url=https%3A%2F%2Fprogress.deco.mp%2Fdata%2Fprime%2F0%2Fdol%2F%3Fmode%3Dshield%26measure%3Ddata
2022-07-18 16:52:28 -07:00
2022-08-22 07:21:58 -07:00
A decompilation of Metroid Prime.
2022-07-18 16:52:28 -07:00
2022-08-22 07:21:58 -07:00
This repository builds the following DOLs:
2022-07-18 16:52:28 -07:00
```
2022-08-22 07:21:58 -07:00
949c5ed7368aef547e0b0db1c3678f466e2afbff build/mp1.0/main.dol (USA 0-00)
860141f9671fc141ce8f55448643f713bc64b349 build/mp1.1/main.dol (USA 0-01)
2022-08-22 20:54:30 -07:00
52316d2a71c0d18c84f054fd6f1e58bdd7bf0ded build/mp1.kor/main.dol (KOR)
2022-07-18 16:52:28 -07:00
```
2022-09-22 10:51:13 -07:00
If you'd like to contribute, see [CONTRIBUTING.md](CONTRIBUTING.md).
2022-07-18 16:52:28 -07:00
Dependencies
============
Windows:
--------
2022-11-27 20:06:16 -08:00
- Install [ninja](https://github.com/ninja-build/ninja/releases) and add it to `%PATH%`.
2022-07-18 16:52:28 -07:00
- Install [devkitPro](https://github.com/devkitPro/installer/releases/latest) with GameCube development package.
- Open `C:\devkitPro\msys2\msys2.exe`
2022-11-27 20:06:16 -08:00
- Install GameCube development packages:
2022-07-18 16:52:28 -07:00
```
pacman -Sy --noconfirm --needed msys2-keyring
pacman -Su --noconfirm --needed gcc git gamecube-dev
````
macOS:
------
2022-11-27 20:06:16 -08:00
- Install [ninja](https://github.com/ninja-build/ninja/wiki/Pre-built-Ninja-packages):
2022-07-18 16:52:28 -07:00
```
2022-11-27 20:06:16 -08:00
brew install ninja
```
- Install [wine-crossover](https://github.com/Gcenx/homebrew-wine):
```
brew install --cask --no-quarantine gcenx/wine/wine-crossover
2022-07-18 16:52:28 -07:00
```
- Install [devkitPro](https://github.com/devkitPro/pacman/releases/latest).
2022-11-27 20:06:16 -08:00
- Install GameCube development packages:
2022-07-18 16:52:28 -07:00
```
sudo dkp-pacman -Syu --noconfirm --needed gamecube-dev
```
Linux:
------
2022-11-27 20:06:16 -08:00
- Install [ninja](https://github.com/ninja-build/ninja/wiki/Pre-built-Ninja-packages).
2022-07-18 16:52:28 -07:00
- Install wine from your package manager.
2022-07-18 17:23:07 -07:00
- Faster alternative: [WiBo](https://github.com/decompals/WiBo), a minimal 32-bit Windows binary wrapper.
Ensure the binary is in `PATH`.
2022-07-18 16:52:28 -07:00
- Install [devkitPro](https://devkitpro.org/wiki/devkitPro_pacman).
2022-11-27 20:06:16 -08:00
- Install GameCube development packages:
2022-07-18 16:52:28 -07:00
```
sudo dkp-pacman -Syu --noconfirm --needed gamecube-dev
```
Building
========
- Checkout the repository:
```
git clone https://github.com/PrimeDecomp/prime.git
```
- Download [GC_WII_COMPILERS.zip](https://cdn.discordapp.com/attachments/727918646525165659/917185027656286218/GC_WII_COMPILERS.zip)
2022-11-27 20:06:16 -08:00
- Extract the _contents_ of the `GC` directory to `tools/mwcc_compiler`.
- Resulting structure should be (for example) `tools/mwcc_compiler/1.3.2/mwcceppc.exe`
- Configure:
```
python configure.py
```
2022-07-18 16:52:28 -07:00
- Build:
```
2022-11-27 20:06:16 -08:00
ninja
2022-10-07 01:58:45 -07:00
```