mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
iOS: Move accelerometer queue setup inside the init null check
Harmless today since messaging nil is a no-op, but it doesn't belong outside the "if (self)" block. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JZk5y4Fzw811WJoNWZb8Sc
This commit is contained in:
1 parent
11a402df6f
commit
6548a4f5cf
1 file changed
+4
-4
@@ -76,11 +76,11 @@ static int GetPickerRequestId(id picker) {
|
||||
selector:@selector(onOrientationChanged)
|
||||
name:UIDeviceOrientationDidChangeNotification
|
||||
object:nil];
|
||||
}
|
||||
self.accelerometerQueue = [[NSOperationQueue alloc] init];
|
||||
self.accelerometerQueue.name = @"AccelerometerQueue";
|
||||
self.accelerometerQueue.maxConcurrentOperationCount = 1;
|
||||
|
||||
self.accelerometerQueue = [[NSOperationQueue alloc] init];
|
||||
self.accelerometerQueue.name = @"AccelerometerQueue";
|
||||
self.accelerometerQueue.maxConcurrentOperationCount = 1;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user