[nostalgia/core] Add support for specifying palette banks
Some checks failed
Build / build (push) Failing after 40s

This commit is contained in:
2023-12-26 11:54:31 -06:00
parent e941781f21
commit ffdc0ddb97
8 changed files with 86 additions and 35 deletions

View File

@@ -18,7 +18,7 @@ ox::Error Scene::setupDisplay(core::Context &ctx) const noexcept {
}
auto const&palette = m_sceneStatic.palettes[0];
oxReturnError(core::loadBgTileSheet(ctx, 0, m_sceneStatic.tilesheet));
oxReturnError(core::loadBgPalette(ctx, palette));
oxReturnError(core::loadBgPalette(ctx, 0, palette));
// disable all backgrounds
core::setBgStatus(ctx, 0);
for (auto layerNo = 0u; auto const&layer : m_sceneStatic.tileMapIdx) {