Anders Jenbo
e3526a5ff6
🌐 Convert all src to UTF8
5 years ago
Gleb Mazovetskiy
46a5dc147b
🔨 Restore GCC 5 compatibility
...
We can support this much older compiler with just these few minor
changes.
5 years ago
thebigMuh
5f288cbd43
Fixes small AC malus of less than 1 resulting in a bonus of 1 AC
5 years ago
Gleb Mazovetskiy
acee2ef14c
🎉 Switch from SDL_mixer to SDL_audiolib
...
SDL_mixer can only stream a single music track
SDL_audiolib has unlimited streams.
With this change, we finally have streaming sounds (respecting
sfx_STREAM).
Audio options can now also be set via diablo.ini, which should help us
better diagnose the static noise issues.
5 years ago
Jmgr
d4f62870b8
Remove globals from paths.h
...
Fix for Vita
Update to use free functions
Use std::optional to allow setting empty paths
Change header inclusion order
Co-authored-by: Gleb Mazovetskiy <glex.spb@gmail.com>
Use std::optional to allow setting empty paths
Apply clang-format
Temporary commit
5 years ago
Jmgr
2b672289e1
Fix optional being in experimental/ with some compilers
5 years ago
Gleb Mazovetskiy
807d8528b1
🐞 Fix fmt includes "" -> <>
5 years ago
Gleb Mazovetskiy
c49de0b5f1
🎨 Source/utils/log.hpp: Fix newlines
5 years ago
John Törnblom
102ee9ead1
convert utf8 language strings to latin1
5 years ago
John Törnblom
30db9e7dd0
trim strings from language metadata
5 years ago
John Törnblom
9c61baea9f
parse translation metadata
5 years ago
John Törnblom
0be36898b9
ensure translations are null-terminated
5 years ago
Anders Jenbo
32117dc73b
🔧 Create translation template and update translations
5 years ago
Anders Jenbo
3f30b8db60
Add Danish translation and switch to IETF instead of ISO 639-1 codes
5 years ago
John Törnblom
04269dedcd
add translation macro for msgids defined in the global scope
5 years ago
John Törnblom
51e7a169a6
add initial language support using a simple MO parser
5 years ago
Jmgr
c33182d6de
Modernize deprecated headers
5 years ago
Jmgr
1b7e0d2cb3
Migrate existing log entries
5 years ago
Jmgr
ef0ca794bc
Use system libfmt by default if version >= 7.0.0
...
Allow non-strict ansi functions
Cleanup
5 years ago
Jmgr
af0ea6fdfc
Set Application as the default log category
...
Remove example of logging a container
5 years ago
Jmgr
f3a401b5f6
Add the fmt library as a dependency and add some examples
...
Attempt at fixing missing functions on some platforms
5 years ago
Anders Jenbo
7912e510f0
🎨 Clean up overuse of SDL types
5 years ago
thebigMuh
281533e82d
This fixes exclusively the panning bug, where after a certain distance is exceeded, sound samples get played without panning.
5 years ago
Anders Jenbo
69a70b77f8
🚚 Move enum_traits.h to utils
5 years ago
Anders Jenbo
cc164985a3
🎨 Correct type checks in src sub-folder
5 years ago
Trihedraf
cfd63a9ad0
Fix SDL1 Builds
5 years ago
Anders Jenbo
2969b80163
🎨 Run readability-identifier-naming on all src sub-folders
5 years ago
Anders Jenbo
373f28736f
🎨 Acceptable parts of modernize-*
5 years ago
Anders Jenbo
b978d80119
🎨 llvm-include-order
5 years ago
Anders Jenbo
bb4e1960e7
🎨 modernize-use-nullptr
5 years ago
Gleb Mazovetskiy
fe26f96b75
🧹 SDL1 backports: Move GetBase/PrefPath to cpp
5 years ago
Gleb Mazovetskiy
4fa8f2aadf
🧹 SDL1 backports: Remove unused SDL_DisplayMode
5 years ago
Gleb Mazovetskiy
f3cf036d2d
SDL1: Move BlitScaled backport to cpp
...
Also fixes a bug when trying to BlitScaled an indexed surface.
5 years ago
Anders Jenbo
5fdb9ce459
🎨 Format code
5 years ago
Gleb Mazovetskiy
91f8267db9
🧹 SDL1.2: Remove unimplemented SDL_*Window backports
...
Guard around SDL version at call site instead.
5 years ago
Gleb Mazovetskiy
86afa95d2a
Move file_util.h implementations to file_util.cpp
...
There is no reason for these functions to be in the header (inlining
won't benefit them one bit).
I put them in the header originally only because of the weird state
SourceS was in back then.
5 years ago
Gleb Mazovetskiy
539e985893
Remove stdarg_compat.h header
...
It was only used in one place, which did not use va_list.
Looking at the original issue, my guess was whatever this was meant to
work around was an issue in DevilutionX code at the time.
5 years ago
Anders Jenbo
8c821e98d3
🚚 Restructure files
5 years ago