From 97c302f7611a06c51504390c83ea3cbefb5f0c45 Mon Sep 17 00:00:00 2001 From: Robert Beckebans Date: Thu, 13 Apr 2023 22:04:34 +0200 Subject: [PATCH] If -DSTANDALONE=ON option is set filesystem will look for content/ instead of base/ --- neo/CMakeLists.txt | 2 +- neo/framework/Licensee.h | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/neo/CMakeLists.txt b/neo/CMakeLists.txt index 987d84e6..585dca87 100644 --- a/neo/CMakeLists.txt +++ b/neo/CMakeLists.txt @@ -12,7 +12,7 @@ if(CMAKE_MAJOR_VERSION EQUAL 3 AND CMAKE_MINOR_VERSION GREATER_EQUAL 6) endif() option(STANDALONE - "Skip DOOM-3-BFG base/ folder and use assets/ instead" OFF) + "Skip DOOM-3-BFG base/ folder and use content/ instead" OFF) option(DOOM_CLASSIC "Build with Doom 1 & 2" ON) diff --git a/neo/framework/Licensee.h b/neo/framework/Licensee.h index deba52fb..46f84277 100644 --- a/neo/framework/Licensee.h +++ b/neo/framework/Licensee.h @@ -47,7 +47,11 @@ If you have questions concerning this license or the applicable additional terms #define ENGINE_BRANCH "master" // jmarshall end -#define BASE_GAMEDIR "base" +#ifdef STANDALONE + #define BASE_GAMEDIR "content" +#else + #define BASE_GAMEDIR "base" +#endif #define CONFIG_FILE "D3BFGConfig.cfg"