use watchkit alert

This commit is contained in:
Jesús A. Álvarez 2024-03-28 18:51:49 +01:00
parent e2dc87631d
commit c2f2622cb5

View File

@ -133,7 +133,8 @@ static NSObject<Emulator> *sharedEmulator = nil;
sharedEmulator = [emulatorClass new]; sharedEmulator = [emulatorClass new];
sharedEmulator.rootViewController = nil; sharedEmulator.rootViewController = nil;
sharedEmulator.showAlert = ^(NSString *title, NSString *message) { sharedEmulator.showAlert = ^(NSString *title, NSString *message) {
NSLog(@"Alert: %@ - %@", title, message); [self presentAlertControllerWithTitle:title message:message preferredStyle:WKAlertControllerStyleAlert actions:@[
[WKAlertAction actionWithTitle:@"OK" style:WKAlertActionStyleDefault handler:^{}]]];
}; };
sharedEmulator.dataPath = [NSBundle mainBundle].resourcePath; sharedEmulator.dataPath = [NSBundle mainBundle].resourcePath;
sharedEmulator.screenLayer = fullScreenView.layer; sharedEmulator.screenLayer = fullScreenView.layer;