mirror of
https://github.com/libretro/beetle-pce-fast-libretro.git
synced 2024-11-26 17:40:40 +00:00
Update retro_unserialize
This commit is contained in:
parent
7c7a568a2e
commit
c5621899a8
@ -1966,9 +1966,12 @@ bool retro_serialize(void *data, size_t size)
|
||||
bool retro_unserialize(const void *data, size_t size)
|
||||
{
|
||||
StateMem st;
|
||||
memset(&st, 0, sizeof(st));
|
||||
st.data = (uint8_t*)data;
|
||||
st.len = size;
|
||||
|
||||
st.data = (uint8_t*)data;
|
||||
st.loc = 0;
|
||||
st.len = size;
|
||||
st.malloced = 0;
|
||||
st.initial_malloc = 0;
|
||||
|
||||
return MDFNSS_LoadSM(&st, 0, 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user