mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 22:13:51 +00:00
iOS: Move instance variables in RetroArch_iOS over to properties.
This commit is contained in:
parent
44970a95a9
commit
402a08f554
@ -37,6 +37,9 @@ const void* apple_get_frontend_settings(void);
|
||||
|
||||
@interface RetroArch_iOS : UINavigationController<UIApplicationDelegate, UINavigationControllerDelegate, RetroArch_Platform>
|
||||
|
||||
@property (nonatomic) UIWindow* window;
|
||||
@property (nonatomic) NSString* documentsDirectory; // e.g. /var/mobile/Documents
|
||||
|
||||
+ (RetroArch_iOS*)get;
|
||||
|
||||
- (void)showGameView;
|
||||
@ -45,9 +48,6 @@ const void* apple_get_frontend_settings(void);
|
||||
- (void)unloadingCore;
|
||||
|
||||
- (void)refreshSystemConfig;
|
||||
|
||||
@property (nonatomic) NSString* documentsDirectory; // e.g. /var/mobile/Documents
|
||||
|
||||
@end
|
||||
|
||||
// modes are: keyboard, icade and btstack
|
||||
|
@ -165,10 +165,6 @@ static void handle_touch_event(NSArray* touches)
|
||||
@end
|
||||
|
||||
@implementation RetroArch_iOS
|
||||
{
|
||||
UIWindow* _window;
|
||||
NSString* _path;
|
||||
}
|
||||
|
||||
+ (RetroArch_iOS*)get
|
||||
{
|
||||
@ -185,9 +181,9 @@ static void handle_touch_event(NSArray* touches)
|
||||
[self setDelegate:self];
|
||||
|
||||
// Setup window
|
||||
_window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
|
||||
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
|
||||
[self showPauseMenu:self];
|
||||
[_window makeKeyAndVisible];
|
||||
[self.window makeKeyAndVisible];
|
||||
|
||||
// Build system paths and test permissions
|
||||
self.documentsDirectory = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents"];
|
||||
@ -278,7 +274,7 @@ static void handle_touch_event(NSArray* touches)
|
||||
[self setToolbarHidden:true animated:NO];
|
||||
[[UIApplication sharedApplication] setStatusBarHidden:true withAnimation:UIStatusBarAnimationNone];
|
||||
[[UIApplication sharedApplication] setIdleTimerDisabled:true];
|
||||
[_window setRootViewController:[RAGameView get]];
|
||||
[self.window setRootViewController:[RAGameView get]];
|
||||
g_extern.is_paused = false;
|
||||
}
|
||||
|
||||
@ -287,7 +283,7 @@ static void handle_touch_event(NSArray* touches)
|
||||
g_extern.is_paused = true;
|
||||
[[UIApplication sharedApplication] setStatusBarHidden:false withAnimation:UIStatusBarAnimationNone];
|
||||
[[UIApplication sharedApplication] setIdleTimerDisabled:false];
|
||||
[_window setRootViewController:self];
|
||||
[self.window setRootViewController:self];
|
||||
}
|
||||
|
||||
- (void)loadingCore:(NSString*)core withFile:(const char*)file
|
||||
|
Loading…
x
Reference in New Issue
Block a user