# UGH!：1992 年 DOS 游戏的 C++ 移植

> UGH! 根据对 UGH.EXE 的分析，将这款 1992 年 DOS 游戏逐函数移植到 C++23 和 SDL 3。程序从用户的可执行文件读取图像、关卡与声音，模拟 VGA Mode X 行为并移植 AdLib 驱动；项目说明记载了结合 Ghidra 使用 REA 插件的分析流程。

- 类型：案例
- 目标：游戏
- 类别：REA 社区调查案例
- 关联：作者报告的混合工具流程
- 来源复核于：2026-11-09
- 收录于：2026-11-09
- 原始资源：<https://github.com/janroz/ugh-port>
- 一手来源：<https://github.com/janroz/ugh-port/blob/73221a389385a0883423b74df7d5f3e92cfc305d/README.md>
- 目录页面：<https://awesomerea.org/zh/resources/ugh-port-case/>
- 记录 JSON：<https://awesomerea.org/resources/ugh-port-case/record.json>
- 英文版：[English](https://awesomerea.org/resources/ugh-port-case/index.md)

## 使用条件与局限

- **前提条件：**需要指定的 DOS 版 UGH.EXE，其 SHA-256 哈希见项目文档。
- **前提条件：**构建需要 C++23 编译器、CMake 3.28 以上、Ninja 和 SDL 3.2 以上；首次配置会获取 Nuked-OPL3。
- **局限：**摇杆尚未移植；Windows 版本尚未测试。
- **许可：**移植版源码采用 MIT 许可证。

## 一手来源

1. <https://github.com/janroz/ugh-port/blob/73221a389385a0883423b74df7d5f3e92cfc305d/README.md>
2. <https://github.com/janroz/ugh-port/blob/73221a389385a0883423b74df7d5f3e92cfc305d/CLAUDE.md>

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

- [Ultima IV：Master System 匹配重建与 PC 移植](https://awesomerea.org/zh/resources/ultima-iv-sms-recompiled-case/index.md) · 案例
- [Uncharted Collection PC：在 Windows 运行 PS4 三部曲](https://awesomerea.org/zh/resources/uncharted-collection-zorde23-case/index.md) · 案例
- [Uncharted: The Nathan Drake Collection：PS4 合集的 Windows 原生移植](https://awesomerea.org/zh/resources/uncharted-nathan-drake-collection-supermedo-case/index.md) · 案例
- [unturned-godot：将《Unturned》地图与玩法移植到 Godot](https://awesomerea.org/zh/resources/unturned-godot-case/index.md) · 案例
- [Vagrant Story Native：PS1 游戏的 Windows 原生移植](https://awesomerea.org/zh/resources/vagrant-story-native-case/index.md) · 案例
- [Valiant Hearts Vita：在 PS Vita 上运行 Android 版《勇敢的心》](https://awesomerea.org/zh/resources/valiant-hearts-vita-case/index.md) · 案例

## 关于此条目

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