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. |
||
---|---|---|
.. | ||
DPIJni.cpp | ||
DPIJni.h | ||
IMEJni.cpp | ||
IMEJni.h | ||
Java_org_cocos2dx_lib_Cocos2dxBitmap.cpp | ||
Java_org_cocos2dx_lib_Cocos2dxBitmap.h | ||
Java_org_cocos2dx_lib_Cocos2dxHelper.cpp | ||
Java_org_cocos2dx_lib_Cocos2dxHelper.h | ||
JniHelper.cpp | ||
JniHelper.h |