Merge pull request #802 from dforsi/fix/typos

Fix spelling errors
This commit is contained in:
AlexandreRouma
2022-07-10 00:05:40 +02:00
committed by GitHub
4 changed files with 7 additions and 7 deletions

View File

@ -368,7 +368,7 @@ namespace backend {
jint jni_return = java_vm->GetEnv((void**)&java_env, JNI_VERSION_1_6);
if (jni_return == JNI_ERR)
throw std::runtime_error("Could not get JNI environement");
throw std::runtime_error("Could not get JNI environment");
jni_return = java_vm->AttachCurrentThread(&java_env, NULL);
if (jni_return != JNI_OK)
@ -380,7 +380,7 @@ namespace backend {
jmethodID method_id = java_env->GetMethodID(native_activity_clazz, "getAppDir", "()Ljava/lang/String;");
if (method_id == NULL)
throw std::runtime_error("Could not get methode ID");
throw std::runtime_error("Could not get method ID");
jstring jstr = (jstring)java_env->CallObjectMethod(app->activity->clazz, method_id);