Files
DroidDeck/tools/dirt-ws2
MaxsTechReview c5577478ca chore: remove source comments and unused code, translate every missing string (#1965)
* chore(i18n): translate every missing string in all locales

Adds the 87 strings the bottom-screen Dashboard and in-game stats pages
introduced to all 32 locales, plus the 51 older settings strings Japanese
and the 50 Chinese locales were still missing. Every locale now has all
3456 translatable strings with the same placeholders as English.

Also translates 36 entries that were still English where the language
does not use the English word, and makes es-419 touch_app_id use the same
%1$s placeholder as English.

* chore(patches): drop comments from the lines downstream patches add

Removes comment lines and trailing comments from lines our patches add,
with hunk headers recounted. Lines that a later patch uses as context
and the upstream backport 0123 are left as they are.

The gamescope, FEX, proot and xodus series still apply to their pinned
sources, and the patched trees differ only in those comments.
test_hud_frames now finds the HUD writer by its first declaration.

* docs: credit Greenlight, Better xCloud, viture-v2, GameNative and DiRTTelemetryErrorFix

These were credited only in source headers and NOTICE files.

* chore: remove source comments and unused functions

Removes explanatory comments from first-party Kotlin, Java, C, C++,
Rust, TypeScript, Python, shell, Gradle, CMake and workflow files.
License and attribution headers stay, and vendored third-party trees,
generated files and license files are untouched. A shellcheck directive
is kept, and udevmon's fallthrough comments became fallthrough attributes.

Syntax trees and token streams match the previous sources apart from the
comments and Python docstrings. Module docstrings that argparse prints
are kept, and device-smoke.sh prints the same --help text from a heredoc.

Also removes 37 functions and 4 fields that nothing referenced.

* chore: remove comments from the Syncthing integration and the latest main sources

* docs: credit Syncthing and the syncthing-android fork

* chore(i18n): translate the Syncthing strings in all locales

The 107 strings the Syncthing integration added are now in all 32 locales.
sync_web_path_locked names the Syncthing tab by its label.

* docs: credit @xXJSONDeruloXx for the HUD metric readers

The CPU, GPU load, thermal and battery readers come from their
PerformanceHudView pull requests #777, #877, #991, #1406 and #1573.
The FusionHUD credit line is unchanged.

* docs: credit the HUD metric readers to @xXJSONDeruloXx's work
2026-11-01 16:27:27 -05:00
..

DiRT 3 / DiRT Showdown ws2_32 stand-in

DiRT 3 (dirt3_game.exe) and DiRT Showdown (showdown.exe, showdown_avx.exe) close their motion telemetry UDP socket at the end of a race, and when leaving Joyride, but keep calling sendto() on it. sendto() fails with WSAENOTSOCK and the game stops with "sendto failed with error 10038". The same happens on Windows.

ws2_32.dll here is a 32-bit stand-in: every export jumps to the same-ordinal export of Wine's own ws2_32.dll; only a sendto() that fails with 10038 reports 0 bytes sent instead. Same behaviour as DiRTTelemetryErrorFix by RoccoC (MIT), based on the original fix by Carsten Gottschling.

Wine loads ws2_32 as a KnownDLL, so a copy beside the game is ignored. droiddeck-game-env puts the stand-in in place of the prefix's syswow64/ws2_32.dll for these games while their telemetry output is on, adds WINEDLLOVERRIDES=ws2_32=n,b, and puts Wine's file back when the game exits. It skips the swap when the game's Proton already has the fix in its own ws2_32.dll (DroidDeck-Proton patch dirt-telemetry-sendto-closed-socket.patch).

build.sh OUT builds it with clang, lld and llvm-dlltool and checks its exports against ws2_32-exports.txt (taken from Wine 11's ws2_32.dll).