better support of v1 and v2 (dev) formats

This commit is contained in:
Bitl 2020-07-10 17:45:20 -07:00
parent ec79c7a5ea
commit 4768d2c25b
1 changed files with 12 additions and 6 deletions

View File

@ -227,10 +227,13 @@ namespace NovetusLauncher
} }
} }
catch (Exception) catch (Exception)
{
if (!label9.Text.Equals("v1"))
{ {
label9.Text = "v2 (DEV)"; label9.Text = "v2 (DEV)";
IsVersion2 = false; IsVersion2 = false;
} }
}
if (!GlobalVars.AdminMode) if (!GlobalVars.AdminMode)
{ {
@ -262,12 +265,15 @@ namespace NovetusLauncher
SelectedClientInfo.Fix2007 = Convert.ToBoolean(fix2007); SelectedClientInfo.Fix2007 = Convert.ToBoolean(fix2007);
SelectedClientInfo.AlreadyHasSecurity = Convert.ToBoolean(alreadyhassecurity); SelectedClientInfo.AlreadyHasSecurity = Convert.ToBoolean(alreadyhassecurity);
try
{
if (IsVersion2) if (IsVersion2)
{ {
SelectedClientInfo.NoGraphicsOptions = Convert.ToBoolean(cmdargsornogfxoptions); SelectedClientInfo.NoGraphicsOptions = Convert.ToBoolean(cmdargsornogfxoptions);
SelectedClientInfo.CommandLineArgs = commandargsver2; SelectedClientInfo.CommandLineArgs = commandargsver2;
} }
else }
catch (Exception)
{ {
//Again, fake it. //Again, fake it.
SelectedClientInfo.NoGraphicsOptions = false; SelectedClientInfo.NoGraphicsOptions = false;