From 8c16b55565a8a80defea7df192c23acf9ad89537 Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 9 Aug 2021 21:04:15 +0000 Subject: Altered snapshot to use last dir, rather than hardcoded. --- source/snapshot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/snapshot.c b/source/snapshot.c index 61cffc2..2ef1c5d 100644 --- a/source/snapshot.c +++ b/source/snapshot.c @@ -105,7 +105,7 @@ void SNAP_Save(Z80 *cpu, SnapshotType type) strcat(base, extension[type]); - strcpy(file, DEFAULT_SNAPDIR); + strcpy(file, last_dir); strcat(file, base); fp = fopen(file, "wb"); @@ -147,7 +147,7 @@ void SNAP_Load(Z80 *cpu, const char *optional_name, SnapshotType type) if (optional_name) { - strcpy(file, DEFAULT_SNAPDIR); + strcpy(file, last_dir); strcat(file, optional_name); strcat(file, extension[type]); -- cgit v1.2.3