diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-18 17:00:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-18 17:00:49 +0300 |
commit | 962229519bb4b84985515861eb9afefa09dcdda5 (patch) | |
tree | d59f14b820180f4e3d57174afd3788401a2dfc3a /src | |
parent | c6c19ae251b6004a0972a0e5cc1750b79abaeb4a (diff) | |
download | manaplus-962229519bb4b84985515861eb9afefa09dcdda5.tar.gz manaplus-962229519bb4b84985515861eb9afefa09dcdda5.tar.bz2 manaplus-962229519bb4b84985515861eb9afefa09dcdda5.tar.xz manaplus-962229519bb4b84985515861eb9afefa09dcdda5.zip |
improve physfstools file.
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/physfstools.cpp | 22 | ||||
-rw-r--r-- | src/utils/physfstools.h | 24 |
2 files changed, 23 insertions, 23 deletions
diff --git a/src/utils/physfstools.cpp b/src/utils/physfstools.cpp index 93f677ca0..d15932274 100644 --- a/src/utils/physfstools.cpp +++ b/src/utils/physfstools.cpp @@ -46,17 +46,17 @@ namespace PhysFs return PHYSFS_getUserDir(); } - bool exists(const char *fname) + bool exists(const char *const fname) { return PHYSFS_exists(fname); } - char **enumerateFiles(const char *dir) + char **enumerateFiles(const char *const dir) { return PHYSFS_enumerateFiles(dir); } - bool isDirectory(const char *fname) + bool isDirectory(const char *const fname) { return PHYSFS_isDirectory(fname); } @@ -66,42 +66,42 @@ namespace PhysFs PHYSFS_freeList(listVar); } - PHYSFS_file *openRead(const char *filename) + PHYSFS_file *openRead(const char *const filename) { return PHYSFS_openRead(filename); } - PHYSFS_file *openWrite(const char *filename) + PHYSFS_file *openWrite(const char *const filename) { return PHYSFS_openWrite(filename); } - PHYSFS_file *openAppend(const char *filename) + PHYSFS_file *openAppend(const char *const filename) { return PHYSFS_openAppend(filename); } - bool setWriteDir(const char *newDir) + bool setWriteDir(const char *const newDir) { return PHYSFS_setWriteDir(newDir); } - bool addToSearchPath(const char *newDir, int appendToPath) + bool addToSearchPath(const char *const newDir, const int appendToPath) { return PHYSFS_addToSearchPath(newDir, appendToPath); } - bool removeFromSearchPath(const char *oldDir) + bool removeFromSearchPath(const char *const oldDir) { return PHYSFS_removeFromSearchPath(oldDir); } - const char *getRealDir(const char *filename) + const char *getRealDir(const char *const filename) { return PHYSFS_getRealDir(filename); } - bool mkdir(const char *dirname) + bool mkdir(const char *const dirname) { return PHYSFS_mkdir(dirname); } diff --git a/src/utils/physfstools.h b/src/utils/physfstools.h index 0ad59e283..47625ca76 100644 --- a/src/utils/physfstools.h +++ b/src/utils/physfstools.h @@ -29,18 +29,18 @@ namespace PhysFs const char *getDirSeparator(); const char *getBaseDir(); const char *getUserDir(); - bool exists(const char *fname); - char **enumerateFiles(const char *dir); - bool isDirectory(const char *fname); - void freeList(void *listVar); - PHYSFS_file *openRead(const char *filename); - PHYSFS_file *openWrite(const char *filename); - PHYSFS_file *openAppend(const char *filename); - bool setWriteDir(const char *newDir); - bool addToSearchPath(const char *newDir, int appendToPath); - bool removeFromSearchPath(const char *oldDir); - const char *getRealDir(const char *filename); - bool mkdir(const char *dirName); + bool exists(const char *const fname); + char **enumerateFiles(const char *const dir); + bool isDirectory(const char *const fname); + void freeList(void *const listVar); + PHYSFS_file *openRead(const char *const filename); + PHYSFS_file *openWrite(const char *const filename); + PHYSFS_file *openAppend(const char *const filename); + bool setWriteDir(const char *const newDir); + bool addToSearchPath(const char *const newDir, const int appendToPath); + bool removeFromSearchPath(const char *const oldDir); + const char *getRealDir(const char *const filename); + bool mkdir(const char *const dirName); } // namespace PhysFs extern const char *dirSeparator; |