mirror of https://github.com/axmolengine/axmol.git
Merge pull request #4259 from minggo/async-loading-fix
[ci skip]fix asynchronize loading bug
This commit is contained in:
commit
9b746d22f5
|
@ -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/");
|
||||||
|
|
Loading…
Reference in New Issue