diff --git a/CMakeLists.txt b/CMakeLists.txt index 7aee71b..3223659 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/src/Client/AndroidBall.cpp b/src/Client/AndroidBall.cpp index c6c285e..00b1144 100644 --- a/src/Client/AndroidBall.cpp +++ b/src/Client/AndroidBall.cpp @@ -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; @@ -370,4 +370,4 @@ void QOLModTouchDispatcher::touches(CCSet* touches, CCEvent* event, unsigned int if (sendToGame) CCTouchDispatcher::touches(touches, event, type); -} \ No newline at end of file +}*/ \ No newline at end of file diff --git a/src/Client/AndroidBall.h b/src/Client/AndroidBall.h index ed00a32..9b29d0f 100644 --- a/src/Client/AndroidBall.h +++ b/src/Client/AndroidBall.h @@ -50,7 +50,7 @@ class AndroidBall : public CCLayer ~AndroidBall(); }; -class $modify (QOLModTouchDispatcher, CCTouchDispatcher) +/*class $modify (QOLModTouchDispatcher, CCTouchDispatcher) { static void onModify(auto& self) { @@ -58,4 +58,4 @@ class $modify (QOLModTouchDispatcher, CCTouchDispatcher) } void touches(CCSet* touches, CCEvent* event, unsigned int type); -}; \ No newline at end of file +};*/ \ No newline at end of file diff --git a/src/Client/AndroidUI.cpp b/src/Client/AndroidUI.cpp index 92f58ba..d3ae905 100644 --- a/src/Client/AndroidUI.cpp +++ b/src/Client/AndroidUI.cpp @@ -201,6 +201,9 @@ bool AndroidUI::setup() AndroidUI* AndroidUI::get() { + if (!CCScene::get()) + return nullptr; + if (auto ui = CCScene::get()->getChildByType(0)) return ui;