From 80ea81884b51ffcbc8f36ef10f96df4350c41f46 Mon Sep 17 00:00:00 2001 From: Krishna Narasimhan Date: Mon, 23 Feb 2015 13:01:19 +0100 Subject: [PATCH] Source refactor. Corrected compile issue --- cocos/audio/android/jni/cddandroidAndroidJavaEngine.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cocos/audio/android/jni/cddandroidAndroidJavaEngine.cpp b/cocos/audio/android/jni/cddandroidAndroidJavaEngine.cpp index bab96115fa..9e42936b72 100644 --- a/cocos/audio/android/jni/cddandroidAndroidJavaEngine.cpp +++ b/cocos/audio/android/jni/cddandroidAndroidJavaEngine.cpp @@ -291,7 +291,7 @@ namespace CocosDenshion { methodInfo.env->DeleteLocalRef(methodInfo.classID); } - void AndroidJavaEngine::loadEffect(const char* pszFilePath, String loadEffectName) { + void AndroidJavaEngine::loadEffect(const char* pszFilePath, char* loadEffectName) { cocos2d::JniMethodInfo methodInfo; std::string fullPath = CocosDenshion::android::getFullPathWithoutAssetsPrefix(pszFilePath); @@ -311,6 +311,7 @@ namespace CocosDenshion { } void AndroidJavaEngine::unloadEffect(const char* pszFilePath) { - AndroidJavaEngine::loadEffect(pszFilePath, "unloadEffect"); } + AndroidJavaEngine::loadEffect(pszFilePath, "unloadEffect"); + } } }