Skip to content

Commit 43edca3

Browse files
author
ComputerElite
committed
Start game in game directory, fixes most game starting issues
1 parent 6e2fb95 commit 43edca3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static void Main(string[] args)
3939
{
4040
Logger.SetLogFile(AppDomain.CurrentDomain.BaseDirectory + "Log.log");
4141
SetupExceptionHandlers();
42-
DowngradeManager.updater = new Updater("1.9.5", "https://github.com/ComputerElite/Oculus-downgrader", "Oculus downgrader", Assembly.GetExecutingAssembly().Location);
42+
DowngradeManager.updater = new Updater("1.9.6", "https://github.com/ComputerElite/Oculus-downgrader", "Oculus downgrader", Assembly.GetExecutingAssembly().Location);
4343
Logger.LogRaw("\n\n");
4444
Logger.Log("Starting Oculus downgrader version " + DowngradeManager.updater.version);
4545
if (args.Length == 1 && args[0] == "--update")
@@ -743,7 +743,7 @@ public void LaunchApp(AppReturnVersion selected, bool openDir = false)
743743
{
744744
Logger.Log("Version is already copied. Launching: " + appDir + manifest.launchFile);
745745
Console.WriteLine("Version is already in the library folder. Launching");
746-
Process.Start(appDir + manifest.launchFile, (manifest.launchParameters ?? "") + " " + selected.version.extraLaunchArgs);
746+
Process.Start(new ProcessStartInfo { Arguments = (manifest.launchParameters ?? "") + " " + selected.version.extraLaunchArgs, FileName = appDir + manifest.launchFile, WorkingDirectory = appDir });
747747
return;
748748
} else if(File.Exists(appDir + "RiftDowngrader_appId.txt"))
749749
{
@@ -782,7 +782,7 @@ public void LaunchApp(AppReturnVersion selected, bool openDir = false)
782782
File.WriteAllText(appDir + "RiftDowngrader_appId.txt", selected.version.id);
783783
Good("Finished.\nLaunching");
784784
Logger.Log("Copying finished. Launching.");
785-
Process.Start(appDir + manifest.launchFile, (manifest.launchParameters ?? "") + " " + selected.version.extraLaunchArgs);
785+
Process.Start(new ProcessStartInfo { Arguments = (manifest.launchParameters ?? "") + " " + selected.version.extraLaunchArgs, FileName = appDir + manifest.launchFile, WorkingDirectory = appDir });
786786
}
787787

788788
public bool CheckOculusFolder(bool set = false)

0 commit comments

Comments
 (0)