From f0b5ea10c9a7ff7b4d67dc5348a9d4bc60c2e9a0 Mon Sep 17 00:00:00 2001 From: Stephan Unverwerth Date: Sun, 24 Jun 2018 22:26:12 +0200 Subject: [PATCH] Add readme section for modern visual studio (#71) Add notice to disable Data Execution Prevention. --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 47743b95c..1c043d3a0 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,13 @@ Building with Visual C++ 5.10 - Make sure Service Pack 3 is installed in order to update the linker from 5.00 -> 5.10! Newer versions of Visual Studio work as well, but will upgrade the project. - Open the project workspace `Diablo.dsw` and select `Build Diablo.exe`. This will build all dependencies and only takes a few seconds. +Building with modern version of Visual Studio +- Make sure to disable Data Exection Prevention: Configuration options -> Linker -> Advanced -> Data Execution Prevention (DEP). +- Set this value to: No (/NXCOMPAT: NO). +- Storm.dll uses dynamic compilation to improve rendering performance but fails to mark the resulting memory page as executable, leading to a protection fault when trying to draw. + + + Building with MinGW(32/64) - Ensure that the MinGW binary paths have been added to the command line. On Windows, you would usually type: `set PATH=C:\mingw\bin;C:\mingw\msys\1.0\bin` - For MinGW32, navigate to the project root and execute `make MINGW32=1`. The process will take longer than Visual Studio.