mirror of
https://github.com/nzp-team/glquake.git
synced 2024-11-10 06:31:35 +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,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 = ".";
|
||||
|
||||
|
|
Loading…
Reference in a new issue