Fix how OpenRA.exe launches OpenRA.Game.exe
This commit is contained in:
@@ -9,9 +9,9 @@
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
using System.IO;
|
||||||
using System.Media;
|
using System.Media;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
@@ -20,12 +20,14 @@ namespace OpenRA
|
|||||||
{
|
{
|
||||||
class GameMonitor
|
class GameMonitor
|
||||||
{
|
{
|
||||||
static string processName = "OpenRA.Game.exe";
|
|
||||||
static Process gameProcess;
|
static Process gameProcess;
|
||||||
|
|
||||||
[STAThread]
|
[STAThread]
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
|
var executableDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
|
||||||
|
var processName = Path.Combine(executableDirectory, "OpenRA.Game.exe");
|
||||||
|
|
||||||
var psi = new ProcessStartInfo(processName, string.Join(" ", args));
|
var psi = new ProcessStartInfo(processName, string.Join(" ", args));
|
||||||
|
|
||||||
try
|
try
|
||||||
|
|||||||
Reference in New Issue
Block a user