mirror of https://github.com/snes9xgit/snes9x.git
libretro: fix uint8*/void* mismatch (Themaister)
This commit is contained in:
parent
9551890d0d
commit
38f7459ee7
|
@ -581,17 +581,17 @@ size_t retro_serialize_size()
|
|||
return S9xFreezeSize();
|
||||
}
|
||||
|
||||
bool retro_serialize(uint8_t *data, unsigned size)
|
||||
bool retro_serialize(void *data, size_t size)
|
||||
{
|
||||
if (S9xFreezeGameMem(data,size) == FALSE)
|
||||
if (S9xFreezeGameMem((uint8_t*)data,size) == FALSE)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool retro_unserialize(const uint8_t* data, unsigned size)
|
||||
bool retro_unserialize(const void* data, size_t size)
|
||||
{
|
||||
if (S9xUnfreezeGameMem(data,size) != SUCCESS)
|
||||
if (S9xUnfreezeGameMem((const uint8_t*)data,size) != SUCCESS)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue