[nostalgia/core/gba] Update for Ox changes
This commit is contained in:
parent
e22743961a
commit
fbfc0afc89
@ -44,7 +44,7 @@ struct GbaTileMapTarget {
|
||||
};
|
||||
|
||||
constexpr ox::Error model(auto *io, ox::CommonPtrWith<GbaPaletteTarget> auto *t) noexcept {
|
||||
io->template setTypeInfo<Palette>();
|
||||
oxReturnError(io->template setTypeInfo<Palette>());
|
||||
const auto colorHandler = [t](std::size_t i, const Color16 *c) {
|
||||
t->palette[i] = *c;
|
||||
return OxError(0);
|
||||
@ -53,7 +53,7 @@ constexpr ox::Error model(auto *io, ox::CommonPtrWith<GbaPaletteTarget> auto *t)
|
||||
}
|
||||
|
||||
constexpr ox::Error model(auto *io, ox::CommonPtrWith<GbaTileMapTarget> auto *t) noexcept {
|
||||
io->template setTypeInfo<CompactTileSheet>();
|
||||
oxReturnError(io->template setTypeInfo<CompactTileSheet>());
|
||||
oxReturnError(io->field("bpp", &t->cbbData->bpp));
|
||||
oxReturnError(io->field("defaultPalette", &t->defaultPalette));
|
||||
uint16_t intermediate = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user