@@ -18,16 +18,16 @@ class $modify(MenuLayer){
1818 if (!MenuLayer::init ()) {
1919 return false ;
2020 }
21- if (CCNode* bottomMenu = this ->getChildByIDRecursive (" bottom-menu" )){
21+ if (CCNode* bottomMenu = this ->getChildByIDRecursive (" bottom-menu" )){
2222 bottomMenu->getChildByIDRecursive (" achievements-button" )->setVisible (false );
2323 bottomMenu->getChildByIDRecursive (" settings-button" )->setVisible (false );
2424 bottomMenu->getChildByIDRecursive (" stats-button" )->setVisible (false );
2525 bottomMenu->getChildByIDRecursive (" newgrounds-button" )->setVisible (false );
2626 bottomMenu->getChildByIDRecursive (" geode.loader/geode-button" )->setVisible (false );
2727 }
28- if (Loader::get ()->isModLoaded (" alphalaneous.pages_api " )){
28+ if (Loader::get ()->isModLoaded (" alphalaneous.vanilla_pages " )){
2929
30- Mod* mod = Loader::get ()->getLoadedMod (" alphalaneous.pages_api " );
30+ Mod* mod = Loader::get ()->getLoadedMod (" alphalaneous.vanilla_pages " );
3131
3232 if (mod->getSettingValue <bool >(" menulayer-right-menu" )){
3333 if (CCNode* rightSideMenu = this ->getChildByIDRecursive (" right-side-menu" )){
@@ -53,7 +53,7 @@ class $modify(MyMenuLayer, MenuLayer) {
5353 };
5454
5555 static void onModify (auto & self) {
56- (void ) self.setHookPriority (" MenuLayer::init" , INT_MIN/ 2 - 1 );
56+ (void ) self.setHookPriority (" MenuLayer::init" , - 1000 );
5757 }
5858
5959 bool init () {
@@ -215,6 +215,7 @@ class $modify(MyMenuLayer, MenuLayer) {
215215
216216 setAllInvisible ();
217217 this ->scheduleOnce (schedule_selector (MyMenuLayer::setAllVisible), 1 .0f );
218+ GlobalVars::getSharedInstance ()->isInitialLaunch = false ;
218219 }
219220
220221
0 commit comments