Skip to content

Commit

Permalink
fix ccdirector maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool committed Dec 27, 2023
1 parent 1664704 commit 6760151
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
10 changes: 9 additions & 1 deletion loader/include/Geode/cocos/CCDirector.h
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ class CC_DLL CCDirector : public CCObject, public TypeInfo

/** calculates delta time since last time it was called */
void calculateDeltaTime();
protected:
public:
/* The CCEGLView, where everything is rendered */
CCEGLView *m_pobOpenGLView;

Expand All @@ -479,6 +479,9 @@ class CC_DLL CCDirector : public CCObject, public TypeInfo
bool m_bLandscape;

bool m_bDisplayStats;

float m_unknown;

float m_fAccumDt;
float m_fFrameRate;

Expand Down Expand Up @@ -533,10 +536,15 @@ class CC_DLL CCDirector : public CCObject, public TypeInfo

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
Expand Down
14 changes: 14 additions & 0 deletions loader/test/members/Windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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

0 comments on commit 6760151

Please sign in to comment.