[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
+1 -1
View File
@@ -23,7 +23,7 @@ ox::Result<AssetRef<T>> readObj(Context *ctx, const ox::FileAddress &file, bool
if (err != ox::Error_ClawTypeVersionMismatch && err != ox::Error_ClawTypeMismatch) {
return err;
}
oxReturnError(convert(buff, T::TypeName, T::TypeVersion, &obj));
oxReturnError(convert<T>(buff, &obj));
}
return obj;
};