From aa171fa069728fbd39a9dd82be3bf61798d3d9cd Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 22 Oct 2019 19:37:02 -0500 Subject: [PATCH] [nostalgia/core] Remove Write distictions from Graphic and Palette models --- src/nostalgia/core/gfx.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nostalgia/core/gfx.hpp b/src/nostalgia/core/gfx.hpp index 5d1c7c09..c9d99b14 100644 --- a/src/nostalgia/core/gfx.hpp +++ b/src/nostalgia/core/gfx.hpp @@ -31,7 +31,7 @@ struct NostalgiaGraphic { }; template -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 -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);