mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
Don't need all this log spam for core/game initialization
if log level is not set to at least 'Debug'
This commit is contained in:
parent
415646111b
commit
2a164f2034
13
dynamic.c
13
dynamic.c
@ -202,7 +202,6 @@ static bool environ_cb_get_system_info(unsigned cmd, void *data)
|
||||
|
||||
subsystem_current_count = 0;
|
||||
|
||||
if (log_level == RETRO_LOG_DEBUG)
|
||||
RARCH_LOG("Environ SET_SUBSYSTEM_INFO.\n");
|
||||
|
||||
for (i = 0; info[i].ident; i++)
|
||||
@ -223,6 +222,7 @@ static bool environ_cb_get_system_info(unsigned cmd, void *data)
|
||||
}
|
||||
}
|
||||
|
||||
if (log_level == RETRO_LOG_DEBUG)
|
||||
RARCH_LOG("Subsystems: %d\n", i);
|
||||
size = i;
|
||||
|
||||
@ -1460,6 +1460,11 @@ bool rarch_environment_cb(unsigned cmd, void *data)
|
||||
|
||||
RARCH_LOG("Environ SET_INPUT_DESCRIPTORS:\n");
|
||||
|
||||
{
|
||||
settings_t *settings = config_get_ptr();
|
||||
unsigned log_level = settings->uints.libretro_log_level;
|
||||
|
||||
if (log_level == RETRO_LOG_DEBUG)
|
||||
{
|
||||
unsigned max_users = *(input_driver_get_uint(INPUT_ACTION_MAX_USERS));
|
||||
|
||||
@ -1477,6 +1482,7 @@ bool rarch_environment_cb(unsigned cmd, void *data)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
core_set_input_descriptors();
|
||||
}
|
||||
@ -1768,11 +1774,16 @@ bool rarch_environment_cb(unsigned cmd, void *data)
|
||||
unsigned i, j;
|
||||
const struct retro_controller_info *info =
|
||||
(const struct retro_controller_info*)data;
|
||||
settings_t *settings = config_get_ptr();
|
||||
unsigned log_level = settings->uints.libretro_log_level;
|
||||
|
||||
RARCH_LOG("Environ SET_CONTROLLER_INFO.\n");
|
||||
|
||||
for (i = 0; info[i].types; i++)
|
||||
{
|
||||
if (log_level != RETRO_LOG_DEBUG)
|
||||
continue;
|
||||
|
||||
RARCH_LOG("Controller port: %u\n", i + 1);
|
||||
for (j = 0; j < info[i].num_types; j++)
|
||||
RARCH_LOG(" %s (ID: %u)\n", info[i].types[j].desc,
|
||||
|
Loading…
x
Reference in New Issue
Block a user