From d88b9a561c9ee6e536778712bc2a7dcf5e246a40 Mon Sep 17 00:00:00 2001 From: Adrien Plazas Date: Sat, 12 Dec 2020 13:28:25 +0100 Subject: serialize: Move the default size to the header This will help the Libretro core return a large enough size instantaneously and without having to serialize. --- serialize.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'serialize.h') diff --git a/serialize.h b/serialize.h index f4a7402..2c0b9e3 100644 --- a/serialize.h +++ b/serialize.h @@ -4,6 +4,10 @@ #include #include +#ifndef SERIALIZE_DEFAULT_SIZE +#define SERIALIZE_DEFAULT_SIZE (256*1024) //default to enough for a Genesis save state +#endif + typedef struct { size_t size; size_t storage; -- cgit v1.2.3