Skip to content

Commit 7c2b075

Browse files
committed
Fix null RetroAchievement hash causing a crash
1 parent e8e9ce0 commit 7c2b075

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/integrations/RetroAchievementsIntegration.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ func _download_hash_cache() -> int:
572572
return GameInfo.Error.OK
573573

574574
func _get_id_from_hash(hash: String, system: String) -> int:
575+
if hash.is_empty(): return -GameInfo.Error.ERR_GAME_NOT_FOUND
575576
var path := get_cheevos_hash_cache_path()
576577
var data : Dictionary = JSONUtils.load_json_file(path)
577578
var hash_key = hash[0]

0 commit comments

Comments
 (0)