Update libretro.cpp

This commit is contained in:
negativeExponent 2020-01-01 03:55:55 +08:00 committed by Francisco José García García
parent 4f458d5980
commit f63c39ecbf
2 changed files with 8 additions and 1 deletions

View File

@ -55,7 +55,7 @@ unsigned short drawBuffer[NGPC_SIZEX*NGPC_SIZEY];
#else
unsigned short *drawBuffer;
static unsigned short *drawBuffer;
#endif

View File

@ -413,6 +413,13 @@ bool retro_load_game_special(unsigned, const struct retro_game_info*, size_t)
void retro_unload_game(void)
{
initialized = false;
if (screen)
{
if (screen->pixels)
free(screen->pixels);
free(screen);
}
}
void retro_cheat_reset(void)