mirror of
https://github.com/libretro/RetroArch.git
synced 2024-05-20 13:27:22 -04:00
Fix save new config name when core loaded (#16458)
This commit is contained in:
parent
2b8c8f1145
commit
fc6d251be9
|
@ -1778,6 +1778,7 @@ bool command_event_save_core_config(
|
||||||
for (i = 0; i < 16; i++)
|
for (i = 0; i < 16; i++)
|
||||||
{
|
{
|
||||||
size_t _len = strlcpy(tmp, config_path, sizeof(tmp));
|
size_t _len = strlcpy(tmp, config_path, sizeof(tmp));
|
||||||
|
|
||||||
if (i)
|
if (i)
|
||||||
_len += snprintf(tmp + _len, sizeof(tmp) - _len, "-%u", i);
|
_len += snprintf(tmp + _len, sizeof(tmp) - _len, "-%u", i);
|
||||||
strlcpy(tmp + _len, ".cfg", sizeof(tmp) - _len);
|
strlcpy(tmp + _len, ".cfg", sizeof(tmp) - _len);
|
||||||
|
|
Loading…
Reference in a new issue