Anders Jenbo
370e573209
Prefer test versions of translations
2021-08-08 21:58:05 +02:00
Ivan Epifanov
cf5ab583d5
Open translations as read-only
2021-08-08 16:17:27 +02:00
Anders Jenbo
d523fc1e81
Cleanups
2021-08-02 10:12:40 +02:00
Anders Jenbo
01f66d7f73
[android] Implement loading translations from assets
2021-08-01 12:35:24 +02:00
Anders Jenbo
0475aed939
[android] Allow FileExists to work on assets
2021-08-01 12:35:24 +02:00
Anders Jenbo
5c2a559487
Get default langauge
2021-08-01 12:35:24 +02:00
Anders Jenbo
eda4a5061e
Implement demo recording and playback
...
This records all keyboard and mouse events to a file and lets you play
it back at a later point with a differen game speed.
2021-07-31 20:12:31 +02:00
Vladimir Olteanu
1889f2badd
Get rid of utils/thread.{h,cpp}
2021-07-22 01:20:23 +02:00
Vladimir Olteanu
77a3955bae
Introduce SdlThread
2021-07-22 01:20:23 +02:00
Vladimir Olteanu
84bc4d8c65
dthread: simplify synchronization logic ( #2419 )
2021-07-18 15:12:47 +02:00
Vladimir Olteanu
7e67ec6399
SdlMutex: error checking
2021-07-17 14:41:55 +02:00
obligaron
837ddc0396
Fix a warning in soundsample.cpp
2021-07-17 14:35:21 +02:00
Vladimir Olteanu
829f45ee6d
SdlMutex: check result of SDL_CreateMutex ( #2400 )
2021-07-16 19:34:06 +00:00
Vladimir Olteanu
7271e5558c
Get rid of unchecked calls to malloc
2021-07-16 04:43:42 +02:00
qndel
46c8e550ba
Revert "Revert "Add explicit cast for LogicalToOutput" ( #2334 )"
...
This reverts commit cbfffcbfd4 .
2021-07-10 01:48:08 +02:00
qndel
cbfffcbfd4
Revert "Add explicit cast for LogicalToOutput" ( #2334 )
...
This reverts commit d3c36166df .
2021-07-09 18:28:11 +02:00
ephphatha
b680e3fef1
Align end comment markers for doxygen comments
...
Including a bunch from previous PRs (since I was responsible for the broken formatting for most 😓 )
2021-07-09 18:00:15 +02:00
Anders Jenbo
903d4bd2e1
Scope all for loops
...
This caused 7 of the loops to be rewriteen using range by clang-tidy
2021-07-08 08:14:03 -07:00
Anders Jenbo
9ebdb6db69
General clean up
2021-07-08 03:30:25 -07:00
ephphatha
d3c36166df
Add explicit cast for LogicalToOutput
...
In practice this function is only called with int arguments, can probably change the specialisation to std::is_integral<T>
2021-07-05 08:52:05 -07:00
ephphatha
08ae390643
Add explicit casts for some implicit conversions
...
Some of these were triggering multiple warnings due to casts applied at times which forced potentially truncating operations.
2021-07-05 08:52:05 -07:00
ephphatha
3520dc4201
Update numeric literals to use appropriate suffix
...
Mainly things like .F for floats instead of doubles in float context.
2021-07-05 08:52:05 -07:00
Anders Jenbo
bc0d1f7ac0
clang-tidy/Android Stuidio cleanups 3
2021-07-04 16:09:32 -07:00
Anders Jenbo
4eabc6024b
Apply various cleanups via Android Studio
2021-07-03 18:27:17 -07:00
Anders Jenbo
372b1dcba2
Clang-tidy: readability-identifier-naming.MemberCase: camelBack
2021-07-03 17:26:29 -07:00
Anders Jenbo
a7c7fa0030
Fully apply clang-tidy/format to all files
2021-07-03 16:41:43 -07:00
Anders Jenbo
8e07ef8fe5
Clang-tidy: misc-unused-parameters
2021-06-27 17:34:32 +02:00
Anders Jenbo
fa54499aeb
Clang-tidy: readability-uppercase-literal-suffix
...
Strip suffixes
2021-06-27 03:17:36 +02:00
Anders Jenbo
51d5c8bcab
Clang-tidy: performance-unnecessary-value-param
2021-06-27 01:48:19 +02:00
Anders Jenbo
f167bd4dfb
Clang-tidy: llvm-include-order
2021-06-27 01:45:49 +02:00
Anders Jenbo
ec8d7bebe2
Clang-tidy: modernize-use-auto
2021-06-27 01:18:31 +02:00
Anders Jenbo
790f42d078
Clang-tidy: readability-inconsistent-declaration-parameter-name
2021-06-27 01:06:00 +02:00
Gleb Mazovetskiy
8a9618aea2
♻️ Clean up cel_header.hpp
...
1. Rename `CelGetFrameStart` to `CelGetFrame`, in line with the other 2
functions with the same name and load the `uint32_t` safely.
2. Remove redundant `FrameHeader`, simply use `LoadLE16`.
3. Document all the functions.
2021-06-23 11:27:56 +01:00
Gleb Mazovetskiy
4ea7ba0f5f
🚚 engine.h: Extract LoadLE32 and LoadBE32
2021-06-21 02:34:28 -07:00
Gleb Mazovetskiy
f9f301b054
🚚 engine.h: Extract Point, Direction, clamp
...
`engine.h` is getting quite bloated. Moves this code to their own files.
2021-06-21 01:36:20 -07:00
Anders Jenbo
3affe2eb2a
Fix SDL1 builds
2021-06-20 00:23:13 +02:00
Anders Jenbo
9dd7de027f
Limit screen to landscape mode
2021-06-20 00:17:54 +02:00
Gleb Mazovetskiy and Victor Luchits
f9d20b44d6
🎉 Hardware cursor (SDL2-only)
...
Disabled by default because of these known issues:
1. When clicking on inventory item, it briefly appears a bit shifted (in the wrong coordinates).
This issue can happen with software cursor as well, but is a lot more
obvious with the hardware cursor.
2. Cursor is scaled with nearest-neighbour scaling, which may look a bit different from
how the rest of the graphics are scaled.
See also previous attempt: https://github.com/diasurgical/devilutionX/pull/955 by @viciious
Co-authored-by: Victor Luchits <[email protected] >
2021-06-19 01:03:40 +02:00
Gleb Mazovetskiy
e6a432bc5e
Add MakeSdlRect helper function for -Wnarrowing
2021-06-16 03:12:54 +02:00
Anders Jenbo
0227519267
Enable mouse emulation for Android
...
As a temporarly solution untill we implement a proper virtual controller
2021-06-15 00:23:35 +02:00
Vladimir Olteanu
02ffada9b8
constexpr version of abs
2021-06-02 13:36:17 +02:00
Kalebe Alves
49b21afb73
Clean up cstddef.hpp
2021-05-27 21:29:41 +02:00
Kalebe Alves
0461529176
Move byte from engine.h
2021-05-27 16:04:27 +02:00
Gleb Mazovetskiy
b76f7656f3
🧹 LoadArt: BYTE -> uint8_t
...
The change in include order necessitated a couple of other minor
cleanups, one in stubs.h and one in sdl2_to_1_2_backports.h
2021-05-23 18:45:01 +02:00
Gleb Mazovetskiy
e72def02e6
🔨 Add STREAM_ALL_AUDIO build setting
...
For extremely memory-constrained devices. Gets into town on RG99 (18 FPS -> 14 FPS).
2021-05-23 05:03:14 +02:00
Anders Jenbo
9e2206a673
Format code
2021-05-21 14:12:31 +02:00
Gleb Mazovetskiy
c79ec673f4
♻️ Implement std's Lockable for SDL mutex wrapper
...
Rather than rolling our own lock guard, implement the requirements for
using `std::lock_guard` et al and use that.
2021-05-17 12:00:09 +02:00
Trihedraf
2544bec7f3
Fix PWD ini check for GCC 5.5
2021-05-16 00:11:18 +02:00
Trihedraf
de3f30623b
if Writeable diablo.ini in PWD use that and save saves to PWD
2021-05-15 14:34:43 +02:00
Trihedraf
38cf99a423
Add IsWriteable to file_util.cpp
2021-05-15 14:34:43 +02:00