mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fix handling of 'developmentMode' for lobby-only builds
This commit is contained in:
@@ -367,8 +367,9 @@ class IVCMIDirsUNIX : public IVCMIDirs
|
|||||||
bool IVCMIDirsUNIX::developmentMode() const
|
bool IVCMIDirsUNIX::developmentMode() const
|
||||||
{
|
{
|
||||||
// We want to be able to run VCMI from single directory. E.g to run from build output directory
|
// We want to be able to run VCMI from single directory. E.g to run from build output directory
|
||||||
const bool result = bfs::exists("AI") && bfs::exists("config") && bfs::exists("Mods") && bfs::exists("vcmiclient");
|
const bool hasConfigs = bfs::exists("config") && bfs::exists("Mods");
|
||||||
return result;
|
const bool hasBinaries = bfs::exists("vcmiclient") || bfs::exists("vcmiserver") || bfs::exists("vcmilobby");
|
||||||
|
return hasConfigs && hasBinaries;
|
||||||
}
|
}
|
||||||
|
|
||||||
bfs::path IVCMIDirsUNIX::clientPath() const { return binaryPath() / "vcmiclient"; }
|
bfs::path IVCMIDirsUNIX::clientPath() const { return binaryPath() / "vcmiclient"; }
|
||||||
|
|||||||
Reference in New Issue
Block a user