mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Fix PS1 copy protect output (fixes #222)
This commit is contained in:
@@ -1892,7 +1892,12 @@ namespace DICUI.DiscImageCreator
|
||||
info.CommonDiscInfo.EXEDateBuildDate = playstationDate;
|
||||
}
|
||||
|
||||
bool? psEdcStatus = GetPlayStationEDCStatus(basePath + ".img_EdcEcc.txt");
|
||||
bool? psEdcStatus = null;
|
||||
if (File.Exists(basePath + ".img_EdcEcc.txt"))
|
||||
psEdcStatus = GetPlayStationEDCStatus(basePath + ".img_EdcEcc.txt");
|
||||
else if (File.Exists(basePath + ".img_EccEdc.txt"))
|
||||
psEdcStatus = GetPlayStationEDCStatus(basePath + ".img_EccEdc.txt");
|
||||
|
||||
if (psEdcStatus == true)
|
||||
info.EDC.EDC = YesNo.Yes;
|
||||
else if (psEdcStatus == false)
|
||||
|
||||
@@ -1071,7 +1071,7 @@ namespace DICUI.Utilities
|
||||
// EDC section
|
||||
if (info.CommonDiscInfo.System == KnownSystem.SonyPlayStation)
|
||||
{
|
||||
output.Add("EDC:");
|
||||
output.Add(""); output.Add("EDC:");
|
||||
AddIfExists(output, Template.PlayStationEDCField, info.EDC.EDC.LongName(), 1);
|
||||
}
|
||||
|
||||
@@ -1094,7 +1094,9 @@ namespace DICUI.Utilities
|
||||
}
|
||||
|
||||
// Copy Protection section
|
||||
if (info.CopyProtection.Protection != null || info.EDC.EDC != YesNo.NULL)
|
||||
if (info.CopyProtection.Protection != null
|
||||
|| info.CopyProtection.AntiModchip != YesNo.NULL
|
||||
|| info.CopyProtection.LibCrypt != YesNo.NULL)
|
||||
{
|
||||
output.Add(""); output.Add("Copy Protection:");
|
||||
if (info.CommonDiscInfo.System == KnownSystem.SonyPlayStation)
|
||||
|
||||
Reference in New Issue
Block a user