Actually remember to serialize the memory size in libretro builds

This commit is contained in:
刘皓 2025-05-25 10:19:13 -04:00
parent 58e3ec2035
commit 85b3340ea0
No known key found for this signature in database
GPG key ID: 7901753DB465B711

View file

@ -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);