Alibek Omarov
9569900b9c
engine: redefine cvar flags in functions arguments from plain int to uint32_t
2025-12-07 15:23:35 +03:00
Max Parry
2ef374ff4a
engine: imagelib: img_bmp: support for big endian RGB format
...
Allows software rendering save screenshots
2025-12-06 19:46:25 +11:00
Alibek Omarov
3bc32d6e1b
engine: shift netchan flags bit to the right, as one of the flags is removed
2025-12-01 13:03:53 +05:00
Alibek Omarov
cfa8e639f1
engine: drop legacy protocol support
2025-12-01 13:03:53 +05:00
ncuxonaT
c7f18d7abe
dds volume texture fix - img_dds.c
2025-11-27 23:17:18 +08:00
Alibek Omarov
e32470280d
engine: add file size argument to brush model loading functions
2025-11-27 19:26:36 +05:00
Alibek Omarov
6aadb4ceea
engine: initialize default video mode in refState global, as we don't support reloading engine without reinitializing globals anyway
2025-11-23 11:54:33 +05:00
Alibek Omarov
3fc59104f3
engine: make FS_CopyImage argument const
2025-11-22 13:11:41 +05:00
Alibek Omarov
27086bfb97
engine: set r_wadtextures and r_allow_wad3_luma as latched cvars, as those require reloading textures and thus the game
2025-11-18 15:38:25 +05:00
Alibek Omarov
93dfcc344b
engine: implement loading luma in half-life
2025-11-18 15:35:20 +05:00
Alibek Omarov
c2448c8881
engine: imagelib: allow specifiying index for empty pixels when processing luma texture
2025-11-18 15:35:20 +05:00
veygax
28c118a4e6
engine: zone: free poolchain on every iteration of Memory_Init
...
free poolchain when calling Memory_Init multiple times.
Fixes: memory leak when running run-fuzzer-Image_LoadBMP
Signed-off-by: veygax <veyga@veygax.dev >
2025-11-16 01:17:05 +08:00
veygax
0c3c6345e9
engine: imagelib: fix pixel iteration bounds checking on 1-bit BMPs
...
move 1-bit BMP bounds checking to the beginning of a loop to prevent a second iteration
Fixes: [GHSA-3p7j-2339-g5mm](https://github.com/FWGS/xash3d-fwgs/security/advisories/GHSA-3p7j-2339-g5mm )
Signed-off-by: veygax <veyga@veygax.dev >
2025-11-15 12:50:33 +08:00
Alibek Omarov
300edb3318
engine: remember last resolved master server address for about a minute
2025-11-12 20:04:55 +05:00
Alibek Omarov
0dfeea5213
Migrate to library-suffix library
2025-11-11 06:59:41 +05:00
Alibek Omarov
184e976c5d
engine: call appropriate model loader on big endian
2025-11-06 23:37:27 +05:00
Alibek Omarov
a0b40fc2da
engine: common: explicitly cast function offset into size_t, even though it's signed ptrdiff, saverestore offset mistakingly used unsigned numbers
2025-11-06 20:06:51 +05:00
ksagameng2
a9bf700da4
Restore iOS build support ( #2352 )
...
* initial commit
* initial commit
* add port files
* ios: Changes to allow creating app bundle without xcode projects
* ios: Added mic perms request
* ios: Very basic app bundle creation script
* ios: Fix -log parameter
* ios: Sdk no longer hardcoded and option to compile for simulator
* general: Update gitignore
* ios: Enable game mode for the app
* ios: Compile instructions and updated ipa creation script
* ios: Code cleanup
* ios: Remove dylibs
* general: Remove extra submodules
* ios: Remove dylibs again
* ios: Implement suggested changes
* ios: Fix building as dylib instead of binary
* ios: Scripts for building mods
* ios: Move 'ios' contents to engine/platform/ios/bundle and modify scripts
* ios: Update createipa.sh to use waf install
* ios: Clean script and updated README
* general: Fix spelling mistake and outdated instructions
* ios: Clean up in xcompile.py
* ios: Fix createipa.sh generating an invalid ipa
* ios: Temporary fix for launch dialog textfield colors in dark mode
2025-11-01 18:32:00 +05:00
Alibek Omarov
a14cc82d46
engine: add buffer size argument to RefAPI's Mod_ProcessRenderData, bump RefAPI version
2025-10-31 15:58:05 +05:00
Alibek Omarov
b3dc772cd2
engine: add file size argument to sprite model loader
2025-10-31 15:56:31 +05:00
Alibek Omarov
21ea83027e
engine: imagelib: fix buffer overflow when the amount of colors in palette reported by BMP header are higher than 256
...
Thanks to @veygax for report!
2025-10-30 17:30:02 +05:00
Alibek Omarov
d8dcfc0ab3
engine: add \n to all Cbuf_AddText calls
2025-10-16 04:36:38 +05:00
lewa_j
37e9ac453b
win32: engine: common: client: filesystem: Fix windows build with -Werror=implicit-function-declaration
2025-10-12 00:21:00 +08:00
Alibek Omarov
ccbb3a2841
engine: fix format error when building tests on 64-bit platforms
2025-10-08 05:08:48 +05:00
Alibek Omarov
3d132e0e83
common: port: move filesystem related macros to filesystem module, try to include less globally for faster builds
2025-10-08 05:03:29 +05:00
Alibek Omarov
64adb3e3d7
engine: rename MS_SCAN_REQUEST to A2M_SCAN_REQUEST
2025-10-05 10:04:18 +05:00
Alibek Omarov
3efbe205ac
engine: define server-to-master requests in protocol.h
2025-10-05 09:28:11 +05:00
Alibek Omarov
712c1e2f95
engine: fix send state of master servers being cleared twice
2025-10-04 00:14:58 +05:00
Alibek Omarov
6d7bfc37f6
engine: allow loading xashcomm.lst from base directory
2025-10-03 22:45:50 +05:00
Alibek Omarov
cc5f95d1ca
engine: support querying legacy goldsrc master servers
...
* General refactoring, hide out of band messages under cl_log_outofband cvar, similar to sv_log_outofband.
2025-10-03 21:54:59 +05:00
Alibek Omarov
cb7094bb2d
engine: move setjmp for exit-in-main to the beginning of Host_Main function
2025-10-02 18:42:09 +05:00
Alibek Omarov
153b04abc3
engine: move crash handler initialization after console, so error messages could be seen in console, but move log creation before console, so log catches more messages
2025-10-02 05:40:58 +08:00
Alibek Omarov
9aab12fc27
engine: remove global no async resolve switch, platforms that do not support it shall add stubs to engine/platform
2025-09-29 00:12:37 +05:00
Alibek Omarov
e83ab95279
engine: gethostbyname() is deprecated, remove it and always prefer getaddrinfo
2025-09-29 00:09:56 +05:00
Alibek Omarov
7c0045a3b7
engine: show -noavi and -nointro options help everywhere, as we now have crossplatform video playback
2025-09-29 00:07:21 +05:00
Alibek Omarov
1f88e0465d
engine: make Host_ExitInMain used everywhere, as we depend on sjlj functions on all platforms anyway
2025-09-29 00:06:41 +05:00
Alibek Omarov
cee1e74872
engine: drop dllemu glue, as it won't build with current engine anyway and not supported by it's author :(
2025-09-29 00:01:59 +05:00
Alibek Omarov
71cec3c069
engine: activate fakelag when both cheats and dev-mode are enabled
2025-09-28 22:50:51 +05:00
Alibek Omarov
cb81303ded
engine: replace hardcoded pvs radius value by a r_pvs_radius cvar
2025-09-28 18:31:03 +05:00
Alibek Omarov
c177be0dd8
engine: move our HTTP client to http subfolder, prepare for curl integration
2025-09-19 09:15:17 +05:00
Alibek Omarov
793de9ec3e
engine: move clc_strings definition to net_buffer, alongside svc_strings
2025-09-06 04:58:34 +05:00
Alibek Omarov
7e3dc39cdd
engine: similar to other config saving functions, print when vfs.cfg is being saved
2025-09-01 01:46:27 +05:00
Alibek Omarov
9c6589fa03
engine: introduce vfs.cfg to properly control user set addon folders
...
vfs.cfg executed before game directory is mounted, this way we can know which
folders must be mounted before engine initialization.
This commit also removes buggy hot reload of the addon folders.
2025-09-01 01:42:37 +05:00
Alibek Omarov
4c0931cc89
engine: fix loading mods on Linux that have Intel architecture suffix, like ag_i386.so
2025-08-27 16:12:21 +05:00
Alibek Omarov
e52c46ec5e
engine: imagelib: rename mips variable to mipmaps, to avoid clash with some MIPS compilers
...
While here, reduce some variables scope.
2025-08-25 11:37:14 +05:00
Alibek Omarov
f12ef07c02
engine: whereami: add support for GNU/Hurd
2025-08-13 17:02:22 +05:00
Alibek Omarov
4f45df2293
engine: imagelib: add missing argument name, so it compilers with old C standards compliant compilers
2025-08-11 20:50:03 +05:00
Alibek Omarov
3a6862f278
engine: when specifying server dll name with an @ (give that feature a name please), actually look for it in server dlls folder
2025-08-11 18:44:12 +05:00
Alibek Omarov
be0d31f408
engine: imagelib: try to use FS_Search to bruteforce through supported image formats
2025-08-08 18:14:46 +05:00
Alibek Omarov
820a001ced
engine: move prepending lib prefix on Android earlier, when the path is constructed
2025-08-08 17:03:56 +05:00