[jasper/player] Make player use file pointed to in Bootfile
This commit is contained in:
parent
7c7d9decd2
commit
8a1e60e571
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user