[nostalgia/core] Remove unnecessary serialization and deserialization from type conversion

This commit is contained in:
2022-05-19 22:23:49 -05:00
parent 4ee08441b0
commit 7a942ac83c
3 changed files with 66 additions and 30 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).moveTo(&buff));
oxReturnError(core::convertBuffToBuff<core::CompactTileSheet>(buff, ox::ClawFormat::Metal).moveTo(&buff));
}
// do transformations
oxReturnError(pathToInode(buff).moveTo(&buff));