// // SetupShaderEffectPopup::setupChromaticGlitch from 0x14044e350 to 0x14044ebfa (2218 bytes) // // 2 xrefs: // > SetupShaderEffectPopup::init @ 0x14044a3c4 // > @ 0x1406da7a8 // // 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 // // Hidden C++ exception states: #wind=3 void SetupShaderEffectPopup::setupChromaticGlitch(SetupShaderEffectPopup *a1) { _QWORD *v2; // r9 _QWORD *v3; // rcx const char *v4; // rdx __int64 v5; // r8 double v6; // xmm0_8 __int64 v7; // rcx cocos2d::CCDirector *v8; // rax double ValueControl; // xmm0_8 double v10; // xmm0_8 int v11; // eax double ToggleValueControl; // xmm0_8 int v13; // r9d __int128 v14; // [rsp+58h] [rbp-B0h] BYREF __int64 v15; // [rsp+68h] [rbp-A0h] __int64 v16; // [rsp+70h] [rbp-98h] __int128 v17; // [rsp+78h] [rbp-90h] BYREF __int64 v18; // [rsp+88h] [rbp-80h] __int64 v19; // [rsp+90h] [rbp-78h] char v20; // [rsp+150h] [rbp+48h] BYREF float v21; // [rsp+158h] [rbp+50h] __int128 *v22; // [rsp+160h] [rbp+58h] BYREF v14 = 0; *(_QWORD *)&v14 = sub_14003AA10(0x20u); v15 = 19; v16 = 31; strcpy((char *)v14, "Setup Chroma Glitch"); SetupTriggerPopup::addTitle(a1, &v14); v22 = &v14; v14 = 0; v15 = 0; v16 = 15; v2 = sub_14003AA10(0x1B0u); *(_QWORD *)&v14 = v2; v15 = 421; v16 = 431; v3 = v2; v4 = "Applies chromatic aberration in waves alongside glitch lines.\n" "Speed is how fast the wave effect happens.\n" "Strength is how big the waves are.\n" "LineThickness is how big the lines are.\n" "LineStrength is the opacity of the lines.\n" "RGBOff sets color offset.\n" "FadeTime is time until final state is reached.\n" "RelativePos changes the shape of the effect based on position."; v5 = 3; do { *(_OWORD *)v3 = *(_OWORD *)v4; *((_OWORD *)v3 + 1) = *((_OWORD *)v4 + 1); *((_OWORD *)v3 + 2) = *((_OWORD *)v4 + 2); *((_OWORD *)v3 + 3) = *((_OWORD *)v4 + 3); *((_OWORD *)v3 + 4) = *((_OWORD *)v4 + 4); *((_OWORD *)v3 + 5) = *((_OWORD *)v4 + 5); *((_OWORD *)v3 + 6) = *((_OWORD *)v4 + 6); v3 += 16; *((_OWORD *)v3 - 1) = *((_OWORD *)v4 + 7); v4 += 128; --v5; } while ( v5 ); *(_OWORD *)v3 = *(_OWORD *)v4; *((_OWORD *)v3 + 1) = *((_OWORD *)v4 + 1); *((_DWORD *)v3 + 8) = *((_DWORD *)v4 + 8); *((_BYTE *)v3 + 36) = v4[36]; *((_BYTE *)v2 + 421) = 0; v17 = 0; v18 = 4; v19 = 15; strcpy((char *)&v17, "Help"); v6 = SetupTriggerPopup::addHelpButton(a1, &v17, &v14); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(v8); cocos2d::CCPoint::CCPoint(*(float *)&v6, v21 * 0.5); v14 = 0; v15 = 6; v16 = 15; strcpy((char *)&v14, "Speed:"); cocos2d::CCPoint::CCPoint(0.0, -100.0); cocos2d::CCPoint::operator+(&v20, &v22); ValueControl = SetupTriggerPopup::createValueControl( (_DWORD)a1, 175, (unsigned int)&v14, (unsigned int)&v22, 1058642330, 0, 1084227584); v15 = 7; v16 = 15; v14 = 0x3A66664F424752uLL; cocos2d::CCPoint::CCPoint(*(float *)&ValueControl, 100.0); cocos2d::CCPoint::operator+(&v20, &v22); SetupTriggerPopup::createValueControl( (_DWORD)a1, 180, (unsigned int)&v14, (unsigned int)&v22, 1058642330, 0, 1084227584); *((_QWORD *)&v14 + 1) = 58; v15 = 9; v16 = 15; *(_QWORD *)&v14 = 0x6874676E65727453LL; cocos2d::CCPoint::CCPoint(7.1559906e22, -100.0); cocos2d::CCPoint::operator+(&v20, &v22); SetupTriggerPopup::createValueControl( (_DWORD)a1, 176, (unsigned int)&v14, (unsigned int)&v22, 1058642330, 0, 1084227584); *((_QWORD *)&v14 + 1) = 58; v15 = 9; v16 = 15; *(_QWORD *)&v14 = 0x656D695465646146LL; cocos2d::CCPoint::CCPoint(6.7405871e22, 100.0); cocos2d::CCPoint::operator+(&v20, &v22); SetupTriggerPopup::createValueControl( (_DWORD)a1, 10, (unsigned int)&v14, (unsigned int)&v22, 1058642330, 0, 1084227584); v15 = 14; v16 = 15; strcpy((char *)&v14, "LineThickness:"); HIBYTE(v14) = 0; cocos2d::CCPoint::CCPoint(7.03666e22, -100.0); cocos2d::CCPoint::operator+(&v20, &v22); SetupTriggerPopup::createValueControl( (_DWORD)a1, 179, (unsigned int)&v14, (unsigned int)&v22, 1058642330, 0, 0x40000000); *((_QWORD *)&v14 + 1) = 58; v15 = 9; v16 = 15; *(_QWORD *)&v14 = 0x48746E656D676553LL; cocos2d::CCPoint::CCPoint(4.4758457e27, 100.0); cocos2d::CCPoint::operator+(&v20, &v22); SetupTriggerPopup::createValueControl( (_DWORD)a1, 189, (unsigned int)&v14, (unsigned int)&v22, 1058642330, 0, 1084227584); v15 = 13; v16 = 15; strcpy((char *)&v14, "LineStrength:"); HIWORD(v14) = 0; cocos2d::CCPoint::CCPoint(7.03666e22, -100.0); cocos2d::CCPoint::operator+(&v20, &v22); v10 = SetupTriggerPopup::createValueControl( (_DWORD)a1, 191, (unsigned int)&v14, (unsigned int)&v22, 1058642330, 0, 0x40000000); HIWORD(v14) = 0; v15 = 7; v16 = 15; qmemcpy(&v14, "Disabl", 6); *(_QWORD *)((char *)&v14 + 6) = (unsigned __int8)aDisable[6]; cocos2d::CCPoint::CCPoint(*(float *)&v10, 110.0); cocos2d::CCPoint::operator+(&v20, &v22); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 192, (unsigned int)&v14, (unsigned int)&v22, 0, 0, 0, 1065353216); v15 = 12; v16 = 15; strcpy((char *)&v14, "Relative\nPos"); BYTE13(v14) = 0; HIWORD(v14) = 0; cocos2d::CCPoint::CCPoint(2.7254578e20, 110.0); cocos2d::CCPoint::operator+(&v20, &v22); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 194, (unsigned int)&v14, (unsigned int)&v22, 0, 0, 0, 1065353216); v22 = &v17; v18 = 8; v19 = 15; v17 = 0x65766974616C6552uLL; cocos2d::CCPoint::CCPoint(v21 * 0.5, (float)((float)((float)(a1->m_width * 0.5) + (float)(v21 * 0.5)) - 72.0) - 90.0); ToggleValueControl = SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 514, (unsigned int)&v17, v11, 0, 0, 0, 1065353216); cocos2d::CCPoint::CCPoint(*(float *)&ToggleValueControl, 0.0); cocos2d::CCPoint::operator+(&v20, &v22); SetupTriggerPopup::createEasingControls(a1, (cocos2d::CCPoint)&v22, 0.80000001, v13, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source