axmol/cocos2dx/platform
James Chen c45ebfa628 Merge pull request #2422 from brawsome/master
fixed #2127: Adding CCLOG before original path is returned in CCFileUtils::fullPathForFileName to aid in debugging.
The PR has fix two issues:
1) Added additional CCLOG to CCFileUtils::fullPathForFilename:
There's currently no way to be sure, from a calling function, that
fullPathForFilename has returned an invalid file path, which makes it
difficult to quickly track down missing, or incorrect file paths. Added
a CCLOG before the original string is returned to make debugging
missing or incorrect file paths easier.

2) Optmization to ccArrayGetIndexOfObject …
Optimized loop of ccArrayGetIndexOfObject to remove the overhead of 3
pointer dereferences per iteration, and pre-increment the int for
speed. If this function is called a lot, and with a large list, this
will result in a good performance win.
This can probably be done with just pointers, but I haven't taken the
time to validate all function calls to make sure it would be
appropriate. Though I can guarantee that if this worked fine before, it
will work fine with this change.
2013-05-07 01:40:57 -07:00
..
android If file path is an empty string, return false directly in CCFileUtils::isFileExist. 2013-04-25 21:51:13 +08:00
blackberry Merge pull request #2407 from sergey-shambir/attribute_format 2013-05-06 20:06:52 -07:00
emscripten Set orientation to 0 for Emscripten, thus avoiding a segfault. 2013-05-06 21:00:38 -07:00
ios Merge pull request #2361 from tiantian20007/dictStuff 2013-05-06 23:17:11 -07:00
linux If file path is an empty string, return false directly in CCFileUtils::isFileExist. 2013-04-25 21:51:13 +08:00
mac Merge pull request #2361 from tiantian20007/dictStuff 2013-05-06 23:17:11 -07:00
marmalade If file path is an empty string, return false directly in CCFileUtils::isFileExist. 2013-04-25 21:51:13 +08:00
nacl Merge pull request #2407 from sergey-shambir/attribute_format 2013-05-06 20:06:52 -07:00
third_party Add libtiff build -- build with straight emconfigure, emmake, with a troublesome assert removed (assert(sizeof(uint64) == 8)). 2013-05-06 21:00:39 -07:00
win32 If file path is an empty string, return false directly in CCFileUtils::isFileExist. 2013-04-25 21:51:13 +08:00
CCAccelerometerDelegate.h Added "executeAccelerometerEvent" for CCScriptEngineProtocol class. Exported Accelerometer event to JS. 2012-11-06 14:18:13 +08:00
CCApplicationProtocol.h Add #defines for Emscripten platform 2013-05-06 20:58:43 -07:00
CCCommon.h Added CC_FORMAT_PRINTF(x,y) macro to warn on CCLog() format errors 2013-04-19 11:54:08 +04:00
CCDevice.h fixed #1712: Adding default dpi for marmalade and mac since i don't know how to get DPI for these platforms. 2013-02-17 17:13:06 +08:00
CCEGLViewProtocol.cpp Merge pull request #2193 from Weeds/feature-screen-dimensions 2013-04-18 00:31:13 -07:00
CCEGLViewProtocol.h Merge pull request #2193 from Weeds/feature-screen-dimensions 2013-04-18 00:31:13 -07:00
CCFileUtils.cpp Merge pull request #2422 from brawsome/master 2013-05-07 01:40:57 -07:00
CCFileUtils.h Make sure XMLDocument is deleted; Code clean up; Add test; 2013-04-28 00:36:37 +08:00
CCImage.h fix some issues 2012-12-29 13:58:02 +08:00
CCImageCommonWebp.cpp Add new port: Native Client 2013-03-02 12:15:24 -08:00
CCImageCommon_cpp.h Fix all compiler warnings produced by gcc. 2013-03-05 17:01:00 -08:00
CCPlatformConfig.h Add #defines for Emscripten platform 2013-05-06 20:58:43 -07:00
CCPlatformMacros.h Enable texture caching with emscripten. 2013-05-06 21:23:06 -07:00
CCSAXParser.cpp fixed potential crash in CCSaxParser 2013-03-28 01:07:54 +01:00
CCSAXParser.h add groups to all classes for doxygen 2012-06-20 18:09:11 +08:00
CCThread.cpp Fixes CCThread.cpp so it is not included for Mac builds. 2012-09-15 00:37:12 -07:00
CCThread.h add groups to all classes for doxygen 2012-06-20 18:09:11 +08:00
platform.cpp issue #1176: Changed linebreak symbol to UNIX format ('\n'),replaced 'tab' 2012-04-19 14:35:52 +08:00
platform.h Add new port: Native Client 2013-03-02 12:15:24 -08:00