// // cocos2d::CCMessageBox from 0x100175b50 to 0x100175c5a (266 bytes) // // 0 xrefs: // // 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 // void __fastcall cocos2d::CCMessageBox(const char *a1, const char *a2) { NSString *v2; // rbx NSString *v3; // r15 NSAlert *v4; // rax NSAlert *v5; // r14 id v6; // rax id v7; // rbx id v8; // rax if ( !a2 ) { v2 = nullptr; if ( a1 ) goto LABEL_3; LABEL_5: v3 = nullptr; goto LABEL_6; } v2 = +[NSString stringWithUTF8String:](&OBJC_CLASS___NSString, "stringWithUTF8String:", a2); if ( !a1 ) goto LABEL_5; LABEL_3: v3 = +[NSString stringWithUTF8String:](&OBJC_CLASS___NSString, "stringWithUTF8String:", a1); LABEL_6: v4 = objc_alloc_init(&OBJC_CLASS___NSAlert); v5 = objc_autorelease(v4); -[NSAlert addButtonWithTitle:](v5, "addButtonWithTitle:", CFSTR("OK")); -[NSAlert setMessageText:](v5, "setMessageText:", v3); -[NSAlert setInformativeText:](v5, "setInformativeText:", v2); -[NSAlert setAlertStyle:](v5, "setAlertStyle:", 0); v6 = +[EAGLView sharedEGLView](&OBJC_CLASS___EAGLView, "sharedEGLView"); v7 = objc_msgSend(v6, "window"); v8 = objc_msgSend(v7, "delegate"); -[NSAlert beginSheetModalForWindow:modalDelegate:didEndSelector:contextInfo:]( v5, "beginSheetModalForWindow:modalDelegate:didEndSelector:contextInfo:", v7, v8, 0, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source