summaryrefslogtreecommitdiff
path: root/system.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-08-16 20:06:28 -0700
committerMichael Pavone <pavone@retrodev.com>2017-08-16 20:06:28 -0700
commit120310c083d538ec8770651ebd017b928524c10a (patch)
treea7b5154d91f1961e5d9cfc7b5a1ef2ef9d224cb0 /system.h
parent6393973204570eec25522b681749c843fb283ff0 (diff)
Added save states to SMS emulation
Diffstat (limited to 'system.h')
-rw-r--r--system.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/system.h b/system.h
index 2bfe5b1..b71097b 100644
--- a/system.h
+++ b/system.h
@@ -22,6 +22,7 @@ typedef uint16_t (*system_fun_r16)(system_header *);
typedef void (*system_str_fun)(system_header *, char *);
typedef uint8_t (*system_str_fun_r8)(system_header *, char *);
typedef void (*speed_system_fun)(system_header *, uint32_t);
+typedef uint8_t (*system_u8_fun_r8)(system_header *, uint8_t);
#include "arena.h"
#include "romdb.h"
@@ -32,6 +33,7 @@ struct system_header {
system_fun resume_context;
system_fun load_save;
system_fun persist_save;
+ system_u8_fun_r8 load_state;
system_fun request_exit;
system_fun soft_reset;
system_fun free_context;