mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Fix copy protection output again
This doesn't warrant a full PR
This commit is contained in:
@@ -410,8 +410,7 @@ namespace DICUI.Utilities
|
||||
case KnownSystem.IBMPCCompatible:
|
||||
case KnownSystem.RainbowDisc:
|
||||
mappings[Template.ISBNField] = Template.OptionalValue;
|
||||
string protection = GetCopyProtection();
|
||||
mappings[Template.CopyProtectionField] = (!String.IsNullOrWhiteSpace(protection) ? protection : Template.RequiredIfExistsValue);
|
||||
mappings[Template.CopyProtectionField] = GetCopyProtection();
|
||||
if (File.Exists(combinedBase + "_subIntention.txt"))
|
||||
{
|
||||
FileInfo fi = new FileInfo(combinedBase + "_subIntention.txt");
|
||||
@@ -511,8 +510,7 @@ namespace DICUI.Utilities
|
||||
case KnownSystem.IBMPCCompatible:
|
||||
case KnownSystem.RainbowDisc:
|
||||
mappings[Template.ISBNField] = Template.OptionalValue;
|
||||
string protection = GetCopyProtection();
|
||||
mappings[Template.CopyProtectionField] = (!String.IsNullOrWhiteSpace(protection) ? protection : Template.RequiredIfExistsValue);
|
||||
mappings[Template.CopyProtectionField] = GetCopyProtection();
|
||||
if (File.Exists(combinedBase + "_subIntention.txt"))
|
||||
{
|
||||
FileInfo fi = new FileInfo(combinedBase + "_subIntention.txt");
|
||||
|
||||
@@ -575,7 +575,7 @@ namespace DICUI.Utilities
|
||||
return ProtectionFind.Scan(path);
|
||||
});
|
||||
|
||||
if (found == null)
|
||||
if (found == null || found.Count == 0)
|
||||
return "None found";
|
||||
|
||||
return string.Join("\n", found.Select(kvp => kvp.Key + ": " + kvp.Value).ToArray());
|
||||
|
||||
Reference in New Issue
Block a user