Skip to content

Commit f234783

Browse files
committed
Set working directory when launching game
1 parent f357f97 commit f234783

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@
3434
// You can specify all the values or you can default the Build and Revision Numbers
3535
// by using the '*' as shown below:
3636
// [assembly: AssemblyVersion("1.0.*")]
37-
[assembly: AssemblyVersion("18.05.2.*")]
37+
[assembly: AssemblyVersion("18.05.3.*")]
3838
[assembly: AssemblyFileVersion("1.0.0.0")]

src/MainForm.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,10 @@ private void MainUninstallButton_Click(object sender, EventArgs e) {
548548
private void ProgressLaunchButton_Click(object sender, EventArgs e) {
549549
if (Status != InstallerStatus.Done)
550550
return;
551-
Process.Start(Info.CurrentExecutablePath).Dispose();
551+
Process.Start(new ProcessStartInfo {
552+
FileName = Info.CurrentExecutablePath,
553+
WorkingDirectory = Info.CurrentGamePath
554+
}).Dispose();
552555
Close();
553556
}
554557

0 commit comments

Comments
 (0)