// // ShaderLayer::create from 0x54f538 to 0x54f878 (832 bytes) // // 1 xrefs: // > GJBaseGameLayer::setupLayers @ 0x47c1b2 // // 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 // ShaderLayer *ShaderLayer::create() { ShaderLayer *v0; // r4 unsigned int v1; // r0 std::_Hashtable, std::allocator>, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits>::__bucket_type *p_M_single_bucket; // r8 size_t v3; // r5 unsigned int v4; // r0 std::_Hashtable, std::allocator>, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits>::__bucket_type *v5; // r9 size_t v6; // r5 ShaderLayer_vtbl *v7; // r3 ShaderLayer *v8; // r0 v0 = (ShaderLayer *)operator new(0x5B0u); cocos2d::CCLayer::CCLayer(v0); v0->m_state.m_tweenActions._M_h._M_rehash_policy._M_max_load_factor = 1.0; v0->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (ShaderLayer_vtbl *)&off_A88B20; v0->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A88D60; v0->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A88D98; v0->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A88DA4; v0->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A88DB4; v0->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A88DC4; v0->m_state.m_tweenActions._M_h._M_before_begin._M_nxt = nullptr; v0->m_state.m_tweenActions._M_h._M_element_count = 0; v0->m_state.m_tweenActions._M_h._M_rehash_policy._M_next_resize = 0; v1 = sub_773A14(&v0->m_state.m_tweenActions._M_h._M_rehash_policy, 10); v0->m_state.m_tweenActions._M_h._M_bucket_count = v1; if ( v1 == 1 ) { p_M_single_bucket = &v0->m_state.m_tweenActions._M_h._M_single_bucket; v0->m_state.m_tweenActions._M_h._M_single_bucket = nullptr; } else { if ( v1 >= 0x40000000 ) sub_772FB4(v1); v3 = 4 * v1; p_M_single_bucket = (std::_Hashtable, std::allocator>, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits>::__bucket_type *)operator new(4 * v1); memset(p_M_single_bucket, 0, v3); } v0->m_state.m_tweenActions._M_h._M_buckets = p_M_single_bucket; v0->m_state.m_tweenTimes._M_h._M_before_begin._M_nxt = nullptr; v0->m_state.m_tweenTimes._M_h._M_element_count = 0; v0->m_state.m_tweenTimes._M_h._M_rehash_policy._M_max_load_factor = 1.0; v0->m_state.m_tweenTimes._M_h._M_rehash_policy._M_next_resize = 0; v4 = sub_773A14(&v0->m_state.m_tweenTimes._M_h._M_rehash_policy, 10); v0->m_state.m_tweenTimes._M_h._M_bucket_count = v4; if ( v4 == 1 ) { v5 = &v0->m_state.m_tweenTimes._M_h._M_single_bucket; v0->m_state.m_tweenTimes._M_h._M_single_bucket = nullptr; } else { if ( v4 >= 0x40000000 ) sub_772FB4(v4); v6 = 4 * v4; v5 = (std::_Hashtable, std::allocator>, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits>::__bucket_type *)operator new(4 * v4); memset(v5, 0, v6); } v0->m_state.m_tweenTimes._M_h._M_buckets = v5; v0->m_state.m_prevTime = -1.0; v0->m_state.m_time = 0.0; v0->m_state.m_textureScaleX = 1.0; v0->m_state.m_textureScaleY = 1.0; v0->m_state.m_blurRefChannel = 0; v0->m_state.m_shockWaveStartTime = 0.0; v0->m_state.m_shockWaveSpeed = 0.0; cocos2d::CCPoint::CCPoint(&v0->m_state.m_shockWaveScreenOffset); cocos2d::CCPoint::CCPoint(&v0->m_state.m_shockWaveCenter); v0->m_state.m_shockLineStartTime = 0.0; v0->m_state.m_shockLineTargetID = 0; v0->m_state.m_shockLineTarget = 0; cocos2d::CCPoint::CCPoint(&v0->m_state.m_shockLineScreenOffset2); cocos2d::CCPoint::CCPoint(&v0->m_state.m_shockLineCenter); v0->m_state.m_glitchStrength = 0.0; v0->m_state.m_chromaticTargetX = 0.0; v0->m_state.m_chromaticTargetY = 0.0; v0->m_state.m_cGRGBOffset = 0.0; v0->m_state.m_cGStrength = 0.0; v0->m_state.m_cGSegmentHeight = 1.0; v0->m_state.m_cGLineThickness = 0.0; v0->m_state.m_cGLineStrength = 0.0; v0->m_state.m_cGEnable = 0; v0->m_state.m_cGActive = 0; v0->m_state.m_pixelateTargetX = 1.0; v0->m_state.m_pixelateTargetY = 1.0; v0->m_state.m_pixelateSnapGrid = 0; v0->m_state.m_pixelatePixelating = 0; v0->m_state.m_lensCircleSize = 1.0; v0->m_state.m_lensCircleFade = 0.0; v0->m_state.m_lensCircleStrength = 0.0; v0->m_state.m_lensCircleTargetID = 0; v0->m_state.m_lensCircleTintChannel = 0; v0->m_state.m_lensCircleRelative = 0; v0->m_state.m_lensCircleAdditive = 0; cocos2d::CCPoint::CCPoint(&v0->m_state.m_lensCircleCenter); cocos2d::CCPoint::CCPoint(&v0->m_state.m_lensCircleScreenOffset); v0->m_state.m_radialBlurSize = 0.0; v0->m_state.m_radialBlurFade = 0.0; cocos2d::CCPoint::CCPoint(&v0->m_state.m_radialBlurCenter); cocos2d::CCPoint::CCPoint(&v0->m_state.m_radialBlurScreenOffset); v0->m_state.m_motionBlurTargetX = 0.0; v0->m_state.m_motionBlurTargetY = 0.0; v0->m_state.m_motionBlurSpeedX = 0.0; v0->m_state.m_motionBlurSpeedY = 0.0; v0->m_state.m_motionBlurFollowEaseX = 1.0; v0->m_state.m_motionBlurFollowEaseY = 1.0; v0->m_state.m_motionBlurTargetIDX = 0; v0->m_state.m_motionBlurTargetIDY = 0; v0->m_state.m_motionBlurDual = 0; v0->m_state.m_bulgeValue = 0.0; v0->m_state.m_bulgeRelative = 0; v0->m_state.m_bulgeTargetID = 0; v0->m_state.m_bulgeRadius = 0.0; cocos2d::CCPoint::CCPoint(&v0->m_state.m_bulgeCenter); cocos2d::CCPoint::CCPoint(&v0->m_state.m_bulgeScreenOffset); v0->m_state.m_pinchTargetX = 0.0; v0->m_state.m_pinchTargetY = 0.0; v0->m_state.m_pinchTargetEnabledX = 0; v0->m_state.m_pinchTargetEnabledY = 0; v0->m_state.m_pinchTargetIDX = 0; v0->m_state.m_pinchTargetIDY = 0; cocos2d::CCPoint::CCPoint(&v0->m_state.m_pinchCenter); cocos2d::CCPoint::CCPoint(&v0->m_state.m_pinchScreenOffset); v0->m_state.m_pinchRadius = 0.0; cocos2d::CCPoint::CCPoint(&v0->m_state.m_pinchModifier); v0->m_state.m_grayscaleValue = 0.0; v0->m_state.m_grayscaleTintChannel = 0; v0->m_state.m_sepiaValue = 0.0; v0->m_state.m_invertColorEditRGB = 0.0; v0->m_state.m_invertColorR = 1.0; v0->m_state.m_invertColorG = 1.0; v0->m_state.m_invertColorB = 1.0; v0->m_state.m_invertColorClampRGB = 0; v0->m_state.m_hueShiftDegrees = 0.0; v0->m_state.m_colorChangeCR = 1.0; v0->m_state.m_colorChangeCG = 1.0; v0->m_state.m_colorChangeCB = 1.0; v0->m_state.m_colorChangeBR = 0.0; v0->m_state.m_colorChangeBG = 0.0; v0->m_state.m_colorChangeBB = 0.0; v0->m_state.m_splitTargetRows = 0.0; v0->m_state.m_splitTargetCols = 0.0; v0->m_state.m_splitActive = 0; v0->m_state.m_minBlendingLayer = 0; v0->m_state.m_maxBlendingLayer = 0; v0->m_state.m_zLayerDirty = 0; v0->m_state.m_noPlayerParticles = 0; v0->m_state.m_usesShaders = 0; v0->m_timesyncShaderActions = 0; v0->m_shader = nullptr; v0->m_renderTexture = nullptr; v0->m_sprite = nullptr; v0->m_antiAlias = 0; v0->m_configuredAntiAlias = 0; v0->m_gameLayer = nullptr; cocos2d::CCPoint::CCPoint(&v0->m_savedCameraPosition); v0->m_savedCameraRotation = 0.0; v0->m_shockWaveTimeMult = 1.0; v0->m_scaleFactor = 1.0; cocos2d::CCSize::CCSize(&v0->m_screenSize); cocos2d::CCSize::CCSize(&v0->m_textureContentSize); cocos2d::CCSize::CCSize(&v0->m_targetTextureSize); cocos2d::CCSize::CCSize(&v0->m_targetTextureSizeExtra); if ( ((int (__fastcall *)(ShaderLayer *))v0->init)(v0) ) { cocos2d::CCObject::autorelease(v0); } else { v7 = v0->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v8 = v0; v0 = nullptr; v7->~ShaderLayer_0(v8); } return v0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source