diff options
| author | Lyssa | 2025-04-07 15:19:24 +0000 |
|---|---|---|
| committer | Lyssa | 2025-04-07 15:19:24 +0000 |
| commit | 0c8b1efaa9005de1d101ebab5e66117edfaec3b2 (patch) | |
| tree | 3f5fe837f2ec9cbe20238bdf9ced357f3ec1184e /LibTSforge/Activators/ZeroCID.cs | |
| parent | 3f1c87831802817f0cb3effacde954d3cbadfb6c (diff) | |
| download | TSforge-0c8b1efaa9005de1d101ebab5e66117edfaec3b2.zip | |
Minor fixups
Diffstat (limited to 'LibTSforge/Activators/ZeroCID.cs')
| -rw-r--r-- | LibTSforge/Activators/ZeroCID.cs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/LibTSforge/Activators/ZeroCID.cs b/LibTSforge/Activators/ZeroCID.cs index 1675173..147dceb 100644 --- a/LibTSforge/Activators/ZeroCID.cs +++ b/LibTSforge/Activators/ZeroCID.cs @@ -3,14 +3,13 @@ namespace LibTSforge.Activators using System; using System.IO; using System.Linq; - using System.Text.RegularExpressions; - using LibTSforge.Crypto; - using LibTSforge.PhysicalStore; - using LibTSforge.SPP; + using Crypto; + using PhysicalStore; + using SPP; public static class ZeroCID { - public static void Deposit(Guid actId, string instId) + private static void Deposit(Guid actId, string instId) { uint status = SLApi.DepositConfirmationID(actId, instId, Constants.ZeroCID); Logger.WriteLine(string.Format("Depositing fake CID status {0:X}", status)); @@ -98,7 +97,7 @@ namespace LibTSforge.Activators string uniqueId = Utils.DecodeString(pkeyData.Skip(0x120).Take(0x80).ToArray()); string extPid = Utils.DecodeString(pkeyData.Skip(0x1A0).Take(0x80).ToArray()); - uint group = 0; + uint group; uint.TryParse(extPid.Split('-')[1], out group); if (group == 0) @@ -154,7 +153,7 @@ namespace LibTSforge.Activators store.DeleteBlock(key, hwidBlockName); store.DeleteBlock(key, pkeyInfoName); - store.AddBlocks(new PSBlock[] { + store.AddBlocks(new[] { new PSBlock { Type = BlockType.NAMED, |
