Merge pull request #4259 from minggo/async-loading-fix

[ci skip]fix asynchronize loading bug
This commit is contained in:
minggo 2013-11-14 02:40:44 -08:00
commit 9b746d22f5
1 changed files with 0 additions and 10 deletions

View File

@ -153,16 +153,6 @@ unsigned char* FileUtilsAndroid::doGetFileData(const char* filename, const char*
if (fullPath[0] != '/') 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(); string relativePath = string();
size_t position = fullPath.find("assets/"); size_t position = fullPath.find("assets/");