Skip to content

Commit 79d8f8f

Browse files
authored
getStarLevelKey is inlined on windows
1 parent 694e683 commit 79d8f8f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

bindings/2.2074/GeometryDash.bro

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8279,7 +8279,13 @@ class GameStatsManager : cocos2d::CCNode {
82798279
TodoReturn getSpecialChestKeyForItem(int, UnlockType);
82808280
TodoReturn getSpecialRewardDescription(gd::string, bool);
82818281
gd::string getSpecialUnlockDescription(int, UnlockType, bool) = win 0x1e6fb0, m1 0x6b4a4, imac 0x77bb0, ios 0x336794;
8282-
char const* getStarLevelKey(GJGameLevel*) = m1 0x60ce4, imac 0x6d1a0, ios 0x330a04;
8282+
char const* getStarLevelKey(GJGameLevel*) = win inline, m1 0x60ce4, imac 0x6d1a0, ios 0x330a04 {
8283+
int dailyID = level->m_dailyID.value();
8284+
if (dailyID > 0) return cocos2d::CCString::createWithFormat("dstar_%i",dailyID)->getCString();
8285+
int levelID = level->m_levelID.value();
8286+
if (level->m_gauntletLevel) return cocos2d::CCString::createWithFormat("gstar_%i",levelID)->getCString();
8287+
return cocos2d::CCString::createWithFormat("star_%i",levelID)->getCString();
8288+
}
82838289
int getStat(char const*) = ios 0x32bf54, win 0x1d21e0, imac 0x66610, m1 0x5aca0;
82848290
TodoReturn getStatFromKey(StatKey);
82858291
TodoReturn getStoreItem(int, int);

0 commit comments

Comments
 (0)