(RARCH_CONSOL) Enable verbose logging for all console ports

This commit is contained in:
twinaphex 2013-01-10 05:07:38 +01:00
parent 1b398a1941
commit 3dee70675f
4 changed files with 15 additions and 10 deletions

View File

@ -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();

View File

@ -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

View File

@ -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
}

View File

@ -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)