From c54c0bad38e04e89857f3de391a453272e59a7dd Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Mon, 23 Jun 2025 01:03:33 -0500 Subject: [PATCH] [teagba] Cleanup --- deps/teagba/include/teagba/gfx.hpp | 2 +- deps/teagba/src/cstartup.cpp | 4 ++-- deps/teagba/src/gfx.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deps/teagba/include/teagba/gfx.hpp b/deps/teagba/include/teagba/gfx.hpp index e33980327..bd18bb3f1 100644 --- a/deps/teagba/include/teagba/gfx.hpp +++ b/deps/teagba/include/teagba/gfx.hpp @@ -37,7 +37,7 @@ struct OX_ALIGN8 GbaSpriteAttrUpdate { GbaSpriteAttrUpdate &spriteAttr(size_t i) noexcept; -void addSpriteUpdate(const GbaSpriteAttrUpdate &upd) noexcept; +void addSpriteUpdate(GbaSpriteAttrUpdate const &upd) noexcept; void applySpriteUpdates() noexcept; diff --git a/deps/teagba/src/cstartup.cpp b/deps/teagba/src/cstartup.cpp index a36034657..10e5d2ddf 100644 --- a/deps/teagba/src/cstartup.cpp +++ b/deps/teagba/src/cstartup.cpp @@ -26,7 +26,7 @@ extern void (*__preinit_array_end[]) (void); extern void (*__init_array_start[]) (void); extern void (*__init_array_end[]) (void); -int main(int argc, const char **argv); +int main(int argc, char const **argv); extern "C" { @@ -50,7 +50,7 @@ void __libc_init_array() { } int c_start() { - const char *args[2] = {"", "rom.oxfs"}; + char const *args[2] = {"", "rom.oxfs"}; ox::heapmgr::initHeap(HEAP_BEGIN, HEAP_END); mgba::initConsole(); #pragma GCC diagnostic push diff --git a/deps/teagba/src/gfx.cpp b/deps/teagba/src/gfx.cpp index 0dc80c486..b458eeff3 100644 --- a/deps/teagba/src/gfx.cpp +++ b/deps/teagba/src/gfx.cpp @@ -16,7 +16,7 @@ GbaSpriteAttrUpdate &spriteAttr(size_t i) noexcept { return g_spriteBuffer[i]; } -void addSpriteUpdate(const GbaSpriteAttrUpdate &upd) noexcept { +void addSpriteUpdate(GbaSpriteAttrUpdate const &upd) noexcept { const auto ie = REG_IE; // disable vblank interrupt handler REG_IE = REG_IE & static_cast(~teagba::Int_vblank); // disable vblank interrupt handler g_spriteBuffer[upd.idx] = upd;