mirror of
https://github.com/nzp-team/glquake.git
synced 2024-12-01 16:32:58 +00:00
Give New 3DS some more memory
crashes if you go higher.. missing some build flag maybe?
This commit is contained in:
parent
80885493aa
commit
b96ad2c5d7
1 changed files with 7 additions and 1 deletions
|
@ -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 = ".";
|
||||||
|
|
Loading…
Reference in a new issue