Skip to content

Commit

Permalink
change code to geode 4.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mishpro-programm committed Nov 22, 2024
1 parent dea5b95 commit 5e7922e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class $modify(MyPauseLayer, PauseLayer) {
//i copied this code from globed (tysm dankmeme)
class $modify(FixedPlayLayer, PlayLayer) {
bool isCurrentPlayLayer(){
auto playLayer = geode::cocos::getChildOfType<PlayLayer>(cocos2d::CCScene::get(), 0);
auto playLayer = cocos2d::CCScene::get()->getChildByType<PlayLayer>(0);
return playLayer == this;
}
bool isPaused(bool checkCurrent){
Expand Down

0 comments on commit 5e7922e

Please sign in to comment.