ios: Remove reference to UI views once game has started.
This commit is contained in:
parent
a136789ff5
commit
98990ce330
|
@ -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;
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue