Просмотр исходного кода

Renamed FileSystem::dirname() to getDirectoryName

Darryl Gough 12 лет назад
Родитель
Сommit
2dac2eef86
3 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      gameplay/src/FileSystem.cpp
  2. 1 1
      gameplay/src/FileSystem.h
  3. 1 1
      gameplay/src/Properties.cpp

+ 1 - 1
gameplay/src/FileSystem.cpp

@@ -563,7 +563,7 @@ void FileSystem::createFileFromAsset(const char* path)
 #endif
 }
 
-std::string FileSystem::dirname(const char* path)
+std::string FileSystem::getDirectoryName(const char* path)
 {
     if (path == NULL || strlen(path) == 0)
     {

+ 1 - 1
gameplay/src/FileSystem.h

@@ -196,7 +196,7 @@ public:
      * 
      * @return The directory name with the trailing '/'. Returns "" if path is NULL or the path does not contain a directory.
      */
-    static std::string dirname(const char* path);
+    static std::string getDirectoryName(const char* path);
 
     /**
      * Returns the extension of the given file path.

+ 1 - 1
gameplay/src/Properties.cpp

@@ -108,7 +108,7 @@ Properties* Properties::create(const char* url)
         p = p->clone();
         SAFE_DELETE(properties);
     }
-    p->setDirectoryPath(FileSystem::dirname(fileString.c_str()));
+    p->setDirectoryPath(FileSystem::getDirectoryName(fileString.c_str()));
     return p;
 }