From 4b21ded1e3e60576dc734847a2809e5ed5dc20fe Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sun, 5 Feb 2017 17:32:06 -1000 Subject: [PATCH] SAVW file padding --- DataSpec/DNAMP1/MLVL.cpp | 4 ++++ nod | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/DataSpec/DNAMP1/MLVL.cpp b/DataSpec/DNAMP1/MLVL.cpp index 9e1a423a2..00dc130c4 100644 --- a/DataSpec/DNAMP1/MLVL.cpp +++ b/DataSpec/DNAMP1/MLVL.cpp @@ -412,6 +412,10 @@ bool MLVL::Cook(const hecl::ProjectPath& outPath, const hecl::ProjectPath& inPat savwCooked.makeDirChain(false); athena::io::FileWriter fo(savwCooked.getAbsolutePath()); 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; diff --git a/nod b/nod index dc474ad15..e86971c9e 160000 --- a/nod +++ b/nod @@ -1 +1 @@ -Subproject commit dc474ad1560e93f95d99d7577703387a859d7d26 +Subproject commit e86971c9e082b58bb04ee794a106874b3ceae1c7