Skip to content

Commit e6191f9

Browse files
committed
Port most macOS bindings from 2.2074
1 parent 7347102 commit e6191f9

7 files changed

Lines changed: 4700 additions & 4706 deletions

File tree

bindings/2.2081/Cocos2d.bro

Lines changed: 559 additions & 559 deletions
Large diffs are not rendered by default.

bindings/2.2081/GeometryDash.bro

Lines changed: 4132 additions & 4132 deletions
Large diffs are not rendered by default.

bindings/2.2081/inline/CCMenuItemSpriteExtra.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void CCMenuItemSpriteExtra::useAnimationType(MenuAnimationType type) {
3232
}
3333
#endif
3434

35-
#if defined(GEODE_IS_IOS) || defined(GEODE_IS_MACOS) || defined(GEODE_IS_ANDROID)
35+
#if defined(GEODE_IS_IOS) || defined(GEODE_IS_ANDROID)
3636
CCMenuItemSpriteExtra::CCMenuItemSpriteExtra() {
3737
m_animationEnabled = false; //this is changed to true in init
3838
m_colorEnabled = false;

bindings/2.2081/inline/GJBaseGameLayer.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1714,7 +1714,7 @@ float GJBaseGameLayer::getGroundHeightForMode(int type) {
17141714
}
17151715
#endif
17161716

1717-
#if defined(GEODE_IS_IOS) || defined(GEODE_IS_MACOS)
1717+
#if defined(GEODE_IS_IOS) || defined(GEODE_IS_MACOS) || defined(GEODE_IS_ANDROID)
17181718

17191719
void GJBaseGameLayer::moveAreaObject(GameObject* object, float dx, float dy) {
17201720
auto result = this->resetAreaObjectValues(object, true);
@@ -1733,7 +1733,9 @@ void GJBaseGameLayer::moveAreaObject(GameObject* object, float dx, float dy) {
17331733
}
17341734
this->updateObjectSection(object);
17351735
}
1736+
#endif
17361737

1738+
#if defined(GEODE_IS_ANDROID)
17371739
bool GJBaseGameLayer::resetAreaObjectValues(GameObject* object, bool update) {
17381740
if (m_gameState.m_commandIndex <= object->m_unk4C8) return false;
17391741
if (update) this->updateAreaObjectLastValues(object);
@@ -1780,7 +1782,9 @@ bool GJBaseGameLayer::resetAreaObjectValues(GameObject* object, bool update) {
17801782
else this->updateAreaObjectLastValues(object);
17811783
return result;
17821784
}
1785+
#endif
17831786

1787+
#if defined(GEODE_IS_ANDROID) || defined(GEODE_IS_MACOS) || defined(GEODE_IS_IOS)
17841788
void GJBaseGameLayer::updateAreaObjectLastValues(GameObject* object) {
17851789
if (object->m_isDecoration2) return;
17861790
if (object->m_unk4C4 != m_gameState.m_commandIndex) {

bindings/2.2081/inline/GameObject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ void GameObject::updateTextKerning(int kerning) {}
4242

4343
int GameObject::getTextKerning() { return false; }
4444

45-
#if defined(GEODE_IS_WINDOWS) || defined(GEODE_IS_IOS)
4645
cocos2d::CCLabelBMFont* GameObject::getObjectLabel() { return nullptr; }
4746

47+
#if defined(GEODE_IS_WINDOWS) || defined(GEODE_IS_IOS)
4848
cocos2d::CCSprite* GameObject::addCustomBlackChild(gd::string frame, float opacity, bool color) {
4949
if (color) {
5050
return this->addCustomColorChild(frame);

bindings/2.2081/inline/ShaderLayer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include <Geode/Geode.hpp>
22

3+
#if !defined(GEODE_IS_MACOS)
34
ShaderLayer::ShaderLayer() {
45
m_timesyncShaderActions = false;
56
m_shader = nullptr;
@@ -12,6 +13,7 @@ ShaderLayer::ShaderLayer() {
1213
m_shockWaveTimeMult = 1.f;
1314
m_scaleFactor = 1.f;
1415
}
16+
#endif
1517

1618
#if defined(GEODE_IS_WINDOWS) || defined(GEODE_IS_IOS)
1719
void ShaderLayer::setupInvertColorShader() {

bindings/2.2081/inline/UpdateAccountSettingsPopup.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,3 @@ UpdateAccountSettingsPopup::~UpdateAccountSettingsPopup() {
1717
}
1818
#endif
1919

20-
#if defined(GEODE_IS_IOS) || defined(GEODE_IS_MACOS) || defined(GEODE_IS_ANDROID)
21-
UpdateAccountSettingsPopup* UpdateAccountSettingsPopup::create(GJAccountSettingsLayer* settingsLayer, int messageStatus, int friendStatus, int commentStatus, gd::string youtubeURL, gd::string twitterURL, gd::string twitchURL, gd::string instagramURL, gd::string tiktokURL, gd::string discordUsername, gd::string customString) {
22-
auto ret = new UpdateAccountSettingsPopup();
23-
if (ret->init(settingsLayer, messageStatus, friendStatus, commentStatus, youtubeURL, twitterURL, twitchURL, instagramURL, tiktokURL, discordUsername, customString)) {
24-
ret->autorelease();
25-
return ret;
26-
}
27-
delete ret;
28-
return nullptr;
29-
}
30-
#endif
31-

0 commit comments

Comments
 (0)