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
Anders Jenbo
6e63354cd1
Remove safe guards around strings own the input for
4 years ago
Anders Jenbo
799f1763af
Performce UTF8 aware limited string copies
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
Gleb Mazovetskiy
7e230df94a
Allow forcing Hellfire with command-line flags
...
This is useful for systems such as batocera.linux that have dynamic
launcher items that depend on the presence of the appropriate MPQ files.
4 years ago
BC Ko
f8fa0e5f76
documenation cleanup: appfat
5 years ago
Anders Jenbo
d523fc1e81
Cleanups
5 years ago
Vladimir Olteanu
2d0c818a63
Use SdlThread stuff in appfat.cpp
5 years ago
Anders Jenbo
d9e33b36f4
🔥 Delete FileErrDlg as it is now unused
5 years ago
Anders Jenbo
f167bd4dfb
Clang-tidy: llvm-include-order
5 years ago
Jmgr
bbd39aa513
Replace sprintfs with strcpy for translatable strings
5 years ago
Jmgr
6e85cde978
Update format strings
5 years ago
Jmgr
0c27e756f7
Add fmt::format
5 years ago
Anders Jenbo
34744c068f
♻️ Consitantly use %i and not %d
5 years ago
arcas
6502a3ca4d
Adding resources for translation ( #1973 )
5 years ago
Anders Jenbo
dbf5662ce6
:note: Update MPQ error messages
5 years ago
Anders Jenbo
72bed0709c
♻️ Remove some magic numbers form appfat
5 years ago
Gleb Mazovetskiy
47c93c2f9c
🧹 Fix more `-Wformat` warnings
5 years ago
Anders Jenbo
b69d18f12d
🌐 Enable translation of all remaning strings
5 years ago
Anders Jenbo
dbfa9c27a5
✨ Enable translation for all menus
5 years ago
Anders Jenbo
f8e3672469
♻️ Fully apply clang-tidy rules to a few files
5 years ago
Anders Jenbo
660eeb19d2
🎨 Apply agreeable part of clang-tidy to appfat and automap
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
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
501c536017
🎨 Clean up appfat
5 years ago
Anders Jenbo
3593266ef7
Converte all Levels when cross loading saves
5 years ago
pionere
f5c1079d6f
eliminate unused code
5 years ago
qndel
ab9911064f
unify checks for single and multiplayer
5 years ago
Anders Jenbo
38dbcf7641
Format source
5 years ago
Anders Jenbo
5a8f8eadb1
Clean up appfat.cpp
5 years ago
Gleb Mazovetskiy
ec329e645c
Fix all "no-write-strings" warnings
5 years ago
Anders Jenbo
e073422ce7
Unify executable for Spawn and Retail
...
The game will now autodetect if it should run in shareware mode or full
retail based on the found mpq file. Additionally it can beforced in the
shareware mode with --spawn even if the retail data is found.
This simplifies a lot of the spagetty code and lets us better refactor,
also worth noteing is that we won't have to setup a secound set of build
tests.
5 years ago
qndel
41fc140628
GetErrorStr cleanup
6 years ago
Anders Jenbo
5f8b9e45c0
Fix slow shutdowns on error
...
SDL_threadID was being compared to int and woudl thus always fail,
resulting in the application thinking that another thread was trying to
shutdown.
6 years ago
Anders Jenbo
47bc118bdc
Fix slow shutdowns on error
...
SDL_threadID was being compared to int and woudl thus always fail,
resulting in the application thinking that another thread was trying to
shutdown.
6 years ago
Colin Pitrat
0ea1b81772
Fix typos
6 years ago
Anders Jenbo
31ac716c3d
99 lines of documentation ( #2058 )
6 years ago
Robin Eklind
23dca91a95
docs: add function documentation to appfat.cpp
6 years ago
Anders Jenbo
af7db10bac
Correct switch order for TraceErrorDD
...
This fixes the jump table at the end of the function
https://github.com/galaxyhaxz/devastation/blob/master/FIXES/appfat.cpp
6 years ago
Anders Jenbo
f4c181dd70
Correct size of app_fatal
...
The call to ExitProcess(1) can be seen in the original ASM, but still
isen't emitted by the compiler for our code :/
6 years ago
Anders Jenbo
295dc35429
Renable delete operator
...
This aligns the first instructions, now that we only target C++ it's we
can safly enable it. Should be moved to storm.h.
6 years ago
Anders Jenbo
2ec7c78eae
Format source
6 years ago
Anders Jenbo
c384711a5f
Backport cleanups from hellfire branch
6 years ago
Manuel Alfayate Corchete
03662be548
Remove atexit() calls and implement a diablo_deinit() function instea… ( #694 )
...
* Remove atexit() calls and implement a diablo_deinit() function instead that cleans up every subsystem if it has been init before.
6 years ago
Anders Jenbo
2cdb83c8ff
Fix signature of FuncDlg properly
...
Previous fix caused a small diff, see:
https://docs.microsoft.com/en-us/previous-versions/ms960202%28v%3dmsdn.10%29
6 years ago
Anders Jenbo
0f514f25de
Apply WinAPI enums and macros
6 years ago
Anders Jenbo
c39f668deb
Enable some asserts that are helpful for testing
6 years ago
Anders Jenbo
c677e783c5
Correct typo in error message
6 years ago