// // SetupShaderEffectPopup::setupGlitch from 0x689950 to 0x689c96 (838 bytes) // // 1 xrefs: // > SetupShaderEffectPopup::init @ 0x68de44 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:56:07 +0000 // int __fastcall SetupShaderEffectPopup::setupGlitch(cocos2d::CCDictionary **this) { cocos2d::CCDirector *v2; // r0 float v4; // [sp+14h] [bp-40h] BYREF float v5; // [sp+18h] [bp-3Ch] _BYTE v6[8]; // [sp+1Ch] [bp-38h] BYREF _BYTE v7[8]; // [sp+24h] [bp-30h] BYREF _BYTE v8[8]; // [sp+2Ch] [bp-28h] BYREF int v9[3]; // [sp+34h] [bp-20h] BYREF int v10; // [sp+40h] [bp-14h] BYREF int v11; // [sp+44h] [bp-10h] int v12; // [sp+48h] [bp-Ch] v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "Setup Glitch", 0xCu); SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v10); std::string::~string((int)&v10); memset(v9, 0, sizeof(v9)); std::string::__init(v9, "Glitch", 6u); v10 = 0; v11 = 0; v12 = 0; std::string::__init( &v10, "Speed defines how fast the glitch effect happens.\n" "SliceHeight is how high up objects get sliced.\n" "MaxSliceXOff sets how much objects get sliced.\n" "MaxColXOff and MaxColYOff is the max offset for the color effect on each axis.\n" "Relative makes the effect follow screen movement.", 0x138u); SetupTriggerPopup::addHelpButton((int)this, (int)v9, (int)&v10, 1065353216); std::string::~string((int)&v10); v2 = (cocos2d::CCDirector *)std::string::~string((int)v9); cocos2d::CCDirector::sharedDirector(v2); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v4); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v6, v4 * 0.5, (float)(v5 * 0.5) + 98.0); v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "FadeTime:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, -100.0, 0.0); cocos2d::CCPoint::operator+(v8, v6, v7); SetupTriggerPopup::createValueControl(this, 10, (int)&v10, (const cocos2d::CCPoint *)v8, 1060320051, 0, 0); std::string::~string((int)&v10); v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "Strength:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 100.0, 0.0); cocos2d::CCPoint::operator+(v8, v6, v7); SetupTriggerPopup::createValueControl(this, 176, (int)&v10, (const cocos2d::CCPoint *)v8, 1060320051, 0, 0); std::string::~string((int)&v10); v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "Speed:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, -100.0, -50.0); cocos2d::CCPoint::operator+(v8, v6, v7); SetupTriggerPopup::createValueControl(this, 175, (int)&v10, (const cocos2d::CCPoint *)v8, 1060320051, 0, 0); std::string::~string((int)&v10); v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "MaxSliceXOff:", 0xDu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 100.0, -100.0); cocos2d::CCPoint::operator+(v8, v6, v7); SetupTriggerPopup::createValueControl(this, 191, (int)&v10, (const cocos2d::CCPoint *)v8, 1060320051, 0, 0); std::string::~string((int)&v10); v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "SliceHeight:", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, -100.0, -100.0); cocos2d::CCPoint::operator+(v8, v6, v7); SetupTriggerPopup::createValueControl(this, 179, (int)&v10, (const cocos2d::CCPoint *)v8, 1060320051, 0, 0); std::string::~string((int)&v10); v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "MaxColXOff:", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, -100.0, -150.0); cocos2d::CCPoint::operator+(v8, v6, v7); SetupTriggerPopup::createValueControl(this, 181, (int)&v10, (const cocos2d::CCPoint *)v8, 1060320051, 0, 0); std::string::~string((int)&v10); v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "MaxColYOff:", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 100.0, -150.0); cocos2d::CCPoint::operator+(v8, v6, v7); SetupTriggerPopup::createValueControl(this, 182, (int)&v10, (const cocos2d::CCPoint *)v8, 1060320051, 0, 0); std::string::~string((int)&v10); v10 = 0; v11 = 0; v12 = 0; std::string::__init(&v10, "Relative", 8u); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v8, (float)((float)((float)(*((float *)this + 139) * 0.5) + (float)(v4 * 0.5)) - 72.0) - 90.0, (float)((float)(v5 * 0.5) - (float)(*((float *)this + 140) * 0.5)) + 20.0); SetupTriggerPopup::createToggleValueControl((int)this, 514, (int)&v10, (const cocos2d::CCPoint *)v8, 0, 0, 0, 1.0); return std::string::~string((int)&v10); }
GD Web Decomp Icon

GD Web Decomp

Raw Source