Alibek Omarov
a5f0ca38f1
engine: remove inclusion of SDL headers globally, helps to cleanup code before SDL3 migration
2025-02-28 13:14:47 +03:00
Alibek Omarov
15a6971aca
engine: platform: posix: strip path from filename in backtrace
2025-02-25 11:46:57 +03:00
Alibek Omarov
44426709f7
engine: platform: posix: skip first stack frame when printing stack trace with libbacktrace
2025-02-13 20:43:32 +03:00
Alibek Omarov
c06ea8d915
engine: platform: posix: add printing backtrace to stderr and logfile for libbacktrace backend
2025-02-09 16:41:26 +03:00
Alibek Omarov
21f62910ac
engine: platform: posix: fix build when glibc execinfo.h is not available, but libbacktrace is still used
2025-02-09 16:20:38 +03:00
Alibek Omarov
c1a96d3ff1
engine: platform: posix: fix build
2025-02-09 15:51:25 +03:00
Alibek Omarov
890e12ec76
engine: platform: posix: flush stdout/stderr before everything, include build branch
2025-02-09 15:45:44 +03:00
Alibek Omarov
774d2ac28a
engine: platform: posix: add libbacktrace support for crash handler
2025-02-09 15:42:28 +03:00
Alibek Omarov
32aa1f91bf
engine: pass argv0 to crash handler setup, which is required for libbacktrace integration
...
Fix indentation in crash_posix.c
2025-02-09 15:36:49 +03:00
Alibek Omarov
f460aa63b0
engine: platform: posix: don't forget to print backtrace to stderr too
2025-02-02 19:20:54 +03:00
Alibek Omarov
22f8b6f9c3
engine: platform: enable crash handler for macOS
2025-02-02 18:30:41 +03:00
Alibek Omarov
d0464ef602
engine: platform: posix: use glibc-based backtrace implementation for crash handling, if execinfo.h can be found
2025-02-02 18:06:18 +03:00
Alibek Omarov
69341e36a3
public: expose commit and branch as global variables instead of functions
2025-01-13 20:02:59 +03:00
Alibek Omarov
a5d78ecfd7
engine: be more verbose on why the engine is going to be shut down
2024-12-27 18:30:46 +03:00
Alibek Omarov
4f98187e9a
engine: move select-based stdin input function to platform/posix
2024-12-24 11:13:05 +03:00
Alibek Omarov
cfebee6ea8
engine: split crashhandler to win32 and posix versions
2024-12-24 10:37:49 +03:00
Alibek Omarov
614b9113ad
engine: platform: as an exception, allow calling direct platform-specific implementations of Platform_Sleep to make them inlined
2024-12-04 18:37:55 +03:00
Alibek Omarov
e14cd758ad
engine: turn Platform_Sleep into an inline function that directly calls platform-specific delay functions
2024-12-04 18:32:03 +03:00
Alibek Omarov
6ae62e3bb1
engine: platform: posix: include sys/filio.h to have FIONBIO declaration for networking code
2024-11-07 07:42:07 +03:00
SNMetamorph
50c805826f
engine: implemented handling SIGTERM signal for proper stopping dedicated server
2024-10-08 01:05:26 +03:00
Alibek Omarov
d56e53a347
Replace hardcoded functions names by __func__ macro
...
* while we're here, fix some possible bugs
* and fix -Wformat=2
s/__FUNCTION__/__func__/g
awawawa
2024-06-19 06:53:42 +03:00
Alibek Omarov
4163d3655a
engine: reformat and reorder host_parm_s struct, remove now unused host.daemonize and host.enabledll
2024-06-12 11:16:26 +03:00
mittorn
e4edd2da45
platform/posix: check for non-zero dladdr ret
2024-02-27 04:04:54 +03:00
Alibek Omarov
c16a10e6f3
engine: platform: refactor Platform_Init/Shutdown/GetNativeObject functions. They are now defined in the header, and call platform-specific functios that defined in platform code
2023-06-16 07:32:19 +03:00
Alibek Omarov
b84aba68fa
engine: platform: implement generic GetNativeObject for POSIX systems without SDL2
2023-06-07 04:07:53 +03:00
Alibek Omarov
ba039b8e71
engine: drop XASH_DYNAMIC_DLADDR
2023-06-05 20:30:18 +03:00
Alibek Omarov
b16fa8eddc
public: remove Q_strcat and Q_strcpy, and patch the code that uses it
2023-04-26 05:20:45 +03:00
Andrey Akhmichin
b648c74815
engine: platform: posix: replace va function calls.
2023-03-11 15:30:29 +03:00
fgsfds
7424b29e56
engine: initial psvita build support
2023-03-11 07:09:14 +03:00
fgsfds
36e7856b9c
don't redefine _GNU_SOURCE
2023-02-05 02:16:38 +01:00
fgsfds
25a1cb8ce7
Nintendo Switch support (again)
2023-02-05 02:09:32 +01:00
Xav101
9466461ce0
engine: preliminary support for SGI IRIX ( #1211 )
...
* Added definitions for IRIX
* Patchset to get dedicated server to compile on IRIX.
* Cleaned up debug statements in wscript
* Potential bug in IRIX implementation of isnan? For now just use the portable macro.
* Include the platform port files in the build
* Temporary execution script for setting appropriate library search paths to the right locations in the build directory. This should probably get replaced with a more permanent script at some point which lives in the same directory as the normal xash binary, or be replaced by a solution that sets the rpath during config or modifies rpath during install.
* Clean up formatting and remove unneeded debugging statements
* Added GPL copyright notice and description
* Moved to irix platform folder and edited script
* Re-introduced _inline macro
* Replace spaces with tabs
Co-authored-by: Xav101 <xaviernye@msn.com>
2023-01-14 09:35:30 +03:00
Alibek Omarov
64e97124c3
Merge master to ipv6
2022-11-17 19:34:46 +03:00
Alibek Omarov
5e1f189db3
engine: platform: posix: use RTLD_NOW instead of lazy.
...
It actually was a misconception coming from old engine fork
We want to track unresolved symbols before library could be loaded
Also, disable "symbol not found" spam in FunctionFromName. Due to how
savefile mangling convert works and compatibility with GoldSrc saves,
this function is used to bruteforce possible symbol names.
2022-07-13 19:26:38 +03:00
Alibek Omarov
bd1bfea695
engine: second iteration of IPv6 support
...
Made code smaller
Fixed problem where v6 and v4 socket can't use same port
Added support for v4-to-v6 mapped addresses, although it's kept unused
Probably final version
2022-06-09 03:10:02 +03:00
Alibek Omarov
4f89288ccf
common: cleanup port.h
2021-12-23 19:17:11 +03:00
Alibek Omarov
f8e6033ae6
engine: move TIMER_LINUX to TIMER_POSIX, enabling dedicated builds for FreeBSD and other *nix platforms
2021-06-26 00:19:49 +03:00
Alibek Omarov
5bc4359a2f
engine: implement platform neutral saves, now we can load saves made in Linux on Windows and vice-versa
2021-06-20 19:59:16 +03:00
exstrim401
db3e71bfcc
engine: Removed unused Haiku variables
2021-06-07 19:39:52 +03:00
exstrim401
2b436dced0
engine: Remove XASH3D_MIRRORDIR
...
also make XASH3D_GAME for all platforms
2021-06-07 19:39:52 +03:00
exstrim401
a89f9fa181
engine: Haiku BeGameLauncher support
2021-06-07 19:39:52 +03:00
mittorn
bef873e1f8
platform/android: enable dynamic dladdr, fix build
2020-07-08 08:45:24 +07:00
Alibek Omarov
82c54b1b54
engine: disallow zero-width strings for getenv()
2020-04-19 13:02:51 +03:00
mittorn
70cc52e203
posix/sdl: fix build
2020-02-08 23:38:19 +07:00
mittorn
3e3aff040e
platform: add Platfrom_Init, Platform_Shutdown, Platform_MouseMove move platform-specific code from host.c
2020-02-08 23:15:40 +07:00
mittorn
bbd033c254
lib: restore dll loader support
2020-01-19 07:38:37 +07:00
mittorn
22dc5b7416
Merge branch 'lib' of https://github.com/FWGS/xash3d-fwgs
2020-01-18 07:15:45 +07:00
Alibek Omarov
9421457b3a
engine: big refactoring commit, instead of using platform-specific platform-specific macros, use appropriate macros set by public/build.h
2019-11-24 03:52:08 +03:00
mittorn
37435365e2
platform/posix: fix _GNU_SOURCE define in lib_posix
2019-11-18 23:48:49 +07:00
mittorn
177f8ed653
platform: introduce lib backends, add static linking, wscript: add optional projects support, add static linking support, scripts: add xshlib for advanced linking options
2019-11-18 03:31:55 +07:00