aboutsummaryrefslogtreecommitdiff
path: root/libretro.c
diff options
context:
space:
mode:
Diffstat (limited to 'libretro.c')
-rw-r--r--libretro.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libretro.c b/libretro.c
index ddd8f46..a4de925 100644
--- a/libretro.c
+++ b/libretro.c
@@ -606,8 +606,12 @@ bool retro_serialize(void* data, size_t size)
return true;
}
bool retro_unserialize(const void* data, size_t size)
-{
+{
const uint8_t* buffer = data;
+
+ if (size != retro_serialize_size())
+ return false;
+
S9xReset();
uint8* IAPU_RAM_current = IAPU.RAM;