Skip to content

Commit 7ac0ecc

Browse files
authored
Fixed patcher crashing the game
1 parent ada4c99 commit 7ac0ecc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sonic '06 Mod Manager/ModManager.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3114,6 +3114,12 @@ private void PatchARC(string arc, string output)
31143114
convertDialog.Location = new System.Drawing.Point(parentLeft, parentTop);
31153115
convertDialog.Show();
31163116

3117+
if (File.Exists($"{s06Path}\\xenon\\archives\\cache.arc_orig"))
3118+
{
3119+
File.Delete($"{s06Path}\\xenon\\archives\\cache.arc");
3120+
File.Move($"{s06Path}\\xenon\\archives\\cache.arc_orig", $"{s06Path}\\xenon\\archives\\cache.arc");
3121+
}
3122+
31173123
string tempPath = $"{applicationData}\\Temp\\{Path.GetRandomFileName()}";
31183124
var tempData = new DirectoryInfo(tempPath);
31193125
Directory.CreateDirectory(tempPath);

0 commit comments

Comments
 (0)