axmol/cocos/2d/platform/android
Damien 52c66a678c Fixed non-functioning default value for CCUserDefault::getDoubleForKey()
- defaultValue was not being passed into the JNI CallStaticDoubleMethod
method previously.
-  CCUserDefault::getDoubleForKey() would return undefined garbage when
the key doesn’t exist.
Test Case:
Call the following from anywhere in your code (in release
configuration). X will be garbage.
Call the following from your code:
double x =
CCUserDefault::sharedUserDefault()->getDoubleForKey("Some-Non-existant-k
ey-1234", 0);
CCLOG("x = %4.2f", x);

Fix Tested on Android. Affects Android only.
2013-12-19 12:32:51 -08:00
..
java fix crash of textinput test case 2013-11-18 15:14:48 +08:00
jni Fixed non-functioning default value for CCUserDefault::getDoubleForKey() 2013-12-19 12:32:51 -08:00
Android.mk fix xcode compiling error and simplify android.mk 2013-10-18 15:39:09 +08:00
CCApplication.cpp android & ios screen size change support 2013-10-23 12:29:59 +04:00
CCApplication.h android & ios screen size change support 2013-10-23 12:29:59 +04:00
CCCommon.cpp
CCDevice.cpp rename to with Jni suffex 2013-11-29 19:34:36 +08:00
CCEGLView.cpp Merge branch 'develop' of https://github.com/cocos2d/cocos2d-x into feature/configuration_VAO_runtime 2013-11-12 20:18:04 +08:00
CCEGLView.h issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
CCFileUtilsAndroid.cpp replace long with int or ssize_t 2013-12-05 17:22:22 +08:00
CCFileUtilsAndroid.h replace long with int or ssize_t 2013-12-05 17:22:22 +08:00
CCGL.h
CCImage.cpp fix CCImage bug on android platform. 2013-12-15 21:07:55 +09:00
CCPlatformDefine.h
CCStdC.h issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
nativeactivity.cpp replace long with int or ssize_t 2013-12-05 17:22:22 +08:00
nativeactivity.h rename to with Jni suffex 2013-11-29 19:34:36 +08:00