Skip to content

Commit 432b0f2

Browse files
committed
fix android crash
1 parent db273bb commit 432b0f2

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

changelog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Changelog
2-
## <cg>v4.3.14</c> (2025-05-29)
2+
## <cg>v4.3.14 & v4.3.15</c> (2025-05-29)
33
* Other bugfixes & improvements
44

55
## <cg>v4.3.13</c> (2025-05-29)
66
* <cg>Added</c> <cl>support</c> for the recently introduced <cr>500 page limit</c> to <co>Find Last Page</c>
77
* <cg>Fixed</c> <cl>Smart Templates</c> being <cr>unclickable</c> on <cp>Android</c>
8-
* <cg>Fixed</c> <cl>Slaughterhouse</c> by icedcave showing <cr>incorrrect level length</c>
8+
* <cg>Fixed</c> Slaughterhouse by icedcave showing <cr>incorrect level length</c>
99

1010
## <cg>v4.3.12</c> (2025-05-27)
1111
* <cg>Improved</c> support for <cp>Amazon</c> versions of the game

mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"geode": "4.5.0",
3-
"version": "v4.3.14",
3+
"version": "v4.3.15",
44
"gd": {
55
"win": "2.2074",
66
"android": "2.2074",

src/hooks/LevelBrowserLayer.cpp

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

45
#include "../utils.hpp"
56
#include "../ui/DoubleArrow.h"
@@ -318,10 +319,12 @@ class BI_DLL
318319

319320
return LevelBrowserLayer::onInfo(sender);
320321
}
322+
};
321323

324+
class $modify(CCLayer) {
322325
void onEnterTransitionDidFinish() {
323-
LevelBrowserLayer::onEnterTransitionDidFinish();
326+
CCLayer::onEnterTransitionDidFinish();
324327

325-
if(typeinfo_cast<LevelBrowserLayer*>(this)) refreshButtonVisibility();
328+
if(typeinfo_cast<LevelBrowserLayer*>(this)) reinterpret_cast<BILevelBrowserLayer*>(this)->refreshButtonVisibility();
326329
}
327330
};

0 commit comments

Comments
 (0)