summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/physfstools.cpp22
-rw-r--r--src/utils/physfstools.h24
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;