Alibek Omarov
f13c285287
filesystem: verbose error printing in FS_SetCurrentDirectory, move error reporting from engine
1 year ago
Alibek Omarov
cca7744f1c
filesystem: make some calls from API safe to use without initialize
1 year ago
Alibek Omarov
31ae22961b
filesystem: add base test case to call ShutdownStdio without calling Init prior
1 year ago
Alibek Omarov
d0127e5e14
filesystem: fix FS_GetDiskPath, it was broken since implementing caseinsensitive emulation, oops
...
Anyway, FS_GetFullDiskPath is a proper safe version that lacks this bug
2 years ago
Alibek Omarov
5a7b68fcc1
filesystem: add new export FS_GetFullDiskPath, similar to FS_GetDiskPath, but generates full path to the file, including searchpath
2 years ago
Alibek Omarov
e2540bd446
filesystem: turn unused caseinsensitive argument in InitStdio into a reserved argument (set to true by default)
2 years ago
Alibek Omarov
07fd4f37ef
engine: remove unused -caseinsensitive command line argument
2 years ago
Alibek Omarov
71a3cedba8
filesystem: add size argument to COM_Default/ReplaceExtension calls
2 years ago
Alibek Omarov
b16fa8eddc
public: remove Q_strcat and Q_strcpy, and patch the code that uses it
2 years ago
Alibek Omarov
096ee34f67
public: remove Q_vsprintf, replace by proper Q_vsnprintf proper calls
...
Fixes weird off by one error caused by glibc updates? I didn't tracked
what causes it exactly but replacing it seems to work. Anyway, we should
remove all 99999 hacks in libpublic.
2 years ago
Alibek Omarov
eb0686fca1
filesystem: fix wrong data type for character in Gets and Ungetc
2 years ago
Alibek Omarov
de88aec958
filesystem: restore DarkPlaces contributors copyrights lost in filesystem_stdio
...
* Add Xash3D FWGS contributors copyrights
2 years ago
Alibek Omarov
e673fe9a02
filesystem: only create readwrite directories if they look like a gamedirectory in rodir
2 years ago
Andrey Akhmichin
34160151a4
filesystem: replace va function calls.
2 years ago
Alibek Omarov
3c27384b6b
filesystem: speedup fs_ext_path case in FS_FindFile
2 years ago
Alibek Omarov
e95161aa14
filesystem: fix ClearSearchPath
2 years ago
Alibek Omarov
9c0c1a802c
filesystem: fix strict order of loading archives
2 years ago
Alibek Omarov
eb0459a045
engine: strip Intel suffixes from server library name, but only on special platforms
...
Remove same code from filesystem, it's not what filesystem should do
2 years ago
Alibek Omarov
b4c0ccbede
filesystem: fix _wstat usage under Windows, remove PATH_SEPARATOR usage, fix listdirectory
2 years ago
Alibek Omarov
15846a8ea8
filesystem: use POSIX funcs for Windows too, where possible, apply wide char conversion for Sys functions
2 years ago
Alibek Omarov
03a3fb83b6
filesystem: write extended fields to gameinfo.txt, as this function is used to write game info when using rodir
2 years ago
Alibek Omarov
c454e37064
filesystem: allow to init with NULL overrides
2 years ago
Alibek Omarov
fe1aba3561
filesystem: apply caseinsensitivity to file creation
...
Replace fs_writedir with fs_writepath, exposing current writeable searchpath.
Fix caseinsensitive FS_Search
Remove unused argument from listdirectory()
Minor optimizations and refactoring
2 years ago
Alibek Omarov
3393e2d95c
filesystem: implement directory entries caching, to avoid excessive directory listing syscalls to emulate case-insensitive filesystems
...
* simplify game directory initialization code
2 years ago
Alibek Omarov
18e68f1ab3
filesystem: fix missing cast
2 years ago
Alibek Omarov
f1ec612819
filesystem: hungry
2 years ago
Alibek Omarov
48c17d08d9
filesystem: dir: move searchpath initialization to dir.c, make all DIR functions static
2 years ago
Alibek Omarov
934d9ba69a
filesystem: fix FS_GetDiskPath
2 years ago
Alibek Omarov
eb36fe0155
filesystem: fill searchpath DIR functions only if file was found in direct path
2 years ago
Alibek Omarov
9381a40506
filesystem: check only DLLs for encryption
2 years ago
Andrey Akhmichin
0c4f35e2d0
filesystem: simplify strings operations.
2 years ago
SNMetamorph
a2971ce939
filesystem: fixed uninitialized pointers in FS_FindFile when fs_ext_path enabled
2 years ago
Velaron
43c6175918
filesystem: dir.c: safer string operations
2 years ago
Velaron
fcd741e2b8
filesystem: fix FS_FixFileCase behavior
2 years ago
Velaron
24f7db19d8
filesystem: switch file operations to an interface
2 years ago
Alibek Omarov
b1ee27a3f3
filesystem: add new token internal_vgui_support to mark client dlls that have internal VGUI implementation(to support other UI systems)
2 years ago
Alibek Omarov
adb8ec1da8
filesystem: try to normalize linux gamedll path for liblist.gam
2 years ago
Bien Pham
816337a7bb
filesystem: set root directory as static
...
Counter-Strike uses COM_ExpandFileName to get
full path to filesystem_stdio. When reading liblist.gam,
the engine will clear the search path and the root search path
will be cleared. Set it as static so it will be excluded from clearing.
2 years ago
Alibek Omarov
234c843f60
filesystem: integrate inotify for file changes
2 years ago
Alibek Omarov
fce8afabfb
filesystem: allow acquiring C interface through CreateInterface export
2 years ago
Alibek Omarov
10ad1c3b38
filesystem: use correct flushing function for file descriptors on Win32
2 years ago
SNMetamorph
fd7dba74cd
filesystem: fixed build for Windows
2 years ago
Alibek Omarov
55a29e6e6b
filesystem: implement VFileSystem009 interface
2 years ago
Alibek Omarov
5e4fc64430
filesystem: introduce new module, based on engine filesystem.
...
The goal is to share filesystem code between engine and
utilities and provide C++ VFileSystem interface in the future
2 years ago
Alibek Omarov
45bf927c74
engine: filesystem: avoid FS_SysFolderExists spam if stat returned ENOTDIR
2 years ago
Andrey Akhmichin
6b4f55c4bf
engine: common: filesystem.c: do not load archives with zip extention again
2 years ago
Alibek Omarov
4fbd96d201
engine: common: filesystem: speed up directory existense check on POSIX by using stat() instead of opendir()
3 years ago
SNMetamorph
65d624140e
engine: filesystem: fixed FS_Search algorithm for ZIP files ( fix #796 )
3 years ago
Alibek Omarov
203afda053
engine: add render_picbutton_text flag to use mainui_cpp font renderer for rendering WON buttons
3 years ago
Alibek Omarov
96f35f76e1
engine: filesystem: fix creating directories with roDir
3 years ago