1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 06:44:38 +01:00

Allow loading CSS17.DAT and MP.DAT on all three RCT1 sources

This should equalise the three in terms of supported features.
This commit is contained in:
Michael Steenbeek
2018-08-14 15:41:51 +02:00
committed by GitHub
parent 6e7621b304
commit f9d60ea106
4 changed files with 19 additions and 4 deletions

View File

@@ -486,7 +486,15 @@ private:
{
auto mpdatPath = _env->GetFilePath(PATHID::MP_DAT);
auto scenarioDirectory = _env->GetDirectoryPath(DIRBASE::USER, DIRID::SCENARIO);
auto sc21Path = Path::Combine(scenarioDirectory, "sc21.sc4");
auto sc21Path = Path::ResolveCasing(Path::Combine(scenarioDirectory, "sc21.sc4"));
// If the user has a Steam installation.
if (!File::Exists(mpdatPath))
{
mpdatPath = Path::ResolveCasing(
Path::Combine(_env->GetDirectoryPath(DIRBASE::RCT1), "RCTdeluxe_install", "Data", "mp.dat"));
}
if (File::Exists(mpdatPath) && !File::Exists(sc21Path))
{
ConvertMegaPark(mpdatPath, sc21Path);