Anders Jenbo
95b2467ea5
Disable recreation of the rendere on Apple systems ( #3785 )
4 years ago
obligaron
9a14edfcd9
Add OptionEntries for Hardware Cursor
4 years ago
Gleb Mazovetskiy
9bc9bb6d33
Fix demomode file comments
4 years ago
Gleb Mazovetskiy
1f2d67f98b
Fix demomode line endings
4 years ago
ephphatha
530604c529
Prefer DX11 renderer if running on windows with vsync active
...
This works around a bug in DX9 on Win11.
4 years ago
Gleb Mazovetskiy
076b0c0c05
Overhaul tests
...
1. Adds a `libdevilution_so` target when tests are enabled.
2. Each test file is now a separate binary target linked against `libdevilutionx_so` (can now run tests in parallel).
3. Tests are now defined in a separate `test/CMakeLists.txt` file.
4. Building the tests is now controlled by the standard `BUILD_TESTING` option (defined by CTest).
5. Tests are now built by default.
6. On CI, test errors are now reported.
Also:
* `.clang-format`: Enable SortIncludes in tests
* `path_test.cpp`: Fix -Wsign-compare
4 years ago
Gleb Mazovetskiy
f5d8f513cb
AssetsPath: Default to exe dir
...
Also adds `SetAssetsPath`, for use by tests.
4 years ago
Gleb Mazovetskiy
1210dcc7e4
Clean up CLI argument parsing
4 years ago
Gleb Mazovetskiy
02902e5188
language.cpp: Fix -Wwrite-strings
4 years ago
Gleb Mazovetskiy
d3a523fa0b
paths.cpp: Remove `AppPath`
...
It was redundant.
4 years ago
Adam Heinermann
1484b4d8cf
Implement Discord rich presence ( #3711 )
4 years ago
Joerg Wissen
45c634213c
Fixed typo in Reju potion pickup ( #3757 )
4 years ago
qndel
d2ba033d84
fix collision of bodies in butcher chamber/hell
4 years ago
ephphatha
8b07f27bde
Remove CowOffsets, always treat cows as 4 tile sprites
4 years ago
obligaron
7b2f651bb2
Allow QuickMessages to contain multiple entries/lines
4 years ago
obligaron
e852fc18d4
Support MultiKey entries in ini
...
Support MultiKey entires in ini
4 years ago
ephphatha
a1652bd5d6
Interleave non-regional fallback locales after last regional variation
4 years ago
ephphatha
c0ec4a845a
Restore fallback for non-regional translation
...
Also adds an explicit check for en given this the base translation for the application and will never have a .mo/.gmo file.
4 years ago
ephphatha
5fa9213adc
Handle multiple language preferences on windows
...
This removes the fallback functionality to non-regional translation files as I was unsure how best to handle that.
4 years ago
obligaron
8a4d4b6375
Add OptionEntries for Audio
4 years ago
obligaron
9e6aa7c8d6
Add OptionEntries for Poition Pickup
4 years ago
obligaron
51869f464e
Add OptionEntryInt
4 years ago
staphen
8becd18c88
[Android] Hide the Upscale option in the settings menu
4 years ago
obligaron
b2750c99e7
Call SyncPortals() only once for a level load
4 years ago
Anders Jenbo
6d346c7e18
Use std::string in PrintItemPower
4 years ago
Anders Jenbo
af08a99691
Perform item requirement check when entering vendors
4 years ago
ephphatha
bda0a0624b
Replace some usages of Item.statFlag
4 years ago
ephphatha
3598ee313c
Remove StoreStatOk, replace with calls to CanUseItem
4 years ago
ephphatha
6e2751649a
Move ItemMinStats to a member function on Player
4 years ago
staphen
bd0470994a
Initialize golems before objects
4 years ago
Gleb Mazovetskiy
d99dd678e2
storm_svid: Cleanup video rendering code
...
1. Removes adjustments to `orig/system_palette`.
They're not needed because videos have a separate render loop.
For an in-game movie, the caller sets the palette after the movie.
2. Splits some of `SVidPlayContinue` code into functions
(`UpdatePalette` and `BlitFrame`).
3. Adds a separate config variable for SDL1 SVid video mode.
E.g. on rg99 there isn't enough video RAM for double-buffering
the main game but we can do it for the videos.
4 years ago
obligaron
f2f764ed68
Fix Knockback checks wrong position when a monster is moving
4 years ago
obligaron
f58a42ca97
Check that monsters aren't placed in doors
4 years ago
Gleb Mazovetskiy
401d0ff33f
DiabloUI: Handle mouse wheel in SDL 1.2
4 years ago
Gleb Mazovetskiy
fee39d46fa
DiabloUI: Handle mouse back button in menus
4 years ago
obligaron
467ed9dd9d
Fix page down/up don't wrap in settingsmenu
4 years ago
Gleb Mazovetskiy
8d74b99c72
MpqWriter: Cleanups and renames
...
I've spent some time understanding how the `MpqWriter` works
and cleaned it up a bit and renamed some variables for clarity.
1. Fixes all signedness and clang-tidy warnings.
2. Renames variables, structs, and methods for clarity.
3. Marks structs used for I/O as packed.
4. Adds comments in a few places.
5. Eliminates recursion from `MpqWriter::AllocBlock` (a clang-tidy
warning).
4 years ago
obligaron
aee8ed3951
Add scrollbar to selgame
4 years ago
Anders Jenbo
ffae6d805b
Clean up check for borken monster position in DirOK
4 years ago
Andrew James
5046b1288d
Apply clang-tidy configuration to (some of) ui_item.h ( #3719 )
4 years ago
Joerg Wissen
f9bc40e8e0
Optional functionality to auto-pickup potions
4 years ago
qndel
8d318ae397
🐛 Make item stat checking consistent
...
- Prevent negative stats from affecting the ability to use items
4 years ago
staphen
3a802ae270
Apply clang-format to display.cpp
4 years ago
Anders Jenbo
94fa772ce6
Fix SDL < 2.0.10 builds
4 years ago
Anders Jenbo
901d9aa435
Fix SDL < 2.0.6 builds
4 years ago
JoBergeron
6af1be7b13
[ios] Fixed bluetooth mouse support
4 years ago
Gleb Mazovetskiy
a4bc8fea7d
Fix warnings: `-Wsign-compare`, `-Wnarrowing`
4 years ago
Anders Jenbo
ca456778bf
[touch] Remove hacked defaults
4 years ago
obligaron
5e2ad66e64
Add OptionEntry Resolution
4 years ago
Gleb Mazovetskiy
d0ed505765
Move platforms `asio` includes to Source
4 years ago