Remove DPM identifier for StarForce Keyless (#918)

* Redump staff does not deem the DPM identifier useful, so clean it from the submissioninfo output

* Add test for sanitization of StarForce Keyless
This commit is contained in:
HeroponRikiBestest
2025-11-18 18:41:10 -05:00
committed by GitHub
parent f0f41c86c5
commit 4beae71511
2 changed files with 21 additions and 0 deletions

View File

@@ -775,6 +775,21 @@ namespace MPF.Frontend.Test.Tools
string sanitized = ProtectionTool.SanitizeFoundProtections(protections);
Assert.Equal(protections[0], sanitized);
}
[Fact]
public void SanitizeFoundProtections_StarForce_Keyless()
{
List<string> protections =
[
"StarForce Keyless",
"StarForce Keyless - ",
"StarForce Keyless - ESPY97LS8FHNYR52JDWL8D6FJ",
"StarForce Keyless - UAYA-RPMVHJ-ZRY45G-ETUJ36-WL922B",
];
string sanitized = ProtectionTool.SanitizeFoundProtections(protections);
Assert.Equal("StarForce Keyless", sanitized);
}
[Fact]
public void SanitizeFoundProtections_Sysiphus()