[nostalgia] Make core::shutdown return void and add GBA implementation

This commit is contained in:
2022-03-25 01:28:26 -05:00
parent 6eb4070d97
commit 053d35b31c
7 changed files with 21 additions and 9 deletions
+3 -1
View File
@@ -56,7 +56,7 @@ class Context {
const ox::FileAddress &tilesheetPath,
const ox::FileAddress &palettePath) noexcept;
friend ox::Error run(Context *ctx) noexcept;
friend ox::Error shutdown(Context *ctx) noexcept;
friend void shutdown(Context *ctx) noexcept;
friend ox::Result<ox::UniquePtr<Context>> init(ox::UniquePtr<ox::FileSystem> fs, const char *appName) noexcept;
friend ox::String getClipboardText(Context *ctx) noexcept;
friend uint64_t ticksMs(Context *ctx) noexcept;
@@ -82,6 +82,8 @@ class Context {
AssetManager assetManager;
int uninterruptedRefreshes = 3;
ox::UniquePtr<BaseClipboardObject> clipboard;
#else
bool running = true;
#endif
protected:
#ifndef OX_BARE_METAL