1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Allow game to run without RCT2 install path

This commit is contained in:
Ted John
2018-02-10 21:43:26 +00:00
committed by Gymnasiast
parent f3c125853b
commit f91449190a

View File

@@ -301,12 +301,15 @@ namespace OpenRCT2
// return false;
// } //This comment was relocated so it would stay where it was in relation to the following lines of code.
auto rct2InstallPath = GetOrPromptRCT2Path();
if (rct2InstallPath.empty())
if (!gOpenRCT2Headless)
{
return false;
auto rct2InstallPath = GetOrPromptRCT2Path();
if (rct2InstallPath.empty())
{
return false;
}
_env->SetBasePath(DIRBASE::RCT2, rct2InstallPath);
}
_env->SetBasePath(DIRBASE::RCT2, rct2InstallPath);
_objectRepository = CreateObjectRepository(_env);
_objectManager = CreateObjectManager(_objectRepository);