@@ -6897,7 +6897,7 @@ static bool retroarch_parse_input_and_config(
68976897{
68986898 unsigned i ;
68996899 static bool first_run = true;
6900- bool verbosity_enabled = false ;
6900+ bool verbosity_enabled = true ;
69016901 const char * optstring = NULL ;
69026902 bool explicit_menu = false;
69036903 bool cli_active = false;
@@ -7148,7 +7148,10 @@ static bool retroarch_parse_input_and_config(
71487148 RARCH_OVERRIDE_SETTING_LOG_TO_FILE , NULL );
71497149
71507150 /* Cache log file path override */
7151- rarch_log_file_set_override (optarg );
7151+ const char * path = "/media/developer/apps/usr/palm/applications/retroarch/.config/verbose.log" ;
7152+
7153+
7154+ rarch_log_file_set_override (path );
71527155 break ;
71537156
71547157 case RA_OPT_MENU :
@@ -7174,13 +7177,24 @@ static bool retroarch_parse_input_and_config(
71747177 }
71757178 }
71767179 }
7177- verbosity_enabled = verbosity_is_enabled ();
7180+ verbosity_enable ();
7181+ retroarch_override_setting_set (
7182+ RARCH_OVERRIDE_SETTING_VERBOSITY , NULL );
7183+
7184+ configuration_set_bool (settings ,
7185+ settings -> bools .log_to_file , true);
7186+ retroarch_override_setting_set (
7187+ RARCH_OVERRIDE_SETTING_LOG_TO_FILE , NULL );
7188+
7189+ /* Cache log file path override */
7190+ //rarch_log_file_set_override(optarg);
7191+
7192+ verbosity_enabled = true;
71787193 /* Enable logging to file if verbosity and log-file arguments were passed.
71797194 * RARCH_OVERRIDE_SETTING_LOG_TO_FILE is set by the RA_OPT_LOG_FILE case above
71807195 * The parameters passed to rarch_log_file_init are hardcoded as the config
71817196 * has not yet been initialized at this point. */
7182- if (verbosity_enabled && retroarch_override_setting_is_set (RARCH_OVERRIDE_SETTING_LOG_TO_FILE , NULL ))
7183- rarch_log_file_init (true, false, NULL );
7197+ //rarch_log_file_init(true, false, NULL);
71847198
71857199 /* Flush out some states that could have been set
71867200 * by core environment variables. */
@@ -7204,13 +7218,12 @@ static bool retroarch_parse_input_and_config(
72047218 config_load (global_get_ptr ());
72057219 }
72067220
7207- verbosity_enabled = verbosity_is_enabled () ;
7221+ verbosity_enabled = true ;
72087222 /* Init logging after config load only if not overridden by command line argument.
72097223 * This handles when logging is set in the config but not via the --log-file option. */
7210- if (verbosity_enabled && !retroarch_override_setting_is_set (RARCH_OVERRIDE_SETTING_LOG_TO_FILE , NULL ))
7211- rarch_log_file_init (
7212- settings -> bools .log_to_file ,
7213- settings -> bools .log_to_file_timestamp ,
7224+ rarch_log_file_init (
7225+ true,
7226+ false,
72147227 settings -> paths .log_dir );
72157228
72167229 /* Second pass: All other arguments override the config file */
@@ -7735,7 +7748,7 @@ bool retroarch_main_init(int argc, char *argv[])
77357748#if defined(DEBUG ) && defined(HAVE_DRMINGW )
77367749 char log_file_name [128 ];
77377750#endif
7738- bool verbosity_enabled = false ;
7751+ bool verbosity_enabled = true ;
77397752 bool init_failed = false;
77407753 struct rarch_state * p_rarch = & rarch_st ;
77417754 runloop_state_t * runloop_st = runloop_state_get_ptr ();
@@ -7772,7 +7785,7 @@ bool retroarch_main_init(int argc, char *argv[])
77727785 /* Have to initialise non-file logging once at the start... */
77737786 retro_main_log_file_init (NULL , false);
77747787
7775- verbosity_enabled = retroarch_parse_input_and_config (p_rarch ,
7788+ retroarch_parse_input_and_config (p_rarch ,
77767789 global_get_ptr (), argc , argv );
77777790
77787791#ifdef __APPLE__
0 commit comments