Fixed previous commit

This commit is contained in:
Sylvain Berfini 2017-11-03 11:45:01 +01:00
parent b18d8a7001
commit 4a046d10f7

View file

@ -181,18 +181,18 @@ string AndroidPlatformHelpers::getDataPath () {
JNIEnv *env = ms_get_jni_env();
jstring jdata_path = (jstring)env->CallObjectMethod(mJavaHelper, mGetDataPathId);
const char *data_path = GetStringUTFChars(env, jdata_path);
string dataPath = data_path + "/";
string dataPath = data_path;
ReleaseStringUTFChars(env, jdata_path, data_path);
return dataPath;
return dataPath + "/";
}
string AndroidPlatformHelpers::getConfigPath () {
JNIEnv *env = ms_get_jni_env();
jstring jconfig_path = (jstring)env->CallObjectMethod(mJavaHelper, mGetConfigPathId);
const char *config_path = GetStringUTFChars(env, jconfig_path);
string configPath = config_path + "/";
string configPath = config_path;
ReleaseStringUTFChars(env, jconfig_path, config_path);
return configPath;
return configPath + "/";
}
int AndroidPlatformHelpers::callVoidMethod (jmethodID id) {