//
// CreatorLayer::dialogClosed from 0x1002847c0 to 0x100284879 (185 bytes)
//
// 2 xrefs:
// > sub_1002848A0 @ 0x1002848ac
// > ??> @ 0x100afe720
//
// This function is hookable on this platform (idp: pc, 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 12:27:44 +0000
//
__int64 __fastcall CreatorLayer::dialogClosed(__int64 a1, __int64 a2)
{
__int64 result; // rax
__int64 v3; // rdx
double v4; // xmm0_8
__int64 v5; // rax
__int64 v6; // rbx
__int64 v7; // rax
__int64 v8; // rax
__int64 v9; // rbx
char v10; // [rsp+0h] [rbp-20h] BYREF
void *v11[3]; // [rsp+1h] [rbp-1Fh] BYREF
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)result == 1 )
{
v10 = 24;
strcpy((char *)v11, "mapPromo.png");
v9 = sub_1002A42C0(&v10);
if ( (v10 & 1) != 0 )
operator delete(*(void **)((char *)&v11[1] + 7));
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 1312LL))(v9);
}
else if ( !(_DWORD)result )
{
*(_QWORD *)&v4 = GameManager::sharedState(a2, a2, v3).u64[0];
GameManager::setUGV(v5, "5", 1, v4);
v6 = *(_QWORD *)(a1 + 432);
v7 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v4);
v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, "secretDoorBtn_open_001.png");
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 1160LL))(v6, v8);
}
return result;
}