(iOS) argv needs to always be non-NULL

This commit is contained in:
twinaphex 2016-04-05 20:53:02 +02:00
parent 001aa3ba4a
commit c536e0fbdc
2 changed files with 5 additions and 6 deletions

View File

@ -714,10 +714,7 @@ static void parse_input(int argc, char *argv[])
for (;;) for (;;)
{ {
int port; int port;
int c = -1; int c = getopt_long(argc, argv, optstring, opts, NULL);
if (argv != NULL)
c = getopt_long(argc, argv, optstring, opts, NULL);
if (c == -1) if (c == -1)
break; break;

View File

@ -331,11 +331,13 @@ enum
- (void)applicationDidFinishLaunching:(UIApplication *)application - (void)applicationDidFinishLaunching:(UIApplication *)application
{ {
apple_platform = self; const char *argv[] = {"retroarch", NULL};
int argc = 1;
apple_platform = self;
[self setDelegate:self]; [self setDelegate:self];
if (rarch_main(0, NULL, NULL)) if (rarch_main(argc, argv, NULL))
apple_rarch_exited(); apple_rarch_exited();
#ifdef HAVE_AVFOUNDATION #ifdef HAVE_AVFOUNDATION