From dcdc7cd731aa359d03dbd221f1daf1eadae8060d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 12 Jan 2014 15:08:15 +0100 Subject: [PATCH] Fill in retro_init with logger initialization --- libretro.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libretro.cpp b/libretro.cpp index 47da148..41c4fc6 100644 --- a/libretro.cpp +++ b/libretro.cpp @@ -51,6 +51,12 @@ static std1::shared_ptr blank; void retro_init(void) { + struct retro_log_callback log; + + if (environ_cb(RETRO_ENVIRONMENT_GET_LOG_INTERFACE, &log)) + log_cb = log.log; + else + log_cb = NULL; } void retro_deinit(void)