--check: 938/3256 method bodies compile for x86_64 (28.8%), 32-bit layout asserts hold; boot path 3/626 curated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
49 lines
2.7 KiB
C++
49 lines
2.7 KiB
C++
#include "classes.h"
|
|
|
|
// 00a10c00
|
|
ColorQuad::ColorQuad(KColor *color)
|
|
{
|
|
uint32_t zeroX;
|
|
float zeroY;
|
|
|
|
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 0x18)) = 0;
|
|
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 4)) = 0;
|
|
*GHIDRA_CAST<uint32_t *>(this) = 0;
|
|
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 0xc)) = 0;
|
|
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 8)) = 0;
|
|
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 0x14)) = 0;
|
|
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 0x10)) = 0;
|
|
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 0x1c)) = 0;
|
|
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x18)) = g_vectorZero.x;
|
|
zeroY = g_vectorZero.y;
|
|
zeroX = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 0x18));
|
|
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x1c)) = g_vectorZero.y;
|
|
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 0x10)) = zeroX;
|
|
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x14)) = zeroY;
|
|
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 8)) = zeroX;
|
|
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0xc)) = zeroY;
|
|
*GHIDRA_CAST<uint32_t *>(this) = zeroX;
|
|
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 4)) = zeroY;
|
|
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x20)) = color->_red;
|
|
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x24)) = color->_green;
|
|
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x28)) = color->_blue;
|
|
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x2c)) = color->_alpha;
|
|
*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x30)) = color->_unk;
|
|
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x34)) = color->_red;
|
|
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x38)) = color->_green;
|
|
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x3c)) = color->_blue;
|
|
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x40)) = color->_alpha;
|
|
*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x44)) = color->_unk;
|
|
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x48)) = color->_red;
|
|
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x4c)) = color->_green;
|
|
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x50)) = color->_blue;
|
|
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x54)) = color->_alpha;
|
|
*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x58)) = color->_unk;
|
|
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x5c)) = color->_red;
|
|
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x60)) = color->_green;
|
|
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 100)) = color->_blue;
|
|
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x68)) = color->_alpha;
|
|
*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x6c)) = color->_unk;
|
|
return;
|
|
}
|