mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-30 10:43:02 +02:00
Actually remember to serialize the memory size in libretro builds
This commit is contained in:
parent
58e3ec2035
commit
85b3340ea0
1 changed files with 1 additions and 0 deletions
|
@ -1594,6 +1594,7 @@ extern "C" RETRO_API bool retro_serialize(void *data, size_t len) {
|
||||||
{
|
{
|
||||||
// Write the size of the VM memory
|
// Write the size of the VM memory
|
||||||
wasm_size_t memory_size = sb()->memory_size();
|
wasm_size_t memory_size = sb()->memory_size();
|
||||||
|
if (!sandbox_serialize(memory_size, data, max_size)) return false;
|
||||||
|
|
||||||
// Write the VM memory itself
|
// Write the VM memory itself
|
||||||
RESERVE(memory_size);
|
RESERVE(memory_size);
|
||||||
|
|
Loading…
Add table
Reference in a new issue