mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Refactor deserialization of objects (#170)
* Use template helpers for deserialization * Remove space * Fix naming
This commit is contained in:

committed by
GitHub

parent
62b97b8f1f
commit
a9fa734844
@@ -1,4 +1,5 @@
|
||||
#include "mxdssound.h"
|
||||
#include "legoutil.h"
|
||||
|
||||
DECOMP_SIZE_ASSERT(MxDSSound, 0xc0)
|
||||
|
||||
@@ -46,8 +47,7 @@ void MxDSSound::Deserialize(char **p_source, MxS16 p_unk24)
|
||||
{
|
||||
MxDSMediaAction::Deserialize(p_source, p_unk24);
|
||||
|
||||
this->m_volume = *(MxS32*) *p_source;
|
||||
*p_source += sizeof(MxS32);
|
||||
GetScalar(p_source, this->m_volume);
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100c9510
|
||||
|
Reference in New Issue
Block a user