mirror of https://github.com/zeldaret/oot.git
Document src/n64dd/n64dd_error_headers.c
This commit is contained in:
parent
9f5ddc518a
commit
542dcc719d
|
|
@ -167,7 +167,7 @@ extern s32 B_801E0F64;
|
|||
extern void (*D_801D2EB4)(void*, void*, void*);
|
||||
|
||||
// Error messages
|
||||
extern const char* D_801D2ED0[]; // "Error Number " array
|
||||
extern const char* gN64DDLocalizedErrorNumberHeaders[]; // "Error Number " array
|
||||
extern const char* D_801D2EE0[2][8][4]; // Array of error message strings
|
||||
|
||||
// Error textures
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ void func_801C9C74(u8* dest, u8 value, u32 count) {
|
|||
|
||||
// n64ddError_GetErrorHeader
|
||||
const char* func_801C9CA4(void) {
|
||||
return D_801D2ED0[func_801C9C48()];
|
||||
return gN64DDLocalizedErrorNumberHeaders[func_801C9C48()];
|
||||
}
|
||||
|
||||
// n64ddError_WriteNumberJP
|
||||
|
|
|
|||
|
|
@ -1,4 +1,10 @@
|
|||
#include "n64dd.h"
|
||||
|
||||
// Padding in .rodata suggests that these are in a separate file
|
||||
const char* D_801D2ED0[4] = { "エラー番号 ", "Error Number ", NULL, NULL };
|
||||
// Padding in .rodata suggests that this array is in a separate file
|
||||
/**
|
||||
* Region-specific "error number" headers used in N64DD error handling.
|
||||
* The first one is used if the current region is Japan (gCurrentRegion == REGION_JP),
|
||||
* the second otherwise.
|
||||
* You can probably accurately guess what the japanese one means (it means "Error Number" :p)
|
||||
*/
|
||||
const char* gN64DDLocalizedErrorNumberHeaders[2] = { "エラー番号 ", "Error Number " };
|
||||
|
|
|
|||
Loading…
Reference in New Issue