mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 03:32:46 +00:00
fix(Metal): Use ifdef syntax; add correct default for Metal build
This commit is contained in:
parent
93b79fac90
commit
1264e9c533
@ -347,9 +347,15 @@ static void frontend_darwin_get_environment_settings(int *argc, char *argv[],
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
strlcat(home_dir_buf, "/RetroArch", sizeof(home_dir_buf));
|
strlcat(home_dir_buf, "/RetroArch", sizeof(home_dir_buf));
|
||||||
|
#ifdef HAVE_METAL
|
||||||
|
fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_SHADER],
|
||||||
|
home_dir_buf, "shaders_slang",
|
||||||
|
sizeof(g_defaults.dirs[DEFAULT_DIR_SHADER]));
|
||||||
|
#else
|
||||||
fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_SHADER],
|
fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_SHADER],
|
||||||
home_dir_buf, "shaders_glsl",
|
home_dir_buf, "shaders_glsl",
|
||||||
sizeof(g_defaults.dirs[DEFAULT_DIR_SHADER]));
|
sizeof(g_defaults.dirs[DEFAULT_DIR_SHADER]));
|
||||||
|
#endif
|
||||||
#if TARGET_OS_IPHONE
|
#if TARGET_OS_IPHONE
|
||||||
int major, minor;
|
int major, minor;
|
||||||
get_ios_version(&major, &minor);
|
get_ios_version(&major, &minor);
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
#include "../../retroarch.h"
|
#include "../../retroarch.h"
|
||||||
#include "../../tasks/tasks_internal.h"
|
#include "../../tasks/tasks_internal.h"
|
||||||
|
|
||||||
#if HAVE_METAL
|
#ifdef HAVE_METAL
|
||||||
#import <Metal/Metal.h>
|
#import <Metal/Metal.h>
|
||||||
#import <MetalKit/MetalKit.h>
|
#import <MetalKit/MetalKit.h>
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user