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/utils/physfstools.cpp | |
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/utils/physfstools.cpp')
-rw-r--r-- | src/utils/physfstools.cpp | 22 |
1 files changed, 11 insertions, 11 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); } |