mac fixes: pass home before init, default fsaa to 0

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3536 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
core-code
2008-11-16 00:29:58 +00:00
parent c392b1efe9
commit afc0c3f891
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -10,10 +10,10 @@
<integer>4</integer>
<key>IBOpenObjects</key>
<array>
<integer>21</integer>
<integer>208</integer>
<integer>264</integer>
<integer>21</integer>
<integer>213</integer>
<integer>240</integer>
</array>
<key>IBSystem Version</key>
<string>9F33</string>
Binary file not shown.
+2 -2
View File
@@ -468,8 +468,8 @@ static int numberForKey(CFDictionaryRef desc, CFStringRef key)
NSArray *res = [[resolutions titleOfSelectedItem] componentsSeparatedByString:@" x "];
NSMutableArray *args = [NSMutableArray array];
[args addObject:@"--init"];
[args addObject:[NSString stringWithFormat:@"--home=%@", [Launcher userdir]]];
[args addObject:@"--init"];
[args addObject:[NSString stringWithFormat:@"-w%@", [res objectAtIndex:0]]];
[args addObject:[NSString stringWithFormat:@"-h%@", [res objectAtIndex:1]]];
@@ -482,7 +482,7 @@ static int numberForKey(CFDictionaryRef desc, CFStringRef key)
NSEnumerator *e = [[[defs nonNullStringForKey:dkADVANCEDOPTS] componentsSeparatedByString:@" "] objectEnumerator];
NSString *opt;
while(opt = [e nextObject]) if([opt length] != 0) [args addObject:opt]; //skip empty ones
while(opt = [e nextObject]) if([opt length] != 0) [args addObject:opt]; //skip empty ones
return [self launchGame:args];
}