From accbed0c514fc4ad1eaf5691cb89421f0485b5d6 Mon Sep 17 00:00:00 2001 From: Lyssa Date: Wed, 2 Apr 2025 14:34:11 +0400 Subject: [PATCH] fix build --- LibTSforge/Activators/ZeroCID.cs | 3 ++- TSforgeCLI/Program.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/LibTSforge/Activators/ZeroCID.cs b/LibTSforge/Activators/ZeroCID.cs index 255eea2..1675173 100644 --- a/LibTSforge/Activators/ZeroCID.cs +++ b/LibTSforge/Activators/ZeroCID.cs @@ -111,7 +111,8 @@ namespace LibTSforge.Activators try { shortauth = BitConverter.ToUInt64(Convert.FromBase64String(uniqueId.Split('&')[1]), 0); - } catch + } + catch { throw new FormatException("Key Unique ID has invalid format."); } diff --git a/TSforgeCLI/Program.cs b/TSforgeCLI/Program.cs index 8581b5c..2c636b4 100644 --- a/TSforgeCLI/Program.cs +++ b/TSforgeCLI/Program.cs @@ -52,7 +52,7 @@ namespace TSforgeCLI } PSVersion version = options.Version ?? Utils.DetectVersion(); - bool production = options.Production ?? Utils.DetectCurrentKey(); + bool production = options.Production ?? SPPUtils.DetectCurrentKey(); if (options.Dump) {