diff --git a/frontend/frontend_console.c b/frontend/frontend_console.c index 4f3bb6633b..cbcd30585e 100644 --- a/frontend/frontend_console.c +++ b/frontend/frontend_console.c @@ -101,6 +101,15 @@ int main(int argc, char *argv[]) #else +static void verbose_log_init(void) +{ + if (!g_extern.verbose) + { + g_extern.verbose = true; + RARCH_LOG("Turning on verbose logging...\n"); + } +} + #ifdef HAVE_LIBRETRO_MANAGEMENT // Transforms a library id to a name suitable as a pathname. @@ -214,6 +223,8 @@ int main(int argc, char *argv[]) rarch_main_clear_state(); + verbose_log_init(); + get_environment_settings(argc, argv); config_set_defaults(); rarch_settings_set_default(); diff --git a/frontend/frontend_console.h b/frontend/frontend_console.h index efb55f422d..ff19775c6a 100644 --- a/frontend/frontend_console.h +++ b/frontend/frontend_console.h @@ -19,6 +19,7 @@ //optional RetroArch forward declarations static void rarch_console_exec(const char *path); +static void verbose_log_init(void); #ifdef IS_SALAMANDER //optional Salamander forward declarations diff --git a/frontend/platform/platform_inl.h b/frontend/platform/platform_inl.h index d234dc3ab9..9bba4e3aa7 100644 --- a/frontend/platform/platform_inl.h +++ b/frontend/platform/platform_inl.h @@ -16,13 +16,14 @@ #if defined(HAVE_LOGGER) || defined(HAVE_FILE_LOGGER) + static inline void inl_logger_init(void) { #if defined(HAVE_LOGGER) - g_extern.verbose = true; + verbose_log_init(); logger_init(); #elif defined(HAVE_FILE_LOGGER) - g_extern.verbose = true; + verbose_log_init(); g_extern.log_file = fopen("/retroarch-log.txt", "w"); #endif } diff --git a/frontend/platform/platform_ps3.c b/frontend/platform/platform_ps3.c index 503e03ea73..635ff16393 100644 --- a/frontend/platform/platform_ps3.c +++ b/frontend/platform/platform_ps3.c @@ -193,10 +193,6 @@ void menu_free (void) static void get_environment_settings(int argc, char *argv[]) { -#ifndef IS_SALAMANDER - g_extern.verbose = true; -#endif - int ret; unsigned int get_type; unsigned int get_attributes; @@ -313,10 +309,6 @@ static void get_environment_settings(int argc, char *argv[]) #endif snprintf(default_paths.salamander_file, sizeof(default_paths.salamander_file), "EBOOT.BIN"); } - -#ifndef IS_SALAMANDER - g_extern.verbose = false; -#endif } static void system_init(void)