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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user