diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-05-31 09:45:37 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-05-31 09:45:37 -0700 |
commit | 6bbed68c04f0c6d7204e8374fc3c15d7fdb1f552 (patch) | |
tree | 0ff21c715c56ceaa4785ad0ef913e67af7f3d420 | |
parent | c8f7bc2a454695690d071c7a509840fed06edfa4 (diff) |
Added stub load_save and persist_save functions to SMS system so that we don't crash when switching games via the menu
-rw-r--r-- | sms.c | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -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; |