forked from rosebudai/OpenRCT2-Web
Allow game to run without RCT2 install path
This commit is contained in:
1 parent
f3c125853b
commit
f91449190a
1 file changed
+7
-4
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user