mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 00:39:53 +00:00
report Unknown Game instead of Not Logged In when no hash is generated (#13463)
This commit is contained in:
parent
28f531647f
commit
176c2d1911
@ -1581,6 +1581,14 @@ static bool rcheevos_identify_game(const struct retro_game_info* info)
|
||||
size_t len;
|
||||
char hash[33];
|
||||
|
||||
#ifndef HAVE_CHD
|
||||
if (string_is_equal_noncase(path_get_extension(info->path), "chd"))
|
||||
{
|
||||
CHEEVOS_LOG(RCHEEVOS_TAG "CHD not supported without HAVE_CHD compile flag\n");
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
rc_hash_initialize_iterator(&iterator,
|
||||
info->path, (uint8_t*)info->data, info->size);
|
||||
if (!rc_hash_iterate(hash, &iterator))
|
||||
@ -1802,6 +1810,7 @@ bool rcheevos_load(const void *data)
|
||||
{
|
||||
/* No hashes could be generated for the game,
|
||||
* disable hardcore and bail */
|
||||
rcheevos_locals.game.id = 0;
|
||||
rcheevos_end_load_state();
|
||||
rcheevos_pause_hardcore();
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user