Fix 'Remove Preset'

This commit is contained in:
LibretroAdmin 2025-01-12 19:05:44 +01:00
parent e30fcb6da6
commit e84ea6082c
2 changed files with 3 additions and 3 deletions

View File

@ -2786,14 +2786,13 @@ static int menu_displaylist_parse_database_entry(menu_handle_t *menu,
if (entry->crc32)
{
char *elem0 = NULL;
char *save = NULL;
char *entry_crc32_cpy = strdup(entry->crc32);
const char *con = strtok_r(entry_crc32_cpy, "|", &save);
if (con)
{
elem0 = strdup(con);
char *elem0 = strdup(con);
if ((con = strtok_r(NULL, "|", &save)))
{
switch (extension_to_file_hash_type(con))

View File

@ -3183,6 +3183,7 @@ static bool menu_shader_manager_operate_auto_preset(
{
if (!(BIT32_GET(flags.flags, shader_types_flags[j])))
continue;
strlcpy(end, video_shader_get_preset_extension(shader_types[j]),
sizeof(preset_path) - (end - preset_path));
@ -3227,7 +3228,7 @@ static bool menu_shader_manager_operate_auto_preset(
for (j = 0; j < ARRAY_SIZE(shader_types); j++)
{
if (!(BIT32_GET(flags.flags, shader_types[j])))
if (!(BIT32_GET(flags.flags, shader_types_flags[j])))
continue;
strlcpy(end, video_shader_get_preset_extension(shader_types[j]),