mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
(OSX) Fix default bundle_path in environment_get function
This commit is contained in:
parent
a4f1e9d075
commit
9f60f8f28e
@ -130,7 +130,7 @@ static void frontend_apple_get_environment_settings(int *argc, char *argv[],
|
||||
bundle_url = CFBundleCopyBundleURL(bundle);
|
||||
CFStringRef bundle_path = CFURLCopyPath(bundle_url);
|
||||
|
||||
(void)bundle_path_buf;
|
||||
CFStringGetCString(bundle_path, bundle_path_buf, sizeof(bundle_path_buf), kCFStringEncodingUTF8);
|
||||
(void)home_dir_buf;
|
||||
|
||||
#ifdef IOS
|
||||
@ -146,7 +146,6 @@ static void frontend_apple_get_environment_settings(int *argc, char *argv[],
|
||||
CFStringRef home_dir_ref = CFURLCopyPath(home_dir);
|
||||
|
||||
CFStringGetCString(home_dir_ref, home_dir_buf, sizeof(home_dir_buf), kCFStringEncodingUTF8);
|
||||
CFStringGetCString(bundle_path, bundle_path_buf, sizeof(bundle_path_buf), kCFStringEncodingUTF8);
|
||||
|
||||
fill_pathname_join(g_defaults.system_dir, home_dir_buf, ".RetroArch", sizeof(g_defaults.system_dir));
|
||||
fill_pathname_join(g_defaults.core_dir, bundle_path_buf, "modules", sizeof(g_defaults.core_dir));
|
||||
|
Loading…
x
Reference in New Issue
Block a user