[nostalgia] Start on new TileSheetEditor
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016 - 2021 gary@drinkingtea.net
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
* Copyright 2016 - 2021 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
||||
*/
|
||||
|
||||
#include <ox/fs/fs.hpp>
|
||||
@@ -34,7 +30,6 @@ struct GbaPaletteTarget {
|
||||
|
||||
struct GbaTileMapTarget {
|
||||
static constexpr auto TypeName = NostalgiaGraphic::TypeName;
|
||||
static constexpr auto Fields = NostalgiaGraphic::Fields;
|
||||
static constexpr auto TypeVersion = NostalgiaGraphic::TypeVersion;
|
||||
volatile uint16_t *bgCtl = nullptr;
|
||||
ox::FileAddress defaultPalette;
|
||||
@@ -54,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>(GbaTileMapTarget::TypeName, GbaTileMapTarget::Fields);
|
||||
io->template setTypeInfo<GbaTileMapTarget>();
|
||||
uint8_t bpp;
|
||||
int dummy;
|
||||
oxReturnError(io->field("bpp", &bpp));
|
||||
|
||||
Reference in New Issue
Block a user