(Menu) replace instances of 'No Core'

This commit is contained in:
twinaphex 2015-06-19 06:08:08 +02:00
parent 4bea7b125f
commit 0069df0361
4 changed files with 8 additions and 3 deletions

View File

@ -457,7 +457,7 @@ static int deferred_push_default(menu_displaylist_info_t *info)
static int menu_cbs_init_bind_deferred_push_compare_label(menu_file_list_cbs_t *cbs,
const char *label, uint32_t label_hash)
{
if (strstr(label, "deferred_rdb_entry_detail"))
if (strstr(label, menu_hash_to_str(MENU_LABEL_DEFERRED_RDB_ENTRY_DETAIL)))
cbs->action_deferred_push = deferred_push_rdb_entry_detail;
else
{

View File

@ -286,7 +286,7 @@ static int action_get_title_default(const char *path, const char *label,
if (!core_name)
core_name = global->system.info.library_name;
if (!core_name)
core_name = "No Core";
core_name = menu_hash_to_str(MENU_VALUE_NO_CORE);
snprintf(s, len, "CONTENT (%s) %s", core_name, path);
}

View File

@ -14,6 +14,7 @@
*/
#include "menu.h"
#include "menu_hash.h"
#include "menu_display.h"
#include "menu_entry.h"
#include "menu_navigation.h"
@ -107,7 +108,7 @@ void menu_entries_get_core_title(char *s, size_t len)
if (!core_name)
core_name = global->system.info.library_name;
if (!core_name)
core_name = "No Core";
core_name = menu_hash_to_str(MENU_VALUE_NO_CORE);
if (!core_version)
core_version = global->system.info.library_version;

View File

@ -79,6 +79,8 @@ static const char *menu_hash_to_str_english(uint32_t hash)
return "cursor_manager_list";
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST:
return "deferred_cursor_manager_list";
case MENU_LABEL_DEFERRED_RDB_ENTRY_DETAIL:
return "deferred_rdb_entry_detail";
case MENU_LABEL_FRONTEND_COUNTERS:
return "frontend_counters";
case MENU_LABEL_CORE_COUNTERS:
@ -115,6 +117,8 @@ static const char *menu_hash_to_str_english(uint32_t hash)
return "No core options available.";
case MENU_LABEL_VALUE_NO_CORES_AVAILABLE:
return "No cores available.";
case MENU_VALUE_NO_CORE:
return "No Core";
case MENU_LABEL_VALUE_DATABASE_MANAGER:
return "Database Manager";
case MENU_LABEL_VALUE_CURSOR_MANAGER: