// // artIconForKey from 0xa51514 to 0xa515fc (232 bytes) // // 3 xrefs: // > SetupArtSwitchPopup::selectArtClosed @ 0xa51654 // > SetupArtSwitchPopup::init @ 0xa519b8 // > @ 0xc7998 // // 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 // __int64 __usercall artIconForKey@(int a1@, int a2@, __int64 a3@) { unsigned __int64 v5; // x1 char *v6; // x0 cocos2d::CCString *v7; // x0 char *CString; // x0 switch ( a2 ) { case 1: if ( a1 > 22 ) LODWORD(v5) = 22; else LODWORD(v5) = a1; v6 = "gIcon_%02d_001.png"; if ( (int)v5 <= 0 ) v5 = 1; else v5 = (unsigned int)v5; goto LABEL_12; case 2: if ( a1 > 3 ) LODWORD(v5) = 3; else LODWORD(v5) = a1; v6 = "mgIcon_%02d_001.png"; if ( (v5 & 0x80000000) != 0LL ) v5 = 0; else v5 = (unsigned int)v5; goto LABEL_12; case 0: if ( a1 > 59 ) LODWORD(v5) = 59; else LODWORD(v5) = a1; v6 = "bgIcon_%02d_001.png"; if ( (int)v5 <= 0 ) v5 = 1; else v5 = (unsigned int)v5; LABEL_12: v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)v6, (const char *)v5); CString = (char *)cocos2d::CCString::getCString(v7); sub_D153B8(a3, CString); return a3; } sub_D153B8(a3, "mgIcon_00_001.png"); return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source