瀏覽代碼

fix "development mode" condition when building in single process mode

Andrey Filipenkov 2 年之前
父節點
當前提交
1da06e04cc
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      lib/VCMIDirs.cpp

+ 6 - 1
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"; }