qt: Add support for building for iOS. (#6594)

This commit is contained in:
Steveice10
2023-06-07 20:40:53 -07:00
committed by GitHub
parent d9bf4fd8a2
commit 238a574645
17 changed files with 277 additions and 122 deletions

View File

@@ -21,7 +21,12 @@
#ifdef _WIN32
#define EMU_DATA_DIR "Citra"
#elif defined(__APPLE__)
#define MACOS_EMU_DATA_DIR "Library" DIR_SEP "Application Support" DIR_SEP "Citra"
#include <TargetConditionals.h>
#if TARGET_OS_IPHONE
#define APPLE_EMU_DATA_DIR "Documents" DIR_SEP "Citra"
#else
#define APPLE_EMU_DATA_DIR "Library" DIR_SEP "Application Support" DIR_SEP "Citra"
#endif
// For compatibility with XDG paths.
#define EMU_DATA_DIR "citra-emu"
#else