Skip to content

Commit

Permalink
Merge branch 'upstream_master'
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrc6 committed Dec 21, 2024
2 parents 3db8c63 + 2012937 commit a5b67cc
Show file tree
Hide file tree
Showing 108 changed files with 3,420 additions and 2,629 deletions.
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,6 @@ tags
# don't ignore this, it's used for the vscode workspace that ddnet provides
!ddnet-cmake-tools-kits.json

# bam ignores
/.bam
/config.lua
/objs

*.a
*.cmd
*.csv
Expand Down
40 changes: 29 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -689,8 +689,8 @@ endif()
if(CLIENT AND NOT(SDL2_FOUND))
message(SEND_ERROR "You must install SDL2 to compile the ${CMAKE_PROJECT_NAME} client")
endif()
if(TARGET_OS STREQUAL "android" AND CLIENT AND NOT(CRYPTO_FOUND))
message(SEND_ERROR "You must install OpenSSL to compile the ${CMAKE_PROJECT_NAME} client")
if(TARGET_OS STREQUAL "android" AND NOT(CRYPTO_FOUND))
message(SEND_ERROR "You must install OpenSSL to compile ${CMAKE_PROJECT_NAME}")
endif()
if(NOT(GTEST_FOUND))
if(DOWNLOAD_GTEST)
Expand Down Expand Up @@ -741,7 +741,7 @@ elseif(TARGET_OS STREQUAL "android")
src/android/android_main.cpp
)
set(PLATFORM_LIBS ${TW_ANDROID_LIBS})
set(PLATFORM_CLIENT_LIBS ${PLATFORM_LIBS})
set(PLATFORM_CLIENT_LIBS ${TW_ANDROID_LIBS_CLIENT})
set(PLATFORM_CLIENT_INCLUDE_DIRS)
else()
find_package(Notify)
Expand Down Expand Up @@ -2804,14 +2804,25 @@ if(SERVER)
)

