equal
deleted
inserted
replaced
83 [secondWindow release]; |
83 [secondWindow release]; |
84 [super dealloc]; |
84 [super dealloc]; |
85 } |
85 } |
86 |
86 |
87 // main routine for calling the actual game engine |
87 // main routine for calling the actual game engine |
88 -(void) startSDLgame:(NSDictionary *)gameDictionary { |
88 -(NSDictionary *)startSDLgame:(NSDictionary *)gameDictionary { |
89 UIWindow *gameWindow; |
89 UIWindow *gameWindow; |
90 if (IS_DUALHEAD()) |
90 if (IS_DUALHEAD()) |
91 gameWindow = self.secondWindow; |
91 gameWindow = self.secondWindow; |
92 else |
92 else |
93 gameWindow = self.uiwindow; |
93 gameWindow = self.uiwindow; |
159 refSecondBlackView.alpha = 0; |
159 refSecondBlackView.alpha = 0; |
160 [UIView commitAnimations]; |
160 [UIView commitAnimations]; |
161 [refBlackView performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:1]; |
161 [refBlackView performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:1]; |
162 [refSecondBlackView performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:2]; |
162 [refSecondBlackView performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:2]; |
163 |
163 |
164 DLog(@"%@",stat); |
164 return stat; |
165 } |
165 } |
166 |
166 |
167 // overlay with controls, become visible later, with a transparency effect since the sdlwindow is not yet created |
167 // overlay with controls, become visible later, with a transparency effect since the sdlwindow is not yet created |
168 -(void) displayOverlayLater:(id) object { |
168 -(void) displayOverlayLater:(id) object { |
169 NSDictionary *dict = (NSDictionary *)object; |
169 NSDictionary *dict = (NSDictionary *)object; |