Juliano Leal Goncalves
f54cc5aa95
♻️ Convert 'attribute_id' to a scoped enumeration
5 years ago
Juliano Leal Goncalves
28ad9d43c5
🎨 Rename 'plr_class' enum to 'HeroClass'
...
Members were renamed as well for readability.
5 years ago
Juliano Leal Goncalves
7d95bfed39
♻️ Convert 'plr_class' to a scoped enumeration
5 years ago
Gleb Mazovetskiy
2f3e0cb18e
SDL1: Backport SDL2 logging
...
1. Backports SDL2 logging.
2. Adds a `--verbose` flag.
3. As an example, adds logging priority and category to a few log calls.
5 years ago
Anders Jenbo
61244c4d93
♻️ Rearange and apply more enums
5 years ago
Juliano Leal Goncalves
25db7743dd
♻️ Reuse 'player.GetMaximumAttributeValue' for max stats
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
17803d5923
♻️ Apply proper types to PlayerStruct
5 years ago
Anders Jenbo
12658a0b3d
🐛 Fix console output on Windows and SDL1 targets
...
Fixes #921
5 years ago
Anders Jenbo
e280432b92
🚨 Fix all SDL1 warnings
5 years ago
Anders Jenbo
36a196389b
Fix remaning basic compiler errors and warnings
5 years ago
Anders Jenbo
90d59998f2
Correctly handle mouse leaving the window
5 years ago
Ivan Epifanov
1878d7fdd7
Fix touch-drag events
5 years ago
Ivan Epifanov
1e53f32049
[vita] Initial port
5 years ago
qndel
0fe08dbe68
numpad potions + chat ( #1027 )
5 years ago
Gleb Mazovetskiy
b10b4381ef
Multiple controllers support ( #935 )
5 years ago
Gleb Mazovetskiy
693e189025
Controller: Fix L2/R2 handling
...
Broken in 01401a16c7
`ToControllerButtonEvent` must only be called once per SDL event because
of how it handled L2/R2
5 years ago
Gleb Mazovetskiy
01401a16c7
Fix various controller issues
...
* Fixes Right Stick cursor movement
* Fixes cursor flicker when moving the cursor while moving the character
* Fixes START + SELECT menu
* Makes SELECT act as Escape in the in-game menu
Fixes #930
5 years ago
Anders Jenbo
b7ca9a812a
Clean up unused return type
5 years ago
Anders Jenbo
e073422ce7
Unify executable for Spawn and Retail
...
The game will now autodetect if it should run in shareware mode or full
retail based on the found mpq file. Additionally it can beforced in the
shareware mode with --spawn even if the retail data is found.
This simplifies a lot of the spagetty code and lets us better refactor,
also worth noteing is that we won't have to setup a secound set of build
tests.
6 years ago
Anders Jenbo
c164048348
[controller] Fix selecting spells at all resolutions
...
This also fixes
- UI navigation being unresponsive when quickly tabing the direction
pad.
- Speed book not starting out highlighting the current selected item
- Diagonal in the speed book
- Being able to select non spells in the speedbook
6 years ago
Anders Jenbo
8726e80199
Make controller enums C++03 compatible
6 years ago
Anders Jenbo
dc8be6c0ab
C++03 compatibility ( #736 )
...
* Use C++03 compatible constructors
* Remove conflicting definitions
6 years ago
Anders Jenbo
0da3461d35
Use explicit types instead of auto
6 years ago
Gleb Mazovetskiy
6e449b9411
Allow re-mapping keyboard keys
...
Adds a `REMAP_KEYBOARD_KEYS` CMake option.
This remapping applies wherever Game or Menu controls apply.
Uses it to map the Power button to the menu on RG350.
6 years ago
Anders Jenbo
c26fa8fa3f
Remove threading from miniwin
6 years ago
Anders Jenbo
118e3668b4
Remove unused code
6 years ago
Anders Jenbo
3ab9b7f2d3
Inline rand
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
6e9987cc93
Rename dsound and it nolonger reflects DirectSound
6 years ago
Anders Jenbo
5ff5b4893c
Fix loading alignment
6 years ago
Gleb Mazovetskiy
309693b9ff
OpenDingux: GKD350h support
...
Start and Select are swapped in this version because Start + D-Pad controls backlight on the GKD350h.
There is nothing to map mouse emulation to in this version because of this but it isn't necessary to play the game.
This version looks uglier than on RG350 because it uses software scaling beacuse the IPU on the GKD350h doesn't work.
6 years ago
Gleb Mazovetskiy
fd6de736f9
Read/WriteFile: Use memcpy instead of copy
...
copy compiles to memmove but we know the ranges do not overlap here,
because memfile buffer is not exposed outside this file
6 years ago
Gleb Mazovetskiy
e1b0712f74
CloseHandle: Avoid double lookup of file
6 years ago
Gleb Mazovetskiy
77914a029f
ShowOutOfDiskError: Use constant C-string
6 years ago
Gleb Mazovetskiy
8e5e918441
Change misc_io::files from set to unordered_set
...
Order is not a concern and unordered_set is faster
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
534ed2d3ff
Make shift+0-9 behave as on US keyboards
...
Fixes #532
6 years ago
Anders Jenbo
fd1d81c87f
Force initialization of controller on Switch
6 years ago
Anders Jenbo
71d8a0071c
Fix Windows build
6 years ago
Anders Jenbo
d04e0e44bb
Implement scroll wheel navigation
...
up/down/left/right = arrow keys
ctrl+up/down = zoom automap in/out
6 years ago
Anders Jenbo
c3f283429b
Fix high CPU load when game is minimized
6 years ago
Anders Jenbo
150f7e805d
Update debug code
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
Christopher M. Hobbs
436e25207a
Add preliminary command line options to main.cpp
...
- Add -h, --help and --version
- Address most of Issue #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
Anders Jenbo
16d3fa69c6
Fix checking if sound is playing
...
Fixes #392
6 years ago