From 4768d2c25bf798afe2bdf7ca088423be1cc25f72 Mon Sep 17 00:00:00 2001 From: Bitl Date: Fri, 10 Jul 2020 17:45:20 -0700 Subject: [PATCH] better support of v1 and v2 (dev) formats --- .../Forms/SDK/ClientinfoCreator.cs | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Novetus/NovetusLauncher/Forms/SDK/ClientinfoCreator.cs b/Novetus/NovetusLauncher/Forms/SDK/ClientinfoCreator.cs index a40f573..c7eaae7 100644 --- a/Novetus/NovetusLauncher/Forms/SDK/ClientinfoCreator.cs +++ b/Novetus/NovetusLauncher/Forms/SDK/ClientinfoCreator.cs @@ -228,8 +228,11 @@ namespace NovetusLauncher } catch (Exception) { - label9.Text = "v2 (DEV)"; - IsVersion2 = false; + if (!label9.Text.Equals("v1")) + { + label9.Text = "v2 (DEV)"; + IsVersion2 = false; + } } if (!GlobalVars.AdminMode) @@ -262,12 +265,15 @@ namespace NovetusLauncher SelectedClientInfo.Fix2007 = Convert.ToBoolean(fix2007); SelectedClientInfo.AlreadyHasSecurity = Convert.ToBoolean(alreadyhassecurity); - if (IsVersion2) + try { - SelectedClientInfo.NoGraphicsOptions = Convert.ToBoolean(cmdargsornogfxoptions); - SelectedClientInfo.CommandLineArgs = commandargsver2; + if (IsVersion2) + { + SelectedClientInfo.NoGraphicsOptions = Convert.ToBoolean(cmdargsornogfxoptions); + SelectedClientInfo.CommandLineArgs = commandargsver2; + } } - else + catch (Exception) { //Again, fake it. SelectedClientInfo.NoGraphicsOptions = false;