summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/gui.h4
-rw-r--r--include/snap.h6
-rw-r--r--include/spec.h2
3 files changed, 10 insertions, 2 deletions
diff --git a/include/gui.h b/include/gui.h
index ed64ffe..027e2b6 100644
--- a/include/gui.h
+++ b/include/gui.h
@@ -21,6 +21,8 @@
#ifndef DSSPEC_GUI_H
#define DSSPEC_GUI_H
+#include <stdio.h>
+
int GUI_Menu(const char *opts[]);
void GUI_Alert(int fatal, const char *text);
void GUI_Config(void);
@@ -29,4 +31,6 @@ int GUI_FileSelect(char pwd[], char selected_file[],
int GUI_InputName(const char *prompt, const char *ext,
char name[], int maxlen);
+extern char last_dir[FILENAME_MAX];
+
#endif /* DSSPEC_GUI_H */
diff --git a/include/snap.h b/include/snap.h
index 62b6063..ce74bf3 100644
--- a/include/snap.h
+++ b/include/snap.h
@@ -37,7 +37,11 @@ typedef void (*SNAP_Poke)(Z80Word address, Z80Byte val);
/* Sets the active TAP file
*/
-void TAPSetTape(Z80Byte *tap, int len);
+void TAPOpenTape(const char *path);
+
+/* Close the active TAP file. Can be called when no tape is open.
+*/
+void TAPCloseTape(void);
/* Loads a block from a TAP file. Returns FALSE for failure.
*/
diff --git a/include/spec.h b/include/spec.h
index 8b7154b..47549a3 100644
--- a/include/spec.h
+++ b/include/spec.h
@@ -72,7 +72,7 @@ void SPECWritePort(Z80 *z80, Z80Word port, Z80Byte val);
/* Interface for snap
*/
-void SPECWriteSnap(Z80Word addr, Z80Byte val);
+void SPECWriteMemSNAP(Z80Word addr, Z80Byte val);
/* Interfaces to allows the SPEC to save/load itself as a snapshot to/from
a stream.