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
3 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
Alibek Omarov
13cf909b99
engine: filesystem: allow extras ZIPs
3 years ago
Alibek Omarov
606b5354e6
engine: filesystem: fix loading ZIP files
3 years ago
Alibek Omarov
e29dcb4125
engine: filesystem: accept ZIP files with zip extension, do not assert with NULL free in Zip_Close
3 years ago
Alibek Omarov
4f89288ccf
common: cleanup port.h
3 years ago
Alibek Omarov
764ef93984
common: add fs_size_t typedef, for read()/write() return value
3 years ago
Alibek Omarov
d8b3ab4dcc
engine: filesystem: fix unused result warnings
3 years ago
Alibek Omarov
7e574ea42e
engine: filesystem: do not create folders for files in rodir mode
3 years ago
Alibek Omarov
94dc74a37f
engine: restrict potentially harmful engine commands
3 years ago
Alibek Omarov
29a8bfb1dc
engine: common: fix ParseFile calls
3 years ago
SNMetamorph
e4ad8def0d
engine: filesystem: fixed current directory changing for Windows
3 years ago
Alibek Omarov
0efc5e82ec
engine: fix some const qualifier lose and pointer-to-int casts
3 years ago
Alibek Omarov
15ec6539e3
engine: filesystem: fix custom loader enabled by mistype
3 years ago
Alibek Omarov
2147542e33
engine: all user libraries packed inside archives are now deprecated
3 years ago
Alibek Omarov
894726d699
engine: disable custom DLL loader for everything except 32-bit x86
3 years ago
a1batross
4abe1a77f4
engine: filesystem: fix missing newline in debug message
3 years ago
exstrim401
db3e71bfcc
engine: Removed unused Haiku variables
4 years ago
exstrim401
2b436dced0
engine: Remove XASH3D_MIRRORDIR
...
also make XASH3D_GAME for all platforms
4 years ago
exstrim401
a89f9fa181
engine: Haiku BeGameLauncher support
4 years ago
Alibek Omarov
9313f7e80e
engine: replace pool pointer by pool handle
4 years ago
Alibek Omarov
585955eb19
engine: filesystem: add an error message if we're trying to get a handle of a compressed file in ZIP archive
4 years ago
Alibek Omarov
26404315cb
engine: filesystem: avoid unnecessary padding in private structs
4 years ago
Alibek Omarov
be1958473b
engine: filesystem: fix liblistgam converting to gameinfo when rodir was enabled
4 years ago
Andrey Akhmichin
75210b1ff6
engine: common: filesystem.c: add binary search for files from zip-archives.
4 years ago
Ivan Avdeev
1b426b67e7
partially fix amd64 build on windows
...
Quality of this commit is questionable. I have no idea whether what I did
here makes sense or not.
But it compiles and runs (provided with hlsdk-xash3d amd64 build, which
is another story).
This omits necessary waf changes that are necessary to make a valid
64-bit build. Apparently it's not enough to just pass `-8` on Windows,
you also need to hack wscript to add `x64` target to MSVC. I'll do that
later when I figure out how.
This change is a precursor for RTX Vulkan effort --
VK_KHR_ray_tracing_pipeline and friends are only available on 64-bit
nvidia drivers (no idea about AMD, pls send GPUs onegai).
4 years ago
Gleb Mazovetskiy
5e0a0765ce
Trim all trailing whitespace
...
The `.editorconfig` file in this repo is configured to trim all trailing
whitespace regardless of whether the line is modified.
Trims all trailing whitespace in the repository to make the codebase easier
to work with in editors that respect `.editorconfig`.
`git blame` becomes less useful on these lines but it already isn't very useful.
Commands:
```
find . -type f -name '*.h' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
find . -type f -name '*.c' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
```
4 years ago
Andrey Akhmichin
abd9778ef3
engine: common: simplified strings operations.
4 years ago
Andrey Akhmichin
065811cc46
engine: common: filesystem.c: do not load zip-archives with zip extension as bullet proof.
4 years ago
Alibek Omarov
82c54b1b54
engine: disallow zero-width strings for getenv()
5 years ago
mittorn
68472f90eb
filesystem: disable XASH_REDUCE_FD where it not needed, fix null pointer deference
5 years ago