From 034233547ed30e2fbd32751a79c4e47c47f0adf2 Mon Sep 17 00:00:00 2001 From: ariahiro64 <45049787+ariahiro64@users.noreply.github.com> Date: Tue, 10 Oct 2023 17:54:55 -0400 Subject: [PATCH] Fix saves on ED64 (#7) --- 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 0f5801c3..83b735f4 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); @@ -133,8 +132,6 @@ static flashcart_err_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 */