Skip to content

Commit

Permalink
Fixed crash when opening content using "open in..", support for keybo…
Browse files Browse the repository at this point in the history
…ard mapper
  • Loading branch information
yoshisuga committed Mar 23, 2018
1 parent e9822e0 commit c44dd39
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/apple/RetroArch_iOS11.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
TargetAttributes = {
9204BE091D319EF300BD49DB = {
DevelopmentTeam = UK699V5ZS8;
DevelopmentTeamName = "Yoshinobu Sugawara";
DevelopmentTeamName = "RetroArch";
};
};
};
Expand Down Expand Up @@ -373,6 +373,7 @@
"-DHAVE_MFI",
"-DHAVE_BTSTACK",
"-DHAVE_AVFOUNDATION",
"-DHAVE_KEYMAPPER",
);
PRODUCT_BUNDLE_IDENTIFIER = com.libretro.RetroArchiOS11;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -459,6 +460,7 @@
"-DHAVE_MFI",
"-DHAVE_BTSTACK",
"-DHAVE_AVFOUNDATION",
"-DHAVE_KEYMAPPER",
);
"OTHER_CFLAGS[arch=*]" = (
"-DNS_BLOCK_ASSERTIONS=1",
Expand Down Expand Up @@ -511,6 +513,7 @@
"-DHAVE_MFI",
"-DHAVE_BTSTACK",
"-DHAVE_AVFOUNDATION",
"-DHAVE_KEYMAPPER",
);
PRODUCT_BUNDLE_IDENTIFIER = com.libretro.RetroArchiOS11;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
9 changes: 9 additions & 0 deletions ui/drivers/ui_cocoatouch.m
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,14 @@ + (RetroArch_iOS*)get
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";
Expand Down Expand Up @@ -377,6 +385,7 @@ - (void)applicationDidFinishLaunching:(UIApplication *)application
extern bool apple_gamecontroller_joypad_init(void *data);
apple_gamecontroller_joypad_init(NULL);
#endif

}

- (void)applicationDidEnterBackground:(UIApplication *)application
Expand Down

0 comments on commit c44dd39

Please sign in to comment.