You are not logged in.

#1 2008-10-23 17:17:47

lnuxguy
Member

Shutdown GRRLIB

I've got an SDL program, and after it inits, but before anything else happens, I have grrlib start up and do some stuff. After it finishes, I exit the grrlib code, but the game crashes when SDL tried to control graphics. Is there a proper way to shut down GRRLIB so SDL can take back over?

Offline

 

#2 2008-10-23 20:15:08

Crayon
Bad Mother Fucker

Re: Shutdown GRRLIB

You could try to add this function to GRRLIB:

void GRRLIB_Stop();

Code:

void GRRLIB_Stop() {
    free(MEM_K1_TO_K0(xfb[0])); xfb[0] = NULL;
    free(MEM_K1_TO_K0(xfb[1])); xfb[1] = NULL;
    free(gp_fifo); gp_fifo = NULL;

    GX_AbortFrame();
    GX_Flush();
}

Offline

 

Board footer

Powered by FluxBB