mirror of https://github.com/axmolengine/axmol.git
issue #1683: Updating CCFileUtils.
This commit is contained in:
parent
be6c0c9d9b
commit
09cef5511a
|
@ -212,7 +212,7 @@ void CCFileUtils::setResourceDirectory(const char* pszResourceDirectory)
|
||||||
{
|
{
|
||||||
m_obDirectory.append("/");
|
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()
|
std::string CCFileUtils::getWriteablePath()
|
||||||
|
|
|
@ -203,7 +203,7 @@ void CCFileUtils::setResourceDirectory(const char* pszResourceDirectory)
|
||||||
{
|
{
|
||||||
m_obDirectory.append("/");
|
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()
|
std::string CCFileUtils::getWriteablePath()
|
||||||
|
|
|
@ -229,7 +229,7 @@ void CCFileUtils::setResourceDirectory(const char* pszResourceDirectory)
|
||||||
m_obDirectory.append("/");
|
m_obDirectory.append("/");
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pSearchPathArray->insertObject(CCString::create(m_obDirectory.c_str()), 0);
|
m_searchPathArray.insert(m_searchPathArray.begin(), m_obDirectory);
|
||||||
}
|
}
|
||||||
|
|
||||||
string CCFileUtils::getWriteablePath()
|
string CCFileUtils::getWriteablePath()
|
||||||
|
|
Loading…
Reference in New Issue