From 2f7f05d1d756ff3ca4ad7325186ad2941146463c Mon Sep 17 00:00:00 2001 From: minggo Date: Thu, 14 Nov 2013 18:39:23 +0800 Subject: [PATCH] fix asynchronize loading bug --- cocos/2d/platform/android/CCFileUtilsAndroid.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/cocos/2d/platform/android/CCFileUtilsAndroid.cpp b/cocos/2d/platform/android/CCFileUtilsAndroid.cpp index c447b5db32..3ca0e6a25f 100644 --- a/cocos/2d/platform/android/CCFileUtilsAndroid.cpp +++ b/cocos/2d/platform/android/CCFileUtilsAndroid.cpp @@ -153,16 +153,6 @@ unsigned char* FileUtilsAndroid::doGetFileData(const char* filename, const char* if (fullPath[0] != '/') { - - // fullPathForFilename is not thread safe. - if (forAsync) { - LOGD("Async loading not supported. fullPathForFilename is not thread safe."); - return NULL; - } - - string fullPath = fullPathForFilename(filename); - LOGD("full path = %s", fullPath.c_str()); - string relativePath = string(); size_t position = fullPath.find("assets/");