mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2025-02-09 13:14:46 +01:00
Allow resizing when replacing file in savedata
This commit is contained in:
parent
fdefd5cf36
commit
c383b94632
@ -47,8 +47,7 @@ namespace hactoolnet
|
||||
{
|
||||
if (inFile.GetSize() != outFile.GetSize())
|
||||
{
|
||||
ctx.Logger.LogMessage($"Replacement file must be the same size as the original file. ({outFile.GetSize()} bytes)");
|
||||
return;
|
||||
outFile.SetSize(inFile.GetSize());
|
||||
}
|
||||
|
||||
inFile.CopyTo(outFile, ctx.Logger);
|
||||
|
Loading…
x
Reference in New Issue
Block a user