From 00852fad5a56b4706af126c992a9358f7210331f Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 17 Feb 2022 21:31:25 -0600 Subject: [PATCH] [nostalgia/tools/pack] Add conversion from TileSheet to CompactTileSheet --- src/nostalgia/tools/pack/pack.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/nostalgia/tools/pack/pack.cpp b/src/nostalgia/tools/pack/pack.cpp index 387409707..bcfd45362 100644 --- a/src/nostalgia/tools/pack/pack.cpp +++ b/src/nostalgia/tools/pack/pack.cpp @@ -5,6 +5,9 @@ #include #include +#include +#include + #include "pack.hpp" namespace nostalgia { @@ -32,6 +35,9 @@ static ox::Error doTransformations(ox::FileSystem *dest, const ox::String &fileP if (filePath.endsWith(".ng") || filePath.endsWith(".npal")) { // load file oxRequireM(buff, dest->read(filePath.c_str())); + if (filePath.endsWith(".ng")) { + oxReturnError(core::convert(&buff)); + } // do transformations oxReturnError(pathToInode(buff).moveTo(&buff)); oxReturnError(toMetalClaw(buff).moveTo(&buff));