mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
config_save_file - simplification in snprintf call in loop
This commit is contained in:
parent
6f84af2efa
commit
77e83a4e60
@ -4736,14 +4736,16 @@ bool config_save_file(const char *path)
|
||||
}
|
||||
|
||||
#ifdef HAVE_NETWORKGAMEPAD
|
||||
for (i = 0; i < MAX_USERS; i++)
|
||||
{
|
||||
char tmp[64];
|
||||
size_t _len = strlcpy(tmp, "network_remote_enable_user_p", sizeof(tmp));
|
||||
snprintf(tmp + _len, sizeof(tmp) - _len, "%u", i + 1);
|
||||
config_set_string(conf, tmp,
|
||||
settings->bools.network_remote_enable_user[i]
|
||||
? "true" : "false");
|
||||
for (i = 0; i < MAX_USERS; i++)
|
||||
{
|
||||
snprintf(tmp + _len, sizeof(tmp) - _len, "%u", i + 1);
|
||||
config_set_string(conf, tmp,
|
||||
settings->bools.network_remote_enable_user[i]
|
||||
? "true" : "false");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user