// // GraphicsReloadLayer::performReload from 0x1008882d0 to 0x100888528 (600 bytes) // // 2 xrefs: // > GraphicsReloadLayer::create @ 0x10088817c // > GraphicsReloadLayer::init @ 0x100888285 // // 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:36:59 +0000 // void __fastcall GraphicsReloadLayer::performReload(__int64 a1) { __int64 v1; // r14 _BYTE *v2; // rax int v3; // r14d __int64 v4; // rax int v5; // r15d __int64 v6; // rax char GameVariable; // al char v8; // cl __int64 v9; // rax __int64 v10; // rax __int64 v11; // rax __int64 v12; // rax __int64 v13; // rax __int64 v14; // rbx __int64 v15; // rax __int64 v16; // rax __int64 v17; // rax __int64 v18; // rax __int64 v19; // rdi float v20; // [rsp+8h] [rbp-38h] BYREF char v21; // [rsp+10h] [rbp-30h] BYREF void *v22[5]; // [rsp+11h] [rbp-2Fh] BYREF v1 = cocos2d::CCDirector::sharedDirector(); v2 = cocos2d::CCScene::create(); cocos2d::CCDirector::replaceScene(v1, v2); PlatformToolbox::updateWindowedSize(); v3 = *(_DWORD *)(cocos2d::CCDirector::sharedDirector() + 400); v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::updateContentScale(v4, *(_DWORD *)(a1 + 404)); v5 = *(_DWORD *)(cocos2d::CCDirector::sharedDirector() + 400); v6 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v6, "0025"); v8 = *(_BYTE *)(a1 + 416); if ( v8 == GameVariable || v8 && ((v15 = GameManager::sharedState(), *(_BYTE *)(a1 + 417) != (unsigned __int8)GameManager::getGameVariable(v15, "0170")) || (v16 = GameManager::sharedState(), *(_BYTE *)(a1 + 418) != (unsigned __int8)GameManager::getGameVariable(v16, "0175"))) ) { v9 = GameManager::sharedState(); GameManager::setGameVariable(v9, (std::string::value_type *)"0025"); v10 = GameManager::sharedState(); GameManager::setGameVariable(v10, "0170"); v11 = GameManager::sharedState(); GameManager::setGameVariable(v11, "0175"); v12 = GameManager::sharedState(); GameManager::switchScreenMode(v12, *(unsigned __int8 *)(a1 + 416), *(_BYTE *)(a1 + 417), *(_BYTE *)(a1 + 418)); } else { v17 = GameManager::sharedState(); GameManager::setGameVariable(v17, "0170"); v18 = GameManager::sharedState(); GameManager::setGameVariable(v18, "0175"); if ( *(_BYTE *)(a1 + 419) == 1 && !*(_BYTE *)(a1 + 416) ) PlatformToolbox::resizeWindow((__m128)*(unsigned int *)(a1 + 408), *(float *)(a1 + 412)); v19 = GameManager::sharedState(); if ( v3 == v5 ) sub_100376D40(v19, 1); else GameManager::reloadAll(v19, 0, 0, 0, 0); } v13 = GameManager::sharedState(); if ( (unsigned __int8)GameManager::getGameVariable(v13, "0115") ) { v14 = cocos2d::CCDirector::sharedDirector(); v21 = 24; strcpy((char *)v22, "chatFont.fnt"); sub_100278250(&v20, 0.0, 0.0); cocos2d::CCDirector::toggleShowFPS(v14, 1, (__int64)&v21, &v20); if ( (v21 & 1) != 0 ) operator delete(*(void **)((char *)&v22[1] + 7)); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source