mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-27 18:30:56 +00:00
Fix compat issue between 64/32 bit savestates.
This commit is contained in:
parent
0061df58e9
commit
65d4601140
@ -69,7 +69,10 @@ void PGF::DoState(PointerWrap &p) {
|
||||
p.Do(header);
|
||||
p.Do(rev3extra);
|
||||
|
||||
p.Do(fontDataSize);
|
||||
// Don't savestate size_t directly, 32-bit and 64-bit are different.
|
||||
u32 fontDataSizeTemp = (u32)fontDataSize;
|
||||
p.Do(fontDataSizeTemp);
|
||||
fontDataSize = (size_t)fontDataSizeTemp;
|
||||
if (p.mode == p.MODE_READ) {
|
||||
if (fontData) {
|
||||
delete [] fontData;
|
||||
|
Loading…
Reference in New Issue
Block a user