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
Anders Jenbo
374e8177ef
Remove wave.cpp
5 years ago
Anders Jenbo
47004ddd35
Add widescreen menus
5 years ago
Anders Jenbo
9b1568cc08
Startup issues with shareware version
5 years ago
Anders Jenbo
c802cbdc4d
Merge more Hellfire code paths
5 years ago
Anders Jenbo
a2a3729491
Enable loading hellfire games form main menu
5 years ago
Anders Jenbo
d20eddf48e
Unifcy a chunk of Hellfire's code pathts
5 years ago
qndel
9c7d6c96ea
specify path to diablo.ini ( #928 )
5 years ago
qndel
a61f969d26
fix typos ( #914 )
5 years ago
Gleb Mazovetskiy
a091a56e8e
Remove MAX_PATH restriction ( #898 )
...
Do not limit filesystem paths to 259 chars for MPQs, save files, and diablo.ini.
The MAX_PATH constant remains but now only limits path lengths within the MPQs.
5 years ago
Anders Jenbo
93358a290c
[SDL1.2] Check if an appropriate video mode exists for the given movie
...
This lets us fall back to software scaling for devices that do not
support a video mode that matches the given video.
6 years ago
Marcin Konicki
9a70a5c644
Prevent double free of sound chunk in storm ( #744 )
6 years ago
Marcin Konicki
aace1b46de
Implement `--save-dir` CLI option
...
* Lazy load ini, this also fixes launching the game on Android
6 years ago
BDC
741cdb2494
Fix memory leak with audio stream not been released
...
SFileChunk was not been release.
6 years ago
Anders Jenbo
8fcdf69a56
[SDL1.2] Check if an appropriate video mode exists for the given movie
...
This lets us fall back to software scaling for devices that do not
support a video mode that matches the given video.
6 years ago
Anders Jenbo
c53ca1a62a
Adjust resolution to monitor default on startup
6 years ago