From 2ca28d7e3d2d6a26f863be4457b71160a5a6bf28 Mon Sep 17 00:00:00 2001 From: James Chen Date: Tue, 29 Jan 2013 16:45:11 +0800 Subject: [PATCH] Updating comments for CCFileUtils.h. --- cocos2dx/platform/CCFileUtils.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cocos2dx/platform/CCFileUtils.h b/cocos2dx/platform/CCFileUtils.h index 3c03ce08e4..bddeb189ed 100644 --- a/cocos2dx/platform/CCFileUtils.h +++ b/cocos2dx/platform/CCFileUtils.h @@ -228,6 +228,13 @@ public: * You can use this array to modify the search path of the resources. * If you want to use "themes" or search resources in the "cache", you can do it easily by adding new entries in this array. * + * @note This method could access relative path and absolute path. + * If the relative path was passed to the vector, CCFileUtils will add the default resource directory before the relative path. + * For instance: + * On Android, the default resource root path is "assets/". + * If "/mnt/sdcard/" and "resources-large" were set to the search paths vector, + * "resources-large" will be converted to "assets/resources-large" since it was a relative path. + * * @param searchPaths The array contains search paths. * @see fullPathForFilename() * @since v2.1