trophies: fix return value of GetUnlockedPlatinumID with invalid file

This commit is contained in:
Megamouse 2026-05-30 23:47:00 +02:00
parent 375eb21c07
commit 9c719a5857

View File

@ -286,7 +286,7 @@ u32 TROPUSRLoader::GetUnlockedPlatinumID(u32 trophy_id, const std::string& confi
if (!trophy_base)
{
trp_log.error("TROPUSRLoader::GetUnlockedPlatinumID: Failed to read file (root is null): %s", config_path);
return false;
return invalid_trophy_id;
}
const usz trophy_count = m_table4.size();