This commit is contained in:
Bitl 2017-09-01 06:17:25 -07:00
parent 62c3e42401
commit 47120db47c
1 changed files with 9 additions and 6 deletions

View File

@ -107,6 +107,8 @@ namespace RBXLegacyLauncher
void Button2Click(object sender, EventArgs e) void Button2Click(object sender, EventArgs e)
{
if (GlobalVars.upnp == true)
{ {
Process pmap = new Process(); Process pmap = new Process();
pmap.StartInfo.FileName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\jreportable\\bin\\java.exe"; pmap.StartInfo.FileName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\jreportable\\bin\\java.exe";
@ -114,6 +116,7 @@ namespace RBXLegacyLauncher
pmap.StartInfo.UseShellExecute = false; pmap.StartInfo.UseShellExecute = false;
pmap.StartInfo.CreateNoWindow = true; pmap.StartInfo.CreateNoWindow = true;
pmap.Start(); pmap.Start();
}
WriteConfigValues(); WriteConfigValues();
StartServer(); StartServer();