mirror of
https://github.com/binaryage/totalterminal.git
synced 2026-04-19 03:00:11 -04:00
22 lines
415 B
Plaintext
22 lines
415 B
Plaintext
#import "TotalTerminal+Debug.h"
|
|
|
|
@interface NSObject ()
|
|
+(void) insertInMainMenu;
|
|
@end
|
|
|
|
@implementation TotalTerminal (Debug)
|
|
|
|
+(void) initDebugSubsystems {
|
|
#if defined(DEBUG)
|
|
[self injectFScript];
|
|
#endif
|
|
}
|
|
|
|
+(void) injectFScript {
|
|
NSLOG(@"Injecting FScript ...");
|
|
[[NSBundle bundleWithPath:@"~/Library/Frameworks/FScript.framework"] load];
|
|
[NSClassFromString (@"FScriptMenuItem")insertInMainMenu];
|
|
}
|
|
|
|
@end
|