Ignore:
Timestamp:
03/08/03 03:15:01 (19 years ago)
Author:
Nicholas Riley
Message:

ICeCoffEE 1.3.2b1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ICeCoffEE/ICeCoffEE/APEMain.m

    r89 r106  
    8989    OSStatus err = CPSGetCurrentProcess(&psn);
    9090    if (err != noErr) {
     91#if ICCF_DEBUG
     92        apeprintf("ICeCoffEE APE: Can't get process serial number for current process (error %ld); still loading because of ICCF_DEBUG\n", err);
     93#else
    9194        apeprintf("ICeCoffEE APE: Can't get process serial number for current process (error %ld); not loading in this application\n", err);
    9295        return;
     96#endif
    9397    }
    9498   
     
    96100    err = CPSGetProcessInfo(&psn, &info, NULL, 0, NULL, NULL, 0);
    97101    if (err != noErr) {
     102#if ICCF_DEBUG
     103        apeprintf("ICeCoffEE APE: Can't get process information (error %ld); still loading because of ICCF_DEBUG\n", err);
     104#else
    98105        apeprintf("ICeCoffEE APE: Can't get process information (error %ld); not loading in this application\n", err);
    99106        return;
     107#endif
    100108    }
    101109    ICapeprintf("ICeCoffEE APE: got process attributes = 0x%lx\n", info.Attributes);
     
    124132            ICapeprintf("ICeCoffEE APE: loaded in TermSubview for Terminal!\n");
    125133        } else if (CFStringCompare(bundleID, CFSTR("com.apple.safari"), kCFCompareCaseInsensitive) == kCFCompareEqualTo) {
     134#if ICCF_WEBKIT
    126135            ICCF_PatchMethod("WebHTMLView", "ICeCoffEEWebKit", "ICeCoffEEWebKitSuper", "mouseUp:") &&
    127136            ICCF_PatchMethod("WebHTMLView", "ICeCoffEEWebKit", "ICeCoffEEWebKitSuper", "mouseDown:") &&
    128137            ICCF_PatchMethod("WebHTMLView", "ICeCoffEEWebKit", "ICeCoffEEWebKitSuper", "menuForEvent:") ,
    129138            ICapeprintf("ICeCoffEE APE: loaded in WebHTMLView for Safari!\n");
     139#endif
    130140        }
    131141    }
Note: See TracChangeset for help on using the changeset viewer.