Fix calls to log interface.

This commit is contained in:
Themaister 2014-01-02 02:20:23 +01:00 committed by OV2
parent dfc6227e7b
commit 378298eef6
1 changed files with 3 additions and 2 deletions

View File

@ -328,9 +328,10 @@ void retro_init()
use_overscan = false;
}
environ_cb(RETRO_ENVIRONMENT_GET_LOG_INTERFACE, &log);
if (log.log)
if (environ_cb(RETRO_ENVIRONMENT_GET_LOG_INTERFACE, &log))
log_cb = log.log;
else
log_cb = NULL;
memset(&Settings, 0, sizeof(Settings));
Settings.MouseMaster = TRUE;