From 7dd76c27951982ad4e383fd1c393041540b5330a Mon Sep 17 00:00:00 2001 From: Kinsi Date: Thu, 14 Jul 2022 17:56:20 +0200 Subject: [PATCH] Apparently Manifest ID's arent always 19 digits long.. (Fixes #9) --- AppInfo.cs | 2 +- Form1.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AppInfo.cs b/AppInfo.cs index 7d5193b..ff1d9dd 100644 --- a/AppInfo.cs +++ b/AppInfo.cs @@ -94,7 +94,7 @@ private void OnProductInfo(SteamApps.PICSProductInfoCallback callback) { .FirstOrDefault(x => x.Name == "manifests")?.Children .FirstOrDefault(x => x.Name == "public")?.Value; - if(manifest?.Length == 19) + if(manifest?.Length >= 16) manifestId = manifest; Debug.WriteLine(manifestId); diff --git a/Form1.cs b/Form1.cs index e85b619..c6732e3 100644 --- a/Form1.cs +++ b/Form1.cs @@ -74,7 +74,7 @@ private void applyButton_Click(object sender, EventArgs e) { return; } - if(!Regex.IsMatch(textbox_manifest.Text, "[0-9]{19}")) { + if(!Regex.IsMatch(textbox_manifest.Text, "[0-9]{16,19}")) { Bad("The Manifest ID you entered is incorrect. It should be a 19 digit number. Make sure to not accidently enter any spaces"); return; }