fix appdelegate

This commit is contained in:
altalk23 2023-01-06 20:20:57 +03:00
parent 07e64c4dc9
commit c8cf6e20fd
2 changed files with 11 additions and 3 deletions
bindings
loader/include/Geode/cocos/layers_scenes_transitions_nodes

View file

@ -78,7 +78,7 @@ class AnimatedSpriteDelegate {
virtual void animationFinished(const char*) {}
}
class AppDelegate : cocos2d::CCApplication {
class AppDelegate : cocos2d::CCApplication, cocos2d::CCSceneDelegate {
void bgScale() = mac 0x3aaab0;
virtual bool applicationDidFinishLaunching() = mac 0x3aa900, win 0x3cbb0;
virtual void applicationDidEnterBackground() = mac 0x3aabe0, win 0x3cf40;

View file

@ -36,6 +36,15 @@ NS_CC_BEGIN
* @{
*/
// geode should use the cocos2d-x-gd imo
class CCScene;
class CC_DLL CCSceneDelegate {
public:
virtual void willSwitchToScene(CCScene* scene) {}
};
/** @brief CCScene is a subclass of CCNode that is used only as an abstract concept.
CCScene an CCNode are almost identical with the difference that CCScene has it's
@ -71,8 +80,7 @@ public:
int getHighestChildZ(void);
protected:
void* m_pIDK;
CCSceneDelegate* m_pDelegate;
)
};