Skip to content

Commit

Permalink
Merge branch 'master' into next
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Juvonen <patrik@scope.studio>
  • Loading branch information
patrikjuvonen committed Apr 28, 2020
2 parents c4c01e2 + 3f39bb5 commit 80bf1c1
Show file tree
Hide file tree
Showing 3,001 changed files with 792,774 additions and 771,923 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 2 additions & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: true
AlignConsecutiveMacros: true
AlignEscapedNewlines: DontAlign
AlignOperands: true
AlignTrailingComments: true
Expand Down Expand Up @@ -69,7 +70,7 @@ IncludeCategories:
Priority: 3
IncludeIsMainRegex: '([-_](test|unittest))?$'
IndentCaseLabels: true
IndentPPDirectives: None
IndentPPDirectives: BeforeHash
IndentWidth: 4
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
Expand Down
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ root = true

[*]
insert_final_newline = true
trim_trailing_whitespace = true

[*.{h,hpp,c,cpp,cc}]
indent_style = space
Expand Down
81 changes: 81 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# This file contains a list of commits with
# mass changes for exclusion by `git blame`.
#
# Passing `--ignore-revs-file .git-blame-ignore-revs` as a flag will
# tell git to "ignore changes made by the revision when assigning
# blame, as if the change never happened".
#
# For example:
# git blame --ignore-revs-file .git-blame-ignore-revs ...
#
# For extra hot sauce, ignore white space changes too:
# git blame -w --ignore-revs-file .git-blame-ignore-revs ...
#
# You can make this a default for your repo using:
# git config blame.ignoreRevsFile .git-blame-ignore-revs
#
# Also, if you use the GitLens extension for Visual Studio Code, you
# can add "-w" as a value to "gitlens.advanced.blame.customArguments".
#
# Note that `git blame` does not use any file by default, and
# the filename `.git-blame-ignore-revs` is just a convention.

9f69b979c4ea825731a2c3102c6b707a58b7e356
# Author: ccw808 <ccw808@googlemail.com>
# Date: Wed Apr 28 22:29:05 2010 +0000
#
# Reverted r1551 "Set property 'svn:eol-style native' on all non binary files"

2c1bd0ba585d74486e6724d56a10c0477bf2b559
# Author: Qais Patankar <qaisjp@gmail.com>
# Date: Sun Jul 31 23:35:22 2016 +0100
#
# Remove shared_logic (#55)

da1709db93d060215067cad60533f621012cf2a2
# Author: sbx320 <sbx320@sbx320.net>
# Date: Fri Sep 16 00:14:55 2016 +0200
#
# Cleaned up some parts of client deathmatch
#
# This commit mainly replaces iterator for loops with C++11 range based for loops for improved code readability

c2caf8b8b95eb328a5fb24e29e8dcbfaf0362dfb
# Author: Jusonex <jusonex96@gmail.com>
# Date: Mon Oct 10 21:03:37 2016 +0200
#
# Revert "Cleaned up some parts of client deathmatch"
#
# This reverts commit da1709db93d060215067cad60533f621012cf2a2.

c39e2cbf9ef355e8720d98c7de7cda93fc25d735
# Author: ccw808 <ccw808@googlemail.com>
# Date: Mon Mar 12 17:11:00 2018 +0000
#
# Applied source formatting. See utils\win-apply-clang-format.bat

ed77b94e1ec7715b8a6fcb5430036be3625f9d5a
# Author: ccw808 <ccw808@googlemail.com>
# Date: Wed May 30 21:55:12 2018 +0100
#
# Applied source formatting

b4dc8b6495f652b56ac7d71fdf53099e50a8e74a
# Author: Marek Kulik <mk.botder@gmail.com>
# Date: Sun Sep 30 14:25:20 2018 +0200
#
# Apply automatic code-formatting

e11685cab4beb7958ab202261f9c9d9b4ce71e58
# Author: Marek Kulik <38703318+botder@users.noreply.github.com>
# Date: Sun Jan 13 21:04:27 2019 +0100
#
# Replace (void) with () (PR #771)

