-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.m
25 lines (19 loc) · 830 Bytes
/
main.m
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
#import <libxml/globals.h>
#import <libxml/parser.h>
#import <libxslt/xslt.h>
#import <libexslt/exslt.h>
int main( int count, const char *arg[] ) {
srandom( time( NULL ) );
xmlInitParser();
exsltRegisterAll();
xmlSubstituteEntitiesDefault( 1 );
xmlLoadExtDtdDefaultValue = 1;
NSAutoreleasePool *pool = [[NSAutoreleasePool allocWithZone:nil] init];
NSString *newPreferencesPath = [@"~/Library/Preferences/info.colloquy.plist" stringByExpandingTildeInPath];
if( ! [[NSFileManager defaultManager] fileExistsAtPath:newPreferencesPath] ) {
NSString *oldPreferencesPath = [@"~/Library/Preferences/cc.javelin.colloquy.plist" stringByExpandingTildeInPath];
[[NSFileManager defaultManager] movePath:oldPreferencesPath toPath:newPreferencesPath handler:nil];
}
[pool release];
return NSApplicationMain( count, arg );
}