hells-gate-recomp README

项目的 README,来自 github.com/florinp93/hells-gate-recomp。合并为一个 markdown 文件:README.md。

Hell's Gate

Dante's Inferno (Xbox 360), statically recompiled to run natively on PC.

Dante's Inferno fan artwork
Fan artwork by POOTERMAN (#12)

Latest release Ko-fi Discord Other Projects


Hell's Gate is a PC port of Dante's Inferno built with the ReXGlue SDK. The game's Xbox 360 PowerPC executable is translated ahead of time into portable C++ and compiled into a native program. There is no emulator and no JIT at runtime.

On top of the recompiled game, Hell's Gate ships its own renderer: the game's Direct3D layer is replaced by a project-owned implementation on DiligentCore (Vulkan), so the game draws at any resolution and aspect ratio without emulating the Xenos GPU.

You need your own copy of the game. Hell's Gate contains no game files. The installer asks for an Xbox 360 ISO of Dante's Inferno that you dumped yourself.

✨ Features

Playability

Graphics (native renderer, default since 0.8.0)

Input

Launcher

🎮 Getting started

Windows

  1. Download the latest package from Releases.
  2. Run DantesInfernoInstaller.exe, choose an install folder and point it at your Dante's Inferno Xbox 360 ISO.
  3. Launch from the desktop shortcut, adjust settings if you like, and press PLAY.

The launcher writes dantes_inferno.toml next to the game and checks for updates when it opens.

Linux

A working Vulkan driver is required on every platform.

DLC

Open the launcher's DLC tab, click Open DLC Folder, copy your DLC STFS package files in, then start the game. They are installed automatically on startup.

⚙️ Settings

Everything below is exposed in the launcher. Advanced users can pass the same options as command-line flags.

Setting Flag Notes
Resolution --dante_resolution=WIDTHxHEIGHT Defaults to your display's native resolution
Frame rate --video_mode_refresh_rate=60 60 / 120 / 180 / 240. Use multiples of 60
SMAA --dante_smaa=true On by default
Shadow quality --dante_shadow_scale=2 Shadow map scale, 1–4
Renderer --renderer=dante xenos is the D3D12 fallback (see below)

If the native renderer misbehaves on your machine, set renderer_override in dantes_inferno.toml to fall back to the emulated Xenos/D3D12 path.

🛠️ Building from source

You need your own default.xex and game files in game/ (see game/README.md). Requirements: Git, CMake 3.25+, Ninja, Clang 18+ (Clang 22 on Linux), Python 3 and PowerShell 7 (pwsh). Windows also needs Visual Studio 2022 with the Windows SDK.

The native renderer needs DiligentCore. Clone it before running setup so the project's patches are applied to it:

git clone --depth 1 --recurse-submodules https://github.com/DiligentGraphics/DiligentCore.git thirdparty/diligent-core
pwsh ./setup.ps1   # clones ReXGlue SDK v0.10.0 and applies the patches in patches/

On Linux, ./setup.sh does the same without PowerShell and also clones DiligentCore.

Windows

cmake --preset win-amd64-release -DREXSDK_DIR=thirdparty\rexglue-sdk
cmake --build out\build\win-amd64-release --target dantes_inferno_codegen
python patches\generated\apply_generated_patches.py
cmake --build out\build\win-amd64-release --target dantes_inferno

To package the launcher, installer and game into a release folder, run launcher\package-release.ps1 (details in launcher/README.md).

You can also cross-compile the Windows build from Linux with clang-cl and xwin; see docs/linux-cross-compile.md.

Linux (Ubuntu, Vulkan)

Step-by-step native Linux build

1. Install dependencies (keeps a backup of the manifest, which later steps overwrite):

cp dantes_inferno_manifest.toml dantes_inferno_manifest.toml.back
chmod +x ./scripts/install_dantes_min.sh
./scripts/install_dantes_min.sh

2. Set up the SDK (after cloning DiligentCore as above):

pwsh ./setup.ps1

3. Configure and build the ReXGlue CLI. The same configure command is reused below, so it is kept in a variable:

CONFIGURE=(cmake -B out/build/linux-release -G Ninja
  -DCMAKE_C_COMPILER=/usr/bin/clang-22
  -DCMAKE_CXX_COMPILER=/usr/bin/clang++-22
  "-DCMAKE_CXX_FLAGS=-stdlib=libstdc++ -I$(pwd)/thirdparty/rexglue-sdk/thirdparty/imgui -mssse3 -mavx2"
  -DREXSDK_DIR=thirdparty/rexglue-sdk)

"${CONFIGURE[@]}"
cmake --build out/build/linux-release --target rexglue

4. Build the Xenos GPU plugin:

cmake --build out/build/linux-release --target rexgpu-xenos
cp thirdparty/rexglue-sdk/out/linux-amd64/lib*.so ./out/build/linux-release/

5. Regenerate the SDK-managed project files (game/default.xex must be present):

thirdparty/rexglue-sdk/out/linux-amd64/rexglue init \
  --force \
  --project-name dantes_inferno \
  --project-root . \
  --xex-path game/default.xex \
  --game-root game

6. Generate the recompiled C++:

"${CONFIGURE[@]}"
cp dantes_inferno_manifest.toml.back dantes_inferno_manifest.toml
cmake --build out/build/linux-release --target dantes_inferno_codegen

7. Apply the generated-code patches:

python3 patches/generated/apply_generated_patches.py

8. Build the game:

"${CONFIGURE[@]}"
cp dantes_inferno_manifest.toml.back dantes_inferno_manifest.toml
cmake --build out/build/linux-release --target dantes_inferno
rm dantes_inferno_manifest.toml.back

The executable is out/build/linux-release/dantes_inferno.

9. Run it from the repository root:

./scripts/dantes_inferno_exe.sh

Linux (openSUSE Tumbleweed)

Differences from the Ubuntu steps

Steps 1 to 4 were tested on Tumbleweed with Clang 23; steps 5 to 9 need game/default.xex and are not yet tested on openSUSE. Clone the repository to a path with no apostrophe (') in it: parts of the build pass the path to the shell unquoted.

1. Install dependencies (also installs shaderc and wine, which FidelityFX needs to generate its shader permutations):

cp dantes_inferno_manifest.toml dantes_inferno_manifest.toml.back
./scripts/install_opensuse.sh

2. Set up the SDK without PowerShell. setup.sh does what setup.ps1 does and also clones DiligentCore and applies its patch:

./setup.sh

3 to 9. Follow the Ubuntu steps, but use the system Clang in CONFIGURE:

  -DCMAKE_C_COMPILER=clang
  -DCMAKE_CXX_COMPILER=clang++

🗺️ Status and roadmap

Current release: 0.8.0-beta

Area Status
Recompiled game: boots, saves, fully playable ✅ Done
FMV (VP6) playback fixes ✅ Done
Mouse & keyboard, SDL controller support ✅ Done
Ultrawide and 4:3 ✅ Done
DLC auto-install ✅ Done
High refresh rate (up to 240 FPS) ✅ Done
Native renderer (--renderer=dante) ✅ Default; still being refined
SMAA, higher-resolution shadows ✅ Done
Button glyphs (Xbox / PlayStation / keyboard) ✅ Done
Trials of Saint Lucia online server 🔬 In development (research)

📚 Documentation

Document Topic
Native renderer design How the D3D layer is replaced, milestones
Native D3D map The game's Direct3D entry points
Frame rate How high refresh rates are made to work
VP6 FMV fix Video corruption root cause and fix
Linux cross-compile Building on Linux, running under Proton
ReXGlue notes SDK notes and patches
Trials online emulator DLC online research

🤝 Contributing

Bug reports, pull requests and translations are welcome. The Italian launcher translation came from the community (#63), and the ARM64 launcher and AppImage from #11. Come say hi on Discord.

🤖 AI usage disclosure

AI tools were used as an assistant for documentation drafts, research into APIs and references, and routine Git work such as commit messages. Core architecture, problem-solving, implementation and final review are done by the project's human developers.

Credits

Hell's Gate is an unofficial fan project and is not affiliated with or endorsed by Electronic Arts, Visceral Games or Microsoft. Dante's Inferno is a trademark of its respective owners. This repository contains no game code or assets; you must provide your own legally obtained copy of the game.

hells-gate-recomp (florinp93/hells-gate-recomp)

正在搜索数据库…

这是什么?这是一个静态重编译移植项目,把 Xbox 360 版 Dante's Inferno 带到原生 PC 上:用 ReXGlue SDK 把原始的 PowerPC XEX 可执行文件直接转译成能在 Windows(D3D12)和 Linux(Vulkan)上原生运行的 C++ 代码。
这是模拟器,还是真的转换了游戏代码?它不是模拟器——ReXGlue 执行静态重编译,把 Xbox 360 的 PowerPC XEX 可执行文件变成可移植的 C++,再编译成真正的原生可执行文件,运行时没有任何模拟层或 JIT。
怎么构建并运行这个移植版?把锁定版本的 ReXGlue SDK(v0.10.0)克隆到 thirdparty/rexglue-sdk,构建一次 SDK CLI,把你自行提取的 Xbox 360 ISO 放进 game/(入口点在 game/default.xex),重新生成由 SDK 管理的脚手架,然后配置并构建——构建会自动运行 rexglue codegen,把 XEX 转译成 C++,并生成 out\win-amd64\Release\dantesinferno.exe。
构建之前需要装好什么?Windows 10/11 x64、Clang 18+(LLVM/Clang)、CMake 3.25+、Ninja 构建系统,以及用于 Windows SDK 和 D3D12 头文件的 Visual Studio 2022。
用它必须拥有这份游戏吗?必须——你要把自己合法提取的 Xbox 360 Dante's Inferno ISO 放进 game/,因为仓库里不含任何游戏文件或素材,受版权保护的内容绝不能提交。
做好的移植版也能在 Linux 上运行吧,不只是 Windows?能——重编译完成后,移植版既能在 Windows 上通过 D3D12 运行,也能在 Linux 上通过 Vulkan 原生运行,尽管文档里的构建前提主要围绕 Windows/D3D12 工具链。
代码和游戏素材的许可情况是怎样的?本仓库只包含移植脚手架和配置;它依赖的 ReXGlue SDK 采用 BSD 3-Clause 许可证,而 Dante's Inferno 及其游戏素材仍归权利人所有,不在这里分发。
为什么用静态重编译,而不是 Xenia 这样的模拟器?静态重编译提前把原始的 Xbox 360 机器码转成原生 C++,避免了运行时 JIT/模拟的开销,还能对移植做更深入的原生级定制。
我可以自定义移植版的行为吗?可以——你可以在 src/dantesinfernoapp.h 里重写 OnPostSetup、OnCreateDialogs 和 OnConfigurePaths 这类虚拟钩子;这是用户自己的文件,通过 rexglue init/migrate 重新生成 SDK 内容时也会保留。
ReXGlue 到底是什么?ReXGlue 是执行静态重编译的底层 SDK,把 Xbox 360 的 XEX 可执行文件转译成可移植的 C++;它是一个独立的 BSD 3-Clause 许可项目,本移植把它锁定在 v0.10.0。
游戏的重编译代码是 AI 写的吗?不是——AI 只用于文档草稿、调研和日常 git 工作流任务;所有核心架构、实现和问题解决全部由人类完成。
作者
florinp93
大小
7.1 MB
星标
924
时长
3个月
提交 · 90 天