[nostalgia/core] Add ability to chain converters

This commit is contained in:
2022-02-18 00:43:13 -06:00
parent 1ceb76ee6d
commit 713f5c4bce
5 changed files with 66 additions and 26 deletions

View File

@@ -36,7 +36,7 @@ static ox::Error doTransformations(ox::FileSystem *dest, const ox::String &fileP
// load file
oxRequireM(buff, dest->read(filePath.c_str()));
if (filePath.endsWith(".ng")) {
oxReturnError(core::convert<core::CompactTileSheet>(&buff));
oxReturnError(core::convert<core::CompactTileSheet>(buff).moveTo(&buff));
}
// do transformations
oxReturnError(pathToInode(buff).moveTo(&buff));