[nostalgia/core] Remove Write distictions from Graphic and Palette models

This commit is contained in:
Gary Talent 2019-10-22 19:37:02 -05:00
parent adb23d9d6c
commit aa171fa069

View File

@ -31,7 +31,7 @@ struct NostalgiaGraphic {
};
template<typename T>
ox::Error modelWrite(T *io, NostalgiaGraphic *ng) {
ox::Error model(T *io, NostalgiaGraphic *ng) {
io->setTypeInfo("nostalgia::core::NostalgiaGraphic", NostalgiaGraphic::Fields);
oxReturnError(io->field("bpp", &ng->bpp));
oxReturnError(io->field("defaultPalette", &ng->defaultPalette));
@ -41,7 +41,7 @@ ox::Error modelWrite(T *io, NostalgiaGraphic *ng) {
}
template<typename T>
ox::Error modelWrite(T *io, NostalgiaPalette *pal) {
ox::Error model(T *io, NostalgiaPalette *pal) {
io->setTypeInfo("nostalgia::core::NostalgiaPalette", NostalgiaPalette::Fields);
oxReturnError(io->field("colors", &pal->colors));
return OxError(0);