From 6eb8518355bc5f783fe24e43306d1a981323504a Mon Sep 17 00:00:00 2001 From: LagoLunatic Date: Sun, 7 Jul 2024 16:36:38 -0400 Subject: [PATCH] Fix inconsistent indentation --- include/JSystem/J3DGraphBase/J3DPacket.h | 2 +- include/dolphin/dvd/dvd.h | 24 +++++++++---------- .../Runtime/Inc/NMWException.h | 6 ++--- .../Runtime/Src/__init_cpp_exceptions.cpp | 6 ++--- src/d/actor/d_a_pedestal.cpp | 2 +- src/dolphin/os/OSRtc.c | 24 +++++++++---------- 6 files changed, 32 insertions(+), 32 deletions(-) diff --git a/include/JSystem/J3DGraphBase/J3DPacket.h b/include/JSystem/J3DGraphBase/J3DPacket.h index da11c26b3..e53d28272 100644 --- a/include/JSystem/J3DGraphBase/J3DPacket.h +++ b/include/JSystem/J3DGraphBase/J3DPacket.h @@ -27,7 +27,7 @@ inline u32 getDiffFlag_TexGenNum(u32 param_1) { } inline int calcDifferedBufferSize_TexMtxSize(int param_1) { - return param_1 * 0x35; + return param_1 * 0x35; } inline int calcDifferedBufferSize_TexGenSize(int param_1) { diff --git a/include/dolphin/dvd/dvd.h b/include/dolphin/dvd/dvd.h index 480cd5c5f..e3b05cc54 100644 --- a/include/dolphin/dvd/dvd.h +++ b/include/dolphin/dvd/dvd.h @@ -87,22 +87,22 @@ typedef struct DVDDriveInfo { } DVDDriveInfo ALIGN_DECL(32); typedef struct DVDBB1 { - u32 appLoaderLength; - void* appLoaderFunc1; - void* appLoaderFunc2; - void* appLoaderFunc3; + u32 appLoaderLength; + void* appLoaderFunc1; + void* appLoaderFunc2; + void* appLoaderFunc3; } DVDBB1; typedef struct DVDBB2 { - u32 bootFilePosition; - u32 FSTPosition; - u32 FSTLength; - u32 FSTMaxLength; - void* FSTAddress; - u32 userPosition; - u32 userLength; + u32 bootFilePosition; + u32 FSTPosition; + u32 FSTLength; + u32 FSTMaxLength; + void* FSTAddress; + u32 userPosition; + u32 userLength; - u32 padding0; + u32 padding0; } DVDBB2; #define DVD_MIN_TRANSFER_SIZE 32 diff --git a/src/PowerPC_EABI_Support/Runtime/Inc/NMWException.h b/src/PowerPC_EABI_Support/Runtime/Inc/NMWException.h index 1bf7d39e2..d08dd249a 100644 --- a/src/PowerPC_EABI_Support/Runtime/Inc/NMWException.h +++ b/src/PowerPC_EABI_Support/Runtime/Inc/NMWException.h @@ -10,9 +10,9 @@ extern "C" { #define DTORCALL(dtor, objptr) (((void (*)(void*, int))dtor)(objptr, -1)) typedef struct DestructorChain { - struct DestructorChain* next; - void* destructor; - void* object; + struct DestructorChain* next; + void* destructor; + void* object; } DestructorChain; void __unregister_fragment(int fragmentID); diff --git a/src/PowerPC_EABI_Support/Runtime/Src/__init_cpp_exceptions.cpp b/src/PowerPC_EABI_Support/Runtime/Src/__init_cpp_exceptions.cpp index 50caec44d..6b72cd685 100644 --- a/src/PowerPC_EABI_Support/Runtime/Src/__init_cpp_exceptions.cpp +++ b/src/PowerPC_EABI_Support/Runtime/Src/__init_cpp_exceptions.cpp @@ -21,9 +21,9 @@ static int fragmentID = -2; /* clang-format off */ static asm char* GetR2() { - nofralloc; - mr r3, r2 - blr + nofralloc; + mr r3, r2 + blr } /* clang-format on */ diff --git a/src/d/actor/d_a_pedestal.cpp b/src/d/actor/d_a_pedestal.cpp index 6038ba580..737cb2691 100644 --- a/src/d/actor/d_a_pedestal.cpp +++ b/src/d/actor/d_a_pedestal.cpp @@ -50,7 +50,7 @@ BOOL daPds_c::CreateHeap() { mpBgW = new dBgW(); - if (mpBgW != NULL) { + if (mpBgW != NULL) { return mpBgW->Set((cBgD_t*)dComIfG_getObjectRes(m_arcname, HDAI1_DZB_HDAI), cBgW::MOVE_BG_e, &mMtx) == true ? FALSE : TRUE; } diff --git a/src/dolphin/os/OSRtc.c b/src/dolphin/os/OSRtc.c index c983f06f9..171519fc8 100644 --- a/src/dolphin/os/OSRtc.c +++ b/src/dolphin/os/OSRtc.c @@ -185,21 +185,21 @@ u32 OSGetEuRgb60Mode() { } void OSSetEuRgb60Mode(u32 mode) { - OSSram *sram; + OSSram *sram; - mode <<= 6; - mode &= 0x40; + mode <<= 6; + mode &= 0x40; - sram = __OSLockSram(); - if (mode == (sram->ntd & 0x40)) - { - __OSUnlockSram(FALSE); - return; - } + sram = __OSLockSram(); + if (mode == (sram->ntd & 0x40)) + { + __OSUnlockSram(FALSE); + return; + } - sram->ntd &= ~0x40; - sram->ntd |= mode; - __OSUnlockSram(TRUE); + sram->ntd &= ~0x40; + sram->ntd |= mode; + __OSUnlockSram(TRUE); } u32 OSGetProgressiveMode() {