summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2008-12-12 00:19:08 +0000
committerIan C <ianc@noddybox.co.uk>2008-12-12 00:19:08 +0000
commit3cf17ecef2ac48e92910ac971fec9ea5b3eeb1d3 (patch)
treeb22b3ac08fa108630f85f8a3c8f330366272a4ed /include
parent9ebec735c488e2f7ac29933fb51b4e6e65c7b93f (diff)
Implemented snapshots and SAVE.
Diffstat (limited to 'include')
-rw-r--r--include/config.h1
-rw-r--r--include/snapshot.h10
2 files changed, 9 insertions, 2 deletions
diff --git a/include/config.h b/include/config.h
index 9946356..8dc05e8 100644
--- a/include/config.h
+++ b/include/config.h
@@ -31,6 +31,7 @@ typedef enum
DS81_STICKY_SHIFT,
DS81_AVERAGE_TOUCHSCREEN,
DS81_STATIC_RAM_AT_0x2000,
+ DS81_ALLOW_TAPE_SAVE,
DS81_LOAD_DEFAULT_SNAPSHOT,
DS81_NUM_CONFIG_ITEMS
} DS81_ConfigItem;
diff --git a/include/snapshot.h b/include/snapshot.h
index 0afd20b..5b0f536 100644
--- a/include/snapshot.h
+++ b/include/snapshot.h
@@ -24,8 +24,14 @@
#include "z80.h"
+typedef enum
+{
+ SNAP_TYPE_FULL,
+ SNAP_TYPE_KEYBOARD
+} SnapshotType;
+
void SNAP_Enable(int enable);
-void SNAP_Save(Z80 *cpu);
-void SNAP_Load(Z80 *cpu, const char *optional_name);
+void SNAP_Save(Z80 *cpu, SnapshotType type);
+void SNAP_Load(Z80 *cpu, const char *optional_name, SnapshotType type);
#endif /* DS81_SNAPSHOT_H */