// // DailyLevelPage::getDailyTimeString from 0x4d3f48 to 0x4d418a (578 bytes) // // 2 xrefs: // > DailyLevelPage::init @ 0x4d51e0 // > DailyLevelPage::updateTimers @ 0x4d591e // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // DailyLevelPage *__fastcall DailyLevelPage::getDailyTimeString(DailyLevelPage *this, int a2, int a3) { DailyLevelPage *v5; // r0 char *v6; // r1 int v7; // r3 cocos2d::CCString *v8; // r0 char *CString; // r0 char *v10; // r1 int v12; // [sp+4h] [bp-Ch] BYREF char *v13; // [sp+8h] [bp-8h] BYREF if ( *(_DWORD *)(a2 + 532) == 2 ) { rand(); if ( COERCE_FLOAT(roundf()) == 187.0 ) { v5 = this; v6 = "This message is extremely rare."; } else { rand(); switch ( lroundf() ) { case 0: v5 = this; v6 = "New event level in ... ?"; break; case 1: v5 = this; v6 = "Events are pretty random"; break; case 2: v5 = this; v6 = "Next event in random hours from now"; break; case 3: v5 = this; v6 = "When is the next event?"; break; case 4: v5 = this; v6 = "NEW EVENT! .... soon"; break; case 5: v5 = this; v6 = "Why did I program this..."; break; case 6: v5 = this; v6 = "I believe in you"; break; case 7: v5 = this; v6 = "You can do it"; break; case 8: v5 = this; v6 = "Next one is a banger"; break; case 9: v5 = this; v6 = "This is fun"; break; case 10: v5 = this; v6 = "I can't find anything"; break; case 11: v5 = this; v6 = "Why is this a thing?"; break; case 12: v5 = this; v6 = "Do or do not. There is no try"; break; case 13: v5 = this; v6 = "The cake is a lie"; break; case 14: v5 = this; v6 = "Challenge accepted"; break; case 15: v5 = this; v6 = "I wonder what's next"; break; case 16: v5 = this; v6 = "Welcome to the event"; break; case 17: v5 = this; v6 = "Jump cube, jump"; break; case 18: v5 = this; v6 = "No event for you"; break; case 19: v5 = this; v6 = "This looks interesting"; break; case 20: v5 = this; v6 = "Something epic is coming..."; break; case 21: v5 = this; v6 = "Unlocking something... or not"; break; case 22: v5 = this; v6 = "This could be legendary"; break; case 23: v5 = this; v6 = "I wonder if it's a demon?"; break; case 24: v5 = this; v6 = "A wild event appears!"; break; case 25: v5 = this; v6 = "Let me cook"; break; case 26: v5 = this; v6 = "Please wait, cooking."; break; case 27: v5 = this; v6 = "I don't think it's coming"; break; case 28: v5 = this; v6 = "Geometry Dashn't"; break; case 29: v5 = this; v6 = "Uber gamer moment"; break; default: v5 = this; v6 = "Free event is free"; break; } } sub_776584((int)v5, v6); } else { GameToolbox::getTimeString((GameToolbox *)&v12, a3, 0); v13 = (char *)&unk_ACDDA8; v7 = *(_DWORD *)(a2 + 532); if ( v7 == 1 ) { v10 = "Weekly Demon"; } else if ( v7 ) { if ( v7 == 2 ) v10 = "Event Level"; else v10 = "NA"; } else { v10 = "Daily Level"; } sub_7753D4((int)&v13, v10); v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"New %s in: %s", v13, v12); CString = (char *)cocos2d::CCString::getCString(v8); sub_776584((int)this, CString); sub_774008(&v13); sub_774008(&v12); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source