diff --git a/libs/RVL_SDK/include/revolution/gx/GXStruct.h b/libs/RVL_SDK/include/revolution/gx/GXStruct.h index 76eb7bf2..ebbee18b 100644 --- a/libs/RVL_SDK/include/revolution/gx/GXStruct.h +++ b/libs/RVL_SDK/include/revolution/gx/GXStruct.h @@ -10,7 +10,16 @@ extern "C" { #endif typedef struct _GXColor { +#ifdef IPL_SYSTEM_COLOR_ALIGNMENT + union { + struct { + u8 r, g, b, a; + }; + u32 value; + }; +#else u8 r, g, b, a; // 0x00 +#endif } GXColor; typedef struct _GXColorS10 { diff --git a/src/system/iplSystem.cpp b/src/system/iplSystem.cpp index 5e08019b..56b6820f 100644 --- a/src/system/iplSystem.cpp +++ b/src/system/iplSystem.cpp @@ -1,4 +1,6 @@ +#define IPL_SYSTEM_COLOR_ALIGNMENT #include "iplSystem.h" +#undef IPL_SYSTEM_COLOR_ALIGNMENT #include "iplSound.h" #include "system/iplCdbWrapper.h" @@ -556,7 +558,6 @@ namespace ipl { // Default values for initial setup if (!SCGetConfigDoneFlag() && !SCGetConfigDoneFlag2()) { struct BlankNameStorage { - u16 padding; SCOwnerNickname blankName; } blankNameStorage; memset(&blankNameStorage.blankName, 0, sizeof(blankNameStorage.blankName));