mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-29 15:32:01 +00:00
Start adding preliminary Account Settings
This commit is contained in:
parent
b7098c0846
commit
1b59823972
@ -56,6 +56,11 @@ static int deferred_push_rdb_collection(menu_displaylist_info_t *info)
|
||||
return menu_displaylist_push_list(info, DISPLAYLIST_PLAYLIST_COLLECTION);
|
||||
}
|
||||
|
||||
static int deferred_push_accounts_list(menu_displaylist_info_t *info)
|
||||
{
|
||||
return menu_displaylist_push_list(info, DISPLAYLIST_ACCOUNTS_LIST);
|
||||
}
|
||||
|
||||
static int deferred_push_help(menu_displaylist_info_t *info)
|
||||
{
|
||||
return menu_displaylist_push_list(info, DISPLAYLIST_HELP_SCREEN_LIST);
|
||||
@ -543,6 +548,9 @@ static int menu_cbs_init_bind_deferred_push_compare_label(menu_file_list_cbs_t *
|
||||
{
|
||||
switch (label_hash)
|
||||
{
|
||||
case MENU_LABEL_DEFERRED_ACCOUNTS_LIST:
|
||||
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_accounts_list);
|
||||
break;
|
||||
case MENU_LABEL_DEFERRED_ARCHIVE_ACTION_DETECT_CORE:
|
||||
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_archive_action_detect_core);
|
||||
break;
|
||||
|
@ -283,6 +283,12 @@ int generic_action_ok_displaylist_push(const char *path,
|
||||
info_path = settings->libretro_directory;
|
||||
info_label = menu_hash_to_str(MENU_LABEL_DEFERRED_CORE_LIST_SET);
|
||||
break;
|
||||
case ACTION_OK_DL_ACCOUNTS_LIST:
|
||||
info.directory_ptr = idx;
|
||||
info.type = type;
|
||||
info_path = path;
|
||||
info_label = menu_hash_to_str(MENU_LABEL_DEFERRED_ACCOUNTS_LIST);
|
||||
break;
|
||||
case ACTION_OK_DL_CONTENT_SETTINGS:
|
||||
dl_type = DISPLAYLIST_CONTENT_SETTINGS;
|
||||
info.list = menu_list->selection_buf;
|
||||
@ -1541,6 +1547,13 @@ static int action_ok_open_archive_detect_core(const char *path,
|
||||
ACTION_OK_DL_OPEN_ARCHIVE_DETECT_CORE);
|
||||
}
|
||||
|
||||
static int action_ok_push_accounts_list(const char *path,
|
||||
const char *label, unsigned type, size_t idx, size_t entry_idx)
|
||||
{
|
||||
return generic_action_ok_displaylist_push(path, label, 0, 0, entry_idx,
|
||||
ACTION_OK_DL_ACCOUNTS_LIST);
|
||||
}
|
||||
|
||||
static int action_ok_open_archive(const char *path,
|
||||
const char *label, unsigned type, size_t idx, size_t entry_idx)
|
||||
{
|
||||
@ -1838,6 +1851,9 @@ static int menu_cbs_init_bind_ok_compare_label(menu_file_list_cbs_t *cbs,
|
||||
case MENU_LABEL_VIDEO_SHADER_PRESET_PARAMETERS:
|
||||
BIND_ACTION_OK(cbs, action_ok_shader_parameters);
|
||||
break;
|
||||
case MENU_LABEL_ACCOUNTS_LIST:
|
||||
BIND_ACTION_OK(cbs, action_ok_push_accounts_list);
|
||||
break;
|
||||
case MENU_LABEL_SHADER_OPTIONS:
|
||||
case MENU_VALUE_INPUT_SETTINGS:
|
||||
case MENU_LABEL_CORE_OPTIONS:
|
||||
|
@ -26,6 +26,12 @@ static const char *menu_hash_to_str_us_label(uint32_t hash)
|
||||
{
|
||||
switch (hash)
|
||||
{
|
||||
case MENU_LABEL_ACCOUNTS_RETRO_ACHIEVEMENTS:
|
||||
return "retro_achievements";
|
||||
case MENU_LABEL_DEFERRED_ACCOUNTS_LIST:
|
||||
return "deferred_accounts_list";
|
||||
case MENU_LABEL_ACCOUNTS_LIST:
|
||||
return "accounts_list";
|
||||
case MENU_LABEL_DEBUG_PANEL_ENABLE:
|
||||
return "debug_panel_enable";
|
||||
case MENU_LABEL_HELP_SCANNING_CONTENT:
|
||||
@ -650,6 +656,10 @@ const char *menu_hash_to_str_us(uint32_t hash)
|
||||
|
||||
switch (hash)
|
||||
{
|
||||
case MENU_LABEL_VALUE_ACCOUNTS_RETRO_ACHIEVEMENTS:
|
||||
return "Retro Achievements";
|
||||
case MENU_LABEL_VALUE_ACCOUNTS_LIST:
|
||||
return "Accounts";
|
||||
case MENU_LABEL_VALUE_DEBUG_PANEL_ENABLE:
|
||||
return "Debug Panel Enable";
|
||||
case MENU_LABEL_VALUE_HELP_SCANNING_CONTENT:
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include "menu_hash.h"
|
||||
#include "menu_cbs.h"
|
||||
|
||||
#if 0
|
||||
#if 1
|
||||
#define DEBUG_LOG
|
||||
#endif
|
||||
|
||||
|
@ -41,6 +41,7 @@ enum
|
||||
ACTION_OK_DL_GENERIC,
|
||||
ACTION_OK_DL_PUSH_DEFAULT,
|
||||
ACTION_OK_DL_DOWNLOADS_DIR,
|
||||
ACTION_OK_DL_ACCOUNTS_LIST,
|
||||
ACTION_OK_DL_CONTENT_LIST,
|
||||
ACTION_OK_DL_REMAP_FILE,
|
||||
ACTION_OK_DL_RECORD_CONFIGFILE,
|
||||
|
@ -2421,6 +2421,7 @@ int menu_displaylist_push_list(menu_displaylist_info_t *info, unsigned type)
|
||||
case DISPLAYLIST_INFORMATION_LIST:
|
||||
case DISPLAYLIST_ADD_CONTENT_LIST:
|
||||
case DISPLAYLIST_LOAD_CONTENT_LIST:
|
||||
case DISPLAYLIST_ACCOUNTS_LIST:
|
||||
case DISPLAYLIST_OPTIONS:
|
||||
case DISPLAYLIST_OPTIONS_CHEATS:
|
||||
case DISPLAYLIST_OPTIONS_REMAPPINGS:
|
||||
@ -2484,6 +2485,18 @@ int menu_displaylist_push_list(menu_displaylist_info_t *info, unsigned type)
|
||||
menu_entries_set_refresh(false);
|
||||
}
|
||||
break;
|
||||
case DISPLAYLIST_ACCOUNTS_LIST:
|
||||
#ifdef HAVE_CHEEVOS
|
||||
menu_list_push(info->list,
|
||||
menu_hash_to_str(MENU_LABEL_VALUE_ACCOUNTS_RETRO_ACHIEVEMENTS),
|
||||
menu_hash_to_str(MENU_LABEL_ACCOUNTS_RETRO_ACHIEVEMENTS),
|
||||
MENU_SETTING_ACTION, 0, 0);
|
||||
#else
|
||||
menu_list_push(info->list,
|
||||
menu_hash_to_str(MENU_LABEL_VALUE_NO_ITEMS),
|
||||
"", 0, 0, 0);
|
||||
#endif
|
||||
break;
|
||||
case DISPLAYLIST_HELP_SCREEN_LIST:
|
||||
menu_list_push(info->list,
|
||||
menu_hash_to_str(MENU_LABEL_VALUE_HELP_CONTROLS),
|
||||
|
@ -78,6 +78,7 @@ enum
|
||||
DISPLAYLIST_SHADER_PARAMETERS_PRESET,
|
||||
DISPLAYLIST_SYSTEM_INFO,
|
||||
DISPLAYLIST_DEBUG_INFO,
|
||||
DISPLAYLIST_ACCOUNTS_LIST,
|
||||
DISPLAYLIST_LOAD_CONTENT_LIST,
|
||||
DISPLAYLIST_INFORMATION_LIST,
|
||||
DISPLAYLIST_CONTENT_SETTINGS,
|
||||
|
@ -22,6 +22,13 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define MENU_LABEL_ACCOUNTS_RETRO_ACHIEVEMENTS 0xe6b7c16cU
|
||||
#define MENU_LABEL_VALUE_ACCOUNTS_RETRO_ACHIEVEMENTS 0x7d247a6dU
|
||||
|
||||
#define MENU_LABEL_DEFERRED_ACCOUNTS_LIST 0x3d2b8860U
|
||||
#define MENU_LABEL_ACCOUNTS_LIST 0x774c15a0U
|
||||
#define MENU_LABEL_VALUE_ACCOUNTS_LIST 0x86e551a1U
|
||||
|
||||
#define MENU_LABEL_DEBUG_PANEL_ENABLE 0xbad176a1U
|
||||
#define MENU_LABEL_VALUE_DEBUG_PANEL_ENABLE 0x15042803U
|
||||
|
||||
|
@ -5847,6 +5847,13 @@ static bool setting_append_list_user_options(
|
||||
|
||||
START_SUB_GROUP(list, list_info, "State", group_info.name, subgroup_info, parent_group);
|
||||
|
||||
CONFIG_ACTION(
|
||||
menu_hash_to_str(MENU_LABEL_ACCOUNTS_LIST),
|
||||
menu_hash_to_str(MENU_LABEL_VALUE_ACCOUNTS_LIST),
|
||||
group_info.name,
|
||||
subgroup_info.name,
|
||||
parent_group);
|
||||
|
||||
CONFIG_STRING(
|
||||
settings->username,
|
||||
menu_hash_to_str(MENU_LABEL_NETPLAY_NICKNAME),
|
||||
|
@ -1,6 +1,7 @@
|
||||
HAVE_LIBRETRODB=yes # Disable libretrodb
|
||||
HAVE_RGUI=yes # Disable RGUI
|
||||
HAVE_GLUI=auto # Enable GLUI menu
|
||||
HAVE_CHEEVOS=no # Enable Cheevos (achievements)
|
||||
HAVE_XMB=auto # Enable XMB menu
|
||||
HAVE_DYNAMIC=yes # Disable dynamic loading of libretro library
|
||||
HAVE_SDL=auto # SDL support
|
||||
|
Loading…
x
Reference in New Issue
Block a user