ios: Remove reference to UI views once game has started.

This commit is contained in:
meancoot 2013-02-10 05:49:05 -05:00
parent a136789ff5
commit 98990ce330
3 changed files with 7 additions and 0 deletions

View File

@ -10,6 +10,7 @@
@interface RetroArch_iOS : UIResponder <UIApplicationDelegate>
+ (RetroArch_iOS*)get;
- (void)game_has_started;
@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) NSString *module_path;

View File

@ -59,6 +59,11 @@ extern uint32_t ios_current_touch_count ;
[self.navigator pushViewController: [[settings_list alloc] init] animated:YES];
}
- (void)game_has_started
{
self.navigator = nil;
}
- (void)processTouches:(NSArray*)touches
{
ios_current_touch_count = [touches count];

View File

@ -42,6 +42,7 @@ void ios_load_game(const char* file_name)
rarch_init_msg_queue();
ra_initialized = TRUE;
[[RetroArch_iOS get ]game_has_started];
[current_view performSelector:@selector(rarch_iterate:) withObject:nil afterDelay:0.2f];
}
}