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

Replace load_from_sv6() and load_from_sc6()

This commit is contained in:
Gymnasiast
2022-10-08 19:27:47 +02:00
parent d5f6a5b285
commit 830fedb6b8
9 changed files with 7 additions and 95 deletions

View File

@@ -283,13 +283,9 @@ namespace Editor
auto extensionS = Path::GetExtension(path);
const char* extension = extensionS.c_str();
auto loadedFromSave = false;
if (_stricmp(extension, ".sc6") == 0)
GetContext()->LoadParkFromFile(path);
if (_stricmp(extension, ".sv6") == 0 || _stricmp(extension, ".sv7") == 0)
{
load_from_sc6(path);
}
else if (_stricmp(extension, ".sv6") == 0 || _stricmp(extension, ".sv7") == 0)
{
load_from_sv6(path);
loadedFromSave = true;
}