[nostalgia] Make core::init take FileSystem and return Context, add core::setWindowTitle
This commit is contained in:
@@ -33,9 +33,7 @@ static int eventHandler(core::Context *ctx) noexcept {
|
||||
}
|
||||
|
||||
ox::Error run(ox::FileSystem *fs) noexcept {
|
||||
core::Context ctx;
|
||||
ctx.rom = fs;
|
||||
oxReturnError(core::init(&ctx));
|
||||
oxRequireM(ctx, core::init(fs));
|
||||
constexpr auto TileSheetAddr = "/TileSheets/Charset.ng";
|
||||
constexpr auto PaletteAddr = "/Palettes/Charset.npal";
|
||||
oxReturnError(core::loadSpriteTileSheet(&ctx, 0, TileSheetAddr, PaletteAddr));
|
||||
|
Reference in New Issue
Block a user