[nostalgia/core/gba] Change charset to lookup by path

This commit is contained in:
Gary Talent 2019-07-24 23:33:01 -05:00
parent d53430abbc
commit da2b588deb

View File

@ -171,10 +171,11 @@ ox::Error initGfx(Context*) {
// Do NOT use Context in the GBA version of this function.
ox::Error initConsole(Context*) {
const auto CharsetInode = 101;
const auto PaletteStart = sizeof(GbaImageDataHeader);
ox::Error err = 0;
ox::FileStore32 fs(loadRom(), 32 * 1024 * 1024);
ox::FileStore32 fs(loadRom(), 32 * ox::units::MB);
ox::FileSystem32 fileSystem(fs);
const auto CharsetInode = fileSystem.stat("/TileSheets/Charset.ng").value.inode;
GbaImageDataHeader imgData;