[jasper/player] Make player use file pointed to in Bootfile

This commit is contained in:
Gary Talent 2024-05-28 20:59:44 -05:00
parent 7c7d9decd2
commit 8a1e60e571

View File

@ -16,10 +16,10 @@
namespace ncore = nostalgia::core;
namespace jasper {
ox::Error run(turbine::Context &tctx, ox::StringView, ox::SpanView<ox::String>) noexcept {
ox::Error run(turbine::Context &tctx, ox::StringView, ox::SpanView<ox::String> 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<world::WorldStatic>(keelCtx(tctx), worldPath));
world::World const world(*worldStatic);
oxReturnError(world.setupDisplay(*nctx));