From 317cfabc72469d387068e90f921e46629cfca6a8 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 11 Mar 2020 19:02:28 -0500 Subject: [PATCH] [nostalgia/core/gba] Update NostalgiaGraphic format --- src/nostalgia/core/gba/gfx.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nostalgia/core/gba/gfx.cpp b/src/nostalgia/core/gba/gfx.cpp index cf27b560..5755623e 100644 --- a/src/nostalgia/core/gba/gfx.cpp +++ b/src/nostalgia/core/gba/gfx.cpp @@ -51,7 +51,10 @@ ox::Error modelRead(T *io, GbaTileMapTarget *t) { io->setTypeInfo("nostalgia::core::NostalgiaGraphic", NostalgiaGraphic::Fields); uint8_t bpp; + int dummy; oxReturnError(io->field("bpp", &bpp)); + oxReturnError(io->field("rows", &dummy)); + oxReturnError(io->field("columns", &dummy)); constexpr auto Bpp8 = 1 << 7; *t->bgCtl = (28 << 8) | 1; if (bpp == 4) {