summaryrefslogtreecommitdiff
path: root/serialize.h
diff options
context:
space:
mode:
authorAdrien Plazas <kekun.plazas@laposte.net>2020-12-12 13:28:25 +0100
committertwinaphex <libretro@gmail.com>2021-03-12 08:42:23 +0100
commitd88b9a561c9ee6e536778712bc2a7dcf5e246a40 (patch)
tree7874efbfbbeacb4a43d2d1a4d853d46e31ec25b5 /serialize.h
parentda869b41fbb3bfb2c31798abf01e648d6dc15221 (diff)
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.
Diffstat (limited to 'serialize.h')
-rw-r--r--serialize.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/serialize.h b/serialize.h
index f4a7402..2c0b9e3 100644
--- a/serialize.h
+++ b/serialize.h
@@ -4,6 +4,10 @@
#include <stdint.h>
#include <stddef.h>
+#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;