Move all hash values to menu_entries_cbs.h

This commit is contained in:
twinaphex 2015-06-04 22:09:45 +02:00
parent f47c536880
commit 10e55ad5a5
4 changed files with 110 additions and 134 deletions

View File

@ -28,33 +28,6 @@
#include <rhash.h>
#define MENU_LABEL_DRIVER_SETTINGS 0x81cd2d62U
#define MENU_LABEL_CORE_SETTINGS 0x06795dffU
#define MENU_LABEL_CONFIGURATION_SETTINGS 0x5a1558ceU
#define MENU_LABEL_LOGGING_SETTINGS 0x902c003dU
#define MENU_LABEL_SAVING_SETTINGS 0x32fea87eU
#define MENU_LABEL_REWIND_SETTINGS 0xbff7775fU
#define MENU_LABEL_VIDEO_SETTINGS 0x9dd23badU
#define MENU_LABEL_RECORDING_SETTINGS 0x1a80b313U
#define MENU_LABEL_FRAME_THROTTLE_SETTINGS 0x573b8837U
#define MENU_LABEL_SHADER_SETTINGS 0xd6657e8dU
#define MENU_LABEL_ONSCREEN_DISPLAY_SETTINGS 0x67571029U
#define MENU_LABEL_AUDIO_SETTINGS 0x8f74c888U
#define MENU_LABEL_INPUT_SETTINGS 0xddd30846U
#define MENU_LABEL_INPUT_HOTKEY_SETTINGS 0xa4fee31aU
#define MENU_LABEL_OVERLAY_SETTINGS 0x34377f98U
#define MENU_LABEL_ONSCREEN_KEYBOARD_OVERLAY_SETTINGS 0xa6de9ba6U
#define MENU_LABEL_MENU_SETTINGS 0x61e4544bU
#define MENU_LABEL_UI_SETTINGS 0xf8da6ef4U
#define MENU_LABEL_PATCH_SETTINGS 0xa78b0986U
#define MENU_LABEL_PLAYLIST_SETTINGS 0x4d276288U
#define MENU_LABEL_CORE_UPDATER_SETTINGS 0x124ad454U
#define MENU_LABEL_NETWORK_SETTINGS 0x8b50d180U
#define MENU_LABEL_ARCHIVE_SETTINGS 0x78e85398U
#define MENU_LABEL_USER_SETTINGS 0xcdc9a8f5U
#define MENU_LABEL_DIRECTORY_SETTINGS 0xb817bd2bU
#define MENU_LABEL_PRIVACY_SETTINGS 0xce106254U
void menu_entries_common_load_content(bool persist)
{
menu_handle_t *menu = menu_driver_get_ptr();

View File

@ -23,6 +23,115 @@
extern "C" {
#endif
#define MENU_LABEL_DEFERRED_DATABASE_MANAGER_LIST 0x7c0b704fU
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST 0x45446638U
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_DEVELOPER 0xcbd89be5U
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_PUBLISHER 0x125e594dU
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ORIGIN 0x4ebaa767U
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_FRANCHISE 0x77f9eff2U
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_EDGE_MAGAZINE_RATING 0x1c7f8a43U
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_EDGE_MAGAZINE_ISSUE 0xaaeebde7U
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_RELEASEMONTH 0x2b36ce66U
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_RELEASEYEAR 0x9c7c6e91U
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ESRB_RATING 0x68eba20fU
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ELSPA_RATING 0x8bf6ab18U
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_PEGI_RATING 0x5fc77328U
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_CERO_RATING 0x24f6172cU
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_BBFC_RATING 0x0a8e67f0U
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_MAX_USERS 0xbfcba816U
#define MENU_LABEL_DEFERRED_RDB_ENTRY_DETAIL 0xc35416c0U
#define MENU_LABEL_DEFERRED_CORE_LIST 0xf157d289U
#define MENU_LABEL_CONFIGURATIONS 0x3e930a50U
#define MENU_LABEL_DISK_IMAGE_APPEND 0x5af7d709U
#define MENU_LABEL_PERFORMANCE_COUNTERS 0xd8ab5049U
#define MENU_LABEL_CORE_LIST 0xa8c3bfc9U
#define MENU_LABEL_MANAGEMENT 0xb8137ec2U
#define MENU_LABEL_OPTIONS 0x71f05091U
#define MENU_LABEL_SETTINGS 0x1304dc16U
#define MENU_LABEL_FRONTEND_COUNTERS 0xe5696877U
#define MENU_LABEL_CORE_COUNTERS 0x64cc83e0U
#define MENU_LABEL_HISTORY_LIST 0x60d82032U
#define MENU_LABEL_INFO_SCREEN 0xd97853d0U
#define MENU_LABEL_SYSTEM_INFORMATION 0x206ebf0fU
#define MENU_LABEL_CORE_INFORMATION 0xb638e0d3U
#define MENU_LABEL_VIDEO_SHADER_PARAMETERS 0x9895c3e5U
#define MENU_LABEL_VIDEO_SHADER_PRESET_PARAMETERS 0xd18158d7U
#define MENU_LABEL_DISK_OPTIONS 0xc61ab5fbU
#define MENU_LABEL_CORE_OPTIONS 0xf65e60f9U
#define MENU_LABEL_SHADER_OPTIONS 0x1f7d2fc7U
#define MENU_LABEL_VIDEO_OPTIONS 0x6390c4e7U
#define MENU_LABEL_CORE_CHEAT_OPTIONS 0x9293171dU
#define MENU_LABEL_CORE_INPUT_REMAPPING_OPTIONS 0x7836a8caU
#define MENU_LABEL_DATABASE_MANAGER_LIST 0x7f853d8fU
#define MENU_LABEL_CURSOR_MANAGER_LIST 0xa969e378U
#define MENU_LABEL_DEFERRED_CORE_UPDATER_LIST 0xbd4d493dU
#define MENU_LABEL_VIDEO_SHADER_PASS 0x4fa31028U
#define MENU_LABEL_VIDEO_SHADER_PRESET 0xc5d3bae4U
#define MENU_LABEL_CHEAT_FILE_LOAD 0x57336148U
#define MENU_LABEL_REMAP_FILE_LOAD 0x9c2799b8U
#define MENU_LABEL_CUSTOM_VIEWPORT_2 0x76c30170U
#define MENU_LABEL_HELP 0x7c97d2eeU
#define MENU_LABEL_INPUT_OVERLAY 0x24e24796U
#define MENU_LABEL_VIDEO_FONT_PATH 0xd0de729eU
#define MENU_LABEL_VIDEO_FILTER 0x1c0eb741U
#define MENU_LABEL_AUDIO_DSP_PLUGIN 0x4a69572bU
#define MENU_LABEL_RGUI_BROWSER_DIRECTORY 0xa86cba73U
#define MENU_LABEL_PLAYLIST_DIRECTORY 0x6361820bU
#define MENU_LABEL_CONTENT_DIRECTORY 0x7738dc14U
#define MENU_LABEL_SCREENSHOT_DIRECTORY 0x552612d7U
#define MENU_LABEL_VIDEO_SHADER_DIR 0x30f53b10U
#define MENU_LABEL_VIDEO_FILTER_DIR 0x67603f1fU
#define MENU_LABEL_AUDIO_FILTER_DIR 0x4bd96ebaU
#define MENU_LABEL_SAVESTATE_DIRECTORY 0x90551289U
#define MENU_LABEL_LIBRETRO_DIR_PATH 0x1af1eb72U
#define MENU_LABEL_LIBRETRO_INFO_PATH 0xe552b25fU
#define MENU_LABEL_RGUI_CONFIG_DIRECTORY 0x0cb3e005U
#define MENU_LABEL_SAVEFILE_DIRECTORY 0x92773488U
#define MENU_LABEL_OVERLAY_DIRECTORY 0xc4ed3d1bU
#define MENU_LABEL_SYSTEM_DIRECTORY 0x35a6fb9eU
#define MENU_LABEL_ASSETS_DIRECTORY 0xde1ae8ecU
#define MENU_LABEL_EXTRACTION_DIRECTORY 0x33b55ffaU
#define MENU_LABEL_JOYPAD_AUTOCONFIG_DIR 0x2f4822d8U
#define MENU_LABEL_DRIVER_SETTINGS 0x81cd2d62U
#define MENU_LABEL_CORE_SETTINGS 0x06795dffU
#define MENU_LABEL_CONFIGURATION_SETTINGS 0x5a1558ceU
#define MENU_LABEL_LOGGING_SETTINGS 0x902c003dU
#define MENU_LABEL_SAVING_SETTINGS 0x32fea87eU
#define MENU_LABEL_REWIND_SETTINGS 0xbff7775fU
#define MENU_LABEL_VIDEO_SETTINGS 0x9dd23badU
#define MENU_LABEL_RECORDING_SETTINGS 0x1a80b313U
#define MENU_LABEL_FRAME_THROTTLE_SETTINGS 0x573b8837U
#define MENU_LABEL_SHADER_SETTINGS 0xd6657e8dU
#define MENU_LABEL_FONT_SETTINGS 0x67571029U
#define MENU_LABEL_AUDIO_SETTINGS 0x8f74c888U
#define MENU_LABEL_INPUT_SETTINGS 0xddd30846U
#define MENU_LABEL_INPUT_HOTKEY_SETTINGS 0xa4fee31aU
#define MENU_LABEL_OVERLAY_SETTINGS 0x34377f98U
#define MENU_LABEL_ONSCREEN_KEYBOARD_OVERLAY_SETTINGS 0xa6de9ba6U
#define MENU_LABEL_MENU_SETTINGS 0x61e4544bU
#define MENU_LABEL_UI_SETTINGS 0xf8da6ef4U
#define MENU_LABEL_PATCH_SETTINGS 0xa78b0986U
#define MENU_LABEL_PLAYLIST_SETTINGS 0x4d276288U
#define MENU_LABEL_CORE_UPDATER_SETTINGS 0x124ad454U
#define MENU_LABEL_NETWORK_SETTINGS 0x8b50d180U
#define MENU_LABEL_ARCHIVE_SETTINGS 0x78e85398U
#define MENU_LABEL_USER_SETTINGS 0xcdc9a8f5U
#define MENU_LABEL_DIRECTORY_SETTINGS 0xb817bd2bU
#define MENU_LABEL_PRIVACY_SETTINGS 0xce106254U
#define MENU_LABEL_ONSCREEN_DISPLAY_SETTINGS 0x67571029U
#define MENU_LABEL_CUSTOM_BIND_ALL 0x79ac14f4U
#define MENU_LABEL_SAVESTATE 0x3a4849b5U
#define MENU_LABEL_LOADSTATE 0xa39eb286U
#define MENU_LABEL_RESUME_CONTENT 0xd9f088b0U
#define MENU_LABEL_RESTART_CONTENT 0x1ea2e224U
#define MENU_LABEL_TAKE_SCREENSHOT 0x6786e867U
#define MENU_LABEL_FILE_LOAD_OR_RESUME 0x952941f4U
#define MENU_LABEL_CORE_LIST 0xa8c3bfc9U
#define MENU_LABEL_DISK_IMAGE_APPEND 0x5af7d709U
#define MENU_LABEL_CONFIGURATIONS 0x3e930a50U
/* FIXME - Externs, refactor */
extern size_t hack_shader_pass;
#ifdef HAVE_NETWORKING

View File

@ -23,23 +23,13 @@
#include "menu_entry.h"
#include "menu_shader.h"
#include "menu_navigation.h"
#include "menu_entries_cbs.h"
#include "../retroarch.h"
#include "../runloop_data.h"
#include "../input/input_remapping.h"
#define MENU_LABEL_CUSTOM_BIND_ALL 0x79ac14f4U
#define MENU_LABEL_SAVESTATE 0x3a4849b5U
#define MENU_LABEL_LOADSTATE 0xa39eb286U
#define MENU_LABEL_RESUME_CONTENT 0xd9f088b0U
#define MENU_LABEL_RESTART_CONTENT 0x1ea2e224U
#define MENU_LABEL_TAKE_SCREENSHOT 0x6786e867U
#define MENU_LABEL_FILE_LOAD_OR_RESUME 0x952941f4U
#define MENU_LABEL_CORE_LIST 0xa8c3bfc9U
#define MENU_LABEL_DISK_IMAGE_APPEND 0x5af7d709U
#define MENU_LABEL_CONFIGURATIONS 0x3e930a50U
/* FIXME - Global variables, refactor */
unsigned rdb_entry_start_game_selection_ptr;
size_t hack_shader_pass = 0;

View File

@ -22,102 +22,6 @@
#include <rhash.h>
#define MENU_LABEL_DEFERRED_DATABASE_MANAGER_LIST 0x7c0b704fU
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST 0x45446638U
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_DEVELOPER 0xcbd89be5U
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_PUBLISHER 0x125e594dU
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ORIGIN 0x4ebaa767U
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_FRANCHISE 0x77f9eff2U
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_EDGE_MAGAZINE_RATING 0x1c7f8a43U
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_EDGE_MAGAZINE_ISSUE 0xaaeebde7U
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_RELEASEMONTH 0x2b36ce66U
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_RELEASEYEAR 0x9c7c6e91U
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ESRB_RATING 0x68eba20fU
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ELSPA_RATING 0x8bf6ab18U
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_PEGI_RATING 0x5fc77328U
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_CERO_RATING 0x24f6172cU
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_BBFC_RATING 0x0a8e67f0U
#define MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_MAX_USERS 0xbfcba816U
#define MENU_LABEL_DEFERRED_RDB_ENTRY_DETAIL 0xc35416c0U
#define MENU_LABEL_DEFERRED_CORE_LIST 0xf157d289U
#define MENU_LABEL_CONFIGURATIONS 0x3e930a50U
#define MENU_LABEL_DISK_IMAGE_APPEND 0x5af7d709U
#define MENU_LABEL_PERFORMANCE_COUNTERS 0xd8ab5049U
#define MENU_LABEL_CORE_LIST 0xa8c3bfc9U
#define MENU_LABEL_MANAGEMENT 0xb8137ec2U
#define MENU_LABEL_OPTIONS 0x71f05091U
#define MENU_LABEL_SETTINGS 0x1304dc16U
#define MENU_LABEL_FRONTEND_COUNTERS 0xe5696877U
#define MENU_LABEL_CORE_COUNTERS 0x64cc83e0U
#define MENU_LABEL_HISTORY_LIST 0x60d82032U
#define MENU_LABEL_INFO_SCREEN 0xd97853d0U
#define MENU_LABEL_SYSTEM_INFORMATION 0x206ebf0fU
#define MENU_LABEL_CORE_INFORMATION 0xb638e0d3U
#define MENU_LABEL_VIDEO_SHADER_PARAMETERS 0x9895c3e5U
#define MENU_LABEL_VIDEO_SHADER_PRESET_PARAMETERS 0xd18158d7U
#define MENU_LABEL_DISK_OPTIONS 0xc61ab5fbU
#define MENU_LABEL_CORE_OPTIONS 0xf65e60f9U
#define MENU_LABEL_SHADER_OPTIONS 0x1f7d2fc7U
#define MENU_LABEL_VIDEO_OPTIONS 0x6390c4e7U
#define MENU_LABEL_CORE_CHEAT_OPTIONS 0x9293171dU
#define MENU_LABEL_CORE_INPUT_REMAPPING_OPTIONS 0x7836a8caU
#define MENU_LABEL_DATABASE_MANAGER_LIST 0x7f853d8fU
#define MENU_LABEL_CURSOR_MANAGER_LIST 0xa969e378U
#define MENU_LABEL_DEFERRED_CORE_UPDATER_LIST 0xbd4d493dU
#define MENU_LABEL_VIDEO_SHADER_PASS 0x4fa31028U
#define MENU_LABEL_VIDEO_SHADER_PRESET 0xc5d3bae4U
#define MENU_LABEL_CHEAT_FILE_LOAD 0x57336148U
#define MENU_LABEL_REMAP_FILE_LOAD 0x9c2799b8U
#define MENU_LABEL_CUSTOM_VIEWPORT_2 0x76c30170U
#define MENU_LABEL_HELP 0x7c97d2eeU
#define MENU_LABEL_INPUT_OVERLAY 0x24e24796U
#define MENU_LABEL_VIDEO_FONT_PATH 0xd0de729eU
#define MENU_LABEL_VIDEO_FILTER 0x1c0eb741U
#define MENU_LABEL_AUDIO_DSP_PLUGIN 0x4a69572bU
#define MENU_LABEL_RGUI_BROWSER_DIRECTORY 0xa86cba73U
#define MENU_LABEL_PLAYLIST_DIRECTORY 0x6361820bU
#define MENU_LABEL_CONTENT_DIRECTORY 0x7738dc14U
#define MENU_LABEL_SCREENSHOT_DIRECTORY 0x552612d7U
#define MENU_LABEL_VIDEO_SHADER_DIR 0x30f53b10U
#define MENU_LABEL_VIDEO_FILTER_DIR 0x67603f1fU
#define MENU_LABEL_AUDIO_FILTER_DIR 0x4bd96ebaU
#define MENU_LABEL_SAVESTATE_DIRECTORY 0x90551289U
#define MENU_LABEL_LIBRETRO_DIR_PATH 0x1af1eb72U
#define MENU_LABEL_LIBRETRO_INFO_PATH 0xe552b25fU
#define MENU_LABEL_RGUI_CONFIG_DIRECTORY 0x0cb3e005U
#define MENU_LABEL_SAVEFILE_DIRECTORY 0x92773488U
#define MENU_LABEL_OVERLAY_DIRECTORY 0xc4ed3d1bU
#define MENU_LABEL_SYSTEM_DIRECTORY 0x35a6fb9eU
#define MENU_LABEL_ASSETS_DIRECTORY 0xde1ae8ecU
#define MENU_LABEL_EXTRACTION_DIRECTORY 0x33b55ffaU
#define MENU_LABEL_JOYPAD_AUTOCONFIG_DIR 0x2f4822d8U
#define MENU_LABEL_DRIVER_SETTINGS 0x81cd2d62U
#define MENU_LABEL_CORE_SETTINGS 0x06795dffU
#define MENU_LABEL_CONFIGURATION_SETTINGS 0x5a1558ceU
#define MENU_LABEL_LOGGING_SETTINGS 0x902c003dU
#define MENU_LABEL_SAVING_SETTINGS 0x32fea87eU
#define MENU_LABEL_REWIND_SETTINGS 0xbff7775fU
#define MENU_LABEL_VIDEO_SETTINGS 0x9dd23badU
#define MENU_LABEL_RECORDING_SETTINGS 0x1a80b313U
#define MENU_LABEL_FRAME_THROTTLE_SETTINGS 0x573b8837U
#define MENU_LABEL_SHADER_SETTINGS 0xd6657e8dU
#define MENU_LABEL_FONT_SETTINGS 0x67571029U
#define MENU_LABEL_AUDIO_SETTINGS 0x8f74c888U
#define MENU_LABEL_INPUT_SETTINGS 0xddd30846U
#define MENU_LABEL_INPUT_HOTKEY_SETTINGS 0xa4fee31aU
#define MENU_LABEL_OVERLAY_SETTINGS 0x34377f98U
#define MENU_LABEL_ONSCREEN_KEYBOARD_OVERLAY_SETTINGS 0xa6de9ba6U
#define MENU_LABEL_MENU_SETTINGS 0x61e4544bU
#define MENU_LABEL_UI_SETTINGS 0xf8da6ef4U
#define MENU_LABEL_PATCH_SETTINGS 0xa78b0986U
#define MENU_LABEL_PLAYLIST_SETTINGS 0x4d276288U
#define MENU_LABEL_CORE_UPDATER_SETTINGS 0x124ad454U
#define MENU_LABEL_NETWORK_SETTINGS 0x8b50d180U
#define MENU_LABEL_ARCHIVE_SETTINGS 0x78e85398U
#define MENU_LABEL_USER_SETTINGS 0xcdc9a8f5U
#define MENU_LABEL_DIRECTORY_SETTINGS 0xb817bd2bU
#define MENU_LABEL_PRIVACY_SETTINGS 0xce106254U
static INLINE void replace_chars(char *str, char c1, char c2)
{
char *pos;