pionere
97d53ced7e
get rid of a few warnings (strncpy)
5 years ago
pionere
d5a0fa8e85
get rid of a few warnings
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
e0a94686b0
Add game speed to multiplayer
...
Speed can only be set on game creation
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
Gleb Mazovetskiy
a2ab6e1e6f
storm_net: Prevent crashing during crash handling
...
An error when creating/joining a game was masked by null pointer
dereference
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
Gleb Mazovetskiy
f0eab35672
SDL 2.0.3 SVid: Use non-device Audio API
...
Fixes audio in movies on RG350!
From SDL docs: The legacy calls are good both for backwards compatibility and when you don't care about multiple, specific, or capture devices.
7 years ago
Gleb Mazovetskiy
f13d2d193a
SDL 2.0.3 SVid: Zero audio buffer before MixAudio
7 years ago
Gleb Mazovetskiy
df8d7a1f46
Compatibility with SDL v2.0.3
...
RG350 and GCW0 devices have an ancient version of SDL2.
7 years ago
Gleb Mazovetskiy
dd5bc39816
Get a fresh window surface before rendering to it ( #358 )
...
* Get a fresh window surface before rendering to it
It is possible that a window surface gets invalidated since we initially
obtained it. We need to call GetWindowSurface every time we want one,
instead of keeping a pointer to a possibly stale one.
See https://hg.libsdl.org/SDL/file/369b01006eb2/src/video/SDL_video.c#l2312
Fixes #351
7 years ago