Should hopefully fix scanning of PS1 games

This commit is contained in:
twinaphex 2017-06-07 11:12:11 +02:00
parent 803ae53372
commit 6c81007eb9
1 changed files with 1 additions and 3 deletions

View File

@ -356,9 +356,7 @@ int detect_system(const char *track_path, const char **system_name)
goto clean; goto clean;
} }
if (!string_is_empty(MAGIC_NUMBERS[i].magic) && if (string_is_equal_fast(MAGIC_NUMBERS[i].magic, magic, MAGIC_LEN))
!string_is_empty(magic) &&
string_is_equal_fast(MAGIC_NUMBERS[i].magic, magic, MAGIC_LEN))
{ {
*system_name = MAGIC_NUMBERS[i].system_name; *system_name = MAGIC_NUMBERS[i].system_name;
rv = 0; rv = 0;