diff options
Diffstat (limited to 'platform/android')
-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; +} + +} +} |