Merge branch 'develop' of https://github.com/XLabsProject/iw4x-client into feature/ps3hud
This commit is contained in:
commit
ecbfc74980
119
.github/workflows/build.yml
vendored
Normal file
119
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,119 @@
|
|||||||
|
name: Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "*"
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- "*"
|
||||||
|
types: [opened, synchronize, reopened]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build binaries
|
||||||
|
runs-on: windows-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
configuration:
|
||||||
|
- Debug
|
||||||
|
- Release
|
||||||
|
steps:
|
||||||
|
- name: Wait for previous workflows
|
||||||
|
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||||
|
uses: softprops/turnstyle@v1
|
||||||
|
with:
|
||||||
|
poll-interval-seconds: 10
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Check out files
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
fetch-depth: 0
|
||||||
|
# NOTE - If LFS ever starts getting used during builds, switch this to true!
|
||||||
|
lfs: false
|
||||||
|
|
||||||
|
- name: Add msbuild to PATH
|
||||||
|
uses: microsoft/setup-msbuild@v1.0.2
|
||||||
|
|
||||||
|
- name: Generate project files
|
||||||
|
#run: tools/premake5 vs2019 --ci-build
|
||||||
|
run: tools/premake5 vs2019 --ac-disable
|
||||||
|
|
||||||
|
- name: Set up problem matching
|
||||||
|
uses: ammaraskar/msvc-problem-matcher@master
|
||||||
|
|
||||||
|
- name: Build ${{matrix.configuration}} binaries
|
||||||
|
run: msbuild /m /v:minimal /p:Configuration=${{matrix.configuration}} build/iw4x.sln
|
||||||
|
|
||||||
|
- name: Upload ${{matrix.configuration}} binaries
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: ${{matrix.configuration}} binaries
|
||||||
|
path: |
|
||||||
|
build/bin/${{matrix.configuration}}/iw4x.dll
|
||||||
|
build/bin/${{matrix.configuration}}/iw4x.pdb
|
||||||
|
|
||||||
|
# - name: Upload ${{matrix.configuration}} data artifacts
|
||||||
|
# uses: actions/upload-artifact@v2
|
||||||
|
# with:
|
||||||
|
# name: ${{matrix.configuration}} data artifacts
|
||||||
|
# path: |
|
||||||
|
# data/*
|
||||||
|
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
name: Deploy artifacts
|
||||||
|
needs: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop')
|
||||||
|
steps:
|
||||||
|
- name: Setup main environment
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
|
run: echo "XLABS_MASTER_PATH=${{ secrets.XLABS_MASTER_SSH_PATH }}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Setup develop environment
|
||||||
|
if: github.ref == 'refs/heads/develop'
|
||||||
|
run: echo "XLABS_MASTER_PATH=${{ secrets.XLABS_MASTER_SSH_PATH_DEV }}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Download Release binaries
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: Release binaries
|
||||||
|
|
||||||
|
# - name: Download Release data artifacts
|
||||||
|
# uses: actions/download-artifact@v2
|
||||||
|
# with:
|
||||||
|
# name: Release data artifacts
|
||||||
|
# path: data
|
||||||
|
|
||||||
|
# Set up committer info and GPG key
|
||||||
|
- name: Install SSH key
|
||||||
|
uses: shimataro/ssh-key-action@v2
|
||||||
|
with:
|
||||||
|
key: ${{ secrets.XLABS_MASTER_SSH_PRIVATE_KEY }}
|
||||||
|
known_hosts: 'just-a-placeholder-so-we-dont-get-errors'
|
||||||
|
|
||||||
|
- name: Add known hosts
|
||||||
|
run: ssh-keyscan -H ${{ secrets.XLABS_MASTER_SSH_ADDRESS }} >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
|
- name: Wait for previous workflows
|
||||||
|
uses: softprops/turnstyle@v1
|
||||||
|
with:
|
||||||
|
poll-interval-seconds: 10
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
# - name: Remove old data files
|
||||||
|
# run: ssh ${{ secrets.XLABS_MASTER_SSH_USER }}@${{ secrets.XLABS_MASTER_SSH_ADDRESS }} rm -rf ${{ env.XLABS_MASTER_PATH }}/iw4x/data/*
|
||||||
|
|
||||||
|
- name: Upload iw4x binary
|
||||||
|
run: rsync -avz iw4x.dll ${{ secrets.XLABS_MASTER_SSH_USER }}@${{ secrets.XLABS_MASTER_SSH_ADDRESS }}:${{ env.XLABS_MASTER_PATH }}/iw4x/
|
||||||
|
|
||||||
|
# - name: Upload data files
|
||||||
|
# run: rsync -avz ./data/ ${{ secrets.XLABS_MASTER_SSH_USER }}@${{ secrets.XLABS_MASTER_SSH_ADDRESS }}:${{ env.XLABS_MASTER_PATH }}/iw4x/data/
|
||||||
|
|
||||||
|
- name: Publish changes
|
||||||
|
run: ssh ${{ secrets.XLABS_MASTER_SSH_USER }}@${{ secrets.XLABS_MASTER_SSH_ADDRESS }} ${{ secrets.XLABS_MASTER_SSH_CHANGE_PUBLISH_COMMAND }}
|
48
.github/workflows/draft-new-release.yml
vendored
Normal file
48
.github/workflows/draft-new-release.yml
vendored
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
name: "Draft new release"
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
version:
|
||||||
|
description: "The version you want to release."
|
||||||
|
required: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
draft-new-release:
|
||||||
|
name: "Draft a new release"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Normalize version
|
||||||
|
id: normalize_version
|
||||||
|
run: |
|
||||||
|
version="${{ github.event.inputs.version }}"
|
||||||
|
version="v${version#v}"
|
||||||
|
echo "::set-output name=version::$version"
|
||||||
|
|
||||||
|
# Set up committer info and GPG key
|
||||||
|
- name: Import GPG key
|
||||||
|
id: import_gpg
|
||||||
|
uses: XLabsProject/ghaction-import-gpg@25d9d6ab99eb355c169c33c2306a72df85d9f516
|
||||||
|
with:
|
||||||
|
git-commit-gpgsign: true
|
||||||
|
git-committer-email: "${{ secrets.XLABS_CI_EMAIL }}"
|
||||||
|
git-committer-name: "${{ secrets.XLABS_CI_NAME }}"
|
||||||
|
# git-push-gpgsign: true
|
||||||
|
git-tag-gpgsign: true
|
||||||
|
git-user-signingkey: true
|
||||||
|
gpg-private-key: ${{ secrets.XLABS_CI_GPG_PRIVATE_KEY }}
|
||||||
|
passphrase: ${{ secrets.XLABS_CI_GPG_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Create Pull Request
|
||||||
|
uses: repo-sync/pull-request@v2
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.XLABS_CI_GITHUB_TOKEN }}
|
||||||
|
source_branch: "develop"
|
||||||
|
destination_branch: "master"
|
||||||
|
pr_allow_empty: true
|
||||||
|
pr_body: |
|
||||||
|
This Pull Request is for the release of IW4x ${{ steps.normalize_version.outputs.version }} and was [automatically created by a workflow](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) triggered by @${{ github.actor }}.
|
||||||
|
pr_title: Release ${{ steps.normalize_version.outputs.version }}
|
||||||
|
pr_label: release
|
83
.github/workflows/release.yml
vendored
Normal file
83
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
name: Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- "master"
|
||||||
|
types: [closed]
|
||||||
|
jobs:
|
||||||
|
merge:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Merge Release
|
||||||
|
steps:
|
||||||
|
- name: Check out files
|
||||||
|
if: github.event.pull_request.merged
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: false
|
||||||
|
lfs: false
|
||||||
|
|
||||||
|
# Set up committer info and GPG key
|
||||||
|
- name: Import GPG key
|
||||||
|
if: github.event.pull_request.merged
|
||||||
|
id: import_gpg
|
||||||
|
uses: XLabsProject/ghaction-import-gpg@25d9d6ab99eb355c169c33c2306a72df85d9f516
|
||||||
|
with:
|
||||||
|
git-commit-gpgsign: true
|
||||||
|
git-committer-email: "${{ secrets.XLABS_CI_EMAIL }}"
|
||||||
|
git-committer-name: "${{ secrets.XLABS_CI_NAME }}"
|
||||||
|
git-push-gpgsign: false
|
||||||
|
git-tag-gpgsign: true
|
||||||
|
git-user-signingkey: true
|
||||||
|
gpg-private-key: ${{ secrets.XLABS_CI_GPG_PRIVATE_KEY }}
|
||||||
|
passphrase: ${{ secrets.XLABS_CI_GPG_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Extract version from pull request
|
||||||
|
if: github.event.pull_request.merged
|
||||||
|
id: extract_version
|
||||||
|
run: |
|
||||||
|
title="${{ github.event.pull_request.title }}"
|
||||||
|
version="${title#Release }"
|
||||||
|
echo "::set-output name=version::$version"
|
||||||
|
|
||||||
|
- name: Create annotated tag
|
||||||
|
if: github.event.pull_request.merged
|
||||||
|
run: |
|
||||||
|
git tag -a -m "${{ github.event.pull_request.title }}" \
|
||||||
|
"${{ steps.extract_version.outputs.version }}" \
|
||||||
|
"${{ github.event.pull_request.merge_commit_sha }}"
|
||||||
|
git push origin --tags
|
||||||
|
|
||||||
|
- name: Create Pull Request
|
||||||
|
if: github.event.pull_request.merged
|
||||||
|
uses: repo-sync/pull-request@v2
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.XLABS_CI_GITHUB_TOKEN }}
|
||||||
|
source_branch: "master"
|
||||||
|
destination_branch: "develop"
|
||||||
|
pr_allow_empty: true
|
||||||
|
pr_body: |
|
||||||
|
This Pull Request merges the release of IW4x ${{ steps.extract_version.outputs.version }} and was [automatically created by a workflow](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) triggered by @${{ github.actor }}.
|
||||||
|
pr_title: Merge release ${{ steps.extract_version.outputs.version }}
|
||||||
|
pr_label: release
|
||||||
|
|
||||||
|
|
||||||
|
notify:
|
||||||
|
name: Notify Discord
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: |
|
||||||
|
github.repository_owner == 'XLabsProject' && (
|
||||||
|
(
|
||||||
|
github.event.pull_request.merged
|
||||||
|
) || (
|
||||||
|
github.event.push.ref == 'refs/heads/master' ||
|
||||||
|
github.event.push.ref == 'refs/heads/develop'
|
||||||
|
)
|
||||||
|
)
|
||||||
|
steps:
|
||||||
|
- name: Post CI status notification to Discord
|
||||||
|
uses: sarisia/actions-status-discord@v1.7.1
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
webhook: ${{ secrets.DISCORD_CI_BOT_WEBHOOK }}
|
||||||
|
title: "Build"
|
13
README.md
13
README.md
@ -2,24 +2,13 @@
|
|||||||
![forks](https://img.shields.io/github/forks/IW4x/iw4x-client.svg)
|
![forks](https://img.shields.io/github/forks/IW4x/iw4x-client.svg)
|
||||||
![stars](https://img.shields.io/github/stars/IW4x/iw4x-client.svg)
|
![stars](https://img.shields.io/github/stars/IW4x/iw4x-client.svg)
|
||||||
![issues](https://img.shields.io/github/issues/IW4x/iw4x-client.svg)
|
![issues](https://img.shields.io/github/issues/IW4x/iw4x-client.svg)
|
||||||
|
[![build](https://github.com/XLabsProject/iw4x-client/workflows/Build/badge.svg)](https://github.com/XLabsProject/iw4x-client/actions)
|
||||||
[![build status](https://ci.appveyor.com/api/projects/status/rvljq0ooxen0oexm/branch/develop?svg=true)](https://ci.appveyor.com/project/iw4x/iw4x-client/branch/develop)
|
[![build status](https://ci.appveyor.com/api/projects/status/rvljq0ooxen0oexm/branch/develop?svg=true)](https://ci.appveyor.com/project/iw4x/iw4x-client/branch/develop)
|
||||||
[![discord](https://img.shields.io/endpoint?url=https://momo5502.com/iw4x/members-badge.php)](https://discord.gg/sKeVmR3)
|
[![discord](https://img.shields.io/endpoint?url=https://momo5502.com/iw4x/members-badge.php)](https://discord.gg/sKeVmR3)
|
||||||
[![patreon](https://img.shields.io/badge/patreon-support-blue.svg?logo=patreon)](https://www.patreon.com/xlabsproject)
|
[![patreon](https://img.shields.io/badge/patreon-support-blue.svg?logo=patreon)](https://www.patreon.com/xlabsproject)
|
||||||
|
|
||||||
# IW4x: Client
|
# IW4x: Client
|
||||||
|
|
||||||
## Commit message style
|
|
||||||
|
|
||||||
```
|
|
||||||
[Module] Imperative summary
|
|
||||||
|
|
||||||
- points or text
|
|
||||||
|
|
||||||
[ci skip]
|
|
||||||
```
|
|
||||||
|
|
||||||
`[ci skip]` is optional.
|
|
||||||
|
|
||||||
## How to compile
|
## How to compile
|
||||||
|
|
||||||
- Run `premake5 vs2019` or use the delivered `generate.bat`.
|
- Run `premake5 vs2019` or use the delivered `generate.bat`.
|
||||||
|
2
deps/pdcurses
vendored
2
deps/pdcurses
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 4bc97e287be5d8927405614c193fd0a039df027a
|
Subproject commit 2e15c90f122fef329b83a4c3c011f192d97ec516
|
@ -752,6 +752,7 @@ namespace Components
|
|||||||
int16 Maps::CM_TriggerModelBounds(int modelPointer, Game::Bounds* bounds) {
|
int16 Maps::CM_TriggerModelBounds(int modelPointer, Game::Bounds* bounds) {
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
Game::MapEnts* ents = *reinterpret_cast<Game::MapEnts**>(0x1AA651C); // Use me for debugging
|
Game::MapEnts* ents = *reinterpret_cast<Game::MapEnts**>(0x1AA651C); // Use me for debugging
|
||||||
|
(void)ents;
|
||||||
#endif
|
#endif
|
||||||
return Utils::Hook::Call<int16(int, Game::Bounds*)>(0x4416C0)(modelPointer, bounds);
|
return Utils::Hook::Call<int16(int, Game::Bounds*)>(0x4416C0)(modelPointer, bounds);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user