mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 10:40:01 +01:00
Modernize property syntax and don't use viewDidUnload (deprecated in iOS 6)
This commit is contained in:
1 parent
5b857f08ed
commit
c563166f9a
1 file changed
+8
-15
+8
-15
@@ -74,10 +74,10 @@ static GraphicsContext *graphicsContext;
|
||||
std::map<uint16_t, uint16_t> iCadeToKeyMap;
|
||||
}
|
||||
|
||||
@property (nonatomic) EAGLContext* context;
|
||||
@property (nonatomic) NSString* documentsPath;
|
||||
@property (nonatomic) NSString* bundlePath;
|
||||
@property (nonatomic) NSMutableArray* touches;
|
||||
@property (nonatomic, strong) EAGLContext* context;
|
||||
@property (nonatomic, strong) NSString* documentsPath;
|
||||
@property (nonatomic, strong) NSString* bundlePath;
|
||||
@property (nonatomic, strong) NSMutableArray<NSDictionary *>* touches;
|
||||
@property (nonatomic) AudioEngine* audioEngine;
|
||||
//@property (nonatomic) iCadeReaderView* iCadeView;
|
||||
#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_6_1
|
||||
@@ -214,16 +214,6 @@ static GraphicsContext *graphicsContext;
|
||||
#endif
|
||||
}
|
||||
|
||||
- (void)viewDidUnload
|
||||
{
|
||||
[super viewDidUnload];
|
||||
|
||||
if ([EAGLContext currentContext] == self.context) {
|
||||
[EAGLContext setCurrentContext:nil];
|
||||
}
|
||||
self.context = nil;
|
||||
}
|
||||
|
||||
- (void)didReceiveMemoryWarning
|
||||
{
|
||||
[super didReceiveMemoryWarning];
|
||||
@@ -231,7 +221,10 @@ static GraphicsContext *graphicsContext;
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
[self viewDidUnload];
|
||||
if ([EAGLContext currentContext] == self.context) {
|
||||
[EAGLContext setCurrentContext:nil];
|
||||
}
|
||||
self.context = nil;
|
||||
|
||||
#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_6_1
|
||||
if ([GCController class]) {
|
||||
|
||||
Reference in new issue
Block a user