From 85b3340ea0ed0a8594b4617fe8f99cce61958fdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=9A=93?= Date: Sun, 25 May 2025 10:19:13 -0400 Subject: [PATCH] Actually remember to serialize the memory size in libretro builds --- src/core.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core.cpp b/src/core.cpp index de8189a8..772660ce 100644 --- a/src/core.cpp +++ b/src/core.cpp @@ -1594,6 +1594,7 @@ extern "C" RETRO_API bool retro_serialize(void *data, size_t len) { { // Write the size of the VM memory wasm_size_t memory_size = sb()->memory_size(); + if (!sandbox_serialize(memory_size, data, max_size)) return false; // Write the VM memory itself RESERVE(memory_size);