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
Gleb Mazovetskiy
7a77e88eb0
StormLib: Update to ladislav-zezula/StormLib@95fabe8c0936e013d8764858d6eaf17b6a774e12
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
Gleb Mazovetskiy
e2158a2102
Storm: Fix reading local files
...
See https://github.com/ladislav-zezula/StormLib/issues/203
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
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
Gleb Mazovetskiy
2e21e7ab0e
CMake: libsodium FetchContent CMake 3.13 compat
...
This commit serves 2 purposes:
1. Fixes CMake 3.13 compatibility when using
` -DDEVILUTIONX_SYSTEM_LIBSODIUM=OFF` (fixes #1222 ).
2. Ensures we do not build targets that are not depended on by us,
by passing `EXCLUDE_FROM_ALL` to `add_subdirectory`.
5 years ago
Anders Jenbo
58e0b00e74
♻️ Pass privitives by value
5 years ago
Gleb Mazovetskiy
a545d0ce1c
CMake: An option to build libsodium from source
...
Adds an option to build libsodium from source instead of using the
system-provided one.
This is useful on systems that do not provide libsodium, or for testing
changes to libsodium along with devilutionx (by specifying
`-DFETCHCONTENT_SOURCE_DIR_LIBSODIUM`).
This also allows us to configure sodium to our liking when building it from source,
such as `SODIUM_MINIMAL`, which reduces the x64 release binary size from 4.3 MiB to 4.1 MiB.
5 years ago
Gleb Mazovetskiy
7ddabe188a
Update 3rdParty/Radon
...
From 9203ff8b02
5 years ago
Anders Jenbo
60cc8b0df4
🚨 Correct type of event_types
...
Fixes #1197
5 years ago
Anders Jenbo
8470e916c8
⬆️ Update libsmaker
...
Fixes #476
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
Epifanov Ivan
f49b55cbe1
Migrate to vitasdk
5 years ago
Ivan Epifanov
1e53f32049
[vita] Initial port
5 years ago
MrHuu
1fa8b6f4e4
[3DS] Initial port
5 years ago
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
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
Gleb Mazovetskiy
5f556a93b7
SFileSetBasePath: char * -> const char *
...
Follow-up to ec329e645c
5 years ago
Gleb Mazovetskiy
ec329e645c
Fix all "no-write-strings" warnings
5 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
8272a37aea
Add connection state and player state enums
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
bd85d4884e
Update LibSmacker to version 1.1.1
...
Fixes #723
6 years ago
BDC
74938fdacd
Fix memory leak with audio stream not been released
...
SFileChunk was not been release.
6 years ago
Anders Jenbo
bd6eebedb1
Drop storm_dx.cpp
6 years ago
Anders Jenbo
c26fa8fa3f
Remove threading from miniwin
6 years ago
Marlon Beijer
2f8da50e87
Some fixes for 68k-amiga
6 years ago
Anders Jenbo
118e3668b4
Remove unused code
6 years ago
Anders Jenbo
edeca6574d
Replace tagRECT with SDL_Rect
6 years ago
Anders Jenbo
913de17a56
Use SDL_Color nativly instead of converting betwen it and PALETTEENTRY
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
40cea40aa4
Remove windows call types collisions
6 years ago
rsn8887
8e84ae0159
remove mman.h dependency on Switch platform
6 years ago
lantus360
4c96d946c6
Initial Nintendo Switch support
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
d6eeb3cb47
StormPort: Suppress `min/max` macros from windows
...
Upstream PR: https://github.com/ladislav-zezula/StormLib/pull/163
6 years ago
Gleb Mazovetskiy
1f42ebbcdd
StormLib: Backport #include <strings.h> by default
...
Upstream: https://github.com/ladislav-zezula/StormLib/pull/160
Refs: #384 https://github.com/diasurgical/devilutionX/issues/378#issuecomment-544471019
6 years ago
Anders Jenbo
810b12a37d
Drop unused code
7 years ago
Anders Jenbo
a8e4db538f
Display SDL error messages in UI dialog
...
This will also end the application in most cases
7 years ago