From a50efe998f7c8d3ee633944ac13508fce002b892 Mon Sep 17 00:00:00 2001 From: yangxiao Date: Mon, 16 Feb 2015 11:57:07 +0800 Subject: [PATCH] fix compile --- .../ParticleUniverse/CCPUParticle3DMaterialManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {