diff --git a/libretro-common/include/retro_log.h b/libretro-common/include/retro_log.h index 2e93c4d770..c4e7a9a5d9 100644 --- a/libretro-common/include/retro_log.h +++ b/libretro-common/include/retro_log.h @@ -97,15 +97,15 @@ static INLINE void RARCH_LOG_V(const char *tag, const char *fmt, va_list ap) #if TARGET_IPHONE_SIMULATOR vprintf(fmt, ap); #else - if (!inited) + if (!asl_inited) { asl_client = asl_open("RetroArch", "com.apple.console", ASL_OPT_STDERR | ASL_OPT_NO_DELAY); - inited = 1; + asl_inited = 1; } aslmsg msg = asl_new(ASL_TYPE_MSG); asl_set(msg, ASL_KEY_READ_UID, "-1"); if (tag) - asl_log(asl_client, msg, ASL_LEVEL_NOTICE, tag); + asl_log(asl_client, msg, ASL_LEVEL_NOTICE, "%s", tag); asl_vlog(asl_client, msg, ASL_LEVEL_NOTICE, fmt, ap); asl_free(msg); #endif diff --git a/ui/drivers/ui_cocoatouch.m b/ui/drivers/ui_cocoatouch.m index 7df915dac5..5f57a0b3f0 100644 --- a/ui/drivers/ui_cocoatouch.m +++ b/ui/drivers/ui_cocoatouch.m @@ -368,15 +368,12 @@ static void ui_companion_cocoatouch_event_command(void *data, - (void)toggleUI { - settings_t *settings = config_get_ptr(); - if (ui_companion_is_on_foreground()) { [self showGameView]; } else { - [self showPauseMenu:self]; } }