[nostalgia/core/gba] Cleanup

This commit is contained in:
2020-07-18 17:00:49 -05:00
parent d9b0c2c42a
commit e2f1466e64
3 changed files with 23 additions and 22 deletions
+2 -1
View File
@@ -13,6 +13,7 @@
#include "addresses.hpp"
#include "bios.hpp"
#include "gfx.hpp"
namespace ox {
@@ -22,7 +23,7 @@ void panic(const char*, int, const char *msg, ox::Error err) {
oxIgnoreError(initGfx(nullptr));
oxIgnoreError(initConsole(nullptr));
// enable only BG 0
REG_DISPCTL = 0x0100;
REG_DISPCTL = DispCtl_Bg0;
clearTileLayer(nullptr, 0);
ox::BString<23> serr = "Error code: ";
serr += err;