mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
Fix 'Remove Preset'
This commit is contained in:
parent
e30fcb6da6
commit
e84ea6082c
@ -2786,14 +2786,13 @@ static int menu_displaylist_parse_database_entry(menu_handle_t *menu,
|
|||||||
|
|
||||||
if (entry->crc32)
|
if (entry->crc32)
|
||||||
{
|
{
|
||||||
char *elem0 = NULL;
|
|
||||||
char *save = NULL;
|
char *save = NULL;
|
||||||
char *entry_crc32_cpy = strdup(entry->crc32);
|
char *entry_crc32_cpy = strdup(entry->crc32);
|
||||||
const char *con = strtok_r(entry_crc32_cpy, "|", &save);
|
const char *con = strtok_r(entry_crc32_cpy, "|", &save);
|
||||||
|
|
||||||
if (con)
|
if (con)
|
||||||
{
|
{
|
||||||
elem0 = strdup(con);
|
char *elem0 = strdup(con);
|
||||||
if ((con = strtok_r(NULL, "|", &save)))
|
if ((con = strtok_r(NULL, "|", &save)))
|
||||||
{
|
{
|
||||||
switch (extension_to_file_hash_type(con))
|
switch (extension_to_file_hash_type(con))
|
||||||
|
@ -3183,6 +3183,7 @@ static bool menu_shader_manager_operate_auto_preset(
|
|||||||
{
|
{
|
||||||
if (!(BIT32_GET(flags.flags, shader_types_flags[j])))
|
if (!(BIT32_GET(flags.flags, shader_types_flags[j])))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
strlcpy(end, video_shader_get_preset_extension(shader_types[j]),
|
strlcpy(end, video_shader_get_preset_extension(shader_types[j]),
|
||||||
sizeof(preset_path) - (end - preset_path));
|
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++)
|
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;
|
continue;
|
||||||
|
|
||||||
strlcpy(end, video_shader_get_preset_extension(shader_types[j]),
|
strlcpy(end, video_shader_get_preset_extension(shader_types[j]),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user