From: Jay Freeman (saurik) Date: Sun, 14 Dec 2014 12:15:37 +0000 (-0800) Subject: Add some debug logic to get the internal RFB logs. X-Git-Tag: v0.9.3500~2 X-Git-Url: https://git.saurik.com/veency.git/commitdiff_plain/70c377edc4889dd4445fa0ebf12514ffaf500d4e Add some debug logic to get the internal RFB logs. --- diff --git a/Tweak.mm b/Tweak.mm index ccdda44..3255b0d 100644 --- a/Tweak.mm +++ b/Tweak.mm @@ -866,8 +866,18 @@ static CFTypeRef (*$GSSystemCopyCapability)(CFStringRef); static CFTypeRef (*$GSSystemGetCapability)(CFStringRef); static BOOL (*$MGGetBoolAnswer)(CFStringRef); +static void VNCLog(const char *format, ...) { + va_list args; + va_start(args, format); + NSLogv([NSString stringWithUTF8String:format], args); + va_end(args); +} + static void VNCSetup() { - rfbLogEnable(false); + if (true) + rfbLogEnable(false); + else + rfbLog = &VNCLog; @synchronized (condition_) { int argc(1);