Allow game to run without RCT2 install path

This commit is contained in:
Ted John authored and Gymnasiast committed 2018-03-26 21:38:09 +02:00
1 parent f3c125853b
commit f91449190a
1 file changed
+7 -4
+7 -4
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);