# refactor VFS path-related functions; split into separate files

- replace all hardcoded strrchr functions (used to get extension / file
name only) with path helper functions (found a few bugs in the process)
- split VFS-independent path helper functions into lib/path_util (allows
including by other files without pulling in entire VFS)
- renamed pp_* functions path_package_*
- split remaining path helper functions into lib/res/file/path
- vfs: split should-reload logic out of vfs_reload_changed_files

- lib: add comments to rand/xrand

This was SVN commit r3796.
This commit is contained in:
janwas
2006-04-22 16:26:16 +00:00
parent b5d9da29c1
commit 01700f0e9f
37 changed files with 872 additions and 871 deletions
+2 -2
View File
@@ -330,8 +330,8 @@ bool CConfigDB::WriteFile(EConfigNamespace ns, bool useVFS, CStr path)
{
debug_assert(ns >= 0 && ns < CFG_LAST);
char realpath[VFS_MAX_PATH];
char nativepath[VFS_MAX_PATH];
char realpath[PATH_MAX];
char nativepath[PATH_MAX];
const char *filepath=path.c_str();
int err;
FILE *fp;