File tree Expand file tree Collapse file tree 3 files changed +12
-14
lines changed Expand file tree Collapse file tree 3 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -74,21 +74,13 @@ class BI_DLL $modify(MenuLayer) {
74
74
fixLevelLists ();
75
75
}
76
76
77
- /* Notification::create("important notification")->show();
78
- BetterInfo::showUnimportantNotification("unimportant 1", NotificationIcon::Success);
79
- BetterInfo::showUnimportantNotification("unimportant 2", NotificationIcon::Success);
80
- BetterInfo::showUnimportantNotification("unimportant 3", NotificationIcon::Success);
81
- BetterInfo::showUnimportantNotification("unimportant 4", NotificationIcon::Success);
82
- BetterInfo::showUnimportantNotification("unimportant 5", NotificationIcon::Success);
83
- BetterInfo::showUnimportantNotification("unimportant 6", NotificationIcon::Success);
84
- Notification::create("important notification 2")->show();*/
85
-
86
77
return true ;
87
78
}
88
79
};
89
80
90
- $execute {
91
- Loader::get ()->queueInMainThread ([] {
92
- loadManagers ();
93
- });
81
+ $on_mod(Loaded) {
82
+ #ifdef GEODE_IS_ANDROID
83
+ BetterInfo::setAmazon ((GJMoreGamesLayer* volatile )nullptr )->getMoreGamesList ()->count () == 0 );
84
+ #endif
85
+ loadManagers ();
94
86
}
Original file line number Diff line number Diff line change @@ -1110,6 +1110,11 @@ void BetterInfo::refreshAlertPrio(CCNode* node) {
1110
1110
}
1111
1111
}
1112
1112
1113
+ static bool s_isAmazon = false ;
1113
1114
bool BetterInfo::isAmazon () {
1114
- return GEODE_ANDROID (!((GJMoreGamesLayer* volatile )nullptr )->getMoreGamesList ()->count () ||) false ;
1115
+ return s_isAmazon;
1116
+ }
1117
+
1118
+ void BetterInfo::setAmazon (bool value) {
1119
+ s_isAmazon = value;
1115
1120
}
Original file line number Diff line number Diff line change @@ -112,4 +112,5 @@ namespace BetterInfo {
112
112
113
113
BI_DLL void refreshAlertPrio (CCNode* node);
114
114
BI_DLL bool isAmazon ();
115
+ BI_DLL void setAmazon (bool value);
115
116
}
You can’t perform that action at this time.
0 commit comments