[nostalgia/core/gba] Use actual types for type info for GBA target models
This commit is contained in:
parent
c4a1655a8f
commit
53f03eac22
@ -39,7 +39,7 @@ struct GbaTileMapTarget {
|
||||
|
||||
template<typename T>
|
||||
constexpr ox::Error modelRead(T *io, GbaPaletteTarget *t) noexcept {
|
||||
io->template setTypeInfo<GbaPaletteTarget>();
|
||||
io->template setTypeInfo<Palette>();
|
||||
const auto colorHandler = [t](std::size_t i, Color16 *c) {
|
||||
t->palette[i] = *c;
|
||||
return OxError(0);
|
||||
@ -49,7 +49,7 @@ constexpr ox::Error modelRead(T *io, GbaPaletteTarget *t) noexcept {
|
||||
|
||||
template<typename T>
|
||||
constexpr ox::Error modelRead(T *io, GbaTileMapTarget *t) noexcept {
|
||||
io->template setTypeInfo<GbaTileMapTarget>();
|
||||
io->template setTypeInfo<CompactTileSheet>();
|
||||
uint8_t bpp;
|
||||
oxReturnError(io->field("bpp", &bpp));
|
||||
constexpr auto Bpp8 = 1 << 7;
|
||||
|
Loading…
Reference in New Issue
Block a user