From d16860da6415e6e52c28e4dc1e88ef9ecafaf72e Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Thu, 21 Aug 2025 20:31:56 +0200 Subject: [PATCH] Update OrcaStream::ChunkEntry fields to new code style --- src/openrct2/core/OrcaStream.hpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/openrct2/core/OrcaStream.hpp b/src/openrct2/core/OrcaStream.hpp index 13cff497d3..7ad95b8995 100644 --- a/src/openrct2/core/OrcaStream.hpp +++ b/src/openrct2/core/OrcaStream.hpp @@ -62,9 +62,9 @@ namespace OpenRCT2 struct ChunkEntry { - uint32_t Id{}; - uint64_t Offset{}; - uint64_t Length{}; + uint32_t id{}; + uint64_t offset{}; + uint64_t length{}; }; #pragma pack(pop) @@ -238,12 +238,12 @@ namespace OpenRCT2 return false; } - _currentChunk.Id = chunkId; - _currentChunk.Offset = _buffer.GetPosition(); - _currentChunk.Length = 0; + _currentChunk.id = chunkId; + _currentChunk.offset = _buffer.GetPosition(); + _currentChunk.length = 0; ChunkStream stream(_buffer, _mode); f(stream); - _currentChunk.Length = static_cast(_buffer.GetPosition()) - _currentChunk.Offset; + _currentChunk.length = static_cast(_buffer.GetPosition()) - _currentChunk.offset; _chunks.push_back(_currentChunk); return true; } @@ -251,10 +251,10 @@ namespace OpenRCT2 private: bool SeekChunk(const uint32_t id) { - const auto result = std::find_if(_chunks.begin(), _chunks.end(), [id](const ChunkEntry& e) { return e.Id == id; }); + const auto result = std::find_if(_chunks.begin(), _chunks.end(), [id](const ChunkEntry& e) { return e.id == id; }); if (result != _chunks.end()) { - const auto offset = result->Offset; + const auto offset = result->offset; _buffer.SetPosition(offset); return true; }