mirror of https://github.com/axmolengine/axmol.git
52c66a678c
- 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. |
||
---|---|---|
.. | ||
java | ||
jni | ||
Android.mk | ||
CCApplication.cpp | ||
CCApplication.h | ||
CCCommon.cpp | ||
CCDevice.cpp | ||
CCEGLView.cpp | ||
CCEGLView.h | ||
CCFileUtilsAndroid.cpp | ||
CCFileUtilsAndroid.h | ||
CCGL.h | ||
CCImage.cpp | ||
CCPlatformDefine.h | ||
CCStdC.h | ||
nativeactivity.cpp | ||
nativeactivity.h |