1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix converting of megapark file when path fails to resolve (#7904)

This fixes a small regression from #7895.
This commit is contained in:
Hielke Morsink
2018-08-14 21:45:53 +02:00
committed by GitHub
parent f9d60ea106
commit c0becabcb8

View File

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