// // SetupShaderEffectPopup::setupHueShift from 0xa07084 to 0xa07500 (1148 bytes) // // 2 xrefs: // > SetupShaderEffectPopup::init @ 0xa08634 // > @ 0x2ff40 // // 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 // void SetupShaderEffectPopup::setupHueShift(SetupShaderEffectPopup *a1) { void *v2; // x0 void *v3; // x0 void *v4; // x0 cocos2d::CCDirector *v5; // x0 float v6; // s3 float v7; // s4 void *v8; // x0 void *v9; // x0 float v10; // s2 unsigned int *v11; // x1 int v12; // w2 unsigned int *v13; // x1 int v14; // w2 unsigned int *v15; // x1 int v16; // w2 unsigned int *v17; // x1 int v18; // w2 unsigned int *v19; // x1 int v20; // w2 float v21; // [xsp+A0h] [xbp+70h] float v22; // [xsp+A4h] [xbp+74h] cocos2d::CCPoint v23; // [xsp+A8h] [xbp+78h] BYREF cocos2d::CCPoint v24; // [xsp+B0h] [xbp+80h] BYREF cocos2d::CCPoint v25; // [xsp+B8h] [xbp+88h] BYREF __int64 v26; // [xsp+C0h] [xbp+90h] BYREF cocos2d::CCPoint v27; // 0:s0.4,4:s1.4 cocos2d::CCPoint v28; // 0:s0.4,4:s1.4 sub_D153B8((int)&v26, "Setup Hue Shift"); SetupTriggerPopup::addTitle((__int64)a1); v2 = (void *)(v26 - 24); if ( (__int64 *)(v26 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v11 = (unsigned int *)(v26 - 8); do v12 = __ldaxr(v11); while ( __stlxr(v12 - 1, v11) ); } else { v12 = *(_DWORD *)(v26 - 8); *(_DWORD *)(v26 - 8) = v12 - 1; } if ( v12 <= 0 ) operator delete(v2); } sub_D153B8((int)&v25, "Help"); sub_D153B8( (int)&v26, "Changes the hue of the screen.\n" "Degrees is how much the colors should shift.\n" "FadeTime is time until final state is reached."); SetupTriggerPopup::addHelpButton((__int64)a1, 1.0); v3 = (void *)(v26 - 24); if ( (__int64 *)(v26 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v13 = (unsigned int *)(v26 - 8); do v14 = __ldaxr(v13); while ( __stlxr(v14 - 1, v13) ); } else { v14 = *(_DWORD *)(v26 - 8); *(_DWORD *)(v26 - 8) = v14 - 1; } if ( v14 <= 0 ) operator delete(v3); } v4 = (void *)(*(_QWORD *)&v25 - 24LL); if ( (__int64 *)(*(_QWORD *)&v25 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v15 = (unsigned int *)(*(_QWORD *)&v25 - 8LL); do v16 = __ldaxr(v15); while ( __stlxr(v16 - 1, v15) ); } else { v16 = *(_DWORD *)(*(_QWORD *)&v25 - 8LL); *(_DWORD *)(*(_QWORD *)&v25 - 8LL) = v16 - 1; } if ( v16 <= 0 ) operator delete(v4); } v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v5); cocos2d::CCPoint::CCPoint(&v23, v21 * 0.5, (float)(v22 * 0.5) + 85.0); sub_D153B8((int)&v26, "Degrees:"); cocos2d::CCPoint::CCPoint(&v24, -100.0, 0.0); cocos2d::CCPoint::operator+(&v25, &v23, &v24); v27.y = -180.0; v27.x = 0.7; SetupTriggerPopup::createValueControlAdvanced( a1, 0xB0u, v27, 180.0, v6, v7, (std::string)&v26, &v25, (InputValueType)0, Int, 6, 0, 0, 0, 0, 2, 0); v8 = (void *)(v26 - 24); if ( (__int64 *)(v26 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v17 = (unsigned int *)(v26 - 8); do v18 = __ldaxr(v17); while ( __stlxr(v18 - 1, v17) ); } else { v18 = *(_DWORD *)(v26 - 8); *(_DWORD *)(v26 - 8) = v18 - 1; } if ( v18 <= 0 ) operator delete(v8); } sub_D153B8((int)&v26, "FadeTime:"); cocos2d::CCPoint::CCPoint(&v24, 100.0, 0.0); cocos2d::CCPoint::operator+(&v25, &v23, &v24); SetupTriggerPopup::createValueControl(a1, 0xAu, 0.7, 0.0, 0.0, (__int64)&v26, &v25); v9 = (void *)(v26 - 24); if ( (__int64 *)(v26 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v19 = (unsigned int *)(v26 - 8); do v20 = __ldaxr(v19); while ( __stlxr(v20 - 1, v19) ); } else { v20 = *(_DWORD *)(v26 - 8); *(_DWORD *)(v26 - 8) = v20 - 1; } if ( v20 <= 0 ) operator delete(v9); } cocos2d::CCPoint::CCPoint(&v25, 0.0, -100.0); cocos2d::CCPoint::operator+(&v26, &v23, &v25); v28.x = 1.0; SetupTriggerPopup::createEasingControls(a1, v28, v10, (int)&v26, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source