[nostalgia/core] Make Context never move
This commit is contained in:
@@ -40,10 +40,10 @@ static void initTimer() noexcept {
|
||||
REG_IE = REG_IE | Int_timer0;
|
||||
}
|
||||
|
||||
ox::Result<Context> init(ox::FileSystem *fs) noexcept {
|
||||
Context ctx;
|
||||
ctx.rom = fs;
|
||||
oxReturnError(initGfx(&ctx));
|
||||
ox::Result<ox::UniquePtr<Context>> init(ox::FileSystem *fs) noexcept {
|
||||
auto ctx = ox::make_unique<Context>();
|
||||
ctx->rom = fs;
|
||||
oxReturnError(initGfx(ctx.get()));
|
||||
initTimer();
|
||||
initIrq();
|
||||
return ctx;
|
||||
|
||||
Reference in New Issue
Block a user