Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Nov 18, 2024
1 parent 21fb3f5 commit 4be85f5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
6 changes: 0 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ file(GLOB SOURCES
src/*/*/*.cpp
)

file(GLOB OBJC_SOURCES
src/*.mm
src/*/*.mm
src/*/*/*.mm
)

add_library(${PROJECT_NAME} SHARED ${SOURCES})

# Windows specific settings
Expand Down
4 changes: 2 additions & 2 deletions src/Client/AndroidBall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ class $modify (AppDelegate)
}
};

void QOLModTouchDispatcher::touches(CCSet* touches, CCEvent* event, unsigned int type)
/*void QOLModTouchDispatcher::touches(CCSet* touches, CCEvent* event, unsigned int type)
{
bool sendToGame = true;
Expand All @@ -370,4 +370,4 @@ void QOLModTouchDispatcher::touches(CCSet* touches, CCEvent* event, unsigned int
if (sendToGame)
CCTouchDispatcher::touches(touches, event, type);
}
}*/
4 changes: 2 additions & 2 deletions src/Client/AndroidBall.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ class AndroidBall : public CCLayer
~AndroidBall();
};

class $modify (QOLModTouchDispatcher, CCTouchDispatcher)
/*class $modify (QOLModTouchDispatcher, CCTouchDispatcher)
{
static void onModify(auto& self)
{
(void)self.setHookPriority("cocos2d::CCTouchDispatcher::touches", -99999999);
}
void touches(CCSet* touches, CCEvent* event, unsigned int type);
};
};*/
3 changes: 3 additions & 0 deletions src/Client/AndroidUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ bool AndroidUI::setup()

AndroidUI* AndroidUI::get()
{
if (!CCScene::get())
return nullptr;

if (auto ui = CCScene::get()->getChildByType<AndroidUI>(0))
return ui;

Expand Down

0 comments on commit 4be85f5

Please sign in to comment.