summaryrefslogtreecommitdiff
path: root/LibTSforge/Modifiers/GenPKeyInstall.cs
diff options
context:
space:
mode:
authorLyssa2025-04-07 15:19:24 +0000
committerLyssa2025-04-07 15:19:24 +0000
commit0c8b1efaa9005de1d101ebab5e66117edfaec3b2 (patch)
tree3f5fe837f2ec9cbe20238bdf9ced357f3ec1184e /LibTSforge/Modifiers/GenPKeyInstall.cs
parent3f1c87831802817f0cb3effacde954d3cbadfb6c (diff)
downloadTSforge-0c8b1efaa9005de1d101ebab5e66117edfaec3b2.zip
Minor fixups
Diffstat (limited to 'LibTSforge/Modifiers/GenPKeyInstall.cs')
-rw-r--r--LibTSforge/Modifiers/GenPKeyInstall.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/LibTSforge/Modifiers/GenPKeyInstall.cs b/LibTSforge/Modifiers/GenPKeyInstall.cs
index 2e4c23d..a747952 100644
--- a/LibTSforge/Modifiers/GenPKeyInstall.cs
+++ b/LibTSforge/Modifiers/GenPKeyInstall.cs
@@ -3,9 +3,9 @@ namespace LibTSforge.Modifiers
using System;
using System.IO;
using Microsoft.Win32;
- using LibTSforge.PhysicalStore;
- using LibTSforge.SPP;
- using LibTSforge.TokenStore;
+ using PhysicalStore;
+ using SPP;
+ using TokenStore;
public static class GenPKeyInstall
{
@@ -58,7 +58,7 @@ namespace LibTSforge.Modifiers
if (pkey.Algorithm == PKeyAlgorithm.PKEY2009)
{
uint status = SLApi.InstallProductKey(pkey);
- Logger.WriteLine(string.Format("Installing generated product key {0} status {1:X}", pkey.ToString(), status));
+ Logger.WriteLine(string.Format("Installing generated product key {0} status {1:X}", pkey, status));
if ((int)status < 0)
{
@@ -74,7 +74,7 @@ namespace LibTSforge.Modifiers
if (pkey.Channel == "Volume:GVLK" && version == PSVersion.Win7) throw new NotSupportedException("Fake GVLK generation is not supported on Windows 7.");
VariableBag pkb = new VariableBag(version);
- pkb.Blocks.AddRange(new CRCBlockModern[]
+ pkb.Blocks.AddRange(new[]
{
new CRCBlockModern
{
@@ -169,7 +169,7 @@ namespace LibTSforge.Modifiers
uriMap.Data[pkeyId] = pkey.GetAlgoUri();
tks.SetEntry(uriMapName, "xml", uriMap.Serialize());
- string skuMetaName = actId.ToString() + metSuffix;
+ string skuMetaName = actId + metSuffix;
TokenMeta skuMeta = tks.GetMetaEntry(skuMetaName);
foreach (string k in skuMeta.Data.Keys)