author | koda |
Wed, 11 May 2011 01:26:38 +0200 | |
changeset 5206 | db775bddf771 |
parent 5002 | a9c44a8ffec8 |
child 5208 | 878e551f0b4a |
permissions | -rw-r--r-- |
3829 | 1 |
/* |
2 |
* Hedgewars-iOS, a Hedgewars port for iOS devices |
|
4976 | 3 |
* Copyright (c) 2009-2011 Vittorio Giovara <vittorio.giovara@gmail.com> |
3829 | 4 |
* |
5 |
* This program is free software; you can redistribute it and/or modify |
|
6 |
* it under the terms of the GNU General Public License as published by |
|
7 |
* the Free Software Foundation; version 2 of the License |
|
8 |
* |
|
9 |
* This program is distributed in the hope that it will be useful, |
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
* GNU General Public License for more details. |
|
13 |
* |
|
14 |
* You should have received a copy of the GNU General Public License |
|
15 |
* along with this program; if not, write to the Free Software |
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
17 |
* |
|
18 |
* File created on 08/01/2010. |
|
19 |
*/ |
|
20 |
||
3547 | 21 |
|
22 |
#import "MainMenuViewController.h" |
|
4281 | 23 |
#import "CreationChamber.h" |
3547 | 24 |
#import "PascalImports.h" |
25 |
#import "GameConfigViewController.h" |
|
26 |
#import "SplitViewRootController.h" |
|
3703
12d17c6e8855
halfway-through finishing the frontend with new graphics by Tiy + initial 'About' page set up
koda
parents:
3701
diff
changeset
|
27 |
#import "AboutViewController.h" |
3893
568bfd083465
allow more flexibility between viewcontrollers, also added stub pages for saved games
koda
parents:
3891
diff
changeset
|
28 |
#import "SavedGamesViewController.h" |
4547 | 29 |
#import "ServerSetup.h" |
3547 | 30 |
|
31 |
@implementation MainMenuViewController |
|
3923
694e6f6e0e30
various classes updates (new version in mainmenu, opt in mapconfig, clear all in savegames)
koda
parents:
3903
diff
changeset
|
32 |
@synthesize gameConfigViewController, settingsViewController, aboutViewController, savedGamesViewController; |
3547 | 33 |
|
34 |
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation { |
|
35 |
return rotationManager(interfaceOrientation); |
|
36 |
} |
|
37 |
||
3884 | 38 |
// check if some configuration files are already set; if they are present it means that the current copy must be updated |
39 |
-(void) createNecessaryFiles { |
|
4284
57a501a69e5f
update iFrontend with new schemes and weaps, fix up smaller glitches
koda
parents:
4281
diff
changeset
|
40 |
NSString *resourcesDir = [[NSBundle mainBundle] resourcePath]; |
3923
694e6f6e0e30
various classes updates (new version in mainmenu, opt in mapconfig, clear all in savegames)
koda
parents:
3903
diff
changeset
|
41 |
DLog(@"Creating necessary files"); |
3737
2ba6ac8a114b
reworked the initialization functions, now it should be safe to update and no more need of spinning wheel at first launch
koda
parents:
3703
diff
changeset
|
42 |
|
4281 | 43 |
// SAVES - just delete and overwrite |
3923
694e6f6e0e30
various classes updates (new version in mainmenu, opt in mapconfig, clear all in savegames)
koda
parents:
3903
diff
changeset
|
44 |
if ([[NSFileManager defaultManager] fileExistsAtPath:SAVES_DIRECTORY()]) |
694e6f6e0e30
various classes updates (new version in mainmenu, opt in mapconfig, clear all in savegames)
koda
parents:
3903
diff
changeset
|
45 |
[[NSFileManager defaultManager] removeItemAtPath:SAVES_DIRECTORY() error:NULL]; |
694e6f6e0e30
various classes updates (new version in mainmenu, opt in mapconfig, clear all in savegames)
koda
parents:
3903
diff
changeset
|
46 |
[[NSFileManager defaultManager] createDirectoryAtPath:SAVES_DIRECTORY() withIntermediateDirectories:NO attributes:nil error:NULL]; |
3752
73c2d7d5643b
add the new flag, fix a couple of hicups in creating config files, swap animation between settings and lobby
koda
parents:
3738
diff
changeset
|
47 |
|
5206 | 48 |
// SETTINGS - nsuserdefaults ftw |
49 |
createSettings(); |
|
4281 | 50 |
|
51 |
// TEAMS - update exisiting teams with new format |
|
52 |
if ([[NSFileManager defaultManager] fileExistsAtPath:TEAMS_DIRECTORY()] == NO) { |
|
53 |
[[NSFileManager defaultManager] createDirectoryAtPath:TEAMS_DIRECTORY() |
|
54 |
withIntermediateDirectories:YES |
|
55 |
attributes:nil |
|
56 |
error:NULL]; |
|
57 |
// we copy teams only the first time because it's unlikely that newer ones are going to be added |
|
4284
57a501a69e5f
update iFrontend with new schemes and weaps, fix up smaller glitches
koda
parents:
4281
diff
changeset
|
58 |
NSString *baseTeamsDir = [[NSString alloc] initWithFormat:@"%@/Settings/Teams/",resourcesDir]; |
4281 | 59 |
for (NSString *str in [[NSFileManager defaultManager] contentsOfDirectoryAtPath:baseTeamsDir error:NULL]) { |
4463 | 60 |
NSString *sourceFile = [baseTeamsDir stringByAppendingString:str]; |
61 |
NSString *destinationFile = [TEAMS_DIRECTORY() stringByAppendingString:str]; |
|
4284
57a501a69e5f
update iFrontend with new schemes and weaps, fix up smaller glitches
koda
parents:
4281
diff
changeset
|
62 |
[[NSFileManager defaultManager] removeItemAtPath:destinationFile error:NULL]; |
4281 | 63 |
[[NSFileManager defaultManager] copyItemAtPath:sourceFile toPath:destinationFile error:NULL]; |
4284
57a501a69e5f
update iFrontend with new schemes and weaps, fix up smaller glitches
koda
parents:
4281
diff
changeset
|
64 |
} |
57a501a69e5f
update iFrontend with new schemes and weaps, fix up smaller glitches
koda
parents:
4281
diff
changeset
|
65 |
[baseTeamsDir release]; |
4281 | 66 |
} |
4463 | 67 |
// merge not needed as format rarely changes |
4281 | 68 |
|
4463 | 69 |
// SCHEMES - always overwrite and delete custom ones |
70 |
if ([[NSFileManager defaultManager] fileExistsAtPath:SCHEMES_DIRECTORY()] == YES) |
|
71 |
[[NSFileManager defaultManager] removeItemAtPath:SCHEMES_DIRECTORY() error:NULL]; |
|
4284
57a501a69e5f
update iFrontend with new schemes and weaps, fix up smaller glitches
koda
parents:
4281
diff
changeset
|
72 |
NSString *baseSchemesDir = [[NSString alloc] initWithFormat:@"%@/Settings/Schemes/",resourcesDir]; |
4463 | 73 |
[[NSFileManager defaultManager] copyItemAtPath:baseSchemesDir toPath:SCHEMES_DIRECTORY() error:NULL]; |
74 |
||
4281 | 75 |
|
76 |
// WEAPONS - always overwrite |
|
4149
51200479f9d8
update ios port with new health modes, increase sd turns, new game modes, fixed bugs that prevented the creation of AI controlled teams, revisited update modes
koda
parents:
3996
diff
changeset
|
77 |
if ([[NSFileManager defaultManager] fileExistsAtPath:WEAPONS_DIRECTORY()] == NO) |
3923
694e6f6e0e30
various classes updates (new version in mainmenu, opt in mapconfig, clear all in savegames)
koda
parents:
3903
diff
changeset
|
78 |
[[NSFileManager defaultManager] createDirectoryAtPath:WEAPONS_DIRECTORY() |
694e6f6e0e30
various classes updates (new version in mainmenu, opt in mapconfig, clear all in savegames)
koda
parents:
3903
diff
changeset
|
79 |
withIntermediateDirectories:YES |
694e6f6e0e30
various classes updates (new version in mainmenu, opt in mapconfig, clear all in savegames)
koda
parents:
3903
diff
changeset
|
80 |
attributes:nil |
4281 | 81 |
error:NULL]; |
4149
51200479f9d8
update ios port with new health modes, increase sd turns, new game modes, fixed bugs that prevented the creation of AI controlled teams, revisited update modes
koda
parents:
3996
diff
changeset
|
82 |
createWeaponNamed(@"Default", 0); |
51200479f9d8
update ios port with new health modes, increase sd turns, new game modes, fixed bugs that prevented the creation of AI controlled teams, revisited update modes
koda
parents:
3996
diff
changeset
|
83 |
createWeaponNamed(@"Crazy", 1); |
4287 | 84 |
createWeaponNamed(@"Pro Mode", 2); |
4149
51200479f9d8
update ios port with new health modes, increase sd turns, new game modes, fixed bugs that prevented the creation of AI controlled teams, revisited update modes
koda
parents:
3996
diff
changeset
|
85 |
createWeaponNamed(@"Shoppa", 3); |
4287 | 86 |
createWeaponNamed(@"Clean Slate", 4); |
4149
51200479f9d8
update ios port with new health modes, increase sd turns, new game modes, fixed bugs that prevented the creation of AI controlled teams, revisited update modes
koda
parents:
3996
diff
changeset
|
87 |
createWeaponNamed(@"Minefield", 5); |
4284
57a501a69e5f
update iFrontend with new schemes and weaps, fix up smaller glitches
koda
parents:
4281
diff
changeset
|
88 |
createWeaponNamed(@"Thinking with Portals", 6); |
4463 | 89 |
// merge not needed because weapons not present in the set are 0ed by GameSetup |
3884 | 90 |
} |
91 |
||
92 |
#pragma mark - |
|
3923
694e6f6e0e30
various classes updates (new version in mainmenu, opt in mapconfig, clear all in savegames)
koda
parents:
3903
diff
changeset
|
93 |
-(void) viewDidLoad { |
694e6f6e0e30
various classes updates (new version in mainmenu, opt in mapconfig, clear all in savegames)
koda
parents:
3903
diff
changeset
|
94 |
[super viewDidLoad]; |
3884 | 95 |
|
3923
694e6f6e0e30
various classes updates (new version in mainmenu, opt in mapconfig, clear all in savegames)
koda
parents:
3903
diff
changeset
|
96 |
// listen to request to remove the modalviewcontroller (needed due to the splitcontroller) |
3884 | 97 |
[[NSNotificationCenter defaultCenter] addObserver:self |
98 |
selector:@selector(dismissModalViewController) |
|
99 |
name: @"dismissModalView" |
|
100 |
object:nil]; |
|
101 |
||
3923
694e6f6e0e30
various classes updates (new version in mainmenu, opt in mapconfig, clear all in savegames)
koda
parents:
3903
diff
changeset
|
102 |
// get the app's version |
694e6f6e0e30
various classes updates (new version in mainmenu, opt in mapconfig, clear all in savegames)
koda
parents:
3903
diff
changeset
|
103 |
NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString*)kCFBundleVersionKey]; |
694e6f6e0e30
various classes updates (new version in mainmenu, opt in mapconfig, clear all in savegames)
koda
parents:
3903
diff
changeset
|
104 |
|
694e6f6e0e30
various classes updates (new version in mainmenu, opt in mapconfig, clear all in savegames)
koda
parents:
3903
diff
changeset
|
105 |
// get the version number that we've been tracking |
694e6f6e0e30
various classes updates (new version in mainmenu, opt in mapconfig, clear all in savegames)
koda
parents:
3903
diff
changeset
|
106 |
NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults]; |
694e6f6e0e30
various classes updates (new version in mainmenu, opt in mapconfig, clear all in savegames)
koda
parents:
3903
diff
changeset
|
107 |
NSString *trackingVersion = [userDefaults stringForKey:@"HedgeVersion"]; |
694e6f6e0e30
various classes updates (new version in mainmenu, opt in mapconfig, clear all in savegames)
koda
parents:
3903
diff
changeset
|
108 |
|
694e6f6e0e30
various classes updates (new version in mainmenu, opt in mapconfig, clear all in savegames)
koda
parents:
3903
diff
changeset
|
109 |
if (trackingVersion == nil || [trackingVersion isEqualToString:version] == NO) { |
694e6f6e0e30
various classes updates (new version in mainmenu, opt in mapconfig, clear all in savegames)
koda
parents:
3903
diff
changeset
|
110 |
[userDefaults setObject:version forKey:@"HedgeVersion"]; |
694e6f6e0e30
various classes updates (new version in mainmenu, opt in mapconfig, clear all in savegames)
koda
parents:
3903
diff
changeset
|
111 |
[userDefaults synchronize]; |
694e6f6e0e30
various classes updates (new version in mainmenu, opt in mapconfig, clear all in savegames)
koda
parents:
3903
diff
changeset
|
112 |
[self createNecessaryFiles]; |
694e6f6e0e30
various classes updates (new version in mainmenu, opt in mapconfig, clear all in savegames)
koda
parents:
3903
diff
changeset
|
113 |
} |
4752 | 114 |
|
115 |
/* |
|
4547 | 116 |
ServerSetup *setup = [[ServerSetup alloc] init]; |
117 |
if ([setup isNetworkReachable]) { |
|
118 |
DLog(@"network is reachable"); |
|
119 |
[NSThread detachNewThreadSelector:@selector(serverProtocol) |
|
120 |
toTarget:setup |
|
121 |
withObject:nil]; |
|
122 |
} |
|
123 |
[setup release]; |
|
4752 | 124 |
*/ |
3547 | 125 |
} |
126 |
||
127 |
||
128 |
#pragma mark - |
|
129 |
-(IBAction) switchViews:(id) sender { |
|
130 |
UIButton *button = (UIButton *)sender; |
|
131 |
UIAlertView *alert; |
|
3893
568bfd083465
allow more flexibility between viewcontrollers, also added stub pages for saved games
koda
parents:
3891
diff
changeset
|
132 |
NSString *xib = nil; |
568bfd083465
allow more flexibility between viewcontrollers, also added stub pages for saved games
koda
parents:
3891
diff
changeset
|
133 |
NSString *debugStr = nil; |
3547 | 134 |
|
3783 | 135 |
playSound(@"clickSound"); |
3547 | 136 |
switch (button.tag) { |
137 |
case 0: |
|
3701 | 138 |
if (nil == self.gameConfigViewController) { |
3996 | 139 |
if (IS_IPAD()) |
3737
2ba6ac8a114b
reworked the initialization functions, now it should be safe to update and no more need of spinning wheel at first launch
koda
parents:
3703
diff
changeset
|
140 |
xib = nil; |
2ba6ac8a114b
reworked the initialization functions, now it should be safe to update and no more need of spinning wheel at first launch
koda
parents:
3703
diff
changeset
|
141 |
else |
2ba6ac8a114b
reworked the initialization functions, now it should be safe to update and no more need of spinning wheel at first launch
koda
parents:
3703
diff
changeset
|
142 |
xib = @"GameConfigViewController"; |
2ba6ac8a114b
reworked the initialization functions, now it should be safe to update and no more need of spinning wheel at first launch
koda
parents:
3703
diff
changeset
|
143 |
|
2ba6ac8a114b
reworked the initialization functions, now it should be safe to update and no more need of spinning wheel at first launch
koda
parents:
3703
diff
changeset
|
144 |
GameConfigViewController *gcvc = [[GameConfigViewController alloc] initWithNibName:xib bundle:nil]; |
3752
73c2d7d5643b
add the new flag, fix a couple of hicups in creating config files, swap animation between settings and lobby
koda
parents:
3738
diff
changeset
|
145 |
gcvc.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; |
3701 | 146 |
self.gameConfigViewController = gcvc; |
147 |
[gcvc release]; |
|
148 |
} |
|
3547 | 149 |
|
3701 | 150 |
[self presentModalViewController:self.gameConfigViewController animated:YES]; |
3547 | 151 |
break; |
152 |
case 2: |
|
3701 | 153 |
if (nil == self.settingsViewController) { |
154 |
SplitViewRootController *svrc = [[SplitViewRootController alloc] initWithNibName:nil bundle:nil]; |
|
3753 | 155 |
svrc.modalTransitionStyle = UIModalTransitionStyleCoverVertical; |
3701 | 156 |
self.settingsViewController = svrc; |
157 |
[svrc release]; |
|
3547 | 158 |
} |
3697 | 159 |
|
3701 | 160 |
[self presentModalViewController:self.settingsViewController animated:YES]; |
3547 | 161 |
break; |
162 |
case 3: |
|
3893
568bfd083465
allow more flexibility between viewcontrollers, also added stub pages for saved games
koda
parents:
3891
diff
changeset
|
163 |
#ifdef DEBUG |
3547 | 164 |
debugStr = [[NSString alloc] initWithContentsOfFile:DEBUG_FILE()]; |
165 |
UITextView *scroll = [[UITextView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.height, self.view.frame.size.width)]; |
|
166 |
scroll.text = debugStr; |
|
167 |
[debugStr release]; |
|
168 |
scroll.editable = NO; |
|
3697 | 169 |
|
3547 | 170 |
UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom]; |
171 |
[btn addTarget:scroll action:@selector(removeFromSuperview) forControlEvents:UIControlEventTouchUpInside]; |
|
172 |
btn.backgroundColor = [UIColor blackColor]; |
|
173 |
btn.frame = CGRectMake(self.view.frame.size.height-70, 0, 70, 70); |
|
174 |
[scroll addSubview:btn]; |
|
175 |
[self.view addSubview:scroll]; |
|
176 |
[scroll release]; |
|
3893
568bfd083465
allow more flexibility between viewcontrollers, also added stub pages for saved games
koda
parents:
3891
diff
changeset
|
177 |
#else |
568bfd083465
allow more flexibility between viewcontrollers, also added stub pages for saved games
koda
parents:
3891
diff
changeset
|
178 |
if (nil == self.aboutViewController) { |
568bfd083465
allow more flexibility between viewcontrollers, also added stub pages for saved games
koda
parents:
3891
diff
changeset
|
179 |
AboutViewController *about = [[AboutViewController alloc] initWithNibName:@"AboutViewController" bundle:nil]; |
568bfd083465
allow more flexibility between viewcontrollers, also added stub pages for saved games
koda
parents:
3891
diff
changeset
|
180 |
about.modalTransitionStyle = UIModalTransitionStyleCoverVertical; |
4358 | 181 |
if ([about respondsToSelector:@selector(setModalPresentationStyle:)]) |
182 |
about.modalPresentationStyle = UIModalPresentationFormSheet; |
|
3893
568bfd083465
allow more flexibility between viewcontrollers, also added stub pages for saved games
koda
parents:
3891
diff
changeset
|
183 |
self.aboutViewController = about; |
568bfd083465
allow more flexibility between viewcontrollers, also added stub pages for saved games
koda
parents:
3891
diff
changeset
|
184 |
[about release]; |
568bfd083465
allow more flexibility between viewcontrollers, also added stub pages for saved games
koda
parents:
3891
diff
changeset
|
185 |
} |
568bfd083465
allow more flexibility between viewcontrollers, also added stub pages for saved games
koda
parents:
3891
diff
changeset
|
186 |
[self presentModalViewController:self.aboutViewController animated:YES]; |
568bfd083465
allow more flexibility between viewcontrollers, also added stub pages for saved games
koda
parents:
3891
diff
changeset
|
187 |
#endif |
568bfd083465
allow more flexibility between viewcontrollers, also added stub pages for saved games
koda
parents:
3891
diff
changeset
|
188 |
break; |
568bfd083465
allow more flexibility between viewcontrollers, also added stub pages for saved games
koda
parents:
3891
diff
changeset
|
189 |
case 4: |
568bfd083465
allow more flexibility between viewcontrollers, also added stub pages for saved games
koda
parents:
3891
diff
changeset
|
190 |
if (nil == self.savedGamesViewController) { |
568bfd083465
allow more flexibility between viewcontrollers, also added stub pages for saved games
koda
parents:
3891
diff
changeset
|
191 |
SavedGamesViewController *savedgames = [[SavedGamesViewController alloc] initWithNibName:@"SavedGamesViewController" bundle:nil]; |
568bfd083465
allow more flexibility between viewcontrollers, also added stub pages for saved games
koda
parents:
3891
diff
changeset
|
192 |
savedgames.modalTransitionStyle = UIModalTransitionStyleCoverVertical; |
4358 | 193 |
if ([savedgames respondsToSelector:@selector(setModalPresentationStyle:)]) |
194 |
savedgames.modalPresentationStyle = UIModalPresentationPageSheet; |
|
3893
568bfd083465
allow more flexibility between viewcontrollers, also added stub pages for saved games
koda
parents:
3891
diff
changeset
|
195 |
self.savedGamesViewController = savedgames; |
568bfd083465
allow more flexibility between viewcontrollers, also added stub pages for saved games
koda
parents:
3891
diff
changeset
|
196 |
[savedgames release]; |
568bfd083465
allow more flexibility between viewcontrollers, also added stub pages for saved games
koda
parents:
3891
diff
changeset
|
197 |
} |
568bfd083465
allow more flexibility between viewcontrollers, also added stub pages for saved games
koda
parents:
3891
diff
changeset
|
198 |
|
568bfd083465
allow more flexibility between viewcontrollers, also added stub pages for saved games
koda
parents:
3891
diff
changeset
|
199 |
[self presentModalViewController:self.savedGamesViewController animated:YES]; |
3547 | 200 |
break; |
201 |
default: |
|
202 |
alert = [[UIAlertView alloc] initWithTitle:@"Not Yet Implemented" |
|
203 |
message:@"Sorry, this feature is not yet implemented" |
|
204 |
delegate:nil |
|
205 |
cancelButtonTitle:@"Well, don't worry" |
|
206 |
otherButtonTitles:nil]; |
|
207 |
[alert show]; |
|
208 |
[alert release]; |
|
209 |
break; |
|
210 |
} |
|
211 |
} |
|
212 |
||
3753 | 213 |
// must be kept for compatibility with the settings page |
3547 | 214 |
-(void) dismissModalViewController { |
215 |
[self dismissModalViewControllerAnimated:YES]; |
|
216 |
} |
|
217 |
||
218 |
-(void) viewDidUnload { |
|
3783 | 219 |
[[NSNotificationCenter defaultCenter] removeObserver:self]; |
3701 | 220 |
self.gameConfigViewController = nil; |
221 |
self.settingsViewController = nil; |
|
3703
12d17c6e8855
halfway-through finishing the frontend with new graphics by Tiy + initial 'About' page set up
koda
parents:
3701
diff
changeset
|
222 |
self.aboutViewController = nil; |
3893
568bfd083465
allow more flexibility between viewcontrollers, also added stub pages for saved games
koda
parents:
3891
diff
changeset
|
223 |
self.savedGamesViewController = nil; |
3662
a44406f4369b
polish polish polish polish (also: panning horizontal fix, panning momentum, settings page reworked yet again, memory leaks, crashes, segfaults)
koda
parents:
3660
diff
changeset
|
224 |
MSG_DIDUNLOAD(); |
3547 | 225 |
[super viewDidUnload]; |
226 |
} |
|
227 |
||
3971 | 228 |
-(void) didReceiveMemoryWarning { |
229 |
if (self.settingsViewController.view.superview == nil) |
|
230 |
self.settingsViewController = nil; |
|
231 |
if (self.gameConfigViewController.view.superview == nil) |
|
232 |
self.gameConfigViewController = nil; |
|
233 |
if (self.aboutViewController.view.superview == nil) |
|
234 |
self.aboutViewController = nil; |
|
235 |
if (self.savedGamesViewController.view.superview == nil) |
|
236 |
self.savedGamesViewController = nil; |
|
237 |
MSG_MEMCLEAN(); |
|
238 |
[super didReceiveMemoryWarning]; |
|
239 |
} |
|
240 |
||
3547 | 241 |
-(void) dealloc { |
242 |
[settingsViewController release]; |
|
243 |
[gameConfigViewController release]; |
|
3703
12d17c6e8855
halfway-through finishing the frontend with new graphics by Tiy + initial 'About' page set up
koda
parents:
3701
diff
changeset
|
244 |
[aboutViewController release]; |
3893
568bfd083465
allow more flexibility between viewcontrollers, also added stub pages for saved games
koda
parents:
3891
diff
changeset
|
245 |
[savedGamesViewController release]; |
3547 | 246 |
[super dealloc]; |
247 |
} |
|
248 |
||
249 |
@end |