Make it so that TROPUSR doesn't crash on "bad" imput.
This commit is contained in:
@@ -207,6 +207,7 @@ u32 TROPUSRLoader::GetTrophyUnlockState(u32 id)
|
||||
if (id >= m_table6.size())
|
||||
{
|
||||
LOG_WARNING(LOADER, "TROPUSRLoader::GetUnlockState: Invalid id=%d", id);
|
||||
return 0;
|
||||
}
|
||||
|
||||
return m_table6[id].trophy_state; // Let's assume the trophies are stored ordered
|
||||
@@ -217,6 +218,7 @@ u64 TROPUSRLoader::GetTrophyTimestamp(u32 id)
|
||||
if (id >= m_table6.size())
|
||||
{
|
||||
LOG_WARNING(LOADER, "TROPUSRLoader::GetTrophyTimestamp: Invalid id=%d", id);
|
||||
return 0;
|
||||
}
|
||||
|
||||
// TODO: What timestamp does sceNpTrophyGetTrophyInfo want, timestamp1 or timestamp2?
|
||||
|
||||
Reference in New Issue
Block a user