Fixed bug when spaces are in file paths nothing would launch. Also added a tooltip explaining what a UUID is.
This commit is contained in:
13
Form1.cs
13
Form1.cs
@@ -168,16 +168,23 @@ namespace HelloWorld
|
||||
string Hytaleappdir = "\\release\\package\\game\\latest";
|
||||
string HytaleJava = "\\release\\package\\jre\\latest\\bin\\java.exe";
|
||||
|
||||
string arguments = " --app-dir "+workingDirectory+Hytaleappdir+" --user-dir "+baseDirectory+"UserData --java-exec "+ workingDirectory + HytaleJava+" --auth-mode offline --uuid 13371337-1337-1337-1337-1337"+textBoxUUID.Text+" --name \"" + textBoxUsername.Text + "\""; // Command-line arguments for the VB app
|
||||
string GamePath = "\"" + workingDirectory + "\\" + relativeExePath + "\""; //hytale.exe
|
||||
string AppPath = "\"" + workingDirectory + Hytaleappdir + "\""; // game\latest
|
||||
string UserdataPath = "\"" + baseDirectory + "UserData"+"\""; // game\latest
|
||||
string JavaPath = "\"" + workingDirectory + HytaleJava + "\""; // java
|
||||
|
||||
string arguments = " --app-dir " +AppPath+ " --user-dir " + UserdataPath + " --java-exec " + JavaPath + " --auth-mode offline --uuid 13371337-1337-1337-1337-1337" + textBoxUUID.Text + " --name \"" + textBoxUsername.Text + "\""; // Command-line arguments for the VB app
|
||||
|
||||
ProcessStartInfo startInfo = new ProcessStartInfo
|
||||
{
|
||||
FileName = relativeExePath,
|
||||
FileName = GamePath,
|
||||
Arguments = arguments,
|
||||
UseShellExecute = true,
|
||||
WorkingDirectory = workingDirectory
|
||||
};
|
||||
|
||||
Console.WriteLine("Launching:");
|
||||
Console.WriteLine(GamePath + arguments);
|
||||
|
||||
try
|
||||
{
|
||||
Process.Start(startInfo);
|
||||
|
||||
Reference in New Issue
Block a user