Anders Jenbo
872456ae5d
Use size_t for a select few pnum variables
4 years ago
Anders Jenbo
f6f05da485
Clean up game name and password variables
4 years ago
Anders Jenbo
acc4f27f63
Remove last usage of DWORD
4 years ago
obligaron
1f7b0607a6
public game browsing: show difficulty, speed, players and possible incompatibility
4 years ago
obligaron
0888546d62
Make DvlNet_SendInfoRequest non blocking
4 years ago
Gleb Mazovetskiy
7e1fea6f76
clang-format all files in {Source,test}/
...
Also includes a few manual tweaks to comments and newlines for better results.
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
4 years ago
Gleb Mazovetskiy
3d308983a8
Migrate to libmpq
...
libmpq is a much simpler alternative to StormLib for reading MPQ archives.
We use our own fork of libmpq: https://github.com/diasurgical/libmpq
Impact:
* DevilutionX is now a lot more portable. Unlike StormLib, libmpq only
needs platform-specific code for Windows.
* Locks around file access **removed** (instead we duplicate the file descriptor for streamed audio only).
* RAM usage is **300 KiB** lower than StormLib.
* Stripped release linux_x86_64 binary is **32 KiB** smaller.
* Amiga build now hangs instead of crashing.
4 years ago
staphen
ffbbcc6d62
Support unencrypted multiplayer games with no password
4 years ago
Gleb Mazovetskiy
a97ffd1640
Load MPQ file overrides without StormLib
...
Also logs the overrides in verbose mode.
4 years ago
Gleb Mazovetskiy
7d91bc461a
Improve asset file opening
...
Avoid wrapping asset files via StormLib, open them directly via SDL
instead.
4 years ago
Anders Jenbo
272049380c
Fix building on Debian
4 years ago
Anders Jenbo
ae90193136
Game discovery over ZeroTier
4 years ago
obligaron
8dd5fcfc8f
Search app assets folder in SFileOpenFile
4 years ago
Vladimir Olteanu
f1490b7826
Fix mem leak in storm.cpp
5 years ago
Vladimir Olteanu
fae1e4eee5
Replace CCritSect with SdlMutex
5 years ago
Anders Jenbo
0889780923
Remove more usage of miniwin types
5 years ago
Anders Jenbo
a19e7b2a3b
Remove some more use of miniwin
5 years ago
Anders Jenbo
2ca6e37c46
Clean up sub folders using clang-tidy/Android Studio
5 years ago
Anders Jenbo
0f2ad469ea
♻️ Clean up variable initialization
5 years ago
Anders Jenbo
8e07ef8fe5
Clang-tidy: misc-unused-parameters
5 years ago
Anders Jenbo
d8fa29c972
Clean up more implicit bool conversion
5 years ago
Anders Jenbo
22b632f04a
♻️ Clean up implicit bool conversions
5 years ago
staphen
1ca50e65eb
Fix and reenable SNetReceiveTurns on 3DS
5 years ago
Anders Jenbo
a095bc0bf7
♻️ Migrate more code away from miniwin
5 years ago
Gleb Mazovetskiy
a3423cbc92
🧹 Move Storm code out of file_util
5 years ago
obligaron
58becefada
Define UNICODE/_UNICODE for StormLib and use SFileOpenArchive with wchar_t (TCHAR) on Windows
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
Anders Jenbo
f884ba5340
🔥 Remove more miniwin dependencies
5 years ago
Anders Jenbo
3b04f67194
🔥 Remove a chunk of miniwin types
5 years ago
Jmgr
c33182d6de
Modernize deprecated headers
5 years ago
Anders Jenbo
7912e510f0
🎨 Clean up overuse of SDL types
5 years ago
Anders Jenbo
cc164985a3
🎨 Correct type checks in src sub-folder
5 years ago
Anders Jenbo
f004c78824
🧹 performance-unnecessary-value-param
5 years ago
Gleb Mazovetskiy
362f24e9a7
🚚 Move SVid code to its own file
5 years ago
Gleb Mazovetskiy
91d7be9fa3
Fix init_test_access MPQ flag
...
`MPQ_FLAG_READ_ONLY` -> `MPQ_OPEN_READ_ONLY`.
The former is a flag that is set on an MPQ that was open in read-only
mode. To request opening in read-only mode, `MPQ_OPEN_READ_ONLY` should
be used instead.
5 years ago
Anders Jenbo
5fdb9ce459
🎨 Format code
5 years ago
Gleb Mazovetskiy
81d1370b5f
🐞 Fix Storm error code on Windows
...
`DVL_ERROR_HANDLE_EOF` was defined incorrectly on Windows.
These error codes are used and returned by Storm. Moves them
from `miniwin.h` to `storm.h`.
Also adds `STORM_ERROR_FILE_NOT_FOUND`, to be used in a follow-up PR.
5 years ago
Anders Jenbo
8c821e98d3
🚚 Restructure files
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
e7ae8ddd04
🚚 Move all enums to there respective headers
5 years ago
Anders Jenbo
61244c4d93
♻️ Rearange and apply more enums
5 years ago
Anders Jenbo
20186e0370
🎨 Replace TRUE/FALSE with true/false
...
fix
Fix
fix
5 years ago
Anders Jenbo
93d42b62b8
♻️ Change BOOL to bool
5 years ago
Anders Jenbo
4ee84aea1a
♻️ Change BOOLEAN to bool
...
fixup BOOLEAN
5 years ago
Geoffroy Warin
b54df1af38
add an ini option to configure gamepad deadzone
5 years ago
Gleb Mazovetskiy
3be9bbce12
Fixup storm.h signatures
...
1. StormLib now uses `bool` instead of `BOOL`
2. `WINAPI` was missing on `SFileSetFilePointer` (also the return type was incorrect)
3. There was a `WINAPI` on `SFileOpenFile` but that's not a StormLib function
Refs #1399
5 years ago
Gleb Mazovetskiy
01aeaea9a6
Remove STORMAPI, use WINAPI for StormLib decls
...
Restores the use of WINAPI but only for StormLib declarations.
This allows us to use StormLib unmodified.
5 years ago