Gleb Mazovetskiy
8f6e9810d0
SDL3: Make `text_render_integration_test` build
...
Adds support for just enough SDL3 to make `text_render_integration_test`
work.
5 months ago
Gleb Mazovetskiy
f99475657a
dos: Clean up paths for better logging
...
1. Prevents warnings in `--verbose` mode from unimplemented `SDL_GetBase/PrefPath`.
These were the first 4 "This operation is not supported" messages
that were logged previously.
2. Removes Linux directories from MPQ search paths on DOS.
3. Uses backslash directory separator on DOS.
DJGPP libc supports both but this is DOS, we should use backslash.
Now the `--verbose` SDL_LOG.txt looks much cleaner:
```
VERBOSE: Paths:
base:
pref:
config:
assets: assets\
VERBOSE: MPQ search paths:
1. ''
VERBOSE: Found: devx in
VERBOSE: Missing: fonts
DEBUG: DOS: Keyboard ISR code size is 48 bytes
DEBUG: Unknown pixel format
DEBUG: SVGA: Ignoring mode 0x102: Bad attributes
DEBUG: SVGA: Ignoring mode 0x104: Bad attributes
DEBUG: SVGA: Ignoring mode 0x106: Bad attributes
DEBUG: SVGA: Ignoring mode 0x107: No double-buffering
DEBUG: SVGA: Ignoring mode 0x112: No double-buffering
DEBUG: SVGA: Ignoring mode 0x115: No double-buffering
DEBUG: SVGA: Ignoring mode 0x116: No double-buffering
DEBUG: SVGA: Ignoring mode 0x117: No double-buffering
DEBUG: SVGA: Ignoring mode 0x209: No double-buffering
DEBUG: SVGA: Ignoring mode 0x20A: No double-buffering
DEBUG: SVGA: Ignoring mode 0x225: No double-buffering
DEBUG: SVGA: VBE lists 42 modes
VERBOSE: Removed file: Diablo1ReadOnlyTest.foo
VERBOSE: Paths:
base:
pref:
config:
assets: assets\
VERBOSE: MPQ search paths:
1. ''
VERBOSE: Paths:
base:
pref:
config:
assets: assets\
VERBOSE: MPQ search paths:
1. ''
VERBOSE: Found: DIABDAT in
VERBOSE: Missing: hfbard
VERBOSE: Missing: hfbarb
DEBUG: That operation is not supported
VERBOSE: Control: device None -> KeyboardAndMouse, mode None -> KeyboardAndMouse
```
7 months ago
Anders Jenbo
1c76897f2c
Apply simple const rules using clang-tidy
7 months ago
Peppersawce
9935921a27
Scrap Haiku-specific code, unneeded ( #7931 )
11 months ago
Peppersawce
c1e3cede5b
Better asset path lookup for Haiku ( #7927 )
11 months ago
Gleb Mazovetskiy
b68f59d002
OSX: Fix base/pref/config paths on Tiger
1 year ago
Stephen C. Wills
6b988fcfdb
Fix clang-format violation ( #7500 )
1 year ago
Peppersawce
bd1881957b
Update paths.cpp
1 year ago
Peppersawce
da0418d654
Define Haiku assets path
1 year ago
Gleb Mazovetskiy
13f6e34ebe
Use an empty path for ini-based path detection
...
Avoids search paths duplication (`"./"` vs `""`)
3 years ago
Gleb Mazovetskiy
6d274c9547
`UNPACKED_SAVES`: Saves without MPQs
...
Reduces rg99 binary size by ~70 KiB.
3 years ago
Artur Jarosik
8bee40dca4
Fix amiga build ( #5479 )
3 years ago
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`
3 years ago
staphen
a3e94d6b55
[Switch] Bundle assets directly in romfs
4 years ago
staphen
5a2b167728
[3DS] Bundle assets directly in romfs
4 years ago
Gleb Mazovetskiy
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 <wendland@live.com.au>
4 years ago
obligaron
c6c929a90c
Remove MpqDir and use PrefPath instead.
4 years ago
Gleb Mazovetskiy
a496b9d72b
Emscripten: Fix assets/ loading
4 years ago
Gleb Mazovetskiy
f5d8f513cb
AssetsPath: Default to exe dir
...
Also adds `SetAssetsPath`, for use by tests.
4 years ago
Gleb Mazovetskiy
d3a523fa0b
paths.cpp: Remove `AppPath`
...
It was redundant.
4 years ago
JBerg
f31258400a
[ios] Expose app's data
4 years ago
Gleb Mazovetskiy
a97ffd1640
Load MPQ file overrides without StormLib
...
Also logs the overrides in verbose mode.
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
Anders Jenbo
3b229a8275
Check for translation in the same place as they are loaded from
4 years ago
obligaron
a532d0fc21
Introduce paths::AppPath
5 years ago
Anders Jenbo
4dd8b121ec
Replace TTF with PCX font
5 years ago
Vladimir Olteanu
4a9ebf1460
Use SDLUniquePtr
5 years ago
Anders Jenbo
f167bd4dfb
Clang-tidy: llvm-include-order
5 years ago
Trihedraf
2544bec7f3
Fix PWD ini check for GCC 5.5
5 years ago
Trihedraf
de3f30623b
if Writeable diablo.ini in PWD use that and save saves to PWD
5 years ago
Ivan Epifanov
e9d4c85fab
Remove vita workaround
5 years ago
Gleb Mazovetskiy
46a5dc147b
🔨 Restore GCC 5 compatibility
...
We can support this much older compiler with just these few minor
changes.
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
Jmgr
2b672289e1
Fix optional being in experimental/ with some compilers
5 years ago
Anders Jenbo
3f30b8db60
Add Danish translation and switch to IETF instead of ISO 639-1 codes
5 years ago
John Törnblom
51e7a169a6
add initial language support using a simple MO parser
5 years ago
Jmgr
1b7e0d2cb3
Migrate existing log entries
5 years ago
Anders Jenbo
373f28736f
🎨 Acceptable parts of modernize-*
5 years ago
Anders Jenbo
bb4e1960e7
🎨 modernize-use-nullptr
5 years ago
Anders Jenbo
5fdb9ce459
🎨 Format code
5 years ago
Anders Jenbo
8c821e98d3
🚚 Restructure files
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
a2656637e4
🎨 Format source
5 years ago
Trihedraf
508e4c635c
Add --ttf-dir to specify location of path to ttf ( #1253 )
5 years ago
Ivan Epifanov
1e53f32049
[vita] Initial port
5 years ago
qndel
9c7d6c96ea
specify path to diablo.ini ( #928 )
5 years ago
Gleb Mazovetskiy
a091a56e8e
Remove MAX_PATH restriction ( #898 )
...
Do not limit filesystem paths to 259 chars for MPQs, save files, and diablo.ini.
The MAX_PATH constant remains but now only limits path lengths within the MPQs.
5 years ago