//
// GJEffectManager::getSaveString from 0x4a2358 to 0x4a2454 (252 bytes)
//
// 1 xrefs:
// > LevelSettingsObject::getSaveString @ 0x3739e2
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
GJEffectManager *__fastcall GJEffectManager::getSaveString(GJEffectManager *this, int a2)
{
int v3; // r2
char *v4; // r0
int v5; // r0
int v6; // r5
int v7; // r0
int v8; // r3
unsigned int v10[3]; // [sp+Ch] [bp-208h] BYREF
char v11; // [sp+18h] [bp-1FCh] BYREF
v10[0] = 0;
v10[1] = 500;
v10[2] = (unsigned int)&v11;
v3 = *(_DWORD *)(a2 + 268);
if ( v3 )
{
v5 = *(_DWORD *)(v3 + 52);
if ( v5 )
v6 = *(_DWORD *)(v5 + 272);
else
v6 = 0;
while ( v5 )
{
v7 = *(_DWORD *)(v5 + 260);
if ( *(int *)(v7 + 88) >= 1000
|| *(unsigned __int8 *)(v7 + 68) != 255
|| *(unsigned __int8 *)(v7 + 69) != 255
|| *(unsigned __int8 *)(v7 + 70) != 255
|| *(_BYTE *)(v7 + 80)
|| *(float *)(v7 + 92) != 1.0
|| *(_DWORD *)(v7 + 116)
|| *(int *)(v7 + 84) > 0 )
{
ColorAction::writeSaveString(v7, v10);
fmt::BasicWriter::operator<<(v10, "|", 0);
}
if ( v6 )
v8 = *(_DWORD *)(v6 + 272);
else
v8 = 0;
v5 = v6;
v6 = v8;
}
}
v4 = (char *)fmt::BasicWriter::c_str((int *)v10);
sub_776584((int)this, v4);
fmt::internal::Array::free((int)v10);
return this;
}