From 4e756a2f4a971c62fd9e756d8e6fc7c44f26f5fc Mon Sep 17 00:00:00 2001 From: root Date: Wed, 3 Dec 2014 01:03:27 +0400 Subject: [PATCH] path to game get through jni --- components/files/androidpath.h | 19 +++++++++++++++++++ components/files/androidpath.hpp | 7 ++++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 components/files/androidpath.h diff --git a/components/files/androidpath.h b/components/files/androidpath.h new file mode 100644 index 000000000..3157c067f --- /dev/null +++ b/components/files/androidpath.h @@ -0,0 +1,19 @@ +/* DO NOT EDIT THIS FILE - it is machine generated */ +#include + +#ifndef _Included_org_libsdl_app_SDLActivity_getPathToJni +#define _Included_org_libsdl_app_SDLActivity_getPathToJni +#ifdef __cplusplus +extern "C" { +#endif +/* + * Class: Java_org_libsdl_app_SDLActivity_getPathToJni + * Method: getPathToJni + * Signature: (I)I + */ +JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_getPathToJni(JNIEnv *env, jobject obj, jstring prompt); + +#ifdef __cplusplus +} +#endif +#endif diff --git a/components/files/androidpath.hpp b/components/files/androidpath.hpp index 792462fc6..9d47d6d94 100644 --- a/components/files/androidpath.hpp +++ b/components/files/androidpath.hpp @@ -7,12 +7,17 @@ /** * \namespace Files */ + + namespace Files { - +class getJniPath{ +public: const char *getPathFromJni; +}; struct AndroidPath { AndroidPath(const std::string& application_name); + /** * \brief Return path to the user directory.