Skip to content

Commit

Permalink
plz
Browse files Browse the repository at this point in the history
  • Loading branch information
Capeling committed Jun 25, 2024
1 parent 61d3ccd commit 67ea7ff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/layers/SogLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ bool SogLayer::init() {
backMenu->setPosition(ccp(director->getScreenLeft() + 25.f, director->getScreenTop() - 22.f));
setKeyboardEnabled(true);
setKeypadEnabled(true);
FMODAudioEngine::sharedEngine()->playMusic("SogLoop.mp3"_spr, true, 0.0f, 0);
GameManager::sharedState()->fadeInMusic("SogLoop.mp3"_spr);
//FMODAudioEngine::sharedEngine()->playMusic("SogLoop.mp3"_spr, true, 0.0f, 0);
return true;
}

Expand All @@ -57,7 +58,11 @@ void SogLayer::onClose(CCObject*) {
auto winSize = director->getWinSize();

auto scene = director->getRunningScene();
#ifndef GEODE_IS_ANDROID64
auto garage = GJGarageLayer::node();
#else
auto garage = getChildOfType<GJGarageLayer*>(GJGarageLayer::scene(), 0);
#endif

scene->addChild(garage, -1);

Expand Down

0 comments on commit 67ea7ff

Please sign in to comment.