mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 07:51:28 +12:00
Make it so that TROPUSR doesn't crash on "bad" imput.
This commit is contained in:
parent
47bacc0ef0
commit
b8c29ae957
1 changed files with 2 additions and 0 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue