From 09cef5511a94a3c7bab05deb616fe5c95a637f23 Mon Sep 17 00:00:00 2001 From: James Chen Date: Sat, 26 Jan 2013 23:24:41 +0800 Subject: [PATCH] issue #1683: Updating CCFileUtils. --- cocos2dx/platform/blackberry/CCFileUtils.cpp | 2 +- cocos2dx/platform/marmalade/CCFileUtils.cpp | 2 +- cocos2dx/platform/win32/CCFileUtils.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cocos2dx/platform/blackberry/CCFileUtils.cpp b/cocos2dx/platform/blackberry/CCFileUtils.cpp index ac8ce63eb6..5017898f6b 100644 --- a/cocos2dx/platform/blackberry/CCFileUtils.cpp +++ b/cocos2dx/platform/blackberry/CCFileUtils.cpp @@ -212,7 +212,7 @@ void CCFileUtils::setResourceDirectory(const char* pszResourceDirectory) { m_obDirectory.append("/"); } - m_pSearchPathArray->insertObject(CCString::create(m_obDirectory.c_str()), 0); + m_searchPathArray.insert(m_searchPathArray.begin(), m_obDirectory); } std::string CCFileUtils::getWriteablePath() diff --git a/cocos2dx/platform/marmalade/CCFileUtils.cpp b/cocos2dx/platform/marmalade/CCFileUtils.cpp index 17a7eec671..738f5fa2ca 100644 --- a/cocos2dx/platform/marmalade/CCFileUtils.cpp +++ b/cocos2dx/platform/marmalade/CCFileUtils.cpp @@ -203,7 +203,7 @@ void CCFileUtils::setResourceDirectory(const char* pszResourceDirectory) { m_obDirectory.append("/"); } - m_pSearchPathArray->insertObject(CCString::create(m_obDirectory.c_str()), 0); + m_searchPathArray.insert(m_searchPathArray.begin(), m_obDirectory); } std::string CCFileUtils::getWriteablePath() diff --git a/cocos2dx/platform/win32/CCFileUtils.cpp b/cocos2dx/platform/win32/CCFileUtils.cpp index af66179284..b8a436e717 100644 --- a/cocos2dx/platform/win32/CCFileUtils.cpp +++ b/cocos2dx/platform/win32/CCFileUtils.cpp @@ -229,7 +229,7 @@ void CCFileUtils::setResourceDirectory(const char* pszResourceDirectory) m_obDirectory.append("/"); } - m_pSearchPathArray->insertObject(CCString::create(m_obDirectory.c_str()), 0); + m_searchPathArray.insert(m_searchPathArray.begin(), m_obDirectory); } string CCFileUtils::getWriteablePath()