obligaron
8dd5fcfc8f
Search app assets folder in SFileOpenFile
4 years ago
Vladimir Olteanu
f1490b7826
Fix mem leak in storm.cpp
5 years ago
Anders Jenbo
0889780923
Remove more usage of miniwin types
5 years ago
Anders Jenbo
f167bd4dfb
Clang-tidy: llvm-include-order
5 years ago
Anders Jenbo
22b632f04a
♻️ Clean up implicit bool conversions
5 years ago
obligaron
27a1a3bbfb
Use SimpleIni build-in bool/long/double methods
5 years ago
obligaron
7d5fe022ee
Switch ini library from Radon to simpleini
5 years ago
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.
5 years ago
Anders Jenbo
34744c068f
♻️ Consitantly use %i and not %d
5 years ago
Gleb Mazovetskiy
a3423cbc92
🧹 Move Storm code out of file_util
5 years ago
staphen
3e5e5b2696
Synchronize SFileCloseFile() access
5 years ago
Gleb Mazovetskiy
987ab2533b
🐞 Synchronize SFileReadFile access
...
StormLib read function is not thread-safe: https://github.com/ladislav-zezula/StormLib/issues/175
5 years ago
Gleb Mazovetskiy
3d03990cb8
♻️ Replace `SBmpLoadImage` with a simpler method
...
The new approach only makes 2 read calls and does not do any seeks.
It is also less general and is internal to `art.cpp`, allowing us to
simplify it somewhat.
5 years ago
Gleb Mazovetskiy
acee2ef14c
🎉 Switch from SDL_mixer to SDL_audiolib
...
SDL_mixer can only stream a single music track
SDL_audiolib has unlimited streams.
With this change, we finally have streaming sounds (respecting
sfx_STREAM).
Audio options can now also be set via diablo.ini, which should help us
better diagnose the static noise issues.
5 years ago
Jmgr
d4f62870b8
Remove globals from paths.h
...
Fix for Vita
Update to use free functions
Use std::optional to allow setting empty paths
Change header inclusion order
Co-authored-by: Gleb Mazovetskiy <glex.spb@gmail.com>
Use std::optional to allow setting empty paths
Apply clang-format
Temporary commit
5 years ago
Jmgr
1b7e0d2cb3
Migrate existing log entries
5 years ago
Anders Jenbo
a32ac83090
🎨 cleanup trivial trype comparisons
5 years ago
Anders Jenbo
2969b80163
🎨 Run readability-identifier-naming on all src sub-folders
5 years ago
Anders Jenbo
373f28736f
🎨 Acceptable parts of modernize-*
5 years ago
Anders Jenbo
b978d80119
🎨 llvm-include-order
5 years ago
Anders Jenbo
09e0607ddc
🎨 Acceptable part of bugprone-*
5 years ago
Anders Jenbo
bb4e1960e7
🎨 modernize-use-nullptr
5 years ago
Gleb Mazovetskiy
362f24e9a7
🚚 Move SVid code to its own file
5 years ago
Gleb Mazovetskiy
132ff891f0
SVid: More robust and correct scaling
...
Fixes various scaling formulas and adds checkes for indexed pixel formats.
5 years ago
Gleb Mazovetskiy
7fd088744e
SDL1 SVid: Clean up video mode code + add override
...
1. Cleans up SVidVideoMode detection.
2. For devices where detection is not possible but it is known
to work, adds an `SDL1_FORCE_SVID_VIDEO_MODE` define.
5 years ago
Anders Jenbo
5fdb9ce459
🎨 Format code
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
997c1dba55
🚚 Split up all.h in to proper header relations
5 years ago
Anders Jenbo
6e1a106a38
🚚 Move header we implement into the project
5 years ago
Anders Jenbo
67a7ff98c5
🚨 Clean up compiler warnings
5 years ago
Anders Jenbo
93d42b62b8
♻️ Change BOOL to bool
5 years ago
Geoffroy Warin
b54df1af38
add an ini option to configure gamepad deadzone
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
6f1498d315
🚚 Move structures to there respective headers
5 years ago
Anders Jenbo
bc3dc545da
🔥 Remove unused parts of game creation logic
5 years ago
Gleb Mazovetskiy
21a4a671e4
Cleanup DiabloAllocPtr
...
1. Removes a lock around allocation. `malloc` is required to be thread-safe in C11.
2. Defines it as a macro so that:
1. We provide the correct location for the OOM error.
2. We get better attribution from memory profilers.
5 years ago
staphen
77767eab37
Fixed order of evaluation in SBmpLoadImage size allocation.
5 years ago
Gleb Mazovetskiy
5814838d26
Move SFile helpers to storm.h
5 years ago
Gleb Mazovetskiy
be21f80f42
Fix `SBmpLoadImage` size allocation
...
SBmpLoadImage tried to get the size of the rest of the file incorrectly
by subtracting the current file position from the total size.
This was incorrect because file positions do not always begin at 0.
The only semi-portable way to get a size from file positions is to
subtract two file positions.
5 years ago
Juliano Leal Goncalves
800dbce066
♻️ Move options-related structs to new 'options.h' file
5 years ago
Anders Jenbo
8425a23585
♻️ Only write ini file once
5 years ago
Gleb Mazovetskiy
7ead76e8d2
Remove SFileDdaSetVolume
...
It is only used in one place and does not actually control the volume of any specific file.
5 years ago
Anders Jenbo
4eb1971ada
✨ Apply sound volume to videos
5 years ago
Anders Jenbo
e280432b92
🚨 Fix all SDL1 warnings
5 years ago
Anders Jenbo
39999791b3
Revamp ini options and sync in multiplayer
...
[NetMsg]
F12=Now you DIE!
F11=Here's something for you.
F10=Follow me.
F9=I need help! Come Here!
[Game]
Speed=50
Fast Walk=1
Grab Input=0
Theo Quest=0
Cow Quest=0
[Audio]
Sound Volume=0
Music Volume=0
Walking Sound=1
[Graphics]
Fullscreen=1
Fit to Screen=1
Scaling Quality=2
Integer Scaling=0
Vertical Sync=1
Blended Transparency=1
Gamma Correction=100
Color Cycling=1
[Diablo]
Intro=0
[Hellfire]
Intro=0
SItem=
[Phone Book]
Entry1=127.0.0.1
[Network]
Bind Address=0.0.0.0
5 years ago
pionere
97d53ced7e
get rid of a few warnings (strncpy)
5 years ago
pionere
1f340212e1
do not call SFileOpenFileEx if the given handle is NULL
...
+ add defines for dwSearchScope
5 years ago
Anders Jenbo
0c8664b016
Implement Cornerstone of the World functionality
5 years ago
Anders Jenbo
88a715cdcc
Clean up narator sound logic
...
Also this provides a helper function for calculating the length of a
sound
5 years ago