mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-23 05:49:50 +00:00
Restore terminal colors in retail, except in __osMalloc.c (#1899)
This commit is contained in:
parent
dcf61174e9
commit
350b82c675
@ -28,24 +28,12 @@
|
||||
#define VT_SGR(n) VT_ESC VT_CSI n "m"
|
||||
|
||||
// Add more macros if necessary
|
||||
#if OOT_DEBUG
|
||||
|
||||
#define VT_COL(back, fore) VT_SGR(VT_COLOR(BACKGROUND, back) ";" VT_COLOR(FOREGROUND, fore))
|
||||
#define VT_FGCOL(color) VT_SGR(VT_COLOR(FOREGROUND, color))
|
||||
#define VT_BGCOL(color) VT_SGR(VT_COLOR(BACKGROUND, color))
|
||||
#define VT_RST VT_SGR("")
|
||||
#define VT_CLS VT_ED(2)
|
||||
|
||||
#else
|
||||
|
||||
#define VT_COL(back, fore) ""
|
||||
#define VT_FGCOL(color) ""
|
||||
#define VT_BGCOL(color) ""
|
||||
#define VT_RST ""
|
||||
#define VT_CLS ""
|
||||
|
||||
#endif
|
||||
|
||||
// ASCII BEL character, plays an alert tone
|
||||
#define BEL '\a'
|
||||
|
||||
|
@ -852,7 +852,11 @@ u32 __osCheckArena(Arena* arena) {
|
||||
while (iter != NULL) {
|
||||
if (iter && iter->magic == NODE_MAGIC) {
|
||||
// "Oops!! (%08x %08x)"
|
||||
#if OOT_DEBUG
|
||||
osSyncPrintf(VT_COL(RED, WHITE) "おおっと!! (%08x %08x)\n" VT_RST, iter, iter->magic);
|
||||
#else
|
||||
osSyncPrintf("おおっと!! (%08x %08x)\n", iter, iter->magic);
|
||||
#endif
|
||||
error = 1;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user