Add support for launching the game.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user