Skip to content

Commit

Permalink
Add fixme notes for save restore
Browse files Browse the repository at this point in the history
  • Loading branch information
networkfusion committed Oct 10, 2023
1 parent 0342335 commit 8b3d092
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/flashcart/ed64/ed64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 8b3d092

Please sign in to comment.