Gleb Mazovetskiy
4e92c86682
Fix audio distortion on Windows (default to winmm)
5 years ago
Gleb Mazovetskiy
cc75b7a948
loadsave: Fix off-by-one in RemoveEmptyLevelItems
...
Refs #1367
5 years ago
Anders Jenbo
779e6cf950
♻️ Apply more enums
5 years ago
Geoffroy Warin
b54df1af38
add an ini option to configure gamepad deadzone
5 years ago
Gleb Mazovetskiy
5059ce4085
Fix narrowing conversion warnings on SDL1
5 years ago
qndel
7a9aaed4b4
proper heroitems size
5 years ago
Gleb Mazovetskiy
7fd79c5c40
SaveLoad/Helper: Rename member fields
5 years ago
Gleb Mazovetskiy
642472cce8
pfile: extract pfile_get_password()
5 years ago
Anders Jenbo
b1ffdca0a3
♻️ make better use of enums
5 years ago
Gleb Mazovetskiy
b7d55348ab
StormPort.h: Do not assume mmap support
...
Do not assume mmap by default for the fallback platform, unless it's in a list of platforms that we know have mmap
Upstream commit: 062868dcdf
5 years ago
Anders Jenbo
af96de4038
♻️ Move a large part of enums to there respective headers
5 years ago
Anders Jenbo
ebc27082e7
🔥 remove unused parts of init_test_access
5 years ago
Anders Jenbo
13454c3ad6
📝 Add GitHub Actions (macOS) build badge
5 years ago
Gleb Mazovetskiy
6a3ae9e35b
Optimize MonsterData layout: sizeof 160 -> 80
5 years ago
Gleb Mazovetskiy
a6c353ddc7
Specify more enum storage types
5 years ago
Gleb Mazovetskiy
b22265277d
Optimize ItemDataStruct layout: sizeof 96 -> 48
...
Also specifies enum storage types
5 years ago
Gleb Mazovetskiy
1326df189a
Optimize layout of MissileData: sizeof 40 -> 32
5 years ago
Gleb Mazovetskiy
ff5d0c8512
Optimize layout of MisFileData: sizeof 341 -> 240
5 years ago
Gleb Mazovetskiy
14a21010a4
Simplify LoadMissileGfx
...
Animation frames are always loaded and free together, there is no need
to check each one.
5 years ago
Lou Rinaldi
8826fd27c9
Generate Mac build artifact ( #1406 )
5 years ago
Anders Jenbo
b22da095ef
📝 Note about providing the version
5 years ago
i-need-to-tell-you-something
8bc474ed6c
Fix typos as suggested by a grammar tool ( #1415 )
...
Sanity checked and applied the suggestions by the grammar checking tool Grammarly.
5 years ago
Xadhoom
867dd96a73
Add ZeroTier support
5 years ago
Gleb Mazovetskiy
4e01abe030
Vita: set(PREFILL_PLAYER_NAME ON)
...
Not strictly necessary because we always do this now if the gamepad is active, just adding for consistency with other handheld ports
5 years ago
Juliano Leal Goncalves
30cd12c000
♻️ Eliminate global 'MaxStats' variable
5 years ago
Juliano Leal Goncalves
25db7743dd
♻️ Reuse 'player.GetMaximumAttributeValue' for max stats
5 years ago
Gleb Mazovetskiy
3be9bbce12
Fixup storm.h signatures
...
1. StormLib now uses `bool` instead of `BOOL`
2. `WINAPI` was missing on `SFileSetFilePointer` (also the return type was incorrect)
3. There was a `WINAPI` on `SFileOpenFile` but that's not a StormLib function
Refs #1399
5 years ago
Juliano Leal Goncalves
1c1cf41eae
🔥 Remove unnecessary cursor-related logic in StoreAutoPlace
5 years ago
Juliano Leal Goncalves
b9e19fe84f
♻️ Simplify adding items to inventory by reusing 'AutoPlaceItemInInventory'
5 years ago
Juliano Leal Goncalves
da18b0f97b
♻️ Reuse 'AutoPlaceItemInInventory' inside 'StoreAutoPlace'
5 years ago
Juliano Leal Goncalves
bb61dfc68b
♻️ Reuse 'AutoPlaceItemInBelt' inside 'StoreAutoPlace'
5 years ago
Juliano Leal Goncalves
0b8a35f4b0
🔥 Remove now useless 'SpecialAutoPlace' function
5 years ago
Juliano Leal Goncalves
cae4461c39
♻️ Reuse existing functions in place of 'SpecialAutoPlace'
5 years ago
Juliano Leal Goncalves
7430109f7e
💡 Add proper comments to 'AutoPlaceItemInInventorySlot'
5 years ago
Juliano Leal Goncalves
1bc44bc969
🎨 Rename 'AutoPlaceItemInInventorySlot' arguments for readability/consistency
5 years ago
Juliano Leal Goncalves
462acd9422
♻️ Replace 'BOOL' macro with 'bool' type on 'AutoPlaceItemInInventorySlot'
5 years ago
Juliano Leal Goncalves
1c15e244b2
🚚 Rename 'AutoPlace' to 'AutoPlaceItemInInventorySlot'
5 years ago
Juliano Leal Goncalves
e33ea53086
♻️ Pass ItemStruct on inv AutoGetItem function
5 years ago
Juliano Leal Goncalves
3b015085de
♻️ Pass ItemStruct on item RespawnItem function
5 years ago
Juliano Leal Goncalves
b5a89578f0
♻️ Pass ItemStruct on inv InvGetItem function
5 years ago
Juliano Leal Goncalves
01606ea4df
♻️ Pass ItemStruct on inv CleanupItems function
5 years ago
Juliano Leal Goncalves
8e22f3a056
♻️ Pass ItemStruct on inv AutoPlace function
5 years ago
Anders Jenbo
47feeda0ce
🐛 Only initialize the subsystems that we use
...
Fixes #1391
For now this stops the initalization of sensor subsystem, but in the
future SDL may add more that we do not care about.
5 years ago
qndel
c3395de31c
fix typos
5 years ago
Anders Jenbo
bb4d0a90a3
📝 Fix typo
5 years ago
Gleb Mazovetskiy
621d505f67
Packaging/OpenDingux/build.sh: strip the binary
...
devilutionx binary goes from 4.1 MiB -> 3.4 MiB
5 years ago
Gleb Mazovetskiy
45523cc6e1
Packaging/OpenDingux/build.sh: Respect TOOLCHAIN env var
5 years ago
Gleb Mazovetskiy
01aeaea9a6
Remove STORMAPI, use WINAPI for StormLib decls
...
Restores the use of WINAPI but only for StormLib declarations.
This allows us to use StormLib unmodified.
5 years ago
Gleb Mazovetskiy
06eb2ad5e7
StormLib: Skip unused functionality
...
Re-applies `#ifdef FULL` with some minor changes
from the previous version of DevilutionX's fork of StormLib.
5 years ago
Gleb Mazovetskiy
50e4677e2d
StormLib: Add .editorconfig
...
StormLib files are a mix of LF and CRFL.
Ensure we don't modify line endings.
5 years ago