obligaron
b3a9760bda
Keymapper: Add mouse support
4 years ago
Anders Jenbo
6b2481a76c
Touch support on all SDL2 platforms
4 years ago
obligaron
18fb40ee32
Settingsmenu: Implement KeyInput
4 years ago
Gleb Mazovetskiy
7e1fea6f76
clang-format all files in {Source,test}/
...
Also includes a few manual tweaks to comments and newlines for better results.
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
4 years ago
Yuri Pourre
b8450dc792
Assign ctrl to drop items
5 years ago
Juliano Leal Goncalves
6c21638bee
♻️ Leverage 'Point' in 'SetCursorPos' function
5 years ago
obligaron
77f9bded9e
Introduce demo namespace
5 years ago
obligaron
fb562b29e9
Timedemo: Regard ProcessInput and gfProgressToNextGameTick
5 years ago
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.
5 years ago
Anders Jenbo
790f42d078
Clang-tidy: readability-inconsistent-declaration-parameter-name
5 years ago
Anders Jenbo
2bdb6caa07
Cleanup majority of remaning implicit bool conversions ( #2234 )
5 years ago
Gleb Mazovetskiy
4d10642b3d
🧹 Add and use a DVL_ALWAYS_INLINE macro
...
Also moves attribute macros out of miniwin into a new header.
5 years ago
Jmgr
994c5e7cfe
Add a keymapper
...
Rename the config entry for changing the quick messages texts
Other small improvements and simplifications
Set the quick spell hotkey text to be white with a black shadow
Add QuitGame action, unbound by default
Set the ItemInfo and QuestDebug keys to be unbound by default
5 years ago
Anders Jenbo
5b474b4781
Enable warnings for MSVC builds
...
Also, fix warnings related to DVL_PRINTF_ATTRIBUTE
5 years ago
Anders Jenbo
f884ba5340
🔥 Remove more miniwin dependencies
5 years ago
Anders Jenbo
3b04f67194
🔥 Remove a chunk of miniwin types
5 years ago
Jmgr
c33182d6de
Modernize deprecated headers
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
Gleb Mazovetskiy
81d1370b5f
🐞 Fix Storm error code on Windows
...
`DVL_ERROR_HANDLE_EOF` was defined incorrectly on Windows.
These error codes are used and returned by Storm. Moves them
from `miniwin.h` to `storm.h`.
Also adds `STORM_ERROR_FILE_NOT_FOUND`, to be used in a follow-up PR.
5 years ago
Gleb Mazovetskiy
e1278cba7b
Fix SErrGet/SetLastError
...
SErrGet/SetLastError were not propagating errors from 3rdParty/StormLib
because StormLib uses native Windows functions on Windows and defines
its own on Linux.
Also removes storm_full.h
5 years ago
Anders Jenbo
8c821e98d3
🚚 Restructure files
5 years ago
Anders Jenbo
f450d6a125
🚚 Move defines to there proper files
5 years ago
Anders Jenbo
e7ae8ddd04
🚚 Move all enums to there respective headers
5 years ago
Anders Jenbo
c87955b67f
🔥 Remove fake bool types
5 years ago
Anders Jenbo
20186e0370
🎨 Replace TRUE/FALSE with true/false
...
fix
Fix
fix
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Gleb Mazovetskiy
0c2284a091
Respect sfx_STREAM in PlaySFX
...
Changes audio playback of sounds with the `sfx_STREAM` flag, such as towner lines, to stream.
5 years ago
Gleb Mazovetskiy
997650aa5d
Stream music instead of loading it all at once
...
RAM usage (my beefy desktop):
* Town: 176 MiB -> 121 MiB
* Cathedral: 191 MiB -> 138 MiB
Performance: 1170 FPS -> 1150 FPS
5 years ago
Anders Jenbo
12658a0b3d
🐛 Fix console output on Windows and SDL1 targets
...
Fixes #921
5 years ago
Anders Jenbo
36a196389b
Fix remaning basic compiler errors and warnings
5 years ago
qndel
0fe08dbe68
numpad potions + chat ( #1027 )
5 years ago
Anders Jenbo
06b7c78406
Notes of untimly header cleanups
5 years ago
Anders Jenbo
374e8177ef
Remove wave.cpp
5 years ago
Anders Jenbo
e40653c1e0
fixup! Clean up unused return type
5 years ago
Anders Jenbo
b7ca9a812a
Clean up unused return type
5 years ago
Anders Jenbo
dc8be6c0ab
C++03 compatibility ( #736 )
...
* Use C++03 compatible constructors
* Remove conflicting definitions
6 years ago
Anders Jenbo
36cd56868b
Use preprocessor macros instead of constexpr for events enums
6 years ago
Anders Jenbo
c26fa8fa3f
Remove threading from miniwin
6 years ago
Anders Jenbo
118e3668b4
Remove unused code
6 years ago
Anders Jenbo
edeca6574d
Replace tagRECT with SDL_Rect
6 years ago
Anders Jenbo
08aa6a860a
Move generic helpers out of miniwin
6 years ago
Anders Jenbo
67c58583d8
Implement fullscreen toggeling via alt+enter
6 years ago
Anders Jenbo
cc4d6b57d8
Remove unused miniwin IO
6 years ago
Anders Jenbo
baf2d14440
Remove unused parts of miniwin
6 years ago
Anders Jenbo
913de17a56
Use SDL_Color nativly instead of converting betwen it and PALETTEENTRY
6 years ago
Anders Jenbo
e279fc2fe6
Revert "Treat booleans as bool"
...
This reverts commit 2dcf237dd2 .
As BOOLs are loaded as 32bit uint the swap would break the value on big
endian if mapped to bool (8bit)
6 years ago
Anders Jenbo
7f699dbad2
Remove more legacy savegame code
...
This code was only active in versions prior to 1.08
6 years ago
Anders Jenbo
2dcf237dd2
Treat booleans as bool
...
The engine should now be stable/clean enough to hanlde all bool types as
bool
6 years ago
Anders Jenbo
40d272241b
Implement --data-dir for setting mpq path
...
This also implements a much cleaner version of diablo_parse_flags
Fixes #219
6 years ago
Anders Jenbo
e577f9bdc7
Remove more old save game format code
...
Multiplayer save games from before 1.08 where using the system name as
the password, so they would need to be converted on the original machine
by 1.08-1.09b before they can be transfered to another system.
6 years ago