revert between 56095 -> 55830 in arch
[AROS.git] / arch / all-ios / bootstrap / ui.m
blobe0c2b3cd4e396f47a1ec3c5b71bd9910f4b95a55
1 #include <stdarg.h>
2 #include <runtime.h>
4 #include "appdelegate.h"
6 void DisplayError(char *fmt, ...)
8     va_list ap;
9     NSString *format = [NSString stringWithCString:fmt encoding:NSISOLatin1StringEncoding];
10     BootstrapDelegate *ad = (BootstrapDelegate *)[[UIApplication sharedApplication] delegate];
12     va_start(ap, fmt);
14     NSString *text = [[NSString alloc] initWithFormat:format arguments:ap];
16     [ad ShowAlert:text withTitle:@"AROS bootstrap error"];
17     [text release];
19     va_end(ap);