forked from firecore/Seas0nPass
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.m
More file actions
37 lines (23 loc) · 653 Bytes
/
main.m
File metadata and controls
37 lines (23 loc) · 653 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// main.m
// tetherKit
//
// Created by Kevin Bradley on 12/27/10.
// Copyright 2011 Fire Core, LLC. All rights reserved.
//
#ifdef DEBUG
#define LOG_PATH @"Library/Logs/SP_Debug_db.log"
#else
#define LOG_PATH @"Library/Logs/SP_Debug.log"
#endif
#import <Cocoa/Cocoa.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
//FIXME: COMMENT BACK IN BEFORE RELEASE!!!!
id pool = [NSAutoreleasePool new];
NSString *logPath = [NSHomeDirectory() stringByAppendingPathComponent:LOG_PATH];
freopen([logPath fileSystemRepresentation], "a", stderr);
[pool release];
return NSApplicationMain(argc, (const char **) argv);
}