More iOS cleanup

Remove outdated code.
This commit is contained in:
Henrik Rydgård committed 2026-08-07 08:49:29 +02:00
1 parent da567f6a89
commit 7700861d49
2 files changed
+3 -18

No files matched your search

-15
View File
@@ -47,17 +47,12 @@ PPSSPPBaseViewController *sharedViewController;
@interface PPSSPPViewControllerGL () {
GraphicsContext *graphicsContext;
int imageRequestId;
NSString *imageFilename;
}
@property (nonatomic, strong) EAGLContext *glContext;
@property (nonatomic, strong) GLKView *glView;
@property (nonatomic, strong) CADisplayLink *displayLink;
@property (nonatomic, strong) EAGLContext* context;
@end
@implementation PPSSPPViewControllerGL {}
@@ -156,7 +151,6 @@ PPSSPPBaseViewController *sharedViewController;
[self hideKeyboard];
// Initialize the motion manager for accelerometer control.
INFO_LOG(Log::G3D, "Done with viewDidLoad.");
}
@@ -247,15 +241,6 @@ PPSSPPBaseViewController *sharedViewController;
_dbg_assert_(graphicsContext);
if (self.context) {
if ([EAGLContext currentContext] == self.context) {
[EAGLContext setCurrentContext:nil];
}
self.context = nil;
}
[[NSNotificationCenter defaultCenter] removeObserver:self];
graphicsContext->ShutdownSurface();
graphicsContext->ShutdownAPI();
delete graphicsContext;
+3 -3
View File
@@ -142,7 +142,7 @@ static int GetPickerRequestId(id picker) {
// This needs to be called really late during startup, unfortunately.
#if PPSSPP_PLATFORM(IOS_APP_STORE)
[IAPManager sharedIAPManager]; // Kick off the IAPManager early.
NSLog(@"Metal viewDidAppear. updating icon");
NSLog(@"viewDidAppear. updating icon");
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(4.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[[IAPManager sharedIAPManager] updateIcon:false];
[self hideKeyboard];
@@ -526,9 +526,9 @@ extern float g_safeInsetBottom;
}
- (void)updateResolutionWithView:(UIView *)view {
// 1. Get the scale from the window scene (safest for Metal)
// 1. Get the scale from the window scene
CGFloat scale = 1.0;
if (view.window.windowScene) {
if (view.window && view.window.windowScene) {
scale = view.window.windowScene.screen.nativeScale;
} else {
scale = [UITraitCollection currentTraitCollection].displayScale;