Give New 3DS some more memory

crashes if you go higher.. missing some build flag maybe?
This commit is contained in:
Ian 2022-11-27 19:07:38 -05:00
parent 80885493aa
commit b96ad2c5d7

View file

@ -286,15 +286,21 @@ int main (int argc, char **argv)
{ {
static float time, oldtime; static float time, oldtime;
static quakeparms_t parms; static quakeparms_t parms;
bool new3ds_flag = false;
osSetSpeedupEnable(true); osSetSpeedupEnable(true);
APT_CheckNew3DS(&new3ds_flag);
gfxInit(GSP_RGB565_OES,GSP_RGB565_OES,false); gfxInit(GSP_RGB565_OES,GSP_RGB565_OES,false);
gfxSetDoubleBuffering(GFX_BOTTOM, false); gfxSetDoubleBuffering(GFX_BOTTOM, false);
gfxSwapBuffersGpu(); gfxSwapBuffersGpu();
chdir("sdmc:/3ds/nzportable"); chdir("sdmc:/3ds/nzportable");
if (new3ds_flag == true)
parms.memsize = 64 * 1024 * 1024;
else
parms.memsize = 16 * 1024 * 1024; parms.memsize = 16 * 1024 * 1024;
parms.membase = malloc (parms.memsize); parms.membase = malloc (parms.memsize);
parms.basedir = "."; parms.basedir = ".";