From 8b3d092ac6a448797d36a2323ffac5a20c42c5e7 Mon Sep 17 00:00:00 2001 From: Robin Jones Date: Tue, 10 Oct 2023 23:41:24 +0100 Subject: [PATCH] Add fixme notes for save restore --- src/flashcart/ed64/ed64.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/flashcart/ed64/ed64.c b/src/flashcart/ed64/ed64.c index 83b735f4..313722ab 100644 --- a/src/flashcart/ed64/ed64.c +++ b/src/flashcart/ed64/ed64.c @@ -21,6 +21,10 @@ static flashcart_err_t ed64_init (void) { // FIXME: Update firmware if needed. // FIXME: Enable RTC if available. + + // FIXME: retrive a config file from (probably SRAM) that might have been set. + // This should include the location of the ROM and its save type. + // Then, if it is valid, perform a save. return FLASHCART_OK; } @@ -48,6 +52,10 @@ static flashcart_err_t ed64_load_rom (char *rom_path, flashcart_progress_callbac return FLASHCART_ERR_LOAD; } + // FIXME: set the required actions for retriving the save file later (probably SRAM). + // This would involve creating some content in an area of RAM that would include + // the ROM location and its save type. This information will be used on init to perform a "save writeback". + fix_file_size(&fil); size_t rom_size = f_size(&fil);