staphen
a3e94d6b55
[Switch] Bundle assets directly in romfs
4 years ago
Anders Jenbo
df45bd28d7
Do not try to load devilutionx.mpq on 3DS
4 years ago
staphen
5a2b167728
[3DS] Bundle assets directly in romfs
4 years ago
Gleb Mazovetskiy
2d0d7ccc88
Reinitialize hardware cursor on window size change
4 years ago
Gleb Mazovetskiy
ba34bafb3f
Use SDL events directly
...
Removes redundant miniwin events and queue, using SDL events directly instead.
Demo migrated using this script: https://gist.github.com/glebm/8a73b04f695de96f344cc2e35151e03e
4 years ago
obligaron
ebfb519ee0
Rename gbQuietMode to HeadlessMode
4 years ago
obligaron
bab9baa42a
Handle gbQuietMode for paths in StartGame
4 years ago
Anders Jenbo
3ae834148a
Split event handeling from general miniwin features
4 years ago
Anders Jenbo
a7be622aa3
Clean up naming of event handler
4 years ago
Anders Jenbo
2d21fc372e
Remove more miniwin code
4 years ago
Anders Jenbo
c7f19336c9
[xbox] Initialize the video system and specify search path
4 years ago
Gleb Mazovetskiy
4063afb792
Xbox NXDK platform
4 years ago
Gleb Mazovetskiy
72660d9189
Migrate snprintf to fmt ( #4845 )
...
* Migrate `app_fatal` from printf to libfmt
* Migrate snprintf to fmt
4 years ago
Anders Jenbo
99181fd709
Move more files to the engine folder
4 years ago
obligaron
7afe7d2a70
Save Methods in loadsave gets MpqWriter passed
4 years ago
Gleb Mazovetskiy
779ccaca17
Overhaul translation fetching
...
1. Do not modify the map after loading. Instead, return string views
(guaranteed to be null-terminated) from look up functions and return
the key directly if not found.
2. Use an `unorded_map` instead of `map` where available (C++20).
Saves a bit of RAM (~50 KiB) and improves lookup performance.
4 years ago
Dmitry Marakasov
446ec5f95d
check for either linux or BSDs as defined(__unix__)
4 years ago
obligaron
c6c929a90c
Remove MpqDir and use PrefPath instead.
4 years ago
staphen
56af849632
Use romfs on Switch for devilutionx.mpq
4 years ago
Anders Jenbo
1409e604f5
Reduce string conversions
4 years ago
Anders Jenbo
a48f89007d
Implement stash
4 years ago
Felipe Wannmacher
8efbcf2058
Xbox One/Series support ( #3946 )
4 years ago
Andrew James
d3aedf5df1
Split loading of MPQs to handle translations and voice packs ( #3922 )
4 years ago
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
4 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