1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-04 15:04:31 +00:00

first pass (#1185)

This commit is contained in:
louist103 2022-03-21 15:49:11 -04:00 committed by GitHub
parent 4729ac131a
commit 791d9018c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 26 additions and 33 deletions

View file

@ -24,7 +24,7 @@ UCodeInfo D_8012D248[3] = {
};
// clang-format on
void Graph_FaultClient() {
void Graph_FaultClient(void) {
void* nextFb = osViGetNextFramebuffer();
void* newFb = ((u32)SysCfb_GetFbPtr(0) != (u32)nextFb) ? SysCfb_GetFbPtr(0) : SysCfb_GetFbPtr(1);

View file

@ -7,7 +7,7 @@
if (x & DPC_STATUS_##name) \
osSyncPrintf(#name " ")
void RcpUtils_PrintRegisterStatus() {
void RcpUtils_PrintRegisterStatus(void) {
u32 spStatus = __osSpGetStatus();
u32 dpStatus = osDpGetStatus();

View file

@ -49,6 +49,6 @@ u32 SysCfb_GetFbPtr(s32 idx) {
return 0;
}
u32 SysCfb_GetFbEnd() {
u32 SysCfb_GetFbEnd(void) {
return sSysCfbEnd;
}

View file

@ -67,7 +67,7 @@ void KaleidoManager_Init(GlobalContext* globalCtx) {
gKaleidoMgrCurOvl = 0;
}
void KaleidoManager_Destroy() {
void KaleidoManager_Destroy(void) {
if (gKaleidoMgrCurOvl != NULL) {
KaleidoManager_ClearOvl(gKaleidoMgrCurOvl);
gKaleidoMgrCurOvl = NULL;

View file

@ -10,7 +10,7 @@ PauseMapMarksData* gLoadedPauseMarkDataTable;
extern void KaleidoScope_Update(GlobalContext* globalCtx);
extern void KaleidoScope_Draw(GlobalContext* globalCtx);
void KaleidoScopeCall_LoadPlayer() {
void KaleidoScopeCall_LoadPlayer(void) {
KaleidoMgrOverlay* playerActorOvl = &gKaleidoMgrOverlayTable[KALEIDO_OVL_PLAYER_ACTOR];
if (gKaleidoMgrCurOvl != playerActorOvl) {

View file

@ -81,7 +81,7 @@ void* ZeldaArena_Calloc(u32 num, u32 size) {
return ret;
}
void ZeldaArena_Display() {
void ZeldaArena_Display(void) {
osSyncPrintf("ゼルダヒープ表示\n"); // "Zelda heap display"
__osDisplayArena(&sZeldaArena);
}
@ -90,7 +90,7 @@ void ZeldaArena_GetSizes(u32* outMaxFree, u32* outFree, u32* outAlloc) {
ArenaImpl_GetSizes(&sZeldaArena, outMaxFree, outFree, outAlloc);
}
void ZeldaArena_Check() {
void ZeldaArena_Check(void) {
__osCheckArena(&sZeldaArena);
}
@ -99,11 +99,11 @@ void ZeldaArena_Init(void* start, u32 size) {
__osMallocInit(&sZeldaArena, start, size);
}
void ZeldaArena_Cleanup() {
void ZeldaArena_Cleanup(void) {
gZeldaArenaLogSeverity = LOG_SEVERITY_NOLOG;
__osMallocCleanup(&sZeldaArena);
}
u8 ZeldaArena_IsInitalized() {
u8 ZeldaArena_IsInitalized(void) {
return __osMallocIsInitalized(&sZeldaArena);
}