32 Commits
Author SHA1 Message Date
Gleb Mazovetskiy 13f6e34ebe Use an empty path for ini-based path detection
Avoids search paths duplication (`"./"` vs `""`)
2023-09-20 01:48:23 +01:00
Gleb Mazovetskiy 6d274c9547 UNPACKED_SAVES: Saves without MPQs
Reduces rg99 binary size by ~70 KiB.
2023-01-18 23:40:30 +00:00
Artur Jarosik 8bee40dca4 Fix amiga build (#5479) 2022-11-16 13:01:02 +01:00
Gleb Mazovetskiy 41f43ea3f5 Support unpacked MPQs from devilutionx-mpq-tools
https://github.com/diasurgical/devilutionx-mpq-tools produces an unpacked MPQ
with all the graphics converted to CLX and the unused files removed.
This is primarily useful on RAM-constrained platforms, such as PS2,
because it eliminates the MPQ overhead.

Adds a build option to load from such unpacked directories instead of the MPQ.

These directories are searched for in the same locations
where the MPQs would be searched for otherwise.

Example directory layout:

* /usr/local/share/diasurgical/devilutionx/diabdat/ -- unpacked and converted diabdat.mpq
* /usr/local/share/diasurgical/devilutionx/hellfire/ -- unpacked and converted hellfire MPQs (all of them merged into 1 directory)
* /usr/local/share/diasurgical/devilutionx/fonts/ -- unpacked fonts.mpq
* /usr/local/share/diasurgical/devilutionx/pl/ -- unpacked pl.mpq

These directory structure is produced by calling `unpack_and_minify_mpq`
2022-10-11 18:00:57 +01:00
staphen a3e94d6b55 [Switch] Bundle assets directly in romfs 2022-08-21 06:41:35 +02:00
staphen 5a2b167728 [3DS] Bundle assets directly in romfs 2022-08-21 05:41:04 +02:00
Gleb MazovetskiyandRyzee119 ace30d2085 Xbox NXDK: Handle drives
1. Automount D drive
2. Mount E drive
3. Set preference and config paths to `E:\UDATA\devilutionx`

Co-authored-by: Ryzee119 <[email protected]>
2022-07-09 18:50:53 +01:00
obligaron c6c929a90c Remove MpqDir and use PrefPath instead. 2022-04-10 17:06:45 +02:00
Gleb Mazovetskiy a496b9d72b Emscripten: Fix assets/ loading 2021-12-20 04:07:34 +00:00
Gleb Mazovetskiy f5d8f513cb AssetsPath: Default to exe dir
Also adds `SetAssetsPath`, for use by tests.
2021-12-16 21:26:11 +01:00
Gleb Mazovetskiy d3a523fa0b paths.cpp: Remove AppPath
It was redundant.
2021-12-16 19:19:04 +00:00
JBerg f31258400a [ios] Expose app's data 2021-12-06 22:01:02 +01:00
Gleb Mazovetskiy a97ffd1640 Load MPQ file overrides without StormLib
Also logs the overrides in verbose mode.
2021-10-24 16:21:39 +01:00
Gleb Mazovetskiy 7d91bc461a Improve asset file opening
Avoid wrapping asset files via StormLib, open them directly via SDL
instead.
2021-10-24 16:21:39 +01:00
Anders Jenbo 3b229a8275 Check for translation in the same place as they are loaded from 2021-10-24 16:03:26 +02:00
obligaron a532d0fc21 Introduce paths::AppPath 2021-10-10 00:51:45 +02:00
Anders Jenbo 4dd8b121ec Replace TTF with PCX font 2021-09-29 18:13:48 +02:00
Vladimir Olteanu 4a9ebf1460 Use SDLUniquePtr 2021-09-13 23:07:04 +02:00
Anders Jenbo f167bd4dfb Clang-tidy: llvm-include-order 2021-06-27 01:45:49 +02:00
Trihedraf 2544bec7f3 Fix PWD ini check for GCC 5.5 2021-05-16 00:11:18 +02:00
Trihedraf de3f30623b if Writeable diablo.ini in PWD use that and save saves to PWD 2021-05-15 14:34:43 +02:00
Ivan Epifanov e9d4c85fab Remove vita workaround 2021-04-28 15:27:49 +02:00
Gleb Mazovetskiy 46a5dc147b 🔨 Restore GCC 5 compatibility
We can support this much older compiler with just these few minor
changes.
2021-04-27 14:26:14 +02:00
JmgrandGleb Mazovetskiy 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 <[email protected]>

Use std::optional to allow setting empty paths

Apply clang-format

Temporary commit
2021-04-25 22:26:37 +02:00
Jmgr 2b672289e1 Fix optional being in experimental/ with some compilers 2021-04-25 22:26:37 +02:00
Anders Jenbo 3f30b8db60 Add Danish translation and switch to IETF instead of ISO 639-1 codes 2021-04-25 04:15:59 +02:00
John Törnblom 51e7a169a6 add initial language support using a simple MO parser 2021-04-25 03:40:45 +02:00
Jmgr 1b7e0d2cb3 Migrate existing log entries 2021-04-25 02:39:42 +02:00
Anders Jenbo 373f28736f 🎨 Acceptable parts of modernize-* 2021-04-19 22:42:19 +02:00
Anders Jenbo bb4e1960e7 🎨 modernize-use-nullptr 2021-04-19 16:02:05 +02:00
Anders Jenbo 5fdb9ce459 🎨 Format code 2021-04-19 00:37:33 +02:00
Anders Jenbo 8c821e98d3 🚚 Restructure files 2021-04-16 03:57:22 +02:00