Allow resizing when replacing file in savedata

This commit is contained in:
Alex Barney 2019-04-22 21:37:01 -05:00
parent fdefd5cf36
commit c383b94632

View file

@ -47,8 +47,7 @@ namespace hactoolnet
{ {
if (inFile.GetSize() != outFile.GetSize()) if (inFile.GetSize() != outFile.GetSize())
{ {
ctx.Logger.LogMessage($"Replacement file must be the same size as the original file. ({outFile.GetSize()} bytes)"); outFile.SetSize(inFile.GetSize());
return;
} }
inFile.CopyTo(outFile, ctx.Logger); inFile.CopyTo(outFile, ctx.Logger);