mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 21:52:48 +00:00
Handle RAMdrive buffers via common.h
This commit is contained in:
parent
4bd787ace9
commit
9a02499175
@ -57,6 +57,11 @@
|
|||||||
// buffer area defines (in use by cia.c)
|
// buffer area defines (in use by cia.c)
|
||||||
#define GAME_BUFFER ((u8*)0x21500000)
|
#define GAME_BUFFER ((u8*)0x21500000)
|
||||||
#define GAME_BUFFER_SIZE (0x100000)
|
#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) {
|
inline u32 strchrcount(const char* str, char symbol) {
|
||||||
u32 count = 0;
|
u32 count = 0;
|
||||||
|
@ -2,11 +2,6 @@
|
|||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
#include "ff.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 u8* ramdrv_buffer = NULL;
|
||||||
static u32 ramdrv_size = 0;
|
static u32 ramdrv_size = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user