fix ccdirector maybe

This commit is contained in:
matcool 2023-12-27 16:31:53 -03:00
parent 16647042ea
commit 67601514fd
2 changed files with 23 additions and 1 deletions

View file

@ -468,7 +468,7 @@ protected:
/** calculates delta time since last time it was called */
void calculateDeltaTime();
protected:
public:
/* The CCEGLView, where everything is rendered */
CCEGLView *m_pobOpenGLView;
@ -479,6 +479,9 @@ protected:
bool m_bLandscape;
bool m_bDisplayStats;
float m_unknown;
float m_fAccumDt;
float m_fFrameRate;
@ -533,10 +536,15 @@ protected:
RT_ADD(
CC_SYNTHESIZE(CCSceneDelegate*, m_pAppDelegate, SceneDelegate);
void* m_unknownPtr;
CCNode* m_unknownLabel;
CCSize m_obScaleFactor;
CCSize m_obResolutionInPixels;
CC_SYNTHESIZE_READONLY_NV(TextureQuality, m_eTextureQuality, LoadedTextureQuality);
CC_SYNTHESIZE_NV(bool, m_bDontCallWillSwitch, DontCallWillSwitch);
// these were just garbage memory in reclass
void* m_unknownPtr2;
void* m_unknownPtr3;
)
// CCEGLViewProtocol will recreate stats labels to fit visible rect

View file

@ -15,6 +15,14 @@ GEODE_SIZE_CHECK(CCLayerColor, 0x1b8);
// GEODE_SIZE_CHECK(CCLabelBMFont, 0x194);
GEODE_SIZE_CHECK(CCDirector, 0x130);
GEODE_MEMBER_CHECK(CCDirector, m_pobOpenGLView, 0x8c);
GEODE_MEMBER_CHECK(CCDirector, m_fFrameRate, 0xac);
GEODE_MEMBER_CHECK(CCDirector, m_pRunningScene, 0xcc);
GEODE_MEMBER_CHECK(CCDirector, m_pobScenesStack, 0xd8);
GEODE_MEMBER_CHECK(CCDirector, m_obWinSizeInPoints, 0xe8);
GEODE_MEMBER_CHECK(CCTextInputNode, m_allowedChars, 0x174);
GEODE_MEMBER_CHECK(CCTextInputNode, m_maxLabelWidth, 0x18c);
GEODE_MEMBER_CHECK(CCTextInputNode, m_maxLabelScale, 0x190);
@ -29,6 +37,12 @@ GEODE_MEMBER_CHECK(BoomListView, m_entries, 0x148);
GEODE_MEMBER_CHECK(TableView, m_cellArray, 0x1b0);
GEODE_MEMBER_CHECK(CCScrollLayerExt, m_cutContent, 0x16c);
GEODE_SIZE_CHECK(SliderThumb, 0x140);
GEODE_SIZE_CHECK(Slider, 0x158);
GEODE_MEMBER_CHECK(Slider, m_touchLogic, 0x13c);
GEODE_SIZE_CHECK(SliderTouchLogic, 0x178);
#endif