Skip to content

Commit db08613

Browse files
committed
Merge branch 'master' into l10n/master
2 parents f7a8e6a + 6b82365 commit db08613

File tree

2,439 files changed

+252734
-163707
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,439 files changed

+252734
-163707
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
name: windows-${{ matrix.platform }}
1212
runs-on: windows-2022
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

16-
- uses: actions/cache@v3
16+
- uses: actions/cache@v4
1717
id: cache-dxfiles
1818
with:
1919
path: utils/DXFiles
@@ -45,16 +45,16 @@ jobs:
4545
- name: Create build artifacts
4646
run: utils\premake5 compose_files
4747

48-
- uses: actions/upload-artifact@master
48+
- uses: actions/upload-artifact@v4
4949
with:
50-
name: InstallFiles
50+
name: InstallFiles-${{ matrix.platform }}
5151
path: InstallFiles/
5252

5353
macOS:
5454
name: macOS
55-
runs-on: macOS-latest
55+
runs-on: macOS-13
5656
steps:
57-
- uses: actions/checkout@v3
57+
- uses: actions/checkout@v4
5858

5959
- name: Install MySQL
6060
run: brew install mysql
@@ -80,7 +80,7 @@ jobs:
8080
container:
8181
image: docker://ghcr.io/multitheftauto/mtasa-blue-build:${{ matrix.image-tag }}
8282
steps:
83-
- uses: actions/checkout@v3
83+
- uses: actions/checkout@v4
8484

8585
- name: Run Build
8686
run: ./linux-build.sh --arch=${{ matrix.architecture }}

.github/workflows/dockerimage.yaml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ on:
1212
- 'Dockerfile.i386'
1313
- 'Dockerfile.armhf'
1414
- 'Dockerfile.arm64'
15-
- 'Dockerfile.osx-x64'
16-
- 'Dockerfile.osx-arm64'
1715

1816
jobs:
1917
build:
@@ -28,20 +26,16 @@ jobs:
2826
dockerfile: Dockerfile.armhf
2927
- tag: arm64
3028
dockerfile: Dockerfile.arm64
31-
- tag: osx-x64
32-
dockerfile: Dockerfile.osx-x64
33-
- tag: osx-arm64
34-
dockerfile: Dockerfile.osx-arm64
3529
runs-on: ubuntu-latest
3630
steps:
37-
- uses: actions/checkout@v3
38-
- uses: docker/setup-buildx-action@v2
39-
- uses: docker/login-action@v2
31+
- uses: actions/checkout@v4
32+
- uses: docker/setup-buildx-action@v3
33+
- uses: docker/login-action@v3
4034
with:
4135
registry: ghcr.io
4236
username: ${{ github.repository_owner }}
4337
password: ${{ secrets.CI_PAT }}
44-
- uses: docker/build-push-action@v3
38+
- uses: docker/build-push-action@v5
4539
with:
4640
push: true
4741
file: ./${{ matrix.dockerfile }}

.github/workflows/rebuild-pots.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
test:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@v4
1010
with:
1111
ref: ${{ github.head_ref }}
1212
- uses: conda-incubator/setup-miniconda@v2
@@ -26,7 +26,7 @@ jobs:
2626
runs-on: ubuntu-latest
2727
needs: test
2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3030
with:
3131
ref: ${{ github.head_ref }}
3232
token: ${{ secrets.POT_CI_PAT }}

