REDIVIVUS

Building and running Redivivus

source: docs/building.md @ 1b1c2d3

This is the build that delivers a runnable d2.exe today, with a modern compiler. To compile with the compilers that built the original, Visual C++ 2005 SP1 and Apple LLVM 4.2, with their flags, see original-compilers.md.

You need

Build

sh
cmake -S . -B build -G Ninja -DCMAKE_TOOLCHAIN_FILE=cmake/mingw-i686.cmake
cmake --build build

That produces build/d2.exe, a 32-bit Windows executable. tools/check-build.sh does the same from a clean clone and checks the result; CI runs it on every push.

Run

Copy d2.exe into your Diablo II folder, next to the original Game.exe, and start it from there:

text
d2.exe -w

-w runs it in a window.