# Target
add_executable(game-server
${DEPS}
${SERVER_SRC}
${SERVER_ICON}
$<TARGET_OBJECTS:engine-shared>
$<TARGET_OBJECTS:game-shared>
$<TARGET_OBJECTS:rust-bridge-shared>
)
if(TARGET_OS STREQUAL "android")
add_library(game-server SHARED
${DEPS}
${SERVER_SRC}
${SERVER_ICON}
$<TARGET_OBJECTS:engine-shared>
$<TARGET_OBJECTS:game-shared>
$<TARGET_OBJECTS:rust-bridge-shared>
)
else()
add_executable(game-server
${DEPS}
${SERVER_SRC}
${SERVER_ICON}
$<TARGET_OBJECTS:engine-shared>
$<TARGET_OBJECTS:game-shared>
$<TARGET_OBJECTS:rust-bridge-shared>
)
endif()
set_property(TARGET game-server
PROPERTY OUTPUT_NAME ${SERVER_EXECUTABLE}
)
Expand Down Expand Up @@ -3622,6 +3633,13 @@ foreach(target ${TARGETS_OWN})
if(CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
target_compile_definitions(${target} PRIVATE CONF_WEBASM)
endif()
if(TARGET_OS STREQUAL "android")
if(ANDROID_PACKAGE_NAME)
target_compile_definitions(${target} PRIVATE ANDROID_PACKAGE_NAME=${ANDROID_PACKAGE_NAME})
else()
message(FATAL_ERROR "ANDROID_PACKAGE_NAME must define the package name when compiling for Android (using underscores instead of dots, e.g. org_example_app)")
endif()
endif()
endforeach()

foreach(target ${TARGETS_DEP})
Expand Down
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Such fix commits should ideally be squashed into one big commit using ``git comm

A lot of the style offenses can be fixed automatically by running the fix script `./scripts/fix_style.py`

We use clang-format 10. If your package manager no longer provides this version, you can download it from https://pypi.org/project/clang-format/10.0.1.1/.

### Upper camel case for variables, methods, class names

With the exception of base/system.{h,cpp}
Expand Down
14 changes: 13 additions & 1 deletion cmake/FindAndroid.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,16 @@ FIND_LIBRARY(ANDROID_LIBRARY_OPENSLES
OpenSLES
)

set(TW_ANDROID_LIBS ${ANDROID_LIBRARY_EGL} ${ANDROID_LIBRARY_GLES1} ${ANDROID_LIBRARY_GLES2} ${ANDROID_LIBRARY_GLES3} ${ANDROID_LIBRARY_LOG} ${ANDROID_LIBRARY_ANDROID} ${ANDROID_LIBRARY_OPENSLES})
set(TW_ANDROID_LIBS
${ANDROID_LIBRARY_LOG}
${ANDROID_LIBRARY_ANDROID}
)

set(TW_ANDROID_LIBS_CLIENT
${TW_ANDROID_LIBS}
${ANDROID_LIBRARY_EGL}
${ANDROID_LIBRARY_GLES1}
${ANDROID_LIBRARY_GLES2}
${ANDROID_LIBRARY_GLES3}
${ANDROID_LIBRARY_OPENSLES}
)
67 changes: 34 additions & 33 deletions data/languages/russian.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
# ByFox 2023-11-14 11:24:00
# Sedonya 2024-06-20 03:18:10
# WTF 2024-11-03 15:57:20
# Риксед 2024-12-11 16:34:00
##### /authors #####

##### translated strings #####
Expand Down Expand Up @@ -1951,105 +1952,105 @@ Eyes
== Глаза

Online friends (%d)
==
== Друзья в сети (%d)

Add friends by entering their name below or by clicking their name in the player list.
==
== Чтобы добавить друзей, впишите их имена ниже или нажимите по их имени в списке игроков.

Add clanmates by entering their clan below and leaving the name blank.
==
== Чтобы добавить соклановцев, впишите их клан и оставьте имя пустым.

Offline friends and clanmates will appear here.
==
== Друзья не в сети и соклановцы появятся здесь.

Edit touch controls
==
== Изменить сенсорное управление

Close
==
== Закрыть

Save changes
==
== Сохранить изменение

Error saving touch controls
==
== Ошибка при сохранении сенсорного управления

Could not save touch controls to file. See local console for details.
==
== Не удалось сохранить сенсорное управление в файл. Просмотрите локальную консоль для подробностей.

Unsaved changes
==
== Несохранённые изменения

Discard changes
==
== Отменить изменения

Are you sure that you want to discard the current changes to the touch controls?
==
== Вы уверены что хотите отменить изменения сенсорного управления?

Are you sure that you want to reset the touch controls to default?
==
== Вы уверены, что хотите сбросить сенсорное управление

Import from clipboard
==
== Импортировать из буфера обмена

Are you sure that you want to import the touch controls from the clipboard? This will overwrite your current touch controls.
==
== Вы уверены, что хотите импортировать сенсорное управление из буфера обмена? Это перезапишет ваше действующее сенсорное управление.

Export to clipboard
==
== Экспортировать в буфер обмена

Direct touch input while ingame
==
== Сенсорный ввод напрямую пока вы находитесь в игре

[Direct touch input]
Disabled
==
== Отменено

[Direct touch input]
Active action
==
== Активное действие

[Direct touch input]
Aim
==
== Прицеливаться

[Direct touch input]
Fire
==
== Стрелять

[Direct touch input]
Hook
==
== Крюк

Direct touch input while spectating
==
== Сенсорный ввод напрямую пока вы в режиме наблюдателя

Error loading touch controls
==
== Ошибка при загрузке сенсорного управления

Could not load touch controls from file. See local console for details.
==
== Не удалось загрузить сенсорное управление из файла. Просмотрите локальную консоль для подробностей.

Could not load default touch controls from file. See local console for details.
==
== Не удалось загрузить стандартное сенсорное управление из файла. Просмотрите локальную консоль для подробностей.

Could not load touch controls from clipboard. See local console for details.
==
== Не удалось загрузить сенсорное управление из буфера обмена. Просмотрите локальную консоль для подробностей.

Width of your own hook collision line
==
== Ширина вашей линии коллизий крюка

Width of others' hook collision line
==
== Ширина чужих линий коллизий крюка

Preview 'Hook collisions' being pressed
==
== Предпросмотр нажатия 'Коллизий крюка'

Aim
==
== Прицеливаться

Active: Fire
==
== Активно: Стрелять

Active: Hook
==
== Активно: Крюк
68 changes: 34 additions & 34 deletions data/languages/spanish.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1951,108 +1951,108 @@ Eyes
== Ojos

Some fonts could not be loaded. Check the local console for details.
==
== No se pudieron cargar algunas fuentes. Revisa la consola local para más detalles.

Online friends (%d)
==
== Amigos en línea (%d)

Add friends by entering their name below or by clicking their name in the player list.
==
== Agrega amigos ingresando su nombre aquí abajo o haciendo clic en su nombre en la lista de jugadores.

Add clanmates by entering their clan below and leaving the name blank.
==
== Agrega compañeros de clan ingresando el nombre del clan aquí abajo y dejando el campo del nombre en blanco.

Offline friends and clanmates will appear here.
==
== Tus amigos y compañeros de clan que estén desconectados aparecerán aquí.

Edit touch controls
==
== Editar controles táctiles

Close
==
== Cerrar

Save changes
==
== Guardar cambios

Error saving touch controls
==
== Error al guardar los controles táctiles

Could not save touch controls to file. See local console for details.
==
== No se pudieron guardar los controles táctiles. Revisa la consola local para más detalles

Unsaved changes
==
== Cambios sin guardar

Discard changes
==
== Descartar cambios

Are you sure that you want to discard the current changes to the touch controls?
==
== ¿Estás seguro de que quieres descartar los cambios actuales a los controles táctiles?

Are you sure that you want to reset the touch controls to default?
==
== ¿Estás seguro de que quieres restablecer los controles táctiles a su configuración predeterminada?

Import from clipboard
==
== Importar desde el portapapeles

Are you sure that you want to import the touch controls from the clipboard? This will overwrite your current touch controls.
==
== ¿Estás seguro de que quieres importar los controles táctiles desde el portapapeles? Esto sobreescribirá tus controles táctiles actuales.

Export to clipboard
==
== Exportar al portapapeles

Direct touch input while ingame
==
== Entrada táctil directa dentro del juego

[Direct touch input]
Disabled
==
== Desactivado

[Direct touch input]
Active action
==
== Acción activa

[Direct touch input]
Aim
==
== Apuntar

[Direct touch input]
Fire
==
== Disparar

[Direct touch input]
Hook
==
== Gancho

Direct touch input while spectating
==
== Entrada táctil directa en espectador

Error loading touch controls
==
== Error al cargar los controles táctiles

Could not load touch controls from file. See local console for details.
==
== No se pudieron cargar los controles táctiles desde el archivo. Revisa la consola local para más detalles.

Could not load default touch controls from file. See local console for details.
==
== No se pudieron cargar los controles táctiles predeterminados desde el archivo. Revisa la consola local para más detalles.

Could not load touch controls from clipboard. See local console for details.
==
== No se pudieron cargar los controles táctiles desde el portapapeles. Revisa la consola local para más detalles.

Width of your own hook collision line
==
== Ancho de tu propia línea de colisión del gancho

Width of others' hook collision line
==
== Ancho de la línea de colisión del gancho de los demás

Preview 'Hook collisions' being pressed
==
== Vista previa al presionar 'Colisiones de gancho'

Aim
==
== Apuntar

Active: Fire
==
== Activo: Disparar

Active: Hook
==
== Activo: Gancho
Binary file modified data/strong_weak.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/themes/winter_night.map
Binary file not shown.
Loading

0 comments on commit a5b67cc

Please sign in to comment.