summaryrefslogtreecommitdiff
path: root/LibTSforge/Activators/ZeroCID.cs
diff options
context:
space:
mode:
authorWitherOrNot2025-04-07 22:19:19 +0000
committerGitHub2025-04-07 22:19:19 +0000
commit3a3ac06ca3715127475c7a2c7b3f0782e1690dfb (patch)
treef83328728b259bb6ec1e52979322377df1c7d627 /LibTSforge/Activators/ZeroCID.cs
parentbdd201061daf7492fb116b86a54cd349c01fbb0a (diff)
parent22bbb93e909154da94aee1b55e551038a3a37e6c (diff)
downloadTSforge-3a3ac06ca3715127475c7a2c7b3f0782e1690dfb.zip
Merge pull request #4 from massgravel/minor-fixups
Minor fixups
Diffstat (limited to 'LibTSforge/Activators/ZeroCID.cs')
-rw-r--r--LibTSforge/Activators/ZeroCID.cs13
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,