mirror of https://github.com/axmolengine/axmol.git
Made the loadeffect utility method into a static method. Removed declaration of old method from header file
This commit is contained in:
parent
3b54af1763
commit
58df860b4e
|
@ -291,7 +291,7 @@ namespace CocosDenshion {
|
|||
methodInfo.env->DeleteLocalRef(methodInfo.classID);
|
||||
}
|
||||
|
||||
void AndroidJavaEngine::loadEffect(const char* pszFilePath, char* loadEffectName) {
|
||||
static void loadEffect(const char* pszFilePath, char* loadEffectName) {
|
||||
cocos2d::JniMethodInfo methodInfo;
|
||||
std::string fullPath = CocosDenshion::android::getFullPathWithoutAssetsPrefix(pszFilePath);
|
||||
|
||||
|
@ -307,11 +307,11 @@ namespace CocosDenshion {
|
|||
|
||||
|
||||
void AndroidJavaEngine::preloadEffect(const char* pszFilePath) {
|
||||
AndroidJavaEngine::loadEffect(pszFilePath, "preloadEffect");
|
||||
loadEffect(pszFilePath, "preloadEffect");
|
||||
}
|
||||
|
||||
void AndroidJavaEngine::unloadEffect(const char* pszFilePath) {
|
||||
AndroidJavaEngine::loadEffect(pszFilePath, "unloadEffect");
|
||||
loadEffect(pszFilePath, "unloadEffect");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -53,7 +53,6 @@ namespace CocosDenshion {
|
|||
void resumeAllEffects();
|
||||
void stopEffect(unsigned int nSoundId);
|
||||
void stopAllEffects();
|
||||
void loadEffect(const char* pszFilePath, char* loadEffectName);
|
||||
void preloadEffect(const char* pszFilePath);
|
||||
void unloadEffect(const char* pszFilePath);
|
||||
|
||||
|
|
Loading…
Reference in New Issue