mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-14 03:44:34 +00:00
Add T macro for translated debug strings (#2064)
* Add T macro for translated debug strings * Hyral -> Hyrule * put some more care into z_std_dma
This commit is contained in:
parent
bdfa56e72d
commit
98ba7ad2ab
14 changed files with 163 additions and 157 deletions
|
@ -32,9 +32,9 @@ OSMesg sSerialMsgBuf[1];
|
|||
#if OOT_DEBUG
|
||||
void Main_LogSystemHeap(void) {
|
||||
PRINTF(VT_FGCOL(GREEN));
|
||||
// "System heap size% 08x (% dKB) Start address% 08x"
|
||||
PRINTF("システムヒープサイズ %08x(%dKB) 開始アドレス %08x\n", gSystemHeapSize, gSystemHeapSize / 1024,
|
||||
_buffersSegmentEnd);
|
||||
PRINTF(
|
||||
T("システムヒープサイズ %08x(%dKB) 開始アドレス %08x\n", "System heap size %08x (%dKB) Start address %08x\n"),
|
||||
gSystemHeapSize, gSystemHeapSize / 1024, _buffersSegmentEnd);
|
||||
PRINTF(VT_RST);
|
||||
}
|
||||
#endif
|
||||
|
@ -46,7 +46,7 @@ void Main(void* arg) {
|
|||
uintptr_t systemHeapStart;
|
||||
uintptr_t fb;
|
||||
|
||||
PRINTF("mainproc 実行開始\n"); // "Start running"
|
||||
PRINTF(T("mainproc 実行開始\n", "mainproc Start running\n"));
|
||||
gScreenWidth = SCREEN_WIDTH;
|
||||
gScreenHeight = SCREEN_HEIGHT;
|
||||
gAppNmiBufferPtr = (PreNmiBuff*)osAppNMIBuffer;
|
||||
|
@ -56,8 +56,8 @@ void Main(void* arg) {
|
|||
systemHeapStart = (uintptr_t)_buffersSegmentEnd;
|
||||
fb = (uintptr_t)SysCfb_GetFbPtr(0);
|
||||
gSystemHeapSize = fb - systemHeapStart;
|
||||
// "System heap initalization"
|
||||
PRINTF("システムヒープ初期化 %08x-%08x %08x\n", systemHeapStart, fb, gSystemHeapSize);
|
||||
PRINTF(T("システムヒープ初期化 %08x-%08x %08x\n", "System heap initalization %08x-%08x %08x\n"), systemHeapStart,
|
||||
fb, gSystemHeapSize);
|
||||
SystemHeap_Init((void*)systemHeapStart, gSystemHeapSize); // initializes the system heap
|
||||
|
||||
#if OOT_DEBUG
|
||||
|
@ -93,7 +93,7 @@ void Main(void* arg) {
|
|||
StackCheck_Init(&sIrqMgrStackInfo, sIrqMgrStack, STACK_TOP(sIrqMgrStack), 0, 0x100, "irqmgr");
|
||||
IrqMgr_Init(&gIrqMgr, STACK_TOP(sIrqMgrStack), THREAD_PRI_IRQMGR, 1);
|
||||
|
||||
PRINTF("タスクスケジューラの初期化\n"); // "Initialize the task scheduler"
|
||||
PRINTF(T("タスクスケジューラの初期化\n", "Initialize the task scheduler\n"));
|
||||
StackCheck_Init(&sSchedStackInfo, sSchedStack, STACK_TOP(sSchedStack), 0, 0x100, "sched");
|
||||
Sched_Init(&gScheduler, STACK_TOP(sSchedStack), THREAD_PRI_SCHED, gViConfigModeType, 1, &gIrqMgr);
|
||||
|
||||
|
@ -120,13 +120,13 @@ void Main(void* arg) {
|
|||
break;
|
||||
}
|
||||
if (*msg == OS_SC_PRE_NMI_MSG) {
|
||||
PRINTF("main.c: リセットされたみたいだよ\n"); // "Looks like it's been reset"
|
||||
PRINTF(T("main.c: リセットされたみたいだよ\n", "main.c: Looks like it's been reset\n"));
|
||||
PreNmiBuff_SetReset(gAppNmiBufferPtr);
|
||||
}
|
||||
}
|
||||
|
||||
PRINTF("mainproc 後始末\n"); // "Cleanup"
|
||||
PRINTF(T("mainproc 後始末\n", "mainproc Cleanup\n"));
|
||||
osDestroyThread(&sGraphThread);
|
||||
RcpUtils_Reset();
|
||||
PRINTF("mainproc 実行終了\n"); // "End of execution"
|
||||
PRINTF(T("mainproc 実行終了\n", "mainproc End of execution\n"));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue