Gleb Mazovetskiy
0f924528ba
macOS/iOS: Add resources to the bundle
4 years ago
obligaron
945ee04f62
Add OptionEntry Language
4 years ago
obligaron
b3740012b0
Add init_language_archives() to reinitalize lang_mpq
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
Anders Jenbo
799f1763af
Performce UTF8 aware limited string copies
4 years ago
Gleb Mazovetskiy
fa90679416
game_assets.* -> assets.*
4 years ago
Gleb Mazovetskiy
720d210d95
utils/mpq* -> mpq/*
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
Anders Jenbo
fa4321adcc
Do not probe for devilutionx.mpq on Android
...
Android loads the assets from the APK instead
4 years ago
Anders Jenbo
ac18696af6
Fix loading translation packs
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
Gleb Mazovetskiy
a97ffd1640
Load MPQ file overrides without StormLib
...
Also logs the overrides in verbose mode.
4 years ago
Gleb Mazovetskiy
5d53910127
Verbose log base/pref/config/assets paths
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
obligaron
a0b14e43fe
Ensure SFileSetAssetsPath is called before InsertCDDlg is called
4 years ago
Anders Jenbo
e69853487d
Correct name of font mpq
4 years ago
Anders Jenbo
508cfabcdb
Load langauge specific mpq files
4 years ago
Anders Jenbo
8df5912dc6
Always use SDL wrapper for file access
4 years ago
obligaron
8dd5fcfc8f
Search app assets folder in SFileOpenFile
5 years ago
staphen
e5d32da8a2
Load font file from devilutionx.mpq
5 years ago
Cong
6091c3f3c2
Add GOG installation paths to game data search paths ( fixes #2709 ) ( #2748 )
5 years ago
Vladimir Olteanu
f1490b7826
Fix mem leak in storm.cpp
5 years ago
ephphatha
aec1491c98
Close devilutionx_mpq instead of trying to close patch_rt_mpq twice
5 years ago
Anders Jenbo
9818ad4891
[Android] Locate external App data path and migrate data files
5 years ago
Anders Jenbo
4eabc6024b
Apply various cleanups via Android Studio
5 years ago
Anders Jenbo
a7c7fa0030
Fully apply clang-tidy/format to all files
5 years ago
Anders Jenbo
ecea12fc15
Clang-tidy: ParameterCase
5 years ago
Anders Jenbo
a350fb0b15
Clang-tidy: FunctionCase part 1
5 years ago
Anders Jenbo
e2ead2cc5e
Port engine to Android
...
Set the font path for Android
Do not check for FileExists on CharisSILB.ttf for Android, FileExists
will always fail as it doesn't detect files located in the APK
port
5 years ago
Gleb Mazovetskiy
a3423cbc92
🧹 Move Storm code out of file_util
5 years ago
obligaron
60bfd5db34
Move SFileOpenArchive calls to new helper SFileOpenArchiveDiablo
5 years ago
staphen
c49dad9023
3DS: Add devilutionx.mpq to romfs.
5 years ago
staphen
3e5e5b2696
Synchronize SFileCloseFile() access
5 years ago
Gleb Mazovetskiy
47c93c2f9c
🧹 Fix more `-Wformat` warnings
5 years ago
Anders Jenbo
38d7b1e3c8
🐛 Do not utilize translations till after it has been initialize
5 years ago
Anders Jenbo
3b04f67194
🔥 Remove a chunk of miniwin types
5 years ago
Jmgr
17c85814bf
Fix a few remaining C-style format in Log calls
5 years ago
Jmgr
d4f62870b8
Remove globals from paths.h
...
Fix for Vita
Update to use free functions
Use std::optional to allow setting empty paths
Change header inclusion order
Co-authored-by: Gleb Mazovetskiy <glex.spb@gmail.com>
Use std::optional to allow setting empty paths
Apply clang-format
Temporary commit
5 years ago
Anders Jenbo
b69d18f12d
🌐 Enable translation of all remaning strings
5 years ago
Jmgr
1b7e0d2cb3
Migrate existing log entries
5 years ago
Jmgr
af0ea6fdfc
Set Application as the default log category
...
Remove example of logging a container
5 years ago
Jmgr
f3a401b5f6
Add the fmt library as a dependency and add some examples
...
Attempt at fixing missing functions on some platforms
5 years ago
Anders Jenbo
a32ac83090
🎨 cleanup trivial trype comparisons
5 years ago
Anders Jenbo
cc164985a3
🎨 Correct type checks in src sub-folder
5 years ago
Anders Jenbo
7c054bc005
🎨 push_back -> emplace_back
5 years ago
Anders Jenbo
f004c78824
🧹 performance-unnecessary-value-param
5 years ago
Anders Jenbo
b978d80119
🎨 llvm-include-order
5 years ago
Anders Jenbo
bb4e1960e7
🎨 modernize-use-nullptr
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
Gleb Mazovetskiy
91f8267db9
🧹 SDL1.2: Remove unimplemented SDL_*Window backports
...
Guard around SDL version at call site instead.
5 years ago