From 6febc7cc7369a1d7ecf39d4c6b65b4024daf8568 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 23 Feb 2025 00:51:30 -0600 Subject: [PATCH] [nostalgia] Fix build --- src/nostalgia/player/app.cpp | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/src/nostalgia/player/app.cpp b/src/nostalgia/player/app.cpp index f192989c..98cba725 100644 --- a/src/nostalgia/player/app.cpp +++ b/src/nostalgia/player/app.cpp @@ -6,7 +6,6 @@ #include #include -#include using namespace nostalgia; @@ -126,36 +125,6 @@ static ox::Error runTileSheetSetTest(turbine::Context &tctx) { } -static int sceneUpdateHandler(turbine::Context&) noexcept { - constexpr auto sleepTime = 16; - if (s_paused) { - return sleepTime; - } - // do stuff - return sleepTime; -} - -static void sceneKeyEventHandler(turbine::Context &tctx, turbine::Key key, bool down) noexcept { - if (down) { - if (key == turbine::Key::Alpha_Q) { - turbine::requestShutdown(tctx); - } else if (key == turbine::Key::Alpha_P) { - s_paused = !s_paused; - } - } -} - -[[maybe_unused]] -static ox::Error runScene(turbine::Context &tctx) { - OX_REQUIRE_M(cctx, gfx::init(tctx)); - OX_REQUIRE(scn, keel::readObj(keelCtx(tctx), "/Scenes/Chester.nscn")); - turbine::setUpdateHandler(tctx, sceneUpdateHandler); - turbine::setKeyEventHandler(tctx, sceneKeyEventHandler); - scene::Scene const scene(*scn); - OX_RETURN_ERROR(scene.setupDisplay(*cctx)); - return turbine::run(tctx); -} - ox::Error run( [[maybe_unused]] ox::StringView project, [[maybe_unused]] ox::StringView appName,