From 9a0249917595a5b0b3cc7417441df0f7632962bd Mon Sep 17 00:00:00 2001 From: d0k3 Date: Fri, 25 Nov 2016 12:28:34 +0100 Subject: [PATCH] Handle RAMdrive buffers via common.h --- source/common.h | 5 +++++ source/fatfs/image.c | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) 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;