aboutsummaryrefslogtreecommitdiff
path: root/src/path_functions.cpp
diff options
context:
space:
mode:
authorstonedDiscord <stoned@derpymail.org>2019-08-11 23:58:43 +0200
committerstonedDiscord <stoned@derpymail.org>2019-08-11 23:58:43 +0200
commit047ce046316a96c6183846b40062dd6f72de61fd (patch)
treea28d7379d9dbdc78a44bbcd0b90c83b90d045863 /src/path_functions.cpp
parent7fe64163eaaaf8a227d781a90a6a9c594ac4457f (diff)
fix mac content loading
it now looks for the content next to the .app bundle and not inside it
Diffstat (limited to 'src/path_functions.cpp')
-rw-r--r--src/path_functions.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/path_functions.cpp b/src/path_functions.cpp
index c51cfde3..5eb97a32 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