Skip to content

Commit

Permalink
Slight changes to exe patch code
Browse files Browse the repository at this point in the history
  • Loading branch information
TekkaGB committed May 30, 2023
1 parent 23badd5 commit 3c0a8a6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions PizzaOven/ModLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ public static bool Restart()
// Delete .win from older version of Pizza Oven
if (File.Exists($"{Global.config.ModsFolder}{Global.s}PizzaOven.win"))
File.Delete($"{Global.config.ModsFolder}{Global.s}PizzaOven.win");
// decomp support
if (File.Exists($"{Global.config.ModsFolder}{Global.s}PizzaOven.exe"))
File.Delete($"{Global.config.ModsFolder}{Global.s}PizzaOven.exe");
return true;
}
// Copy over mod files in order of ModList
Expand All @@ -30,7 +27,7 @@ public static bool Build(string mod)
var successes = 0;
var FilesToPatch = Directory.GetFiles($"{Global.config.ModsFolder}{Global.s}sound{Global.s}Desktop").ToList();
FilesToPatch.Insert(0, $"{Global.config.ModsFolder}{Global.s}data.win");
FilesToPatch.Insert(0, $"{Global.config.ModsFolder}{Global.s}PizzaTower.exe");
FilesToPatch.Insert(1, $"{Global.config.ModsFolder}{Global.s}PizzaTower.exe");
var xdelta = $"{Global.assemblyLocation}{Global.s}Dependencies{Global.s}xdelta.exe";
if (!File.Exists(xdelta))
{
Expand Down

0 comments on commit 3c0a8a6

Please sign in to comment.