Make calls to event_command(EVENT_CMD_LOG_FILE_DEINIT)

This commit is contained in:
twinaphex 2015-11-22 22:04:33 +01:00
parent 8a16897aea
commit 6f0425bdc3
2 changed files with 2 additions and 8 deletions

View File

@ -113,9 +113,7 @@ static void frontend_ctr_deinit(void *data)
*verbose = true;
#ifdef HAVE_FILE_LOGGER
if (global->log_file)
fclose(global->log_file);
global->log_file = NULL;
event_command(EVENT_CMD_LOG_FILE_DEINIT);
#endif
if(gfxBottomFramebuffers[0] == (u8*)currentConsole->frameBuffer)

View File

@ -165,14 +165,10 @@ static void frontend_psp_deinit(void *data)
(void)data;
#ifndef IS_SALAMANDER
bool *verbose = retro_main_verbosity();
global_t *global = global_get_ptr();
*verbose = false;
#ifdef HAVE_FILE_LOGGER
if (global->log_file)
fclose(global->log_file);
global->log_file = NULL;
event_command(EVENT_CMD_LOG_FILE_DEINIT);
#endif
#endif