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>
2021-11-24 23:44:12 +01:00
Anders Jenbo
6e63354cd1
Remove safe guards around strings own the input for
2021-11-22 10:07:31 +01:00
Anders Jenbo
799f1763af
Performce UTF8 aware limited string copies
2021-11-22 03:28:51 +01:00
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.
2021-11-06 23:51:42 +00:00
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.
2021-10-25 13:52:14 +01:00
BC Ko
f8fa0e5f76
documenation cleanup: appfat
2021-08-30 13:51:42 +02:00
Anders Jenbo
d523fc1e81
Cleanups
2021-08-02 10:12:40 +02:00
Vladimir Olteanu
2d0c818a63
Use SdlThread stuff in appfat.cpp
2021-07-22 01:20:23 +02:00
Anders Jenbo
d9e33b36f4
🔥 Delete FileErrDlg as it is now unused
2021-06-27 07:47:15 -07:00
Anders Jenbo
f167bd4dfb
Clang-tidy: llvm-include-order
2021-06-27 01:45:49 +02:00
Jmgr
bbd39aa513
Replace sprintfs with strcpy for translatable strings
2021-05-21 01:02:45 +02:00
Jmgr
6e85cde978
Update format strings
2021-05-21 01:02:45 +02:00
Jmgr
0c27e756f7
Add fmt::format
2021-05-21 01:02:45 +02:00
Anders Jenbo
34744c068f
♻️ Consitantly use %i and not %d
2021-05-15 14:17:52 +02:00
arcas
6502a3ca4d
Adding resources for translation ( #1973 )
2021-05-15 14:12:28 +02:00
Anders Jenbo
dbf5662ce6
:note: Update MPQ error messages
2021-05-08 04:38:07 +02:00
Anders Jenbo
72bed0709c
♻️ Remove some magic numbers form appfat
2021-05-02 15:27:38 +02:00
Gleb Mazovetskiy
47c93c2f9c
🧹 Fix more -Wformat warnings
2021-05-01 22:19:27 +02:00
Anders Jenbo
b69d18f12d
🌐 Enable translation of all remaning strings
2021-04-25 21:32:41 +02:00
Anders Jenbo
dbfa9c27a5
✨ Enable translation for all menus
2021-04-25 06:55:11 +02:00
Anders Jenbo
f8e3672469
♻️ Fully apply clang-tidy rules to a few files
2021-04-20 19:39:38 +02:00
Anders Jenbo
660eeb19d2
🎨 Apply agreeable part of clang-tidy to appfat and automap
2021-04-19 03:51:41 +02:00
Anders Jenbo
8c821e98d3
🚚 Restructure files
2021-04-16 03:57:22 +02:00
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
2021-04-16 01:04:54 +02:00
Anders Jenbo
6e1a106a38
🚚 Move header we implement into the project
2021-04-16 01:04:54 +02:00
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
2021-04-06 15:21:25 +02:00
Anders Jenbo
501c536017
🎨 Clean up appfat
2021-04-06 11:57:08 +02:00
Anders Jenbo
3593266ef7
Converte all Levels when cross loading saves
2021-02-27 14:51:37 +01:00
pionere
f5c1079d6f
eliminate unused code
2021-02-19 22:04:11 +01:00
qndel
ab9911064f
unify checks for single and multiplayer
2021-02-18 22:32:01 +01:00
Anders Jenbo
4794c8357c
Merge branch 'master' of github.com:diasurgical/devilution
2020-11-02 03:59:47 +01:00
Anders Jenbo
5a8f8eadb1
Clean up appfat.cpp
2020-11-02 01:29:14 +01:00
Anders Jenbo
72e2637061
Merge branch 'master' of github.com:diasurgical/devilution
2020-10-25 17:38:06 +01:00
Gleb Mazovetskiy
ec329e645c
Fix all "no-write-strings" warnings
2020-10-25 15:37:51 +01:00
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.
2020-10-20 19:42:01 +02:00
qndel
41fc140628
GetErrorStr cleanup
2020-10-12 05:31:09 +02:00
Anders Jenbo
7e04c63977
Merge branch 'hellfire' of github.com:diasurgical/devilution
2020-10-11 23:53:07 +02:00
Anders Jenbo
56eae4c277
Merge branch 'master' of github.com:diasurgical/devilution
2020-10-06 17:27:03 +02:00
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.
2020-10-05 17:34:49 +02:00
Colin Pitrat
0ea1b81772
Fix typos
2020-10-04 14:17:31 +02:00
Anders Jenbo
893efd51ea
Merge branch 'master' of github.com:diasurgical/devilution
2020-09-27 03:34:42 +02:00
Anders Jenbo
31ac716c3d
99 lines of documentation ( #2058 )
2020-07-07 19:36:18 +02:00
Anders Jenbo
659dc41aa5
Merge branch 'master' of github.com:diasurgical/devilution into hellfire
2020-04-26 22:10:34 +02:00
Anders Jenbo
7108145a04
Merge branch 'master' of github.com:diasurgical/devilution
2020-04-14 15:30:49 +02:00
Robin Eklind
23dca91a95
docs: add function documentation to appfat.cpp
2020-04-14 10:04:36 +02:00
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
2020-04-11 08:36:53 +02:00
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 :/
2020-04-11 08:36:53 +02:00
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.
2020-04-11 08:36:53 +02:00
Anders Jenbo
f066b57cd0
Merge master in to hellfire
2020-04-09 02:14:08 +02:00
Anders Jenbo
2ec7c78eae
Format source
2020-04-08 22:28:53 +02:00