diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/hardware_functions.cpp | 4 | ||||
| -rw-r--r-- | src/path_functions.cpp | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/hardware_functions.cpp b/src/hardware_functions.cpp index c898aefe..82b4f0c7 100644 --- a/src/hardware_functions.cpp +++ b/src/hardware_functions.cpp @@ -49,6 +49,10 @@ QString get_hdid() } #elif defined __APPLE__ + +#include <CoreFoundation/CoreFoundation.h> +#include <IOKit/IOKitLib.h> + QString get_hdid() { CFStringRef serial; diff --git a/src/path_functions.cpp b/src/path_functions.cpp index 811ca76f..10c8ae53 100644 --- a/src/path_functions.cpp +++ b/src/path_functions.cpp @@ -30,6 +30,8 @@ QString AOApplication::get_base_path() QString external_storage = getenv("EXTERNAL_STORAGE"); base_path = external_storage + "/AO2/"; } +#elif defined(__APPLE__) + base_path = applicationDirPath() + "/../../../base/"; #else base_path = applicationDirPath() + "/base/"; #endif |
