From 1da06e04cc3a752bbd0b710d54b071c76a46f9f8 Mon Sep 17 00:00:00 2001 From: Andrey Filipenkov Date: Wed, 5 Apr 2023 20:22:29 +0300 Subject: [PATCH] fix "development mode" condition when building in single process mode --- lib/VCMIDirs.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/VCMIDirs.cpp b/lib/VCMIDirs.cpp index 5c56dc54f..3c0692885 100644 --- a/lib/VCMIDirs.cpp +++ b/lib/VCMIDirs.cpp @@ -367,7 +367,12 @@ class IVCMIDirsUNIX : public IVCMIDirs bool IVCMIDirsUNIX::developmentMode() const { // We want to be able to run VCMI from single directory. E.g to run from build output directory - return bfs::exists("AI") && bfs::exists("config") && bfs::exists("Mods") && bfs::exists("vcmiserver") && bfs::exists("vcmiclient"); + const bool result = bfs::exists("AI") && bfs::exists("config") && bfs::exists("Mods") && bfs::exists("vcmiclient"); +#if SINGLE_PROCESS_APP + return result; +#else + return result && bfs::exists("vcmiserver"); +#endif } bfs::path IVCMIDirsUNIX::clientPath() const { return binaryPath() / "vcmiclient"; }