[nostalgia/player] Cleanup

This commit is contained in:
Gary Talent 2021-05-12 21:14:58 -05:00
parent 63f4b96d0f
commit db71c8f3e9
3 changed files with 4 additions and 4 deletions

View File

@ -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));

View File

@ -8,4 +8,4 @@
#include <ox/fs/fs.hpp>
ox::Error run(ox::FileSystem *fs);
ox::Error run(ox::FileSystem *fs) noexcept;

View File

@ -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.");