From 962229519bb4b84985515861eb9afefa09dcdda5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 18 Apr 2013 17:00:49 +0300 Subject: improve physfstools file. --- src/utils/physfstools.cpp | 22 +++++++++++----------- src/utils/physfstools.h | 24 ++++++++++++------------ 2 files changed, 23 insertions(+), 23 deletions(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2