Add support for launching the game.

This commit is contained in:
Paul Chote
2010-11-16 10:55:36 +13:00
parent 5cbfc45819
commit 16dd07bab3
11 changed files with 211 additions and 7 deletions

View File

@@ -8,6 +8,7 @@
#import "Controller.h"
#import "ModEntry.h"
#import "GameInstall.h"
#import "ImageAndTextCell.h"
@implementation Controller
@@ -24,6 +25,8 @@
[outlineView reloadData];
[outlineView expandItem:[outlineView itemAtRow:1] expandChildren:YES];
[outlineView selectRowIndexes:[NSIndexSet indexSetWithIndex:1] byExtendingSelection:NO];
game = [[GameInstall alloc] initWithPath:@"/Users/paul/src/OpenRA"];
}
- (void) dealloc
@@ -110,4 +113,9 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn
}
}
}
- (IBAction)launchGame:(id)sender
{
[game launchGame];
}
@end