Made GUI react on compressed files and give them a different label in RGUI
This commit is contained in:
parent
69389a4f6d
commit
3b7dc34c1a
|
@ -1753,6 +1753,30 @@ static int menu_action_ok(const char *dir,
|
|||
menu_entries_push(driver.menu->menu_stack,
|
||||
cat_path, menu_label, type, driver.menu->selection_ptr);
|
||||
}
|
||||
else if (type == MENU_FILE_CARCHIVE)
|
||||
{
|
||||
char cat_path[PATH_MAX];
|
||||
fill_pathname_join(cat_path, dir, path, sizeof(cat_path));
|
||||
|
||||
menu_entries_push(driver.menu->menu_stack,
|
||||
cat_path, menu_label, type, driver.menu->selection_ptr);
|
||||
return 0;
|
||||
}
|
||||
#ifdef HAVE_COMPRESSION
|
||||
else if (type == MENU_FILE_IN_CARCHIVE)
|
||||
{
|
||||
fill_pathname_join(g_extern.fullpath, dir, path,
|
||||
sizeof(g_extern.fullpath));
|
||||
|
||||
g_extern.is_carchive = true;
|
||||
strncpy(g_extern.carchive_path,dir,sizeof(g_extern.carchive_path));
|
||||
|
||||
rarch_main_set_state(RARCH_ACTION_STATE_LOAD_CONTENT);
|
||||
menu_flush_stack_type(driver.menu->menu_stack,MENU_SETTINGS);
|
||||
driver.menu->msg_force = true;
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
else
|
||||
{
|
||||
fill_pathname_join(g_extern.fullpath, dir, path,
|
||||
|
|
|
@ -380,6 +380,16 @@ static void rgui_render(void)
|
|||
type = MENU_FILE_DIRECTORY;
|
||||
w = 5;
|
||||
}
|
||||
else if (type == MENU_FILE_CARCHIVE)
|
||||
{
|
||||
strlcpy(type_str, "(COMP)", sizeof(type_str));
|
||||
w = 6;
|
||||
}
|
||||
else if (type == MENU_FILE_IN_CARCHIVE)
|
||||
{
|
||||
strlcpy(type_str, "(CFILE)", sizeof(type_str));
|
||||
w = 7;
|
||||
}
|
||||
else if (type >= MENU_SETTINGS_CORE_OPTION_START)
|
||||
strlcpy(
|
||||
type_str,
|
||||
|
|
Loading…
Reference in New Issue