Revised String class
Renamed String::Substr to SubString Former-commit-id: 6aa925799e71af6916f7808368a3faa26efbe1bc
This commit is contained in:
@@ -262,9 +262,9 @@ bool NzDirectory::Create(const NzString& dirPath, bool recursive)
|
||||
|
||||
do
|
||||
{
|
||||
NzString p = path.Substr(0, foundPos);
|
||||
NzString p = path.SubString(0, foundPos);
|
||||
if (p.EndsWith(NAZARA_DIRECTORY_SEPARATOR))
|
||||
p = p.Substr(0, -2);
|
||||
p = p.SubString(0, -2);
|
||||
|
||||
if (!NzDirectoryImpl::Exists(p) && !NzDirectoryImpl::Create(p))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user