1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 12:03:07 +01:00

Fix .sea files not being listed in scenario index (#23013)

This commit is contained in:
Aaron van Geffen
2024-10-17 21:27:25 +02:00
committed by GitHub
parent 2c7c9a5e05
commit 0c842d795e
2 changed files with 11 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
- Fix: [#22918] Zooming with keyboard moves the view off centre.
- Fix: [#22921] Wooden RollerCoaster flat to steep railings appear in front of track in front of them.
- Fix: [#22962] Fuzzy horizontal-to-vertical line transitions in charts.
- Fix: [#23009] Scenarios from RCT Classic (.sea files) are not included in the scenario index.
0.4.15 (2024-10-06)
------------------------------------------------------------------------

View File

@@ -209,15 +209,24 @@ private:
std::string extension = Path::GetExtension(path);
if (String::IEquals(extension, ".park"))
{
importer = ParkImporter::CreateParkFile(objRepository);
importer->LoadScenario(path, true);
}
else if (String::IEquals(extension, ".sc4"))
{
importer = ParkImporter::CreateS4();
importer->LoadScenario(path, true);
}
else
{
importer = ParkImporter::CreateS6(objRepository);
auto stream = GetStreamFromRCT2Scenario(path);
importer->LoadFromStream(stream.get(), true);
}
if (importer)
{
importer->LoadScenario(path, true);
if (importer->GetDetails(entry))
{
entry->Path = path;