From 8a1e60e571ffd80a3c0b29dd36995524628f45bb Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 28 May 2024 20:59:44 -0500 Subject: [PATCH] [jasper/player] Make player use file pointed to in Bootfile --- src/jasper/player/app.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jasper/player/app.cpp b/src/jasper/player/app.cpp index 91e96c6..3a3b7ce 100644 --- a/src/jasper/player/app.cpp +++ b/src/jasper/player/app.cpp @@ -16,10 +16,10 @@ namespace ncore = nostalgia::core; namespace jasper { -ox::Error run(turbine::Context &tctx, ox::StringView, ox::SpanView) noexcept { +ox::Error run(turbine::Context &tctx, ox::StringView, ox::SpanView args) noexcept { oxOut("Jasper Player\n"); oxRequire(nctx, ncore::init(tctx)); - auto constexpr worldPath = ox::FileAddress(ox::StringLiteral("/Worlds/Chester.jwld")); + auto const&worldPath = args[0]; oxRequire(worldStatic, readObj(keelCtx(tctx), worldPath)); world::World const world(*worldStatic); oxReturnError(world.setupDisplay(*nctx));