diff options
author | Leith Bade <leith@mapbox.com> | 2015-02-06 21:37:07 +1100 |
---|---|---|
committer | Leith Bade <leith@mapbox.com> | 2015-02-10 19:33:22 -0800 |
commit | 8f416ee2d50b218a7c41d89d42de32a3e81129f7 (patch) | |
tree | eb9711e10c766a85c2fe3825d44ca02c91f3fb97 /platform | |
parent | 276a88c6a9598991a1aae246be2b27b69e84d3e0 (diff) | |
download | qtlocation-mapboxgl-8f416ee2d50b218a7c41d89d42de32a3e81129f7.tar.gz |
Add assetRoot for Android
Diffstat (limited to 'platform')
-rw-r--r-- | platform/android/asset_root.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/platform/android/asset_root.cpp b/platform/android/asset_root.cpp new file mode 100644 index 0000000000..4069211f61 --- /dev/null +++ b/platform/android/asset_root.cpp @@ -0,0 +1,16 @@ +#include <mbgl/platform/platform.hpp> +#include <mbgl/android/jni.hpp> + +#include <uv.h> +#include <libgen.h> + +namespace mbgl { +namespace platform { + +// Returns the path to the root folder of the application. +const std::string &assetRoot() { + return mbgl::android::apkPath; +} + +} +} |