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
Gleb Mazovetskiy
09e105ff27
dos: update SDL, disable per-pixel lighting
...
Updated SDL has better keyboard handling, including arrow keys and text
input support.
7 months ago
Gleb Mazovetskiy
d00dedfdd0
dos: get SDL via CMake
...
Now that the DOS SDL supports CMake, this is a much better option that
`configure`, because it lets us easily test out local changes to SDL,
e.g.:
```bash
cmake -S. -Bbuild-dos -DCMAKE_TOOLCHAIN_FILE=CMake/platforms/djcpp.toolchain.cmake \
-DTARGET_PLATFORM="dos" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF \
-DFETCHCONTENT_SOURCE_DIR_SDL2="${HOME}/diasurgical-SDL"
```
7 months ago
Gleb Mazovetskiy
c7b26690c4
dos: Switch to dos-vbe-rebase branch
...
Also cleans up dos-prep.sh and adds a bit of logging to display.cpp
7 months ago
Anders Jenbo
01507d532c
Add basic DOS port ( #8155 )
7 months ago
Gleb Mazovetskiy
50e35166a6
Add a `--log-to-file` flag
...
Useful for platforms like DOS where it's not necessarily easy to
redirect the log output.
7 months ago
Gleb Mazovetskiy
fd02564a85
magic_enum: Customize enums where they're declared
...
This necessitates dependencies on `magic_enum` in more
places but avoids obscure hard-to-debug errors, such
as the one seen in the DOS port PR.
7 months ago
Trihedraf
82fbeca6ed
Simplifying MinGW instructions ( #8154 )
7 months ago
Trihedraf
0dc534a74e
Fix mingw-prep.sh sdl2 not working for non-sudo
7 months ago
Cyril SIX
5fd8af76ee
log.hpp: fix lack of return when FMT_EXCEPTIONS is disabled
...
When compiling with clang, the compiler warns about the lack of return
statement in the non-void function fmt::format.
This fixes it by returning a default error string.
7 months ago
Rodrigo Vegas Sánchez-Ferrero
644e42140d
Spanish terms adapted to fit well in menu options
...
Texts adapted to fit well in different menu options where the space is limited.
Some changes are made to be consistent with the rest of the translation.
7 months ago
dependabot[bot]
5ee16cf030
Bump actions/checkout from 4 to 5
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
7 months ago
dependabot[bot]
cdcdbc911c
Bump actions/setup-java from 4 to 5
...
Bumps [actions/setup-java](https://github.com/actions/setup-java ) from 4 to 5.
- [Release notes](https://github.com/actions/setup-java/releases )
- [Commits](https://github.com/actions/setup-java/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/setup-java
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
7 months ago
Rodrigo Vegas Sánchez-Ferrero
1962101104
Small text corrections. es.po
7 months ago
Andrettin
76feb78b4e
Parse Text/Speech Data from TSV ( #8138 )
7 months ago
Gleb Mazovetskiy
f6036a544a
Amiga workflow: remove ccache
...
No longer needed following kd-tree compilation speed fix.
8 months ago
Gleb Mazovetskiy
79b74f6f72
Add `AsHexPad2` to `utils/str_cat`
8 months ago
Gleb Mazovetskiy
a3d2b360f9
Palette KD-tree: Fix compilation speed
...
Tricks the compiler into skipping expensive
`uninit var analysis` (`-Wmaybe-uninitialized`) by using
a struct with state rather than separate variables for `best` /
`bestDiff`.
This has no performance impact.
Also optimizes lookup a bit further and moves some code that
does not need to be inlined to the cpp file.
```
Benchmark Time CPU Time Old Time New CPU Old CPU New
-----------------------------------------------------------------------------------------------------------------------------------
BM_GenerateBlendedLookupTable_pvalue 0.0002 0.0002 U Test, Repetitions: 10 vs 10
BM_GenerateBlendedLookupTable_mean +0.0237 +0.0237 2092090 2141601 2091732 2141291
BM_GenerateBlendedLookupTable_median +0.0237 +0.0237 2092104 2141662 2091669 2141319
BM_GenerateBlendedLookupTable_stddev -0.6414 -0.5834 664 238 538 224
BM_GenerateBlendedLookupTable_cv -0.6497 -0.5930 0 0 0 0
BM_BuildTree_pvalue 0.0002 0.0002 U Test, Repetitions: 10 vs 10
BM_BuildTree_mean +0.0410 +0.0410 4495 4679 4494 4678
BM_BuildTree_median +0.0403 +0.0402 4494 4675 4493 4674
BM_BuildTree_stddev +0.9515 +0.9359 7 14 7 14
BM_BuildTree_cv +0.8746 +0.8596 0 0 0 0
BM_FindNearestNeighbor_pvalue 0.0002 0.0002 U Test, Repetitions: 10 vs 10
BM_FindNearestNeighbor_mean -0.0399 -0.0398 1964257108 1885966812 1963954917 1885694336
BM_FindNearestNeighbor_median -0.0397 -0.0396 1963969748 1886074435 1963650984 1885803182
BM_FindNearestNeighbor_stddev -0.3380 -0.3443 1217360 805946 1225442 803469
BM_FindNearestNeighbor_cv -0.3105 -0.3171 0 0 0 0
OVERALL_GEOMEAN +0.0077 +0.0077 0 0 0 0
```
8 months ago
Andrettin
0c3fe1345c
Parse Quest Data from TSV
8 months ago
Andrettin
7d1aebd91b
Added support for mapping IDs for item types
8 months ago
Andrettin
19f50e34f4
Added support for defining additional unique base items via TSV loading
8 months ago
Andrettin
ae4264b202
Added Lua binding for defining new item types
8 months ago
Andrettin
528c1ad0e6
Use the size of the AllItemsList vector instead of IDI_LAST for getting how many items are there
8 months ago
Andrettin
e2e8446be1
Added Lua Bindings for Adding Unique Items
8 months ago
Anders Jenbo
e7b91432ba
clang-tidy: simple clean up of missiles
8 months ago
Anders Jenbo
04ce8a97c5
clang-tidy: simple cleanup of items
8 months ago
Anders Jenbo
a977a76392
clang-tidy: simple cleanup of monsters
8 months ago
Anders Jenbo
62d2ff607c
Only resize monster data vectors when needed
8 months ago
Andrettin
20b63ba201
Simplified ParseAiId(), ParseMonsterClass() and ParseMonsterResistance(), ParseUniqueMonsterPack() with magic_enum
8 months ago
Andrettin
1ca8fcf460
Removed the unused ParseMonsterIdIfNotEmpty() function
8 months ago
Andrettin
5d21bfae37
Reworked the unique monster Lua bindings to load from a TSV file
8 months ago
Andrettin
be956f0608
Added Lua Bindings for Adding New Monster Types
8 months ago
Anders Jenbo
df82616df1
clang-tidy: auto fix headers for DiabloUI
8 months ago
Anders Jenbo
1c76897f2c
Apply simple const rules using clang-tidy
8 months ago
Anders Jenbo
14c0f86b4f
Clear old dmg builds before each build
8 months ago
staphen
0363c512f0
Adjust build documentation to target current Windows SDK version
8 months ago
staphen
5b425edc27
Update Windows Target Platform to the SDK version on Windows Server 2025 CI runners
8 months ago
staphen
c265dd1e14
Add dependency to prevent trim from deleting intermediate lang files
8 months ago
Eatitup_86
b7da47f9c3
Resolved Controller Inventory Issue
...
Fixed an issue with the inventory when using a controller that was making 1x1 items clip to an invalid -1 location when picking them up if they are in the last inventory slot.
8 months ago
wkdgmr
c92c768787
standardizing more ini indicators
8 months ago
Anders Jenbo
6a4c5e42ec
Clean up const and shadow variables
8 months ago
Nick Wicked
120993c9a9
Fix Automap movement being hardcoded to right stick on gamepad ( #7921 )
8 months ago
Anders Jenbo
2d710174b2
Extract Hellfire table text for translation
8 months ago
Andrettin
1724f8a68f
Fixed IsUniqueMonsterValid() so that it doesn't wrongly return false for Zhar the Mad and the Warlord of Blood ( #8104 )
8 months ago
Andrettin
d7404c070c
Simplified ParseMonsterId() by using the magic_enum library
8 months ago
staphen
b4020e82e8
Automatically trim retired assets from the build folder
8 months ago
Anders Jenbo
5fce934bdc
Fix linting
8 months ago
Andrettin
07c89a08eb
Made the unpacked mod init.lua path in DiscoverMods() be the same as the path used for actual mod loading
8 months ago
Andrettin
0da7f26ceb
Small Refactor for the Item Floating/Non-Floating Infobox Writing Code ( #8107 )
...
Refactored the code which writes item info to the floating or non-floating infobox depending on settings, simplifying it
8 months ago
Andrettin
0e005c87a4
Fixed item properties not being written to the "normal" infobox if the floating infobox option is disabled
8 months ago