equal
deleted
inserted
replaced
61 [window release]; |
61 [window release]; |
62 [super dealloc]; |
62 [super dealloc]; |
63 } |
63 } |
64 |
64 |
65 -(IBAction) startSDLgame { |
65 -(IBAction) startSDLgame { |
66 |
|
67 [setup startThread:@"engineProtocol"]; |
66 [setup startThread:@"engineProtocol"]; |
68 [setup loadSettingsFromFile:@"settings.plist" forKey:@"systemSettings"]; |
67 [setup loadSettingsFromFile:@"settings.plist" forKey:@"systemSettings"]; |
69 |
68 |
70 // remove the current view to free resources |
69 // remove the current view to free resources |
71 [UIView beginAnimations:@"removing main controller" context:NULL]; |
70 [UIView beginAnimations:@"removing main controller" context:NULL]; |
74 [UIView commitAnimations]; |
73 [UIView commitAnimations]; |
75 [controller.view performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:1]; |
74 [controller.view performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:1]; |
76 |
75 |
77 NSLog(@"Game is launching..."); |
76 NSLog(@"Game is launching..."); |
78 |
77 |
|
78 NSAutoreleasePool *internal_pool = [[NSAutoreleasePool alloc] init]; |
|
79 |
79 // direct execution or thread? check the one that gives most fps |
80 // direct execution or thread? check the one that gives most fps |
80 // library or call SDL_main? pascal quits at the end of the main |
81 // library or call SDL_main? pascal quits at the end of the main |
81 Game(); |
82 Game(); |
82 |
83 |
|
84 [internal_pool drain]; |
83 NSLog(@"Game is exting..."); |
85 NSLog(@"Game is exting..."); |
84 |
86 |
85 [[window viewWithTag:54867] removeFromSuperview]; |
87 [[window viewWithTag:54867] removeFromSuperview]; |
86 [setup unloadSettings]; |
88 [setup unloadSettings]; |
87 |
89 |