Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.6.0-development #6454

Merged
merged 74 commits into from
Sep 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
8101e2c
Add `c_any_of` and friends
glebm Aug 12, 2023
384a303
add IsAreaOk function instead of multiple manual checks
qndel Jul 22, 2023
663c334
Introduce function to determine if ZT comms channel to peer is relayed
StephenCWills Jul 30, 2023
4e3f466
Remove unused attribute _pMaxLvl
ephphatha Jul 23, 2023
7a5e5f7
Support language-specific font variants
glebm Jul 17, 2023
28b26da
Fix spawning shrines on custom levels
AJenbo Jul 16, 2023
b25b6a1
Fix spawn location when using map debug command
AJenbo Jul 16, 2023
e8838a7
Refactor CheckCursMove()
obligaron Jul 9, 2023
578ce01
Introduce Towner/Player/Object/Item/Monster::currentSprite/getRenderi…
obligaron Jul 10, 2023
ac7c96b
Introduce PointOf operator /=
obligaron Jul 11, 2023
d5642da
Introduce GetScreenPosition
obligaron Jul 1, 2023
f59e3aa
Introduce IsPointWithinClx
obligaron Jul 9, 2023
97f9045
Introduce TrySelectPixelBased
obligaron Jul 11, 2023
1e62775
deduplicate NPC sell/buy code
qndel Jul 10, 2023
b5ab3a1
correct IsTileWalkable to mark tiles out of bounds as not walkable
qndel Jul 10, 2023
398d094
rename AddInTownPortal -> AddPortalInTown
qndel Jul 10, 2023
4884da8
rename AddWarpMissile -> AddPortalMissile
qndel Jul 10, 2023
41adc6a
rename WarpDrop -> PortalTownPosition
qndel Jul 10, 2023
728b632
fix typos
qndel Jul 10, 2023
7f2010f
Level Up Sound (#6275)
kphoenix137 Aug 12, 2023
2f1290c
Remove C++11 compatibility code
glebm May 6, 2023
7d0c41e
Amiga: Builds using GCC 13
AJenbo Aug 12, 2023
703f3c2
Clean up `IsAreaOk`
glebm Aug 13, 2023
429823c
Xbox One: Fix SDL2 checkout command
glebm Aug 13, 2023
c918240
vcpkg.json: Update builtin-baseline
glebm Aug 13, 2023
53db86e
Use `std::from_chars` instead of `std::stoi`
glebm Jun 3, 2023
74755c8
Remove utils/stdcompat/cstddef.hpp
glebm Aug 13, 2023
62d067b
Remove utils/stdcompat/abs.hpp
glebm Aug 13, 2023
1454016
Remove utils/stdcompat/optional.hpp
glebm Aug 13, 2023
5cc1f98
Remove utils/stdcompat/invoke_result_t.hpp
glebm Aug 13, 2023
f2c4292
Fix SDL.h includes
glebm Aug 13, 2023
c19bfe8
Remove utils/stdcompat/algorithm.hpp
glebm Aug 13, 2023
e9b5ec7
Remove AppendStrView
glebm Aug 13, 2023
5960b20
Remove a stray __cplusplus >= 201703L check
glebm Aug 13, 2023
8ebe2e0
Fix -Wsign-compare warnings
glebm Aug 13, 2023
8c1a847
Remove utils/stdcompat/string_view.hpp
glebm Aug 14, 2023
14cb2d9
Update VERSION to 1.6.0
AJenbo Aug 14, 2023
d5446f2
Use `std::variant` in `StringOrView`
glebm Aug 14, 2023
ecdf738
PushAulibDecoder: Support 8-bit samples directly
glebm Aug 15, 2023
d262589
Support `const` inventory iterators
glebm Aug 15, 2023
26f4252
Fix unused variable warnings
glebm Aug 15, 2023
6dde0f8
Add enum class for spell icons
kphoenix137 Aug 15, 2023
ba6cc56
None to Empty
kphoenix137 Aug 16, 2023
9e8465e
Clean up spell book rendering
glebm Aug 16, 2023
cbf51cd
`DrawStringFormatArg`: Use `std::variant`
glebm Aug 17, 2023
ebe8c6e
Add `tl::expected` and use it in `ParseInt`
glebm Aug 19, 2023
ba4def9
Use utils/algorithm/container.hpp in more places
glebm Aug 19, 2023
9ae72f0
Remove `PointsInRectangle` factory functions
glebm Aug 20, 2023
4a4735e
`string_view`-based asset lookup
glebm Aug 20, 2023
caa4c2c
debian-cross-aarch64-prep.sh: Support `file` paths
glebm Aug 22, 2023
486f5ca
Replace ExpLvlsTbl global with helper function
ephphatha Jul 23, 2023
d92d152
Use unsigned type for character levels
ephphatha Jul 23, 2023
da76e13
Add getter/setter for character levels to ensure _pNextExper stays sy…
ephphatha Jul 23, 2023
14639cd
Replace _pNextExper with getter method
ephphatha Jul 26, 2023
e6890cc
Move MaxCharacterLevel to playerdat and add helpers for the various uses
ephphatha Jul 26, 2023
8ed451b
Move AddPlrExperience to class member function of Player
ephphatha Jul 26, 2023
996841e
Restore level 50 experience cap from Diablo
ephphatha Jul 23, 2023
32c3316
Load experience data from file
ephphatha Aug 20, 2023
e60a4dc
Close Towner window when clicking outside (#6504)
kphoenix137 Aug 25, 2023
15ed246
Merge branch 'master' of github.com:diasurgical/devilutionX into deve…
AJenbo Aug 25, 2023
bf7135d
Adjust tests to work with data driven levels (#6509)
AJenbo Aug 26, 2023
0e00f21
Change cache version in Android CI script
StephenCWills Aug 26, 2023
a3bf01f
LoggedFread: Do not log EOF as an error
glebm Aug 27, 2023
eb51a8b
Reduce demo message size
glebm Aug 27, 2023
be1d87f
fix selecting monsters outside of vision range
qndel Aug 27, 2023
5e77843
Deterministic timer simulation for shrine messages in demo mode (#6516)
StephenCWills Aug 29, 2023
5355146
Use structured bindings
glebm Aug 15, 2023
cf4d889
Change InitMissileGFX()
kphoenix137 Jul 27, 2023
5f6e5ae
Refactor iterator parsing to allow more reuse
ephphatha Aug 27, 2023
62e9aa0
`MissilePosition`: Use `WorldTilePosition`
glebm Aug 13, 2023
ed9bdd7
Remove duplicated HeadlessMode check in LoadPlrGfx
ephphatha Aug 30, 2023
af869ac
Merge branch 'master' into dev-merged
glebm Sep 1, 2023
9701101
Switch to C++20
glebm Aug 19, 2023
d31a7b5
Log Demo settings
glebm Sep 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- store_artifacts: {path: ./build/devilutionx.cia, destination: devilutionx.cia}
amigaos-m68k:
docker:
- image: amigadev/crosstools:m68k-amigaos
- image: amigadev/crosstools:m68k-amigaos-gcc10
working_directory: ~/repo
steps:
- checkout
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
uses: actions/cache@v3
with:
path: android-project/app/.cxx
key: ${{ github.workflow }}-v2-${{ github.sha }}
restore-keys: ${{ github.workflow }}-v2-
key: ${{ github.workflow }}-v3-${{ github.sha }}
restore-keys: ${{ github.workflow }}-v3-

- name: Build
working-directory: ${{github.workspace}}
Expand Down
37 changes: 29 additions & 8 deletions .github/workflows/Linux_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,40 @@ jobs:
with:
fetch-depth: 0

- name: Create Build Environment
# Work around the somewhat broken packages in the GitHub Actions Ubuntu 20.04 image.
# https://github.com/actions/runner-images/issues/4620#issuecomment-981333260
- name: Work around broken packages
run: sudo apt-get -y install --allow-downgrades libpcre2-8-0=10.34-7

- name: Add clang repo
run: |
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
sudo tee /etc/apt/sources.list.d/clang.list <<LIST
deb [arch=amd64,arm64] http://apt.llvm.org/focal/ llvm-toolchain-focal main
deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal main
LIST

# Installs dependencies, including arm64 libraries (runs `sudo apt-get update` as part of it)
- name: Install dependencies
run: Packaging/nix/debian-cross-aarch64-prep.sh --no-gcc

- name: Install clang-18
run: |
# Work around the somewhat broken packages in the GitHub Actions Ubuntu 20.04 image.
# https://github.com/actions/runner-images/issues/4620#issuecomment-981333260
sudo apt-get -y install --allow-downgrades libpcre2-8-0=10.34-7
Packaging/nix/debian-cross-aarch64-prep.sh
sudo apt-get install -yq --no-install-recommends clang-18 lld-18 libc++-18-dev:arm64 \
libgcc-10-dev-arm64-cross binutils-aarch64-linux-gnu && \
sudo update-alternatives --install \
/usr/bin/clang++ clang++ /usr/bin/clang++-18 200 && \
sudo update-alternatives --install \
/usr/bin/clang clang /usr/bin/clang-18 200 \
--slave /usr/bin/lld lld /usr/bin/lld-18 \
--slave /usr/bin/ld.lld ld.lld /usr/bin/ld.lld-18

- name: Cache CMake build folder
uses: actions/cache@v3
with:
path: build
key: ${{ github.workflow }}-v2-${{ github.sha }}
restore-keys: ${{ github.workflow }}-v2-
key: ${{ github.workflow }}-v6-${{ github.sha }}
restore-keys: ${{ github.workflow }}-v6-

- name: Build
working-directory: ${{github.workspace}}
Expand All @@ -51,7 +72,7 @@ jobs:
# We set DEVILUTIONX_SYSTEM_LIBFMT=OFF because its soversion changes frequently.
# We set DEVILUTIONX_SYSTEM_SIMPLEINI=OFF because we require v4.19+, still missing from many distributions.
run: |
cmake -S. -Bbuild -DCMAKE_TOOLCHAIN_FILE=../CMake/platforms/aarch64-linux-gnu.toolchain.cmake \
cmake -S. -Bbuild -DCMAKE_TOOLCHAIN_FILE=../CMake/platforms/aarch64-linux-gnu-clang-static-libc++.toolchain.cmake \
-DCMAKE_BUILD_TYPE=${{env.CMAKE_BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=/usr -DCPACK=ON \
-DDEVILUTIONX_SYSTEM_LIBFMT=OFF -DDEVILUTIONX_SYSTEM_SIMPLEINI=OFF && \
cmake --build build -j $(getconf _NPROCESSORS_ONLN) --target package
Expand Down
26 changes: 19 additions & 7 deletions .github/workflows/Linux_x86.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,31 @@ jobs:
with:
fetch-depth: 0

- name: Create Build Environment
# Work around the somewhat broken packages in the GitHub Actions Ubuntu 20.04 image.
# https://github.com/actions/runner-images/issues/4620#issuecomment-981333260
- name: Work around broken packages
run: sudo apt-get -y install --allow-downgrades libpcre2-8-0=10.34-7

- name: Add gcc repo
run: sudo add-apt-repository ppa:ubuntu-toolchain-r/test

# Installs dependencies, including x86 libraries (runs `sudo apt-get update` as part of it)
- name: Install dependencies
run: Packaging/nix/debian-cross-i386-prep.sh --no-gcc

- name: Install gcc-13
run: |
# Work around the somewhat broken packages in the GitHub Actions Ubuntu 20.04 image.
# https://github.com/actions/runner-images/issues/4620#issuecomment-981333260
sudo apt-get -y install --allow-downgrades libpcre2-8-0=10.34-7
Packaging/nix/debian-cross-i386-prep.sh
sudo apt-get install -yq --no-install-recommends gcc-13 g++-13 g++-13-multilib && \
sudo update-alternatives --install \
/usr/bin/gcc gcc /usr/bin/gcc-13 13 \
--slave /usr/bin/g++ g++ /usr/bin/g++-13

- name: Cache CMake build folder
uses: actions/cache@v3
with:
path: build
key: ${{ github.workflow }}-v3-${{ github.sha }}
restore-keys: ${{ github.workflow }}-v3-
key: ${{ github.workflow }}-v5-${{ github.sha }}
restore-keys: ${{ github.workflow }}-v5-

- name: Build
working-directory: ${{github.workspace}}
Expand Down
20 changes: 17 additions & 3 deletions .github/workflows/Linux_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,29 @@ jobs:
with:
fetch-depth: 0

- name: Add gcc repo
run: sudo add-apt-repository ppa:ubuntu-toolchain-r/test

# Installs dependencies and runs `sudo apt-get update` as part of it.
- name: Install dependencies
run: Packaging/nix/debian-host-prep.sh --no-gcc

- name: Install gcc-13
run: |
sudo apt-get install -yq --no-install-recommends gcc-13 g++-13 && \
sudo update-alternatives --install \
/usr/bin/gcc gcc /usr/bin/gcc-13 13 \
--slave /usr/bin/g++ g++ /usr/bin/g++-13

- name: Create Build Environment
run: Packaging/nix/debian-host-prep.sh
run: Packaging/nix/debian-host-prep.sh --no-gcc

- name: Cache CMake build folder
uses: actions/cache@v3
with:
path: build
key: ${{ github.workflow }}-v2-${{ github.sha }}
restore-keys: ${{ github.workflow }}-v2-
key: ${{ github.workflow }}-v5-${{ github.sha }}
restore-keys: ${{ github.workflow }}-v5-

- name: Build
working-directory: ${{github.workspace}}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Linux_x86_64_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ concurrency:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions 3rdParty/libmpq/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ include(functions/FetchContent_MakeAvailableExcludeFromAll)

include(FetchContent)
FetchContent_Declare(libmpq
URL https://github.com/diasurgical/libmpq/archive/b78d66c6fee6a501cc9b95d8556a129c68841b05.tar.gz
URL_HASH MD5=da531a1a6f719e89798a26e679ffc329
URL https://github.com/diasurgical/libmpq/archive/34ace76ecb18c3c72300a6b8352ca0c96333488d.tar.gz
URL_HASH MD5=e76ab7e4f9dfd7f96c152dd7d8418fee
)
FetchContent_MakeAvailableExcludeFromAll(libmpq)

Expand Down
2 changes: 1 addition & 1 deletion 3rdParty/libzt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set(BUILD_HOST_SELFTEST OFF)
include(FetchContent)
FetchContent_Declare(libzt
GIT_REPOSITORY https://github.com/diasurgical/libzt.git
GIT_TAG d6c6a069a5041a3e89594c447ced3f15d77618b8)
GIT_TAG def49803307920da0ab5b9e9b70b399fdc2943dc)
FetchContent_MakeAvailableExcludeFromAll(libzt)

if(NOT ANDROID)
Expand Down
Loading