You are not logged in.
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
You could try to add this function to GRRLIB:
void GRRLIB_Stop();
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