diff --git a/src/nostalgia/player/app.cpp b/src/nostalgia/player/app.cpp index 383adafa..6684bf16 100644 --- a/src/nostalgia/player/app.cpp +++ b/src/nostalgia/player/app.cpp @@ -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)); diff --git a/src/nostalgia/player/app.hpp b/src/nostalgia/player/app.hpp index fc65b56c..a77698a1 100644 --- a/src/nostalgia/player/app.hpp +++ b/src/nostalgia/player/app.hpp @@ -8,4 +8,4 @@ #include -ox::Error run(ox::FileSystem *fs); +ox::Error run(ox::FileSystem *fs) noexcept; diff --git a/src/nostalgia/player/main.cpp b/src/nostalgia/player/main.cpp index fae5b922..cea00da2 100644 --- a/src/nostalgia/player/main.cpp +++ b/src/nostalgia/player/main.cpp @@ -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.");