// // GraphicsReloadLayer::performReload from 0x1007a50c0 to 0x1007a5313 (595 bytes) // // 2 xrefs: // > GraphicsReloadLayer::create @ 0x1007a4f6c // > GraphicsReloadLayer::init @ 0x1007a5075 // // 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 // void __fastcall GraphicsReloadLayer::performReload(GraphicsReloadLayer *a1) { cocos2d::CCDirector *v1; // r14 cocos2d::CCScene *v2; // rax cocos2d::TextureQuality m_eTextureQuality; // r14d cocos2d::CCDirector *v4; // rax cocos2d::TextureQuality v5; // r15d GameManager *v6; // rax char GameVariable; // al char m_fullscreen; // cl GameManager *v9; // rax GameManager *v10; // rax GameManager *v11; // rax GameManager *v12; // rax GameManager *v13; // rax cocos2d::CCDirector *v14; // rbx GameManager *v15; // rax GameManager *v16; // rax GameManager *v17; // rax GameManager *v18; // rax GameManager *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(a1->m_resolution.width, a1->m_resolution.height); m_eTextureQuality = cocos2d::CCDirector::sharedDirector()->m_eTextureQuality; v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::updateContentScale(v4, a1->m_quality); v5 = cocos2d::CCDirector::sharedDirector()->m_eTextureQuality; v6 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v6, "0025"); m_fullscreen = a1->m_fullscreen; if ( m_fullscreen == GameVariable || m_fullscreen && ((v15 = GameManager::sharedState(), a1->m_borderless != GameManager::getGameVariable(v15, "0170")) || (v16 = GameManager::sharedState(), a1->m_fix != GameManager::getGameVariable(v16, "0175"))) ) { v9 = GameManager::sharedState(); GameManager::setGameVariable(v9, "0025", !a1->m_fullscreen); v10 = GameManager::sharedState(); GameManager::setGameVariable(v10, "0170", a1->m_borderless); v11 = GameManager::sharedState(); GameManager::setGameVariable(v11, "0175", a1->m_fix); v12 = GameManager::sharedState(); GameManager::switchScreenMode(v12, a1->m_fullscreen, a1->m_borderless, a1->m_fix, 1); } else { v17 = GameManager::sharedState(); GameManager::setGameVariable(v17, "0170", a1->m_borderless); v18 = GameManager::sharedState(); GameManager::setGameVariable(v18, "0175", a1->m_fix); if ( a1->m_changedResolution && !a1->m_fullscreen ) PlatformToolbox::resizeWindow(a1->m_resolution.width, a1->m_resolution.height); v19 = GameManager::sharedState(); if ( m_eTextureQuality == v5 ) GameManager::queueReloadMenu(v19); else GameManager::reloadAll(v19, 0, 0, 0, 0, 1); } v13 = GameManager::sharedState(); if ( GameManager::getGameVariable(v13, "0115") ) { v14 = cocos2d::CCDirector::sharedDirector(); v21 = 24; strcpy((char *)v22, "chatFont.fnt"); sub_10028CBE0(&v20, 0.0, 0.0); cocos2d::CCDirector::toggleShowFPS((__int64)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