diff options
| author | WitherOrNot | 2025-04-07 22:19:19 +0000 |
|---|---|---|
| committer | GitHub | 2025-04-07 22:19:19 +0000 |
| commit | 3a3ac06ca3715127475c7a2c7b3f0782e1690dfb (patch) | |
| tree | f83328728b259bb6ec1e52979322377df1c7d627 /LibTSforge/Modifiers/GenPKeyInstall.cs | |
| parent | bdd201061daf7492fb116b86a54cd349c01fbb0a (diff) | |
| parent | 22bbb93e909154da94aee1b55e551038a3a37e6c (diff) | |
| download | TSforge-3a3ac06ca3715127475c7a2c7b3f0782e1690dfb.zip | |
Merge pull request #4 from massgravel/minor-fixups
Minor fixups
Diffstat (limited to 'LibTSforge/Modifiers/GenPKeyInstall.cs')
| -rw-r--r-- | LibTSforge/Modifiers/GenPKeyInstall.cs | 12 |
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) |
