[nostalgia/player] Cleanup
This commit is contained in:
parent
63f4b96d0f
commit
db71c8f3e9
@ -13,7 +13,7 @@ using namespace nostalgia;
|
||||
static unsigned spriteX = 72;
|
||||
static unsigned spriteY = 64;
|
||||
|
||||
static int eventHandler(core::Context *ctx) {
|
||||
static int eventHandler(core::Context *ctx) noexcept {
|
||||
if (core::buttonDown(core::GamePad_Right)) {
|
||||
spriteX += 2;
|
||||
} else if (core::buttonDown(core::GamePad_Left)) {
|
||||
@ -32,7 +32,7 @@ static int eventHandler(core::Context *ctx) {
|
||||
return 16;
|
||||
}
|
||||
|
||||
ox::Error run(ox::FileSystem *fs) {
|
||||
ox::Error run(ox::FileSystem *fs) noexcept {
|
||||
core::Context ctx;
|
||||
ctx.rom = fs;
|
||||
oxReturnError(core::init(&ctx));
|
||||
|
@ -8,4 +8,4 @@
|
||||
|
||||
#include <ox/fs/fs.hpp>
|
||||
|
||||
ox::Error run(ox::FileSystem *fs);
|
||||
ox::Error run(ox::FileSystem *fs) noexcept;
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
#include "app.hpp"
|
||||
|
||||
ox::Error run(int argc, const char **argv) {
|
||||
static ox::Error run(int argc, const char **argv) noexcept {
|
||||
ox::trace::init();
|
||||
if (argc < 2) {
|
||||
oxErrf("Please provide path to project directory or OxFS file.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user