mirror of
https://github.com/libretro/RetroArch
synced 2025-02-04 21:40:02 +00:00
(Mac) Make separate default core dirs based on architecture - note -
we will also have to write to a separate config file per architecture - that will have to come next
This commit is contained in:
parent
b574780d99
commit
7b6e564ba3
@ -384,8 +384,18 @@ static void frontend_darwin_get_env(int *argc, char *argv[],
|
||||
sizeof(g_defaults.dirs[DEFAULT_DIR_SHADER]));
|
||||
#endif
|
||||
#ifdef HAVE_UPDATE_CORES
|
||||
#if defined(__aarch64__)
|
||||
#define LRCORES_ARCH "_aarch64"
|
||||
#elif defined(__x86_64__)
|
||||
#define LRCORES_ARCH "_x64"
|
||||
#elif defined(__i386__) || defined(__i486__) || defined(__i686__)
|
||||
#define LRCORES_ARCH "_x86"
|
||||
#else
|
||||
#define LRCORES_ARCH "_ppc"
|
||||
#endif
|
||||
fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CORE],
|
||||
home_dir_buf, "cores", sizeof(g_defaults.dirs[DEFAULT_DIR_CORE]));
|
||||
home_dir_buf, "cores" LRCORES_ARCH, sizeof(g_defaults.dirs[DEFAULT_DIR_CORE]));
|
||||
#undef LRCORES_ARCH
|
||||
#else
|
||||
fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CORE],
|
||||
bundle_path_buf, "modules", sizeof(g_defaults.dirs[DEFAULT_DIR_CORE]));
|
||||
|
Loading…
x
Reference in New Issue
Block a user