mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(iOS) argv needs to always be non-NULL
This commit is contained in:
parent
001aa3ba4a
commit
c536e0fbdc
@ -714,10 +714,7 @@ static void parse_input(int argc, char *argv[])
|
||||
for (;;)
|
||||
{
|
||||
int port;
|
||||
int c = -1;
|
||||
|
||||
if (argv != NULL)
|
||||
c = getopt_long(argc, argv, optstring, opts, NULL);
|
||||
int c = getopt_long(argc, argv, optstring, opts, NULL);
|
||||
|
||||
if (c == -1)
|
||||
break;
|
||||
|
@ -331,11 +331,13 @@ enum
|
||||
|
||||
- (void)applicationDidFinishLaunching:(UIApplication *)application
|
||||
{
|
||||
apple_platform = self;
|
||||
const char *argv[] = {"retroarch", NULL};
|
||||
int argc = 1;
|
||||
apple_platform = self;
|
||||
|
||||
[self setDelegate:self];
|
||||
|
||||
if (rarch_main(0, NULL, NULL))
|
||||
if (rarch_main(argc, argv, NULL))
|
||||
apple_rarch_exited();
|
||||
|
||||
#ifdef HAVE_AVFOUNDATION
|
||||
|
Loading…
x
Reference in New Issue
Block a user