Core/ResourceSaver: Truncate output file
Former-commit-id: a17e091703b0006376eb6d8b0b8b3cd3177977ed [formerly bba3cfc762df4c303f1eadd26df604f38f8ac4ea] Former-commit-id: 3b91fd6f08559afee2587c907705610135d533e3
This commit is contained in:
parent
1c4e3f92fb
commit
9745187823
|
|
@ -84,7 +84,7 @@ namespace Nz
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!file.Open(OpenMode_WriteOnly))
|
if (!file.Open(OpenMode_WriteOnly | OpenMode_Truncate))
|
||||||
{
|
{
|
||||||
NazaraError("Failed to save to file: unable to open \"" + filePath + "\" in write mode");
|
NazaraError("Failed to save to file: unable to open \"" + filePath + "\" in write mode");
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue