mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-14 07:17:44 +00:00
# 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user