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.
This commit is contained in:
Gleb Mazovetskiy 2021-10-23 11:19:49 +01:00
commit 3d308983a8
64 changed files with 1230 additions and 1074 deletions

View file

@ -9,10 +9,10 @@
#include "DiabloUI/diabloui.h"
#include "dx.h"
#include "palette.h"
#include "storm/storm.h"
#include "utils/file_util.h"
#include "utils/log.hpp"
#include "utils/paths.h"
#include "utils/pcx.hpp"
#include "utils/ui_fwd.h"
namespace devilution {