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