.github/workflows/sync-master-to-maetro.yaml

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
sync-master-to-maetro:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
with:
1414
fetch-depth: 0
1515
token: ${{ secrets.SYNC_CI_PAT }}
@@ -18,23 +18,34 @@ jobs:
1818
name: Sync commits
1919
run: |
2020
# GitHub Actions bot user
21-
git config --global user.name "Mætro Bot"
21+
git config --global user.name "Maetro Bot"
2222
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
2323
2424
git checkout release/maetro
25-
26-
if ! git merge master --ff --no-edit
27-
then
28-
# Discard locale conflicts
29-
git checkout --ours -- Shared/installer/locale "Shared/data/MTA San Andreas/MTA/locale"
30-
git add --verbose Shared/installer/locale "Shared/data/MTA San Andreas/MTA/locale"
31-
32-
# Discard install_cef.lua conflicts
33-
git checkout --ours -- utils/buildactions/install_cef.lua
34-
git add --verbose utils/buildactions/install_cef.lua
35-
36-
# We should be done with the merge now
37-
git commit --no-edit
38-
fi
25+
git merge master --no-ff --no-edit --no-commit || true
26+
27+
# Discard locale conflicts
28+
git checkout --ours -- Shared/installer/locale "Shared/data/MTA San Andreas/MTA/locale"
29+
git add --verbose Shared/installer/locale "Shared/data/MTA San Andreas/MTA/locale"
30+
31+
# Discard install_cef.lua conflicts
32+
git checkout --ours -- utils/buildactions/install_cef.lua
33+
git add --verbose utils/buildactions/install_cef.lua
34+
35+
# Discard d3dcompiler_47.dll conflicts (Due to old CEF version on maetro)
36+
git checkout --ours -- "Shared/data/MTA San Andreas/MTA/d3dcompiler_47.dll"
37+
git add --verbose "Shared/data/MTA San Andreas/MTA/d3dcompiler_47.dll"
38+
39+
# Discard cefweb conflicts
40+
git checkout --ours -- Client/cefweb/CWebView.cpp
41+
git add --verbose Client/cefweb/CWebView.cpp
42+
43+
git checkout --ours -- "Client/loader/MainFunctions.cpp"
44+
git add --verbose "Client/loader/MainFunctions.cpp"
45+
46+
# We should be done with the merge now
47+
printf "Synchronize changes from 1.6 master branch [ci skip]\n\n" > commit.txt
48+
git log --expand-tabs=4 --pretty=format:'%h %s' release/maetro..master >> commit.txt
49+
git commit --no-edit --allow-empty -F commit.txt
3950
4051
git push origin release/maetro

CONTRIBUTING.md

