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