summaryrefslogtreecommitdiff
path: root/sms.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-05-31 09:45:37 -0700
committerMichael Pavone <pavone@retrodev.com>2017-05-31 09:45:37 -0700
commit6bbed68c04f0c6d7204e8374fc3c15d7fdb1f552 (patch)
tree0ff21c715c56ceaa4785ad0ef913e67af7f3d420 /sms.c
parentc8f7bc2a454695690d071c7a509840fed06edfa4 (diff)
Added stub load_save and persist_save functions to SMS system so that we don't crash when switching games via the menu
Diffstat (limited to 'sms.c')
-rw-r--r--sms.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/sms.c b/sms.c
index fdfe31d..74df8b0 100644
--- a/sms.c
+++ b/sms.c
@@ -292,6 +292,16 @@ static void inc_debug_pal(system_header *system)
}
}
+static void load_save(system_header *system)
+{
+ //TODO: Implement me
+}
+
+static void persist_save(system_header *system)
+{
+ //TODO: Implement me
+}
+
sms_context *alloc_configure_sms(system_media *media, uint32_t opts, uint8_t force_region, rom_info *info_out)
{
memset(info_out, 0, sizeof(*info_out));
@@ -352,9 +362,8 @@ sms_context *alloc_configure_sms(system_media *media, uint32_t opts, uint8_t for
sms->header.set_speed_percent = set_speed_percent;
sms->header.start_context = start_sms;
sms->header.resume_context = run_sms;
- //TODO: Fill in NULL values
- sms->header.load_save = NULL;
- sms->header.persist_save = NULL;
+ sms->header.load_save = load_save;
+ sms->header.persist_save = persist_save;
sms->header.free_context = free_sms;
sms->header.get_open_bus_value = get_open_bus_value;
sms->header.request_exit = request_exit;