Gleb Mazovetskiy
f3ad0c37e1
dx_create_back_buffer: Minor improvement for SDL2
...
Previously, we were copying the colors onto the surface's own palette
that was then immediately replaced by `palette`.
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
5b2481a2b4
Controls: No virtual mouse when automap is active
6 years ago
Gleb Mazovetskiy
39d78228fb
Move modifier hints to viewport corners
6 years ago
Gleb Mazovetskiy
ce5c1007a2
Controller improvements: START modifier and hints
...
1. Makes START a modifier key.
2. Main modifier actions are now displayed as hints while the modifier is pressed.
3. Mouse simulation now available on all controllers:
SELECT + D-Pad to move mouse
SELECT + Left/Right should button to click
START + | Action
---------- | ------
SELECT | Menu
UP | Menu
DOWN | Map
LEFT | Character info
RIGHT | Inventory
B (Bottom) | Spell book
Y (Left) | Quest log
This makes all actions available on controllers without sticks and ZL/ZR.
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
8d0c600e27
Fix compiler warning
6 years ago
Anders Jenbo
9836d6038c
Use SDL_Log instead of printf
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
f7541fbeb9
Ask before overwriting hero
6 years ago
Anders Jenbo
3703978483
Fix SDL1 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
2c541816e6
Track the mouse through the life of the application
6 years ago
Anders Jenbo
faaddcfd28
Allow controller events to also interupt attract mode
6 years ago
Anders Jenbo
c3f283429b
Fix high CPU load when game is minimized
6 years ago
Anders Jenbo
e5d4e99a69
Fix end movie not looping
6 years ago
Anders Jenbo
50661842b0
Implement SFileSetBasePath
6 years ago
Anders Jenbo
171323b987
Make sure that sgbSaveSoundOn is initialized
...
Fixes #480
6 years ago
Anders Jenbo
0bc40c6799
Remove DUMMY notice from UiProfileGetString
...
The original just returns the lable for the BNet user profile values and
are never used in the main application
6 years ago
Anders Jenbo
961e7f58c4
Implement UI errors
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
cb2d58acc8
Fix clang warning
6 years ago
Anders Jenbo
16d3fa69c6
Fix checking if sound is playing
...
Fixes #392
6 years ago
Anders Jenbo
40cea40aa4
Remove windows call types collisions
6 years ago
Anders Jenbo
57e960aeda
[controller] only move map when in dungion
...
The map status can not be changed in town but is remembered
6 years ago
Anders Jenbo
f2133b6e2b
Fix exiting movie
...
- Replaying the intro would translate the exter and then interupt the
movie immediately.
- It was not possible to exit the application while a movie was playing.
6 years ago
Anders Jenbo
1ebeaa7cd7
Fix missing sounds in menu
...
Fixes #392
6 years ago
Anders Jenbo
b6ce6f043f
Resolve warnings in switch case
6 years ago
Anders Jenbo
ef37f3de02
[controller] Map mouse right button
...
- Fix retrofw build error
- Map right and left mouse click for retrofw
- Fix opening inventory/char sheet on retrofw
6 years ago
Anders Jenbo
fe44ea7859
[controller] Increase teleport distance to 4 steps
6 years ago
Anders Jenbo
eb0f899c90
[controller] Hot spells via mod+A/B/X/Y, quest log/spellbook via mod+L2/R2
6 years ago
Anders Jenbo
cc42e9abb1
[controller] Make accumulator time based and correct map direction
...
The emulated mouse and map move at a consistent speed independant of
frame rate.
The map can now be scrolled at variable speeds and diagonally.
Mouse is now confined to the window.
6 years ago
Anders Jenbo
50ca153f24
[controller] Fix switching focuse between inv and char
6 years ago
Anders Jenbo
7273e6a32d
Fix mouse clicks not registering on 0x* and *x0
...
Fixes #507
6 years ago
Gleb Mazovetskiy
5db59f1c72
RetroFW: IPU detection for RetroFW 2.0
...
RetroFW 2.0 changed the location of the IPU flag
from `/proc/jz/ipu_ratio` to `/proc/jz/ipu`.
6 years ago
Anders Jenbo
7d8d10f00e
[controller] Correctly prioritice multiple talkers
...
This makes is easier to deal with Lazurus when skipping his trigger
6 years ago
Anders Jenbo
4610b50d1e
[controller] Handle edge cases for cursor state
6 years ago
Anders Jenbo
ae19742590
[controller] Don't start backtrack around obstacles
6 years ago
Anders Jenbo
9d4bb70913
[controller] Only close inventory if cursor is clean
6 years ago
Anders Jenbo
f313b66a34
[controller] Fix dropping items to all sides
6 years ago