From 8bee9cf71e2a569732510081cd65f712426c62ab Mon Sep 17 00:00:00 2001 From: Misha <106913236+MishaProductions@users.noreply.github.com> Date: Sun, 17 Dec 2023 09:28:14 -0500 Subject: [PATCH] fix format --- LEGO1/mxdschunk.h | 8 ++++---- LEGO1/mxstreamchunk.cpp | 13 ++++++------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/LEGO1/mxdschunk.h b/LEGO1/mxdschunk.h index fa985abb..ca95440d 100644 --- a/LEGO1/mxdschunk.h +++ b/LEGO1/mxdschunk.h @@ -53,11 +53,11 @@ class MxDSChunk : public MxCore { } private: - MxU16 m_flags; // 0x8 + MxU16 m_flags; // 0x8 undefined4 m_objectid; // 0xc - MxLong m_time; // 0x10 - MxU32 m_length; // 0x14 - MxU8* m_data; // 0x18 + MxLong m_time; // 0x10 + MxU32 m_length; // 0x14 + MxU8* m_data; // 0x18 }; #endif // MXDSCHUNK_H diff --git a/LEGO1/mxstreamchunk.cpp b/LEGO1/mxstreamchunk.cpp index fd6992c4..d7d15a7a 100644 --- a/LEGO1/mxstreamchunk.cpp +++ b/LEGO1/mxstreamchunk.cpp @@ -32,14 +32,13 @@ MxResult MxStreamChunk::ReadChunk(MxDSBuffer* p_buffer, MxU8* p_chunkData) MxU32 MxStreamChunk::ReadChunkHeader(MxU8* p_chunkData) { MxU32 headersize = 0; - if(p_chunkData) - { - SetFlags(*(MxU16*)p_chunkData); - SetObjectId(*(MxU32*)(p_chunkData + 2)); - SetTime(*(MxLong*)(p_chunkData + 6)); - SetLength(*(MxU32*)(p_chunkData + 10)); + if (p_chunkData) { + SetFlags(*(MxU16*) p_chunkData); + SetObjectId(*(MxU32*) (p_chunkData + 2)); + SetTime(*(MxLong*) (p_chunkData + 6)); + SetLength(*(MxU32*) (p_chunkData + 10)); SetData(p_chunkData + 14); - headersize = (MxU32)(p_chunkData + 14) - (MxU32)p_chunkData; + headersize = (MxU32) (p_chunkData + 14) - (MxU32) p_chunkData; } return headersize; }