Skip to content

Commit fde7b09

Browse files
committed
Merge remote-tracking branch 'ddnet/master'
2 parents b2e31ae + 293af0e commit fde7b09

File tree

168 files changed

+4878
-2734
lines changed

Some content is hidden

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

168 files changed

+4878
-2734
lines changed

.github/workflows/build.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ jobs:
7171
- name: Prepare Linux (fancy)
7272
if: contains(matrix.os, 'ubuntu') && matrix.fancy
7373
run: |
74-
sudo apt-get install libmariadbclient-dev libwebsockets-dev mariadb-server-10.3 -y
74+
sudo apt-get install libmariadb-dev libwebsockets-dev mariadb-server -y
75+
sudo systemctl stop mysql
7576
sudo rm -rf /var/lib/mysql/
7677
sudo mysql_install_db --user=mysql --datadir=/var/lib/mysql/
7778
cd /usr; sudo mysqld_safe --datadir='/var/lib/mysql/' --no-watch
@@ -87,7 +88,8 @@ jobs:
8788
if: contains(matrix.os, 'macOS')
8889
run: |
8990
brew update || true
90-
brew install pkg-config sdl2 ffmpeg python3 ninja molten-vk vulkan-headers glslang spirv-tools
91+
# --overwrite for: Target /usr/local/bin/2to3 already exists.
92+
brew install --overwrite pkg-config sdl2 ffmpeg python3 ninja molten-vk vulkan-headers glslang spirv-tools
9193
brew upgrade freetype
9294
pip3 install dmgbuild
9395
echo /Library/Frameworks/Python.framework/Versions/3.11/bin >> $GITHUB_PATH
@@ -181,7 +183,6 @@ jobs:
181183
# - name: Test fancy
182184
# if: matrix.fancy
183185
# run: |
184-
# find /usr/lib/ -name '*libwebsockets*'
185186
# cd fancy
186187
# ${{ matrix.cmake-path }}cmake -E env ${{ matrix.gtest-env }} ${{ matrix.cmake-path }}cmake --build . --config RelWithDebInfo --target run_tests ${{ matrix.build-args }}
187188

.github/workflows/codeql-analysis.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
if: matrix.language == 'cpp'
3939
run: |
4040
sudo apt-get update -y
41-
sudo apt-get install pkg-config cmake ninja-build libfreetype6-dev libnotify-dev libsdl2-dev libsqlite3-dev libavcodec-dev libavformat-dev libavutil-dev libswresample-dev libswscale-dev libx264-dev libmariadbclient-dev libwebsockets-dev libvulkan-dev glslang-tools spirv-tools -y
41+
sudo apt-get install pkg-config cmake ninja-build libfreetype6-dev libnotify-dev libsdl2-dev libsqlite3-dev libavcodec-dev libavformat-dev libavutil-dev libswresample-dev libswscale-dev libx264-dev libmariadb-dev libwebsockets-dev libvulkan-dev glslang-tools spirv-tools -y
4242
4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ tags
132132
*.sln
133133
*.so
134134
*.sqlite
135+
*.sqlite-shm
136+
*.sqlite-wal
135137
*.suo
136138
*.swp
137139
*.tar.gz

.gitlab/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ build_cmake:
1010
- apt-get upgrade -y
1111
- apt-get install
1212
pkg-config
13-
clang
14-
cmake ninja-build
13+
clang rustc
14+
cargo cmake ninja-build
1515
libfreetype6-dev libnotify-dev libsdl2-dev libsqlite3-dev libvulkan-dev
1616
glslang-tools spirv-tools libavcodec-dev libavformat-dev libavutil-dev libswresample-dev libswscale-dev
1717
libx264-dev libpng-dev

CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ if(NOT MSVC AND NOT HAIKU)
332332
)
333333
endif()
334334
add_cxx_compiler_flag_if_supported(OUR_FLAGS_OWN -Wextra)
335+
add_cxx_compiler_flag_if_supported(OUR_FLAGS_OWN -Wno-psabi) # parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<CCommandProcessorFragment_Vulkan::SMemoryBlock<1>*, std::vector<CCommandProcessorFragment_Vulkan::SMemoryBlock<1>, std::allocator<CCommandProcessorFragment_Vulkan::SMemoryBlock<1> > > >’ changed in GCC 7.1
335336
add_cxx_compiler_flag_if_supported(OUR_FLAGS_OWN -Wno-unused-parameter)
336337
add_cxx_compiler_flag_if_supported(OUR_FLAGS_OWN -Wno-missing-field-initializers)
337338
add_cxx_compiler_flag_if_supported(OUR_FLAGS_OWN -Wformat=2) # Warn about format strings.
@@ -1950,6 +1951,7 @@ set_src(ENGINE_SHARED GLOB_RECURSE src/engine/shared
19501951
kernel.cpp
19511952
linereader.cpp
19521953
linereader.h
1954+
localization.h
19531955
map.cpp
19541956
map.h
19551957
masterserver.cpp

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,19 @@ You can install the required libraries on your system, `touch CMakeLists.txt` an
3939

4040
On older distributions like Ubuntu 18.04 don't install `google-mock`, but instead set `-DDOWNLOAD_GTEST=ON` when building to get a more recent gtest/gmock version.
4141

42+
On older distributions `rustc` version might be too old, to get an up-to-date Rust compiler you can use [rustup](https://rustup.rs/) with stable channel instead or try the `rustc-mozilla` package.
43+
4244
Or on CentOS, RedHat and AlmaLinux like this:
4345

4446
sudo yum install cargo cmake ffmpeg-devel freetype-devel gcc gcc-c++ git glew-devel glslang gmock-devel gtest-devel libcurl-devel libnotify-devel libogg-devel libpng-devel libx264-devel make openssl-devel opus-devel opusfile-devel python2 rust SDL2-devel spirv-tools sqlite-devel vulkan-devel wavpack-devel
4547

4648
Or on Fedora like this:
4749

48-
sudo dnf install cmake ffmpeg-devel freetype-devel gcc gcc-c++ git glew-devel glslang gmock-devel gtest-devel libcurl-devel libnotify-devel libogg-devel libpng-devel make openssl-devel opus-devel opusfile-devel python2 SDL2-devel spirv-tools sqlite-devel vulkan-devel wavpack-devel x264-devel
50+
sudo dnf install cargo cmake ffmpeg-devel freetype-devel gcc gcc-c++ git glew-devel glslang gmock-devel gtest-devel libcurl-devel libnotify-devel libogg-devel libpng-devel make openssl-devel opus-devel opusfile-devel python2 SDL2-devel spirv-tools sqlite-devel vulkan-devel wavpack-devel x264-devel
4951

5052
Or on Arch Linux like this:
5153

52-
sudo pacman -S --needed base-devel cargo cmake curl ffmpeg freetype2 git glew glslang gmock libnotify libpng opusfile python rust sdl2 spirv-tools sqlite vulkan-headers vulkan-icd-loader wavpack x264
54+
sudo pacman -S --needed base-devel cmake curl ffmpeg freetype2 git glew glslang gmock libnotify libpng opusfile python rust sdl2 spirv-tools sqlite vulkan-headers vulkan-icd-loader wavpack x264
5355

5456
Or on Gentoo like this:
5557

data/languages/arabic.txt

+38-14
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,9 @@ Address
4141
All
4242
== ﻞﻜﻟﺍ
4343

44-
Are you sure that you want to delete the demo?
45-
== ﻮﻳﺪﻴﻔﻟﺍ ﻑﺬﺤﻟ ﺪﻛﺎﺘﻣ ﺖﻧﺍ ﻞﻫ
46-
4744
Are you sure that you want to quit?
4845
== ﻪﺒﻌﻠﻟﺍ ﻕﻼﻏﻻ ﺪﻛﺎﺘﻣ ﺖﻧﺍ ﻞﻫ
4946

50-
Are you sure that you want to remove the player from your friends list?
51-
== ﺀﺎﻗﺪﺻﻻﺍ ﺔﻤﺋﺎﻗ ﻦﻣ ﺐﻋﻼﻟﺍ ﺍﺬﻫ ﻪﻟﺍﺯﻻ ﺪﻛﺎﺘﻣ ﺖﻧﺍ ﻞﻫ
52-
5347
Automatically record demos
5448
== ﻲﺋﺎﻘﻠﺗ ﻮﻳﺪﻴﻓ ﻞﻴﺠﺴﺗ
5549

@@ -459,9 +453,6 @@ Try again
459453
Type
460454
== ﺭﻮﻃ
461455

462-
Unable to delete the demo
463-
== ﻮﻳﺪﻴﻓﻟﺍ ﻑﺬﺤﺑ ﻞﺸﻓ
464-
465456
Unable to rename the demo
466457
== ﻮﻳﺪﻴﻓﻟﺍ ﺔﻴﻤﺴﺗ ﺓﺩﺎﻋﺎﺑ ﻞﺸﻓ
467458

@@ -993,9 +984,6 @@ transmits your player name to info.ddnet.org
993984
Server best:
994985
== :ﺮﻓﺮﻴﺳ ﻞﻀﻓﺍ
995986

996-
Destination file already exist
997-
== ﻞﻌﻔﻟﺎﺑ ﺩﻮﺟﻮﻣ ﺏﻮﻠﻄﻤﻟﺍ ﻒﻠﻤﻟﺍ
998-
999987
Render demo
1000988
== ﻮﻳﺪﻴﻓﻟﺍ ﻞﻴﻤﺤﺗ
1001989

@@ -1237,7 +1225,10 @@ Getting game info
12371225
Requesting to join the game
12381226
==
12391227

1240-
Are you sure that you want to disconnect and switch to a different server?
1228+
Cancel
1229+
==
1230+
1231+
File '%s' already exists, do you want to overwrite it?
12411232
==
12421233

12431234
Join Tutorial Server
@@ -1276,9 +1267,18 @@ Getting server list from master server
12761267
Refreshing...
12771268
==
12781269

1270+
Are you sure that you want to disconnect and switch to a different server?
1271+
==
1272+
12791273
Leak IP
12801274
==
12811275

1276+
Are you sure that you want to remove the player '%s' from your friends list?
1277+
==
1278+
1279+
Are you sure that you want to remove the clan '%s' from your friends list?
1280+
==
1281+
12821282
Play the current demo
12831283
==
12841284

@@ -1288,6 +1288,12 @@ Pause the current demo
12881288
Stop the current demo
12891289
==
12901290

1291+
Go back one tick
1292+
==
1293+
1294+
Go forward one tick
1295+
==
1296+
12911297
Slow down the demo
12921298
==
12931299

@@ -1303,18 +1309,30 @@ Mark the end of a cut
13031309
Export cut as a separate demo
13041310
==
13051311

1312+
Go back one marker
1313+
==
1314+
1315+
Go forward one marker
1316+
==
1317+
13061318
Toggle keyboard shortcuts
13071319
==
13081320

13091321
Loading demo files
13101322
==
13111323

1312-
Menu opened. Press Esc key again to close menu.
1324+
Are you sure that you want to delete the demo '%s'?
1325+
==
1326+
1327+
Unable to delete the demo '%s'
13131328
==
13141329

13151330
Loading ghost files
13161331
==
13171332

1333+
Menu opened. Press Esc key again to close menu.
1334+
==
1335+
13181336
Settings file
13191337
==
13201338

@@ -1392,6 +1410,12 @@ UI mouse sens.
13921410
Controller
13931411
==
13941412

1413+
Reset controls
1414+
==
1415+
1416+
Are you sure that you want to reset the controls to their defaults?
1417+
==
1418+
13951419
Dummy
13961420
==
13971421

data/languages/belarusian.txt

+52-28
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,9 @@ Address
4343
All
4444
== Усё
4545

46-
Are you sure that you want to delete the demo?
47-
== Вы ўпэўнены, што жадаеце выдаліць дэма?
48-
4946
Are you sure that you want to quit?
5047
== Вы сапраўды жадаеце выйсці?
5148

52-
Are you sure that you want to remove the player from your friends list?
53-
== Вы ўпэўнены, што жадаеце выдаліць гульца з сяброў?
54-
5549
Automatically record demos
5650
== Аўтаматычна запісваць дэма
5751

@@ -461,9 +455,6 @@ Try again
461455
Type
462456
== Тып
463457

464-
Unable to delete the demo
465-
== Немагчыма выдаліць дэма
466-
467458
Unable to rename the demo
468459
== Немагчыма пераназваць дэма
469460

@@ -706,21 +697,6 @@ Reconnect in %d sec
706697
Render demo
707698
==
708699

709-
Replace video
710-
==
711-
712-
File already exists, do you want to overwrite it?
713-
==
714-
715-
Are you sure that you want to disconnect?
716-
==
717-
718-
Disconnect Dummy
719-
==
720-
721-
Are you sure that you want to disconnect your dummy?
722-
==
723-
724700
Welcome to DDNet
725701
==
726702

@@ -745,13 +721,16 @@ Your nickname '%s' is already used (%d points). Do you still want to use it?
745721
Checking for existing player with your name
746722
==
747723

748-
Are you sure that you want to disconnect and switch to a different server?
724+
Country / Region
749725
==
750726

751-
Country / Region
727+
Cancel
728+
==
729+
730+
File '%s' already exists, do you want to overwrite it?
752731
==
753732

754-
Destination file already exist
733+
Replace video
755734
==
756735

757736
Speed
@@ -823,6 +802,9 @@ Exclude
823802
Refreshing...
824803
==
825804

805+
Are you sure that you want to disconnect and switch to a different server?
806+
==
807+
826808
Filter connecting players
827809
==
828810

@@ -841,12 +823,21 @@ Types
841823
Leak IP
842824
==
843825

826+
Are you sure that you want to remove the player '%s' from your friends list?
827+
==
828+
829+
Are you sure that you want to remove the clan '%s' from your friends list?
830+
==
831+
844832
Select a name
845833
==
846834

847835
Please use a different name
848836
==
849837

838+
File already exists, do you want to overwrite it?
839+
==
840+
850841
Remove chat
851842
==
852843

@@ -859,6 +850,12 @@ Pause the current demo
859850
Stop the current demo
860851
==
861852

853+
Go back one tick
854+
==
855+
856+
Go forward one tick
857+
==
858+
862859
Slow down the demo
863860
==
864861

@@ -874,6 +871,12 @@ Mark the end of a cut
874871
Export cut as a separate demo
875872
==
876873

874+
Go back one marker
875+
==
876+
877+
Go forward one marker
878+
==
879+
877880
Toggle keyboard shortcuts
878881
==
879882

@@ -907,10 +910,16 @@ Fetch Info
907910
Demos directory
908911
==
909912

913+
Are you sure that you want to delete the demo '%s'?
914+
==
915+
910916
Render
911917
==
912918

913-
Menu opened. Press Esc key again to close menu.
919+
Unable to delete the demo '%s'
920+
==
921+
922+
Are you sure that you want to disconnect?
914923
==
915924

916925
Connect Dummy
@@ -919,6 +928,12 @@ Connect Dummy
919928
Connecting dummy
920929
==
921930

931+
Disconnect Dummy
932+
==
933+
934+
Are you sure that you want to disconnect your dummy?
935+
==
936+
922937
Kill
923938
==
924939

@@ -943,6 +958,9 @@ Activate
943958
Save
944959
==
945960

961+
Menu opened. Press Esc key again to close menu.
962+
==
963+
946964
Smooth Dynamic Camera
947965
==
948966

@@ -1113,6 +1131,12 @@ UI mouse sens.
11131131
Controller
11141132
==
11151133

1134+
Reset controls
1135+
==
1136+
1137+
Are you sure that you want to reset the controls to their defaults?
1138+
==
1139+
11161140
Dummy
11171141
==
11181142

0 commit comments

Comments
 (0)