Add mod/s3m/xm support to audio mixer in GUI

This commit is contained in:
twinaphex 2017-08-04 21:08:02 +02:00
parent 3de9bb9fe1
commit 93eb7b349a
2 changed files with 12 additions and 0 deletions

View File

@ -693,6 +693,11 @@ static int general_push(menu_displaylist_info_t *info,
if (!string_is_empty(system->valid_extensions))
strlcpy(info->exts, system->valid_extensions, sizeof(info->exts));
}
#ifdef HAVE_IBXM
strlcat(info->exts, "|s3m", sizeof(info->exts));
strlcat(info->exts, "|mod", sizeof(info->exts));
strlcat(info->exts, "|xm", sizeof(info->exts));
#endif
break;
case PUSH_ARCHIVE_OPEN_DETECT_CORE:
case PUSH_DETECT_CORE_LIST:
@ -745,6 +750,11 @@ static int general_push(menu_displaylist_info_t *info,
str_list2, "|");
strlcpy(info->exts, newstring, sizeof(info->exts));
#ifdef HAVE_IBXM
strlcat(info->exts, "|s3m", sizeof(info->exts));
strlcat(info->exts, "|mod", sizeof(info->exts));
strlcat(info->exts, "|xm", sizeof(info->exts));
#endif
string_list_free(str_list2);
}

View File

@ -79,6 +79,8 @@ void filebrowser_parse(void *data, unsigned type_data)
filter_ext ? info->exts : NULL,
true, settings->bools.show_hidden_files, true, false);
RARCH_LOG("extension is: %s\n", info->exts);
#ifdef HAVE_LIBRETRODB
if (filebrowser_types == FILEBROWSER_SCAN_DIR)
menu_entries_prepend(info->list,