Fix log interface usage.

This commit is contained in:
Themaister 2014-01-02 02:18:13 +01:00
parent 88cb3faa01
commit 0521537618

View File

@ -75,9 +75,10 @@ void retro_init(void)
{
struct retro_log_callback log;
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;
}
void retro_deinit(void)