mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-22 09:09:15 +01:00
fix WriteSaveHeader
This commit is contained in:
parent
f3a931e1c9
commit
4819d195d8
@ -43,10 +43,10 @@ WriteSaveBuf(uint8 *&buf, const T &value)
|
||||
WriteSaveBuf(buf, b); \
|
||||
WriteSaveBuf(buf, c); \
|
||||
WriteSaveBuf(buf, d); \
|
||||
WriteSaveBuf(buf, (uint32)size);
|
||||
WriteSaveBuf(buf, (uint32)(size));
|
||||
|
||||
#ifdef VALIDATE_SAVE_SIZE
|
||||
#define CheckSaveHeader(buf, a, b, c, d, size) { \
|
||||
#define CheckSaveHeader(buf, a, b, c, d, size) do { \
|
||||
char _C; uint32 _size;\
|
||||
ReadSaveBuf(&_C, buf);\
|
||||
assert(_C == a);\
|
||||
@ -58,7 +58,7 @@ WriteSaveBuf(uint8 *&buf, const T &value)
|
||||
assert(_C == d);\
|
||||
ReadSaveBuf(&_size, buf);\
|
||||
assert(_size == size);\
|
||||
}
|
||||
} while(0)
|
||||
#else
|
||||
#define CheckSaveHeader(buf, a, b, c, d, size) SkipSaveBuf(buf, 8);
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user