Browse Source

Fix game assembly backup process

pull/100/head
Meivyn 1 year ago
parent
commit
7dc39c0d23
No known key found for this signature in database GPG Key ID: 8BDD3E48158B2F71
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      IPA.Injector/Injector.cs

+ 1
- 0
IPA.Injector/Injector.cs View File

@ -283,6 +283,7 @@ namespace IPA.Injector
deleter.Methods.Clear(); // delete all methods deleter.Methods.Clear(); // delete all methods
string tempFilePath = Path.GetTempFileName(); string tempFilePath = Path.GetTempFileName();
bkp?.Add(ascPath);
ascAsmDef.Write(tempFilePath); ascAsmDef.Write(tempFilePath);
File.Delete(ascPath); File.Delete(ascPath);
File.Move(tempFilePath, ascPath); File.Move(tempFilePath, ascPath);


Loading…
Cancel
Save