mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
fix bug in patcher
This commit is contained in:
parent
873bb47e35
commit
1b36db4c29
@ -214,6 +214,9 @@ namespace Wabbajack
|
|||||||
var to_file = Path.Combine(Outputfolder, to_patch.To);
|
var to_file = Path.Combine(Outputfolder, to_patch.To);
|
||||||
MemoryStream old_data = new MemoryStream(File.ReadAllBytes(to_file));
|
MemoryStream old_data = new MemoryStream(File.ReadAllBytes(to_file));
|
||||||
|
|
||||||
|
// Remove the file we're about to patch
|
||||||
|
File.Delete(to_file);
|
||||||
|
|
||||||
// Patch it
|
// Patch it
|
||||||
using (var out_stream = File.OpenWrite(to_file))
|
using (var out_stream = File.OpenWrite(to_file))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user