mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 07:20:36 +00:00
Add zip as extension in RGUI file browser.
This commit is contained in:
parent
0c0e4d1ddd
commit
1d9eea880a
@ -1988,6 +1988,7 @@ static bool directory_parse(rgui_handle_t *rgui, const char *directory, unsigned
|
||||
#endif
|
||||
|
||||
const char *exts;
|
||||
char ext_buf[1024];
|
||||
if (menu_type == RGUI_SETTINGS_CORE)
|
||||
exts = EXT_EXECUTABLES;
|
||||
#ifdef HAVE_SHADER_MANAGER
|
||||
@ -1997,7 +1998,13 @@ static bool directory_parse(rgui_handle_t *rgui, const char *directory, unsigned
|
||||
exts = "cg|glsl";
|
||||
#endif
|
||||
else if (rgui->info.valid_extensions)
|
||||
exts = rgui->info.valid_extensions;
|
||||
{
|
||||
exts = ext_buf;
|
||||
if (*rgui->info.valid_extensions)
|
||||
snprintf(ext_buf, sizeof(ext_buf), "%s|zip|ZIP", rgui->info.valid_extensions);
|
||||
else
|
||||
*ext_buf = '\0';
|
||||
}
|
||||
else
|
||||
exts = g_extern.system.valid_extensions;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user