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
Marcin Konicki
e4cbde0236
Prevent double free of sound chunk in storm ( #744 )
6 years ago
Marcin Konicki
515ac145c5
Implement `--save-dir` CLI option
...
* Lazy load ini, this also fixes launching the game on Android
6 years ago
Anders Jenbo
c32f33f19f
Use safe ranges instead of decltype() for C++03 compatability
...
SDL2 uses int, but SDL1.2 uses Uint16 and Sint16.
6 years ago
Anders Jenbo
dc8be6c0ab
C++03 compatibility ( #736 )
...
* Use C++03 compatible constructors
* Remove conflicting definitions
6 years ago
Anders Jenbo
43586c4b0d
Correct inclusion of Radon.hpp
6 years ago
Anders Jenbo
0da3461d35
Use explicit types instead of auto
6 years ago
Anders Jenbo
69ad34f58f
Consistently use NULL instead of nullptr
...
While nullptr does have extra checking, most of the code uses NULL and
nullptr makes it harder to port the code to some targets like the
original XBox
6 years ago
BDC
74938fdacd
Fix memory leak with audio stream not been released
...
SFileChunk was not been release.
6 years ago
Anders Jenbo
6d9089ec87
Fix compiler warning
6 years ago
Anders Jenbo
bd6eebedb1
Drop storm_dx.cpp
6 years ago
Gleb Mazovetskiy
658b44f613
SVid: Only switch video mode if full-screen
...
borderless counts as full-screen here (this is what RetroFW reports when
fullscreen=0)
6 years ago
Gleb Mazovetskiy
ea32475ce9
SDL1: Avoid software-scaling SVid when possible
...
Set the video mode close to the SVid resolution while preserving aspect ratio.
Restore the video mode once the video has finished playing.
Also avoids allocating a tmp surface unless scaling.
6 years ago
Anders Jenbo
08aa6a860a
Move generic helpers out of miniwin
6 years ago
Anders Jenbo
cc4d6b57d8
Remove unused miniwin IO
6 years ago
Anders Jenbo
913de17a56
Use SDL_Color nativly instead of converting betwen it and PALETTEENTRY
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
40d272241b
Implement --data-dir for setting mpq path
...
This also implements a much cleaner version of diablo_parse_flags
Fixes #219
6 years ago
Anders Jenbo
adad63cc72
Revert "Lazy load ini"
...
This reverts commit e316bce4d0 .
6 years ago
Anders Jenbo
e316bce4d0
Lazy load ini
...
This will hopfully solve the crash issues on Android
6 years ago
Anders Jenbo
a4d612d509
Clear video buffer
...
This avoids garbage appearing in the video boarder when not using a render
6 years ago
Anders Jenbo
4532f009ff
Remove old anti-cheat code from save function
...
Tthis code simply logs the save time of a multiplayer game in the
register database, this was likly done as part of an anti cheat scheme
(the key was "Video Player"), but appears to have since been disabled.
Probably to allow moving save games between PC's which was supported
when better Windows 2000 support was added.
6 years ago
Gleb Mazovetskiy
ddce870dda
Handle scaling for SDL1 ( #370 )
...
Only some handheld devices support auto-scaling.
On desktop and some handhelds we need to downscale manually.
Hardware auto-scaler check for jz4760 provided by @jbanes and @scooterpsu
6 years ago