diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2011-11-11 14:51:13 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:27:37 +0300 |
commit | bc4c535f73d788ab57e1fd38761d8068c1e3beb2 (patch) | |
tree | 1d598258fd30f4735f8318285703b095e34959e0 /android/jni/com/mapswithme/platform/Platform.cpp | |
parent | 2e0192debafc3ae08c0846da0fe29fadd5583cc2 (diff) |
[android] Removed unused code, fixed compile error
Diffstat (limited to 'android/jni/com/mapswithme/platform/Platform.cpp')
-rw-r--r-- | android/jni/com/mapswithme/platform/Platform.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/android/jni/com/mapswithme/platform/Platform.cpp b/android/jni/com/mapswithme/platform/Platform.cpp new file mode 100644 index 0000000000..4b79a3e622 --- /dev/null +++ b/android/jni/com/mapswithme/platform/Platform.cpp @@ -0,0 +1,27 @@ +#include "Platform.hpp" + +#include "../core/jni_string.hpp" + +#include "../../../../../base/logging.hpp" + +namespace android +{ + void Platform::Initialize(JNIEnv * env, jstring apkPath, jstring storagePath) + { + m_resourcesDir = jni::ToString(env, apkPath); + m_writableDir = jni::ToString(env, storagePath); + LOG(LDEBUG, ("Apk path = ", m_resourcesDir)); + LOG(LDEBUG, ("Writable path = ", m_writableDir)); + } + + Platform & Platform::Instance() + { + static Platform platform; + return platform; + } +} + +Platform & GetPlatform() +{ + return android::Platform::Instance(); +} |