# shadowheartsdecompilation：Shadow Hearts PS2 运行时类的 C++ 反编译

> shadowheartsdecompilation 为 PS2 游戏 Shadow Hearts 的核心运行时类重建 C++ 源码，涵盖 CThread、CTimer、CPoller、CPolling、CPolObj、CDrawObj、CDrawPolling、CDraw、CApp、CPause、FVector 和 Matrix。每个方法都注明其在原可执行文件中的地址，代码直接调用 Emotion Engine 内核接口和硬件定时器寄存器。

- 类型：案例
- 目标：游戏
- 类别：独立重建案例
- 关联：独立重建项目
- 来源复核于：2026-11-09
- 收录于：2026-11-10
- 原始资源：<https://git.sr.ht/~benoitren/shadowheartsdecompilation>
- 一手来源：<https://git.sr.ht/~benoitren/shadowheartsdecompilation/tree/a757b59f228f4dd382688a5fee2946ea4cb4f31c/item/src/ctimer.h>
- 目录页面：<https://awesomerea.org/zh/resources/shadow-hearts-decompilation-case/>
- 记录 JSON：<https://awesomerea.org/resources/shadow-hearts-decompilation-case/record.json>
- 英文版：[English](https://awesomerea.org/resources/shadow-hearts-decompilation-case/index.md)

## 使用条件与局限

- **范围：**涵盖十二个运行时类，其中 CApp 的 Run 方法尚未反编译。
- **局限：**仓库只有 C++ 源文件和头文件，没有构建脚本。
- **许可：**CC0 1.0 Universal。

## 一手来源

1. <https://git.sr.ht/~benoitren/shadowheartsdecompilation/tree/a757b59f228f4dd382688a5fee2946ea4cb4f31c/item/src/ctimer.h>
2. <https://git.sr.ht/~benoitren/shadowheartsdecompilation/tree/a757b59f228f4dd382688a5fee2946ea4cb4f31c/item/README.md>
3. <https://git.sr.ht/~benoitren/shadowheartsdecompilation/tree/a757b59f228f4dd382688a5fee2946ea4cb4f31c/item/src/ctimer.cpp>
4. <https://git.sr.ht/~benoitren/shadowheartsdecompilation/tree/a757b59f228f4dd382688a5fee2946ea4cb4f31c/item/src/eekernel.h>

## 同分区更多条目：游戏

- [Sheep, Dog 'n' Wolf：基于反编译源码的跨平台实现](https://awesomerea.org/zh/resources/sheep-dog-n-wolf-rewooled-case/index.md) · 案例
- [skcollectioncport：用 C 重建 Sonic & Knuckles Collection](https://awesomerea.org/zh/resources/skcollectioncport-case/index.md) · 案例
- [SkiFree：1.04 版的 C 语言重建](https://awesomerea.org/zh/resources/skifree-decomp-case/index.md) · 案例
- [SMB Vanilla：两款 NES 马力欧游戏的 C 语言重建](https://awesomerea.org/zh/resources/smb-vanilla-case/index.md) · 案例
- [SMBDIS.ASM：《超级马力欧兄弟》完整注释反汇编](https://awesomerea.org/zh/resources/smbdis-super-mario-bros-disassembly-case/index.md) · 案例
- [smt-decomp：反编译 PlayStation 版《Shin Megami Tensei》](https://awesomerea.org/zh/resources/smt-decomp-case/index.md) · 案例

## 关于此条目

说明已依据一手来源复核。
原创说明采用 MIT 许可；外部项目、论文与素材保留各自的权利和许可。
