summaryrefslogtreecommitdiff
path: root/LibTSforge/Activators/ZeroCID.cs
diff options
context:
space:
mode:
authorWither OrNot2025-04-07 23:23:19 +0000
committerWither OrNot2025-04-07 23:23:19 +0000
commitb7868ff296016917c38657474117d5ca820b2312 (patch)
tree5c3dd53fe258c322c14dc2d69b8864a98de91a4a /LibTSforge/Activators/ZeroCID.cs
parentcb5c97d443982e547a8dd5a76032de8fa6859b61 (diff)
parent3a3ac06ca3715127475c7a2c7b3f0782e1690dfb (diff)
downloadTSforge-b7868ff296016917c38657474117d5ca820b2312.zip
Merge branch 'longhorn' of https://github.com/massgravel/TSforge into longhorn1.1.0-longhorn+1
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,