Fix param parsing

This commit is contained in:
Deterous
2023-12-23 08:56:13 +13:00
parent 26bde9d753
commit e910312d6e
+2 -2
View File
@@ -663,7 +663,7 @@ namespace LibIRD
ParamSFO paramSFO = new(s);
// If PS3_DISC.SFB did not set TitleID, use PARAM.SFO TITLE_ID
if (TitleID != null)
if (TitleID == null)
{
bool titleIDFound = paramSFO.Field.TryGetValue("TITLE_ID", out string titleID);
if (titleIDFound)
@@ -677,7 +677,7 @@ namespace LibIRD
Title = titleFound ? title : String.Empty;
// If PS3_DISC.SFB did not set DiscVersion, try use PARAM.SFO VERSION
if (DiscVersion != null)
if (DiscVersion == null)
{
bool discVersionFound = paramSFO.Field.TryGetValue("VERSION", out string discVersion);
if (discVersionFound)