[nostalgia/core] Cleanup
This commit is contained in:
parent
2887fa7819
commit
1bff41d9f1
@ -26,6 +26,7 @@ class Context {
|
|||||||
Context(const Context &other) noexcept = delete;
|
Context(const Context &other) noexcept = delete;
|
||||||
Context(const Context &&other) noexcept = delete;
|
Context(const Context &&other) noexcept = delete;
|
||||||
|
|
||||||
|
[[nodiscard]]
|
||||||
const auto &rom() const noexcept {
|
const auto &rom() const noexcept {
|
||||||
return *turbineCtx->rom;
|
return *turbineCtx->rom;
|
||||||
}
|
}
|
||||||
|
@ -104,8 +104,8 @@ ox::Error initConsole(Context *ctx) noexcept {
|
|||||||
if (!ctx) {
|
if (!ctx) {
|
||||||
ctx = new(ox_alloca(sizeof(Context))) Context;
|
ctx = new(ox_alloca(sizeof(Context))) Context;
|
||||||
oxRequire(rom, keel::loadRom());
|
oxRequire(rom, keel::loadRom());
|
||||||
ox::FileStore32 fs(rom, 32 * ox::units::MB);
|
auto romFs = new(ox_alloca(sizeof(ox::FileSystem32)))
|
||||||
auto romFs = new(ox_alloca(sizeof(ox::FileSystem32))) ox::FileSystem32(fs);
|
ox::FileSystem32(ox::FileStore32(rom, 32 * ox::units::MB));
|
||||||
oxRequireM(tctx, turbine::init(ox::UPtr<ox::FileSystem>(romFs), ""));
|
oxRequireM(tctx, turbine::init(ox::UPtr<ox::FileSystem>(romFs), ""));
|
||||||
ctx->turbineCtx = tctx.release();
|
ctx->turbineCtx = tctx.release();
|
||||||
oxReturnError(loadBgTileSheet(ctx, 0, TilesheetAddr, PaletteAddr));
|
oxReturnError(loadBgTileSheet(ctx, 0, TilesheetAddr, PaletteAddr));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user