mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +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 (;;)
|
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;
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user