Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit 5295cbe

Browse files
committed
Reset game.orig.exe if still exists
1 parent dbc75eb commit 5295cbe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

DatapathFixPlugin/Actions/LaunchExecutionAction.cs

+6
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ private void ResetGameDirectory(string game)
6464
{
6565
File.Delete(game.Replace(".exe", ".old"));
6666
File.Delete(Path.Combine(App.FileSystem.BasePath, "tmp"));
67+
68+
if (File.Exists(game.Replace(".exe", ".orig.exe")))
69+
{
70+
File.Delete(game);
71+
File.Move(game.Replace(".exe", ".orig.exe"), game);
72+
}
6773
}
6874
catch (Exception ex)
6975
{

0 commit comments

Comments
 (0)