Add a WebView in preparation for the page info. Refactor SidebarEntry out of Mod. Add an "Other" category with links for support/credits+legal.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
#import "GameInstall.h"
|
||||
#import "ModEntry.h"
|
||||
#import "Mod.h"
|
||||
|
||||
@implementation GameInstall
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
{
|
||||
// Commit prev mod
|
||||
if (current != nil)
|
||||
[ret addObject:[ModEntry modWithId:current fields:fields]];
|
||||
[ret addObject:[Mod modWithId:current fields:fields]];
|
||||
NSLog(@"Parsing mod %@",value);
|
||||
current = value;
|
||||
fields = [NSMutableDictionary dictionary];
|
||||
@@ -89,25 +89,6 @@
|
||||
return ret;
|
||||
}
|
||||
|
||||
- (ModEntry *)modTree
|
||||
{
|
||||
// Get info for all installed mods
|
||||
id modnames = [self installedMods];
|
||||
NSArray *allMods = [self infoForMods:modnames];
|
||||
|
||||
ModEntry *rootItem = [ModEntry headerWithTitle:@"MODS"];
|
||||
for (id aMod in allMods)
|
||||
{
|
||||
if ([aMod standalone])
|
||||
{
|
||||
[rootItem addChild:aMod];
|
||||
[aMod buildChildTree:allMods];
|
||||
}
|
||||
}
|
||||
|
||||
return rootItem;
|
||||
}
|
||||
|
||||
-(void)launchGame
|
||||
{
|
||||
// Use LaunchServices because neither NSTask or NSWorkspace support Info.plist _and_ arguments pre-10.6
|
||||
|
||||
Reference in New Issue
Block a user