From 239bfc407aafb90184c75c80fa6765424811c400 Mon Sep 17 00:00:00 2001 From: "o@goguel.com" <> Date: Sun, 7 Apr 2024 10:38:56 +0200 Subject: [PATCH] fix compilation --- Common.iphone/KBDController.mm | 6 +++--- Common.iphone/activegsViewController.mm | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Common.iphone/KBDController.mm b/Common.iphone/KBDController.mm index 3f5496a..0a2ad13 100644 --- a/Common.iphone/KBDController.mm +++ b/Common.iphone/KBDController.mm @@ -569,10 +569,10 @@ extern int findCode(const char* _s); [self setMenuBarVisibility:TRUE]; // So First time users are not lost! self.mfiControllerHandler = [[MfiGameControllerHandler alloc] init]; - __weak typeof(self) weakSelf = self; + [self.mfiControllerHandler discoverController:^(GCController *gameController) { - [weakSelf setupMfiController:gameController]; - [self setInputMode:inputMode&INPUTMODE_PAD]; + [self setupMfiController:gameController]; + [self setInputMode:self->inputMode&INPUTMODE_PAD]; [pManager setNotificationText:@"mFi Controller Connected"]; } disconnectedCallback:^{ [pManager setNotificationText:@"mFi Controller Disconnected"]; diff --git a/Common.iphone/activegsViewController.mm b/Common.iphone/activegsViewController.mm index 6e9e80f..306ce88 100644 --- a/Common.iphone/activegsViewController.mm +++ b/Common.iphone/activegsViewController.mm @@ -345,7 +345,7 @@ // vérifie que l'émulateur fonctionne if (!pMac) { - UIAlertView *alert = [[[UIAlertView alloc] initWithTitle:@"ActiveGS" message:@"Select a program in the list first." delegate:nil cancelButtonTitle:@"Done" otherButtonTitles:nil] autorelease]; + UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"ActiveGS" message:@"Select a program in the list first." delegate:nil cancelButtonTitle:@"Done" otherButtonTitles:nil]; [alert show]; return ; }