SAVW file padding

This commit is contained in:
Jack Andersen 2017-02-05 17:32:06 -10:00
parent 21cb59ee74
commit 4b21ded1e3
2 changed files with 5 additions and 1 deletions

View File

@ -412,6 +412,10 @@ bool MLVL::Cook(const hecl::ProjectPath& outPath, const hecl::ProjectPath& inPat
savwCooked.makeDirChain(false); savwCooked.makeDirChain(false);
athena::io::FileWriter fo(savwCooked.getAbsolutePath()); athena::io::FileWriter fo(savwCooked.getAbsolutePath());
savw.write(fo); savw.write(fo);
int64_t rem = fo.position() % 32;
if (rem)
for (int64_t i=0 ; i<32-rem ; ++i)
fo.writeBytes((atInt8*)"\xff", 1);
} }
return true; return true;

2
nod

@ -1 +1 @@
Subproject commit dc474ad1560e93f95d99d7577703387a859d7d26 Subproject commit e86971c9e082b58bb04ee794a106874b3ceae1c7