Alibek Omarov
73729827f4
engine: platform: win32: add forgotten SDL.h include
2025-02-28 21:55:26 +03:00
Alibek Omarov
97fa395a3b
engine: platform: win32: fix build by restoring previous win32 header inclusion order
2025-02-28 21:44:22 +03:00
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
SNMetamorph
2465782a3e
engine: platform: sys_win: fixed compiling error
2025-02-15 13:45:22 +03:00
Alibek Omarov
7ba2209124
engine: platform: sdl: set requested timer delay in units of 100ns according to the documentation
2025-02-15 13:08:05 +03:00
Alibek Omarov
af6b434b71
engine: platform: win32: implement nanosleep using waitable timers with high precision
2025-02-15 11:57:41 +03:00
Alibek Omarov
052ea6a8bd
engine: platform: introduce for Platform_NanoSleep, to be used for better sleeping in between frames for lowering CPU usage
2025-02-15 10:11:17 +03:00
Alibek Omarov
51d11f8e86
engine: platform: win32: remove unused log variables and checks from Win32 console, sys_con does the job
2025-02-14 00:28:00 +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
SNMetamorph
c3b8696957
engine: platform: win32: disable initializing console in case of regular game startup
2025-01-26 23:02:24 +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
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
3576e474e6
engine: get rid of SendKeyEvents function, it only listened for WM_QUIT on Windows and we don't use that with SDL
2024-12-27 18:30:01 +03:00
Alibek Omarov
cfebee6ea8
engine: split crashhandler to win32 and posix versions
2024-12-24 10:37:49 +03:00
Alibek Omarov
bd0d6644e0
engine: move Sys_SendKeyEvents to platform/win32
2024-12-24 09:59:47 +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
a1191eb4ab
engine: platform: win32: request error string in wide chars and then transform it to UTF-8 using our utflib
2024-07-09 08:24:58 +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
739592e50d
engine: host: refactoring, reduce usage of global variables a bit
2024-06-12 10:20:09 +03:00
Alibek Omarov
a1dceacc8f
engine: remove unused host.hMutex and host.hInst
2024-06-12 10:20:09 +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
24f23908be
engine: platform: stub Sys_DebuggerPresent on unsupported platforms
2024-02-27 05:17:01 +03:00
Alibek Omarov
a9bddaac64
engine: platform: win32: do not call filesystem functions if filesystem_stdio was failed to load
2024-02-19 06:27:24 +03:00
Alibek Omarov
75e5da071c
engine: platform: win32: fix calculating RVAs for LLP64
2023-08-29 19:18:22 +03:00
Alibek Omarov
16c87ae2c9
engine: platform: reorganize UpdateStatusLine, make it shared but implemented only if platform has SetStatus. Implement SetStatus for systemd/Linux
2023-06-16 08:43:16 +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
a292d2fd53
platform: win32: replace Q_sprintf calls by Q_snprintf
2023-04-26 05:20:45 +03:00
SNMetamorph
b2ea8c9d18
engine: platform: win32: enabled attaching to existing console instead of creating new
2023-03-27 20:31:52 +03:00
Andrey Akhmichin
249ce6bca1
engine: platform: win32: replace va function calls.
2023-03-11 15:30:56 +03:00
Andrey Akhmichin
e273e09fc9
engine: platform: win32: simplify strings operations.
2022-12-20 16:06:25 +03:00
Alibek Omarov
64e97124c3
Merge master to ipv6
2022-11-17 19:34:46 +03:00
Alibek Omarov
30d9b6d844
engine: platform: win32: fix compile
2022-11-17 01:20:01 +03:00
SNMetamorph
a8674c18df
engine: platform: win32: fixed build for Windows
2022-08-01 12:54:26 +03:00
Alibek Omarov
5e4fc64430
filesystem: introduce new module, based on engine filesystem.
...
The goal is to share filesystem code between engine and
utilities and provide C++ VFileSystem interface in the future
2022-07-28 18:56:02 +03:00
Velaron
437630d26d
platform: win32: remove forgotten code
2022-06-10 23:25:43 +03:00
Bohdan Shulyar
341c9dae39
paltform: win32: fix typo >_<
2022-06-10 23:25:43 +03:00
Velaron
4c7bf1ff44
platform: win32: improve error reporting when loading DLLs and move custom DLL loader to a separate file
2022-06-10 23:25:43 +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
SNMetamorph
66dc20dc2d
engine: platform: con_win: fixed console window visibility without developer mode ( fix #818 )
2022-04-08 14:18:38 +03:00
SNMetamorph
22815d2784
engine: server: sv_main: added status line for dedicated server console
2022-04-06 15:17:15 +03:00
SNMetamorph
95ee88720c
engine: platform: win32: major refactoring of console code
2022-04-06 15:17:15 +03:00
Alibek Omarov
7cb06956c2
engine: platform: win32: fix compile
2021-12-28 00:16:06 +03:00
Alibek Omarov
4f89288ccf
common: cleanup port.h
2021-12-23 19:17:11 +03:00
Alibek Omarov
a0af256641
engine: library: fix saves on 64-bit Windows, compile custom loader only on x86
2021-06-27 00:03:39 +03:00
Alibek Omarov
17d3eaa590
engine: win32: remove normal win32 library loader, from now on every win32 port must port custom loader
2021-06-20 19:59:16 +03:00
SNMetamorph
56d5f08128
platform: win32: fixed crashes in COM_CheckLibraryDirectDependency
2021-02-26 16:05:34 +03:00
Ivan Avdeev
1b426b67e7
partially fix amd64 build on windows
...
Quality of this commit is questionable. I have no idea whether what I did
here makes sense or not.
But it compiles and runs (provided with hlsdk-xash3d amd64 build, which
is another story).
This omits necessary waf changes that are necessary to make a valid
64-bit build. Apparently it's not enough to just pass `-8` on Windows,
you also need to hack wscript to add `x64` target to MSVC. I'll do that
later when I figure out how.
This change is a precursor for RTX Vulkan effort --
VK_KHR_ray_tracing_pipeline and friends are only available on 64-bit
nvidia drivers (no idea about AMD, pls send GPUs onegai).
2021-02-26 16:04:45 +03:00
Gleb Mazovetskiy
5e0a0765ce
Trim all trailing whitespace
...
The `.editorconfig` file in this repo is configured to trim all trailing
whitespace regardless of whether the line is modified.
Trims all trailing whitespace in the repository to make the codebase easier
to work with in editors that respect `.editorconfig`.
`git blame` becomes less useful on these lines but it already isn't very useful.
Commands:
```
find . -type f -name '*.h' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
find . -type f -name '*.c' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
```
2021-01-04 20:55:10 +03:00