Lines changed: 1 addition & 192 deletions
Original file line numberDiff line numberDiff line change
@@ -1,192 +1 @@
1-
# Contributors Guide
2-
3-
So you've decided to become a contributor to our project. Excellent!
4-
5-
We are always looking for new developers, so if you're new,
6-
please check out our [Getting Started guide](https://wiki.multitheftauto.com/wiki/Coding_info).
7-
8-
But before we can start accepting your code, there are a couple of
9-
things you should know about how we work.
10-
11-
This document mostly contains guidelines and rules as to how your
12-
code should be structured and how it can be committed without
13-
upsetting any fellow contributors.
14-
15-
## Where to code
16-
17-
As a new potential contributor, you will need to fork our repository and make
18-
commits to your own "branch". Then you can send us a pull request.
19-
20-
Our _`master`_ branch is the main development branch containing the
21-
latest, bleeding-edge code.
22-
23-
Our _other_ branches contain groundbreaking research, radical ideas and other
24-
work-in-progress changes that are meant to be merged into `master` at
25-
a later point in time.
26-
27-
If you're a collaborator, it's your choice whether to push branches to this
28-
repository or to your own fork.
29-
30-
**Branches are "topical" and should not be "personal" to each
31-
user.** This means that a branch should be created for a new feature,
32-
not for a user specific playground.
33-
34-
## What to code
35-
36-
Generally, please try submit pull requests that resolve existing
37-
[issues](https://github.com/multitheftauto/mtasa-blue/issues).
38-
39-
If you're looking for something to work on, take a look at the ["good first issue"]
40-
label, or our [milestones].
41-
42-
["good first issue"]: https://github.com/multitheftauto/mtasa-blue/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22good+first+issue%22
43-
[milestones]: https://github.com/multitheftauto/mtasa-blue/milestones?direction=asc&sort=due_date
44-
45-
Of course, if you're interested in something else, feel free to experiment
46-
and submit it. But discussing the feature beforehand, in an issue, will
47-
make your pull request more likely to be merged in a timely fashion.
48-
49-
## Committing code
50-
51-
**Make sure your code contributions follow the [Style Guide]**.
52-
53-
[Style Guide]: https://github.com/multitheftauto/mtasa-blue/wiki/Style-Guide
54-
55-
**Commits should be tested when added to master.** Commits
56-
that 'need to be fixed later' which directly affect the state of
57-
the mod will be reverted other than in exceptional circumstances.
58-
59-
**Commit messages should**
60-
61-
- be consistent
62-
- always give a clear indication of what has been changed without having to look at the code
63-
- include issue numbers, using [GitHub keywords](https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword) where necessary
64-
- [follow the seven rules identified here](http://chris.beams.io/posts/git-commit/)
65-
66-
The most important of the [seven rules](http://chris.beams.io/posts/git-commit/) has been copied below, but please read the article:
67-
68-
1. Separate subject from body with a blank line
69-
2. Limit the subject line to around 60-80 characters (the [seven rules] say 50, but we think ~70 is okay)
70-
3. Use the imperative mood in the subject line
71-
4. Use the body to explain what and why vs. how
72-
73-
**Follow up (addendum) commits should refer to the previous commit.** Do this by
74-
including the previous commit-identifier SHA and, if there's space, a summarised commit message in
75-
the new commit message. Doing this will help identify related commits
76-
if they are viewed at a later date.
77-
78-
**Try to keep pull requests small — they should be about one thing.** When you do multiple things
79-
in one pull request, it's hard to review. If you're fixing stuff as you go, you might want
80-
to make atomic commits and then cherry-pick those commits into separate branches,
81-
leaving the pull request clean.
82-
83-
**Read the ["Code Review"] guide** for more guidelines about the code review process.
84-
85-
**Examples**. Here are some examples of commit messages with a short and descriptive title in the imperative mood.
86-
87-
1. Here we also have a description that explains the content of the commit.
88-
```
89-
Fix vehicle model memory leaks in engineReplaceModel
90-
91-
Fixed 3 memory leaks:
92-
- clump model leak
93-
- vehicle visual data (dummies) leak
94-
- engineReplaceModel added extra references to TXD, and this was not getting unloaded at times
95-
```
96-
97-
2. Here we have a longer description that explains how to use the feature. The body is wrapped at 72 characters.
98-
```
99-
Add "beta" CVAR "_beta_qc_rightclick_command"
100-
101-
This variable lets you execute a command of your choice when you right
102-
click the "quick connect" button.
103-
104-
By default this CVAR is set to "reconnect", but you can set it to
105-
anything - "connect orange.mtasa.com" or "nick timw0w".
106-
107-
In the console, type "_beta_qc_rightclick_command" and press enter. This
108-
will tell you the current value of the CVAR.
109-
110-
You can do "_beta_qc_rightclick_command=nick timw0w" to change the
111-
value of the CVAR.
112-
```
113-
114-
3. Here we say `Fix #1115` so that GitHub automatically closes issue #1115. There's no description.
115-
```
116-
Fix #1115: add async encode/decodeString
117-
```
118-
119-
4. There was no specific issue being fixed here, but GitHub's squash-merge feature automatically appended `(#1177)`,
120-
telling us which pull request created this commit. There's no description.
121-
```
122-
Add "remember this option" checkbox to NVidia Optimus dialog (#1177)
123-
```
124-
125-
5. Here we refer to a previous commit.
126-
```
127-
Addendum to a80f8d6: fix Windows build error
128-
```
129-
130-
## Reviewing code
131-
132-
Contributors should try to review other contributor's commits and provide
133-
feedback as much as possible.
134-
135-
Please read our ["Code Review"] article for information on how to review code effectively.
136-
137-
["Code Review"]: https://github.com/multitheftauto/mtasa-blue/wiki/Code-Review
138-
139-
<!--
140-
141-
TODO(qaisjp): the below content should be part of a code of conduct instead
142-
143-
Ratings and comments are open for the public to review code and provide
144-
feedback. Please be mature and civilised when posting comments.
145-
146-
Make sure you make appropriate use of the GitHub Reactions feature to
147-
rate commits or express agreement/disagreement to a comment. This avoids
148-
spammy comments such as "+1", "-1", "Nice one!", etc.
149-
150-
Since you can only react to comments, not commits, feel free to create
151-
the initial "+1" comment in response to a commit. However, future
152-
similar reactions to a commit should be to the first response comment.
153-
154-
-->
155-
156-
## Gaining and losing merge rights
157-
158-
Merge rights allow you to merge your own approved pull requests and
159-
review other people's pull requests.
160-
161-
We grant merge rights after you have proven yourself to be competent,
162-
which is generally after 3-5 pull requests. This is not fixed and depends
163-
on the extent of your contributions, community status and other factors.
164-
165-
The subject matter of your pull requests do not matter — we are more interested in,
166-
once granted merge rights, whether you are capable of maintaining
167-
a high standard of code and remaining cohesive with other project collaborators.
168-
169-
After gaining merge rights, if your contributions are of a consistently low standard,
170-
or you fail to stick to the rules, your permissions will be revoked.
171-
172-
## Merging pull requests
173-
174-
Before merging, enforced by GitHub's branch protection, pull requests **require**:
175-
- Linux and Windows status checks to pass
176-
- 1 pull request review
177-
178-
If the pull request is large, try and only merge if there at least 2 pull request reviews.
179-
This isn't enforced via branch protection, but please try and stick to this convention
180-
(... unless nobody else is reviewing your PR).
181-
182-
Branch protection is **not enforced** for repository administrators,
183-
and those people are therefore not required to send pull requests. Individual repository admins may,
184-
for the greater good, pledge to submit pull requests despite this lack of enforcement.
185-
186-
For informational purposes, the current repository administrators are those marked as _The MTA Team_ on
187-
[this list](https://forum.mtasa.com/staff/).
188-
189-
**Merge button**
190-
191-
Generally use the "Squash and merge" button. If multiple commits are needed because you think
192-
having the separate commits are useful, use "Rebase and merge".
1+
This information is now available at [mtasa-docs (mtasa-blue CONTRIBUTING.md)](https://github.com/multitheftauto/mtasa-docs/blob/main/mtasa-blue/CONTRIBUTING.md).

Client/ceflauncher/Main.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
/*****************************************************************************
22
*
3-
* PROJECT: Multi Theft Auto v1.0
4-
* (Shared logic for modifications)
3+
* PROJECT: Multi Theft Auto
54
* LICENSE: See LICENSE in the top level directory
65
* FILE: ceflauncher/Main.cpp
76
* PURPOSE: CEF launcher entry point
87
*
8+
* Multi Theft Auto is available from https://multitheftauto.com/
9+
*
910
*****************************************************************************/
10-
#define WIN32_LEAN_AND_MEAN
11-
#include <Windows.h>
12-
#include <string>
1311

1412
/*
1513
IMPORTANT
@@ -24,7 +22,10 @@
2422

2523
int _declspec(dllimport) InitCEF();
2624

27-
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdShow, int nCmdShow)
25+
using HINSTANCE = struct HINSTANCE__*;
26+
using LPSTR = char*;
27+
28+
int __stdcall WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdShow, int nCmdShow)
2829
{
2930
return InitCEF();
3031
}

Client/ceflauncher/premake5.lua

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,15 @@ project "CEFLauncher"
33
kind "WindowedApp"
44
targetname "CEFLauncher"
55
targetdir(buildpath("mta/cef"))
6-
76
includedirs { "../sdk" }
8-
97
links { "CEFLauncher DLL"}
10-
entrypoint "WinMainCRTStartup"
118

129
vpaths {
1310
["Headers/*"] = "**.h",
1411
["Sources/*"] = "**.cpp",
1512
["*"] = "premake5.lua"
1613
}
1714

18-
1915
files {
2016
"premake5.lua",
2117
"*.h",

0 commit comments

Comments
 (0)