From b1eaa2be2a379fb39158bf6fa1d4764ae8702545 Mon Sep 17 00:00:00 2001 From: matcool <26722564+matcool@users.noreply.github.com> Date: Wed, 20 Dec 2023 14:56:28 -0300 Subject: [PATCH] a few cocos changes --- .../Geode/cocos/support/zip_support/ZipUtils.h | 16 ++++++++-------- .../cocos/touch_dispatcher/CCTouchDispatcher.h | 1 + 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/loader/include/Geode/cocos/support/zip_support/ZipUtils.h b/loader/include/Geode/cocos/support/zip_support/ZipUtils.h index e7869b35..4bec8e77 100644 --- a/loader/include/Geode/cocos/support/zip_support/ZipUtils.h +++ b/loader/include/Geode/cocos/support/zip_support/ZipUtils.h @@ -149,17 +149,17 @@ namespace cocos2d */ static void ccSetPvrEncryptionKey(unsigned int keyPart1, unsigned int keyPart2, unsigned int keyPart3, unsigned int keyPart4); - static gd::string base64DecodeEnc(gd::string, gd::string); - static gd::string base64EncodeEnc(gd::string, gd::string); - static gd::string base64URLDecode(gd::string); - static gd::string base64URLEncode(gd::string); + static gd::string base64DecodeEnc(gd::string const&, gd::string); + static gd::string base64EncodeEnc(gd::string const&, gd::string); + static gd::string base64URLDecode(gd::string const&); + static gd::string base64URLEncode(gd::string const&); static int ccDeflateMemory(unsigned char*, unsigned int, unsigned char**); static int ccDeflateMemoryWithHint(unsigned char*, unsigned int, unsigned char**, unsigned int); - static gd::string compressString(gd::string, bool, int); - static gd::string decompressString(gd::string, bool, int); + static gd::string compressString(gd::string const&, bool, int); + static gd::string decompressString(gd::string const&, bool, int); static gd::string decompressString2(unsigned char*, bool, int, int); - static gd::string encryptDecrypt(gd::string, int); - static gd::string encryptDecryptWKey(gd::string, gd::string); + static gd::string encryptDecrypt(gd::string const&, int); + static gd::string encryptDecryptWKey(gd::string const&, gd::string); static unsigned char hexToChar(const gd::string&); static gd::string urlDecode(const gd::string&); diff --git a/loader/include/Geode/cocos/touch_dispatcher/CCTouchDispatcher.h b/loader/include/Geode/cocos/touch_dispatcher/CCTouchDispatcher.h index 3365f20d..9f3cce0b 100644 --- a/loader/include/Geode/cocos/touch_dispatcher/CCTouchDispatcher.h +++ b/loader/include/Geode/cocos/touch_dispatcher/CCTouchDispatcher.h @@ -201,6 +201,7 @@ public: */ CCTouchHandler* findHandler(CCTouchDelegate *pDelegate); +private: RT_ADD( void incrementForcePrio(int priority); void decrementForcePrio(int priority);