oop
This commit is contained in:
parent
78d3ffa5e8
commit
c3eb94a295
Binary file not shown.
|
|
@ -109,14 +109,14 @@ namespace NovetusLauncher
|
|||
|
||||
void TextBox2TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
textBox2.Text = textBox2.Text.ToUpper(CultureInfo.InstalledUICulture);
|
||||
SelectedClientMD5 = textBox2.Text.ToUpper(CultureInfo.InstalledUICulture);
|
||||
textBox2.Text = textBox2.Text.ToUpper(CultureInfo.InvariantCulture);
|
||||
SelectedClientMD5 = textBox2.Text.ToUpper(CultureInfo.InvariantCulture);
|
||||
}
|
||||
|
||||
void TextBox3TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
textBox3.Text = textBox3.Text.ToUpper(CultureInfo.InstalledUICulture);
|
||||
SelectedClientScriptMD5 = textBox3.Text.ToUpper(CultureInfo.InstalledUICulture);
|
||||
textBox3.Text = textBox3.Text.ToUpper(CultureInfo.InvariantCulture);
|
||||
SelectedClientScriptMD5 = textBox3.Text.ToUpper(CultureInfo.InvariantCulture);
|
||||
}
|
||||
|
||||
void Button4Click(object sender, EventArgs e)
|
||||
|
|
@ -145,8 +145,8 @@ namespace NovetusLauncher
|
|||
|
||||
if (!string.IsNullOrWhiteSpace(ClientMD5))
|
||||
{
|
||||
textBox2.Text = ClientMD5.ToUpper(CultureInfo.InstalledUICulture);
|
||||
SelectedClientMD5 = textBox2.Text.ToUpper(CultureInfo.InstalledUICulture);
|
||||
textBox2.Text = ClientMD5.ToUpper(CultureInfo.InvariantCulture);
|
||||
SelectedClientMD5 = textBox2.Text.ToUpper(CultureInfo.InvariantCulture);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -157,8 +157,8 @@ namespace NovetusLauncher
|
|||
|
||||
if (!string.IsNullOrWhiteSpace(ClientScriptMD5))
|
||||
{
|
||||
textBox3.Text = ClientScriptMD5.ToUpper(CultureInfo.InstalledUICulture);
|
||||
SelectedClientScriptMD5 = textBox3.Text.ToUpper(CultureInfo.InstalledUICulture);
|
||||
textBox3.Text = ClientScriptMD5.ToUpper(CultureInfo.InvariantCulture);
|
||||
SelectedClientScriptMD5 = textBox3.Text.ToUpper(CultureInfo.InvariantCulture);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -224,8 +224,8 @@ namespace NovetusLauncher
|
|||
checkBox4.Checked = Locked;
|
||||
checkBox6.Checked = FixScriptMapMode;
|
||||
checkBox7.Checked = AlreadyHasSecurity;
|
||||
textBox3.Text = SelectedClientScriptMD5.ToUpper(CultureInfo.InstalledUICulture);
|
||||
textBox2.Text = SelectedClientMD5.ToUpper(CultureInfo.InstalledUICulture);
|
||||
textBox3.Text = SelectedClientScriptMD5.ToUpper(CultureInfo.InvariantCulture);
|
||||
textBox2.Text = SelectedClientMD5.ToUpper(CultureInfo.InvariantCulture);
|
||||
textBox1.Text = SelectedClientDesc;
|
||||
textBox4.Text = CustomArgs;
|
||||
textBox5.Text = Warning;
|
||||
|
|
@ -315,8 +315,8 @@ namespace NovetusLauncher
|
|||
checkBox3.Checked = LegacyMode;
|
||||
checkBox6.Checked = FixScriptMapMode;
|
||||
checkBox7.Checked = AlreadyHasSecurity;
|
||||
textBox3.Text = SelectedClientScriptMD5.ToUpper(CultureInfo.InstalledUICulture);
|
||||
textBox2.Text = SelectedClientMD5.ToUpper(CultureInfo.InstalledUICulture);
|
||||
textBox3.Text = SelectedClientScriptMD5.ToUpper(CultureInfo.InvariantCulture);
|
||||
textBox2.Text = SelectedClientMD5.ToUpper(CultureInfo.InvariantCulture);
|
||||
textBox1.Text = SelectedClientDesc;
|
||||
textBox4.Text = CustomArgs;
|
||||
textBox5.Text = Warning;
|
||||
|
|
|
|||
|
|
@ -1078,109 +1078,109 @@ namespace NovetusLauncher
|
|||
|
||||
void ConsoleProcessCommands(string command)
|
||||
{
|
||||
if (string.Compare(command,"server",true, CultureInfo.InstalledUICulture) == 0)
|
||||
if (string.Compare(command,"server",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
StartServer(false);
|
||||
}
|
||||
else if (string.Compare(command,"server no3d",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"server no3d",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
StartServer(true);
|
||||
}
|
||||
else if (string.Compare(command,"no3d",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"no3d",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
StartServer(true);
|
||||
}
|
||||
else if (string.Compare(command,"client",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"client",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
StartClient();
|
||||
}
|
||||
else if (string.Compare(command,"client solo",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"client solo",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
StartSolo();
|
||||
}
|
||||
else if (string.Compare(command,"solo",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"solo",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
StartSolo();
|
||||
}
|
||||
else if (string.Compare(command,"studio",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"studio",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
StartStudio();
|
||||
}
|
||||
else if (string.Compare(command,"config save",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"config save",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
WriteConfigValues();
|
||||
}
|
||||
else if (string.Compare(command,"config load",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"config load",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
ReadConfigValues();
|
||||
}
|
||||
else if (string.Compare(command,"config reset",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"config reset",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
ResetConfigValues();
|
||||
}
|
||||
else if (string.Compare(command,"help",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"help",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
ConsoleHelp(0);
|
||||
}
|
||||
else if (string.Compare(command,"help config",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"help config",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
ConsoleHelp(1);
|
||||
}
|
||||
else if (string.Compare(command,"config",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"config",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
ConsoleHelp(1);
|
||||
}
|
||||
else if (string.Compare(command,"help sdk",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"help sdk",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
ConsoleHelp(2);
|
||||
}
|
||||
else if (string.Compare(command,"sdk",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"sdk",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
ConsoleHelp(2);
|
||||
}
|
||||
else if (string.Compare(command,"sdk clientinfo",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"sdk clientinfo",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
LoadClientSDK();
|
||||
}
|
||||
else if (string.Compare(command,"sdk itemmaker",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"sdk itemmaker",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
LoadItemSDK();
|
||||
}
|
||||
else if (string.Compare(command,"clientinfo",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"clientinfo",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
LoadClientSDK();
|
||||
}
|
||||
else if (string.Compare(command,"itemmaker",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"itemmaker",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
LoadItemSDK();
|
||||
}
|
||||
else if (string.Compare(command,"sdk clientsdk",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"sdk clientsdk",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
LoadClientSDK();
|
||||
}
|
||||
else if (string.Compare(command,"sdk itemsdk",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"sdk itemsdk",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
LoadItemSDK();
|
||||
}
|
||||
else if (string.Compare(command,"clientsdk",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"clientsdk",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
LoadClientSDK();
|
||||
}
|
||||
else if (string.Compare(command,"itemsdk",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"itemsdk",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
LoadItemSDK();
|
||||
}
|
||||
else if (string.Compare(command,"charcustom",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"charcustom",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
CharacterCustomization cc = new CharacterCustomization();
|
||||
cc.Show();
|
||||
ConsolePrint("Avatar Customization Loaded.", 4);
|
||||
}
|
||||
else if (string.Compare(command,"webserver",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"webserver",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
ConsoleHelp(3);
|
||||
}
|
||||
else if (string.Compare(command,"webserver start",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"webserver start",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
if (GlobalVars.IsWebServerOn == false)
|
||||
{
|
||||
|
|
@ -1191,7 +1191,7 @@ namespace NovetusLauncher
|
|||
ConsolePrint("WebServer: There is already a web server open.", 2);
|
||||
}
|
||||
}
|
||||
else if (string.Compare(command,"webserver stop",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"webserver stop",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
if (GlobalVars.IsWebServerOn == true)
|
||||
{
|
||||
|
|
@ -1202,7 +1202,7 @@ namespace NovetusLauncher
|
|||
ConsolePrint("WebServer: There is no web server open.", 2);
|
||||
}
|
||||
}
|
||||
else if (string.Compare(command,"webserver restart",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"webserver restart",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
@ -1215,7 +1215,7 @@ namespace NovetusLauncher
|
|||
ConsolePrint("WebServer: Cannot restart web server. (" + ex.Message + ")", 2);
|
||||
}
|
||||
}
|
||||
else if (string.Compare(command,"start",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"start",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
if (GlobalVars.IsWebServerOn == false)
|
||||
{
|
||||
|
|
@ -1226,7 +1226,7 @@ namespace NovetusLauncher
|
|||
ConsolePrint("WebServer: There is already a web server open.", 2);
|
||||
}
|
||||
}
|
||||
else if (string.Compare(command,"stop",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"stop",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
if (GlobalVars.IsWebServerOn == true)
|
||||
{
|
||||
|
|
@ -1237,7 +1237,7 @@ namespace NovetusLauncher
|
|||
ConsolePrint("WebServer: There is no web server open.", 2);
|
||||
}
|
||||
}
|
||||
else if (string.Compare(command,"restart",true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,"restart",true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
@ -1250,7 +1250,7 @@ namespace NovetusLauncher
|
|||
ConsolePrint("WebServer: Cannot restart web server. (" + ex.Message + ")", 2);
|
||||
}
|
||||
}
|
||||
else if (string.Compare(command,GlobalVars.important,true, CultureInfo.InstalledUICulture) == 0)
|
||||
else if (string.Compare(command,GlobalVars.important,true, CultureInfo.InvariantCulture) == 0)
|
||||
{
|
||||
GlobalVars.AdminMode = true;
|
||||
ConsolePrint("ADMIN MODE ENABLED.", 4);
|
||||
|
|
|
|||
Loading…
Reference in New Issue