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:
IveBeenAlone
2026-01-18 10:26:43 -05:00
parent 005854f929
commit 80c2985921
4 changed files with 29 additions and 15 deletions

View File

@@ -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);