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.
3 years ago
Gleb Mazovetskiy
4063afb792
Xbox NXDK platform
4 years ago
Andrew James
812d9f83dd
Remove duplicate defines
...
included in both #4757 and #4755
4 years ago
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.
4 years ago
Gleb Mazovetskiy
c54ddbc98d
locale.cpp: Fix windows.h include
4 years ago
ephphatha
771beeb82d
Use string_view for UiValidPlayerName
4 years ago
ephphatha
6a0fc6627e
Use LANGUAGE as a preference list if available
4 years ago
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.
4 years ago
Gleb Mazovetskiy
2386fd12a9
Fix a few warnings
4 years ago
John Törnblom
a41dcbf78a
ps4: avoid using std::locale to detect language, and fallback to English on first run
4 years ago
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.
4 years ago
Andrew James
ab95a29697
Get user preferred languages on apple devices ( #3875 )
...
Co-authored-by: Bubio <bubio66@gmail.com>
4 years ago
Andrew James
fb8467b045
Move platform specific locale lookup code to platform directory ( #3862 )
4 years ago