From 17132dd3e65f8ec5d1c85b5f41ff3c7a7f83b70a Mon Sep 17 00:00:00 2001 From: ariahiro64 Date: Tue, 10 Oct 2023 20:49:29 +0000 Subject: [PATCH] Fix saves for real --- src/flashcart/ed64/ed64.c | 3 --- src/flashcart/ed64/ed64_ll.h | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/flashcart/ed64/ed64.c b/src/flashcart/ed64/ed64.c index 15824248..4869b912 100644 --- a/src/flashcart/ed64/ed64.c +++ b/src/flashcart/ed64/ed64.c @@ -12,7 +12,6 @@ #include "ed64_ll.h" #include "ed64.h" -#define EEPROM_ADDRESS (0x1FFE2000) extern int ed_exit(void); @@ -125,8 +124,6 @@ static flashcart_error_t ed64_load_save (char *save_path) { switch (type) { case SAVE_TYPE_EEPROM_4K: case SAVE_TYPE_EEPROM_16K: - address = (void *) (EEPROM_ADDRESS); - break; case SAVE_TYPE_SRAM: case SAVE_TYPE_SRAM_128K: case SAVE_TYPE_FLASHRAM: diff --git a/src/flashcart/ed64/ed64_ll.h b/src/flashcart/ed64/ed64_ll.h index 0faa635d..1e8f3cf0 100644 --- a/src/flashcart/ed64/ed64_ll.h +++ b/src/flashcart/ed64/ed64_ll.h @@ -30,7 +30,7 @@ typedef enum { } ed64_save_type_t; -#define SRAM_ADDRESS (0xA8000000) +#define SRAM_ADDRESS (0x1FFE2000) #define ROM_ADDRESS (0xB0000000) /* Save functions */