Skip to content

Commit

Permalink
try another thing
Browse files Browse the repository at this point in the history
  • Loading branch information
Alphalaneous committed Nov 19, 2024
1 parent 3e19627 commit 6d021e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/ui/hooks/CCMenuItemSpriteExtra.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class $modify(MyCCMenuItemSpriteExtra, CCMenuItemSpriteExtra){
return CCMenuItemSpriteExtra::init(p0, p1, p2, p3);
}

void selected(){
/*void selected(){
if(!m_fields->m_isMCButton){
CCMenuItemSpriteExtra::selected();
}
Expand All @@ -40,7 +40,7 @@ class $modify(MyCCMenuItemSpriteExtra, CCMenuItemSpriteExtra){
if(!m_fields->m_isMCButton){
CCMenuItemSpriteExtra::activate();
}
}
}*/

};

Expand Down
4 changes: 0 additions & 4 deletions src/ui/nodes/MCButtonChild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ void MCButtonChild::doClick(){

if (this->isHovering || doAndroidBypass) {

#ifndef GEODE_IS_ANDROID

auto engine = FMODAudioEngine::sharedEngine();
auto system = engine->m_system;

Expand All @@ -160,8 +158,6 @@ void MCButtonChild::doClick(){
channel->setVolume(engine->m_sfxVolume);
}

#endif

geode::Loader::get()->queueInMainThread([this]() { //delay it by a frame because for some reason it crashes the touch dispatcher otherwise ???
if (m_pListener && m_pfnSelector) {
(m_pListener->*m_pfnSelector)(this);
Expand Down

0 comments on commit 6d021e2

Please sign in to comment.