PrimeDecomp/echoes
GitHub: PrimeDecomp/echoes
对 GameCube 游戏《银河战士 Prime 2:回声》进行匹配式反编译,产出与原版字节完全一致的源代码和可构建产物。
Stars: 52 | Forks: 1
# Metroid Prime 2: Echoes
[![构建状态]][actions] ![进度] ![DOL 进度] ![RELs 进度] [![Discord 徽章]][discord]
《Metroid Prime 2: Echoes》的逆向工程还原。
本仓库用于构建以下 DOL:
```
6ef9b491d0cc08bc81a124fdedb8bfaec34d0010 build/G2ME01/main.dol
7f24a768f7b1a687adb88e56559ad8637ed80589 build/G2MJ01/main.dol
5a670d5da3d181e86a0df7cf7751c7055eee35fb build/G2MP01/main.dol
442947ba57dce414917feab0e75a8227690b3e4b build/R32J01/main.dol
2375606f4e9429a699cfa02728b0bb1176421226 build/R3ME01/main.dol
077712e46eb7cf2488942f337d215636edbc972d build/R3MP01/main.dol
```
# 依赖项
## Windows:
- 安装 [ninja](https://github.com/ninja-build/ninja/releases) 并将其添加到 `%PATH%` 中。
- 安装 [Python](https://www.python.org/downloads/) 并将其添加到 `%PATH%` 中。
- 也可从 [Windows Store](https://apps.microsoft.com/store/detail/python-311/9NRWMJP3717K) 获取。
- (可选)运行 `Add-Exclusion.ps1`(右键点击 -> "使用 PowerShell 运行")以避免 Windows Defender 扫描导致性能下降。
## macOS:
- 安装 [ninja](https://github.com/ninja-build/ninja/wiki/Pre-built-Ninja-packages):
brew install ninja
- 安装 [wine-crossover](https://github.com/Gcenx/homebrew-wine):
brew install --cask --no-quarantine gcenx/wine/wine-crossover
## Linux:
- 安装 [ninja](https://github.com/ninja-build/ninja/wiki/Pre-built-Ninja-packages)。
- 从你的包管理器中安装 wine。
- 更快的替代方案:[WiBo](https://github.com/decompals/WiBo),一个轻量的 32 位 Windows 二进制文件包装器。
确保二进制文件位于 `PATH` 中。
# 构建
- 检出仓库:
git clone https://github.com/PrimeDecomp/echoes.git
- 下载 [GC_WII_COMPILERS.zip](https://cdn.discordapp.com/attachments/727918646525165659/1129759991696457728/GC_WII_COMPILERS.zip)
- 将 `GC` 目录中的*内容*解压到 `tools/mwcc_compiler`。
- 生成的目录结构应类似于 `tools/mwcc_compiler/1.3.2/mwcceppc.exe`
- 使用 [Dolphin Emulator](https://dolphin-emu.org/),将你的游戏文件提取到 `orig/G2ME01` 中。

- 为了节省空间,只需保留以下文件。其他文件均可删除。
- `sys/main.dol`
- `files/RelProd/*.rel`
- 配置:
python configure.py
- 构建:
ninja
标签:C++, GameCube, Ninja, Python, ROM破解, URL提取, Wii, 二进制分析, 云安全监控, 云安全运维, 云资产清单, 代码重构, 任天堂, 反编译, 复古游戏, 开源游戏项目, 数据擦除, 无后门, 游戏反编译, 游戏源码, 编译器, 网络安全研究, 跨平台编译, 软件逆向, 逆向工具, 逆向工程, 银河战士, 静态分析