From 378298eef626037dae893f34064e4457aa1e0465 Mon Sep 17 00:00:00 2001 From: Themaister Date: Thu, 2 Jan 2014 02:20:23 +0100 Subject: [PATCH] Fix calls to log interface. --- libretro/libretro.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libretro/libretro.cpp b/libretro/libretro.cpp index 87985b73..218d004d 100644 --- a/libretro/libretro.cpp +++ b/libretro/libretro.cpp @@ -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;