Skip to content

Commit 55f5262

Browse files
authored
Add new Protection pseudo site code (#9)
* Add Protection pseudo site tag * Use new sitecode in redumplib
1 parent 1d247b1 commit 55f5262

File tree

5 files changed

+12
-0
lines changed

5 files changed

+12
-0
lines changed

SabreTools.RedumpLib.Test/Data/ExtensionsTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,7 @@ public void Region_ToRegion(Region? region, bool expectNull)
708708
SiteCode.PFIHash,
709709
SiteCode.PostgapType,
710710
SiteCode.PPN,
711+
SiteCode.Protection,
711712
SiteCode.RingNonZeroDataStart,
712713
SiteCode.Series,
713714
SiteCode.SSHash,

SabreTools.RedumpLib/Builder.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,10 @@ public async static Task<bool> FillFromId(RedumpClient rc, SubmissionInfo info,
487487
// Nintendo Gamecube
488488
case SiteCode.InternalName:
489489
continue;
490+
491+
// Protection
492+
case SiteCode.Protection:
493+
continue;
490494
}
491495

492496
// If we don't already have this site code, add it to the dictionary

SabreTools.RedumpLib/Data/Enumerations.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3660,6 +3660,10 @@ public enum SiteCode
36603660
[HumanReadable(ShortName = "[T:PPN]", LongName = "<b>PPN</b>:")]
36613661
PPN,
36623662

3663+
// This doesn't have a site tag for some systems yet
3664+
[HumanReadable(ShortName = "<b>Protection</b>:", LongName = "<b>Protection</b>:")]
3665+
Protection,
3666+
36633667
// This doesn't have a site tag yet
36643668
[HumanReadable(ShortName = "<b>Ring non-zero data start</b>:", LongName = "<b>Ring non-zero data start</b>:")]
36653669
RingNonZeroDataStart,

SabreTools.RedumpLib/Data/Extensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,6 +1259,7 @@ public static bool IsCommentCode(this SiteCode? siteCode)
12591259
SiteCode.PFIHash => true,
12601260
SiteCode.PostgapType => true,
12611261
SiteCode.PPN => true,
1262+
SiteCode.Protection => true,
12621263
SiteCode.RingNonZeroDataStart => true,
12631264
SiteCode.Series => true,
12641265
SiteCode.SSHash => true,

SabreTools.RedumpLib/Formatter.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ public static class Formatter
3232

3333
SiteCode.Filename,
3434

35+
SiteCode.Protection,
36+
3537
SiteCode.BBFCRegistrationNumber,
3638
SiteCode.DiscHologramID,
3739
SiteCode.DNASDiscID,

0 commit comments

Comments
 (0)