jobject g_obj_ResourceState_Requested;
jobject g_obj_ResourceState_Alive;
jobject g_obj_ResourceState_LostSignal;
- jobject g_obj_ResourceState_Destoryed;
+ jobject g_obj_ResourceState_Destroyed;
jobject g_obj_CacheState_None;
jobject g_obj_CacheState_Unready;
case ResourceState::REQUESTED: return g_obj_ResourceState_Requested;
case ResourceState::ALIVE: return g_obj_ResourceState_Alive;
case ResourceState::LOST_SIGNAL: return g_obj_ResourceState_LostSignal;
- case ResourceState::DESTROYED: return g_obj_ResourceState_Destoryed;
+ case ResourceState::DESTROYED: return g_obj_ResourceState_Destroyed;
}
throwRCSException(env, "Failed to convert ResourceState");
g_obj_ResourceState_LostSignal = env->NewGlobalRef(env->GetStaticObjectField(clsResourceState,
"LOST_SIGNAL", AS_SIG(CLS_NAME_RESOURCE_STATE)));
- g_obj_ResourceState_Destoryed = env->NewGlobalRef(env->GetStaticObjectField(clsResourceState,
+ g_obj_ResourceState_Destroyed = env->NewGlobalRef(env->GetStaticObjectField(clsResourceState,
"DESTROYED", AS_SIG(CLS_NAME_RESOURCE_STATE)));
auto clsCacheState = env->FindClass(CLS_NAME_CACHE_STATE);
env->DeleteGlobalRef(g_obj_ResourceState_Requested);
env->DeleteGlobalRef(g_obj_ResourceState_Alive);
env->DeleteGlobalRef(g_obj_ResourceState_LostSignal);
- env->DeleteGlobalRef(g_obj_ResourceState_Destoryed);
+ env->DeleteGlobalRef(g_obj_ResourceState_Destroyed);
env->DeleteGlobalRef(g_obj_CacheState_None);
env->DeleteGlobalRef(g_obj_CacheState_Unready);