Fixed crash when opening content using "open in..", support for keyboard mapper

This commit is contained in:
Yoshi Sugawara 2018-03-22 22:43:20 -10:00
parent e9822e0ac7
commit c44dd39dd6
2 changed files with 13 additions and 1 deletions

View File

@ -223,7 +223,7 @@
TargetAttributes = {
9204BE091D319EF300BD49DB = {
DevelopmentTeam = UK699V5ZS8;
DevelopmentTeamName = "Yoshinobu Sugawara";
DevelopmentTeamName = "RetroArch";
};
};
};
@ -373,6 +373,7 @@
"-DHAVE_MFI",
"-DHAVE_BTSTACK",
"-DHAVE_AVFOUNDATION",
"-DHAVE_KEYMAPPER",
);
PRODUCT_BUNDLE_IDENTIFIER = com.libretro.RetroArchiOS11;
PRODUCT_NAME = "$(TARGET_NAME)";
@ -459,6 +460,7 @@
"-DHAVE_MFI",
"-DHAVE_BTSTACK",
"-DHAVE_AVFOUNDATION",
"-DHAVE_KEYMAPPER",
);
"OTHER_CFLAGS[arch=*]" = (
"-DNS_BLOCK_ASSERTIONS=1",
@ -511,6 +513,7 @@
"-DHAVE_MFI",
"-DHAVE_BTSTACK",
"-DHAVE_AVFOUNDATION",
"-DHAVE_KEYMAPPER",
);
PRODUCT_BUNDLE_IDENTIFIER = com.libretro.RetroArchiOS11;
PRODUCT_NAME = "$(TARGET_NAME)";

View File

@ -337,6 +337,14 @@ enum
return (RetroArch_iOS*)[[UIApplication sharedApplication] delegate];
}
-(NSString*)documentsDirectory {
if ( _documentsDirectory == nil ) {
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
_documentsDirectory = paths.firstObject;
}
return _documentsDirectory;
}
- (void)applicationDidFinishLaunching:(UIApplication *)application
{
char arguments[] = "retroarch";
@ -377,6 +385,7 @@ enum
extern bool apple_gamecontroller_joypad_init(void *data);
apple_gamecontroller_joypad_init(NULL);
#endif
}
- (void)applicationDidEnterBackground:(UIApplication *)application