-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement saving/loading attempts, implement cancel play level popup.…
… Update bindings branch and bump geode ver
- Loading branch information
Showing
12 changed files
with
119 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"geode": "3.3.1", | ||
"geode": "3.4.0", | ||
"gd": { | ||
"win": "2.206" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include "LevelInfoLayer.hpp" | ||
|
||
using namespace geode::prelude; | ||
using namespace persistenceAPI; | ||
|
||
unsigned long long s_levelInfoLayerDelegate1 = 0; | ||
unsigned long long s_levelInfoLayerDelegate2 = 0; | ||
|
||
// overrides | ||
|
||
void PSLevelInfoLayer::onPlay(cocos2d::CCObject* i_sender) { | ||
// stupid way of not letting it unregister the keyboard delegates | ||
s_levelInfoLayerDelegate1 = reinterpret_cast<unsigned long long>(&m_bTouchEnabled)-3*sizeof(void*); | ||
s_levelInfoLayerDelegate2 = reinterpret_cast<unsigned long long>(&m_bTouchEnabled)-2*sizeof(void*); | ||
|
||
LevelInfoLayer::onPlay(i_sender); | ||
|
||
s_levelInfoLayerDelegate1 = 0; | ||
s_levelInfoLayerDelegate2 = 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#pragma once | ||
#include "Geode/binding/LevelInfoLayer.hpp" | ||
#include <Geode/Geode.hpp> | ||
#include <Geode/modify/LevelInfoLayer.hpp> | ||
#include <sabe.persistenceapi/include/PersistenceAPI.hpp> | ||
|
||
extern unsigned long long s_levelInfoLayerDelegate1; | ||
extern unsigned long long s_levelInfoLayerDelegate2; | ||
|
||
class $modify(PSLevelInfoLayer, LevelInfoLayer) { | ||
public: | ||
struct Fields { | ||
unsigned long long m_keyboardDelegate1; | ||
unsigned long long m_keyboardDelegate2; | ||
}; | ||
|
||
// overrides | ||
$override | ||
void onPlay(cocos2d::CCObject* i_sender); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include "CCKeyboardDispatcher.hpp" | ||
#include "Geode/cocos/robtop/keyboard_dispatcher/CCKeyboardDispatcher.h" | ||
#include <hooks/PlayLayer.hpp> | ||
|
||
using namespace geode::prelude; | ||
using namespace persistenceAPI; | ||
|
||
// overrides | ||
|
||
void PSCCKeyboardDispatcher::removeDelegate(cocos2d::CCKeyboardDelegate* i_delegate) { | ||
if (s_levelInfoLayerDelegate1 == reinterpret_cast<unsigned long long>(i_delegate) || s_levelInfoLayerDelegate2 == reinterpret_cast<unsigned long long>(i_delegate)) { | ||
return; | ||
} | ||
CCKeyboardDispatcher::removeDelegate(i_delegate); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#pragma once | ||
#include "Geode/cocos/robtop/keyboard_dispatcher/CCKeyboardDelegate.h" | ||
#include <Geode/Geode.hpp> | ||
#include <Geode/modify/CCKeyboardDispatcher.hpp> | ||
#include <sabe.persistenceapi/include/PersistenceAPI.hpp> | ||
|
||
extern unsigned long long s_levelInfoLayerDelegate1; | ||
extern unsigned long long s_levelInfoLayerDelegate2; | ||
|
||
class $modify(PSCCKeyboardDispatcher, cocos2d::CCKeyboardDispatcher) { | ||
public: | ||
// overrides | ||
$override | ||
void removeDelegate(cocos2d::CCKeyboardDelegate* i_delegate); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters