(runtime_file.c) Use fill_pathname

This commit is contained in:
LibretroAdmin 2024-12-28 19:41:10 +01:00
parent b09b98ffd5
commit 0a7b409a04

View File

@ -317,10 +317,8 @@ runtime_log_t *runtime_log_init(
* no content is provided, 'content' is simply * no content is provided, 'content' is simply
* the name of the core itself */ * the name of the core itself */
if (supports_no_game) if (supports_no_game)
{ fill_pathname(content_name, core_name,
size_t _len = strlcpy(content_name, core_name, sizeof(content_name)); ".lrtl", sizeof(content_name));
strlcpy(content_name + _len, ".lrtl", sizeof(content_name) - _len);
}
} }
/* NOTE: TyrQuake requires a specific hack, since all /* NOTE: TyrQuake requires a specific hack, since all
* content has the same name... */ * content has the same name... */
@ -1244,8 +1242,8 @@ void runtime_update_playlist(
* to be populated even when no runtime is recorded */ * to be populated even when no runtime is recorded */
if (update_entry.runtime_status != PLAYLIST_RUNTIME_VALID) if (update_entry.runtime_status != PLAYLIST_RUNTIME_VALID)
{ {
if (string_is_equal(menu_ident, "ozone") || if ( string_is_equal(menu_ident, "ozone")
string_is_equal(menu_ident, "glui")) || string_is_equal(menu_ident, "glui"))
{ {
runtime_log_get_runtime_str(NULL, runtime_log_get_runtime_str(NULL,
runtime_str, sizeof(runtime_str)); runtime_str, sizeof(runtime_str));