From 388541ce3206185d2450613cf4358cbaae3638fd Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 20 Feb 2025 00:01:29 -0600 Subject: [PATCH] [nostalgia/player] Cleanup --- src/nostalgia/player/app.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/nostalgia/player/app.cpp b/src/nostalgia/player/app.cpp index 0b555dc0..f192989c 100644 --- a/src/nostalgia/player/app.cpp +++ b/src/nostalgia/player/app.cpp @@ -147,9 +147,8 @@ static void sceneKeyEventHandler(turbine::Context &tctx, turbine::Key key, bool [[maybe_unused]] static ox::Error runScene(turbine::Context &tctx) { - constexpr ox::StringView SceneAddr{"/Scenes/Chester.nscn"}; OX_REQUIRE_M(cctx, gfx::init(tctx)); - OX_REQUIRE(scn, keel::readObj(keelCtx(tctx), SceneAddr)); + OX_REQUIRE(scn, keel::readObj(keelCtx(tctx), "/Scenes/Chester.nscn")); turbine::setUpdateHandler(tctx, sceneUpdateHandler); turbine::setKeyEventHandler(tctx, sceneKeyEventHandler); scene::Scene const scene(*scn); @@ -163,7 +162,7 @@ ox::Error run( [[maybe_unused]] ox::StringView projectDataDir, ox::SpanView args) noexcept { if (args.size() < 2) { - return ox::Error(1, "Please provide path to project directory or OxFS file."); + return ox::Error{1, "Please provide path to project directory or OxFS file."}; } auto const path = args[1]; OX_REQUIRE_M(fs, keel::loadRomFs(path));