Gleb Mazovetskiy
040c4fe82f
Generalize support for Windows without wchar APIs
...
Replaces `NXDK` ifdefs that relate to the lack of wchar APIs
with the more general `DEVILUTIONX_WINDOWS_NO_WCHAR` ifdefs.
This should make it much easier to port to Windows 98.
2023-09-17 07:26:29 +01:00
Gleb Mazovetskiy
8c1a847f41
Remove utils/stdcompat/string_view.hpp
2023-08-14 09:59:14 +01:00
Gleb Mazovetskiy
c19bfe87fa
Remove utils/stdcompat/algorithm.hpp
2023-08-14 01:54:29 +01:00
Gleb Mazovetskiy
f2c42924fe
Fix SDL.h includes
2023-08-14 01:54:29 +01:00
Gleb Mazovetskiy
5bf0b8bc96
Add more missing <cstdint> includes
...
https://github.com/diasurgical/devilutionX/pull/6095 only added includes
for `uint32_t`, this PR also adds the includes for the remaining
integral types.
2023-05-10 16:29:27 +01:00
Gleb Mazovetskiy
4063afb792
Xbox NXDK platform
2022-07-09 18:50:53 +01:00
Andrew James
812d9f83dd
Remove duplicate defines
...
included in both #4757 and #4755
2022-06-20 12:03:17 +02:00
Gleb Mazovetskiy
01ad1814ea
Make path finding index-based
...
Reduces the size of the `PathNodes` array from 28 KiB to just 8 KiB.
Also reduces the size of `pnode_tblptr` from `300 * sizeof(void *)` to
`300 * 2` bytes.
2022-06-20 10:49:16 +01:00
Gleb Mazovetskiy
c54ddbc98d
locale.cpp: Fix windows.h include
2022-06-20 00:37:12 +02:00
ephphatha
771beeb82d
Use string_view for UiValidPlayerName
2022-06-18 14:02:48 +02:00
ephphatha
6a0fc6627e
Use LANGUAGE as a preference list if available
2022-06-16 16:43:22 +02:00
Gleb Mazovetskiy
d500886293
Use env or <clocale> to get the locale
...
The C++ `std::locale("")` constructor performs a static
initialization of all the facets on the first call.
For example, this includes things like currency formatting.
Avoid all of that by using the environment variables with a fallback to
the equivalent C locale call.
2022-06-16 13:54:29 +01:00
Gleb Mazovetskiy
2386fd12a9
Fix a few warnings
2022-06-15 13:01:20 +02:00
John Törnblom
a41dcbf78a
ps4: avoid using std::locale to detect language, and fallback to English on first run
2022-04-30 20:27:33 +02:00
ephphatha
c1c56c111f
Handle runtime_errors thrown by std::locale constructor
...
Appears some implementations don't support unknown locales and throw errors instead, causing the language detection to error and not complete.
2022-01-19 03:04:53 +01:00
Andrew James and Bubio
ab95a29697
Get user preferred languages on apple devices ( #3875 )
...
Co-authored-by: Bubio <[email protected] >
2022-01-01 19:31:48 +11:00
Andrew James
fb8467b045
Move platform specific locale lookup code to platform directory ( #3862 )
2021-12-30 15:20:40 +11:00