eefde6d95260aef53308baa7fb1e59cf24522cd9
# Author: Marek Kulik <me@botder.com>
# Date: Wed Apr 1 16:55:42 2020 +0200
#
# Enable every entry in .gitattributes
#
# - Mark .git-blame-ignore-revs as export-ignore
68 changes: 34 additions & 34 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
# Attributes
# * text=auto
# *.c text diff=cpp
# *.cc text diff=cpp
# *.cpp text diff=cpp
# *.cxx text diff=cpp
# *.c++ text diff=cpp
# *.h text diff=cpp
# *.hh text diff=cpp
# *.hpp text diff=cpp
# *.h++ text diff=cpp
# *.rc text
* text=auto
*.c text diff=cpp
*.cc text diff=cpp
*.cpp text diff=cpp
*.cxx text diff=cpp
*.c++ text diff=cpp
*.h text diff=cpp
*.hh text diff=cpp
*.hpp text diff=cpp
*.h++ text diff=cpp
*.rc text
*.vcproj text eol=crlf
*.sln text eol=crlf
*.bat text eol=crlf
*.sh text eol=lf
# *.lua text
# *.xml text
# *.yml text
# *.txt text
# *.lua text
# *.nsi text
# *.nsh text
# *.xsd text
# *.po text
# *.ico binary
# *.png binary
# *.bmp binary
# *.dll binary
# *.so binary
# *.dylib binary
# *.a binary
# *.lib binary
# *.exe binary
# *.out binary
# *.app binary
# *.dat binary
# *.ttf binary
*.lua text
*.xml text
*.yml text
*.txt text
*.lua text
*.nsi text
*.nsh text
*.xsd text
*.po text
*.ico binary
*.png binary
*.bmp binary
*.dll binary
*.so binary
*.dylib binary
*.a binary
*.lib binary
*.exe binary
*.out binary
*.app binary
*.dat binary
*.ttf binary

# Ignored files by `git archive`
/.git-blame-ignore-revs export-ignore
/.github export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.ignore export-ignore
/azure-pipelines.yml export-ignore
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
71 changes: 71 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Build

# Trigger the workflow on push or pull request
on: [push, pull_request]

jobs:
windows:
name: windows
runs-on: windows-2019
steps:
- uses: actions/checkout@v2

- uses: actions/cache@v1
id: cache-dxfiles
with:
path: utils/DXFiles
key: dxfiles-0001

- name: Download DirectX
if: steps.cache-dxfiles.outputs.cache-hit != 'true'
run: Invoke-WebRequest https://mirror.mtasa.com/bdata/DXFiles.zip -OutFile utils/DXFiles.zip
shell: powershell

- name: Extract DirectX
if: steps.cache-dxfiles.outputs.cache-hit != 'true'
run: Expand-Archive -Path utils/DXFiles.zip -DestinationPath utils/DXFiles
shell: powershell

- name: Install CEF
run: utils\premake5 install_cef

- name: Install data files
run: utils\premake5 install_data

- name: Run Build
run: win-build.bat
shell: cmd
env:
DXSDK_DIR: './utils/DXFiles/'
CI: 'true'

- name: Create build artifacts
run: utils\premake5 compose_files

- uses: actions/upload-artifact@master
with:
name: InstallFiles
path: InstallFiles/

macOS:
name: macOS
runs-on: macOS-latest
steps:
- name: Install MySQL
run: brew install mysql
continue-on-error: true
- name: Link MySQL
run: brew link --overwrite mysql
- uses: actions/checkout@v2
- name: Run Build
run: ./linux-build.sh

linux:
name: linux
runs-on: ubuntu-16.04
container:
image: docker://sbx320/mtasa-blue-azure:latest
steps:
- uses: actions/checkout@v2
- name: Run Build
run: ./linux-build.sh
60 changes: 30 additions & 30 deletions Client/ceflauncher/Main.cpp
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
/*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* (Shared logic for modifications)
* LICENSE: See LICENSE in the top level directory
* FILE: ceflauncher/Main.cpp
* PURPOSE: CEF launcher entry point
*
*****************************************************************************/
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <string>

/*
IMPORTANT
If this project changes, a new release build should be copied into
the Shared\data\launchers directory.
The .exe in Shared\data\launchers will be used by the installer and updater.
(set flag.new_cef_exe on the build server to generate new exe)
*/

int _declspec(dllimport) InitCEF();

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdShow, int nCmdShow)
{
return InitCEF();
}
/*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* (Shared logic for modifications)
* LICENSE: See LICENSE in the top level directory
* FILE: ceflauncher/Main.cpp
* PURPOSE: CEF launcher entry point
*
*****************************************************************************/
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <string>

/*
IMPORTANT
If this project changes, a new release build should be copied into
the Shared\data\launchers directory.
The .exe in Shared\data\launchers will be used by the installer and updater.
(set flag.new_cef_exe on the build server to generate new exe)
*/

int _declspec(dllimport) InitCEF();

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdShow, int nCmdShow)
{
return InitCEF();
}

0 comments on commit 80bf1c1

Please sign in to comment.