From 6bbed68c04f0c6d7204e8374fc3c15d7fdb1f552 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Wed, 31 May 2017 09:45:37 -0700 Subject: Added stub load_save and persist_save functions to SMS system so that we don't crash when switching games via the menu --- sms.c | 15 ++++++++++++--- 1 file 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; -- cgit v1.2.3