]> git.saurik.com Git - veency.git/commitdiff
Add some debug logic to get the internal RFB logs.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 14 Dec 2014 12:15:37 +0000 (04:15 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 14 Dec 2014 12:15:37 +0000 (04:15 -0800)
Tweak.mm

index ccdda44b9c02f85d630133602e74f3b24a3320f9..3255b0d023e6e74385a1fb3a4e6875cd76efe164 100644 (file)
--- 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);