//
// PlayLayer::resume from 0x100122a64 to 0x100122ba4 (320 bytes)
//
// 1 xrefs:
// > PauseLayer::onResume @ 0x1001433b4
//
// 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 PlayLayer::resume(PlayLayer *a1)
{
FMODAudioEngine *v2; // x0
FMODAudioEngine *v3; // x0
FMODAudioEngine *v4; // x0
GameManager *v5; // x0
GameManager *v6; // x0
timeb v7; // [xsp+0h] [xbp-20h] BYREF
if ( AppDelegate::get()->m_resourceRootPath.m_data.m_short.shortStorage.__elems_[8] == 1 )
{
if ( a1->m_playerDied )
{
v2 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::resumeAllAudio(v2);
v3 = FMODAudioEngine::sharedEngine();
FMOD::System::update(v3->m_system);
}
else
{
GJBaseGameLayer::preResumeGame(a1);
a1->m_audioPaused = 1;
}
v4 = FMODAudioEngine::sharedEngine();
a1->m_isSilent = FMODAudioEngine::getBackgroundMusicVolume(v4) <= 0.0;
a1->m_isPaused = 0;
cocos2d::CCDirector::sharedDirector()->m_bSmoothFixCheck = 1;
v5 = GameManager::sharedState();
if ( GameManager::getGameVariable(v5, "0128") )
{
PlatformToolbox::toggleLockCursor(1);
}
else
{
v6 = GameManager::sharedState();
if ( !GameManager::getGameVariable(v6, "0024") )
PlatformToolbox::hideCursor();
}
AppDelegate::get()->m_resourceRootPath.m_data.m_short.shortStorage.__elems_[8] = 0;
((void (__fastcall *)(PlayLayer *))a1->onEnter)(a1);
PlayerObject::releaseAllButtons(a1->m_player1);
UILayer::refreshDpad(a1->m_uiLayer);
UILayer::resetAllButtons(a1->m_uiLayer);
UILayer::toggleMenuVisibility(a1->m_uiLayer, 1);
ftime(&v7);
a1->m_pauseDelta = a1->m_pauseDelta
+ (double)(v7.millitm + 1000 * (unsigned __int64)(v7.time & 0xFFFFF)) / 1000.0
- a1->m_pauseTime;
}
}