1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 17:24:47 +01:00

Desnake the rct2/rct12 fields (#19254)

This commit is contained in:
Michael Steenbeek
2023-01-22 20:16:41 +01:00
committed by GitHub
parent 07890df9e9
commit d8417fee30
11 changed files with 1498 additions and 1498 deletions

View File

@@ -102,15 +102,15 @@ static bool TryClassifyAsS6(OpenRCT2::IStream* stream, ClassifiedFileInfo* resul
{
auto chunkReader = SawyerChunkReader(stream);
auto s6Header = chunkReader.ReadChunkAs<RCT2::S6Header>();
if (s6Header.type == S6_TYPE_SAVEDGAME)
if (s6Header.Type == S6_TYPE_SAVEDGAME)
{
result->Type = FILE_TYPE::SAVED_GAME;
}
else if (s6Header.type == S6_TYPE_SCENARIO)
else if (s6Header.Type == S6_TYPE_SCENARIO)
{
result->Type = FILE_TYPE::SCENARIO;
}
result->Version = s6Header.version;
result->Version = s6Header.Version;
success = true;
}
catch (const std::exception& e)