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
4 years ago
Alibek Omarov
2147542e33
engine: all user libraries packed inside archives are now deprecated
4 years ago
Alibek Omarov
894726d699
engine: disable custom DLL loader for everything except 32-bit x86
4 years ago
a1batross
4abe1a77f4
engine: filesystem: fix missing newline in debug message
4 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
Andrey Akhmichin
e3b547c8a9
public: rename mathlib to xash3d_mathlib.
5 years ago
mittorn
27da2e10ff
filesystem: fix const cast
5 years ago
mittorn
c7e3eae9dd
filesystem: fix wrong types
5 years ago
mittorn
22c148a39e
filesystem: refactor zip/pak loading, partially fix reading files from zip, add option to reduce FD usage, remove dup() dependency
5 years ago
mittorn
3a416636f1
engine: mark GAME_EXPORT's
5 years ago
Alibek Omarov
9421457b3a
engine: big refactoring commit, instead of using platform-specific platform-specific macros, use appropriate macros set by public/build.h
5 years ago
Alibek Omarov
f56887bde9
engine: fix rodir, now it always creates gamefolder in rwdir. Fixes #87
5 years ago
Alibek Omarov
aa6674b032
engine: support compiling with gcc3
5 years ago
mittorn
d6f8112860
gameinfo: add MIN_EDICTS constant instead of magic number 600, low it to 64
5 years ago
iZarif
bf8b87c29d
engine: client/common: fix a few more format warnings
5 years ago
Aimless Wanderer
409eee3bb4
engine: fix gameinfo parsing
5 years ago
Alibek Omarov
ca57c8424d
filesystem: follow C89
5 years ago
Alibek Omarov
4beba75159
engine: fix various compiler warnings
6 years ago
Alibek Omarov
e700a7498e
engine: move matchpattern from old engine
6 years ago
Alibek Omarov
89a3fd6323
engine: make use of platform-unique library naming scheme
6 years ago
Alibek Omarov
8d2bea03e0
filesystem: disable netpath code
...
This code was used in ancient approach, where executables and game files may have different path.
And this code was working only on Win32 with case-insensitive `getenv()`
6 years ago
Alibek Omarov
70d45f23de
public: crclib now is part of public library
6 years ago
Alibek Omarov
85240f0145
filesystem: zip: use miniz header only library instead of zlib, add miniz generated header(stripped ZIP reading/writing code)
6 years ago
Mr0maks
01a33dcf7e
filesystem: zip: remove 'big' block
6 years ago
Mr0maks
b42f020ad5
filesystem: zip: warning else zip file is empty
6 years ago
Mr0maks
6422005716
filesystem: zip: remove commented code
6 years ago
Mr0maks
efc9048b43
filesystem: zip: zlib error code
6 years ago
Mr0maks
12bc507156
filesystem: zip: working unpack code
6 years ago
Mr0maks
f9a7ffa5e8
filesystem: zip: remove malloc
6 years ago
Alibek Omarov
1d78d7c720
filesystem: fix even more char signness
6 years ago
Mr0maks
1cc2ec9095
filesystem: zip: codestyle 2
6 years ago
Mr0maks
5cf4e34607
filesystem: zip: codestyle
6 years ago
Mr0maks
b32de42ab7
filesystem: zip: fix memory leak (not freed info)
6 years ago
Mr0maks
b04a48f126
filesystem: zip: remove XASH_ZLIB macro
6 years ago
Mr0maks
3c0a34926a
filesystem: zip: pk3 support
6 years ago