Commit Graph

6125 Commits

Author SHA1 Message Date
Alibek Omarov
e32470280d engine: add file size argument to brush model loading functions 2025-11-27 19:26:36 +05:00
Alibek Omarov
ceb5cd61e4 ref: gl: enable NPOT textures on GLES3 contexts as per spec 2025-11-27 19:18:27 +05:00
Alibek Omarov
75339193d7 engine: client: remove vid_highdpi cvar, always allow high dpi mode 2025-11-25 15:06:46 +05:00
Alibek Omarov
07da038b4b engine: platform: sdl2: move dpi awareness hint set before SDL_Init, as documentation says it needs to be set before video init 2025-11-23 14:54:15 +05:00
Alibek Omarov
a2b597577f engine: platform: sdl2: do not hide X11 hints under any platform macro 2025-11-23 14:50:51 +05:00
Alibek Omarov
9cf2d9fa86 engine: platform: sdl2: set up DPI awawareness on Windows through SDL hint 2025-11-23 14:50:12 +05:00
Alibek Omarov
d45ced5c66 engine: platform: sdl2: when closest video mode isn't found, revert to desktop video mode 2025-11-23 12:50:54 +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
c956c65e33 ref: gl: don't misleadingly tell about enabled vsync on engine startup before configs are parsed 2025-11-23 11:45:47 +05:00
Alibek Omarov
86dfbc3e34 common: make bspfile.h use stdint types, reformat the file 2025-11-22 13:40:11 +05:00
Alibek Omarov
3fc59104f3 engine: make FS_CopyImage argument const 2025-11-22 13:11:41 +05:00
Alibek Omarov
aae59ac281 engine: client: remove unused temppaintbuffer array 2025-11-22 13:11:18 +05:00
Alibek Omarov
e8a2047d4c engine: client: use utility function to copy an image before quantization 2025-11-22 13:11:00 +05:00
Alibek Omarov
56972a811c readme: better wording [skip ci] 2025-11-19 14:47:47 +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
Alibek Omarov
26df99ae41 utils: xar: fix build 2025-11-18 15:35:20 +05:00
Marc-Antoine Lortie
45cff25bbc readme: fix hlsdk-portable link 2025-11-18 08:48:27 +08:00
Alibek Omarov
5556668fc3 wscript: add option to disable rpath usage 2025-11-17 13:01:06 +05:00
Xav101
1b28d183fc wscript: rework link flags on IRIX to handle GL and SDL linking correctly 2025-11-17 03:08:38 +08:00
Xav101
15bbe9892e public: mathlib: add parenthesis to fix ambiguous order of operations 2025-11-17 03:08:38 +08:00
Xav101
7236094421 platform: add missing include 2025-11-17 03:08:38 +08:00
Xav101
c85c6f80e0 platform: fix type in formatter string 2025-11-17 03:08:38 +08:00
Alibek Omarov
dd7811e5bc filesystem: wscript: do not link library_suffix on PSVita 2025-11-16 18:46:08 +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
Daniyar Tussupbekov
49b0619c9a readme: update README.md for android build instruction (#2120)
* readme: update README.md for android build instruction

* Update Android build instructions in README

Corrected instructions for running in Android Studio and added a new section for building on Android.

---------

Co-authored-by: a1batross <a1ba.omarov@gmail.com>
2025-11-15 10:06:21 +05: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
747baa1e16 engine: client: additionally look for loading images with bmp and png extensions 2025-11-13 22:01:55 +05:00
Alibek Omarov
2e5d2c1dcc 3rdparty: library_suffix: update 2025-11-12 20:28:04 +05: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
d9150734c9 3rdparty: add library_suffix subproject 2025-11-11 06:59:41 +05:00
Alibek Omarov
65514b73fd common: render_api: explicitly include stdint.h as we use intptr_t in the API 2025-11-11 06:22:43 +05:00
Alibek Omarov
d366e04682 engine: client: voice: fix typo, sequence must be incremented after it's written to the buffer 2025-11-09 02:55:58 +05:00
ksagameng
5151f9559b scripts: ios: Fix built hlsdk not working on older ios 2025-11-08 06:50:07 +08:00
Alibek Omarov
62c56b877f 3rdparty: mainui: update 2025-11-07 04:08:06 +05:00
Alibek Omarov
420a907776 wscript: silently ignore exception if --no-undefined is not in the linkflags list on darwin 2025-11-07 04:05:19 +05:00
Alibek Omarov
184e976c5d engine: call appropriate model loader on big endian 2025-11-06 23:37:27 +05:00
Alibek Omarov
6154e54661 wscript: fix a typo in -Wl,-undefined,error 2025-11-06 23:36:50 +05:00
Alibek Omarov
73950e867f filesystem: initial set of fixes for big endian 2025-11-06 23:26:12 +05:00
Alibek Omarov
822aa00bd6 wscript: replace --no-undefined with -undefined error for Darwin for compatibility with older linkers (tested on 10.4) 2025-11-06 21:51:09 +05:00
Alibek Omarov
681808ca3d 3rdparty: mainui: update 2025-11-06 20:06:52 +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
Alibek Omarov
955c5570d8 engine: client: voice: increment sequence before it's passed into LittleShort macro 2025-11-06 20:06:51 +05:00
Alibek Omarov
2094c72c95 engine: client: soundlib: use correct printf specifier for ptrdiff 2025-11-06 20:06:51 +05:00
Alibek Omarov
0795fe92fe public: build: allow older __ppc__ macro defined by GCC 4.0 (even though I probably won't support GCC 4.0) 2025-11-06 20:06:51 +05:00
Alibek Omarov
9ce131e6be engine: client: fix a typo 2025-11-06 23:06:33 +08:00
Alibek Omarov
08b718995c engine: client: restore reduced resend time for bandwidth test 2025-11-06 23:06:33 +08:00
Alibek Omarov
4900955fc1 engine: client: set cl_dlmax to FRAGMENT_DEFAULT_SIZE when connecting to an old server or server that test disabled 2025-11-06 23:06:33 +08:00