From e9aaed40cc170db9b9f516b0006e8b50e1f7e17b Mon Sep 17 00:00:00 2001 From: Explodingbill Date: Wed, 20 Nov 2024 09:32:06 +1100 Subject: [PATCH] f --- changelog.md | 1 + mod.json | 4 ++-- src/Labels/LabelHooks.cpp | 6 +++++- src/Labels/LabelHooks.hpp | 6 +++++- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/changelog.md b/changelog.md index 458545d..85c3839 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,7 @@ # 1.7.5-beta.4 - Fixed crash when closing the mod popup +- **Temporarily disabled labels on android because it caused crashes!!!** # 1.7.5-beta.3 diff --git a/mod.json b/mod.json index 77a76de..862a53a 100644 --- a/mod.json +++ b/mod.json @@ -1,6 +1,6 @@ { - "geode": "4.0.0-beta.1", - "version": "v1.7.5-beta.3", + "geode": "4.0.0", + "version": "v1.7.5-beta.4", "gd": { "win": "2.2074", "android": "2.2074", diff --git a/src/Labels/LabelHooks.cpp b/src/Labels/LabelHooks.cpp index b6856d1..bd55f5f 100644 --- a/src/Labels/LabelHooks.cpp +++ b/src/Labels/LabelHooks.cpp @@ -1,3 +1,5 @@ +#ifndef GEODE_IS_ANDROID + #include "LabelHooks.hpp" bool LabelsUILayer::init(GJBaseGameLayer* bgl) @@ -58,4 +60,6 @@ void LabelPlayLayer::destroyPlayer(PlayerObject* p0, GameObject* p1) as(m_uiLayer)->m_fields->labelLayer->setLastPercentage(getCurrentPercent()); PlayLayer::destroyPlayer(p0, p1); -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/src/Labels/LabelHooks.hpp b/src/Labels/LabelHooks.hpp index 9a549e4..842c46e 100644 --- a/src/Labels/LabelHooks.hpp +++ b/src/Labels/LabelHooks.hpp @@ -1,3 +1,5 @@ +#ifndef GEODE_IS_ANDROID + #pragma once #include @@ -30,4 +32,6 @@ class $modify (LabelBaseGameLayer, GJBaseGameLayer) class $modify (LabelPlayLayer, PlayLayer) { virtual void destroyPlayer(PlayerObject* p0, GameObject* p1); -}; \ No newline at end of file +}; + +#endif \ No newline at end of file