Handle RAMdrive buffers via common.h

This commit is contained in:
d0k3 2016-11-25 12:28:34 +01:00
parent 4bd787ace9
commit 9a02499175
2 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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;