Skip to content

Commit 0dc9797

Browse files
PrevterSpaghettDevmaxnut
authored
more mac bindings (geode-sdk#903)
* add matrix stuff * FMODAudioEngine ctor and setupAudioEngine for mac * setProjection * const * no const * remove kazmath * UILayer onCheck * add CCScene ctor * playSpeedParticle return type --------- Co-authored-by: SpaghettDev <[email protected]> Co-authored-by: NDrLEUxcwQsgKUWlrFELocR1z7QP <[email protected]>
1 parent 226991e commit 0dc9797

File tree

3 files changed

+51
-5
lines changed

3 files changed

+51
-5
lines changed

bindings/2.207/Cocos2d.bro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3216,4 +3216,3 @@ class cocos2d::CCLightning : cocos2d::CCNode, cocos2d::CCRGBAProtocol {
32163216
bool m_opacityModifyEnabled;
32173217
}
32183218

3219-

bindings/2.2074/Cocos2d.bro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ class cocos2d::CCScene : cocos2d::CCNode {
498498
int getHighestChildZ() = imac 0x27efb0, m1 0x2289cc;
499499

500500
// CCScene(cocos2d::CCScene const&);
501-
// CCScene() = ios 0x2508a4;
501+
CCScene() = imac 0x27ed80, m1 0x228780; // ios 0x2508a4;
502502
~CCScene() = imac 0x27ee70, m1 0x22887c;
503503

504504
virtual bool init() = m1 0x228894, imac 0x27eea0, ios 0x2401c0;
@@ -1737,7 +1737,7 @@ class cocos2d::CCDirector : cocos2d::CCObject, cocos2d::TypeInfo {
17371737
void setNextScene() = imac 0x470340;
17381738
void setNotificationNode(cocos2d::CCNode*) = m1 0x3e07d4, imac 0x471a70;
17391739
void setOpenGLView(cocos2d::CCEGLView*);
1740-
void setProjection(cocos2d::ccDirectorProjection);
1740+
void setProjection(cocos2d::ccDirectorProjection) = imac 0x46fc80, m1 0x3ded3c;
17411741
void setSceneReference(cocos2d::CCScene*);
17421742
void setSmoothFix(bool);
17431743
void setSmoothFixCheck(bool);

bindings/2.2074/GeometryDash.bro

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5203,7 +5203,54 @@ class FLAlertLayerProtocol {
52035203
[[link(android), depends(FMODAudioState), depends(FMODSoundState), depends(FMODMusic), depends(FMODSound), depends(FMODQueuedEffect), depends(FMODQueuedMusic), depends(FMODSoundTween)]]
52045204
class FMODAudioEngine : cocos2d::CCNode {
52055205
// virtual ~FMODAudioEngine();
5206-
FMODAudioEngine() = win 0x530d0;
5206+
FMODAudioEngine() = win 0x530d0, m1 inline, imac inline {
5207+
m_musicChannels = {};
5208+
m_unkMap180 = {};
5209+
m_unkMap1c0 = {};
5210+
m_musicVolume = .0f;
5211+
m_sfxVolume = .0f;
5212+
m_unusedInt164 = 0;
5213+
m_unusedInt168 = 0;
5214+
m_pulse1 = .0f;
5215+
m_pulse2 = .0f;
5216+
m_pulse3 = .0f;
5217+
m_pulseCounter = 0;
5218+
m_metering = false;
5219+
m_backgroundMusicChannel = nullptr;
5220+
m_system = nullptr;
5221+
m_mainDSP = nullptr;
5222+
m_globalChannelDSP = nullptr;
5223+
m_globalChannel = nullptr;
5224+
m_channelGroup2 = nullptr;
5225+
m_lastResult = FMOD_RESULT::FMOD_OK;
5226+
m_sampleRate = 0;
5227+
m_reducedQuality = false;
5228+
m_allAudioPaused = false;
5229+
m_musicOffset = 0;
5230+
m_unkBool1a8 = false;
5231+
m_unkInt1ac = 0;
5232+
m_audioState = {};
5233+
m_unkSoundVector = {};
5234+
m_unkDSPMap384 = {};
5235+
m_channelIDToChannel = {};
5236+
m_unkIntSet3bc = {};
5237+
m_reverbPreset = FMODReverbPreset::Generic;
5238+
m_unkMapIntInt3dc = {};
5239+
m_unkMapIntInt3f8 = {};
5240+
m_unkMapIntString414 = {};
5241+
m_queuedEffects = {};
5242+
m_unkMapStringSound43c = {};
5243+
m_unkMapIntChannelGroup458 = {};
5244+
m_unkMapIntChannelGroup474 = {};
5245+
m_unkInt490 = 0;
5246+
m_unkInt494 = 0;
5247+
m_unkInt498 = 0;
5248+
m_unkInt49c = 0;
5249+
m_unkInt4a0 = 0;
5250+
m_unkInt4a4 = 0;
5251+
m_unkInt4a8 = 0;
5252+
m_unkInt4ac = 0;
5253+
}
52075254
static FMODAudioEngine* get() {
52085255
return FMODAudioEngine::sharedEngine();
52095256
}
@@ -5360,7 +5407,7 @@ class FMODAudioEngine : cocos2d::CCNode {
53605407
}
53615408
void setMusicTimeMS(unsigned int, bool, int) = win 0x5c190, imac 0x3d0290, m1 0x357488;
53625409
void setup() = win 0x53bc0, m1 0x352b4c, imac 0x3ca220;
5363-
void setupAudioEngine() = win 0x540a0, imac 0x3ca670;
5410+
void setupAudioEngine() = win 0x540a0, m1 0x352f40, imac 0x3ca670;
53645411
void start() = win 0x55280;
53655412
TodoReturn startMusic(int, int, int, int, bool, int, bool, bool);
53665413
void stop();

0 commit comments

Comments
 (0)