Gleb Mazovetskiy
0fb9599e66
`StaticVector`: Replace `std::aligned_storage_t`
...
`std::aligned_*` are deprecated in C++23 per
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p1413r3.pdf
3 years ago
Gleb Mazovetskiy
beb6fc2aaf
`CreateAulibResampler`: Check the real sample rate
...
The requested sample rate is merely preferred and the actual rate may be
different.
3 years ago
Gleb Mazovetskiy
16f7d7e9d6
Support mouse back button in stores/dialogues
3 years ago
Gleb Mazovetskiy
0e0cc9d1b0
Reduce to just `STREAM_ALL_AUDIO_MIN_FILE_SIZE`
...
This does result in a bit more code and RAM usage for soundsample when
`STREAM_ALL_AUDIO` is on, but not by much.
3 years ago
Gleb Mazovetskiy
0dd95adcd1
Add a minimum threshold for STREAM_ALL_AUDIO
3 years ago
Gleb Mazovetskiy
527e876fff
Disable item labels when in store
...
Also disable ground item outlines on hover when in store.
3 years ago
Gleb Mazovetskiy
c5369f4b2b
Store graphics: Scale sprites only once
...
Prepare downscaled sprites once instead of doing it on every frame.
Note that we do this lazily in `StartStore` rather than
`SetupTownStores` because we need the palette blending table to be
available when downscaling.
3 years ago
obligaron
b7e2c649cf
Recalculate cursor position after level change
3 years ago
obligaron
c3a2fd07c0
Add used acids2.wav back to game
3 years ago
Anders Jenbo
c99f7cf644
Floating numbers ( #5639 )
...
Co-authored-by: qndel <stefan551@o2.pl>
Co-authored-by: Stephen C. Wills <staphen@gmail.com>
3 years ago
staphen
3e916d4c1f
Align item graphics with the center of the store text
3 years ago
staphen
d707f07e8f
Make item graphics in stores optional
3 years ago
staphen
af5dc9ccb6
Add item graphics to store menus
3 years ago
Gleb Mazovetskiy
0f8d5c1cce
Discord: Re-enable for MinGW builds
3 years ago
Gleb Mazovetskiy
cd7d74b55c
Discord: Additional patches
...
1. Replaces `#include <Windows.h>` with `#include <windows.h>`
for compatibility with case-sensitive file systems (e.g. MinGW
cross-compilation on a Linux host).
2. Adds missing `#include <cstdint>` to `cpp/types.h`.
3. Fixes calling convention for callback lambdas.
3 years ago
Gleb Mazovetskiy
40ab1c372f
Fix Discord linking on Windows
...
Fixes #5694
3 years ago
Gleb Mazovetskiy
55dc2315bc
Completely remove unused sfx_MISC sounds
3 years ago
Gleb Mazovetskiy
b48d4b2900
Remove uses of blank.wav
...
blank.wav is a 22 KiB 1-second silence that is not needed with
our sound engine.
3 years ago
Gleb Mazovetskiy
2d1773f644
Update RG99 PGO script and add instructions
...
Updates the script for compatibility with `UNPACKED_SAVES` and adds an
instructions document.
3 years ago
staphen
fb76f9ed5a
Update libzt to include compile-time detection for ARMv8a crypto extensions
3 years ago
Gleb Mazovetskiy
27348b49b8
Do not load unused sfx_MISC sound effects
...
There are 40 unused sfx_MISC sound effects.
All sfx_MISC sound effects are loaded into RAM by default.
Avoid loading these unused ones.
3 years ago
Gleb Mazovetskiy
a596c8223d
Reformat sound effects table
3 years ago
Gleb Mazovetskiy
3ab2f49a92
Audio: Avoid creating same-rate resamplers
...
Each resampler allocates an input buffer and an output buffer.
Since we create ~100 audio stream objects (1 per `sfx_MISC` effect),
the memory cost of these buffers adds up.
Avoids creating a resampler when the audio sampler rate matches the
output sample rate. This is mostly the case when the output sample
rate is 22050.
3 years ago
Gleb Mazovetskiy
6b338eac9f
Display path in `LoadAudioFile` error dialog
3 years ago
Gleb Mazovetskiy
6d274c9547
`UNPACKED_SAVES`: Saves without MPQs
...
Reduces rg99 binary size by ~70 KiB.
3 years ago
KPhoenix
8db521727d
`enum missile_id` -> `enum class MissileID`
...
Changes `enum missile_id` to `enum class MissileID`
3 years ago
Gleb Mazovetskiy
f20c58c8a0
SoundSample::SetChunkStream: Log filename on error
3 years ago
Gleb Mazovetskiy
e609574337
CMake: Strip MinSizeRel as well
3 years ago
egonzalez
087571bcf4
Correct translation. Add new items.
3 years ago
Gleb Mazovetskiy
590e354030
Reduce the size of SpellData
...
56 bytes -> 40 bytes
Can be optimized further by reordering the fields and merging some
flags.
3 years ago
KPhoenix
3eed9228ab
Fix alignment
3 years ago
KPhoenix
f52b2cb71f
Enum Class: MagicType
...
Changes enum magic_type to enum class MagicType
3 years ago
Gleb Mazovetskiy
2dd57475a5
Update SDL to the latest SDL2 branch
3 years ago
Gleb Mazovetskiy
f4a3b54fb9
Update Discord SDK
3 years ago
Gleb Mazovetskiy
ff4be220ab
zlib: Add the GitHub mirror
...
Another attempt to fix #5616
3 years ago
Felipe Wannmacher
34077e775c
Renewed uwp certificate ( #5669 )
...
Added new certificate with expiration set for 100 years
3 years ago
Gleb Mazovetskiy
d6409b4490
cpp_format_struct_table: Fix newlines on Windows
3 years ago
Felipe Wannmacher
f25c365c00
fixed issue https://github.com/diasurgical/devilutionX/issues/5661 ( #5665 )
3 years ago
Anders Jenbo
727661b532
Fix code coverage
...
@glebm looks like there is still an issue with coverage not working on Ubuntu 22.04
3 years ago
Gleb Mazovetskiy
b5f8ea7012
Disable Xbox One CI build
...
Temporarily disabled due to https://github.com/diasurgical/devilutionX/issues/5661
3 years ago
KPhoenix
12fc02f7f5
Fix redundancy in AddBoneSpirit function
3 years ago
Gleb Mazovetskiy
b281f0afac
Run tools/cpp_format_struct_table.py
3 years ago
Gleb Mazovetskiy
ae0297006e
A tool to format a struct table
...
Does not support subobjects, i.e. it treats them as a single value.
3 years ago
staphen
0d43f468e5
Improve missile collision interpolation logic
3 years ago
DakkJaniels
e5d96b2242
Removed ability to try and join incompatible ZeroTier games ( #5648 )
3 years ago
Gleb Mazovetskiy
f2fe98d6c4
Bump `cmake_minimum_required` to 3.15
...
DevilutionX already does not build on 3.13 because of libzt.
libzt uses the `TARGET_OBJECTS` generator expression with non-OBJECT
libraries. This is only supported in CMake 3.15+:
https://gitlab.kitware.com/cmake/cmake/-/merge_requests/3178
3 years ago
Gleb Mazovetskiy
83343a2d7e
Update Linux builds to more recent OS versions
3 years ago
Anders Jenbo
e50e21e0e4
Use outline for spell icon texts
3 years ago
Anders Jenbo
0c5fd01067
Change missile_resistance into class DamageType
3 years ago
Anders Jenbo
bb2463862c
Use Position in AddItemToLabelQueue()
3 years ago