diff --git a/extensions/Particle3D/ParticleUniverse/CCPUParticle3DMaterialManager.cpp b/extensions/Particle3D/ParticleUniverse/CCPUParticle3DMaterialManager.cpp index 2bd7b6a672..3a26d64597 100644 --- a/extensions/Particle3D/ParticleUniverse/CCPUParticle3DMaterialManager.cpp +++ b/extensions/Particle3D/ParticleUniverse/CCPUParticle3DMaterialManager.cpp @@ -170,8 +170,8 @@ bool PUParticle3DMaterialCache::loadMaterialsFromSearchPaths( const std::string if(!(d = opendir(fileFolder.c_str()))) { - printf("error opendir %s!!!\n",path); - return -1; + CCLOG("error opendir %s!!!\n",fileFolder.c_str()); + return false; } while((file = readdir(d)) != NULL) {