Alibek Omarov
35dc072b26
filesystem: on Android, assume all paths are case-sensitive because doing Linux-specific ioctl check crashes FUSE driver and kills our app
2025-01-13 13:56:15 +03:00
Alibek Omarov
f92a3695b3
filesystem: fix fd leak in Platform_GetDirectoryCaseSensitivity
2025-01-13 13:54:42 +03:00
Alibek Omarov
cfebb3e1d6
filesystem: massively rework how scanning game directories work
...
* No more conversion from liblist.gam to gameinfo.txt. We are using liblist.gam directly now.
gameinfo.txt being native format to Xash3D not only remains, it takes priority over liblist.gam.
* Quake game directories now don't receive autogenerated gameinfo.txt.
* Empty directories don't get gameinfo.txt either, finally making it easier to support HD addon folders.
* If user still wishes to generate gameinfo.txt, there is now command fs_make_gameinfo that creates
gameinfo.txt for currently running game.
* No more creating empty folders for RoDir. They are now created on demand.
2025-01-08 01:22:23 +03:00
Alibek Omarov
ec107dfba5
filesystem: load on-disk archives like PAK and PK3 through VFS (disk-only for now)
...
* Track from which archive the file has been opened and provide needed functions for it
2024-06-27 07:31:11 +03:00
Alibek Omarov
d56e53a347
Replace hardcoded functions names by __func__ macro
...
* while we're here, fix some possible bugs
* and fix -Wformat=2
s/__FUNCTION__/__func__/g
awawawa
2024-06-19 06:53:42 +03:00
Alibek Omarov
3f724b6b17
filesystem: remove some really unused variables
2023-12-04 03:00:29 +03:00
Alibek Omarov
a6ecc778fc
filesystem: dir: fix FS_FixFileCase when empty string is passed. Always append slash to searchpath.
2023-06-08 22:58:24 +03:00
Alibek Omarov
0d6137ee40
filesystem: make generic archive loading functions (with the exception of WADs). Do not alter global searchpath from archives.
2023-06-08 22:14:30 +03:00
Alibek Omarov
de88aec958
filesystem: restore DarkPlaces contributors copyrights lost in filesystem_stdio
...
* Add Xash3D FWGS contributors copyrights
2023-04-15 02:39:38 +03:00
fgsfds
577add56f1
filesystem: fs is non case sensitive on nswitch and psvita
2023-03-11 07:09:18 +03:00
fgsfds
7424b29e56
engine: initial psvita build support
2023-03-11 07:09:14 +03:00
Alibek Omarov
34eb258cae
filesystem: dir: remove PATH_SEPARATOR, fix return value when directory is caseinsensitive
2023-01-04 22:34:45 +03:00
Alibek Omarov
e694081626
filesystem: dir: guarantee file existense in FS_FixFileCase for caseinsensitive directories
2023-01-04 18:09:00 +03:00
Alibek Omarov
e5763e2e9a
filesystem: dir: check dir casesensitivity after dir entries list was properly initialized
2023-01-03 01:15:28 +03:00
Alibek Omarov
42a3c7b059
filesystem: dir: fix dir entry cache init in case of directory was empty previously
2023-01-03 00:24:57 +03:00
Alibek Omarov
339711c3c7
filesystem: dir: check casefold directory flag
2022-12-27 02:31:46 +03:00
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
2022-12-27 02:31:46 +03:00
Alibek Omarov
b36ebc294f
filesystem: dir: exit from loop immediately if directory is caseinsensitive
2022-12-27 02:31:46 +03:00
Alibek Omarov
3d71e5d111
filesystem: dir: fix merging existing cache with new directory entries
2022-12-27 02:31:46 +03:00
Alibek Omarov
ac59f25375
DO NOT MERGE filesystem: add naive FixFileCase
2022-12-27 02:31:46 +03:00
Alibek Omarov
3393e2d95c
filesystem: implement directory entries caching, to avoid excessive directory listing syscalls to emulate case-insensitive filesystems
...
* simplify game directory initialization code
2022-12-27 02:31:46 +03:00
Alibek Omarov
f1ec612819
filesystem: hungry
2022-12-15 01:06:20 +03:00
Alibek Omarov
48c17d08d9
filesystem: dir: move searchpath initialization to dir.c, make all DIR functions static
2022-12-15 00:52:09 +03:00
Velaron
43c6175918
filesystem: dir.c: safer string operations
2022-11-24 03:19:21 +03:00
Velaron
89807250e5
filesystem: dir.c: optimize string operations
2022-11-24 03:19:10 +03:00
Velaron
24f7db19d8
filesystem: switch file operations to an interface
2022-11-24 03:19:05 +03:00