DOn't use MENU_VALUE_DETECT

This commit is contained in:
twinaphex 2016-06-16 13:30:56 +02:00
parent c67c37d641
commit f19d96d3c4
2 changed files with 1 additions and 6 deletions

View File

@ -1466,7 +1466,6 @@ static int menu_displaylist_parse_playlist(menu_displaylist_info_t *info,
{
char fill_buf[PATH_MAX_LENGTH] = {0};
char path_copy[PATH_MAX_LENGTH] = {0};
uint32_t core_name_hash = 0;
const char *core_name = NULL;
const char *db_name = NULL;
const char *path = NULL;
@ -1481,10 +1480,7 @@ static int menu_displaylist_parse_playlist(menu_displaylist_info_t *info,
&path, &label, NULL, &core_name, &crc32, &db_name);
if (core_name)
{
strlcpy(fill_buf, core_name, sizeof(fill_buf));
core_name_hash = menu_hash_calculate(core_name);
}
if (path)
{
@ -1498,7 +1494,7 @@ static int menu_displaylist_parse_playlist(menu_displaylist_info_t *info,
if (!string_is_empty(core_name))
{
if (core_name_hash != MENU_VALUE_DETECT)
if (!string_is_equal(core_name, "DETECT"))
{
char tmp[PATH_MAX_LENGTH] = {0};
snprintf(tmp, sizeof(tmp), " (%s)", core_name);

View File

@ -1864,7 +1864,6 @@ enum menu_hash_enums
#define MENU_VALUE_RDB 0x0b00f54eU
#define MENU_VALUE_DIR 0x0af95f55U
#define MENU_VALUE_NO_CORE 0x7d5472cbU
#define MENU_VALUE_DETECT 0xab8da89eU
#define MENU_VALUE_GLSLP 0x0f840c87U
#define MENU_VALUE_CGP 0x0b8865bfU
#define MENU_VALUE_GLSL 0x7c976537U