mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-27 03:24:15 +01:00
zero out work_buff before writing padding in save
This commit is contained in:
parent
cb72fee941
commit
2d38eb923d
@ -251,6 +251,11 @@ GenericSave(int file)
|
||||
WriteSaveDataBlock(CStreaming::MemoryCardSave, "StreamingSize");
|
||||
WriteSaveDataBlock(CPedType::Save, "PedTypeSize");
|
||||
|
||||
// sure just write garbage data repeatedly ...
|
||||
#ifndef THIS_IS_STUPID
|
||||
memset(work_buff, 0, sizeof(work_buff));
|
||||
#endif
|
||||
|
||||
// Write padding
|
||||
for (int i = 0; i < 4; i++) {
|
||||
size = align4bytes(SIZE_OF_ONE_GAME_IN_BYTES - totalSize - 4);
|
||||
|
Loading…
Reference in New Issue
Block a user