Commit Graph

1352 Commits

Author SHA1 Message Date
Alibek Omarov
fa34092ba2 engine: client: make RefAPI's R_GetConfigName optional 2026-02-05 08:17:59 +05:00
Alibek Omarov
4804586728 engine: let movevars.zmax be encoded in 24 bits 2026-01-30 02:04:07 +05:00
Alibek Omarov
d08fd5c855 engine: directly access background state cvar 2026-01-30 00:16:19 +05:00
Alibek Omarov
9cc884dfe6 engine: add function Cvar_DirectFullSet that acts like Cvar_DirectSet and Cvar_FullSet at the same time 2026-01-30 00:16:19 +05:00
Alibek Omarov
d8895ae497 engine: do not set actually freed models as to be freed, fixing another models leak. Improve modellist output 2026-01-28 15:23:43 +05:00
Alibek Omarov
cc9e3a5a81 engine: misc build fixes for clang with mingw 2026-01-24 07:21:30 +05:00
Alibek Omarov
214b133e5d engine: fix build 2026-01-20 23:43:28 +05:00
Alibek Omarov
f9bbe2a2c4 engine: make host.argv an array of pointers to const data 2026-01-20 22:42:14 +05:00
Alibek Omarov
c5f90aabd6 engine: use Sys_GetIntFromCmdLine where possible 2026-01-20 22:30:39 +05:00
Владислав Сухов
5c5c0ad94d engine: common: prepare support for direct scr writing 2026-01-20 19:26:28 +05:00
Alibek Omarov
bc387477ce engine: common: fix world submodels were not being purged correctly, leading to a "memory leak" 2026-01-20 00:34:10 +05:00
Alibek Omarov
8cbc7819a6 engine: common: transform asserts into Host_Error calls in Mod_LoadModel 2026-01-19 22:00:33 +05:00
Alibek Omarov
7c588540d8 engine: common: http: fix incorrect parsing of URLs 2026-01-18 15:33:10 +05:00
Alibek Omarov
5cb5e76872 engine: add new needload flag specifically for cleaning up unused models and use unreferenced for free slots. 2026-01-17 06:17:46 +05:00
Alibek Omarov
4e49cc49f8 engine: common: http: optimistically treat https as http as a temporary hack 2026-01-17 06:17:46 +05:00
Alibek Omarov
d5892f3794 engine: change sleeptime resolution from 1 microsecond to 100 microseconds, as apparently sleeping for a microsecond isn't enough to lower CPU usage 2026-01-13 08:27:03 +05:00
Alibek Omarov
32aee7ef2f engine: add sv_hibernate_when_empty that cuts down CPU usage on empty servers, similar to the feature in Source 2026-01-13 08:27:03 +05:00
Alibek Omarov
3a5d57603f engine: print unknown command message in dedicated mode and when not on server 2026-01-13 08:27:03 +05:00
Alibek Omarov
46ccc37cae engine: fix undefined pfnTime build error, it has been renamed to Sys_FloatTime 2026-01-13 06:03:34 +05:00
Alibek Omarov
d7b96ea8c2 engine: pass arguments on engine restart on nswitch, add forgotten -changegame parameter, simplify code for other platforms 2026-01-13 05:51:19 +05:00
Alibek Omarov
cb7f2ad8af engine: replace Sys_DoubleTime with Platform_DoubleTime in internal code, only use Sys_DoubleTime in APIs
As Sys_DoubleTime is marked with GAME_EXPORT attribute that helps us to
maintain compatible binary interface.
2026-01-13 05:51:19 +05:00
lewa_j
5cdb58431a engine: ref: Remove unused declarations, fix comment after rename 2026-01-13 03:41:19 +03:00
Alibek Omarov
4b77170136 engine: add con_showcompletion feature from FTEQW 2025-12-27 13:13:23 +05:00
Alibek Omarov
a168719905 engine: force generating vfs.cfg if it doesn't exists 2025-12-27 10:40:24 +05:00
Alibek Omarov
c950530e44 engine: common: masterlist: fix reporting wait state 2025-12-24 07:12:43 +05:00
Alibek Omarov
68a7689108 engine: client: fix incorrect usage of Mod_TestBmodelLumps return value in Cmd_ListMaps, causing it to crash 2025-12-23 14:05:36 +05:00
Alibek Omarov
1b66367d3d engine: server: add a warning if server DLL couldn't be loaded, refactor calling GetEntityAPI exports 2025-12-14 04:59:24 +03:00
Alibek Omarov
66ea91270b engine: make Image_ComputeSize shared between renderer and imagelib 2025-12-14 00:00:59 +05:00
Alibek Omarov
44fb4fb594 engine: common: imagelib: remove dependency on OpenGL declarations in texture formats 2025-12-13 23:59:40 +05:00
Alibek Omarov
16c849d085 engine: common: imagelib: refactoring 2025-12-13 23:11:48 +05:00
Alibek Omarov
e2835a7614 engine: common: imagelib: fix incorrect check for big endian pixel formats 2025-12-13 22:30:03 +05:00
Alibek Omarov
ae5793f258 engine: log the error if file couldn't be opened for writing 2025-12-13 00:36:33 +05:00
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