# cod4map：重建 Call of Duty 4 的 BSP 编译器

> cod4map 根据 2007 年随 Call of Duty 4 模组工具发布的可执行文件重建 BSP 编译器。其 C/C++ 源码构建 32 位 Windows 版 cod4map.exe；项目采用面向 x87 的编译参数，因为 SSE2 浮点代码会改变 BSP 输出字节。

- 类型：案例
- 目标：二进制
- 类别：独立重建案例
- 关联：独立重建项目
- 来源复核于：2026-11-06
- 收录于：2026-11-09
- 原始资源：<https://github.com/prd0nja/cod4map>
- 一手来源：<https://github.com/prd0nja/cod4map/blob/fc4226bc2c980b52ff690cd47b23e43c89cd889b/README.md>
- 目录页面：<https://awesomerea.org/zh/resources/cod4map-reconstruction-case/>
- 记录 JSON：<https://awesomerea.org/resources/cod4map-reconstruction-case/record.json>
- 英文版：[English](https://awesomerea.org/resources/cod4map-reconstruction-case/index.md)

## 使用条件与局限

- **前提条件：**需使用带 x86 C++ 工具集的 Visual Studio 2019 或更新版本，以及 CMake 3.21 或更新版本。
- **前提条件：**生成的程序需从 Call of Duty 4 模组工具目录运行。
- **许可：**仓库中没有许可证文件。

## 一手来源

1. <https://github.com/prd0nja/cod4map/blob/fc4226bc2c980b52ff690cd47b23e43c89cd889b/README.md>

## 同分区更多条目：原生二进制

- [AGS Aging Cartridge：反汇编 7.0 版](https://awesomerea.org/zh/resources/ags-aging-cartridge-case/index.md) · 案例
- [GoonFi V2：Solana 程序的逐字节一致 Rust 重编译](https://awesomerea.org/zh/resources/goonfi-v2-rust-recompilation-case/index.md) · 案例
- [HyperCard 1.2.2：经典 Mac 应用的静态重编译](https://awesomerea.org/zh/resources/hypercard-122-recomp-case/index.md) · 案例
- [openbst：BeSTspeech 的 C 语言重实现](https://awesomerea.org/zh/resources/openbst-bestspeech-case/index.md) · 案例
- [OpenTV：用可移植 C 重建 Centigram TruVoice](https://awesomerea.org/zh/resources/opentv-truvoice-case/index.md) · 案例
- [L&H TruVoice：用可移植 C 重建 tv_enua.dll](https://awesomerea.org/zh/resources/lh-truvoice-decomp-case/index.md) · 案例

## 关于此条目

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