Alibek Omarov
d4c34abd6e
engine: enable writing log even if console hasn't been enabled at the engine startup (it might be enabled later, it might also contain crash data)
2025-02-06 20:03:07 +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
0d55441830
engine: properly pass shutdown reason down to close log, helps to finally get rid of global finalmsg
2025-01-09 08:04:18 +03:00
Alibek Omarov
6469b0a5f5
engine: common: shut up warn-unused-result on log write functions, only fetch system time for system logs when necessary
2024-12-24 11:27:34 +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
9e28c98911
engine: print to stderr if writing message to logfile failed
2024-09-30 04:00:28 +03:00
Alibek Omarov
4420ffd49e
engine: fix buffer overflow in Sys_PrintLog
2024-08-03 11:27:45 +03:00
Alibek Omarov
f4a3b8571d
engine: fix inverted check in debug log output
...
Why there is even this check in the first place???
2024-07-29 04:48:21 +03:00
Alibek Omarov
56464d3291
engine: when colorizing standard output, use bold text, as it makes it more visible (especially with black text)
2024-07-17 22:53:35 +03:00
Alibek Omarov
aed96ee753
engine: common: reduce large static arrays amount for logging by adding generic function accepting va_list
2024-07-17 22:27:20 +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
de21d845ec
engine: don't forget to put newline at the end of overflowed console message
2024-04-21 20:21:17 +03:00
Alibek Omarov
fe5944720b
engine: use common strings to name the engine, makes branding easier for custom forks
2024-03-19 21:11:10 +03:00
Alibek Omarov
975ab6785e
engine: make log starting and ending messages shorter, so it fits into standard 80 columns term
2024-03-19 20:41:46 +03:00
SNMetamorph
0506a1dfce
engine: sys_con: added VCS branch name printing to log file header
2024-03-19 19:31:54 +03:00
SNMetamorph
7cc67157e5
engine: sys_con: fixed incorrect logging init messages order
2024-03-19 19:31:54 +03:00
SNMetamorph
b7ff9c7a24
engine: sys_con: added missing title for log messages
2024-03-19 19:31:54 +03:00
Alibek Omarov
2d79f3ef7a
engine: common: sys_con: enable writing build commit, os and arch to the engine.log
2023-10-22 17:37:09 +03:00
Alibek Omarov
013bfe5c34
engine: common: sys_con: always read from stdin when engine is in dedicated mode
2023-06-30 01:44:03 +03:00
SNMetamorph
48e199bfa1
engine: common: enabled printing logs to stderr for psvita platform only in developer mode
2023-03-27 03:52:51 +03:00
fgsfds
7424b29e56
engine: initial psvita build support
2023-03-11 07:09:14 +03:00
Alibek Omarov
d6d98bd297
engine: platform: sdl: minor style changes
2023-02-09 05:59:34 +03: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
2218126c75
engine: disable stdout output and flush on Windows, Wcon already does the job
2022-06-14 04:41:37 +03:00
Alibek Omarov
2388260848
engine: optimize colored output
...
* removed unneeded formatting for Android
* make generic function to output colorless and colorized strings
* disable color output on low memory devices to not waste CPU cycles on it
2022-06-14 04:23:09 +03:00
Alibek Omarov
347c6d6a91
engine: common: don't output log to stdout on Win32 where it's done by Wcon. Better colorcode filtration
2022-06-14 03:27:21 +03:00
Velaron
402b38951d
engine: better color code stripping
2022-06-13 23:36:13 +03:00
Velaron
6807cf5849
engine: fix build on android
2022-06-13 23:36:13 +03:00
Velaron
15dc25d2cd
engine: rename Q_cleanstr to something more meaningful
2022-06-13 23:36:13 +03:00
Velaron
568c7fd917
engine: strip color codes when writing to log
2022-06-13 23:36:13 +03:00
Alibek Omarov
18933e7981
engine: ensure all data was written to stdout when exiting
2022-02-22 09:40:15 +03:00
Alibek Omarov
a6b43fbfff
engine: show additional errno string when log file cannot be opened
2022-01-29 03:04:54 +03:00
Alibek Omarov
61643585e0
engine: fix NULL ptr dereference when log file cannot be opened
2022-01-29 03:04:00 +03:00
Alibek Omarov
f5e400de69
server: fix wrong xashid key on server, it's uuid now
2021-03-28 01:57:40 +03: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
3a416636f1
engine: mark GAME_EXPORT's
2020-01-19 08:15:54 +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
tyabus
934dffd273
engine: common: fix message formating
2019-11-07 23:26:11 +03:00
Alibek Omarov
fa622168a0
engine: fix style, disable XASH_USE_SELECT
2019-10-11 08:51:30 +03:00
Alibek Omarov
07aa9595c0
engine: android: allow building dedicated on Android
2019-09-19 17:09:18 +03:00
Alibek Omarov
5f849c4823
engine: bring back XASH_USE_SELECT. I need somehow disable this only on my work PC
2019-03-22 18:29:42 +03:00
Alibek Omarov
1162e5a65b
legacymode: retry connecting using legacy protocol automatically
2019-01-26 20:47:19 +03:00
Alibek Omarov
a03aa3ddb3
Merge 4281 update
2018-10-28 00:39:29 +03:00
mittorn
491188a0f3
Merge branch 'original'
2018-10-04 14:27:14 +07:00
mittorn
5c738b3402
Apply 4253 update
2018-10-04 13:08:48 +07:00
Alibek Omarov
d9320f964e
Crashhandler refactoring for POSIX systems. Shows engine version now.
2018-05-28 23:13:50 +03:00
mittorn
42b4e456a2
Fix log
2018-05-03 23:51:23 +07:00
Alibek Omarov
0b0ec876a5
Oops, this isn't supposed to be commited
2018-05-01 17:53:25 +03:00
Alibek Omarov
0681209114
Remove useless host.type set, replace HOST_DEDICATED checks by Host_IsDedicated
2018-05-01 17:30:33 +03:00