diff --git a/source/common.h b/source/common.h index 65f9712..889e512 100644 --- a/source/common.h +++ b/source/common.h @@ -57,6 +57,11 @@ // buffer area defines (in use by cia.c) #define GAME_BUFFER ((u8*)0x21500000) #define GAME_BUFFER_SIZE (0x100000) +// buffer area defines (in use by image.c, for RAMdrive) +#define RAMDRV_BUFFER_O3DS ((u8*)0x22200000) // in O3DS FCRAM +#define RAMDRV_SIZE_O3DS (0x01C00000) // 28MB +#define RAMDRV_BUFFER_N3DS ((u8*)0x28000000) // in N3DS FCRAM +#define RAMDRV_SIZE_N3DS (0x08000000) // 128MB inline u32 strchrcount(const char* str, char symbol) { u32 count = 0; diff --git a/source/fatfs/image.c b/source/fatfs/image.c index 428ce1d..3a92a7f 100644 --- a/source/fatfs/image.c +++ b/source/fatfs/image.c @@ -2,11 +2,6 @@ #include "platform.h" #include "ff.h" -#define RAMDRV_BUFFER_O3DS ((u8*)0x22200000) // in O3DS FCRAM -#define RAMDRV_SIZE_O3DS (0x01C00000) // 28MB -#define RAMDRV_BUFFER_N3DS ((u8*)0x28000000) // in N3DS FCRAM -#define RAMDRV_SIZE_N3DS (0x08000000) // 128MB - static u8* ramdrv_buffer = NULL; static u32 ramdrv_size = 0;