# Kingdom Hearts: Chain of Memories (GBA)
[![Build Status]][actions] [![us]][progress] [![jp]][progress] [![eu]][progress]
[Build Status]: https://github.com/pheenoh/khcom/actions/workflows/build.yml/badge.svg
[actions]: https://github.com/pheenoh/khcom/actions/workflows/build.yml
[us]: https://decomp.dev/pheenoh/khcom/us.svg?mode=shield&label=us
[jp]: https://decomp.dev/pheenoh/khcom/jp.svg?mode=shield&label=jp
[eu]: https://decomp.dev/pheenoh/khcom/eu.svg?mode=shield&label=eu
[progress]: https://decomp.dev/pheenoh/khcom
[
][progress]
A matching decompilation of *Kingdom Hearts: Chain of Memories*
for the Game Boy Advance.
> [!IMPORTANT]
> This repository does **not** contain any game assets or ROMs. An existing
> copy of the game is required to build.
The project can target the following versions:
| Version | Code | SHA-1 |
|---------|------|-------|
| `us` | B8CE | `10729bd884f8fdca7a310b6d606c52e46657aa48` |
| `jp` | B8CJ | `59ec0a0a4ccd1e6acb3bbd7bfb21d63988958cfa` |
| `eu` | B8CP | `8db73586cdb11b3795907edebf43228dbcd3e6b2` |
## Dependencies
- git
- ninja
- python3
- PyYAML (`python3 -m pip install pyyaml`)
- `binutils-arm-none-eabi`
- [agbcc](https://github.com/pret/agbcc):
```sh
git clone https://github.com/pret/agbcc
cd agbcc && ./build.sh && ./install.sh ../khcom
```
## Building
- Clone the repository:
```sh
git clone https://github.com/pheenoh/khcom.git
```
- Copy your legally dumped ROM(s) into `roms/` as `.gba` (e.g. `roms/B8CE.gba`).
- Extract assets:
```sh
python3 tools/extract_assets.py
```
- Configure:
```sh
python3 configure.py
```
To use a version other than `us`, specify it with `--version`.
- Build:
```sh
ninja
```
## License
This project is released under the [CC0 1.0 Universal](LICENSE.md) license.