Skip to content

Commit

Permalink
more mac tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alphalaneous committed Nov 21, 2024
1 parent 6780216 commit 7117691
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/ui/hooks/PlayLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class $modify(MyPlayLayer, PlayLayer){

CCLayerColor* cocosVersionText = createTextLayer("cocos-label"_spr, m_fields->rightDebugNode, fmt::format("Cocos2d-x: {} {}bit", m_fields->cocosVersion, bit));

#ifndef GEODE_IS_ANDROID
#ifdef GEODE_IS_WINDOWS

MEMORYSTATUSEX memInfo;
memInfo.dwLength = sizeof(MEMORYSTATUSEX);
Expand Down
6 changes: 3 additions & 3 deletions src/ui/layers/MCOptionsLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ void MCOptionsLayer::onHelpSettings(CCObject* obj){

this->addChild(optionsLayer);

(optionsLayer->*menu_selector(OptionsLayer::onHelp))(this);
//(optionsLayer->*menu_selector(OptionsLayer::onHelp))(this);

//CCDirector::sharedDirector()->pushScene(HelpSettings::scene());
}
Expand All @@ -173,7 +173,7 @@ void MCOptionsLayer::onTutorialSettings(CCObject* obj){
//OptionsLayer* optionsLayer = OptionsLayer::create();
//this->addChild(optionsLayer);

(this->*menu_selector(OptionsLayer::onSupport))(this);
//(this->*menu_selector(OptionsLayer::onSupport))(this);

//CCDirector::sharedDirector()->pushScene(TutorialSettings::scene());
}
Expand All @@ -185,7 +185,7 @@ void MCOptionsLayer::onOnlineSettings(CCObject* obj){

this->addChild(optionsLayer);

(optionsLayer->*menu_selector(OptionsLayer::onAccount))(this);
//(optionsLayer->*menu_selector(OptionsLayer::onAccount))(this);

//CCDirector::sharedDirector()->pushScene(OnlineSettings::scene());
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ class Utils {
if(auto btn = static_cast<MyCCMenuItemToggler*>(toggler)){
newToggler = CCMenuItemToggler::create(offBtn, onBtn, btn->m_pListener, btn->m_pfnSelector);
newToggler->setTag(toggler->getTag());
newToggler->setSizeMult(0);
//newToggler->setSizeMult(0);

auto onBtnToggler = static_cast<MyCCMenuItemSpriteExtra*>(newToggler->m_onButton);
onBtnToggler->m_fields->m_isMCButton = true;
Expand Down

0 comments on commit 7117691

Please sign in to comment.