return -1 if trophy xml not found . Fixes undertale

This commit is contained in:
georgemoralis 2024-10-11 17:48:52 +03:00
parent 0fc253403d
commit 26aecda87f

View file

@ -520,7 +520,7 @@ s32 PS4_SYSV_ABI sceNpTrophyGetTrophyUnlockState(OrbisNpTrophyContext context,
if (!result) {
LOG_ERROR(Lib_NpTrophy, "Failed to open trophy xml : {}", result.description());
return ORBIS_OK;
return -1;
}
int num_trophies = 0;