// // GJEditorSoundConfig::showSoundInfo from 0xcdb384 to 0xcdb814 (1168 bytes) // // 4 xrefs: // > InfoLayer::onLevelInfo @ 0x90a48c // > EditorSoundConfigCell::onInfoPopup @ 0xccaf08 // > EditorSoundConfigInfoLayer::onShowDescription @ 0xcccb14 // > @ 0x70b40 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:06:33 +0000 // __int64 __fastcall GJEditorSoundConfig::showSoundInfo(GJEditorSoundConfig *this) { unsigned __int8 v2; // w2 size_t v3; // x2 char *v4; // x1 char *v5; // x1 size_t v6; // x2 char *v7; // x1 size_t v8; // x2 int v9; // w0 char *v10; // x1 size_t v11; // x2 const char *v12; // x1 size_t v13; // x0 __int64 v14; // x19 size_t v16; // x2 char *v17; // x1 char *v18; // [xsp+48h] [xbp+48h] _QWORD v19[2]; // [xsp+50h] [xbp+50h] BYREF void *v20; // [xsp+60h] [xbp+60h] __int64 v21; // [xsp+68h] [xbp+68h] BYREF size_t v22; // [xsp+70h] [xbp+70h] void *v23; // [xsp+78h] [xbp+78h] __int64 v24; // [xsp+80h] [xbp+80h] BYREF size_t v25; // [xsp+88h] [xbp+88h] void *v26; // [xsp+90h] [xbp+90h] unsigned __int64 v27[2]; // [xsp+98h] [xbp+98h] BYREF void *v28; // [xsp+A8h] [xbp+A8h] __int64 v29[2]; // [xsp+B0h] [xbp+B0h] BYREF void *v30; // [xsp+C0h] [xbp+C0h] __int64 v31[2]; // [xsp+C8h] [xbp+C8h] BYREF void *v32; // [xsp+D8h] [xbp+D8h] __int64 v33[2]; // [xsp+E0h] [xbp+E0h] BYREF void *v34; // [xsp+F0h] [xbp+F0h] v19[0] = 0; v19[1] = 0; v20 = nullptr; GJEditorSoundConfig::getUnpackedSoundDesc(&v21, this); if ( (v21 & 1) == 0 ) { if ( (int)(unsigned __int8)v21 >> 1 ) { v26 = v23; v24 = v21; v25 = v22; goto LABEL_7; } LABEL_40: v24 = 0; v25 = 0; v26 = nullptr; std::string::__init(&v24, "(No description provided)", 0x19u); LABEL_7: v2 = v24; if ( (v24 & 1) == 0 ) goto LABEL_4; goto LABEL_8; } if ( !v22 ) goto LABEL_40; v24 = 0; v25 = 0; v26 = nullptr; std::string::__init(&v24, v23, v22); v2 = v24; if ( (v24 & 1) == 0 ) { LABEL_4: v3 = v2 >> 1; v4 = (char *)&v24 + 1; goto LABEL_9; } LABEL_8: v4 = (char *)v26; v3 = v25; LABEL_9: std::string::append((__int64)v19, v4, v3); if ( (v24 & 1) != 0 ) operator delete(v26); if ( *((int *)this + 79) > 0 || *((int *)this + 91) > 0 ) { std::string::append((__int64)v19, "\n\n", 2u); if ( *((int *)this + 79) > 0 ) { std::string::append((__int64)v19, "Pack ID: ", 0xDu); GameToolbox::intToString(v27, (GameToolbox *)*((unsigned int *)this + 79)); if ( (v27[0] & 1) != 0 ) { v5 = (char *)v28; v6 = v27[1]; } else { v6 = LOBYTE(v27[0]) >> 1; v5 = (char *)v27 + 1; } std::string::append((__int64)v19, v5, v6); if ( (v27[0] & 1) != 0 ) operator delete(v28); std::string::append((__int64)v19, "\n", 5u); } if ( (unsigned int)(*((_DWORD *)this + 90) - 3) <= 1 ) { std::string::append((__int64)v19, "Visibility: ", 0x10u); if ( *((_DWORD *)this + 90) == 3 ) { v16 = 12; v17 = "Friends Only"; } else { v16 = 8; v17 = "Unlisted"; } std::string::append((__int64)v19, v17, v16); std::string::append((__int64)v19, "\n", 5u); } if ( *((int *)this + 91) > 0 ) { std::string::append((__int64)v19, "Uploaded: ", 0xEu); GameToolbox::timestampToHumanReadable((GameToolbox *)*((int *)this + 91), v29); if ( (v29[0] & 1) != 0 ) { v7 = (char *)v30; v8 = v29[1]; } else { v8 = LOBYTE(v29[0]) >> 1; v7 = (char *)v29 + 1; } std::string::append((__int64)v19, v7, v8); if ( (v29[0] & 1) != 0 ) operator delete(v30); std::string::append((__int64)v19, "", 4u); v9 = *((_DWORD *)this + 92); if ( v9 > 0 && v9 != *((_DWORD *)this + 91) ) { std::string::append((__int64)v19, "\nUpdated: ", 0xEu); GameToolbox::timestampToHumanReadable((GameToolbox *)*((int *)this + 92), v31); if ( (v31[0] & 1) != 0 ) { v10 = (char *)v32; v11 = v31[1]; } else { v11 = LOBYTE(v31[0]) >> 1; v10 = (char *)v31 + 1; } std::string::append((__int64)v19, v10, v11); if ( (v31[0] & 1) != 0 ) operator delete(v32); std::string::append((__int64)v19, "", 4u); } } } v12 = (char *)v19 + 1; if ( (v19[0] & 1) != 0 ) v12 = (const char *)v20; v18 = (char *)v12; v33[0] = 0; v33[1] = 0; v34 = nullptr; v13 = strlen(v12); std::string::__init(v33, v18, v13); v14 = FLAlertLayer::create( 0, (cocos2d::CCLabelBMFont *)"Sound Pack Info", (char *)v33, (ButtonSprite *)"OK", nullptr, 380.0); if ( (v33[0] & 1) != 0 ) operator delete(v34); (*(void (__fastcall **)(__int64))(*(_QWORD *)v14 + 1312LL))(v14); if ( (v21 & 1) != 0 ) operator delete(v23); if ( (v19[0] & 1) != 0 ) operator delete(v20); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source