mirror of
https://github.com/libretro/RetroArch
synced 2025-02-10 12:40:03 +00:00
(RARCH_CONSOL) Enable verbose logging for all console ports
This commit is contained in:
parent
1b398a1941
commit
3dee70675f
@ -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();
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user