Clean-room C++ decompilation of Divinity II: Developer's Cut (MSVC 2008 SP1) — verified source only https://mirage.fyi/p/divinity2-dc
  • C++ 99.3%
  • C 0.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-27 12:17:17 -05:00
.github/workflows sync: update verified C/C++ matches from mirage.fyi 2026-11-27 00:15:22 -05:00
include Initial scaffold and verified C++ matches from mirage.fyi 2026-11-26 23:29:10 -05:00
src sync: update verified C/C++ matches from mirage.fyi 2026-11-27 02:15:45 -05:00
.gitignore sync: update verified C/C++ matches from mirage.fyi 2026-11-27 00:15:22 -05:00
CONTRIBUTING.md sync: update verified C/C++ matches from mirage.fyi 2026-11-27 12:17:17 -05:00
LEGAL.md Initial scaffold and verified C++ matches from mirage.fyi 2026-11-26 23:29:10 -05:00
LICENSE Initial scaffold and verified C++ matches from mirage.fyi 2026-11-26 23:29:10 -05:00
README.md sync: update verified C/C++ matches from mirage.fyi 2026-11-27 02:49:32 -05:00

Divinity II: Developer's Cut — C++ Decompilation

Progress

Community compiler-matching C++ preservation project for Larian's Divinity II: Developer's Cut (GOG DRM-Free, MSVC 2008 SP1 / cl.exe 15.00.30729).

Target Build & Compiler

Field Value
Target Binary Officially DRM-free GOG retail edition (SHA-256: d0be71446fc3553e80cc0a48c690c18a38842a105e9805aa37a49415c927d279)
Compiler MSVC 2008 SP1 (cl.exe 15.00.30729.01, 32-bit x86)
Canonical Flags /O2 /Ob2 /Oi /Oy /EHsc /GR /MD
Total Indexed Functions 117,591 (11.77 MB .text)
Verified 100% Matches 64 functions (2,353 B)

Subsystem Breakdown

Subsystem Functions Matched Bytes Matched
Gamebryo_Renderer.cpp 32 / 45,553 1.5 KB / 4.52 MB (0.03%)
Divinity_GameLogic.cpp 4 / 24,387 0.0 KB / 2.31 MB (0.00%)
Kaim_Kynapse_AI.cpp 13 / 11,580 0.3 KB / 1.15 MB (0.02%)
Scaleform_GFx_UI.cpp 5 / 11,316 0.1 KB / 1.11 MB (0.01%)
Wwise_Audio.cpp 3 / 8,314 0.2 KB / 0.78 MB (0.02%)
PhysX_Collision.cpp 2 / 6,417 0.1 KB / 0.71 MB (0.01%)
Lua_Scripting.cpp 2 / 4,177 0.1 KB / 0.46 MB (0.02%)
Engine_Runtime_CRT.cpp 1 / 3,361 0.0 KB / 0.38 MB (0.01%)
SpeedTree_World.cpp 2 / 2,486 0.0 KB / 0.35 MB (0.01%)

Contributing (Zero Local Binary Needed)

You can decompile and verify functions directly in your browser or with any AI assistant (Claude, ChatGPT, Gemini, Codex, Cursor) without installing legacy Windows toolchains:

  1. Visit https://mirage.fyi/p/divinity2-dc or connect an agent via https://mirage.fyi/connect.
  2. Every verified 100% match is compiled on the authentic compiler (msvc-2008-sp1) with strict clean-C++ quality gates (no inline asm, no pragma overrides, no decompiler placeholders).
  3. Matched C++ functions are exported into src/<Subsystem>/<fn_id>.cpp in this repository.

This repository contains clean-room C++ source code only. It does not contain or distribute any proprietary game executables, DLLs, textures, audio, dialogue, levels, or playable builds. To run any future rebuilt binary, users must supply the game assets from their own legally owned DRM-free copy.

Not affiliated with or endorsed by Larian Studios, GOG, and Microsoft. See LEGAL.md for full details.