summaryrefslogtreecommitdiff
path: root/source/main.c
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 /source/main.c
parent9ebec735c488e2f7ac29933fb51b4e6e65c7b93f (diff)
Implemented snapshots and SAVE.
Diffstat (limited to 'source/main.c')
-rw-r--r--source/main.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/source/main.c b/source/main.c
index 674478e..218dd40 100644
--- a/source/main.c
+++ b/source/main.c
@@ -59,8 +59,8 @@ static const char *main_menu[]=
#ifndef DS81_DISABLE_FAT
"Save Memory Snapshot",
"Load Memory Snapshot",
- "Save Joypad Mappings",
- "Load Joypad Mappings",
+ "Save Joypad/Key State",
+ "Load Joypad/Key State",
#endif
"Cancel",
NULL
@@ -98,9 +98,9 @@ static void Splash(void)
" "
"Welcome to DS81, a ZX81 emulator for the Ninetendo DS. "
"You can safely ignore this message. I was just bored for half an "
- "hour. And no retro item is complete without a side-scroller... "
- "Thanks to Slay Radio, the Genki Rockets and the High Voltage SID "
- "Collection for coding fuel."
+ "hour. And no retro game is complete without a side-scroller... "
+ "Thanks to Slay Radio, Ladytron, the Genki Rockets, the High "
+ "Voltage SID Collection and Retro Gamer for coding fuel."
};
static const char *text[]=
@@ -394,7 +394,7 @@ int main(int argc, char *argv[])
if (DS81_Config[DS81_LOAD_DEFAULT_SNAPSHOT])
{
- SNAP_Load(z80, "AUTO");
+ SNAP_Load(z80, "AUTO", SNAP_TYPE_FULL);
}
while(1)
@@ -438,19 +438,19 @@ int main(int argc, char *argv[])
#ifndef DS81_DISABLE_FAT
case MenuSaveSnapshot:
- SNAP_Save(z80);
+ SNAP_Save(z80, SNAP_TYPE_FULL);
break;
case MenuLoadSnapshot:
- SNAP_Load(z80, NULL);
+ SNAP_Load(z80, NULL, SNAP_TYPE_FULL);
break;
case MenuSaveMappings:
- // TODO
+ SNAP_Save(z80, SNAP_TYPE_KEYBOARD);
break;
case MenuLoadMappings:
- // TODO
+ SNAP_Load(z80, NULL, SNAP_TYPE_KEYBOARD);
break;
#endif
}