mirror of
https://github.com/libretro/RetroArch
synced 2025-04-17 20:43:10 +00:00
(OSX) Make apple_run_core backwards compatible with OSX 10.6
This commit is contained in:
parent
a96e813fe1
commit
a1321689ac
@ -38,7 +38,10 @@ void apple_run_core(NSString* core, const char* file)
|
|||||||
{
|
{
|
||||||
if (!apple_is_running)
|
if (!apple_is_running)
|
||||||
{
|
{
|
||||||
if (file && access([@(file) stringByDeletingLastPathComponent].UTF8String, R_OK | W_OK | X_OK))
|
char basedir[256];
|
||||||
|
fill_pathname_basedir(basedir, file, sizeof(basedir));
|
||||||
|
strlcpy(basedir, file, sizeof(basedir));
|
||||||
|
if (file && access(basedir, R_OK | W_OK | X_OK))
|
||||||
apple_display_alert(@"The directory containing the selected file has limited permissions. This may "
|
apple_display_alert(@"The directory containing the selected file has limited permissions. This may "
|
||||||
"prevent zipped games from loading, and will cause some cores to not function.", 0);
|
"prevent zipped games from loading, and will cause some cores to not function.", 0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user