mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 12:35:42 +00:00
Compare commits
29
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e5707e293 | ||
|
|
ebd6b96929 | ||
|
|
6fe7b4ec11 | ||
|
|
d13458937d | ||
|
|
fde3089900 | ||
|
|
8e514ada62 | ||
|
|
aba9811357 | ||
|
|
5fac78797f | ||
|
|
d116021ff3 | ||
|
|
25cbcf0c1f | ||
|
|
f0557302ac | ||
|
|
a8c1a9ff4d | ||
|
|
37a816c212 | ||
|
|
1ab090405e | ||
|
|
dc98b6b96a | ||
|
|
6188c9ac0d | ||
|
|
758e7983fa | ||
|
|
f65e7a3d43 | ||
|
|
3d0c38c1d3 | ||
|
|
81e238b92e | ||
|
|
a20528c62b | ||
|
|
9b5d7870a3 | ||
|
|
b6391ed8c0 | ||
|
|
c7ff93ec19 | ||
|
|
1cada9ad50 | ||
|
|
9375ed0948 | ||
|
|
946e9c41e0 | ||
|
|
259d5d184b | ||
|
|
9a93f59fbf |
No files matched your search
@@ -1,39 +0,0 @@
|
||||
name: Community controls pack
|
||||
description: Submit on-screen controls for the community catalog.
|
||||
title: "[Controls]: "
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: Export a ZIP from Controller settings → Community controls. Attach the ZIP and a screenshot below. Submissions are reviewed before inclusion in the catalog.
|
||||
- type: input
|
||||
id: name
|
||||
attributes:
|
||||
label: Pack name and author
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: game
|
||||
attributes:
|
||||
label: Game (optional)
|
||||
description: Include the store and game ID if these controls target a specific game.
|
||||
- type: textarea
|
||||
id: files
|
||||
attributes:
|
||||
label: Controls ZIP and screenshot
|
||||
description: Drag the exported .ddcontrols.zip and a preview screenshot here. Describe the screen orientation and bindings.
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: license
|
||||
attributes:
|
||||
label: License and artwork credits
|
||||
description: Specify a license that permits redistribution, and credit any third-party artwork with its source and license.
|
||||
validations:
|
||||
required: true
|
||||
- type: checkboxes
|
||||
id: permission
|
||||
attributes:
|
||||
label: Distribution permission
|
||||
options:
|
||||
- label: I have permission to share this pack and all included artwork under the stated license.
|
||||
required: true
|
||||
@@ -25,7 +25,7 @@ jobs:
|
||||
validate:
|
||||
name: Validate source and build result
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 5
|
||||
timeout-minutes: 70
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
|
||||
@@ -152,6 +152,9 @@ jobs:
|
||||
runs-on: ${{ fromJSON(needs.components-runner.outputs.labels) }}
|
||||
timeout-minutes: 40
|
||||
steps:
|
||||
- name: Reclaim files a cancelled container build left owned by root
|
||||
if: runner.environment == 'self-hosted'
|
||||
run: sudo -n chown -R "$(id -u):$(id -g)" "$GITHUB_WORKSPACE" || echo "::warning::could not reclaim $GITHUB_WORKSPACE"
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
|
||||
@@ -350,6 +353,9 @@ jobs:
|
||||
outputs:
|
||||
variants: ${{ steps.variants.outputs.list }}
|
||||
steps:
|
||||
- name: Reclaim files a cancelled container build left owned by root
|
||||
if: runner.environment == 'self-hosted'
|
||||
run: sudo -n chown -R "$(id -u):$(id -g)" "$GITHUB_WORKSPACE" || echo "::warning::could not reclaim $GITHUB_WORKSPACE"
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
|
||||
|
||||
@@ -55,7 +55,7 @@ jobs:
|
||||
jq -r --arg n "$2" '.assets // [] | .[] | select(.name == $n) | .digest // empty'
|
||||
}
|
||||
commit=$(gh api "repos/$GITHUB_REPOSITORY/actions/runs/$BUILD_RUN" --jq .head_sha 2>/dev/null || echo "$GITHUB_SHA")
|
||||
for name in proot directaudio tracking xbox comet butler powervr ubisoft; do
|
||||
for name in proot directaudio tracking xbox comet butler powervr ubisoft rockstar dirt; do
|
||||
file="packs/$name.tar.zst"
|
||||
[ -f "$file" ] || { echo "::error::$name.tar.zst is missing from Build APK run $BUILD_RUN"; exit 1; }
|
||||
sha=$(sha256sum "$file" | cut -d' ' -f1)
|
||||
|
||||
+1
-1
@@ -36,4 +36,4 @@ __pycache__/
|
||||
app/src/main/assets/directaudio/
|
||||
app/src/main/assets/hybris/
|
||||
/tools/vr/out/
|
||||
app/src/main/resources/rockstar/helpers/
|
||||
app/src/main/assets/linuxfs/usr/local/lib/droiddeck-rockstar/
|
||||
@@ -74,6 +74,7 @@ DroidDeck is [GPL-3.0](LICENSE). Steam and Proton belong to Valve Corporation. V
|
||||
- x86 AppImages, and arm64 ones whose runtime can't unpack on Android, are unpacked with [uruntime](https://github.com/VHSgunzo/uruntime) by VHSgunzo (MIT), shipped unmodified with its licence.
|
||||
- x86 programs linking OpenSSL 3 use the copy in the [Steam Linux Runtime 4.0](https://gitlab.steamos.cloud/steamrt/steamrt). x86 Linux games get the `/etc/asound.conf` that [pressure-vessel](https://gitlab.steamos.cloud/steamrt/steam-runtime-tools) writes.
|
||||
- `WriteProcessMemory` hooks fall back to `/proc/<pid>/mem` the way [Wine](https://gitlab.winehq.org/wine/wine)'s `server/ptrace.c` did before Wine 11.
|
||||
- Windows programs on noexec storage get executable copies of their image pages, following [@yujikaido](https://github.com/yujikaido)'s finding in [droiddeck-rp4pro](https://github.com/yujikaido/droiddeck-rp4pro) that Wine's own processes need the noexec shim.
|
||||
- Wine write watches use userfaultfd support in [Proton](https://github.com/ValveSoftware/wine)'s `dlls/ntdll/unix/virtual.c` (LGPL-2.1-or-later). libblsession supplies the arm64 syscall number and answers `PAGEMAP_SCAN` from `/proc/self/pagemap`.
|
||||
- libblsession runs Wine's arm64 `SIGUSR2` context handler (`dlls/ntdll/unix/signal_arm64.c`, LGPL-2.1-or-later) in place on a frame laid out like [Linux](https://github.com/torvalds/linux)'s `arch/arm64/kernel/signal.c`, and serves `fill_vm_counters` in `dlls/ntdll/unix/process.c` the kernel's own `/proc/<pid>/status`.
|
||||
- droiddeck-ntsync follows the [Linux](https://github.com/torvalds/linux) ntsync semantics in `Documentation/userspace-api/ntsync.rst` (GPL-2.0).
|
||||
@@ -98,7 +99,7 @@ DroidDeck is [GPL-3.0](LICENSE). Steam and Proton belong to Valve Corporation. V
|
||||
- Battle.net installs drive Blizzard's Agent the way [@barncastle](https://github.com/barncastle)'s [Battle.Net-Installer](https://github.com/barncastle/Battle.Net-Installer) does, with requests from [wowdev.wiki](https://wowdev.wiki/Agent). Read without taking code: [@mubaraknumann](https://github.com/mubaraknumann)'s [unifideck](https://github.com/mubaraknumann/unifideck), [@djmittens](https://github.com/djmittens)'s [neo-mittens](https://github.com/djmittens/neo-mittens) `bnetswitch`, [@BCD1210](https://github.com/BCD1210)'s [soju](https://github.com/BCD1210/soju) and [Lutris](https://github.com/lutris/lutris)'s `product.db` reader.
|
||||
- World of Warcraft addon imports replace an addon's folder from a temporary copy, as [WowUp](https://github.com/WowUp/WowUp) does, and read flavour folders the way [WoWDeck](https://github.com/sigboe/wowdeck) does. No code from either is used.
|
||||
- The World of Warcraft addon Download window searches [WoWInterface](https://www.wowinterface.com) through its MMOUI API. [CurseForge](https://www.curseforge.com/wow) opens in the user's browser, with no API and no key.
|
||||
- Xbox games load [@domsvoboda](https://github.com/domsvoboda)'s [xodus-nexus](https://github.com/domsvoboda/xodus-nexus) modules (LGPL-2.1-or-later), including `wintypes.dll`. Content licensing sends delegation-compact device tickets in the licensing wire form, following the [nexus-backend](https://github.com/domsvoboda/nexus-backend) commit `27c335e`. Minecraft's GameInput setup was checked against [@Wyze3306](https://github.com/Wyze3306)'s [BedrockOnLinux](https://github.com/Wyze3306/BedrockOnLinux) (MIT).
|
||||
- The Xbox store runs [@domsvoboda](https://github.com/domsvoboda)'s [nexus-backend](https://github.com/domsvoboda/nexus-backend) 0.2.15 (GPL-3.0, a fork of [Xodus](https://github.com/xodus-gaming/xodus)), and Xbox games load the Windows modules of his [nexus-runtime](https://github.com/domsvoboda/nexus-runtime) (LGPL-2.1-or-later), including the C++ [nexus-xgameruntime](https://github.com/domsvoboda/nexus-xgameruntime) and `wintypes.dll`. Content licensing sends delegation-compact device tickets in the licensing wire form, as nexus-backend's Store license path (commit `27c335e`) does. Minecraft's GameInput setup was checked against [@Wyze3306](https://github.com/Wyze3306)'s [BedrockOnLinux](https://github.com/Wyze3306/BedrockOnLinux) (MIT).
|
||||
- The Xbox Cloud Gaming player uses the WebRTC client of [@unknownskl](https://github.com/unknownskl)'s [Greenlight](https://github.com/unknownskl/greenlight) (MIT), and its offer tweaks and sharpening follow [@redphx](https://github.com/redphx)'s [Better xCloud](https://github.com/redphx/better-xcloud) (MIT). See `tools/xcloud-player/NOTICE.md`.
|
||||
- The itch.io butler pack ships butler's `7z.so`, itch.io's build of [7-Zip](https://www.7-zip.org) by Igor Pavlov (LGPL-2.1, unRAR restriction on RAR code), unmodified. Other archives use Apache Commons Compress and the runtime's bsdtar (libarchive).
|
||||
- The Store uses [Flatpak](https://github.com/flatpak/flatpak) (LGPL-2.1) through DroidDeck's own bubblewrap shim. Chromium and Electron apps start directly, since [zypak](https://github.com/refi64/zypak) by [@refi64](https://github.com/refi64) (BSD-3-Clause) always uses Flatpak's spawn portal.
|
||||
@@ -113,6 +114,7 @@ DroidDeck is [GPL-3.0](LICENSE). Steam and Proton belong to Valve Corporation. V
|
||||
- The DroidDeck HUD is [@The412Banner](https://github.com/The412Banner)'s [FusionHUD](https://github.com/The412Banner/FusionHUD) (GPL-3.0 with an attribution term). Its readings match Valve's [MangoHud](https://github.com/flightlessmango/MangoHud) build (MIT), with frame times from gamescope patch 0125.
|
||||
- The HUD's CPU, GPU load, thermal and battery readers come from [@xXJSONDeruloXx](https://github.com/xXJSONDeruloXx)'s work.
|
||||
- LSFG frame generation comes from Camille LaVey and the [Eden](https://eden-emu.dev) project, following [lsfg-vk](https://github.com/PancakeTAS/lsfg-vk), ported by [@maxjivi05](https://github.com/maxjivi05). It needs your own copy of [Lossless Scaling](https://store.steampowered.com/app/993090/) and ships none of its shaders.
|
||||
- Black frame insertion follows the design of [@artzox](https://github.com/artzox)'s [BFI Presenter](https://github.com/artzox/BFI-Presenter) (GPL-3.0): the strobe runs on the display's refresh clock and the game is paced to the lit refresh. Both build on [Blur Busters](https://blurbusters.com)' research on MPRT and motion blur. No BFI Presenter code is used.
|
||||
- Remote Play decodes through Android's MediaCodec or the [FFmpeg](https://ffmpeg.org) (LGPL-2.1-or-later) in Steam's runtime. Qualcomm low latency settings follow [Moonlight](https://github.com/moonlight-stream/moonlight-android) (GPL-3.0).
|
||||
- [PipeWire](https://gitlab.freedesktop.org/pipewire/pipewire) (MIT) sockets use the settings in its `module-access.c`, and [WirePlumber](https://gitlab.freedesktop.org/pipewire/wireplumber) (MIT) keeps those clients at full permissions.
|
||||
|
||||
|
||||
+7
-9
@@ -93,7 +93,7 @@ def trackingPack = rootProject.file('tools/packs/tracking/release.env').readLine
|
||||
def prootPackPin = rootProject.file('tools/packs/proot/release.env').readLines()
|
||||
.findAll { it.contains('=') && !it.startsWith('#') }
|
||||
.collectEntries { def kv = it.split('=', 2); [(kv[0].trim()): kv[1].trim()] }
|
||||
def addonPacks = ['proot', 'directaudio', 'tracking', 'xbox', 'comet', 'butler', 'powervr', 'ubisoft'].collectEntries { name ->
|
||||
def addonPacks = ['proot', 'directaudio', 'tracking', 'xbox', 'comet', 'butler', 'powervr', 'ubisoft', 'rockstar', 'dirt'].collectEntries { name ->
|
||||
def pack = file("build/packs/${name}.tar.zst")
|
||||
if (!pack.isFile()) {
|
||||
if (ciBuild) throw new GradleException("Add-on pack ${pack} is missing: run tools/packs/build.sh app/build/packs")
|
||||
@@ -130,7 +130,7 @@ android {
|
||||
defaultConfig {
|
||||
applicationId "com.droiddeck.launcher"
|
||||
minSdkVersion 26
|
||||
targetSdkVersion 28
|
||||
targetSdkVersion 34
|
||||
versionCode 19
|
||||
versionName "0.7.1"
|
||||
buildConfigField "String", "BUILD_LABEL", "\"${escapedBuildLabel}\""
|
||||
@@ -201,12 +201,8 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
lint {
|
||||
disable 'ExpiredTargetSdkVersion'
|
||||
}
|
||||
|
||||
androidResources {
|
||||
ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~:<dir>droiddeck-xbox:<dir>droiddeck-comet:<dir>droiddeck-ubisoft:<dir>directaudio:<dir>hybris'
|
||||
ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~:<dir>droiddeck-xbox:<dir>droiddeck-comet:<dir>droiddeck-ubisoft:<dir>droiddeck-rockstar:<dir>droiddeck-dirt:<dir>directaudio:<dir>hybris'
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
@@ -216,7 +212,7 @@ android {
|
||||
jniLibs {
|
||||
useLegacyPackaging = true
|
||||
pickFirsts += ['**/libtermux.so']
|
||||
excludes += ['**/libproot.so', '**/libproot-loader.so', '**/libopencv_java4.so', '**/libmediapipe_tasks_jni.so']
|
||||
excludes += ['**/libproot.so', '**/libopencv_java4.so', '**/libmediapipe_tasks_jni.so']
|
||||
}
|
||||
}
|
||||
|
||||
@@ -278,8 +274,10 @@ def stageRuntimeAssets = tasks.register('stageRuntimeAssets', Sync) {
|
||||
dependsOn(stageSessionScripts)
|
||||
from(layout.projectDirectory.dir('src/main/assets')) { exclude 'pulseaudio.tzst' }
|
||||
from(rootProject.file('tools/linuxfs/innoextract'))
|
||||
from(rootProject.file('tools')) { include 'droiddeckctl', 'adb_device.py', 'proot_profile.py'; into('agent/ctl') }
|
||||
from(rootProject.file('tools')) { include 'droiddeckctl', 'droiddeck-scenario', 'adb_device.py', 'proot_profile.py'; into('agent/ctl') }
|
||||
from(rootProject.file('tools/agent/AGENTS.md')) { into('agent/ctl') }
|
||||
from(rootProject.file('docs/agent-control.md')) { into('agent/ctl') }
|
||||
from(rootProject.file('tools/agent/skills')) { into('agent/skills') }
|
||||
from(layout.buildDirectory.dir('prepared-assets'))
|
||||
into(runtimeAssetsDir)
|
||||
}
|
||||
|
||||
@@ -36,7 +36,12 @@
|
||||
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
|
||||
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||
<uses-permission android:name="android.permission.HIGH_SAMPLING_RATE_SENSORS" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />
|
||||
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
|
||||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
||||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
||||
@@ -48,7 +53,8 @@
|
||||
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
|
||||
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
|
||||
<uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" />
|
||||
<uses-permission android:name="android.permission.BLUETOOTH" />
|
||||
<uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" />
|
||||
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
|
||||
<uses-permission android:name="android.permission.CAMERA" />
|
||||
|
||||
<uses-feature android:name="android.hardware.vulkan.version" android:version="0x401000" android:required="true" />
|
||||
@@ -70,6 +76,7 @@
|
||||
android:hardwareAccelerated="true"
|
||||
android:largeHeap="true"
|
||||
android:extractNativeLibs="true"
|
||||
android:requestLegacyExternalStorage="true"
|
||||
android:appCategory="game"
|
||||
android:isGame="true">
|
||||
|
||||
@@ -312,7 +319,11 @@
|
||||
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|keyboard|keyboardHidden|navigation|uiMode|density"
|
||||
android:theme="@style/SessionTheme" />
|
||||
|
||||
<service android:name=".agent.AgentHostService" android:exported="false" />
|
||||
<service android:name=".agent.AgentHostService" android:exported="false"
|
||||
android:foregroundServiceType="specialUse">
|
||||
<property android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
|
||||
android:value="Keeps the user's on-device assistant running between screens" />
|
||||
</service>
|
||||
<service
|
||||
android:name=".update.UpdateWatch"
|
||||
android:permission="android.permission.BIND_JOB_SERVICE"
|
||||
@@ -320,7 +331,11 @@
|
||||
<service
|
||||
android:name=".session.SessionService"
|
||||
android:exported="false"
|
||||
android:stopWithTask="false" />
|
||||
android:stopWithTask="false"
|
||||
android:foregroundServiceType="specialUse">
|
||||
<property android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
|
||||
android:value="Runs the user's Linux gaming session while its window is in the background" />
|
||||
</service>
|
||||
<!-- The compositor's native state is one per process, so the bottom-screen desktop's compositor runs in its own. -->
|
||||
<service
|
||||
android:name=".wayland.BottomDesktopCompositorService"
|
||||
@@ -328,10 +343,15 @@
|
||||
android:exported="false" />
|
||||
<service
|
||||
android:name=".runtime.RuntimeInstallService"
|
||||
android:exported="false" />
|
||||
android:exported="false"
|
||||
android:foregroundServiceType="dataSync" />
|
||||
<service
|
||||
android:name=".core.WirelessAdbPairingService"
|
||||
android:exported="false" />
|
||||
android:exported="false"
|
||||
android:foregroundServiceType="specialUse">
|
||||
<property android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
|
||||
android:value="Waits for the wireless debugging pairing code the user enters" />
|
||||
</service>
|
||||
<service
|
||||
android:name=".stores.download.StoreDownloadService"
|
||||
android:exported="false"
|
||||
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec python3 /root/.local/share/droiddeck/ctl/droiddeck-scenario "$@"
|
||||
@@ -1,15 +0,0 @@
|
||||
{
|
||||
"version": 1,
|
||||
"controls": [
|
||||
{
|
||||
"name": "Compact gamepad",
|
||||
"author": "DroidDeck",
|
||||
"game": "",
|
||||
"license": "GPL-3.0",
|
||||
"file": "packs/compact-gamepad.ddcontrols.zip",
|
||||
"sha256": "8b747e86268a1f607e312f2c39dd67402658bd5cf9e4e4ff524a4640417c9f3e",
|
||||
"screen": "BOTH",
|
||||
"preview": "previews/compact-gamepad.png"
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 21 KiB |
@@ -40,6 +40,12 @@ add_library(gpuclock SHARED gpuclock/kgsl_clock.c gpuclock/kgsl_busy.c)
|
||||
|
||||
add_library(termux SHARED termux/termux.c)
|
||||
|
||||
# An executable packaged as a library: the only place a targetSdk 29+ app may execute files from.
|
||||
add_library(ddexec SHARED ddexec/ddexec.c)
|
||||
target_compile_options(ddexec PRIVATE -O2 -ffreestanding -fno-builtin -fno-stack-protector -fno-asynchronous-unwind-tables)
|
||||
target_link_options(ddexec PRIVATE -nostdlib -Wl,-e,_start -Wl,-z,noexecstack -Wl,--no-undefined -Wl,-Bsymbolic
|
||||
-Wl,-z,max-page-size=16384)
|
||||
|
||||
add_library(ddvenc SHARED venc/venc_server.cpp)
|
||||
target_compile_features(ddvenc PRIVATE cxx_std_17)
|
||||
target_link_libraries(ddvenc mediandk log)
|
||||
|
||||
@@ -0,0 +1,274 @@
|
||||
// libddexec.so: starts an ELF program from the app's data directory.
|
||||
//
|
||||
// usage: libddexec.so <file> <argv0> [args...]
|
||||
//
|
||||
// From targetSdk 29, Android refuses execve() of app data files, but still lets the app map them
|
||||
// executable, and executes the APK's extracted libraries. This executable is one of those libraries:
|
||||
// it maps <file> (and its PT_INTERP, if it names one) the way the kernel's ELF loader would, builds the
|
||||
// stack the kernel would have built for "<argv0> [args...]", and jumps to the entry point.
|
||||
// It is freestanding: no libc, no relocations, so the kernel can run it as a static PIE.
|
||||
|
||||
#include <elf.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#define SYS_faccessat 48
|
||||
#define SYS_openat 56
|
||||
#define SYS_close 57
|
||||
#define SYS_pread64 67
|
||||
#define SYS_write 64
|
||||
#define SYS_exit_group 94
|
||||
#define SYS_munmap 215
|
||||
#define SYS_mmap 222
|
||||
#define SYS_mprotect 226
|
||||
|
||||
#define AT_FDCWD_ (-100)
|
||||
#define O_RDONLY_ 0
|
||||
#define O_CLOEXEC_ 02000000
|
||||
#define PROT_READ_ 1
|
||||
#define PROT_WRITE_ 2
|
||||
#define PROT_EXEC_ 4
|
||||
#define MAP_PRIVATE_ 0x02
|
||||
#define MAP_FIXED_ 0x10
|
||||
#define MAP_ANONYMOUS_ 0x20
|
||||
#define MAX_PHDRS 64
|
||||
#define STACK_GAP 65536
|
||||
|
||||
static long sys6(long n, long a, long b, long c, long d, long e, long f) {
|
||||
register long x8 __asm__("x8") = n;
|
||||
register long x0 __asm__("x0") = a;
|
||||
register long x1 __asm__("x1") = b;
|
||||
register long x2 __asm__("x2") = c;
|
||||
register long x3 __asm__("x3") = d;
|
||||
register long x4 __asm__("x4") = e;
|
||||
register long x5 __asm__("x5") = f;
|
||||
__asm__ volatile("svc #0" : "+r"(x0) : "r"(x8), "r"(x1), "r"(x2), "r"(x3), "r"(x4), "r"(x5) : "memory", "cc");
|
||||
return x0;
|
||||
}
|
||||
|
||||
static size_t slen(const char *s) {
|
||||
size_t n = 0;
|
||||
while (s[n]) n++;
|
||||
return n;
|
||||
}
|
||||
|
||||
static void out(const char *s) { sys6(SYS_write, 2, (long)s, (long)slen(s), 0, 0, 0); }
|
||||
|
||||
static void out_num(long v) {
|
||||
char buf[24];
|
||||
int i = (int)sizeof(buf) - 1;
|
||||
buf[i] = 0;
|
||||
unsigned long u = v < 0 ? (unsigned long)-v : (unsigned long)v;
|
||||
do {
|
||||
buf[--i] = (char)('0' + u % 10);
|
||||
u /= 10;
|
||||
} while (u && i > 1);
|
||||
if (v < 0) buf[--i] = '-';
|
||||
out(buf + i);
|
||||
}
|
||||
|
||||
__attribute__((noreturn)) static void die(const char *what, const char *path, long err) {
|
||||
out("libddexec: ");
|
||||
if (path) {
|
||||
out(path);
|
||||
out(": ");
|
||||
}
|
||||
out(what);
|
||||
if (err) {
|
||||
out(" (");
|
||||
out_num(err);
|
||||
out(")");
|
||||
}
|
||||
out("\n");
|
||||
sys6(SYS_exit_group, 127, 0, 0, 0, 0, 0);
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
||||
static long xpread(int fd, void *buf, size_t len, long off) {
|
||||
size_t done = 0;
|
||||
while (done < len) {
|
||||
long n = sys6(SYS_pread64, fd, (long)((char *)buf + done), (long)(len - done), off + (long)done, 0, 0);
|
||||
if (n <= 0) return n < 0 ? n : -1;
|
||||
done += (size_t)n;
|
||||
}
|
||||
return (long)done;
|
||||
}
|
||||
|
||||
struct image {
|
||||
uintptr_t base;
|
||||
uintptr_t phdr;
|
||||
uintptr_t entry;
|
||||
unsigned long phnum;
|
||||
unsigned long phent;
|
||||
char interp[256];
|
||||
};
|
||||
|
||||
static uintptr_t trunc_page(uintptr_t v, uintptr_t page) { return v & ~(page - 1); }
|
||||
static uintptr_t round_page(uintptr_t v, uintptr_t page) { return (v + page - 1) & ~(page - 1); }
|
||||
|
||||
static int prot_of(uint32_t flags) {
|
||||
return ((flags & PF_R) ? PROT_READ_ : 0) | ((flags & PF_W) ? PROT_WRITE_ : 0) | ((flags & PF_X) ? PROT_EXEC_ : 0);
|
||||
}
|
||||
|
||||
static void map_failed(const char *path, long r) { die("cannot map a segment", path, r); }
|
||||
|
||||
static void load(const char *path, struct image *im, uintptr_t page) {
|
||||
int fd = (int)sys6(SYS_openat, AT_FDCWD_, (long)path, O_RDONLY_ | O_CLOEXEC_, 0, 0, 0);
|
||||
if (fd < 0) die("cannot open", path, fd);
|
||||
Elf64_Ehdr eh;
|
||||
if (xpread(fd, &eh, sizeof(eh), 0) != (long)sizeof(eh)) die("not an ELF file", path, 0);
|
||||
if (eh.e_ident[EI_MAG0] != ELFMAG0 || eh.e_ident[EI_MAG1] != ELFMAG1 || eh.e_ident[EI_MAG2] != ELFMAG2 ||
|
||||
eh.e_ident[EI_MAG3] != ELFMAG3 || eh.e_ident[EI_CLASS] != ELFCLASS64 || eh.e_machine != EM_AARCH64 ||
|
||||
(eh.e_type != ET_EXEC && eh.e_type != ET_DYN) || eh.e_phentsize != sizeof(Elf64_Phdr) ||
|
||||
eh.e_phnum == 0 || eh.e_phnum > MAX_PHDRS)
|
||||
die("not a 64-bit ARM ELF program", path, 0);
|
||||
Elf64_Phdr ph[MAX_PHDRS];
|
||||
long size = (long)eh.e_phnum * (long)sizeof(Elf64_Phdr);
|
||||
if (xpread(fd, ph, (size_t)size, (long)eh.e_phoff) != size) die("truncated program headers", path, 0);
|
||||
|
||||
uintptr_t lo = UINTPTR_MAX, hi = 0;
|
||||
for (int i = 0; i < eh.e_phnum; i++) {
|
||||
if (ph[i].p_type != PT_LOAD) continue;
|
||||
uintptr_t s = trunc_page(ph[i].p_vaddr, page), e = round_page(ph[i].p_vaddr + ph[i].p_memsz, page);
|
||||
if (s < lo) lo = s;
|
||||
if (e > hi) hi = e;
|
||||
}
|
||||
if (lo >= hi) die("no loadable segments", path, 0);
|
||||
|
||||
uintptr_t bias = 0;
|
||||
if (eh.e_type == ET_DYN) {
|
||||
long r = sys6(SYS_mmap, 0, (long)(hi - lo), 0, MAP_PRIVATE_ | MAP_ANONYMOUS_, -1, 0);
|
||||
if (r < 0 && r > -4096) map_failed(path, r);
|
||||
bias = (uintptr_t)r - lo;
|
||||
}
|
||||
|
||||
for (int i = 0; i < eh.e_phnum; i++) {
|
||||
Elf64_Phdr *p = &ph[i];
|
||||
if (p->p_type != PT_LOAD || p->p_memsz == 0) continue;
|
||||
int prot = prot_of(p->p_flags);
|
||||
uintptr_t seg = bias + p->p_vaddr;
|
||||
uintptr_t start = trunc_page(seg, page);
|
||||
uintptr_t file_end = seg + p->p_filesz;
|
||||
uintptr_t mem_end = round_page(seg + p->p_memsz, page);
|
||||
int zero_tail = p->p_memsz > p->p_filesz && (file_end & (page - 1)) != 0;
|
||||
if (p->p_filesz > 0) {
|
||||
uintptr_t len = round_page(file_end, page) - start;
|
||||
long r = sys6(SYS_mmap, (long)start, (long)len, prot | (zero_tail ? PROT_WRITE_ : 0),
|
||||
MAP_PRIVATE_ | MAP_FIXED_, fd, (long)trunc_page(p->p_offset, page));
|
||||
if (r < 0 && r > -4096) map_failed(path, r);
|
||||
if (zero_tail) {
|
||||
for (volatile char *z = (volatile char *)file_end; (uintptr_t)z < round_page(file_end, page); z++) *z = 0;
|
||||
if (!(prot & PROT_WRITE_)) sys6(SYS_mprotect, (long)trunc_page(file_end, page), (long)page, prot, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
uintptr_t anon = p->p_filesz > 0 ? round_page(file_end, page) : start;
|
||||
if (mem_end > anon) {
|
||||
long r = sys6(SYS_mmap, (long)anon, (long)(mem_end - anon), prot, MAP_PRIVATE_ | MAP_FIXED_ | MAP_ANONYMOUS_, -1, 0);
|
||||
if (r < 0 && r > -4096) map_failed(path, r);
|
||||
}
|
||||
}
|
||||
|
||||
im->base = bias;
|
||||
im->entry = bias + eh.e_entry;
|
||||
im->phnum = eh.e_phnum;
|
||||
im->phent = eh.e_phentsize;
|
||||
im->phdr = 0;
|
||||
im->interp[0] = 0;
|
||||
for (int i = 0; i < eh.e_phnum; i++) {
|
||||
if (ph[i].p_type == PT_PHDR) im->phdr = bias + ph[i].p_vaddr;
|
||||
if (ph[i].p_type == PT_INTERP) {
|
||||
if (ph[i].p_filesz == 0 || ph[i].p_filesz >= sizeof(im->interp)) die("bad PT_INTERP", path, 0);
|
||||
if (xpread(fd, im->interp, ph[i].p_filesz, (long)ph[i].p_offset) != (long)ph[i].p_filesz)
|
||||
die("truncated PT_INTERP", path, 0);
|
||||
im->interp[ph[i].p_filesz] = 0;
|
||||
}
|
||||
}
|
||||
if (!im->phdr) {
|
||||
for (int i = 0; i < eh.e_phnum; i++) {
|
||||
Elf64_Phdr *p = &ph[i];
|
||||
if (p->p_type == PT_LOAD && eh.e_phoff >= p->p_offset && eh.e_phoff < p->p_offset + p->p_filesz) {
|
||||
im->phdr = bias + p->p_vaddr + (eh.e_phoff - p->p_offset);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!im->phdr) die("program headers are not in a loaded segment", path, 0);
|
||||
sys6(SYS_close, fd, 0, 0, 0, 0, 0);
|
||||
}
|
||||
|
||||
static unsigned long auxv_get(const uintptr_t *auxv, unsigned long type, unsigned long fallback) {
|
||||
for (; auxv[0] != AT_NULL; auxv += 2)
|
||||
if (auxv[0] == type) return auxv[1];
|
||||
return fallback;
|
||||
}
|
||||
|
||||
__attribute__((used, noreturn)) void ddexec_main(uintptr_t *sp) {
|
||||
long argc = (long)sp[0];
|
||||
char **argv = (char **)(sp + 1);
|
||||
char **envp = argv + argc + 1;
|
||||
long nenv = 0;
|
||||
while (envp[nenv]) nenv++;
|
||||
uintptr_t *auxv = (uintptr_t *)(envp + nenv + 1);
|
||||
long naux = 0;
|
||||
while (auxv[naux * 2] != AT_NULL) naux++;
|
||||
if (argc < 3) die("usage: libddexec.so <file> <argv0> [args...]", 0, 0);
|
||||
|
||||
uintptr_t page = auxv_get(auxv, AT_PAGESZ, 4096);
|
||||
const char *path = argv[1];
|
||||
struct image prog, interp;
|
||||
load(path, &prog, page);
|
||||
int has_interp = prog.interp[0] != 0;
|
||||
if (has_interp) load(prog.interp, &interp, page);
|
||||
|
||||
// The new stack: argc, argv, envp and auxv as the kernel lays them out, below the current one.
|
||||
// The strings stay where the kernel put them.
|
||||
static const unsigned long replaced[] = {AT_PHDR, AT_PHENT, AT_PHNUM, AT_BASE, AT_ENTRY, AT_EXECFN};
|
||||
long nreplaced = (long)(sizeof(replaced) / sizeof(replaced[0]));
|
||||
long new_argc = argc - 2;
|
||||
long words = 1 + (new_argc + 1) + (nenv + 1) + (naux + nreplaced + 1) * 2;
|
||||
uintptr_t *nsp = (uintptr_t *)(((uintptr_t)sp - STACK_GAP - (uintptr_t)words * sizeof(uintptr_t)) & ~(uintptr_t)15);
|
||||
uintptr_t *w = nsp;
|
||||
*w++ = (uintptr_t)new_argc;
|
||||
for (long i = 0; i < new_argc; i++) *w++ = (uintptr_t)argv[i + 2];
|
||||
*w++ = 0;
|
||||
for (long i = 0; i < nenv; i++) *w++ = (uintptr_t)envp[i];
|
||||
*w++ = 0;
|
||||
for (long i = 0; i < naux; i++) {
|
||||
unsigned long type = auxv[i * 2];
|
||||
int skip = 0;
|
||||
for (long r = 0; r < nreplaced; r++)
|
||||
if (type == replaced[r]) skip = 1;
|
||||
if (skip) continue;
|
||||
*w++ = type;
|
||||
*w++ = auxv[i * 2 + 1];
|
||||
}
|
||||
*w++ = AT_PHDR;
|
||||
*w++ = prog.phdr;
|
||||
*w++ = AT_PHENT;
|
||||
*w++ = prog.phent;
|
||||
*w++ = AT_PHNUM;
|
||||
*w++ = prog.phnum;
|
||||
*w++ = AT_BASE;
|
||||
*w++ = has_interp ? interp.base : 0;
|
||||
*w++ = AT_ENTRY;
|
||||
*w++ = prog.entry;
|
||||
*w++ = AT_EXECFN;
|
||||
*w++ = (uintptr_t)path;
|
||||
*w++ = AT_NULL;
|
||||
*w++ = 0;
|
||||
|
||||
uintptr_t entry = has_interp ? interp.entry : prog.entry;
|
||||
__asm__ volatile("mov sp, %0\n"
|
||||
"mov x0, #0\n"
|
||||
"br %1\n"
|
||||
:
|
||||
: "r"(nsp), "r"(entry)
|
||||
: "memory");
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
||||
__attribute__((naked, noreturn)) void _start(void) {
|
||||
__asm__ volatile("mov x0, sp\n"
|
||||
"and sp, x0, #~15\n"
|
||||
"bl ddexec_main\n");
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
#version 450
|
||||
|
||||
layout(location = 0) in vec2 fragTexCoord;
|
||||
layout(location = 0) out vec4 outColor;
|
||||
layout(set = 0, binding = 0) uniform sampler2D InputTexture;
|
||||
layout(push_constant) uniform Constants {
|
||||
vec4 ndc;
|
||||
vec2 resolution;
|
||||
float extra;
|
||||
float pad;
|
||||
} pc;
|
||||
|
||||
float luma(vec3 c) {
|
||||
return dot(c, vec3(0.2126, 0.7152, 0.0722));
|
||||
}
|
||||
|
||||
float edgeVertical(vec2 uv, vec2 px) {
|
||||
float a = luma(texture(InputTexture, uv - vec2(px.x, 0.0)).rgb);
|
||||
float b = luma(texture(InputTexture, uv + vec2(px.x, 0.0)).rgb);
|
||||
return abs(a - b);
|
||||
}
|
||||
|
||||
float edgeHorizontal(vec2 uv, vec2 px) {
|
||||
float a = luma(texture(InputTexture, uv - vec2(0.0, px.y)).rgb);
|
||||
float b = luma(texture(InputTexture, uv + vec2(0.0, px.y)).rgb);
|
||||
return abs(a - b);
|
||||
}
|
||||
|
||||
void main() {
|
||||
vec2 px = 1.0 / max(pc.resolution, vec2(1.0));
|
||||
vec2 uv = clamp(fragTexCoord, px * 0.5, vec2(1.0) - px * 0.5);
|
||||
vec4 center = texture(InputTexture, uv);
|
||||
|
||||
float lc = luma(center.rgb);
|
||||
float ll = luma(texture(InputTexture, uv - vec2(px.x, 0.0)).rgb);
|
||||
float lr = luma(texture(InputTexture, uv + vec2(px.x, 0.0)).rgb);
|
||||
float lu = luma(texture(InputTexture, uv - vec2(0.0, px.y)).rgb);
|
||||
float ld = luma(texture(InputTexture, uv + vec2(0.0, px.y)).rgb);
|
||||
|
||||
float dL = abs(lc - ll);
|
||||
float dR = abs(lc - lr);
|
||||
float dU = abs(lc - lu);
|
||||
float dD = abs(lc - ld);
|
||||
float localMin = min(lc, min(min(ll, lr), min(lu, ld)));
|
||||
float localMax = max(lc, max(max(ll, lr), max(lu, ld)));
|
||||
float localContrast = localMax - localMin;
|
||||
float threshold = max(0.045, localContrast * 0.08);
|
||||
|
||||
float vertical = max(dL, dR);
|
||||
float horizontal = max(dU, dD);
|
||||
float strongest = max(vertical, horizontal);
|
||||
if (strongest <= threshold) {
|
||||
outColor = center;
|
||||
return;
|
||||
}
|
||||
|
||||
bool verticalEdge = vertical >= horizontal;
|
||||
vec2 tangent = verticalEdge ? vec2(0.0, px.y) : vec2(px.x, 0.0);
|
||||
vec2 normal = verticalEdge
|
||||
? vec2(dL >= dR ? -1.0 : 1.0, 0.0)
|
||||
: vec2(0.0, dU >= dD ? -1.0 : 1.0);
|
||||
|
||||
float negativeRun = 0.0;
|
||||
float positiveRun = 0.0;
|
||||
for (int i = 1; i <= 6; ++i) {
|
||||
vec2 offset = tangent * float(i);
|
||||
float edgeN = verticalEdge ? edgeVertical(uv - offset, px) : edgeHorizontal(uv - offset, px);
|
||||
float edgeP = verticalEdge ? edgeVertical(uv + offset, px) : edgeHorizontal(uv + offset, px);
|
||||
if (negativeRun == float(i - 1) && edgeN > threshold * 0.65) negativeRun = float(i);
|
||||
if (positiveRun == float(i - 1) && edgeP > threshold * 0.65) positiveRun = float(i);
|
||||
}
|
||||
|
||||
float span = negativeRun + positiveRun;
|
||||
float edgeConfidence = smoothstep(threshold, threshold * 2.5, strongest);
|
||||
|
||||
float nw = luma(texture(InputTexture, uv + vec2(-px.x, -px.y)).rgb);
|
||||
float ne = luma(texture(InputTexture, uv + vec2(px.x, -px.y)).rgb);
|
||||
float sw = luma(texture(InputTexture, uv + vec2(-px.x, px.y)).rgb);
|
||||
float se = luma(texture(InputTexture, uv + vec2(px.x, px.y)).rgb);
|
||||
float endpointPattern = clamp(abs(negativeRun - positiveRun) / max(span, 1.0), 0.0, 1.0);
|
||||
float endpointArea = endpointPattern / (1.0 + span * 0.055);
|
||||
float crossingA = verticalEdge ? abs(nw - ne) : abs(nw - sw);
|
||||
float crossingB = verticalEdge ? abs(sw - se) : abs(ne - se);
|
||||
float crossingContrast = abs(crossingA - crossingB);
|
||||
float crossingPattern = smoothstep(threshold, threshold * 2.5, crossingContrast);
|
||||
float areaWeight = 0.38 * crossingPattern * clamp(span / 4.0, 0.0, 1.0);
|
||||
float diagonalContrast = max(abs(nw - se), abs(ne - sw));
|
||||
float cornerFactor = 1.0 - 0.18 * smoothstep(threshold, threshold * 3.0, diagonalContrast);
|
||||
float baseWeight = areaWeight * endpointArea * edgeConfidence * cornerFactor;
|
||||
|
||||
float diagonalStrength = abs(abs(nw - se) - abs(ne - sw));
|
||||
float diagonalPattern = smoothstep(threshold, threshold * 2.5, diagonalStrength);
|
||||
float diagonalFallback = 0.16 * diagonalPattern * edgeConfidence * cornerFactor;
|
||||
|
||||
float weight = clamp(
|
||||
baseWeight <= 0.0001 ? diagonalFallback : baseWeight,
|
||||
0.0, 0.42
|
||||
);
|
||||
vec3 across = texture(InputTexture, uv + normal * px).rgb;
|
||||
outColor = vec4(mix(center.rgb, across, weight), center.a);
|
||||
}
|
||||
@@ -0,0 +1,443 @@
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
|
||||
static const uint32_t smaa_code[] = {
|
||||
0x07230203u, 0x00010000u, 0x0008000bu, 0x00000254u, 0x00000000u, 0x00020011u, 0x00000001u, 0x0006000bu,
|
||||
0x00000001u, 0x4c534c47u, 0x6474732eu, 0x3035342eu, 0x00000000u, 0x0003000eu, 0x00000000u, 0x00000001u,
|
||||
0x0007000fu, 0x00000004u, 0x00000004u, 0x6e69616du, 0x00000000u, 0x00000072u, 0x000000f6u, 0x00030010u,
|
||||
0x00000004u, 0x00000007u, 0x00030003u, 0x00000002u, 0x000001c2u, 0x00040005u, 0x00000004u, 0x6e69616du,
|
||||
0x00000000u, 0x00050005u, 0x0000000bu, 0x616d756cu, 0x33667628u, 0x0000003bu, 0x00030005u, 0x0000000au,
|
||||
0x00000063u, 0x00080005u, 0x00000012u, 0x65676465u, 0x74726556u, 0x6c616369u, 0x32667628u, 0x3266763bu,
|
||||
0x0000003bu, 0x00030005u, 0x00000010u, 0x00007675u, 0x00030005u, 0x00000011u, 0x00007870u, 0x00080005u,
|
||||
0x00000016u, 0x65676465u, 0x69726f48u, 0x746e6f7au, 0x76286c61u, 0x763b3266u, 0x003b3266u, 0x00030005u,
|
||||
0x00000014u, 0x00007675u, 0x00030005u, 0x00000015u, 0x00007870u, 0x00030005u, 0x00000021u, 0x00000061u,
|
||||
0x00060005u, 0x00000025u, 0x75706e49u, 0x78655474u, 0x65727574u, 0x00000000u, 0x00040005u, 0x00000031u,
|
||||
0x61726170u, 0x0000006du, 0x00030005u, 0x00000034u, 0x00000062u, 0x00040005u, 0x0000003cu, 0x61726170u,
|
||||
0x0000006du, 0x00030005u, 0x00000045u, 0x00000061u, 0x00040005u, 0x0000004eu, 0x61726170u, 0x0000006du,
|
||||
0x00030005u, 0x00000051u, 0x00000062u, 0x00040005u, 0x00000059u, 0x61726170u, 0x0000006du, 0x00030005u,
|
||||
0x00000062u, 0x00007870u, 0x00050005u, 0x00000064u, 0x736e6f43u, 0x746e6174u, 0x00000073u, 0x00040006u,
|
||||
0x00000064u, 0x00000000u, 0x0063646eu, 0x00060006u, 0x00000064u, 0x00000001u, 0x6f736572u, 0x6974756cu,
|
||||
0x00006e6fu, 0x00050006u, 0x00000064u, 0x00000002u, 0x72747865u, 0x00000061u, 0x00040006u, 0x00000064u,
|
||||
0x00000003u, 0x00646170u, 0x00030005u, 0x00000066u, 0x00006370u, 0x00030005u, 0x00000070u, 0x00007675u,
|
||||
0x00060005u, 0x00000072u, 0x67617266u, 0x43786554u, 0x64726f6fu, 0x00000000u, 0x00040005u, 0x0000007cu,
|
||||
0x746e6563u, 0x00007265u, 0x00030005u, 0x00000080u, 0x0000636cu, 0x00040005u, 0x00000081u, 0x61726170u,
|
||||
0x0000006du, 0x00030005u, 0x00000085u, 0x00006c6cu, 0x00040005u, 0x0000008du, 0x61726170u, 0x0000006du,
|
||||
0x00030005u, 0x00000090u, 0x0000726cu, 0x00040005u, 0x00000098u, 0x61726170u, 0x0000006du, 0x00030005u,
|
||||
0x0000009bu, 0x0000756cu, 0x00040005u, 0x000000a3u, 0x61726170u, 0x0000006du, 0x00030005u, 0x000000a6u,
|
||||
0x0000646cu, 0x00040005u, 0x000000aeu, 0x61726170u, 0x0000006du, 0x00030005u, 0x000000b1u, 0x00004c64u,
|
||||
0x00030005u, 0x000000b6u, 0x00005264u, 0x00030005u, 0x000000bbu, 0x00005564u, 0x00030005u, 0x000000c0u,
|
||||
0x00004464u, 0x00050005u, 0x000000c5u, 0x61636f6cu, 0x6e694d6cu, 0x00000000u, 0x00050005u, 0x000000cfu,
|
||||
0x61636f6cu, 0x78614d6cu, 0x00000000u, 0x00060005u, 0x000000d9u, 0x61636f6cu, 0x6e6f436cu, 0x73617274u,
|
||||
0x00000074u, 0x00050005u, 0x000000ddu, 0x65726874u, 0x6c6f6873u, 0x00000064u, 0x00050005u, 0x000000e3u,
|
||||
0x74726576u, 0x6c616369u, 0x00000000u, 0x00050005u, 0x000000e7u, 0x69726f68u, 0x746e6f7au, 0x00006c61u,
|
||||
0x00050005u, 0x000000ebu, 0x6f727473u, 0x7365676eu, 0x00000074u, 0x00050005u, 0x000000f6u, 0x4374756fu,
|
||||
0x726f6c6fu, 0x00000000u, 0x00060005u, 0x000000fau, 0x74726576u, 0x6c616369u, 0x65676445u, 0x00000000u,
|
||||
0x00040005u, 0x000000feu, 0x676e6174u, 0x00746e65u, 0x00040005u, 0x0000010bu, 0x6d726f6eu, 0x00006c61u,
|
||||
0x00050005u, 0x0000011du, 0x6167656eu, 0x65766974u, 0x006e7552u, 0x00050005u, 0x0000011eu, 0x69736f70u,
|
||||
0x65766974u, 0x006e7552u, 0x00030005u, 0x00000120u, 0x00000069u, 0x00040005u, 0x00000129u, 0x7366666fu,
|
||||
0x00007465u, 0x00040005u, 0x0000012eu, 0x65676465u, 0x0000004eu, 0x00040005u, 0x00000136u, 0x61726170u,
|
||||
0x0000006du, 0x00040005u, 0x00000137u, 0x61726170u, 0x0000006du, 0x00040005u, 0x0000013eu, 0x61726170u,
|
||||
0x0000006du, 0x00040005u, 0x0000013fu, 0x61726170u, 0x0000006du, 0x00040005u, 0x00000143u, 0x65676465u,
|
||||
0x00000050u, 0x00040005u, 0x0000014bu, 0x61726170u, 0x0000006du, 0x00040005u, 0x0000014cu, 0x61726170u,
|
||||
0x0000006du, 0x00040005u, 0x00000153u, 0x61726170u, 0x0000006du, 0x00040005u, 0x00000154u, 0x61726170u,
|
||||
0x0000006du, 0x00040005u, 0x0000017bu, 0x6e617073u, 0x00000000u, 0x00060005u, 0x0000017fu, 0x65676465u,
|
||||
0x666e6f43u, 0x6e656469u, 0x00006563u, 0x00030005u, 0x00000186u, 0x0000776eu, 0x00040005u, 0x00000192u,
|
||||
0x61726170u, 0x0000006du, 0x00030005u, 0x00000195u, 0x0000656eu, 0x00040005u, 0x000001a0u, 0x61726170u,
|
||||
0x0000006du, 0x00030005u, 0x000001a3u, 0x00007773u, 0x00040005u, 0x000001aeu, 0x61726170u, 0x0000006du,
|
||||
0x00030005u, 0x000001b1u, 0x00006573u, 0x00040005u, 0x000001bbu, 0x61726170u, 0x0000006du, 0x00060005u,
|
||||
0x000001beu, 0x70646e65u, 0x746e696fu, 0x74746150u, 0x006e7265u, 0x00060005u, 0x000001c7u, 0x70646e65u,
|
||||
0x746e696fu, 0x61657241u, 0x00000000u, 0x00050005u, 0x000001ceu, 0x736f7263u, 0x676e6973u, 0x00000041u,
|
||||
0x00050005u, 0x000001ddu, 0x736f7263u, 0x676e6973u, 0x00000042u, 0x00070005u, 0x000001ecu, 0x736f7263u,
|
||||
0x676e6973u, 0x746e6f43u, 0x74736172u, 0x00000000u, 0x00060005u, 0x000001f1u, 0x736f7263u, 0x676e6973u,
|
||||
0x74746150u, 0x006e7265u, 0x00050005u, 0x000001f7u, 0x61657261u, 0x67696557u, 0x00007468u, 0x00070005u,
|
||||
0x00000200u, 0x67616964u, 0x6c616e6fu, 0x746e6f43u, 0x74736172u, 0x00000000u, 0x00060005u, 0x0000020au,
|
||||
0x6e726f63u, 0x61467265u, 0x726f7463u, 0x00000000u, 0x00050005u, 0x00000214u, 0x65736162u, 0x67696557u,
|
||||
0x00007468u, 0x00070005u, 0x0000021cu, 0x67616964u, 0x6c616e6fu, 0x65727453u, 0x6874676eu, 0x00000000u,
|
||||
0x00060005u, 0x00000227u, 0x67616964u, 0x6c616e6fu, 0x74746150u, 0x006e7265u, 0x00070005u, 0x0000022du,
|
||||
0x67616964u, 0x6c616e6fu, 0x6c6c6146u, 0x6b636162u, 0x00000000u, 0x00040005u, 0x00000235u, 0x67696577u,
|
||||
0x00007468u, 0x00040005u, 0x0000023eu, 0x6f726361u, 0x00007373u, 0x00040047u, 0x00000025u, 0x00000021u,
|
||||
0x00000000u, 0x00040047u, 0x00000025u, 0x00000022u, 0x00000000u, 0x00030047u, 0x00000064u, 0x00000002u,
|
||||
0x00050048u, 0x00000064u, 0x00000000u, 0x00000023u, 0x00000000u, 0x00050048u, 0x00000064u, 0x00000001u,
|
||||
0x00000023u, 0x00000010u, 0x00050048u, 0x00000064u, 0x00000002u, 0x00000023u, 0x00000018u, 0x00050048u,
|
||||
0x00000064u, 0x00000003u, 0x00000023u, 0x0000001cu, 0x00040047u, 0x00000072u, 0x0000001eu, 0x00000000u,
|
||||
0x00040047u, 0x000000f6u, 0x0000001eu, 0x00000000u, 0x00020013u, 0x00000002u, 0x00030021u, 0x00000003u,
|
||||
0x00000002u, 0x00030016u, 0x00000006u, 0x00000020u, 0x00040017u, 0x00000007u, 0x00000006u, 0x00000003u,
|
||||
0x00040020u, 0x00000008u, 0x00000007u, 0x00000007u, 0x00040021u, 0x00000009u, 0x00000006u, 0x00000008u,
|
||||
0x00040017u, 0x0000000du, 0x00000006u, 0x00000002u, 0x00040020u, 0x0000000eu, 0x00000007u, 0x0000000du,
|
||||
0x00050021u, 0x0000000fu, 0x00000006u, 0x0000000eu, 0x0000000eu, 0x0004002bu, 0x00000006u, 0x00000019u,
|
||||
0x3e59b3d0u, 0x0004002bu, 0x00000006u, 0x0000001au, 0x3f371759u, 0x0004002bu, 0x00000006u, 0x0000001bu,
|
||||
0x3d93dd98u, 0x0006002cu, 0x00000007u, 0x0000001cu, 0x00000019u, 0x0000001au, 0x0000001bu, 0x00040020u,
|
||||
0x00000020u, 0x00000007u, 0x00000006u, 0x00090019u, 0x00000022u, 0x00000006u, 0x00000001u, 0x00000000u,
|
||||
0x00000000u, 0x00000000u, 0x00000001u, 0x00000000u, 0x0003001bu, 0x00000023u, 0x00000022u, 0x00040020u,
|
||||
0x00000024u, 0x00000000u, 0x00000023u, 0x0004003bu, 0x00000024u, 0x00000025u, 0x00000000u, 0x00040015u,
|
||||
0x00000028u, 0x00000020u, 0x00000000u, 0x0004002bu, 0x00000028u, 0x00000029u, 0x00000000u, 0x0004002bu,
|
||||
0x00000006u, 0x0000002cu, 0x00000000u, 0x00040017u, 0x0000002fu, 0x00000006u, 0x00000004u, 0x0004002bu,
|
||||
0x00000028u, 0x00000048u, 0x00000001u, 0x0004002bu, 0x00000006u, 0x00000063u, 0x3f800000u, 0x0006001eu,
|
||||
0x00000064u, 0x0000002fu, 0x0000000du, 0x00000006u, 0x00000006u, 0x00040020u, 0x00000065u, 0x00000009u,
|
||||
0x00000064u, 0x0004003bu, 0x00000065u, 0x00000066u, 0x00000009u, 0x00040015u, 0x00000067u, 0x00000020u,
|
||||
0x00000001u, 0x0004002bu, 0x00000067u, 0x00000068u, 0x00000001u, 0x00040020u, 0x00000069u, 0x00000009u,
|
||||
0x0000000du, 0x0005002cu, 0x0000000du, 0x0000006cu, 0x00000063u, 0x00000063u, 0x00040020u, 0x00000071u,
|
||||
0x00000001u, 0x0000000du, 0x0004003bu, 0x00000071u, 0x00000072u, 0x00000001u, 0x0004002bu, 0x00000006u,
|
||||
0x00000075u, 0x3f000000u, 0x00040020u, 0x0000007bu, 0x00000007u, 0x0000002fu, 0x0004002bu, 0x00000006u,
|
||||
0x000000deu, 0x3d3851ecu, 0x0004002bu, 0x00000006u, 0x000000e0u, 0x3da3d70au, 0x00020014u, 0x000000f1u,
|
||||
0x00040020u, 0x000000f5u, 0x00000003u, 0x0000002fu, 0x0004003bu, 0x000000f5u, 0x000000f6u, 0x00000003u,
|
||||
0x00040020u, 0x000000f9u, 0x00000007u, 0x000000f1u, 0x0004002bu, 0x00000006u, 0x00000113u, 0xbf800000u,
|
||||
0x00040020u, 0x0000011fu, 0x00000007u, 0x00000067u, 0x0004002bu, 0x00000067u, 0x00000127u, 0x00000006u,
|
||||
0x0004002bu, 0x00000006u, 0x00000161u, 0x3f266666u, 0x0004002bu, 0x00000006u, 0x00000182u, 0x40200000u,
|
||||
0x0004002bu, 0x00000006u, 0x000001cau, 0x3d6147aeu, 0x0004002bu, 0x00000006u, 0x000001f8u, 0x3ec28f5cu,
|
||||
0x0004002bu, 0x00000006u, 0x000001fcu, 0x40800000u, 0x0004002bu, 0x00000006u, 0x0000020bu, 0x3e3851ecu,
|
||||
0x0004002bu, 0x00000006u, 0x0000020eu, 0x40400000u, 0x0004002bu, 0x00000006u, 0x0000022eu, 0x3e23d70au,
|
||||
0x0004002bu, 0x00000006u, 0x00000237u, 0x38d1b717u, 0x0004002bu, 0x00000006u, 0x0000023cu, 0x3ed70a3du,
|
||||
0x0004002bu, 0x00000028u, 0x0000024du, 0x00000003u, 0x00050036u, 0x00000002u, 0x00000004u, 0x00000000u,
|
||||
0x00000003u, 0x000200f8u, 0x00000005u, 0x0004003bu, 0x0000000eu, 0x00000062u, 0x00000007u, 0x0004003bu,
|
||||
0x0000000eu, 0x00000070u, 0x00000007u, 0x0004003bu, 0x0000007bu, 0x0000007cu, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x00000080u, 0x00000007u, 0x0004003bu, 0x00000008u, 0x00000081u, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x00000085u, 0x00000007u, 0x0004003bu, 0x00000008u, 0x0000008du, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x00000090u, 0x00000007u, 0x0004003bu, 0x00000008u, 0x00000098u, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x0000009bu, 0x00000007u, 0x0004003bu, 0x00000008u, 0x000000a3u, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x000000a6u, 0x00000007u, 0x0004003bu, 0x00000008u, 0x000000aeu, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x000000b1u, 0x00000007u, 0x0004003bu, 0x00000020u, 0x000000b6u, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x000000bbu, 0x00000007u, 0x0004003bu, 0x00000020u, 0x000000c0u, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x000000c5u, 0x00000007u, 0x0004003bu, 0x00000020u, 0x000000cfu, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x000000d9u, 0x00000007u, 0x0004003bu, 0x00000020u, 0x000000ddu, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x000000e3u, 0x00000007u, 0x0004003bu, 0x00000020u, 0x000000e7u, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x000000ebu, 0x00000007u, 0x0004003bu, 0x000000f9u, 0x000000fau, 0x00000007u, 0x0004003bu,
|
||||
0x0000000eu, 0x000000feu, 0x00000007u, 0x0004003bu, 0x0000000eu, 0x00000100u, 0x00000007u, 0x0004003bu,
|
||||
0x0000000eu, 0x0000010bu, 0x00000007u, 0x0004003bu, 0x0000000eu, 0x0000010du, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x0000011du, 0x00000007u, 0x0004003bu, 0x00000020u, 0x0000011eu, 0x00000007u, 0x0004003bu,
|
||||
0x0000011fu, 0x00000120u, 0x00000007u, 0x0004003bu, 0x0000000eu, 0x00000129u, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x0000012eu, 0x00000007u, 0x0004003bu, 0x00000020u, 0x00000130u, 0x00000007u, 0x0004003bu,
|
||||
0x0000000eu, 0x00000136u, 0x00000007u, 0x0004003bu, 0x0000000eu, 0x00000137u, 0x00000007u, 0x0004003bu,
|
||||
0x0000000eu, 0x0000013eu, 0x00000007u, 0x0004003bu, 0x0000000eu, 0x0000013fu, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x00000143u, 0x00000007u, 0x0004003bu, 0x00000020u, 0x00000145u, 0x00000007u, 0x0004003bu,
|
||||
0x0000000eu, 0x0000014bu, 0x00000007u, 0x0004003bu, 0x0000000eu, 0x0000014cu, 0x00000007u, 0x0004003bu,
|
||||
0x0000000eu, 0x00000153u, 0x00000007u, 0x0004003bu, 0x0000000eu, 0x00000154u, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x0000017bu, 0x00000007u, 0x0004003bu, 0x00000020u, 0x0000017fu, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x00000186u, 0x00000007u, 0x0004003bu, 0x00000008u, 0x00000192u, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x00000195u, 0x00000007u, 0x0004003bu, 0x00000008u, 0x000001a0u, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x000001a3u, 0x00000007u, 0x0004003bu, 0x00000008u, 0x000001aeu, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x000001b1u, 0x00000007u, 0x0004003bu, 0x00000008u, 0x000001bbu, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x000001beu, 0x00000007u, 0x0004003bu, 0x00000020u, 0x000001c7u, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x000001ceu, 0x00000007u, 0x0004003bu, 0x00000020u, 0x000001d0u, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x000001ddu, 0x00000007u, 0x0004003bu, 0x00000020u, 0x000001dfu, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x000001ecu, 0x00000007u, 0x0004003bu, 0x00000020u, 0x000001f1u, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x000001f7u, 0x00000007u, 0x0004003bu, 0x00000020u, 0x00000200u, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x0000020au, 0x00000007u, 0x0004003bu, 0x00000020u, 0x00000214u, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x0000021cu, 0x00000007u, 0x0004003bu, 0x00000020u, 0x00000227u, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x0000022du, 0x00000007u, 0x0004003bu, 0x00000020u, 0x00000235u, 0x00000007u, 0x0004003bu,
|
||||
0x00000008u, 0x0000023eu, 0x00000007u, 0x00050041u, 0x00000069u, 0x0000006au, 0x00000066u, 0x00000068u,
|
||||
0x0004003du, 0x0000000du, 0x0000006bu, 0x0000006au, 0x0007000cu, 0x0000000du, 0x0000006du, 0x00000001u,
|
||||
0x00000028u, 0x0000006bu, 0x0000006cu, 0x00050050u, 0x0000000du, 0x0000006eu, 0x00000063u, 0x00000063u,
|
||||
0x00050088u, 0x0000000du, 0x0000006fu, 0x0000006eu, 0x0000006du, 0x0003003eu, 0x00000062u, 0x0000006fu,
|
||||
0x0004003du, 0x0000000du, 0x00000073u, 0x00000072u, 0x0004003du, 0x0000000du, 0x00000074u, 0x00000062u,
|
||||
0x0005008eu, 0x0000000du, 0x00000076u, 0x00000074u, 0x00000075u, 0x0004003du, 0x0000000du, 0x00000077u,
|
||||
0x00000062u, 0x0005008eu, 0x0000000du, 0x00000078u, 0x00000077u, 0x00000075u, 0x00050083u, 0x0000000du,
|
||||
0x00000079u, 0x0000006cu, 0x00000078u, 0x0008000cu, 0x0000000du, 0x0000007au, 0x00000001u, 0x0000002bu,
|
||||
0x00000073u, 0x00000076u, 0x00000079u, 0x0003003eu, 0x00000070u, 0x0000007au, 0x0004003du, 0x00000023u,
|
||||
0x0000007du, 0x00000025u, 0x0004003du, 0x0000000du, 0x0000007eu, 0x00000070u, 0x00050057u, 0x0000002fu,
|
||||
0x0000007fu, 0x0000007du, 0x0000007eu, 0x0003003eu, 0x0000007cu, 0x0000007fu, 0x0004003du, 0x0000002fu,
|
||||
0x00000082u, 0x0000007cu, 0x0008004fu, 0x00000007u, 0x00000083u, 0x00000082u, 0x00000082u, 0x00000000u,
|
||||
0x00000001u, 0x00000002u, 0x0003003eu, 0x00000081u, 0x00000083u, 0x00050039u, 0x00000006u, 0x00000084u,
|
||||
0x0000000bu, 0x00000081u, 0x0003003eu, 0x00000080u, 0x00000084u, 0x0004003du, 0x00000023u, 0x00000086u,
|
||||
0x00000025u, 0x0004003du, 0x0000000du, 0x00000087u, 0x00000070u, 0x00050041u, 0x00000020u, 0x00000088u,
|
||||
0x00000062u, 0x00000029u, 0x0004003du, 0x00000006u, 0x00000089u, 0x00000088u, 0x00050050u, 0x0000000du,
|
||||
0x0000008au, 0x00000089u, 0x0000002cu, 0x00050083u, 0x0000000du, 0x0000008bu, 0x00000087u, 0x0000008au,
|
||||
0x00050057u, 0x0000002fu, 0x0000008cu, 0x00000086u, 0x0000008bu, 0x0008004fu, 0x00000007u, 0x0000008eu,
|
||||
0x0000008cu, 0x0000008cu, 0x00000000u, 0x00000001u, 0x00000002u, 0x0003003eu, 0x0000008du, 0x0000008eu,
|
||||
0x00050039u, 0x00000006u, 0x0000008fu, 0x0000000bu, 0x0000008du, 0x0003003eu, 0x00000085u, 0x0000008fu,
|
||||
0x0004003du, 0x00000023u, 0x00000091u, 0x00000025u, 0x0004003du, 0x0000000du, 0x00000092u, 0x00000070u,
|
||||
0x00050041u, 0x00000020u, 0x00000093u, 0x00000062u, 0x00000029u, 0x0004003du, 0x00000006u, 0x00000094u,
|
||||
0x00000093u, 0x00050050u, 0x0000000du, 0x00000095u, 0x00000094u, 0x0000002cu, 0x00050081u, 0x0000000du,
|
||||
0x00000096u, 0x00000092u, 0x00000095u, 0x00050057u, 0x0000002fu, 0x00000097u, 0x00000091u, 0x00000096u,
|
||||
0x0008004fu, 0x00000007u, 0x00000099u, 0x00000097u, 0x00000097u, 0x00000000u, 0x00000001u, 0x00000002u,
|
||||
0x0003003eu, 0x00000098u, 0x00000099u, 0x00050039u, 0x00000006u, 0x0000009au, 0x0000000bu, 0x00000098u,
|
||||
0x0003003eu, 0x00000090u, 0x0000009au, 0x0004003du, 0x00000023u, 0x0000009cu, 0x00000025u, 0x0004003du,
|
||||
0x0000000du, 0x0000009du, 0x00000070u, 0x00050041u, 0x00000020u, 0x0000009eu, 0x00000062u, 0x00000048u,
|
||||
0x0004003du, 0x00000006u, 0x0000009fu, 0x0000009eu, 0x00050050u, 0x0000000du, 0x000000a0u, 0x0000002cu,
|
||||
0x0000009fu, 0x00050083u, 0x0000000du, 0x000000a1u, 0x0000009du, 0x000000a0u, 0x00050057u, 0x0000002fu,
|
||||
0x000000a2u, 0x0000009cu, 0x000000a1u, 0x0008004fu, 0x00000007u, 0x000000a4u, 0x000000a2u, 0x000000a2u,
|
||||
0x00000000u, 0x00000001u, 0x00000002u, 0x0003003eu, 0x000000a3u, 0x000000a4u, 0x00050039u, 0x00000006u,
|
||||
0x000000a5u, 0x0000000bu, 0x000000a3u, 0x0003003eu, 0x0000009bu, 0x000000a5u, 0x0004003du, 0x00000023u,
|
||||
0x000000a7u, 0x00000025u, 0x0004003du, 0x0000000du, 0x000000a8u, 0x00000070u, 0x00050041u, 0x00000020u,
|
||||
0x000000a9u, 0x00000062u, 0x00000048u, 0x0004003du, 0x00000006u, 0x000000aau, 0x000000a9u, 0x00050050u,
|
||||
0x0000000du, 0x000000abu, 0x0000002cu, 0x000000aau, 0x00050081u, 0x0000000du, 0x000000acu, 0x000000a8u,
|
||||
0x000000abu, 0x00050057u, 0x0000002fu, 0x000000adu, 0x000000a7u, 0x000000acu, 0x0008004fu, 0x00000007u,
|
||||
0x000000afu, 0x000000adu, 0x000000adu, 0x00000000u, 0x00000001u, 0x00000002u, 0x0003003eu, 0x000000aeu,
|
||||
0x000000afu, 0x00050039u, 0x00000006u, 0x000000b0u, 0x0000000bu, 0x000000aeu, 0x0003003eu, 0x000000a6u,
|
||||
0x000000b0u, 0x0004003du, 0x00000006u, 0x000000b2u, 0x00000080u, 0x0004003du, 0x00000006u, 0x000000b3u,
|
||||
0x00000085u, 0x00050083u, 0x00000006u, 0x000000b4u, 0x000000b2u, 0x000000b3u, 0x0006000cu, 0x00000006u,
|
||||
0x000000b5u, 0x00000001u, 0x00000004u, 0x000000b4u, 0x0003003eu, 0x000000b1u, 0x000000b5u, 0x0004003du,
|
||||
0x00000006u, 0x000000b7u, 0x00000080u, 0x0004003du, 0x00000006u, 0x000000b8u, 0x00000090u, 0x00050083u,
|
||||
0x00000006u, 0x000000b9u, 0x000000b7u, 0x000000b8u, 0x0006000cu, 0x00000006u, 0x000000bau, 0x00000001u,
|
||||
0x00000004u, 0x000000b9u, 0x0003003eu, 0x000000b6u, 0x000000bau, 0x0004003du, 0x00000006u, 0x000000bcu,
|
||||
0x00000080u, 0x0004003du, 0x00000006u, 0x000000bdu, 0x0000009bu, 0x00050083u, 0x00000006u, 0x000000beu,
|
||||
0x000000bcu, 0x000000bdu, 0x0006000cu, 0x00000006u, 0x000000bfu, 0x00000001u, 0x00000004u, 0x000000beu,
|
||||
0x0003003eu, 0x000000bbu, 0x000000bfu, 0x0004003du, 0x00000006u, 0x000000c1u, 0x00000080u, 0x0004003du,
|
||||
0x00000006u, 0x000000c2u, 0x000000a6u, 0x00050083u, 0x00000006u, 0x000000c3u, 0x000000c1u, 0x000000c2u,
|
||||
0x0006000cu, 0x00000006u, 0x000000c4u, 0x00000001u, 0x00000004u, 0x000000c3u, 0x0003003eu, 0x000000c0u,
|
||||
0x000000c4u, 0x0004003du, 0x00000006u, 0x000000c6u, 0x00000080u, 0x0004003du, 0x00000006u, 0x000000c7u,
|
||||
0x00000085u, 0x0004003du, 0x00000006u, 0x000000c8u, 0x00000090u, 0x0007000cu, 0x00000006u, 0x000000c9u,
|
||||
0x00000001u, 0x00000025u, 0x000000c7u, 0x000000c8u, 0x0004003du, 0x00000006u, 0x000000cau, 0x0000009bu,
|
||||
0x0004003du, 0x00000006u, 0x000000cbu, 0x000000a6u, 0x0007000cu, 0x00000006u, 0x000000ccu, 0x00000001u,
|
||||
0x00000025u, 0x000000cau, 0x000000cbu, 0x0007000cu, 0x00000006u, 0x000000cdu, 0x00000001u, 0x00000025u,
|
||||
0x000000c9u, 0x000000ccu, 0x0007000cu, 0x00000006u, 0x000000ceu, 0x00000001u, 0x00000025u, 0x000000c6u,
|
||||
0x000000cdu, 0x0003003eu, 0x000000c5u, 0x000000ceu, 0x0004003du, 0x00000006u, 0x000000d0u, 0x00000080u,
|
||||
0x0004003du, 0x00000006u, 0x000000d1u, 0x00000085u, 0x0004003du, 0x00000006u, 0x000000d2u, 0x00000090u,
|
||||
0x0007000cu, 0x00000006u, 0x000000d3u, 0x00000001u, 0x00000028u, 0x000000d1u, 0x000000d2u, 0x0004003du,
|
||||
0x00000006u, 0x000000d4u, 0x0000009bu, 0x0004003du, 0x00000006u, 0x000000d5u, 0x000000a6u, 0x0007000cu,
|
||||
0x00000006u, 0x000000d6u, 0x00000001u, 0x00000028u, 0x000000d4u, 0x000000d5u, 0x0007000cu, 0x00000006u,
|
||||
0x000000d7u, 0x00000001u, 0x00000028u, 0x000000d3u, 0x000000d6u, 0x0007000cu, 0x00000006u, 0x000000d8u,
|
||||
0x00000001u, 0x00000028u, 0x000000d0u, 0x000000d7u, 0x0003003eu, 0x000000cfu, 0x000000d8u, 0x0004003du,
|
||||
0x00000006u, 0x000000dau, 0x000000cfu, 0x0004003du, 0x00000006u, 0x000000dbu, 0x000000c5u, 0x00050083u,
|
||||
0x00000006u, 0x000000dcu, 0x000000dau, 0x000000dbu, 0x0003003eu, 0x000000d9u, 0x000000dcu, 0x0004003du,
|
||||
0x00000006u, 0x000000dfu, 0x000000d9u, 0x00050085u, 0x00000006u, 0x000000e1u, 0x000000dfu, 0x000000e0u,
|
||||
0x0007000cu, 0x00000006u, 0x000000e2u, 0x00000001u, 0x00000028u, 0x000000deu, 0x000000e1u, 0x0003003eu,
|
||||
0x000000ddu, 0x000000e2u, 0x0004003du, 0x00000006u, 0x000000e4u, 0x000000b1u, 0x0004003du, 0x00000006u,
|
||||
0x000000e5u, 0x000000b6u, 0x0007000cu, 0x00000006u, 0x000000e6u, 0x00000001u, 0x00000028u, 0x000000e4u,
|
||||
0x000000e5u, 0x0003003eu, 0x000000e3u, 0x000000e6u, 0x0004003du, 0x00000006u, 0x000000e8u, 0x000000bbu,
|
||||
0x0004003du, 0x00000006u, 0x000000e9u, 0x000000c0u, 0x0007000cu, 0x00000006u, 0x000000eau, 0x00000001u,
|
||||
0x00000028u, 0x000000e8u, 0x000000e9u, 0x0003003eu, 0x000000e7u, 0x000000eau, 0x0004003du, 0x00000006u,
|
||||
0x000000ecu, 0x000000e3u, 0x0004003du, 0x00000006u, 0x000000edu, 0x000000e7u, 0x0007000cu, 0x00000006u,
|
||||
0x000000eeu, 0x00000001u, 0x00000028u, 0x000000ecu, 0x000000edu, 0x0003003eu, 0x000000ebu, 0x000000eeu,
|
||||
0x0004003du, 0x00000006u, 0x000000efu, 0x000000ebu, 0x0004003du, 0x00000006u, 0x000000f0u, 0x000000ddu,
|
||||
0x000500bcu, 0x000000f1u, 0x000000f2u, 0x000000efu, 0x000000f0u, 0x000300f7u, 0x000000f4u, 0x00000000u,
|
||||
0x000400fau, 0x000000f2u, 0x000000f3u, 0x000000f4u, 0x000200f8u, 0x000000f3u, 0x0004003du, 0x0000002fu,
|
||||
0x000000f7u, 0x0000007cu, 0x0003003eu, 0x000000f6u, 0x000000f7u, 0x000100fdu, 0x000200f8u, 0x000000f4u,
|
||||
0x0004003du, 0x00000006u, 0x000000fbu, 0x000000e3u, 0x0004003du, 0x00000006u, 0x000000fcu, 0x000000e7u,
|
||||
0x000500beu, 0x000000f1u, 0x000000fdu, 0x000000fbu, 0x000000fcu, 0x0003003eu, 0x000000fau, 0x000000fdu,
|
||||
0x0004003du, 0x000000f1u, 0x000000ffu, 0x000000fau, 0x000300f7u, 0x00000102u, 0x00000000u, 0x000400fau,
|
||||
0x000000ffu, 0x00000101u, 0x00000106u, 0x000200f8u, 0x00000101u, 0x00050041u, 0x00000020u, 0x00000103u,
|
||||
0x00000062u, 0x00000048u, 0x0004003du, 0x00000006u, 0x00000104u, 0x00000103u, 0x00050050u, 0x0000000du,
|
||||
0x00000105u, 0x0000002cu, 0x00000104u, 0x0003003eu, 0x00000100u, 0x00000105u, 0x000200f9u, 0x00000102u,
|
||||
0x000200f8u, 0x00000106u, 0x00050041u, 0x00000020u, 0x00000107u, 0x00000062u, 0x00000029u, 0x0004003du,
|
||||
0x00000006u, 0x00000108u, 0x00000107u, 0x00050050u, 0x0000000du, 0x00000109u, 0x00000108u, 0x0000002cu,
|
||||
0x0003003eu, 0x00000100u, 0x00000109u, 0x000200f9u, 0x00000102u, 0x000200f8u, 0x00000102u, 0x0004003du,
|
||||
0x0000000du, 0x0000010au, 0x00000100u, 0x0003003eu, 0x000000feu, 0x0000010au, 0x0004003du, 0x000000f1u,
|
||||
0x0000010cu, 0x000000fau, 0x000300f7u, 0x0000010fu, 0x00000000u, 0x000400fau, 0x0000010cu, 0x0000010eu,
|
||||
0x00000116u, 0x000200f8u, 0x0000010eu, 0x0004003du, 0x00000006u, 0x00000110u, 0x000000b1u, 0x0004003du,
|
||||
0x00000006u, 0x00000111u, 0x000000b6u, 0x000500beu, 0x000000f1u, 0x00000112u, 0x00000110u, 0x00000111u,
|
||||
0x000600a9u, 0x00000006u, 0x00000114u, 0x00000112u, 0x00000113u, 0x00000063u, 0x00050050u, 0x0000000du,
|
||||
0x00000115u, 0x00000114u, 0x0000002cu, 0x0003003eu, 0x0000010du, 0x00000115u, 0x000200f9u, 0x0000010fu,
|
||||
0x000200f8u, 0x00000116u, 0x0004003du, 0x00000006u, 0x00000117u, 0x000000bbu, 0x0004003du, 0x00000006u,
|
||||
0x00000118u, 0x000000c0u, 0x000500beu, 0x000000f1u, 0x00000119u, 0x00000117u, 0x00000118u, 0x000600a9u,
|
||||
0x00000006u, 0x0000011au, 0x00000119u, 0x00000113u, 0x00000063u, 0x00050050u, 0x0000000du, 0x0000011bu,
|
||||
0x0000002cu, 0x0000011au, 0x0003003eu, 0x0000010du, 0x0000011bu, 0x000200f9u, 0x0000010fu, 0x000200f8u,
|
||||
0x0000010fu, 0x0004003du, 0x0000000du, 0x0000011cu, 0x0000010du, 0x0003003eu, 0x0000010bu, 0x0000011cu,
|
||||
0x0003003eu, 0x0000011du, 0x0000002cu, 0x0003003eu, 0x0000011eu, 0x0000002cu, 0x0003003eu, 0x00000120u,
|
||||
0x00000068u, 0x000200f9u, 0x00000121u, 0x000200f8u, 0x00000121u, 0x000400f6u, 0x00000123u, 0x00000124u,
|
||||
0x00000000u, 0x000200f9u, 0x00000125u, 0x000200f8u, 0x00000125u, 0x0004003du, 0x00000067u, 0x00000126u,
|
||||
0x00000120u, 0x000500b3u, 0x000000f1u, 0x00000128u, 0x00000126u, 0x00000127u, 0x000400fau, 0x00000128u,
|
||||
0x00000122u, 0x00000123u, 0x000200f8u, 0x00000122u, 0x0004003du, 0x0000000du, 0x0000012au, 0x000000feu,
|
||||
0x0004003du, 0x00000067u, 0x0000012bu, 0x00000120u, 0x0004006fu, 0x00000006u, 0x0000012cu, 0x0000012bu,
|
||||
0x0005008eu, 0x0000000du, 0x0000012du, 0x0000012au, 0x0000012cu, 0x0003003eu, 0x00000129u, 0x0000012du,
|
||||
0x0004003du, 0x000000f1u, 0x0000012fu, 0x000000fau, 0x000300f7u, 0x00000132u, 0x00000000u, 0x000400fau,
|
||||
0x0000012fu, 0x00000131u, 0x0000013au, 0x000200f8u, 0x00000131u, 0x0004003du, 0x0000000du, 0x00000133u,
|
||||
0x00000070u, 0x0004003du, 0x0000000du, 0x00000134u, 0x00000129u, 0x00050083u, 0x0000000du, 0x00000135u,
|
||||
0x00000133u, 0x00000134u, 0x0003003eu, 0x00000136u, 0x00000135u, 0x0004003du, 0x0000000du, 0x00000138u,
|
||||
0x00000062u, 0x0003003eu, 0x00000137u, 0x00000138u, 0x00060039u, 0x00000006u, 0x00000139u, 0x00000012u,
|
||||
0x00000136u, 0x00000137u, 0x0003003eu, 0x00000130u, 0x00000139u, 0x000200f9u, 0x00000132u, 0x000200f8u,
|
||||
0x0000013au, 0x0004003du, 0x0000000du, 0x0000013bu, 0x00000070u, 0x0004003du, 0x0000000du, 0x0000013cu,
|
||||
0x00000129u, 0x00050083u, 0x0000000du, 0x0000013du, 0x0000013bu, 0x0000013cu, 0x0003003eu, 0x0000013eu,
|
||||
0x0000013du, 0x0004003du, 0x0000000du, 0x00000140u, 0x00000062u, 0x0003003eu, 0x0000013fu, 0x00000140u,
|
||||
0x00060039u, 0x00000006u, 0x00000141u, 0x00000016u, 0x0000013eu, 0x0000013fu, 0x0003003eu, 0x00000130u,
|
||||
0x00000141u, 0x000200f9u, 0x00000132u, 0x000200f8u, 0x00000132u, 0x0004003du, 0x00000006u, 0x00000142u,
|
||||
0x00000130u, 0x0003003eu, 0x0000012eu, 0x00000142u, 0x0004003du, 0x000000f1u, 0x00000144u, 0x000000fau,
|
||||
0x000300f7u, 0x00000147u, 0x00000000u, 0x000400fau, 0x00000144u, 0x00000146u, 0x0000014fu, 0x000200f8u,
|
||||
0x00000146u, 0x0004003du, 0x0000000du, 0x00000148u, 0x00000070u, 0x0004003du, 0x0000000du, 0x00000149u,
|
||||
0x00000129u, 0x00050081u, 0x0000000du, 0x0000014au, 0x00000148u, 0x00000149u, 0x0003003eu, 0x0000014bu,
|
||||
0x0000014au, 0x0004003du, 0x0000000du, 0x0000014du, 0x00000062u, 0x0003003eu, 0x0000014cu, 0x0000014du,
|
||||
0x00060039u, 0x00000006u, 0x0000014eu, 0x00000012u, 0x0000014bu, 0x0000014cu, 0x0003003eu, 0x00000145u,
|
||||
0x0000014eu, 0x000200f9u, 0x00000147u, 0x000200f8u, 0x0000014fu, 0x0004003du, 0x0000000du, 0x00000150u,
|
||||
0x00000070u, 0x0004003du, 0x0000000du, 0x00000151u, 0x00000129u, 0x00050081u, 0x0000000du, 0x00000152u,
|
||||
0x00000150u, 0x00000151u, 0x0003003eu, 0x00000153u, 0x00000152u, 0x0004003du, 0x0000000du, 0x00000155u,
|
||||
0x00000062u, 0x0003003eu, 0x00000154u, 0x00000155u, 0x00060039u, 0x00000006u, 0x00000156u, 0x00000016u,
|
||||
0x00000153u, 0x00000154u, 0x0003003eu, 0x00000145u, 0x00000156u, 0x000200f9u, 0x00000147u, 0x000200f8u,
|
||||
0x00000147u, 0x0004003du, 0x00000006u, 0x00000157u, 0x00000145u, 0x0003003eu, 0x00000143u, 0x00000157u,
|
||||
0x0004003du, 0x00000006u, 0x00000158u, 0x0000011du, 0x0004003du, 0x00000067u, 0x00000159u, 0x00000120u,
|
||||
0x00050082u, 0x00000067u, 0x0000015au, 0x00000159u, 0x00000068u, 0x0004006fu, 0x00000006u, 0x0000015bu,
|
||||
0x0000015au, 0x000500b4u, 0x000000f1u, 0x0000015cu, 0x00000158u, 0x0000015bu, 0x000300f7u, 0x0000015eu,
|
||||
0x00000000u, 0x000400fau, 0x0000015cu, 0x0000015du, 0x0000015eu, 0x000200f8u, 0x0000015du, 0x0004003du,
|
||||
0x00000006u, 0x0000015fu, 0x0000012eu, 0x0004003du, 0x00000006u, 0x00000160u, 0x000000ddu, 0x00050085u,
|
||||
0x00000006u, 0x00000162u, 0x00000160u, 0x00000161u, 0x000500bau, 0x000000f1u, 0x00000163u, 0x0000015fu,
|
||||
0x00000162u, 0x000200f9u, 0x0000015eu, 0x000200f8u, 0x0000015eu, 0x000700f5u, 0x000000f1u, 0x00000164u,
|
||||
0x0000015cu, 0x00000147u, 0x00000163u, 0x0000015du, 0x000300f7u, 0x00000166u, 0x00000000u, 0x000400fau,
|
||||
0x00000164u, 0x00000165u, 0x00000166u, 0x000200f8u, 0x00000165u, 0x0004003du, 0x00000067u, 0x00000167u,
|
||||
0x00000120u, 0x0004006fu, 0x00000006u, 0x00000168u, 0x00000167u, 0x0003003eu, 0x0000011du, 0x00000168u,
|
||||
0x000200f9u, 0x00000166u, 0x000200f8u, 0x00000166u, 0x0004003du, 0x00000006u, 0x00000169u, 0x0000011eu,
|
||||
0x0004003du, 0x00000067u, 0x0000016au, 0x00000120u, 0x00050082u, 0x00000067u, 0x0000016bu, 0x0000016au,
|
||||
0x00000068u, 0x0004006fu, 0x00000006u, 0x0000016cu, 0x0000016bu, 0x000500b4u, 0x000000f1u, 0x0000016du,
|
||||
0x00000169u, 0x0000016cu, 0x000300f7u, 0x0000016fu, 0x00000000u, 0x000400fau, 0x0000016du, 0x0000016eu,
|
||||
0x0000016fu, 0x000200f8u, 0x0000016eu, 0x0004003du, 0x00000006u, 0x00000170u, 0x00000143u, 0x0004003du,
|
||||
0x00000006u, 0x00000171u, 0x000000ddu, 0x00050085u, 0x00000006u, 0x00000172u, 0x00000171u, 0x00000161u,
|
||||
0x000500bau, 0x000000f1u, 0x00000173u, 0x00000170u, 0x00000172u, 0x000200f9u, 0x0000016fu, 0x000200f8u,
|
||||
0x0000016fu, 0x000700f5u, 0x000000f1u, 0x00000174u, 0x0000016du, 0x00000166u, 0x00000173u, 0x0000016eu,
|
||||
0x000300f7u, 0x00000176u, 0x00000000u, 0x000400fau, 0x00000174u, 0x00000175u, 0x00000176u, 0x000200f8u,
|
||||
0x00000175u, 0x0004003du, 0x00000067u, 0x00000177u, 0x00000120u, 0x0004006fu, 0x00000006u, 0x00000178u,
|
||||
0x00000177u, 0x0003003eu, 0x0000011eu, 0x00000178u, 0x000200f9u, 0x00000176u, 0x000200f8u, 0x00000176u,
|
||||
0x000200f9u, 0x00000124u, 0x000200f8u, 0x00000124u, 0x0004003du, 0x00000067u, 0x00000179u, 0x00000120u,
|
||||
0x00050080u, 0x00000067u, 0x0000017au, 0x00000179u, 0x00000068u, 0x0003003eu, 0x00000120u, 0x0000017au,
|
||||
0x000200f9u, 0x00000121u, 0x000200f8u, 0x00000123u, 0x0004003du, 0x00000006u, 0x0000017cu, 0x0000011du,
|
||||
0x0004003du, 0x00000006u, 0x0000017du, 0x0000011eu, 0x00050081u, 0x00000006u, 0x0000017eu, 0x0000017cu,
|
||||
0x0000017du, 0x0003003eu, 0x0000017bu, 0x0000017eu, 0x0004003du, 0x00000006u, 0x00000180u, 0x000000ddu,
|
||||
0x0004003du, 0x00000006u, 0x00000181u, 0x000000ddu, 0x00050085u, 0x00000006u, 0x00000183u, 0x00000181u,
|
||||
0x00000182u, 0x0004003du, 0x00000006u, 0x00000184u, 0x000000ebu, 0x0008000cu, 0x00000006u, 0x00000185u,
|
||||
0x00000001u, 0x00000031u, 0x00000180u, 0x00000183u, 0x00000184u, 0x0003003eu, 0x0000017fu, 0x00000185u,
|
||||
0x0004003du, 0x00000023u, 0x00000187u, 0x00000025u, 0x0004003du, 0x0000000du, 0x00000188u, 0x00000070u,
|
||||
0x00050041u, 0x00000020u, 0x00000189u, 0x00000062u, 0x00000029u, 0x0004003du, 0x00000006u, 0x0000018au,
|
||||
0x00000189u, 0x0004007fu, 0x00000006u, 0x0000018bu, 0x0000018au, 0x00050041u, 0x00000020u, 0x0000018cu,
|
||||
0x00000062u, 0x00000048u, 0x0004003du, 0x00000006u, 0x0000018du, 0x0000018cu, 0x0004007fu, 0x00000006u,
|
||||
0x0000018eu, 0x0000018du, 0x00050050u, 0x0000000du, 0x0000018fu, 0x0000018bu, 0x0000018eu, 0x00050081u,
|
||||
0x0000000du, 0x00000190u, 0x00000188u, 0x0000018fu, 0x00050057u, 0x0000002fu, 0x00000191u, 0x00000187u,
|
||||
0x00000190u, 0x0008004fu, 0x00000007u, 0x00000193u, 0x00000191u, 0x00000191u, 0x00000000u, 0x00000001u,
|
||||
0x00000002u, 0x0003003eu, 0x00000192u, 0x00000193u, 0x00050039u, 0x00000006u, 0x00000194u, 0x0000000bu,
|
||||
0x00000192u, 0x0003003eu, 0x00000186u, 0x00000194u, 0x0004003du, 0x00000023u, 0x00000196u, 0x00000025u,
|
||||
0x0004003du, 0x0000000du, 0x00000197u, 0x00000070u, 0x00050041u, 0x00000020u, 0x00000198u, 0x00000062u,
|
||||
0x00000029u, 0x0004003du, 0x00000006u, 0x00000199u, 0x00000198u, 0x00050041u, 0x00000020u, 0x0000019au,
|
||||
0x00000062u, 0x00000048u, 0x0004003du, 0x00000006u, 0x0000019bu, 0x0000019au, 0x0004007fu, 0x00000006u,
|
||||
0x0000019cu, 0x0000019bu, 0x00050050u, 0x0000000du, 0x0000019du, 0x00000199u, 0x0000019cu, 0x00050081u,
|
||||
0x0000000du, 0x0000019eu, 0x00000197u, 0x0000019du, 0x00050057u, 0x0000002fu, 0x0000019fu, 0x00000196u,
|
||||
0x0000019eu, 0x0008004fu, 0x00000007u, 0x000001a1u, 0x0000019fu, 0x0000019fu, 0x00000000u, 0x00000001u,
|
||||
0x00000002u, 0x0003003eu, 0x000001a0u, 0x000001a1u, 0x00050039u, 0x00000006u, 0x000001a2u, 0x0000000bu,
|
||||
0x000001a0u, 0x0003003eu, 0x00000195u, 0x000001a2u, 0x0004003du, 0x00000023u, 0x000001a4u, 0x00000025u,
|
||||
0x0004003du, 0x0000000du, 0x000001a5u, 0x00000070u, 0x00050041u, 0x00000020u, 0x000001a6u, 0x00000062u,
|
||||
0x00000029u, 0x0004003du, 0x00000006u, 0x000001a7u, 0x000001a6u, 0x0004007fu, 0x00000006u, 0x000001a8u,
|
||||
0x000001a7u, 0x00050041u, 0x00000020u, 0x000001a9u, 0x00000062u, 0x00000048u, 0x0004003du, 0x00000006u,
|
||||
0x000001aau, 0x000001a9u, 0x00050050u, 0x0000000du, 0x000001abu, 0x000001a8u, 0x000001aau, 0x00050081u,
|
||||
0x0000000du, 0x000001acu, 0x000001a5u, 0x000001abu, 0x00050057u, 0x0000002fu, 0x000001adu, 0x000001a4u,
|
||||
0x000001acu, 0x0008004fu, 0x00000007u, 0x000001afu, 0x000001adu, 0x000001adu, 0x00000000u, 0x00000001u,
|
||||
0x00000002u, 0x0003003eu, 0x000001aeu, 0x000001afu, 0x00050039u, 0x00000006u, 0x000001b0u, 0x0000000bu,
|
||||
0x000001aeu, 0x0003003eu, 0x000001a3u, 0x000001b0u, 0x0004003du, 0x00000023u, 0x000001b2u, 0x00000025u,
|
||||
0x0004003du, 0x0000000du, 0x000001b3u, 0x00000070u, 0x00050041u, 0x00000020u, 0x000001b4u, 0x00000062u,
|
||||
0x00000029u, 0x0004003du, 0x00000006u, 0x000001b5u, 0x000001b4u, 0x00050041u, 0x00000020u, 0x000001b6u,
|
||||
0x00000062u, 0x00000048u, 0x0004003du, 0x00000006u, 0x000001b7u, 0x000001b6u, 0x00050050u, 0x0000000du,
|
||||
0x000001b8u, 0x000001b5u, 0x000001b7u, 0x00050081u, 0x0000000du, 0x000001b9u, 0x000001b3u, 0x000001b8u,
|
||||
0x00050057u, 0x0000002fu, 0x000001bau, 0x000001b2u, 0x000001b9u, 0x0008004fu, 0x00000007u, 0x000001bcu,
|
||||
0x000001bau, 0x000001bau, 0x00000000u, 0x00000001u, 0x00000002u, 0x0003003eu, 0x000001bbu, 0x000001bcu,
|
||||
0x00050039u, 0x00000006u, 0x000001bdu, 0x0000000bu, 0x000001bbu, 0x0003003eu, 0x000001b1u, 0x000001bdu,
|
||||
0x0004003du, 0x00000006u, 0x000001bfu, 0x0000011du, 0x0004003du, 0x00000006u, 0x000001c0u, 0x0000011eu,
|
||||
0x00050083u, 0x00000006u, 0x000001c1u, 0x000001bfu, 0x000001c0u, 0x0006000cu, 0x00000006u, 0x000001c2u,
|
||||
0x00000001u, 0x00000004u, 0x000001c1u, 0x0004003du, 0x00000006u, 0x000001c3u, 0x0000017bu, 0x0007000cu,
|
||||
0x00000006u, 0x000001c4u, 0x00000001u, 0x00000028u, 0x000001c3u, 0x00000063u, 0x00050088u, 0x00000006u,
|
||||
0x000001c5u, 0x000001c2u, 0x000001c4u, 0x0008000cu, 0x00000006u, 0x000001c6u, 0x00000001u, 0x0000002bu,
|
||||
0x000001c5u, 0x0000002cu, 0x00000063u, 0x0003003eu, 0x000001beu, 0x000001c6u, 0x0004003du, 0x00000006u,
|
||||
0x000001c8u, 0x000001beu, 0x0004003du, 0x00000006u, 0x000001c9u, 0x0000017bu, 0x00050085u, 0x00000006u,
|
||||
0x000001cbu, 0x000001c9u, 0x000001cau, 0x00050081u, 0x00000006u, 0x000001ccu, 0x00000063u, 0x000001cbu,
|
||||
0x00050088u, 0x00000006u, 0x000001cdu, 0x000001c8u, 0x000001ccu, 0x0003003eu, 0x000001c7u, 0x000001cdu,
|
||||
0x0004003du, 0x000000f1u, 0x000001cfu, 0x000000fau, 0x000300f7u, 0x000001d2u, 0x00000000u, 0x000400fau,
|
||||
0x000001cfu, 0x000001d1u, 0x000001d7u, 0x000200f8u, 0x000001d1u, 0x0004003du, 0x00000006u, 0x000001d3u,
|
||||
0x00000186u, 0x0004003du, 0x00000006u, 0x000001d4u, 0x00000195u, 0x00050083u, 0x00000006u, 0x000001d5u,
|
||||
0x000001d3u, 0x000001d4u, 0x0006000cu, 0x00000006u, 0x000001d6u, 0x00000001u, 0x00000004u, 0x000001d5u,
|
||||
0x0003003eu, 0x000001d0u, 0x000001d6u, 0x000200f9u, 0x000001d2u, 0x000200f8u, 0x000001d7u, 0x0004003du,
|
||||
0x00000006u, 0x000001d8u, 0x00000186u, 0x0004003du, 0x00000006u, 0x000001d9u, 0x000001a3u, 0x00050083u,
|
||||
0x00000006u, 0x000001dau, 0x000001d8u, 0x000001d9u, 0x0006000cu, 0x00000006u, 0x000001dbu, 0x00000001u,
|
||||
0x00000004u, 0x000001dau, 0x0003003eu, 0x000001d0u, 0x000001dbu, 0x000200f9u, 0x000001d2u, 0x000200f8u,
|
||||
0x000001d2u, 0x0004003du, 0x00000006u, 0x000001dcu, 0x000001d0u, 0x0003003eu, 0x000001ceu, 0x000001dcu,
|
||||
0x0004003du, 0x000000f1u, 0x000001deu, 0x000000fau, 0x000300f7u, 0x000001e1u, 0x00000000u, 0x000400fau,
|
||||
0x000001deu, 0x000001e0u, 0x000001e6u, 0x000200f8u, 0x000001e0u, 0x0004003du, 0x00000006u, 0x000001e2u,
|
||||
0x000001a3u, 0x0004003du, 0x00000006u, 0x000001e3u, 0x000001b1u, 0x00050083u, 0x00000006u, 0x000001e4u,
|
||||
0x000001e2u, 0x000001e3u, 0x0006000cu, 0x00000006u, 0x000001e5u, 0x00000001u, 0x00000004u, 0x000001e4u,
|
||||
0x0003003eu, 0x000001dfu, 0x000001e5u, 0x000200f9u, 0x000001e1u, 0x000200f8u, 0x000001e6u, 0x0004003du,
|
||||
0x00000006u, 0x000001e7u, 0x00000195u, 0x0004003du, 0x00000006u, 0x000001e8u, 0x000001b1u, 0x00050083u,
|
||||
0x00000006u, 0x000001e9u, 0x000001e7u, 0x000001e8u, 0x0006000cu, 0x00000006u, 0x000001eau, 0x00000001u,
|
||||
0x00000004u, 0x000001e9u, 0x0003003eu, 0x000001dfu, 0x000001eau, 0x000200f9u, 0x000001e1u, 0x000200f8u,
|
||||
0x000001e1u, 0x0004003du, 0x00000006u, 0x000001ebu, 0x000001dfu, 0x0003003eu, 0x000001ddu, 0x000001ebu,
|
||||
0x0004003du, 0x00000006u, 0x000001edu, 0x000001ceu, 0x0004003du, 0x00000006u, 0x000001eeu, 0x000001ddu,
|
||||
0x00050083u, 0x00000006u, 0x000001efu, 0x000001edu, 0x000001eeu, 0x0006000cu, 0x00000006u, 0x000001f0u,
|
||||
0x00000001u, 0x00000004u, 0x000001efu, 0x0003003eu, 0x000001ecu, 0x000001f0u, 0x0004003du, 0x00000006u,
|
||||
0x000001f2u, 0x000000ddu, 0x0004003du, 0x00000006u, 0x000001f3u, 0x000000ddu, 0x00050085u, 0x00000006u,
|
||||
0x000001f4u, 0x000001f3u, 0x00000182u, 0x0004003du, 0x00000006u, 0x000001f5u, 0x000001ecu, 0x0008000cu,
|
||||
0x00000006u, 0x000001f6u, 0x00000001u, 0x00000031u, 0x000001f2u, 0x000001f4u, 0x000001f5u, 0x0003003eu,
|
||||
0x000001f1u, 0x000001f6u, 0x0004003du, 0x00000006u, 0x000001f9u, 0x000001f1u, 0x00050085u, 0x00000006u,
|
||||
0x000001fau, 0x000001f8u, 0x000001f9u, 0x0004003du, 0x00000006u, 0x000001fbu, 0x0000017bu, 0x00050088u,
|
||||
0x00000006u, 0x000001fdu, 0x000001fbu, 0x000001fcu, 0x0008000cu, 0x00000006u, 0x000001feu, 0x00000001u,
|
||||
0x0000002bu, 0x000001fdu, 0x0000002cu, 0x00000063u, 0x00050085u, 0x00000006u, 0x000001ffu, 0x000001fau,
|
||||
0x000001feu, 0x0003003eu, 0x000001f7u, 0x000001ffu, 0x0004003du, 0x00000006u, 0x00000201u, 0x00000186u,
|
||||
0x0004003du, 0x00000006u, 0x00000202u, 0x000001b1u, 0x00050083u, 0x00000006u, 0x00000203u, 0x00000201u,
|
||||
0x00000202u, 0x0006000cu, 0x00000006u, 0x00000204u, 0x00000001u, 0x00000004u, 0x00000203u, 0x0004003du,
|
||||
0x00000006u, 0x00000205u, 0x00000195u, 0x0004003du, 0x00000006u, 0x00000206u, 0x000001a3u, 0x00050083u,
|
||||
0x00000006u, 0x00000207u, 0x00000205u, 0x00000206u, 0x0006000cu, 0x00000006u, 0x00000208u, 0x00000001u,
|
||||
0x00000004u, 0x00000207u, 0x0007000cu, 0x00000006u, 0x00000209u, 0x00000001u, 0x00000028u, 0x00000204u,
|
||||
0x00000208u, 0x0003003eu, 0x00000200u, 0x00000209u, 0x0004003du, 0x00000006u, 0x0000020cu, 0x000000ddu,
|
||||
0x0004003du, 0x00000006u, 0x0000020du, 0x000000ddu, 0x00050085u, 0x00000006u, 0x0000020fu, 0x0000020du,
|
||||
0x0000020eu, 0x0004003du, 0x00000006u, 0x00000210u, 0x00000200u, 0x0008000cu, 0x00000006u, 0x00000211u,
|
||||
0x00000001u, 0x00000031u, 0x0000020cu, 0x0000020fu, 0x00000210u, 0x00050085u, 0x00000006u, 0x00000212u,
|
||||
0x0000020bu, 0x00000211u, 0x00050083u, 0x00000006u, 0x00000213u, 0x00000063u, 0x00000212u, 0x0003003eu,
|
||||
0x0000020au, 0x00000213u, 0x0004003du, 0x00000006u, 0x00000215u, 0x000001f7u, 0x0004003du, 0x00000006u,
|
||||
0x00000216u, 0x000001c7u, 0x00050085u, 0x00000006u, 0x00000217u, 0x00000215u, 0x00000216u, 0x0004003du,
|
||||
0x00000006u, 0x00000218u, 0x0000017fu, 0x00050085u, 0x00000006u, 0x00000219u, 0x00000217u, 0x00000218u,
|
||||
0x0004003du, 0x00000006u, 0x0000021au, 0x0000020au, 0x00050085u, 0x00000006u, 0x0000021bu, 0x00000219u,
|
||||
0x0000021au, 0x0003003eu, 0x00000214u, 0x0000021bu, 0x0004003du, 0x00000006u, 0x0000021du, 0x00000186u,
|
||||
0x0004003du, 0x00000006u, 0x0000021eu, 0x000001b1u, 0x00050083u, 0x00000006u, 0x0000021fu, 0x0000021du,
|
||||
0x0000021eu, 0x0006000cu, 0x00000006u, 0x00000220u, 0x00000001u, 0x00000004u, 0x0000021fu, 0x0004003du,
|
||||
0x00000006u, 0x00000221u, 0x00000195u, 0x0004003du, 0x00000006u, 0x00000222u, 0x000001a3u, 0x00050083u,
|
||||
0x00000006u, 0x00000223u, 0x00000221u, 0x00000222u, 0x0006000cu, 0x00000006u, 0x00000224u, 0x00000001u,
|
||||
0x00000004u, 0x00000223u, 0x00050083u, 0x00000006u, 0x00000225u, 0x00000220u, 0x00000224u, 0x0006000cu,
|
||||
0x00000006u, 0x00000226u, 0x00000001u, 0x00000004u, 0x00000225u, 0x0003003eu, 0x0000021cu, 0x00000226u,
|
||||
0x0004003du, 0x00000006u, 0x00000228u, 0x000000ddu, 0x0004003du, 0x00000006u, 0x00000229u, 0x000000ddu,
|
||||
0x00050085u, 0x00000006u, 0x0000022au, 0x00000229u, 0x00000182u, 0x0004003du, 0x00000006u, 0x0000022bu,
|
||||
0x0000021cu, 0x0008000cu, 0x00000006u, 0x0000022cu, 0x00000001u, 0x00000031u, 0x00000228u, 0x0000022au,
|
||||
0x0000022bu, 0x0003003eu, 0x00000227u, 0x0000022cu, 0x0004003du, 0x00000006u, 0x0000022fu, 0x00000227u,
|
||||
0x00050085u, 0x00000006u, 0x00000230u, 0x0000022eu, 0x0000022fu, 0x0004003du, 0x00000006u, 0x00000231u,
|
||||
0x0000017fu, 0x00050085u, 0x00000006u, 0x00000232u, 0x00000230u, 0x00000231u, 0x0004003du, 0x00000006u,
|
||||
0x00000233u, 0x0000020au, 0x00050085u, 0x00000006u, 0x00000234u, 0x00000232u, 0x00000233u, 0x0003003eu,
|
||||
0x0000022du, 0x00000234u, 0x0004003du, 0x00000006u, 0x00000236u, 0x00000214u, 0x000500bcu, 0x000000f1u,
|
||||
0x00000238u, 0x00000236u, 0x00000237u, 0x0004003du, 0x00000006u, 0x00000239u, 0x0000022du, 0x0004003du,
|
||||
0x00000006u, 0x0000023au, 0x00000214u, 0x000600a9u, 0x00000006u, 0x0000023bu, 0x00000238u, 0x00000239u,
|
||||
0x0000023au, 0x0008000cu, 0x00000006u, 0x0000023du, 0x00000001u, 0x0000002bu, 0x0000023bu, 0x0000002cu,
|
||||
0x0000023cu, 0x0003003eu, 0x00000235u, 0x0000023du, 0x0004003du, 0x00000023u, 0x0000023fu, 0x00000025u,
|
||||
0x0004003du, 0x0000000du, 0x00000240u, 0x00000070u, 0x0004003du, 0x0000000du, 0x00000241u, 0x0000010bu,
|
||||
0x0004003du, 0x0000000du, 0x00000242u, 0x00000062u, 0x00050085u, 0x0000000du, 0x00000243u, 0x00000241u,
|
||||
0x00000242u, 0x00050081u, 0x0000000du, 0x00000244u, 0x00000240u, 0x00000243u, 0x00050057u, 0x0000002fu,
|
||||
0x00000245u, 0x0000023fu, 0x00000244u, 0x0008004fu, 0x00000007u, 0x00000246u, 0x00000245u, 0x00000245u,
|
||||
0x00000000u, 0x00000001u, 0x00000002u, 0x0003003eu, 0x0000023eu, 0x00000246u, 0x0004003du, 0x0000002fu,
|
||||
0x00000247u, 0x0000007cu, 0x0008004fu, 0x00000007u, 0x00000248u, 0x00000247u, 0x00000247u, 0x00000000u,
|
||||
0x00000001u, 0x00000002u, 0x0004003du, 0x00000007u, 0x00000249u, 0x0000023eu, 0x0004003du, 0x00000006u,
|
||||
0x0000024au, 0x00000235u, 0x00060050u, 0x00000007u, 0x0000024bu, 0x0000024au, 0x0000024au, 0x0000024au,
|
||||
0x0008000cu, 0x00000007u, 0x0000024cu, 0x00000001u, 0x0000002eu, 0x00000248u, 0x00000249u, 0x0000024bu,
|
||||
0x00050041u, 0x00000020u, 0x0000024eu, 0x0000007cu, 0x0000024du, 0x0004003du, 0x00000006u, 0x0000024fu,
|
||||
0x0000024eu, 0x00050051u, 0x00000006u, 0x00000250u, 0x0000024cu, 0x00000000u, 0x00050051u, 0x00000006u,
|
||||
0x00000251u, 0x0000024cu, 0x00000001u, 0x00050051u, 0x00000006u, 0x00000252u, 0x0000024cu, 0x00000002u,
|
||||
0x00070050u, 0x0000002fu, 0x00000253u, 0x00000250u, 0x00000251u, 0x00000252u, 0x0000024fu, 0x0003003eu,
|
||||
0x000000f6u, 0x00000253u, 0x000100fdu, 0x00010038u, 0x00050036u, 0x00000006u, 0x0000000bu, 0x00000000u,
|
||||
0x00000009u, 0x00030037u, 0x00000008u, 0x0000000au, 0x000200f8u, 0x0000000cu, 0x0004003du, 0x00000007u,
|
||||
0x00000018u, 0x0000000au, 0x00050094u, 0x00000006u, 0x0000001du, 0x00000018u, 0x0000001cu, 0x000200feu,
|
||||
0x0000001du, 0x00010038u, 0x00050036u, 0x00000006u, 0x00000012u, 0x00000000u, 0x0000000fu, 0x00030037u,
|
||||
0x0000000eu, 0x00000010u, 0x00030037u, 0x0000000eu, 0x00000011u, 0x000200f8u, 0x00000013u, 0x0004003bu,
|
||||
0x00000020u, 0x00000021u, 0x00000007u, 0x0004003bu, 0x00000008u, 0x00000031u, 0x00000007u, 0x0004003bu,
|
||||
0x00000020u, 0x00000034u, 0x00000007u, 0x0004003bu, 0x00000008u, 0x0000003cu, 0x00000007u, 0x0004003du,
|
||||
0x00000023u, 0x00000026u, 0x00000025u, 0x0004003du, 0x0000000du, 0x00000027u, 0x00000010u, 0x00050041u,
|
||||
0x00000020u, 0x0000002au, 0x00000011u, 0x00000029u, 0x0004003du, 0x00000006u, 0x0000002bu, 0x0000002au,
|
||||
0x00050050u, 0x0000000du, 0x0000002du, 0x0000002bu, 0x0000002cu, 0x00050083u, 0x0000000du, 0x0000002eu,
|
||||
0x00000027u, 0x0000002du, 0x00050057u, 0x0000002fu, 0x00000030u, 0x00000026u, 0x0000002eu, 0x0008004fu,
|
||||
0x00000007u, 0x00000032u, 0x00000030u, 0x00000030u, 0x00000000u, 0x00000001u, 0x00000002u, 0x0003003eu,
|
||||
0x00000031u, 0x00000032u, 0x00050039u, 0x00000006u, 0x00000033u, 0x0000000bu, 0x00000031u, 0x0003003eu,
|
||||
0x00000021u, 0x00000033u, 0x0004003du, 0x00000023u, 0x00000035u, 0x00000025u, 0x0004003du, 0x0000000du,
|
||||
0x00000036u, 0x00000010u, 0x00050041u, 0x00000020u, 0x00000037u, 0x00000011u, 0x00000029u, 0x0004003du,
|
||||
0x00000006u, 0x00000038u, 0x00000037u, 0x00050050u, 0x0000000du, 0x00000039u, 0x00000038u, 0x0000002cu,
|
||||
0x00050081u, 0x0000000du, 0x0000003au, 0x00000036u, 0x00000039u, 0x00050057u, 0x0000002fu, 0x0000003bu,
|
||||
0x00000035u, 0x0000003au, 0x0008004fu, 0x00000007u, 0x0000003du, 0x0000003bu, 0x0000003bu, 0x00000000u,
|
||||
0x00000001u, 0x00000002u, 0x0003003eu, 0x0000003cu, 0x0000003du, 0x00050039u, 0x00000006u, 0x0000003eu,
|
||||
0x0000000bu, 0x0000003cu, 0x0003003eu, 0x00000034u, 0x0000003eu, 0x0004003du, 0x00000006u, 0x0000003fu,
|
||||
0x00000021u, 0x0004003du, 0x00000006u, 0x00000040u, 0x00000034u, 0x00050083u, 0x00000006u, 0x00000041u,
|
||||
0x0000003fu, 0x00000040u, 0x0006000cu, 0x00000006u, 0x00000042u, 0x00000001u, 0x00000004u, 0x00000041u,
|
||||
0x000200feu, 0x00000042u, 0x00010038u, 0x00050036u, 0x00000006u, 0x00000016u, 0x00000000u, 0x0000000fu,
|
||||
0x00030037u, 0x0000000eu, 0x00000014u, 0x00030037u, 0x0000000eu, 0x00000015u, 0x000200f8u, 0x00000017u,
|
||||
0x0004003bu, 0x00000020u, 0x00000045u, 0x00000007u, 0x0004003bu, 0x00000008u, 0x0000004eu, 0x00000007u,
|
||||
0x0004003bu, 0x00000020u, 0x00000051u, 0x00000007u, 0x0004003bu, 0x00000008u, 0x00000059u, 0x00000007u,
|
||||
0x0004003du, 0x00000023u, 0x00000046u, 0x00000025u, 0x0004003du, 0x0000000du, 0x00000047u, 0x00000014u,
|
||||
0x00050041u, 0x00000020u, 0x00000049u, 0x00000015u, 0x00000048u, 0x0004003du, 0x00000006u, 0x0000004au,
|
||||
0x00000049u, 0x00050050u, 0x0000000du, 0x0000004bu, 0x0000002cu, 0x0000004au, 0x00050083u, 0x0000000du,
|
||||
0x0000004cu, 0x00000047u, 0x0000004bu, 0x00050057u, 0x0000002fu, 0x0000004du, 0x00000046u, 0x0000004cu,
|
||||
0x0008004fu, 0x00000007u, 0x0000004fu, 0x0000004du, 0x0000004du, 0x00000000u, 0x00000001u, 0x00000002u,
|
||||
0x0003003eu, 0x0000004eu, 0x0000004fu, 0x00050039u, 0x00000006u, 0x00000050u, 0x0000000bu, 0x0000004eu,
|
||||
0x0003003eu, 0x00000045u, 0x00000050u, 0x0004003du, 0x00000023u, 0x00000052u, 0x00000025u, 0x0004003du,
|
||||
0x0000000du, 0x00000053u, 0x00000014u, 0x00050041u, 0x00000020u, 0x00000054u, 0x00000015u, 0x00000048u,
|
||||
0x0004003du, 0x00000006u, 0x00000055u, 0x00000054u, 0x00050050u, 0x0000000du, 0x00000056u, 0x0000002cu,
|
||||
0x00000055u, 0x00050081u, 0x0000000du, 0x00000057u, 0x00000053u, 0x00000056u, 0x00050057u, 0x0000002fu,
|
||||
0x00000058u, 0x00000052u, 0x00000057u, 0x0008004fu, 0x00000007u, 0x0000005au, 0x00000058u, 0x00000058u,
|
||||
0x00000000u, 0x00000001u, 0x00000002u, 0x0003003eu, 0x00000059u, 0x0000005au, 0x00050039u, 0x00000006u,
|
||||
0x0000005bu, 0x0000000bu, 0x00000059u, 0x0003003eu, 0x00000051u, 0x0000005bu, 0x0004003du, 0x00000006u,
|
||||
0x0000005cu, 0x00000045u, 0x0004003du, 0x00000006u, 0x0000005du, 0x00000051u, 0x00050083u, 0x00000006u,
|
||||
0x0000005eu, 0x0000005cu, 0x0000005du, 0x0006000cu, 0x00000006u, 0x0000005fu, 0x00000001u, 0x00000004u,
|
||||
0x0000005eu, 0x000200feu, 0x0000005fu, 0x00010038u,
|
||||
};
|
||||
@@ -305,6 +305,14 @@ static int g_fallback_armed;
|
||||
volatile int g_fps_limit;
|
||||
volatile int g_release_unpaced;
|
||||
|
||||
volatile int g_bfi;
|
||||
volatile int g_bfi_picture_hold;
|
||||
static int g_bfi_running;
|
||||
static unsigned g_bfi_phase;
|
||||
static const char *g_bfi_blocked;
|
||||
static int g_scene_layer_only;
|
||||
static struct { unsigned lit, dark, failed; } g_bfi_stats;
|
||||
|
||||
volatile int g_hide_shell;
|
||||
|
||||
volatile int g_zero_copy;
|
||||
@@ -2278,6 +2286,10 @@ static void render_scene(void) {
|
||||
if (hdr_route == 3) { fx_on = 0; framegen = 0; }
|
||||
struct surface *ahb_only = ahb_layer_only_candidate(w, h);
|
||||
struct surface *layer_only = ahb_only ? ahb_only : hdr_unimported_fullscreen(&dl, w, h);
|
||||
g_scene_layer_only = hdr_route == 3 || layer_only;
|
||||
const int bfi = g_bfi_running && !g_scene_layer_only;
|
||||
/* The compositor pass BFI needs is route 2; a fullscreen HDR scene on route 0 would lose its HDR there too. */
|
||||
if (bfi && (hdr_route == 1 || (hdr_route == 0 && hs.n_hdr > 0))) hdr_route = 2;
|
||||
const int cursor_on = hdr_route == 3 || layer_only ? 0 : add_cursor(&dl, w);
|
||||
static int cursor_layer_said;
|
||||
if (layer_only && atomic_load(&g_cursor_composite) && !cursor_layer_said) {
|
||||
@@ -2328,19 +2340,21 @@ static void render_scene(void) {
|
||||
rendered = vkp_render(w, h, dl.d, dl.n) == 0;
|
||||
} else if (hdr_route == 0 || hdr_route == 3) {
|
||||
const int pass_on = fx_on || framegen;
|
||||
int li = (g_zero_copy && !framegen && !cardboard && !cursor_on) ? layer_candidate(&dl, w, h) : -1;
|
||||
int li = (g_zero_copy && !framegen && !bfi && !cardboard && !cursor_on) ? layer_candidate(&dl, w, h) : -1;
|
||||
int over = li >= 0 ? dl.n - 1 - li : 0;
|
||||
const int fx_blocks = (li >= 0 && fx_on && over > 0);
|
||||
if (fx_blocks) { li = -1; over = 0; }
|
||||
const int ov_blocks = (li >= 0 && over > 0 && !fx_blocks && !sc_layer_overlay_affordable());
|
||||
if (ov_blocks) { li = -1; over = 0; }
|
||||
const int blocked = framegen ? 1 : (fx_blocks ? 2 : (ov_blocks ? 3 : 0));
|
||||
const int blocked = framegen ? 1 : bfi ? 4 : (fx_blocks ? 2 : (ov_blocks ? 3 : 0));
|
||||
if (g_zero_copy && !cursor_on && blocked != g_zero_copy_paused) {
|
||||
g_zero_copy_paused = blocked;
|
||||
if (blocked == 1)
|
||||
droiddeck_log("framegen", "zero-copy paused: frame generation needs the compositor pass");
|
||||
else if (blocked == 2)
|
||||
droiddeck_log("effects", "zero-copy paused: a window above the game needs the compositor pass for the whole scene");
|
||||
else if (blocked == 4)
|
||||
droiddeck_log("bfi", "zero-copy paused: black frame insertion needs the compositor pass");
|
||||
else if (blocked == 3)
|
||||
droiddeck_log("layer", "zero-copy paused: a window above the game would need a second display layer, "
|
||||
"which this display cannot compose in hardware - whole scene on the copy path");
|
||||
@@ -2351,6 +2365,7 @@ static void render_scene(void) {
|
||||
if (li < 0) ls = layer_only;
|
||||
if (cardboard) ls = NULL;
|
||||
if (cursor_on) ls = NULL;
|
||||
if (bfi) ls = NULL;
|
||||
if (ls && pass_on && li < 0 && !g_zero_copy_fx_skip_said) {
|
||||
g_zero_copy_fx_skip_said = 1;
|
||||
droiddeck_log(framegen ? "framegen" : "effects",
|
||||
@@ -2392,6 +2407,7 @@ static void render_scene(void) {
|
||||
: fx_blocks ? "a window is above it and screen effects need the whole scene"
|
||||
: !g_zero_copy ? "zero-copy presentation is off"
|
||||
: framegen ? "frame generation needs the compositor pass"
|
||||
: bfi ? "black frame insertion needs the compositor pass"
|
||||
: "it is not the one fullscreen window (only that one gets its own display layer)";
|
||||
}
|
||||
}
|
||||
@@ -2434,7 +2450,8 @@ static int on_fallback_timer(void *data) {
|
||||
}
|
||||
|
||||
static int commit_renders_on(void) {
|
||||
return g_render_on_commit && g_release_unpaced && !atomic_load(&g_stream_on) && !vkp_framegen_active();
|
||||
return g_render_on_commit && g_release_unpaced && !atomic_load(&g_stream_on) && !vkp_framegen_active() &&
|
||||
!g_bfi_running;
|
||||
}
|
||||
|
||||
static int render_on_commit(void) {
|
||||
@@ -2470,6 +2487,61 @@ static void on_commit_idle(void *data) {
|
||||
render_scene();
|
||||
}
|
||||
|
||||
/* Black frame insertion strobes on the display's refresh tick and paces the game to the lit refresh,
|
||||
* the design of BFI Presenter by artzox (https://github.com/artzox/BFI-Presenter, GPL-3.0), after Blur Busters'
|
||||
* research on MPRT and motion blur (https://blurbusters.com). No BFI Presenter code is used. */
|
||||
/* The panel's refresh from its display mode, not the measured tick rate: BFI's own presents can make ticks run
|
||||
* late under load, and a measured rate would then dip under the limit and switch BFI off and on many times a
|
||||
* second. 99 Hz lets panels that report 99.9 Hz for 100 Hz through. */
|
||||
#define BFI_MIN_REFRESH_MHZ 99000
|
||||
|
||||
static const char *bfi_blocked(void) {
|
||||
if (atomic_load(&g_stream_on)) return "the picture is being streamed";
|
||||
if (vkp_framegen_active()) return "frame generation is on";
|
||||
if (vkp_cardboard_active()) return "Cardboard VR is on";
|
||||
if (vkp_quest_layer_presentation()) return "this headset composes its own layers";
|
||||
if (g_scene_layer_only) return "the game's frames cannot be imported, so it is shown on its own display layer";
|
||||
if (atomic_load(&g_output_refresh_mhz) < BFI_MIN_REFRESH_MHZ) return "the screen runs below 100 Hz";
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void bfi_update(void) {
|
||||
const char *why = g_bfi ? bfi_blocked() : NULL;
|
||||
const int run = g_bfi && !why;
|
||||
if (g_bfi && why && why != g_bfi_blocked)
|
||||
droiddeck_log("bfi", "black frame insertion waits: %s", why);
|
||||
g_bfi_blocked = why;
|
||||
if (run == g_bfi_running) return;
|
||||
g_bfi_running = run;
|
||||
g_bfi_phase = 0;
|
||||
g_dirty = 1;
|
||||
if (run) {
|
||||
const int mhz = atomic_load(&g_output_refresh_mhz);
|
||||
droiddeck_log("bfi", "black frame insertion on: %.0f Hz screen, a black refresh after every picture, "
|
||||
"the game is paced to %.0f fps", mhz / 1000.0, mhz / 2000.0);
|
||||
} else {
|
||||
/* Lit refreshes advanced the frame deadline without being held to it; a stale one would stall rendering. */
|
||||
g_scene_due_ns = 0;
|
||||
droiddeck_log("bfi", "black frame insertion off");
|
||||
}
|
||||
}
|
||||
|
||||
static void bfi_tick(void) {
|
||||
/* A capture copies the surface's last buffer: present pictures only, still composed into that surface. */
|
||||
if (g_bfi_picture_hold) {
|
||||
g_bfi_phase = 0;
|
||||
g_bfi_stats.lit++;
|
||||
render_scene();
|
||||
} else if ((g_bfi_phase++ & 1) == 0) {
|
||||
g_bfi_stats.lit++;
|
||||
render_scene();
|
||||
} else if (vkp_render_plain(g_scene_w, g_scene_h) == 0) {
|
||||
g_bfi_stats.dark++;
|
||||
} else {
|
||||
g_bfi_stats.failed++;
|
||||
}
|
||||
}
|
||||
|
||||
static void on_vsync(int64_t frame_time_ns) {
|
||||
int64_t now = now_ns();
|
||||
g_perf.ticks++;
|
||||
@@ -2491,6 +2563,12 @@ static void on_vsync(int64_t frame_time_ns) {
|
||||
if (vkp_effects_sync()) tick_change = 1;
|
||||
if (vkp_cardboard_pose_changed()) tick_change = 1;
|
||||
if (tick_change) g_dirty = 1;
|
||||
bfi_update();
|
||||
if (g_bfi_running) {
|
||||
g_tick_held = 0;
|
||||
bfi_tick();
|
||||
return;
|
||||
}
|
||||
if (g_tick_held && g_dirty) g_hold_missed_ns = now;
|
||||
g_tick_held = 0;
|
||||
if (!tick_change && commit_renders_on() && g_dirty_since_ns && now - g_dirty_since_ns < g_refresh_ns &&
|
||||
@@ -3862,6 +3940,11 @@ static int on_stats_timer(void *data) {
|
||||
g_pace.renders, g_pace.commit_renders, (unsigned long long)game, g_pace.reattaches, g_pace.null_attaches, g_pace.distinct,
|
||||
g_pace.presented, g_pace.replaced, g_pace.undrawn);
|
||||
}
|
||||
if (g_bfi_stats.lit || g_bfi_stats.dark || g_bfi_stats.failed) {
|
||||
droiddeck_log("bfi", "last 10 s: %u pictures, %u black refreshes, %u black refreshes not presented",
|
||||
g_bfi_stats.lit, g_bfi_stats.dark, g_bfi_stats.failed);
|
||||
memset(&g_bfi_stats, 0, sizeof(g_bfi_stats));
|
||||
}
|
||||
{
|
||||
const uint64_t seen = g_game_frames;
|
||||
memset(&g_pace, 0, sizeof(g_pace));
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include "cas_frag.h"
|
||||
#include "color_frag.h"
|
||||
#include "fxaa_frag.h"
|
||||
#include "smaa_frag.h"
|
||||
#include "toon_frag.h"
|
||||
#include "hdr_frag.h"
|
||||
#include "ntsc_frag.h"
|
||||
@@ -41,7 +42,7 @@ struct fx_settings {
|
||||
int color_on;
|
||||
float brightness, contrast, gamma, saturation;
|
||||
float b_raw, c_raw, s_raw;
|
||||
int fxaa, toon, crt, ntsc;
|
||||
int aa_mode, toon, crt, ntsc;
|
||||
char look[48];
|
||||
};
|
||||
|
||||
@@ -78,7 +79,7 @@ void vkp_effects_set_deband(int enabled, int pct) {
|
||||
}
|
||||
static float clampf(float v, float lo, float hi) { return v < lo ? lo : v > hi ? hi : v; }
|
||||
void vkp_effects_set_screen(float brightness, float contrast, float gamma, float saturation,
|
||||
int fxaa, int toon, int crt, int ntsc) {
|
||||
int aa_mode, int toon, int crt, int ntsc) {
|
||||
int on = !(brightness == 0.0f && contrast == 0.0f && gamma == 1.0f && saturation == 100.0f);
|
||||
set_begin();
|
||||
g_set.color_on = on;
|
||||
@@ -87,7 +88,8 @@ void vkp_effects_set_screen(float brightness, float contrast, float gamma, float
|
||||
g_set.contrast = clampf(contrast / 100.0f, 0.0f, 2.0f);
|
||||
g_set.saturation = clampf(saturation / 100.0f, 0.0f, 2.0f);
|
||||
g_set.gamma = clampf(gamma, 0.1f, 5.0f);
|
||||
g_set.fxaa = fxaa ? 1 : 0; g_set.toon = toon ? 1 : 0; g_set.crt = crt ? 1 : 0; g_set.ntsc = ntsc ? 1 : 0;
|
||||
g_set.aa_mode = (aa_mode >= 0 && aa_mode <= 2) ? aa_mode : 0;
|
||||
g_set.toon = toon ? 1 : 0; g_set.crt = crt ? 1 : 0; g_set.ntsc = ntsc ? 1 : 0;
|
||||
set_end();
|
||||
}
|
||||
void vkp_effects_set_look(const char *name) {
|
||||
@@ -103,7 +105,7 @@ static const char *scaling_name(int m) {
|
||||
static int spatial_mode(int m) { return m >= 3 && m <= 8; }
|
||||
static int cas_active(const struct fx_settings *s) { return s->cas_on && s->cas_pct > 0; }
|
||||
static int effect_count(const struct fx_settings *s) {
|
||||
return s->fxaa + s->toon + s->color_on + cas_active(s) + s->hdr_on + s->ntsc + s->crt + s->deband_on;
|
||||
return (s->aa_mode != 0) + s->toon + s->color_on + cas_active(s) + s->hdr_on + s->ntsc + s->crt + s->deband_on;
|
||||
}
|
||||
|
||||
static void log_settings(const struct fx_settings *s) {
|
||||
@@ -121,7 +123,8 @@ static void log_settings(const struct fx_settings *s) {
|
||||
if (s->color_on)
|
||||
n += snprintf(line + n, sizeof(line) - n, ", colour b=%+.0f c=%+.0f g=%.2f s=%.0f%%",
|
||||
s->b_raw, s->c_raw, s->gamma, s->s_raw);
|
||||
if (s->fxaa) n += snprintf(line + n, sizeof(line) - n, ", FXAA on");
|
||||
if (s->aa_mode == 1) n += snprintf(line + n, sizeof(line) - n, ", FXAA on");
|
||||
else if (s->aa_mode == 2) n += snprintf(line + n, sizeof(line) - n, ", SMAA on");
|
||||
if (s->toon) n += snprintf(line + n, sizeof(line) - n, ", Toon on");
|
||||
if (s->hdr_on) n += snprintf(line + n, sizeof(line) - n, ", HDR on");
|
||||
if (s->ntsc) n += snprintf(line + n, sizeof(line) - n, ", NTSC on");
|
||||
@@ -202,7 +205,7 @@ static VkDescriptorSetLayout g_dsl;
|
||||
static VkPipelineLayout g_pl;
|
||||
static VkDescriptorPool g_dpool;
|
||||
static VkSampler g_sampler;
|
||||
enum { P_SGSR, P_SGSR_HQ, P_NIS, P_EASU, P_RCAS, P_CAS, P_COLOR, P_FXAA, P_TOON, P_HDR, P_NTSC, P_CRT, P_DEBAND, P_COUNT };
|
||||
enum { P_SGSR, P_SGSR_HQ, P_NIS, P_EASU, P_RCAS, P_CAS, P_COLOR, P_FXAA, P_SMAA, P_TOON, P_HDR, P_NTSC, P_CRT, P_DEBAND, P_COUNT };
|
||||
static VkPipeline g_pipe[P_COUNT];
|
||||
static struct fx_target g_t[2], g_mid;
|
||||
|
||||
@@ -438,6 +441,7 @@ static int objects_ensure(void) {
|
||||
MK(P_CAS, cas_code, "cas");
|
||||
MK(P_COLOR, color_code, "color");
|
||||
MK(P_FXAA, fxaa_code, "fxaa");
|
||||
MK(P_SMAA, smaa_code, "smaa");
|
||||
MK(P_TOON, toon_code, "toon");
|
||||
MK(P_HDR, hdr_code, "hdr");
|
||||
MK(P_NTSC, ntsc_code, "ntsc");
|
||||
@@ -446,7 +450,7 @@ static int objects_ensure(void) {
|
||||
#undef MK
|
||||
g_vk.DestroyShaderModule(g_dev, vert, NULL);
|
||||
g_ready = 1;
|
||||
droiddeck_log("effects", "chain ready: 13 passes (SGSR, SGSR HQ, NIS, FSR EASU+RCAS, CAS, colour, FXAA, Toon, HDR, NTSC, CRT, deband) on %s", vkp_gpu_name());
|
||||
droiddeck_log("effects", "chain ready: 14 pipelines (SGSR, SGSR HQ, NIS, FSR EASU+RCAS, CAS, colour, FXAA, SMAA, Toon, HDR, NTSC, CRT, deband) on %s", vkp_gpu_name());
|
||||
return 0;
|
||||
fail:
|
||||
objects_destroy();
|
||||
@@ -567,9 +571,10 @@ VkImage vkp_effects_run(VkCommandBuffer cmd, VkImage scene, int scene_w, int sce
|
||||
cur = NULL; cur_ds = g_scene.ds;
|
||||
}
|
||||
|
||||
enum { FX_FXAA, FX_TOON, FX_COLOR, FX_CAS, FX_HDR, FX_NTSC, FX_CRT, FX_DEBAND };
|
||||
enum { FX_FXAA, FX_SMAA, FX_TOON, FX_COLOR, FX_CAS, FX_HDR, FX_NTSC, FX_CRT, FX_DEBAND };
|
||||
int order[8], n = 0;
|
||||
if (s->fxaa) order[n++] = FX_FXAA;
|
||||
if (s->aa_mode == 1) order[n++] = FX_FXAA;
|
||||
else if (s->aa_mode == 2) order[n++] = FX_SMAA;
|
||||
if (s->toon) order[n++] = FX_TOON;
|
||||
if (s->color_on) order[n++] = FX_COLOR;
|
||||
if (cas_active(s)) order[n++] = FX_CAS;
|
||||
@@ -584,6 +589,7 @@ VkImage vkp_effects_run(VkCommandBuffer cmd, VkImage scene, int scene_w, int sce
|
||||
pr.res[0] = (float)cw; pr.res[1] = (float)ch;
|
||||
switch (order[i]) {
|
||||
case FX_FXAA: pass(cmd, g_pipe[P_FXAA], dst, cur_ds, &pr, sizeof(pr)); break;
|
||||
case FX_SMAA: pass(cmd, g_pipe[P_SMAA], dst, cur_ds, &pr, sizeof(pr)); break;
|
||||
case FX_TOON: pass(cmd, g_pipe[P_TOON], dst, cur_ds, &pr, sizeof(pr)); break;
|
||||
case FX_COLOR: {
|
||||
struct pc_color pc = {0};
|
||||
|
||||
@@ -30,7 +30,7 @@ void vkp_effects_set_cas(int enabled, int pct);
|
||||
void vkp_effects_set_hdr(int enabled);
|
||||
void vkp_effects_set_deband(int enabled, int pct);
|
||||
void vkp_effects_set_screen(float brightness, float contrast, float gamma, float saturation,
|
||||
int fxaa, int toon, int crt, int ntsc);
|
||||
int aa_mode, int toon, int crt, int ntsc);
|
||||
void vkp_effects_set_look(const char *name);
|
||||
|
||||
#endif
|
||||
@@ -13,6 +13,7 @@
|
||||
#include "quest_device.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include <sys/system_properties.h>
|
||||
#include <unistd.h>
|
||||
@@ -416,8 +417,13 @@ static void update_map(int scene_w, int scene_h) {
|
||||
if (mode == VKP_MODE_FILL) aspect = sx > sy ? sx : sy;
|
||||
else if (mode == VKP_MODE_INTEGER) {
|
||||
float m = sx < sy ? sx : sy;
|
||||
aspect = (float)(int)m;
|
||||
if (aspect < 1.0f) aspect = 1.0f;
|
||||
float nearest = roundf(m);
|
||||
if (nearest >= 1.0f && nearest > m &&
|
||||
nearest - m < 0.15f) {
|
||||
aspect = nearest;
|
||||
} else {
|
||||
aspect = m >= 1.0f ? (float)(int)m : m;
|
||||
}
|
||||
} else aspect = sx < sy ? sx : sy;
|
||||
g_map.kx = g_map.ky = aspect;
|
||||
g_map.off_x = (float)(g_map.rx + (int)((g_map.rw - scene_w * aspect) * 0.5f));
|
||||
@@ -2000,7 +2006,9 @@ static int render_impl(int scene_w, int scene_h, const struct vkp_draw *draws, i
|
||||
1 + vkp_framegen_extra_images(), vkp_framegen_extra_images() ? "s" : "");
|
||||
destroy_swapchain();
|
||||
}
|
||||
const int want_hdr = hf && !hf->tonemap && g_colorspace_ext && !g_swap_hdr_unavailable;
|
||||
/* A black refresh carries no HDR frame; it keeps the swapchain's colour mode rather than flipping it. */
|
||||
const int want_hdr = (g_plain_frame && !hf) ? (g_swapchain && g_swap_is_hdr)
|
||||
: (hf && !hf->tonemap && g_colorspace_ext && !g_swap_hdr_unavailable);
|
||||
if (g_swapchain && want_hdr != g_swap_is_hdr) {
|
||||
droiddeck_log("color", want_hdr ? "HDR frames with frame generation: rebuilding the screen swapchain as HDR10"
|
||||
: hf ? "HDR output switched off: rebuilding the screen swapchain as SDR (frames tone-mapped)"
|
||||
|
||||
@@ -42,6 +42,8 @@ extern void droiddeck_wayland_set_output_refresh_rate(int mhz);
|
||||
extern volatile int g_fps_limit;
|
||||
extern volatile int g_release_unpaced;
|
||||
extern volatile int g_render_on_commit;
|
||||
extern volatile int g_bfi;
|
||||
extern volatile int g_bfi_picture_hold;
|
||||
extern volatile int g_hide_shell;
|
||||
extern volatile int g_zero_copy;
|
||||
extern volatile unsigned g_zero_copy_last;
|
||||
@@ -495,8 +497,8 @@ Java_com_droiddeck_launcher_wayland_WaylandCompositor_nativeSetDeband(JNIEnv *en
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_com_droiddeck_launcher_wayland_WaylandCompositor_nativeSetScreenEffects(JNIEnv *env, jclass clazz, jfloat brightness,
|
||||
jfloat contrast, jfloat gamma, jfloat saturation, jboolean fxaa, jboolean toon, jboolean crt, jboolean ntsc) {
|
||||
vkp_effects_set_screen(brightness, contrast, gamma, saturation, fxaa ? 1 : 0, toon ? 1 : 0, crt ? 1 : 0, ntsc ? 1 : 0);
|
||||
jfloat contrast, jfloat gamma, jfloat saturation, jint aa_mode, jboolean toon, jboolean crt, jboolean ntsc) {
|
||||
vkp_effects_set_screen(brightness, contrast, gamma, saturation, aa_mode, toon ? 1 : 0, crt ? 1 : 0, ntsc ? 1 : 0);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
@@ -669,6 +671,17 @@ Java_com_droiddeck_launcher_wayland_WaylandCompositor_nativeSetRenderOnCommit(JN
|
||||
__android_log_print(ANDROID_LOG_INFO, TAG, "render on commit %s", on ? "on" : "off");
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_com_droiddeck_launcher_wayland_WaylandCompositor_nativeSetBlackFrameInsertion(JNIEnv *env, jclass clazz, jboolean on) {
|
||||
g_bfi = on ? 1 : 0;
|
||||
__android_log_print(ANDROID_LOG_INFO, TAG, "black frame insertion %s", on ? "requested" : "off");
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_com_droiddeck_launcher_wayland_WaylandCompositor_nativeSetPictureHold(JNIEnv *env, jclass clazz, jboolean on) {
|
||||
g_bfi_picture_hold = on ? 1 : 0;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_com_droiddeck_launcher_wayland_WaylandCompositor_nativeSetFpsLimit(JNIEnv *env, jclass clazz, jint fps) {
|
||||
g_fps_limit = fps > 0 ? fps : 0;
|
||||
|
||||
@@ -20,6 +20,7 @@ class App : Application() {
|
||||
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
com.droiddeck.launcher.runtime.NativeGuest.init(this)
|
||||
Thread({ runCatching { EnhancedSessionLogShare.cleanupAbandonedStages(this) } }, "diagnostic-stage-cleanup").start()
|
||||
com.droiddeck.launcher.ui.Themes.loadGradient(this)
|
||||
com.droiddeck.launcher.ui.BuildWatermark.install(this)
|
||||
@@ -82,14 +83,17 @@ class App : Application() {
|
||||
Thread({
|
||||
runCatching {
|
||||
if (com.droiddeck.launcher.runtime.LinuxRuntime.rootDir(app).isDirectory) {
|
||||
com.droiddeck.launcher.core.AddonPack.PROOT.ensure(app)
|
||||
if (!com.droiddeck.launcher.runtime.LinuxRuntime.patchedProot(app)) com.droiddeck.launcher.core.AddonPack.PROOT.ensure(app)
|
||||
com.droiddeck.launcher.core.AddonPack.DIRECTAUDIO.ensure(app)
|
||||
com.droiddeck.launcher.session.SessionFiles.ensureDirtStandIn(app)
|
||||
}
|
||||
if (com.droiddeck.launcher.stores.gog.GogComet.enabled(app)) com.droiddeck.launcher.core.AddonPack.COMET.ensure(app)
|
||||
if (com.droiddeck.launcher.stores.StoreAccounts.signedInAs(app, com.droiddeck.launcher.stores.Store.XBOX) != null)
|
||||
com.droiddeck.launcher.core.AddonPack.XBOX.ensure(app)
|
||||
if (com.droiddeck.launcher.stores.StoreAccounts.signedInAs(app, com.droiddeck.launcher.stores.Store.UBISOFT) != null)
|
||||
com.droiddeck.launcher.session.SessionFiles.ensureUbisoftService(app)
|
||||
if (com.droiddeck.launcher.stores.StoreAccounts.signedInAs(app, com.droiddeck.launcher.stores.Store.ROCKSTAR) != null)
|
||||
com.droiddeck.launcher.session.SessionFiles.ensureRockstarService(app)
|
||||
com.droiddeck.launcher.handtracking.HandTracking.load(app)
|
||||
}.onFailure { android.util.Log.w("App", "add-on pack prefetch failed", it) }
|
||||
}, "addon-packs").start()
|
||||
|
||||
@@ -195,6 +195,7 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
private var showPhantomGate by mutableStateOf(false)
|
||||
private var directAudio by mutableStateOf(false)
|
||||
private var picturePosition by mutableStateOf("center")
|
||||
private var integerScaling by mutableStateOf(false)
|
||||
private var stretch16x9 by mutableStateOf(false)
|
||||
private var orientation by mutableStateOf(android.content.pm.ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE)
|
||||
private var launcherOrientation by mutableStateOf(android.content.pm.ActivityInfo.SCREEN_ORIENTATION_USER)
|
||||
@@ -1862,15 +1863,24 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
}
|
||||
}
|
||||
|
||||
if (savedInstanceState == null) ui.post { startSteamAtStartupIfEnabled(cold = true) }
|
||||
else {
|
||||
val askAllFiles = Build.VERSION.SDK_INT >= 30 && com.droiddeck.launcher.files.AllFilesAccess.missing() &&
|
||||
!SessionPrefs.allFilesAsked(this)
|
||||
if (savedInstanceState == null) {
|
||||
if (!askAllFiles) ui.post { startSteamAtStartupIfEnabled(cold = true) }
|
||||
} else {
|
||||
restoreCompatLaunch(savedInstanceState)
|
||||
pendingSwitch = savedIntent(savedInstanceState, KEY_PENDING_SWITCH)
|
||||
savedIntent(savedInstanceState, KEY_SWITCHING_TO)?.let { awaitSessionEnd(it, savedInstanceState.getLong(KEY_SWITCH_DEADLINE)) }
|
||||
}
|
||||
|
||||
val wanted = ArrayList<String>()
|
||||
if (checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
|
||||
if (Build.VERSION.SDK_INT >= 30) {
|
||||
// From targetSdk 30, shared storage outside the app's own folders is all-files access or nothing.
|
||||
if (askAllFiles) {
|
||||
SessionPrefs.setAllFilesAsked(this)
|
||||
com.droiddeck.launcher.files.AllFilesAccess.open(this)
|
||||
}
|
||||
} else if (checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
|
||||
wanted.add(Manifest.permission.WRITE_EXTERNAL_STORAGE)
|
||||
}
|
||||
if (SessionPrefs.micEnabled(this) && !SessionPrefs.micAsked(this)
|
||||
@@ -2551,6 +2561,7 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
backActionsInverted = backActionsInverted,
|
||||
directAudio = if (mode == SessionService.MODE_STEAM) directAudio else null,
|
||||
picturePosition = if (mode == SessionService.MODE_STEAM) picturePosition else null,
|
||||
integerScaling = if (mode == SessionService.MODE_STEAM) integerScaling else null,
|
||||
stretch16x9 = if (mode == SessionService.MODE_STEAM) stretch16x9 else null,
|
||||
mic = if (mode == SessionService.MODE_STEAM) mic else null,
|
||||
gameStorage = if (mode == SessionService.MODE_STEAM) gameStorage else null,
|
||||
@@ -2612,6 +2623,7 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
},
|
||||
onDirectAudio = { on -> SessionPrefs.setDirectAudio(this, on); directAudio = on },
|
||||
onPicturePosition = { value -> SessionPrefs.setPicturePosition(this, value); picturePosition = value },
|
||||
onIntegerScaling = { on -> SessionPrefs.setIntegerScaling(this, on); integerScaling = on },
|
||||
onStretch16x9 = { on -> SessionPrefs.setStretch16x9(this, on); stretch16x9 = on },
|
||||
onMic = { on ->
|
||||
SessionPrefs.setMicEnabled(this, on)
|
||||
@@ -2949,6 +2961,7 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
backActionsInverted = SessionPrefs.backActionsInverted(this)
|
||||
directAudio = SessionPrefs.directAudio(this)
|
||||
picturePosition = SessionPrefs.picturePosition(this)
|
||||
integerScaling = SessionPrefs.integerScaling(this)
|
||||
stretch16x9 = SessionPrefs.stretch16x9(this)
|
||||
mic = SessionPrefs.micEnabled(this)
|
||||
refreshWifiDiscovery()
|
||||
|
||||
@@ -173,11 +173,12 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
private var adaptiveSticks by mutableStateOf<Boolean?>(null)
|
||||
private var quickButtons by mutableStateOf<Map<InputCommand, Boolean>>(emptyMap())
|
||||
private var picturePosition by mutableStateOf("center")
|
||||
private var integerScaling by mutableStateOf(false)
|
||||
|
||||
private fun applyGameAlignment() {
|
||||
if (!CompositorHost.isStarted) return
|
||||
val active = SessionState.mode == SessionService.MODE_STEAM &&
|
||||
!pipUi && !isInPictureInPictureMode && !cardboard.enabled
|
||||
!pipUi && !isInPictureInPictureMode && !activeCardboard.enabled
|
||||
val alignment = if (!active) ALIGN_CENTER else when (picturePosition) {
|
||||
"top" -> ALIGN_PICTURE_TOP
|
||||
"bottom" -> ALIGN_PICTURE_BOTTOM
|
||||
@@ -185,7 +186,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
"right" -> ALIGN_PICTURE_RIGHT
|
||||
else -> ALIGN_CENTER
|
||||
}
|
||||
WaylandCompositor.nativeSetScaleMode(SCALE_FIT, alignment)
|
||||
WaylandCompositor.nativeSetScaleMode(if (active && integerScaling) SCALE_INTEGER else SCALE_FIT, alignment)
|
||||
}
|
||||
private var unfoldedPanel by mutableStateOf<OnScreenControls?>(null)
|
||||
private var unfoldedColumn: android.widget.LinearLayout? = null
|
||||
@@ -294,7 +295,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
private lateinit var threeFingerTap: com.droiddeck.launcher.input.ThreeFingerTap
|
||||
private lateinit var touchscreenGestures: TouchscreenGestures
|
||||
private var gestureConfig = com.droiddeck.launcher.input.TouchGestureConfig()
|
||||
private var gestureGame by mutableStateOf<String?>(null)
|
||||
private var gestureGame: String? = null
|
||||
private var gameStarts by mutableIntStateOf(0)
|
||||
private var gestureSettingsOpen by mutableStateOf(false)
|
||||
private var steamImportAsk by mutableStateOf<com.droiddeck.launcher.session.SteamImportPrompt.Ask?>(null)
|
||||
@@ -499,6 +500,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
private var drawerGameProfileId by mutableStateOf<Long?>(null)
|
||||
private var drawerGameProfileSelectionMade = false
|
||||
private var fpsLimit by mutableStateOf(SessionState.fpsLimit)
|
||||
private var blackFrameInsertion by mutableStateOf(false)
|
||||
|
||||
private fun noSteamSession(): Boolean = (SessionState.mode == SessionService.MODE_RUN &&
|
||||
SessionState.program in setOf(
|
||||
@@ -848,6 +850,11 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
}
|
||||
SteamControllerBle.listener = { uiHandler.post { updatePadMotion(); refreshControls() } }
|
||||
steamController = SteamControllerBle(this, inputRouter).also { it.start() }
|
||||
if (Build.VERSION.SDK_INT >= 31 && checkSelfPermission(BLUETOOTH_CONNECT) != android.content.pm.PackageManager.PERMISSION_GRANTED &&
|
||||
!SessionPrefs.bluetoothAsked(this)) {
|
||||
SessionPrefs.setBluetoothAsked(this)
|
||||
requestPermissions(arrayOf(BLUETOOTH_CONNECT), REQUEST_BLUETOOTH)
|
||||
}
|
||||
padMotion = com.droiddeck.launcher.input.PadMotion(this) {
|
||||
@Suppress("DEPRECATION")
|
||||
(if (Build.VERSION.SDK_INT >= 30) display else windowManager.defaultDisplay)?.rotation ?: android.view.Surface.ROTATION_0
|
||||
@@ -1085,7 +1092,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
secondScreenPresentation?.closeFieldKeyboard()
|
||||
}
|
||||
}
|
||||
androidx.compose.runtime.LaunchedEffect(picturePosition, SessionState.running, pipUi, cardboard.enabled) { applyGameAlignment() }
|
||||
androidx.compose.runtime.LaunchedEffect(picturePosition, integerScaling, SessionState.running, pipUi, cardboard.enabled) { applyGameAlignment() }
|
||||
DroidDeckTheme {
|
||||
if (pipUi) {
|
||||
if (SessionState.suspended) androidx.compose.foundation.layout.Box(
|
||||
@@ -1197,13 +1204,8 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
}
|
||||
if (nextGame != gestureGame) {
|
||||
if (nextGame != null) gameStarts++
|
||||
val previousControls = com.droiddeck.launcher.input.GameInputControls.profile(this@SessionActivity, inputGameScope())
|
||||
gestureGame = nextGame
|
||||
refreshGestureConfig()
|
||||
if (previousControls != com.droiddeck.launcher.input.GameInputControls.profile(this@SessionActivity, inputGameScope())) {
|
||||
releasePads()
|
||||
refreshInputProfile()
|
||||
}
|
||||
}
|
||||
if (
|
||||
SessionState.mode == SessionService.MODE_STEAM &&
|
||||
@@ -1445,6 +1447,12 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
onHudReset = { hudConfig = DroidDeckHudConfig.reset(this@SessionActivity); hud.applyConfig() },
|
||||
onHudOrderReset = { hudConfig = DroidDeckHudConfig.clearOrder(this@SessionActivity); hud.applyConfig() },
|
||||
onHudExport = { exportHudDiagnostics() },
|
||||
integerScaling = integerScaling,
|
||||
onIntegerScaling = { enabled ->
|
||||
SessionPrefs.setIntegerScaling(this@SessionActivity, enabled)
|
||||
integerScaling = enabled
|
||||
applyGameAlignment()
|
||||
},
|
||||
onUpscaler = { m ->
|
||||
val target = effectsEditorTarget ?: screenEffectsTarget
|
||||
val activeProfileId =
|
||||
@@ -1592,6 +1600,13 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
fpsLimit = fps
|
||||
applyOutputPacing()
|
||||
},
|
||||
blackFrameInsertion = blackFrameInsertion,
|
||||
blackFrameInsertionAvailable = blackFrameInsertion || blackFrameInsertionAvailable(),
|
||||
onBlackFrameInsertion = { on ->
|
||||
SessionPrefs.setBlackFrameInsertion(this@SessionActivity, on)
|
||||
blackFrameInsertion = on
|
||||
CompositorHost.setBlackFrameInsertion(on, refreshHz(), outputFpsLimit())
|
||||
},
|
||||
onFrameGenPick = { mode ->
|
||||
val appId = frameGenTargetGameId()
|
||||
|
||||
@@ -2404,7 +2419,9 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
unfoldedControls = SessionPrefs.unfoldedControls(this)
|
||||
unfoldedControlsWithController = SessionPrefs.unfoldedControlsWithController(this)
|
||||
picturePosition = SessionPrefs.picturePosition(this)
|
||||
integerScaling = SessionPrefs.integerScaling(this)
|
||||
hudOn = SessionPrefs.hudEnabled(this)
|
||||
blackFrameInsertion = SessionPrefs.blackFrameInsertion(this)
|
||||
hudConfig = DroidDeckHudConfig.load(this)
|
||||
hudColor = SessionPrefs.hudColor(this)
|
||||
hudOpacity = SessionPrefs.hudOpacity(this)
|
||||
@@ -2594,7 +2611,10 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
runCatching { com.droiddeck.launcher.runtime.RuntimeInstallService.start(this, release) }
|
||||
val ok = com.droiddeck.launcher.runtime.LinuxRuntimeInstaller.install(this, release,
|
||||
progressFor(RUNTIME_LINES, release.size / 1_000_000))
|
||||
if (ok) return null
|
||||
if (ok) {
|
||||
com.droiddeck.launcher.session.SessionFiles.ensureDirtStandIn(this)
|
||||
return null
|
||||
}
|
||||
SessionEvents.record("runtime.failed", mapOf("step" to "install", "reason" to com.droiddeck.launcher.runtime.LinuxRuntimeInstaller.installError()))
|
||||
return getString(R.string.session_runtime_install_failed)
|
||||
}
|
||||
@@ -2656,7 +2676,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
runCatching { GameEnvironmentStore.publish(this) }
|
||||
.onFailure { Log.e(TAG, "Could not update game environment", it) }
|
||||
}, "game-env-publish").start()
|
||||
WaylandCompositor.nativeSetScaleMode(SCALE_FIT, ALIGN_CENTER)
|
||||
applyGameAlignment()
|
||||
val activeProfileId = currentScreenEffectsProfileId()
|
||||
val activeUpscaler = SessionPrefs.screenEffectsUpscaler(this, activeProfileId)
|
||||
val activeEffects = SessionPrefs.screenEffects(this, activeProfileId)
|
||||
@@ -2864,13 +2884,25 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
val display = if (Build.VERSION.SDK_INT >= 30) display else windowManager.defaultDisplay
|
||||
val wanted = window.attributes.preferredDisplayModeId
|
||||
val requested = display?.supportedModes?.firstOrNull { wanted != 0 && it.modeId == wanted }?.refreshRate
|
||||
val running = display?.refreshRate?.takeIf { it > 1f }
|
||||
// Display.refreshRate reports a per-app frame rate override (Game Mode FPS) instead of the panel's mode.
|
||||
val running = display?.mode?.refreshRate?.takeIf { it > 1f }
|
||||
val hz = listOfNotNull(requested, running).minOrNull() ?: 60f
|
||||
val mirrorCap = mirrorRefreshLimit().takeIf { it > 0 }?.toFloat() ?: Float.POSITIVE_INFINITY
|
||||
val capped = minOf(hz, PerfMode.peakRefreshCap(this), mirrorCap)
|
||||
return if (capped > 1f) capped else 60f
|
||||
}
|
||||
|
||||
private fun blackFrameInsertionAvailable(): Boolean {
|
||||
// Glasses that present the game run at their own rate, uncapped, as refreshHz() reads them.
|
||||
glassesScreen?.display?.let { glasses ->
|
||||
return (glasses.supportedModes?.maxOfOrNull { it.refreshRate } ?: 0f) >= PerfMode.BFI_MIN_REFRESH_HZ
|
||||
}
|
||||
val display = bottomGame?.takeIf { bottomOutputActive }?.display
|
||||
?: if (Build.VERSION.SDK_INT >= 30) display else @Suppress("DEPRECATION") windowManager.defaultDisplay
|
||||
val peak = display?.supportedModes?.maxOfOrNull { it.refreshRate } ?: 0f
|
||||
return minOf(peak, PerfMode.peakRefreshCap(this)) >= PerfMode.BFI_MIN_REFRESH_HZ
|
||||
}
|
||||
|
||||
private fun mirrorRefreshLimit(): Int =
|
||||
GlassesRendering.mirrorRefreshLimit(glassesSettings, glasses, glassesScreen != null)
|
||||
|
||||
@@ -3246,12 +3278,21 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
}
|
||||
val steamSetup = com.droiddeck.launcher.session.SteamClientSetupFailure.find(text.lineSequence())
|
||||
val launchFailure = com.droiddeck.launcher.session.SessionLaunchFailure.find(text.lineSequence())
|
||||
val fexKernel by lazy {
|
||||
if (com.droiddeck.launcher.session.FexHost.kernelHidesCpuFeatures())
|
||||
getString(R.string.session_end_fex_kernel, System.getProperty("os.version").orEmpty()) else null
|
||||
}
|
||||
if (steamSetup != null) {
|
||||
val message = getString(if (steamSetup.download) R.string.session_end_steam_download else R.string.session_end_steam_setup)
|
||||
EndHint(listOfNotNull(message, steamSetup.curlError).joinToString("\n"))
|
||||
val x64Kernel = if (SessionState.steamClientArch == "x86_64") fexKernel else null
|
||||
EndHint(x64Kernel ?: listOfNotNull(message, steamSetup.curlError).joinToString("\n"))
|
||||
} else if (launchFailure == com.droiddeck.launcher.session.SessionLaunchFailure.STEAM_ILLEGAL_INSTRUCTION) {
|
||||
val message = getString(R.string.session_end_steam_sigill)
|
||||
val fallback = if (SessionState.steamClientArch == "arm64") getString(R.string.session_end_steam_try_x64) else null
|
||||
val fallback = when (SessionState.steamClientArch) {
|
||||
"arm64" -> fexKernel ?: getString(R.string.session_end_steam_try_x64)
|
||||
"x86_64" -> fexKernel
|
||||
else -> null
|
||||
}
|
||||
EndHint(listOfNotNull(message, fallback).joinToString("\n"))
|
||||
} else if (launchFailure == com.droiddeck.launcher.session.SessionLaunchFailure.VULKAN_DEVICE_MISSING) {
|
||||
val gpu = com.droiddeck.launcher.gpu.GpuInfo.detect()
|
||||
@@ -3262,7 +3303,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
EndHint(if (adreno) message else "${gpu.name} (${family.label(gpu.name)})\n$message")
|
||||
} else if (fexMissing) {
|
||||
val what = com.droiddeck.launcher.frontend.Library.nameForProgram(SessionState.program) ?: getString(R.string.session_end_program)
|
||||
EndHint(getString(R.string.session_end_fex_missing, what), evenOnSuccess = true)
|
||||
EndHint(fexKernel ?: getString(R.string.session_end_fex_missing, what), evenOnSuccess = true)
|
||||
} else if (enosys >= 8) {
|
||||
EndHint(resources.getQuantityString(R.plurals.session_hint_enosys, enosys, enosys,
|
||||
getString(R.string.perf_title), getString(R.string.perf_seccomp), getString(R.string.perf_xalia)))
|
||||
@@ -4194,19 +4235,35 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
onFrame(null)
|
||||
return
|
||||
}
|
||||
try {
|
||||
android.view.PixelCopy.request(source, bitmap, { result ->
|
||||
if (result != android.view.PixelCopy.SUCCESS) {
|
||||
bitmap.recycle()
|
||||
onFrame(null)
|
||||
} else onFrame(bitmap)
|
||||
}, uiHandler)
|
||||
} catch (_: IllegalArgumentException) {
|
||||
bitmap.recycle()
|
||||
onFrame(null)
|
||||
withPictureFrame { done ->
|
||||
try {
|
||||
android.view.PixelCopy.request(source, bitmap, { result ->
|
||||
done()
|
||||
if (result != android.view.PixelCopy.SUCCESS) {
|
||||
bitmap.recycle()
|
||||
onFrame(null)
|
||||
} else onFrame(bitmap)
|
||||
}, uiHandler)
|
||||
} catch (_: IllegalArgumentException) {
|
||||
done()
|
||||
bitmap.recycle()
|
||||
onFrame(null)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** PixelCopy reads the last queued buffer, which black frame insertion makes black every other refresh. */
|
||||
private fun withPictureFrame(copy: (done: () -> Unit) -> Unit) {
|
||||
if (!CompositorHost.holdPicture()) return copy {}
|
||||
uiHandler.postDelayed({
|
||||
var released = false
|
||||
copy {
|
||||
if (!released) CompositorHost.releasePicture()
|
||||
released = true
|
||||
}
|
||||
}, BFI_PICTURE_SETTLE_MS)
|
||||
}
|
||||
|
||||
private fun tapSteamButton() {
|
||||
if (SessionState.mode == SessionService.MODE_STEAM) padBridge?.triggerSteamMenu()
|
||||
}
|
||||
@@ -4226,16 +4283,9 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
if (started && displayId !in inputWindowDisplays && secondScreenMode != SecondScreenMode.NONE && secondScreenPresentation == null) showSecondScreen(secondScreenMode)
|
||||
}
|
||||
|
||||
fun inputGameScope(): String? = if (loadingMode() == SessionService.MODE_RUN) {
|
||||
(if (SessionState.running) SessionState.gameId else null)
|
||||
?: intent.getStringExtra(SessionService.EXTRA_GAME_ID) ?: gestureGame
|
||||
} else gestureGame
|
||||
|
||||
private fun refreshInputProfile() {
|
||||
val library = com.droiddeck.launcher.input.InputLibraries.read(this)
|
||||
val desktop = loadingMode() == SessionService.MODE_DESKTOP
|
||||
val game = inputGameScope()
|
||||
val library = com.droiddeck.launcher.input.GameInputControls.resolve(this,
|
||||
com.droiddeck.launcher.input.InputLibraries.read(this), desktop, game)
|
||||
inputProfile = library.compileActive(desktop, secondScreenMode.panel(this))
|
||||
primaryInputLayout = library.activeLayout(desktop, InputRole.PRIMARY)
|
||||
adaptiveSticks = primaryInputLayout?.adaptiveSticks
|
||||
@@ -4645,25 +4695,18 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
gamePictureBounds[2], gamePictureBounds[3]
|
||||
)
|
||||
|
||||
val nativeWidth: Int
|
||||
val nativeHeight: Int
|
||||
if (glassesOutputActive) {
|
||||
val mode = glassesScreen?.display?.mode ?: return null
|
||||
val outputWidth = mode.physicalWidth.takeIf { it > 0 } ?: return null
|
||||
val outputHeight = mode.physicalHeight.takeIf { it > 0 } ?: return null
|
||||
val scaleX = width.toFloat() / outputWidth
|
||||
val scaleY = height.toFloat() / outputHeight
|
||||
|
||||
return android.graphics.RectF(
|
||||
rect.left * scaleX,
|
||||
rect.top * scaleY,
|
||||
rect.right * scaleX,
|
||||
rect.bottom * scaleY
|
||||
)
|
||||
nativeWidth = mode.physicalWidth.takeIf { it > 0 } ?: return null
|
||||
nativeHeight = mode.physicalHeight.takeIf { it > 0 } ?: return null
|
||||
} else {
|
||||
val nativeSize = IntArray(2)
|
||||
if (!WaylandCompositor.nativeOutputSize(nativeSize)) return null
|
||||
nativeWidth = nativeSize[0].takeIf { it > 0 } ?: return null
|
||||
nativeHeight = nativeSize[1].takeIf { it > 0 } ?: return null
|
||||
}
|
||||
|
||||
val nativeSize = IntArray(2)
|
||||
if (!WaylandCompositor.nativeOutputSize(nativeSize)) return null
|
||||
val nativeWidth = nativeSize[0].takeIf { it > 0 } ?: return null
|
||||
val nativeHeight = nativeSize[1].takeIf { it > 0 } ?: return null
|
||||
val scaleX = width.toFloat() / nativeWidth
|
||||
val scaleY = height.toFloat() / nativeHeight
|
||||
|
||||
@@ -4872,7 +4915,8 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
private fun dispatchDirectTouch(event: MotionEvent): Boolean {
|
||||
val rect = drawnRect() ?: return false
|
||||
if (event.actionMasked == MotionEvent.ACTION_DOWN)
|
||||
ignoreGameTouch = topPictureMapped && !rect.contains(event.x, event.y)
|
||||
ignoreGameTouch = topPictureMapped && !glassesOutputActive &&
|
||||
!rect.contains(event.x, event.y)
|
||||
if (ignoreGameTouch) {
|
||||
if (event.actionMasked == MotionEvent.ACTION_DOWN) {
|
||||
directTouchHold.cancel()
|
||||
@@ -5324,17 +5368,21 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
val left = surfaceAt[0] - overlayAt[0]
|
||||
val top = surfaceAt[1] - overlayAt[1]
|
||||
val bounds = android.graphics.Rect(left, top, left + width, top + height)
|
||||
try {
|
||||
android.view.PixelCopy.request(surfaceView, bitmap, { result ->
|
||||
if (result == android.view.PixelCopy.SUCCESS && !isDestroyed) {
|
||||
pausedFrame = com.droiddeck.launcher.ui.PausedFrame(bitmap.asImageBitmap(), bounds)
|
||||
pausedFrameWanted = false
|
||||
} else {
|
||||
bitmap.recycle()
|
||||
}
|
||||
}, uiHandler)
|
||||
} catch (_: IllegalArgumentException) {
|
||||
bitmap.recycle()
|
||||
withPictureFrame { done ->
|
||||
try {
|
||||
android.view.PixelCopy.request(surfaceView, bitmap, { result ->
|
||||
done()
|
||||
if (result == android.view.PixelCopy.SUCCESS && !isDestroyed) {
|
||||
pausedFrame = com.droiddeck.launcher.ui.PausedFrame(bitmap.asImageBitmap(), bounds)
|
||||
pausedFrameWanted = false
|
||||
} else {
|
||||
bitmap.recycle()
|
||||
}
|
||||
}, uiHandler)
|
||||
} catch (_: IllegalArgumentException) {
|
||||
done()
|
||||
bitmap.recycle()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5398,7 +5446,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
listOf(PointerGestures.BTN_LEFT, PointerGestures.BTN_RIGHT, PointerGestures.BTN_MIDDLE).forEach {
|
||||
heldButtons.set(1, it, false)
|
||||
}
|
||||
WaylandCompositor.nativeSetScaleMode(SCALE_FIT, ALIGN_CENTER)
|
||||
applyGameAlignment()
|
||||
}
|
||||
} else if (!isFinishing && !isDestroyed) {
|
||||
window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
|
||||
@@ -5759,6 +5807,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
cardboard = c
|
||||
val e = effectiveCardboard(c)
|
||||
activeCardboard = e
|
||||
applyGameAlignment()
|
||||
if (CompositorHost.isStarted) pushCardboard(e)
|
||||
if (e.enabled && !was.enabled) headTracker?.recenter()
|
||||
updateHeadTracker()
|
||||
@@ -6326,8 +6375,17 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
finish()
|
||||
}
|
||||
|
||||
override fun onRequestPermissionsResult(requestCode: Int, permissions: Array<out String>, grantResults: IntArray) {
|
||||
super.onRequestPermissionsResult(requestCode, permissions, grantResults)
|
||||
if (requestCode != REQUEST_BLUETOOTH || grantResults.firstOrNull() != android.content.pm.PackageManager.PERMISSION_GRANTED) return
|
||||
steamController?.stop()
|
||||
steamController = SteamControllerBle(this, inputRouter).also { it.start() }
|
||||
}
|
||||
|
||||
companion object {
|
||||
const val EXTRA_RETURN_HOME = "returnHome"
|
||||
private const val BLUETOOTH_CONNECT = "android.permission.BLUETOOTH_CONNECT"
|
||||
private const val REQUEST_BLUETOOTH = 31
|
||||
const val EXTRA_LINK_TASK = "linkTask"
|
||||
const val EXTRA_STEAMVR = "steamVr"
|
||||
const val EXTRA_PLAYED_GAME = "com.droiddeck.launcher.PLAYED_GAME"
|
||||
@@ -6335,6 +6393,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
private const val LEAVE_TIMEOUT_MS = 1_500L
|
||||
private const val TEXT_FIELD_TAP_MS = 1_000L
|
||||
private const val PAUSED_FRAME_MAX_EDGE = 1920f
|
||||
private const val BFI_PICTURE_SETTLE_MS = 50L
|
||||
private const val PAUSED_FRAME_REDRAW_MS = 150L
|
||||
private const val BOTTOM_RECOVERY_MS = 1_000L
|
||||
private const val BOTTOM_RECOVERY_TRIES = 3
|
||||
@@ -6378,6 +6437,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
private val steamVrWorker = java.util.concurrent.ThreadPoolExecutor(0, 1, 30, java.util.concurrent.TimeUnit.SECONDS,
|
||||
java.util.concurrent.LinkedBlockingQueue()) { Thread(it, "steamvr") }
|
||||
private const val SCALE_FIT = 1
|
||||
private const val SCALE_INTEGER = 4
|
||||
private const val ALIGN_CENTER = 0
|
||||
private const val ALIGN_PICTURE_TOP = 3
|
||||
private const val ALIGN_PICTURE_BOTTOM = 4
|
||||
|
||||
@@ -84,6 +84,7 @@ object AgentChats {
|
||||
internal fun encode(entry: Entry): String = when (entry) {
|
||||
is Entry.Asked -> JSONObject().put("asked", entry.text).apply { if (entry.files.isNotEmpty()) put("files", JSONArray(entry.files)) }
|
||||
is Entry.Said -> JSONObject().put("said", entry.text)
|
||||
is Entry.Notice -> JSONObject().put("notice", entry.text)
|
||||
is Entry.Thought -> JSONObject().put("thought", entry.text)
|
||||
is Entry.Result -> JSONObject().put("result", entry.id).put("output", entry.output).put("failed", entry.failed)
|
||||
is Entry.Used -> JSONObject().put("used", entry.tool).put("detail", entry.detail).put("id", entry.id).put("input", entry.input)
|
||||
@@ -119,6 +120,7 @@ object AgentChats {
|
||||
private fun decode(o: JSONObject): Entry? = when {
|
||||
o.has("asked") -> Entry.Asked(o.getString("asked"), o.optJSONArray("files")?.let { a -> (0 until a.length()).map { a.getString(it) } }.orEmpty())
|
||||
o.has("said") -> Entry.Said(o.getString("said"))
|
||||
o.has("notice") -> Entry.Notice(o.getString("notice"))
|
||||
o.has("thought") -> Entry.Thought(o.getString("thought"))
|
||||
o.has("used") -> Entry.Used(o.optString("id"), o.getString("used"), o.optString("detail"), o.optString("input"),
|
||||
if (o.has("output")) o.optString("output") else null, o.optBoolean("failed"), o.optString("parent"))
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.json.JSONArray
|
||||
import org.json.JSONObject
|
||||
import java.io.File
|
||||
|
||||
/** One coding agent CLI in the Linux userland, run one process per turn. */
|
||||
/** One coding agent CLI in the Linux userland, run one process per turn (or kept open, see [input]). */
|
||||
interface AgentHarness {
|
||||
val id: String
|
||||
val name: String
|
||||
@@ -19,6 +19,17 @@ interface AgentHarness {
|
||||
val signedIn: List<String>
|
||||
/** A guest command that signs in through $BROWSER. */
|
||||
val signIn: List<String>
|
||||
/**
|
||||
* Where the user makes an API key, for a CLI whose own sign-in is a terminal prompt: [signIn]
|
||||
* then only opens this page, and the key is pasted into DroidDeck and saved by [saveKey].
|
||||
*/
|
||||
val keyPage: String? get() = null
|
||||
/** Whether a key from [keyPage] is saved under [rootfs]. */
|
||||
fun hasKey(rootfs: File): Boolean = false
|
||||
fun saveKey(rootfs: File, key: String) {}
|
||||
/** Whether the CLI has models that need no account; [useFree] then counts as signed in. */
|
||||
val free: Boolean get() = false
|
||||
fun useFree(rootfs: File) {}
|
||||
/** Whether [Options.plan] means anything to this CLI. */
|
||||
val plans: Boolean
|
||||
/** Reasoning effort levels the CLI accepts, lowest first; empty when it has none. */
|
||||
@@ -27,8 +38,18 @@ interface AgentHarness {
|
||||
fun models(rootfs: File): List<Model>
|
||||
/** The guest command for one turn; [conversation] is null for the first one. */
|
||||
fun turn(message: String, conversation: String?, options: Options): List<String>
|
||||
/**
|
||||
* The line that hands [message] to a [turn] process over stdin, or null when the message is already in the
|
||||
* command. A process that takes its messages this way stays open between turns, so work it started in the
|
||||
* background can wake it, as it does in the CLI's own terminal.
|
||||
*/
|
||||
fun input(message: String): String? = null
|
||||
/** One line of the CLI's output, or null when it carries nothing to show. */
|
||||
fun parse(line: String): AgentEvent?
|
||||
/** The folder, under the userland's root, where the CLI loads user skills (`<name>/SKILL.md`). */
|
||||
val skills: String
|
||||
/** The CLI's global instructions file under the userland's root, where DroidDeck keeps its rules in a marked block. */
|
||||
val instructions: String
|
||||
/** Sets the CLI's own defaults in the userland before it runs; [rootfs] is the userland's root. */
|
||||
fun prepare(rootfs: File) {}
|
||||
/** Context and plan limits the CLI keeps on disk rather than printing, read once a turn of [conversation] is done. */
|
||||
@@ -39,7 +60,7 @@ interface AgentHarness {
|
||||
data class Options(val model: String? = null, val plan: Boolean = false, val brief: String? = null, val effort: String? = null)
|
||||
|
||||
companion object {
|
||||
val all: List<AgentHarness> = listOf(ClaudeCode, Codex)
|
||||
val all: List<AgentHarness> = listOf(ClaudeCode, Codex, OpenCode)
|
||||
fun byId(id: String?): AgentHarness = all.firstOrNull { it.id == id } ?: ClaudeCode
|
||||
}
|
||||
}
|
||||
@@ -56,9 +77,13 @@ data class AgentEvent(
|
||||
val window: Long? = null,
|
||||
val limits: List<AgentHost.Limit>? = null,
|
||||
val usage: AgentHost.Usage? = null,
|
||||
/** This ends a turn the CLI started itself, such as the answer to a finished background task. */
|
||||
val background: Boolean = false,
|
||||
/** The error a background turn ended with, if it failed. */
|
||||
val backgroundError: String? = null,
|
||||
)
|
||||
|
||||
/** Claude Code: `claude -p` with stream-json output, resumed by session id. */
|
||||
/** Claude Code: `claude -p` with stream-json input and output, resumed by session id. */
|
||||
object ClaudeCode : AgentHarness {
|
||||
override val id = "claude"
|
||||
override val name = "Claude Code"
|
||||
@@ -73,6 +98,8 @@ object ClaudeCode : AgentHarness {
|
||||
* Commits and pull requests the agent makes carry no Claude Code credit or co-author line by
|
||||
* default. Only keys the user has not set are written, so their own choice stays.
|
||||
*/
|
||||
override val skills = "root/.claude/skills"
|
||||
override val instructions = "root/.claude/CLAUDE.md"
|
||||
override fun prepare(rootfs: File) {
|
||||
val file = File(rootfs, "root/.claude/settings.json")
|
||||
val settings = if (file.exists()) runCatching { JSONObject(file.readText()) }.getOrNull() ?: return else JSONObject()
|
||||
@@ -97,7 +124,7 @@ object ClaudeCode : AgentHarness {
|
||||
|
||||
// DroidDeck runs the agent unattended on the user's own device; permission prompts have no one to answer them.
|
||||
override fun turn(message: String, conversation: String?, options: AgentHarness.Options) = buildList {
|
||||
addAll(listOf(binary, "-p", message, "--output-format", "stream-json", "--verbose", "--include-partial-messages"))
|
||||
addAll(listOf(binary, "-p", "--input-format", "stream-json", "--output-format", "stream-json", "--verbose", "--include-partial-messages"))
|
||||
addAll(listOf("--permission-mode", if (options.plan) "plan" else "bypassPermissions"))
|
||||
options.model?.let { addAll(listOf("--model", it)) }
|
||||
options.effort?.let { addAll(listOf("--effort", it)) }
|
||||
@@ -105,6 +132,11 @@ object ClaudeCode : AgentHarness {
|
||||
if (conversation != null) addAll(listOf("--resume", conversation))
|
||||
}
|
||||
|
||||
override fun input(message: String): String? = JSONObject()
|
||||
.put("type", "user")
|
||||
.put("message", JSONObject().put("role", "user").put("content", JSONArray().put(JSONObject().put("type", "text").put("text", message))))
|
||||
.toString()
|
||||
|
||||
override fun parse(line: String): AgentEvent? {
|
||||
val o = runCatching { JSONObject(line) }.getOrNull() ?: return null
|
||||
val conversation = o.optString("session_id").takeIf { it.isNotEmpty() }
|
||||
@@ -130,7 +162,11 @@ object ClaudeCode : AgentHarness {
|
||||
"thinking" -> if (parent != null) null else block.optString("thinking").trim().takeIf { it.isNotEmpty() }?.let { AgentHost.Entry.Thought(it) }
|
||||
"tool_use" -> {
|
||||
val input = block.optJSONObject("input")
|
||||
AgentHost.Entry.Used(block.optString("id"), block.optString("name"), detail(input), fullInput(block.optString("name"), input), parent = parent.orEmpty())
|
||||
AgentHost.Entry.Used(
|
||||
block.optString("id"), block.optString("name"), detail(input), fullInput(block.optString("name"), input),
|
||||
parent = parent.orEmpty(),
|
||||
background = input?.optBoolean("run_in_background") == true || block.optString("name") == "Monitor",
|
||||
)
|
||||
}
|
||||
else -> null
|
||||
}
|
||||
@@ -148,17 +184,25 @@ object ClaudeCode : AgentHarness {
|
||||
AgentEvent(conversation, results)
|
||||
}
|
||||
"rate_limit_event" -> AgentEvent(conversation, limits = limits(o.optJSONObject("rate_limit_info")))
|
||||
// A resumed session first answers background tasks the last run left behind; that result is not the turn's.
|
||||
"result" -> if (o.optJSONObject("origin")?.optString("kind") == "task-notification") conversation?.let { AgentEvent(it) } else AgentEvent(
|
||||
conversation,
|
||||
listOf(AgentHost.Entry.Finished(if (o.optBoolean("is_error")) o.optString("result").ifEmpty { o.optString("subtype") } else null)),
|
||||
window = window(o.optJSONObject("modelUsage")),
|
||||
usage = AgentHost.Usage(
|
||||
// The CLI starts turns of its own for background tasks (a resumed session first answers the ones the last
|
||||
// run left behind). Such a result is not the end of the user's turn; the host decides what it ends.
|
||||
"result" -> {
|
||||
val usage = AgentHost.Usage(
|
||||
o.optLong("duration_ms"), o.optDouble("total_cost_usd", 0.0),
|
||||
o.optJSONObject("usage")?.let { it.optLong("input_tokens") + it.optLong("cache_read_input_tokens") + it.optLong("cache_creation_input_tokens") } ?: 0,
|
||||
o.optJSONObject("usage")?.optLong("output_tokens") ?: 0,
|
||||
),
|
||||
)
|
||||
)
|
||||
if (o.optJSONObject("origin")?.optString("kind") == "task-notification") AgentEvent(
|
||||
conversation, usage = usage, background = true,
|
||||
backgroundError = if (o.optBoolean("is_error")) o.optString("result").ifEmpty { o.optString("subtype") } else null,
|
||||
)
|
||||
else AgentEvent(
|
||||
conversation,
|
||||
listOf(AgentHost.Entry.Finished(if (o.optBoolean("is_error")) o.optString("result").ifEmpty { o.optString("subtype") } else null)),
|
||||
window = window(o.optJSONObject("modelUsage")),
|
||||
usage = usage,
|
||||
)
|
||||
}
|
||||
else -> conversation?.let { AgentEvent(it) }
|
||||
}
|
||||
}
|
||||
@@ -227,6 +271,8 @@ object Codex : AgentHarness {
|
||||
override val id = "codex"
|
||||
override val name = "Codex"
|
||||
override val binary = "/root/.local/bin/codex"
|
||||
override val skills = "root/.codex/skills"
|
||||
override val instructions = "root/.codex/AGENTS.md"
|
||||
// Code mode runs in a helper that each release ships as its own download.
|
||||
private const val HOST = "/root/.local/bin/codex-code-mode-host"
|
||||
override val files get() = listOf(binary, HOST)
|
||||
@@ -357,6 +403,184 @@ object Codex : AgentHarness {
|
||||
}
|
||||
}
|
||||
|
||||
/** OpenCode: `opencode run --format json`, resumed by session id. */
|
||||
object OpenCode : AgentHarness {
|
||||
override val id = "opencode"
|
||||
override val name = "OpenCode"
|
||||
override val binary = "/root/.opencode/bin/opencode"
|
||||
override val skills = "root/.config/opencode/skills"
|
||||
override val instructions = "root/.config/opencode/AGENTS.md"
|
||||
override val install = "curl -fsSL https://opencode.ai/install | bash -s -- --no-modify-path"
|
||||
private const val AUTH = "root/.local/share/opencode/auth.json"
|
||||
private const val FREE = "root/.config/opencode/.droiddeck-free"
|
||||
private const val MODELS = "root/.cache/droiddeck/opencode-models"
|
||||
|
||||
// `opencode models` lists only what the saved keys reach, so the check that runs it keeps the model list current.
|
||||
override val signedIn = listOf("sh", "-c",
|
||||
"mkdir -p /${MODELS.substringBeforeLast('/')}; $binary models --verbose > /$MODELS.$$ 2>/dev/null && mv -f /$MODELS.$$ /$MODELS; rm -f /$MODELS.$$; " +
|
||||
"grep -q '\"type\"' /$AUTH 2>/dev/null || [ -e /$FREE ]")
|
||||
override val keyPage = "https://opencode.ai/auth"
|
||||
override val signIn = listOf("/root/.local/bin/android-open", keyPage)
|
||||
override val free = true
|
||||
override val plans = true
|
||||
override val efforts = listOf("low", "medium", "high")
|
||||
|
||||
override fun hasKey(rootfs: File) = runCatching { JSONObject(File(rootfs, AUTH).readText()).has("opencode") }.getOrDefault(false)
|
||||
|
||||
/** The key opencode's own `auth login` would save for OpenCode Zen. */
|
||||
override fun saveKey(rootfs: File, key: String) {
|
||||
val file = File(rootfs, AUTH)
|
||||
// An auth.json that cannot be read holds other providers' sign-ins too, so it is never replaced.
|
||||
val auth = if (file.exists()) JSONObject(file.readText()) else JSONObject()
|
||||
auth.put("opencode", JSONObject().put("type", "api").put("key", key.trim()))
|
||||
file.parentFile?.mkdirs()
|
||||
file.writeText(auth.toString(2) + "\n")
|
||||
file.setReadable(false, false)
|
||||
file.setReadable(true, true)
|
||||
}
|
||||
|
||||
override fun useFree(rootfs: File) {
|
||||
File(rootfs, FREE).apply { parentFile?.mkdirs() }.writeText("Free OpenCode Zen models, chosen in DroidDeck's agent setup.\n")
|
||||
}
|
||||
|
||||
private class Listed(val modified: Long, val models: List<AgentHarness.Model>, val windows: Map<String, Long>)
|
||||
@Volatile private var listed: Listed? = null
|
||||
|
||||
private fun listed(rootfs: File): Listed? {
|
||||
val file = File(rootfs, MODELS)
|
||||
val modified = file.lastModified().takeIf { it > 0 } ?: return null
|
||||
listed?.takeIf { it.modified == modified }?.let { return it }
|
||||
return runCatching { listModels(file.readText()) }.getOrNull()?.let { (models, windows) -> Listed(modified, models, windows) }?.also { listed = it }
|
||||
}
|
||||
|
||||
override fun models(rootfs: File) = listed(rootfs)?.models.orEmpty()
|
||||
|
||||
/** `opencode models --verbose` prints each model's id on a line of its own, then its details as JSON. */
|
||||
@VisibleForTesting
|
||||
internal fun listModels(output: String): Pair<List<AgentHarness.Model>, Map<String, Long>> {
|
||||
val models = mutableListOf<AgentHarness.Model>()
|
||||
val windows = mutableMapOf<String, Long>()
|
||||
var id: String? = null
|
||||
val json = StringBuilder()
|
||||
for (line in output.lineSequence()) {
|
||||
val current = id
|
||||
if (current == null) {
|
||||
if (MODEL_ID.matches(line)) id = line.trim()
|
||||
continue
|
||||
}
|
||||
json.appendLine(line)
|
||||
if (line != "}") continue
|
||||
runCatching { JSONObject(json.toString()) }.getOrNull()?.takeIf { it.optString("status") != "deprecated" }?.let { o ->
|
||||
val provider = o.optString("providerID")
|
||||
val label = o.optString("name").ifEmpty { current }
|
||||
models += AgentHarness.Model(current, if (provider.isEmpty() || provider == "opencode") label else "$label · $provider")
|
||||
o.optJSONObject("limit")?.optLong("context")?.takeIf { it > 0 }?.let { windows[current] = it }
|
||||
}
|
||||
id = null
|
||||
json.clear()
|
||||
}
|
||||
return models to windows
|
||||
}
|
||||
|
||||
private val MODEL_ID = Regex("""^[\w.-]+/\S+$""")
|
||||
|
||||
private class Spent(var cost: Double = 0.0, var input: Long = 0, var output: Long = 0)
|
||||
private val spent = Spent()
|
||||
@Volatile private var model: String? = null
|
||||
|
||||
override fun turn(message: String, conversation: String?, options: AgentHarness.Options): List<String> {
|
||||
synchronized(spent) { spent.cost = 0.0; spent.input = 0; spent.output = 0 }
|
||||
model = options.model
|
||||
// DroidDeck runs the agent unattended; --auto approves all the agent does not deny itself, and plan mode denies edits.
|
||||
return buildList {
|
||||
addAll(listOf(binary, "run", "--format", "json", "--auto", "--thinking"))
|
||||
if (conversation != null) addAll(listOf("-s", conversation))
|
||||
if (options.plan) addAll(listOf("--agent", "plan"))
|
||||
options.model?.let { addAll(listOf("-m", it)) }
|
||||
options.effort?.let { addAll(listOf("--variant", it)) }
|
||||
add("--")
|
||||
// opencode run has no system prompt option, so a new conversation starts with the brief.
|
||||
add(if (conversation == null && options.brief != null) "${options.brief}\n\n$message" else message)
|
||||
}
|
||||
}
|
||||
|
||||
override fun usage(rootfs: File, conversation: String?): AgentEvent? {
|
||||
val id = model ?: return null
|
||||
return listed(rootfs)?.windows?.get(id)?.let { AgentEvent(window = it) }
|
||||
}
|
||||
|
||||
override fun parse(line: String): AgentEvent? {
|
||||
val o = runCatching { JSONObject(line) }.getOrNull() ?: return null
|
||||
val conversation = o.optString("sessionID").takeIf { it.isNotEmpty() }
|
||||
val part = o.optJSONObject("part")
|
||||
return when (o.optString("type")) {
|
||||
"text" -> AgentEvent(conversation, text(part) { AgentHost.Entry.Said(it) })
|
||||
"reasoning" -> AgentEvent(conversation, text(part) { AgentHost.Entry.Thought(it) })
|
||||
"tool_use" -> AgentEvent(conversation, part?.let { tool(it) }.orEmpty())
|
||||
"step_finish" -> {
|
||||
val tokens = part?.optJSONObject("tokens")
|
||||
val cache = tokens?.optJSONObject("cache")
|
||||
val total = synchronized(spent) {
|
||||
spent.cost += part?.optDouble("cost", 0.0) ?: 0.0
|
||||
spent.input += (tokens?.optLong("input") ?: 0) + (cache?.optLong("read") ?: 0) + (cache?.optLong("write") ?: 0)
|
||||
spent.output += (tokens?.optLong("output") ?: 0) + (tokens?.optLong("reasoning") ?: 0)
|
||||
AgentHost.Usage(0, spent.cost, spent.input, spent.output)
|
||||
}
|
||||
val context = tokens?.optLong("total")?.takeIf { it > 0 }
|
||||
// A step that ends to run tools is followed by another; any other reason ends the turn.
|
||||
if (part?.optString("reason") == "tool-calls") AgentEvent(conversation, context = context)
|
||||
else AgentEvent(conversation, listOf(AgentHost.Entry.Finished(null)), context = context, usage = total)
|
||||
}
|
||||
"error" -> {
|
||||
val error = o.optJSONObject("error")
|
||||
val message = error?.optJSONObject("data")?.optString("message")?.takeIf { it.isNotEmpty() }
|
||||
?: error?.optString("message")?.takeIf { it.isNotEmpty() } ?: error?.optString("name")?.takeIf { it.isNotEmpty() } ?: "error"
|
||||
AgentEvent(conversation, listOf(AgentHost.Entry.Finished(message)))
|
||||
}
|
||||
else -> conversation?.let { AgentEvent(it) }
|
||||
}
|
||||
}
|
||||
|
||||
private fun text(part: JSONObject?, entry: (String) -> AgentHost.Entry) =
|
||||
part?.optString("text")?.trim()?.takeIf { it.isNotEmpty() }?.let { listOf(entry(it)) }.orEmpty()
|
||||
|
||||
private fun tool(part: JSONObject): List<AgentHost.Entry> {
|
||||
val id = part.optString("callID").ifEmpty { part.optString("id") }
|
||||
val state = part.optJSONObject("state") ?: JSONObject()
|
||||
val input = state.optJSONObject("input") ?: JSONObject()
|
||||
val path = input.optString("filePath")
|
||||
val (name, detail, full) = when (val tool = part.optString("tool")) {
|
||||
"bash" -> Triple("Bash", firstLine(input.optString("command")), input.optString("command"))
|
||||
"edit" -> Triple("Edit", path, path + "\n" + lineDiff(input.optString("oldString"), input.optString("newString")))
|
||||
"write" -> Triple("Write", path, path + "\n" + lineDiff("", input.optString("content")))
|
||||
"todowrite" -> Triple("TodoWrite", "", todos(input.optJSONArray("todos")))
|
||||
else -> Triple(tool.replaceFirstChar { it.uppercase() }.ifEmpty { "Tool" }, detail(input), input.toString(2))
|
||||
}
|
||||
val used = AgentHost.Entry.Used(id, name, detail, full)
|
||||
return when (state.optString("status")) {
|
||||
"completed" -> {
|
||||
val exit = state.optJSONObject("metadata")?.opt("exit")
|
||||
listOf(used, AgentHost.Entry.Result(id, state.optString("output"), exit is Number && exit.toInt() != 0))
|
||||
}
|
||||
"error" -> listOf(used, AgentHost.Entry.Result(id, state.optString("error"), true))
|
||||
else -> listOf(used)
|
||||
}
|
||||
}
|
||||
|
||||
private fun detail(input: JSONObject): String {
|
||||
for (key in listOf("filePath", "path", "pattern", "url", "query", "description", "prompt", "command")) {
|
||||
input.optString(key).takeIf { it.isNotEmpty() }?.let { return firstLine(it) }
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
private fun todos(list: JSONArray?) = (0 until (list?.length() ?: 0)).mapNotNull { i ->
|
||||
val todo = list?.optJSONObject(i) ?: return@mapNotNull null
|
||||
val mark = when (todo.optString("status")) { "completed" -> "[x]"; "in_progress" -> "[~]"; else -> "[ ]" }
|
||||
"$mark ${todo.optString("content")}"
|
||||
}.joinToString("\n")
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
internal fun firstLine(text: String) = text.lineSequence().first().take(160)
|
||||
|
||||
|
||||
@@ -21,18 +21,23 @@ import java.nio.file.Files
|
||||
|
||||
/**
|
||||
* The launcher's agent: a coding agent CLI ([AgentHarness]) from the Linux userland, run headless
|
||||
* one process per turn, outside any game or desktop session. Conversations are kept on disk
|
||||
* outside any game or desktop session: one process per turn, or for a CLI that takes its messages over
|
||||
* stdin one process kept open between turns, so background work can start a turn of its own. Conversations are kept on disk
|
||||
* ([AgentChats]), so a restart (a Lab build, a crash) continues the same one.
|
||||
*/
|
||||
object AgentHost {
|
||||
sealed interface Entry {
|
||||
data class Asked(val text: String, val files: List<String> = emptyList()) : Entry
|
||||
data class Said(val text: String) : Entry
|
||||
data class Notice(val text: String) : Entry
|
||||
data class Thought(val text: String) : Entry
|
||||
/** A tool call; [output] stays null until its result arrives. [parent] is the subagent call it was made under, if any. */
|
||||
/**
|
||||
* A tool call; [output] stays null until its result arrives. [parent] is the subagent call it was made under, if any.
|
||||
* [background]: the call starts work that can wake the CLI after its turn (run_in_background, Monitor).
|
||||
*/
|
||||
data class Used(
|
||||
val id: String, val tool: String, val detail: String, val input: String = "", val output: String? = null, val failed: Boolean = false,
|
||||
val parent: String = "",
|
||||
val parent: String = "", val background: Boolean = false,
|
||||
) : Entry
|
||||
data class Result(val id: String, val output: String, val failed: Boolean) : Entry
|
||||
/** [planned]: the turn ran in plan mode, so it ends on a plan that nothing has carried out yet. */
|
||||
@@ -63,18 +68,10 @@ object AgentHost {
|
||||
@VisibleForTesting
|
||||
internal const val BRIEF = "You run inside DroidDeck on the user's handheld, in its Linux userland (Ubuntu under proot, aarch64), " +
|
||||
"and the user talks to you from DroidDeck's Agent tab, often on a small screen, so keep replies short. " +
|
||||
"droiddeckctl inspects and drives the app over loopback adb (\$ADB_SERIAL); its guide is ${AgentSetup.CTL}/agent-control.md. " +
|
||||
"Steam, the desktop and games run in DroidDeck's session, a separate guest from yours: a program you start here is not in it and has no screen. " +
|
||||
"Reach the session through droiddeckctl: state, start steam, stop, launch, quit, focus, screenshot, logs, and guest to run a command inside it. " +
|
||||
"Starting, stopping or restarting a session leaves you running. " +
|
||||
"DroidDeck's rules for working here are in your global instructions file (~/.claude/CLAUDE.md or ~/.codex/AGENTS.md); " +
|
||||
"if they are not loaded, read ${AgentSetup.CTL}/AGENTS.md before acting on the device. " +
|
||||
"Never kill by a command-line pattern (pkill -f, pgrep -f piped to kill): your own command line holds the user's message, so the pattern matches you. " +
|
||||
"End a game with droiddeckctl quit, the session with droiddeckctl stop, anything else by its pid. " +
|
||||
"dd-lab-build builds the checkout as a Lab build and restarts DroidDeck on it (docs/lab-builds.md). DroidDeck runs the build in a " +
|
||||
"process of its own and shows the user its progress and time left; dd-lab-build follows that build's log until it is done. " +
|
||||
"Run it with run_in_background and keep checking its output, so the user can talk to you meanwhile. " +
|
||||
"The restart ends this process, and this conversation continues on the new build. " +
|
||||
"Files the user attaches are listed at the end of their message, under /root/.cache/droiddeck/attachments. " +
|
||||
"Commits and pull requests you make are the user's own: add no co-author line, AI credit or generated-by note. " +
|
||||
"To have the user pick between options, end your reply with a fenced code block whose language is choices, one short option per line, " +
|
||||
"and end your turn: DroidDeck shows them as buttons and sends the one picked as the next message."
|
||||
|
||||
@@ -126,10 +123,24 @@ object AgentHost {
|
||||
var lab by mutableStateOf<LabProgress?>(null)
|
||||
private set
|
||||
|
||||
private class Turn(val process: Process, val pid: Int)
|
||||
private class Turn(val process: Process, val pid: Int, val stdin: java.io.OutputStream? = null) {
|
||||
var writingGeneration: Int? = null
|
||||
var exitStatus: Int? = null
|
||||
var costs: AgentCostTracker? = null
|
||||
var clearingCosts = false
|
||||
}
|
||||
|
||||
private val main = Handler(Looper.getMainLooper())
|
||||
private var turn: Turn? = null
|
||||
/**
|
||||
* The CLI process when it takes its messages over stdin. It outlives a turn, so work it started in the
|
||||
* background can wake it: the answer to a finished task then arrives without a message from the user.
|
||||
*/
|
||||
private var session: Turn? = null
|
||||
private var sessionKey: String? = null
|
||||
/** The running turn is one the CLI started itself, not an answer to the user. */
|
||||
private var background = false
|
||||
private val reap = Runnable { if (state != State.WORKING) dropSession() }
|
||||
/** Counts turns, so a process that starts after its turn was stopped is not adopted by the next one. */
|
||||
private var generation = 0
|
||||
private var labProcess: Process? = null
|
||||
@@ -142,6 +153,8 @@ object AgentHost {
|
||||
private var turnPlanned = false
|
||||
private var loaded = false
|
||||
private var appContext: Context? = null
|
||||
/** A tool call in this CLI process started work that can wake it after its turn (run_in_background). */
|
||||
private var launchedBackground = false
|
||||
|
||||
val turnPid: Int get() = turn?.pid ?: 0
|
||||
|
||||
@@ -197,6 +210,7 @@ object AgentHost {
|
||||
AgentSetup.forget()
|
||||
refresh(app)
|
||||
}
|
||||
dropSession()
|
||||
load(app, id)
|
||||
prefs(app).edit().putString(CHAT_KEY, id).apply()
|
||||
}
|
||||
@@ -285,11 +299,42 @@ object AgentHost {
|
||||
live = ""
|
||||
liveThinking = ""
|
||||
turnStarted = SystemClock.elapsedRealtime()
|
||||
AgentHostService.start(app)
|
||||
AgentHostService.start(app)?.let { serviceWarning(app, it) }
|
||||
val current = harness
|
||||
val prompt = AgentAttachments.prompt(message, attached)
|
||||
turnPlanned = plan && current.plans
|
||||
val command = current.turn(prompt, conversation, AgentHarness.Options(model, turnPlanned, BRIEF, effort))
|
||||
val options = AgentHarness.Options(model, turnPlanned, BRIEF, effort)
|
||||
val command = current.turn(prompt, conversation, options)
|
||||
val line = current.input(prompt)
|
||||
val key = "${current.id}|$id|$model|$turnPlanned|$effort"
|
||||
background = false
|
||||
val kept = session
|
||||
if (kept != null && line != null && sessionKey == key && kept.process.isAlive) {
|
||||
main.removeCallbacks(reap)
|
||||
turn = kept
|
||||
kept.writingGeneration = gen
|
||||
kept.clearingCosts = prompt == "/clear"
|
||||
Thread({
|
||||
val written = runCatching { synchronized(kept) { kept.stdin?.apply { write((line + "\n").toByteArray()); flush() } != null } }.getOrDefault(false)
|
||||
// The process died between turns: the same message goes to a new one, which resumes the conversation.
|
||||
main.post {
|
||||
if (kept.writingGeneration == gen) kept.writingGeneration = null
|
||||
if (generation == gen && session === kept) {
|
||||
if (!written) {
|
||||
dropSession()
|
||||
turn = null
|
||||
spawn(app, gen, current, current.turn(prompt, conversation, options), line, key)
|
||||
} else kept.exitStatus?.let { processExited(app, kept, current, it) }
|
||||
}
|
||||
}
|
||||
}, "agent-input").start()
|
||||
return
|
||||
}
|
||||
dropSession()
|
||||
spawn(app, gen, current, command, line, key)
|
||||
}
|
||||
|
||||
private fun spawn(app: Context, gen: Int, current: AgentHarness, command: List<String>, line: String?, key: String) {
|
||||
val workdir = workspace(app)
|
||||
var threadConversation = conversation
|
||||
Thread({
|
||||
@@ -304,40 +349,100 @@ object AgentHost {
|
||||
main.post { if (generation == gen) finish(app, e.message ?: "could not start") }
|
||||
return@Thread
|
||||
}
|
||||
val started = Turn(child, AgentProcesses.pidOf(child))
|
||||
val started = Turn(child, AgentProcesses.pidOf(child), if (line != null) child.outputStream else null).apply {
|
||||
if (current === ClaudeCode && line != null) costs = AgentCostTracker()
|
||||
}
|
||||
OrphanReaper.keep(started.pid)
|
||||
main.post { if (generation == gen && state == State.WORKING && turn == null) turn = started else AgentProcesses.killTree(started.pid) }
|
||||
child.outputStream.close()
|
||||
var ended = false
|
||||
main.post {
|
||||
if (generation == gen && state == State.WORKING && turn == null) {
|
||||
turn = started
|
||||
if (line != null) { session = started; sessionKey = key }
|
||||
} else AgentProcesses.killTree(started.pid)
|
||||
}
|
||||
if (line != null) runCatching { child.outputStream.apply { write((line + "\n").toByteArray()); flush() } } else child.outputStream.close()
|
||||
val raw = runCatching {
|
||||
val log = File(app.filesDir, TURN_LOG).apply { parentFile?.mkdirs() }
|
||||
log.renameTo(File(app.filesDir, "$TURN_LOG.1"))
|
||||
log.bufferedWriter()
|
||||
}.getOrNull()
|
||||
runCatching {
|
||||
child.inputStream.bufferedReader().forEachLine { line ->
|
||||
runCatching { raw?.apply { write(line); newLine(); flush() } }
|
||||
val parsed = current.parse(line) ?: return@forEachLine
|
||||
child.inputStream.bufferedReader().forEachLine { output ->
|
||||
runCatching { raw?.apply { write(output); newLine(); flush() } }
|
||||
val parsed = current.parse(output) ?: return@forEachLine
|
||||
parsed.conversation?.let { threadConversation = it }
|
||||
val done = parsed.entries.any { it is Entry.Finished }
|
||||
if (done) ended = true
|
||||
val event = if (!done) parsed else runCatching { current.usage(LinuxRuntime.rootDir(app), threadConversation) }.getOrNull()
|
||||
?.let { parsed.copy(context = it.context ?: parsed.context, window = it.window ?: parsed.window, limits = it.limits ?: parsed.limits) } ?: parsed
|
||||
main.post { if (turn === started) apply(app, event) }
|
||||
main.post { if (turn === started || session === started) handle(app, started, event) }
|
||||
}
|
||||
}
|
||||
runCatching { raw?.close() }
|
||||
val status = runCatching { child.waitFor() }.getOrDefault(-1)
|
||||
OrphanReaper.release(started.pid)
|
||||
main.post {
|
||||
if (turn === started) {
|
||||
turn = null
|
||||
if (state == State.WORKING && !ended) finish(app, app.getString(R.string.agent_exited, current.name, status))
|
||||
}
|
||||
if (started.writingGeneration != null) started.exitStatus = status
|
||||
else processExited(app, started, current, status)
|
||||
}
|
||||
}, "agent-output").start()
|
||||
}
|
||||
|
||||
private fun processExited(app: Context, exited: Turn, current: AgentHarness, status: Int) {
|
||||
if (session === exited) {
|
||||
session = null
|
||||
launchedBackground = false
|
||||
main.removeCallbacks(reap)
|
||||
AgentHostService.backgroundDone(app)
|
||||
}
|
||||
if (turn === exited) {
|
||||
turn = null
|
||||
if (state == State.WORKING) finish(app, app.getString(R.string.agent_exited, current.name, status))
|
||||
}
|
||||
}
|
||||
|
||||
private fun serviceWarning(app: Context, error: Throwable) {
|
||||
record(app, Entry.Notice("Unable to keep the agent running in the background: ${error.message ?: error.javaClass.simpleName}"))
|
||||
}
|
||||
|
||||
/** One event from the CLI, which may belong to a turn it started on its own once the user's has ended. */
|
||||
private fun handle(app: Context, from: Turn, event: AgentEvent) {
|
||||
if (event.background) {
|
||||
// A leftover task answered before the user's message is not the user's turn; one the CLI started is its own.
|
||||
if (background && state == State.WORKING) finish(app, event.backgroundError, usage = event.usage?.let { from.costs?.perTurn(it) ?: it })
|
||||
return
|
||||
}
|
||||
val content = event.text != null || event.thinking != null || event.entries.any { it !is Entry.Finished }
|
||||
if (content && state == State.IDLE && session === from) {
|
||||
main.removeCallbacks(reap)
|
||||
background = true
|
||||
turn = from
|
||||
turnPlanned = false
|
||||
state = State.WORKING
|
||||
live = ""
|
||||
liveThinking = ""
|
||||
turnStarted = SystemClock.elapsedRealtime()
|
||||
AgentHostService.start(app)?.let { serviceWarning(app, it) }
|
||||
}
|
||||
val finished = event.entries.filterIsInstance<Entry.Finished>().firstOrNull()
|
||||
if (finished != null && state == State.WORKING && from.clearingCosts) {
|
||||
if (finished.error == null) from.costs?.reset()
|
||||
from.clearingCosts = false
|
||||
}
|
||||
val applied = if (finished != null && state == State.WORKING && event.usage != null)
|
||||
event.copy(usage = from.costs?.perTurn(event.usage) ?: event.usage) else event
|
||||
apply(app, applied)
|
||||
}
|
||||
|
||||
/** Ends the CLI process kept between turns, and with it whatever it still runs in the background. */
|
||||
private fun dropSession() {
|
||||
main.removeCallbacks(reap)
|
||||
launchedBackground = false
|
||||
appContext?.let { AgentHostService.backgroundDone(it) }
|
||||
val kept = session ?: return
|
||||
session = null
|
||||
AgentProcesses.killTree(kept.pid)
|
||||
kept.process.destroy()
|
||||
}
|
||||
|
||||
/** Ends the turn now: its process and everything it started, a build included. */
|
||||
fun stop(context: Context) {
|
||||
val app = context.applicationContext
|
||||
@@ -349,6 +454,7 @@ object AgentHost {
|
||||
AgentProcesses.killTree(running.pid)
|
||||
running.process.destroy()
|
||||
}
|
||||
dropSession()
|
||||
if (state == State.WORKING) finish(app, null, stopped = true)
|
||||
}
|
||||
|
||||
@@ -443,19 +549,25 @@ object AgentHost {
|
||||
private fun finish(app: Context, error: String?, stopped: Boolean = false, usage: Usage? = null) {
|
||||
if (state != State.WORKING) return
|
||||
turn = null
|
||||
val answeredTask = background
|
||||
background = false
|
||||
main.removeCallbacks(reap)
|
||||
if (session != null) main.postDelayed(reap, LINGER_MS)
|
||||
if (!stopped) labFromTurn = false
|
||||
live = ""
|
||||
liveThinking = ""
|
||||
val held = if (context > 0) (usage ?: Usage(0, 0.0, 0, 0)).copy(context = context, window = window) else usage
|
||||
record(app, Entry.Finished(error, stopped, held, planned = turnPlanned && !stopped && error == null))
|
||||
state = State.IDLE
|
||||
unseen = true
|
||||
failed = error != null
|
||||
AgentHostService.stop(app)
|
||||
if (session != null && launchedBackground) {
|
||||
AgentHostService.waitForBackground(app)?.let { serviceWarning(app, it) }
|
||||
} else AgentHostService.stop(app)
|
||||
record(app, Entry.Finished(error, stopped, held, planned = turnPlanned && !stopped && error == null))
|
||||
// Claude Code now and then ends a resumed turn at once without reading the message; nothing
|
||||
// happened, so the message is sent once more.
|
||||
val asked = entries.lastOrNull { it is Entry.Asked } as? Entry.Asked
|
||||
if (!stopped && error == null && asked != null && answerless(entries) && !retrying) {
|
||||
if (!stopped && error == null && !answeredTask && asked != null && answerless(entries) && !retrying) {
|
||||
retrying = true
|
||||
val retryChat = chat
|
||||
resend = Runnable {
|
||||
@@ -493,6 +605,7 @@ object AgentHost {
|
||||
|
||||
private fun record(app: Context, entry: Entry) {
|
||||
if (!AgentChats.merge(entries, entry)) return
|
||||
if (entry is Entry.Used && entry.background) launchedBackground = true
|
||||
chat?.let { AgentChats.append(AgentChats.file(app, it), entry) }
|
||||
}
|
||||
|
||||
@@ -645,6 +758,8 @@ object AgentHost {
|
||||
/** The raw output of the latest turn, for working out what a CLI did when the chat shows nothing. */
|
||||
private const val TURN_LOG = "agent/turn.log"
|
||||
private const val RETRY_MS = 3_000L
|
||||
/** How long the CLI process stays open after a turn, waiting for background work to wake it. */
|
||||
private const val LINGER_MS = 20 * 60_000L
|
||||
|
||||
private fun modelKey(harness: AgentHarness) = "model_${harness.id}"
|
||||
private fun limitsKey(harness: AgentHarness) = "limits_${harness.id}"
|
||||
@@ -694,3 +809,17 @@ internal fun choices(reply: String): Choices {
|
||||
val options = lines.subList(found.first + 1, found.last).map { it.trim().removePrefix("- ").removePrefix("* ").trim() }.filter { it.isNotEmpty() }
|
||||
return Choices(lines.subList(0, found.first).joinToString("\n").trimEnd(), options)
|
||||
}
|
||||
|
||||
internal class AgentCostTracker {
|
||||
private var previous = 0.0
|
||||
|
||||
fun reset() { previous = 0.0 }
|
||||
|
||||
fun perTurn(usage: AgentHost.Usage): AgentHost.Usage {
|
||||
val total = usage.costUsd
|
||||
if (total == 0.0 && previous > 0.0) return usage
|
||||
val delta = if (total >= previous) total - previous else total
|
||||
previous = total
|
||||
return usage.copy(costUsd = delta)
|
||||
}
|
||||
}
|
||||
@@ -42,19 +42,37 @@ class AgentHostService : Service() {
|
||||
/** Setup steps that keep the app alive while they run, besides the agent's turn. */
|
||||
private var setupSteps = 0
|
||||
|
||||
fun start(context: Context) {
|
||||
fun start(context: Context): Throwable? {
|
||||
if (started) { update(context); return null }
|
||||
lastText = null
|
||||
started = true
|
||||
runCatching { context.startForegroundService(Intent(context, AgentHostService::class.java)) }
|
||||
.onSuccess { awaiting++ }
|
||||
return runCatching { context.startForegroundService(Intent(context, AgentHostService::class.java)) }
|
||||
.onSuccess { started = true; awaiting++ }
|
||||
.exceptionOrNull()
|
||||
}
|
||||
|
||||
fun stop(context: Context) {
|
||||
if (setupSteps > 0) return
|
||||
if (setupSteps > 0 || waiting) return
|
||||
started = false
|
||||
if (awaiting == 0) context.stopService(Intent(context, AgentHostService::class.java))
|
||||
}
|
||||
|
||||
/**
|
||||
* The turn has ended but its CLI process stays open with background work that can wake it; the app must stay
|
||||
* alive to read that answer, so the service keeps running until the process is dropped.
|
||||
*/
|
||||
@Volatile private var waiting = false
|
||||
|
||||
fun waitForBackground(context: Context): Throwable? {
|
||||
waiting = true
|
||||
return if (started) { update(context); null } else start(context)
|
||||
}
|
||||
|
||||
fun backgroundDone(context: Context) {
|
||||
if (!waiting) return
|
||||
waiting = false
|
||||
if (AgentHost.state != AgentHost.State.WORKING) stop(context)
|
||||
}
|
||||
|
||||
fun setupStarted(context: Context) {
|
||||
setupSteps++
|
||||
start(context)
|
||||
@@ -80,7 +98,8 @@ class AgentHostService : Service() {
|
||||
AgentSetup.detail[AgentSetup.Step.GITHUB]?.takeIf {
|
||||
AgentSetup.status[AgentSetup.Step.GITHUB] == AgentSetup.Status.WORKING && it.startsWith("GitHub device code:")
|
||||
}?.let { return it }
|
||||
if (AgentHost.state != AgentHost.State.WORKING) return context.getString(R.string.agent_setting_up)
|
||||
if (AgentHost.state != AgentHost.State.WORKING)
|
||||
return context.getString(if (waiting && setupSteps == 0) R.string.agent_waiting_background else R.string.agent_setting_up)
|
||||
val tool = AgentHost.running()
|
||||
val elapsed = minutes((SystemClock.elapsedRealtime() - AgentHost.turnStarted) / 1000)
|
||||
return if (tool != null) "${tool.tool} · ${tool.detail}".take(120) + " · $elapsed" else context.getString(R.string.agent_thinking_for, elapsed)
|
||||
|
||||
@@ -40,7 +40,11 @@ object AgentProcesses {
|
||||
val now = SystemClock.elapsedRealtime()
|
||||
val uptimeTicks = now * HZ / 1000
|
||||
val elapsed = (now - lastAt).coerceAtLeast(1)
|
||||
fun isProot(pid: Int) = args[pid].orEmpty().substringBefore(' ').endsWith("proot.so") || args[pid].orEmpty().substringBefore(' ').endsWith("/proot")
|
||||
fun isProot(pid: Int): Boolean {
|
||||
val argv = args[pid].orEmpty().split(' ')
|
||||
val program = if (argv.first().endsWith("/linker64")) argv.getOrElse(1) { "" } else argv.first()
|
||||
return program.endsWith("proot.so") || program.endsWith("/proot")
|
||||
}
|
||||
fun ancestors(pid: Int) = generateSequence(stats[pid]?.ppid) { stats[it]?.ppid }.takeWhile { it > 1 }.take(64)
|
||||
val out = stats.values.filter { s ->
|
||||
!isProot(s.pid) && args[s.pid].orEmpty().isNotEmpty() && ancestors(s.pid).any { isProot(it) }
|
||||
|
||||
@@ -4,6 +4,7 @@ import android.content.Context
|
||||
import android.os.Handler
|
||||
import android.os.Looper
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.mutableStateListOf
|
||||
import androidx.compose.runtime.mutableStateMapOf
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.setValue
|
||||
@@ -26,6 +27,28 @@ object AgentSetup {
|
||||
val detail = mutableStateMapOf<Step, String>()
|
||||
var runtimeInstalled by mutableStateOf(true)
|
||||
private set
|
||||
/** The harness has a key from its [AgentHarness.keyPage] saved; signed in without one means its free models. */
|
||||
var keySaved by mutableStateOf(false)
|
||||
private set
|
||||
|
||||
/** Saves a pasted key for a harness that signs in with one, then checks the sign-in again. */
|
||||
fun saveKey(context: Context, key: String) = signInLocally(context) { harness, root -> harness.saveKey(root, key) }
|
||||
|
||||
fun useFree(context: Context) = signInLocally(context) { harness, root -> harness.useFree(root) }
|
||||
|
||||
private fun signInLocally(context: Context, write: (AgentHarness, File) -> Unit) {
|
||||
val app = context.applicationContext
|
||||
val harness = AgentHost.harness
|
||||
set(Step.SIGN_IN, Status.WORKING)
|
||||
Thread({
|
||||
val result = runCatching { write(harness, LinuxRuntime.rootDir(app)) }
|
||||
main.post {
|
||||
status[Step.SIGN_IN] = Status.UNKNOWN
|
||||
result.exceptionOrNull()?.let { detail[Step.SIGN_IN] = it.message ?: "failed" }
|
||||
check(app)
|
||||
}
|
||||
}, "agent-sign-in").start()
|
||||
}
|
||||
|
||||
val ready: Boolean get() = Step.entries.filter { it.required }.all { status[it] == Status.DONE }
|
||||
|
||||
@@ -40,7 +63,9 @@ object AgentSetup {
|
||||
private val main = Handler(Looper.getMainLooper())
|
||||
private const val REPO = "https://github.com/Droid-Deck/DroidDeck.git"
|
||||
private const val CHECKOUT = "/root/DroidDeck"
|
||||
private val HELPERS = listOf("android-open", "dd-gh-login", "droiddeckctl")
|
||||
private val HELPERS = listOf("android-open", "dd-gh-login", "droiddeckctl", "droiddeck-scenario")
|
||||
/** DroidDeck's own skills (tools/agent/skills), given to every harness. */
|
||||
private const val SKILLS = "agent/skills"
|
||||
internal const val CTL = "/root/.local/share/droiddeck/ctl"
|
||||
private const val PROBE_TIMEOUT_S = 60L
|
||||
|
||||
@@ -50,6 +75,7 @@ object AgentSetup {
|
||||
if (!runtimeInstalled) return
|
||||
AgentHost.refresh(app)
|
||||
val harness = AgentHost.harness
|
||||
keySaved = harness.hasKey(LinuxRuntime.rootDir(app))
|
||||
val probes = mutableListOf<Pair<Step, List<String>>>()
|
||||
for (step in Step.entries) if (status[step] != Status.WORKING) {
|
||||
when (step) {
|
||||
@@ -187,11 +213,98 @@ object AgentSetup {
|
||||
/** Written before every step, so the helpers a step relies on are there and match this DroidDeck version. */
|
||||
internal fun installHelpers(app: Context) {
|
||||
val root = LinuxRuntime.rootDir(app)
|
||||
val failed = mutableListOf<String>()
|
||||
fun attempt(what: String, block: () -> Unit) = runCatching(block).onFailure {
|
||||
android.util.Log.w("AgentSetup", "could not install $what", it)
|
||||
failed += what
|
||||
}
|
||||
val bin = File(root, "root/.local/bin").apply { mkdirs() }
|
||||
for (name in HELPERS) copyAsset(app, "agent/$name", File(bin, name))
|
||||
for (name in HELPERS) attempt(name) { copyAsset(app, "agent/$name", File(bin, name)) }
|
||||
val ctl = File(root, CTL.removePrefix("/")).apply { mkdirs() }
|
||||
for (name in app.assets.list("agent/ctl").orEmpty()) copyAsset(app, "agent/ctl/$name", File(ctl, name))
|
||||
for (name in app.assets.list("agent/ctl").orEmpty()) attempt("ctl/$name") { copyAsset(app, "agent/ctl/$name", File(ctl, name)) }
|
||||
val skills = app.assets.list(SKILLS).orEmpty().associateWith { app.assets.list("$SKILLS/$it").orEmpty().toList() }
|
||||
failed += installSkills(root, skills) { app.assets.open("$SKILLS/$it") }
|
||||
attempt("AGENTS.md") {
|
||||
val rules = app.assets.open("agent/ctl/AGENTS.md").use { it.readBytes().decodeToString() }
|
||||
failed += installInstructions(root, rules)
|
||||
}
|
||||
unpinAdbSerial(File(root, "root/.bashrc"))
|
||||
main.post { problems.clear(); problems.addAll(failed.distinct()) }
|
||||
}
|
||||
|
||||
/** What [installHelpers] could not install last time, shown in the Agent tab; empty when all is in place. */
|
||||
val problems = mutableStateListOf<String>()
|
||||
|
||||
/**
|
||||
* Writes each of DroidDeck's [skills] (name to its files) into every harness's skills folder, so
|
||||
* Claude Code, Codex and any later harness load the same ones, as of this DroidDeck version.
|
||||
* Skills the user added there are left alone. Returns the skills that could not be written.
|
||||
*/
|
||||
internal fun installSkills(root: File, skills: Map<String, List<String>>, open: (String) -> java.io.InputStream): List<String> {
|
||||
val failed = mutableListOf<String>()
|
||||
for (harness in AgentHarness.all) for ((name, files) in skills) runCatching {
|
||||
val dir = File(root, "${harness.skills}/$name")
|
||||
// A folder of that name without DroidDeck's mark is the user's own skill: keep it.
|
||||
if (dir.exists() && !File(dir, SKILL_MARK).exists()) return@runCatching
|
||||
dir.mkdirs()
|
||||
// Marked before copying, so a copy that fails part way is retried next turn, not taken for the user's.
|
||||
File(dir, SKILL_MARK).writeText("Installed by DroidDeck and replaced on every turn. Delete this file to keep your own edits.\n")
|
||||
for (file in files) open("$name/$file").use { replaceFile(it, File(dir, file), executable = false) }
|
||||
}.onFailure {
|
||||
android.util.Log.w("AgentSetup", "could not install skill $name for ${harness.name}", it)
|
||||
failed += "skill $name"
|
||||
}
|
||||
return failed
|
||||
}
|
||||
|
||||
/** Marks a skill folder as DroidDeck's, so it may be replaced; one without it belongs to the user. */
|
||||
internal const val SKILL_MARK = ".droiddeck"
|
||||
|
||||
/**
|
||||
* Where [file] really is when it is a symlink, as the guest sees it: an absolute target is a
|
||||
* userland path, so it is looked up under [root]. A dotfiles link keeps working that way.
|
||||
*/
|
||||
internal fun guestTarget(root: File, file: File): File {
|
||||
var current = file
|
||||
repeat(8) {
|
||||
val path = current.toPath()
|
||||
if (!java.nio.file.Files.isSymbolicLink(path)) return current
|
||||
val target = java.nio.file.Files.readSymbolicLink(path).toString()
|
||||
current = if (target.startsWith("/")) File(root, target.removePrefix("/")) else File(current.parentFile, target)
|
||||
}
|
||||
return current
|
||||
}
|
||||
|
||||
internal const val BLOCK_BEGIN = "<!-- BEGIN DroidDeck: replaced on every turn. Write your own rules outside this block. -->"
|
||||
internal const val BLOCK_END = "<!-- END DroidDeck -->"
|
||||
|
||||
/**
|
||||
* Puts DroidDeck's [rules] in a marked block of every harness's global instructions file,
|
||||
* keeping whatever the user wrote around it. Returns the files that could not be written.
|
||||
*/
|
||||
internal fun installInstructions(root: File, rules: String): List<String> {
|
||||
val failed = mutableListOf<String>()
|
||||
for (harness in AgentHarness.all) runCatching {
|
||||
val file = guestTarget(root, File(root, harness.instructions)).apply { parentFile?.mkdirs() }
|
||||
val existing = if (file.exists()) file.readText() else null
|
||||
val merged = withBlock(existing, rules)
|
||||
if (merged != existing) replaceFile(merged.byteInputStream(), file, executable = false)
|
||||
}.onFailure {
|
||||
android.util.Log.w("AgentSetup", "could not write ${harness.instructions}", it)
|
||||
failed += harness.instructions.substringAfterLast("root/")
|
||||
}
|
||||
return failed
|
||||
}
|
||||
|
||||
/** [existing] with DroidDeck's block set to [rules]: replaced in place, or put first when there is none yet. */
|
||||
internal fun withBlock(existing: String?, rules: String): String {
|
||||
val block = "$BLOCK_BEGIN\n${rules.trim()}\n$BLOCK_END\n"
|
||||
if (existing.isNullOrBlank()) return block
|
||||
val start = existing.indexOf(BLOCK_BEGIN)
|
||||
val end = existing.indexOf(BLOCK_END, start.coerceAtLeast(0))
|
||||
if (start < 0 || end < 0) return "$block\n$existing"
|
||||
val after = existing.substring(end + BLOCK_END.length).removePrefix("\n")
|
||||
return existing.substring(0, start) + block + after
|
||||
}
|
||||
|
||||
/** Older tools/agent/setup pinned the adb port in .bashrc, which overrides the live port DroidDeck passes. */
|
||||
@@ -201,8 +314,24 @@ object AgentSetup {
|
||||
if (fixed != text) runCatching { bashrc.writeText(fixed) }
|
||||
}
|
||||
|
||||
/**
|
||||
* Written beside [target] and renamed over it, so a symlink left there by a hand-made setup is
|
||||
* replaced rather than followed: its absolute target is a userland path the app cannot reach,
|
||||
* and the failed write stopped every helper after it, the droiddeckctl guide included.
|
||||
*/
|
||||
private fun copyAsset(app: Context, asset: String, target: File) {
|
||||
app.assets.open(asset).use { input -> target.outputStream().use { input.copyTo(it) } }
|
||||
target.setExecutable(true, false)
|
||||
app.assets.open(asset).use { replaceFile(it, target) }
|
||||
}
|
||||
|
||||
/** Replaces [target], or the symlink at it, with [input]. */
|
||||
internal fun replaceFile(input: java.io.InputStream, target: File, executable: Boolean = true) {
|
||||
// A unique name, since an agent turn and a setup step can install at the same time.
|
||||
val staged = File.createTempFile(".${target.name}.", ".part", target.parentFile)
|
||||
staged.outputStream().use { input.copyTo(it) }
|
||||
if (executable) staged.setExecutable(true, false)
|
||||
if (!staged.renameTo(target)) {
|
||||
staged.delete()
|
||||
throw java.io.IOException("could not replace $target")
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -16,13 +16,14 @@ import java.nio.file.attribute.BasicFileAttributes
|
||||
|
||||
/**
|
||||
* What the agent adds to the Linux userland, measured and removable piece by piece. Sign-ins
|
||||
* (~/.claude, ~/.codex, gh's config) are left alone, so removing a CLI and installing it again
|
||||
* does not sign out.
|
||||
* (~/.claude, ~/.codex, ~/.local/share/opencode, gh's config) are left alone, so removing a CLI
|
||||
* and installing it again does not sign out.
|
||||
*/
|
||||
object AgentStorage {
|
||||
enum class Item(val paths: List<String>) {
|
||||
CLAUDE_CODE(listOf("/root/.local/share/claude", "/root/.local/bin/claude", "/root/cc")),
|
||||
CODEX(listOf("/root/.local/bin/codex", "/root/.local/bin/codex-code-mode-host")),
|
||||
OPENCODE(listOf("/root/.opencode")),
|
||||
BUILD_TOOLS(listOf("/root/android-sdk", "/root/aapt2", "/root/x86root", "/root/.gradle")),
|
||||
SOURCE(listOf("/root/DroidDeck")),
|
||||
CACHES(listOf("/root/.cache", "/root/.npm")),
|
||||
|
||||
@@ -7,7 +7,7 @@ import androidx.compose.runtime.setValue
|
||||
import com.droiddeck.launcher.session.SessionPrefs
|
||||
|
||||
object AgentTab {
|
||||
var shown by mutableStateOf(true)
|
||||
var shown by mutableStateOf(false)
|
||||
private set
|
||||
|
||||
val visible: Boolean get() = shown && AgentHost.available
|
||||
|
||||
@@ -168,7 +168,7 @@ public class PulseAudioComponent extends SessionPart {
|
||||
env.add("HOME=" + workingDir);
|
||||
env.add("TMPDIR=" + workingDir);
|
||||
|
||||
String command = workingDir.getAbsolutePath() + "/libpulseaudio.so"
|
||||
String command = String.join(" ", HostProcess.dataExecutable(workingDir.getAbsolutePath() + "/libpulseaudio.so"))
|
||||
+ " --system=false --disable-shm=true --fail=false"
|
||||
+ " -n --file=default.pa --daemonize=false --use-pid-file=false --exit-idle-time=-1"
|
||||
+ " --log-level=info";
|
||||
@@ -259,7 +259,7 @@ public class PulseAudioComponent extends SessionPart {
|
||||
try {
|
||||
File modules = new File(workingDir, "modules/arm64");
|
||||
ArrayList<String> cmd = new ArrayList<>();
|
||||
cmd.add(pactl.getAbsolutePath());
|
||||
cmd.addAll(HostProcess.dataExecutable(pactl.getAbsolutePath()));
|
||||
java.util.Collections.addAll(cmd, args);
|
||||
ProcessBuilder builder = new ProcessBuilder(cmd);
|
||||
builder.directory(workingDir);
|
||||
@@ -316,8 +316,9 @@ public class PulseAudioComponent extends SessionPart {
|
||||
java.lang.Process process = null;
|
||||
try {
|
||||
File modules = new File(workingDir, "modules/arm64");
|
||||
ProcessBuilder builder = new ProcessBuilder(
|
||||
pactl.getAbsolutePath(), "suspend-" + kind, name, Boolean.toString(suspended));
|
||||
ArrayList<String> argv = new ArrayList<>(HostProcess.dataExecutable(pactl.getAbsolutePath()));
|
||||
argv.addAll(java.util.Arrays.asList("suspend-" + kind, name, Boolean.toString(suspended)));
|
||||
ProcessBuilder builder = new ProcessBuilder(argv);
|
||||
builder.directory(workingDir);
|
||||
builder.redirectErrorStream(true);
|
||||
builder.redirectOutput(new File("/dev/null"));
|
||||
|
||||
@@ -172,5 +172,8 @@ internal class AddonPack(
|
||||
listOf("runtime.tzst", "version.txt"))
|
||||
val UBISOFT = AddonPack("ubisoft", BuildConfig.PACK_UBISOFT_SHA256, BuildConfig.PACK_UBISOFT_SIZE,
|
||||
listOf("droiddeck-upc.exe"))
|
||||
val ROCKSTAR = AddonPack("rockstar", BuildConfig.PACK_ROCKSTAR_SHA256, BuildConfig.PACK_ROCKSTAR_SIZE,
|
||||
listOf("Launcher32.exe", "Launcher64.exe"))
|
||||
val DIRT = AddonPack("dirt", BuildConfig.PACK_DIRT_SHA256, BuildConfig.PACK_DIRT_SIZE, listOf("ws2_32.dll"))
|
||||
}
|
||||
}
|
||||
@@ -31,9 +31,13 @@ import java.util.Locale
|
||||
object DeviceReport {
|
||||
private const val TAG = "DeviceReport"
|
||||
|
||||
internal fun cpuFeaturesSummary(cpuInfo: String): String = cpuInfo.lineSequence()
|
||||
internal fun cpuFeatureLists(cpuInfo: String): List<List<String>> = cpuInfo.lineSequence()
|
||||
.filter { it.substringBefore(':').trim() == "Features" }
|
||||
.map { it.substringAfter(':').trim().split(Regex("\\s+")).filter(String::isNotEmpty).joinToString(" ") }
|
||||
.map { it.substringAfter(':').trim().split(Regex("\\s+")).filter(String::isNotEmpty) }
|
||||
.toList()
|
||||
|
||||
internal fun cpuFeaturesSummary(cpuInfo: String): String = cpuFeatureLists(cpuInfo)
|
||||
.map { it.joinToString(" ") }
|
||||
.filter(String::isNotEmpty).distinct().joinToString(" | ").ifEmpty { "not reported" }
|
||||
|
||||
fun write(context: Context, target: File, mode: String) {
|
||||
|
||||
@@ -6,6 +6,12 @@ import java.util.function.Consumer
|
||||
|
||||
object HostProcess {
|
||||
private const val TAG = "HostProcess"
|
||||
private const val LINKER = "/system/bin/linker64"
|
||||
|
||||
/** Android 10+ refuses to execute app data files for targetSdk 29+; its linker still loads them. */
|
||||
@JvmStatic
|
||||
fun dataExecutable(path: String): List<String> =
|
||||
if (android.os.Build.VERSION.SDK_INT >= 29) listOf(LINKER, path) else listOf(path)
|
||||
|
||||
@JvmStatic
|
||||
fun start(command: String, env: Array<String>?, dir: File?, onExit: Consumer<Int>?, onLine: Consumer<String>?): Int =
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.droiddeck.launcher.core
|
||||
|
||||
import android.content.Context
|
||||
import android.os.Process
|
||||
import android.util.Log
|
||||
import java.io.BufferedWriter
|
||||
@@ -113,7 +114,17 @@ object SessionLogCapture {
|
||||
}
|
||||
}
|
||||
|
||||
fun dumpMemoryPressure(target: File) {
|
||||
internal const val LMKD_COMMAND = "logcat -d -b main,events -v threadtime -s lowmemorykiller:D killinfo:I" +
|
||||
" | grep -v -E 'pgskip|zoneinfo_parse|polling check|thrashing:' | tail -n 120"
|
||||
|
||||
private fun lowMemoryKiller(context: Context?): String = when {
|
||||
context == null -> "(not captured)\n"
|
||||
!WirelessAdbFix.hasSavedPairing(context) -> "(not captured: pair DroidDeck with Wireless debugging in Settings > Diagnostics)\n"
|
||||
else -> runCatching { WirelessAdbFix.shell(context, LMKD_COMMAND) }
|
||||
.fold({ it.ifBlank { "(no lmkd lines in the log)\n" } }, { "(not captured: ${it.message})\n" })
|
||||
}
|
||||
|
||||
fun dumpMemoryPressure(target: File, context: Context? = null) {
|
||||
var temporary: File? = null
|
||||
try {
|
||||
val staged = File.createTempFile(target.name, ".part", target.parentFile).also { temporary = it }
|
||||
@@ -150,7 +161,8 @@ object SessionLogCapture {
|
||||
body.isNotEmpty() -> body
|
||||
else -> "(no readable events were returned)\n"
|
||||
} +
|
||||
"\n/proc/pressure/memory:\n$pressure\n/proc/meminfo:\n$meminfo\n/sys/class/kgsl/kgsl/page_alloc:\n$gpu"
|
||||
"\n/proc/pressure/memory:\n$pressure\n/proc/meminfo:\n$meminfo\n/sys/class/kgsl/kgsl/page_alloc:\n$gpu" +
|
||||
"\nAndroid's low memory killer (lmkd), read over Wireless debugging:\n${lowMemoryKiller(context)}"
|
||||
)
|
||||
Files.move(
|
||||
staged.toPath(), target.toPath(),
|
||||
|
||||
@@ -335,7 +335,10 @@ object AddedGames {
|
||||
val path = canonical(exe)
|
||||
val owner = ownerFolder(app, exe)
|
||||
if (owner != null && owner.path !in SessionPrefs.removedAddedGames(app)) {
|
||||
single(app, owner.path)?.takeIf { canonical(it.exe) == path }?.let { return AddResult.Existing(it) }
|
||||
single(app, owner.path)?.takeIf { canonical(it.exe) == path }?.let {
|
||||
if (guestPath(app, exe) != null) AddedExes.put(app, AddedExes.Entry(owner.path, exe.path))
|
||||
return AddResult.Existing(it)
|
||||
}
|
||||
}
|
||||
if (guestPath(app, exe) == null) {
|
||||
(owner ?: exe.parentFile)?.takeIf { guestPath(app, it) == null }?.let { bindFolder(app, it) }
|
||||
@@ -344,7 +347,7 @@ object AddedGames {
|
||||
val folder = owner ?: exe.parentFile ?: return AddResult.NotFound
|
||||
SessionPrefs.setAddedGameRemoved(app, folder.path, false)
|
||||
SessionPrefs.setAddedGameExe(app, folder.path, exe.path)
|
||||
if (owner == null) AddedExes.put(app, AddedExes.Entry(folder.path, exe.path))
|
||||
AddedExes.put(app, AddedExes.Entry(folder.path, exe.path))
|
||||
val game = single(app, folder.path) ?: return AddResult.NotFound
|
||||
AddedGamesPublisher.later(app) { com.droiddeck.launcher.stores.SteamLiveShortcuts.sync(app, listOf(game)) { true } }
|
||||
Log.i(TAG, "added ${game.name} from its exe")
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.droiddeck.launcher.frontend
|
||||
|
||||
import android.content.Context
|
||||
import com.droiddeck.launcher.session.SessionPrefs
|
||||
import com.droiddeck.launcher.session.SessionState
|
||||
|
||||
object SteamInputOverride {
|
||||
private const val CONFIG_KEY = "UseSteamControllerConfig"
|
||||
private const val DEFAULT_VALUE = "1"
|
||||
|
||||
enum class Mode(val value: String?) {
|
||||
DEFAULT(null), ENABLED("2"), DISABLED("0");
|
||||
|
||||
companion object {
|
||||
fun from(value: String): Mode? = when (value) {
|
||||
DEFAULT_VALUE -> DEFAULT
|
||||
"2" -> ENABLED
|
||||
"0" -> DISABLED
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enum class Saved { YES, NO, RUNNING }
|
||||
|
||||
fun current(context: Context, appId: Int): Mode? =
|
||||
SteamLaunchOptions.steamAppSetting(
|
||||
SessionPrefs.activeSteamRoot(context), appId, CONFIG_KEY, DEFAULT_VALUE,
|
||||
)?.let(Mode::from)
|
||||
|
||||
fun set(context: Context, appId: Int, mode: Mode, shown: Mode): Saved {
|
||||
if (SessionState.running) return Saved.RUNNING
|
||||
val saved = SteamLaunchOptions.writeSteamAppSetting(
|
||||
SessionPrefs.activeSteamRoot(context), appId, CONFIG_KEY,
|
||||
shown.value ?: DEFAULT_VALUE, mode.value, DEFAULT_VALUE,
|
||||
)
|
||||
return if (saved) Saved.YES else Saved.NO
|
||||
}
|
||||
}
|
||||
@@ -13,6 +13,8 @@ import java.nio.file.StandardCopyOption
|
||||
object SteamLaunchOptions {
|
||||
private const val TAG = "SteamLaunchOptions"
|
||||
private val STEAM = listOf("UserLocalConfigStore", "Software", "Valve", "Steam")
|
||||
// Steam keeps per-game settings such as UseSteamControllerConfig in the root apps section, and launch options under Software/Valve/Steam.
|
||||
private val ROOT = listOf("UserLocalConfigStore")
|
||||
|
||||
fun current(context: Context, appId: Int): String? =
|
||||
SteamLiveShortcuts.launchOptions(context, appId.toLong()) ?: steam(SessionPrefs.activeSteamRoot(context), appId)
|
||||
@@ -36,13 +38,38 @@ object SteamLaunchOptions {
|
||||
val config = AddedGames.accountConfig(steamHome) ?: return null
|
||||
val text = runCatching { File(config, "localconfig.vdf").readText() }.getOrNull() ?: return null
|
||||
if (section(text, STEAM) == null) return null
|
||||
return launchOptions(text, appId).orEmpty()
|
||||
return appValue(text, appId, "LaunchOptions").orEmpty()
|
||||
}
|
||||
|
||||
internal fun write(steamHome: File, appId: Int, options: String): Boolean {
|
||||
val config = AddedGames.accountConfig(steamHome)?.let { File(it, "localconfig.vdf") } ?: return false
|
||||
val text = runCatching { config.readText() }.getOrNull() ?: return false
|
||||
val updated = withLaunchOptions(text, appId, options) ?: return false
|
||||
return writeConfig(config, text, updated)
|
||||
}
|
||||
|
||||
internal fun steamAppSetting(steamHome: File, appId: Int, key: String, default: String): String? {
|
||||
val config = AddedGames.accountConfig(steamHome) ?: return null
|
||||
val text = runCatching { File(config, "localconfig.vdf").readText() }.getOrNull() ?: return null
|
||||
if (section(text, ROOT) == null) return null
|
||||
return settingValue(text, appId, key) ?: default
|
||||
}
|
||||
|
||||
private fun settingValue(text: String, appId: Int, key: String): String? =
|
||||
appValue(text, appId, key, ROOT) ?: appValue(text, appId, key, STEAM)
|
||||
|
||||
internal fun writeSteamAppSetting(
|
||||
steamHome: File, appId: Int, key: String, expected: String, value: String?, default: String,
|
||||
): Boolean {
|
||||
val config = AddedGames.accountConfig(steamHome)?.let { File(it, "localconfig.vdf") } ?: return false
|
||||
val text = runCatching { config.readText() }.getOrNull() ?: return false
|
||||
if (section(text, ROOT) == null || (settingValue(text, appId, key) ?: default) != expected) return false
|
||||
val updated = (if (value == null) withoutAppValue(text, appId, key, ROOT) else withAppValue(text, appId, key, value, ROOT))
|
||||
?.let { withoutAppValue(it, appId, key, STEAM) } ?: return false
|
||||
return writeConfig(config, text, updated)
|
||||
}
|
||||
|
||||
private fun writeConfig(config: File, text: String, updated: String): Boolean {
|
||||
if (updated == text) return true
|
||||
val staged = File(config.parentFile, config.name + ".staged")
|
||||
return try {
|
||||
@@ -55,36 +82,57 @@ object SteamLaunchOptions {
|
||||
true
|
||||
} catch (e: Exception) {
|
||||
staged.delete()
|
||||
Log.w(TAG, "could not write launch options to ${config.path}", e)
|
||||
Log.w(TAG, "could not write Steam app settings to ${config.path}", e)
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
internal fun launchOptions(text: String, appId: Int): String? {
|
||||
val app = section(text, STEAM + "apps" + appId.toString()) ?: return null
|
||||
return entries(text, app.valueStart, app.end).firstOrNull { !it.section && it.key.equals("LaunchOptions", true) }
|
||||
return appValue(text, appId, "LaunchOptions")
|
||||
}
|
||||
|
||||
private fun appValue(text: String, appId: Int, key: String, base: List<String> = STEAM): String? {
|
||||
val app = section(text, base + "apps" + appId.toString()) ?: return null
|
||||
return entries(text, app.valueStart, app.end).firstOrNull { !it.section && it.key.equals(key, true) }
|
||||
?.let { unescape(text.substring(it.valueStart + 1, it.end)) }
|
||||
}
|
||||
|
||||
internal fun withLaunchOptions(text: String, appId: Int, options: String): String? {
|
||||
internal fun withLaunchOptions(text: String, appId: Int, options: String): String? =
|
||||
withAppValue(text, appId, "LaunchOptions", options)
|
||||
|
||||
private fun withAppValue(text: String, appId: Int, key: String, rawValue: String, base: List<String> = STEAM): String? {
|
||||
val newline = if (text.contains("\r\n")) "\r\n" else "\n"
|
||||
var updated = text
|
||||
var path = STEAM
|
||||
for (key in listOf("apps", appId.toString())) {
|
||||
updated = withSection(updated, section(updated, path) ?: return null, key, newline) ?: return null
|
||||
path = path + key
|
||||
var path = base
|
||||
for (pathPart in listOf("apps", appId.toString())) {
|
||||
updated = withSection(updated, section(updated, path) ?: return null, pathPart, newline) ?: return null
|
||||
path = path + pathPart
|
||||
}
|
||||
val app = section(updated, path) ?: return null
|
||||
val value = "\"" + escape(options) + "\""
|
||||
entries(updated, app.valueStart, app.end).firstOrNull { !it.section && it.key.equals("LaunchOptions", true) }?.let {
|
||||
val value = "\"" + escape(rawValue) + "\""
|
||||
entries(updated, app.valueStart, app.end).firstOrNull { !it.section && it.key.equals(key, true) }?.let {
|
||||
return updated.replaceRange(it.valueStart, it.end + 1, value)
|
||||
}
|
||||
val lineStart = closingLine(updated, app) ?: return null
|
||||
val indent = updated.substring(lineStart, app.end) + "\t"
|
||||
return updated.substring(0, lineStart) + indent + "\"LaunchOptions\"\t\t" + value + newline + updated.substring(lineStart)
|
||||
return updated.substring(0, lineStart) + indent + "\"${escape(key)}\"\t\t" + value + newline + updated.substring(lineStart)
|
||||
}
|
||||
|
||||
private class Entry(val key: String, val valueStart: Int, val end: Int, val section: Boolean)
|
||||
private fun withoutAppValue(text: String, appId: Int, key: String, base: List<String> = STEAM): String {
|
||||
val app = section(text, base + "apps" + appId.toString()) ?: return text
|
||||
val entry = entries(text, app.valueStart, app.end).firstOrNull { !it.section && it.key.equals(key, true) } ?: return text
|
||||
val lineStart = text.lastIndexOf('\n', entry.start - 1) + 1
|
||||
val lineEnd = text.indexOf('\n', entry.end + 1).let { if (it < 0) text.length else it }
|
||||
val onlyEntryOnLine = text.substring(lineStart, entry.start).all(Char::isWhitespace) &&
|
||||
text.substring(entry.end + 1, lineEnd).all(Char::isWhitespace)
|
||||
return if (onlyEntryOnLine) {
|
||||
text.removeRange(lineStart, if (lineEnd < text.length) lineEnd + 1 else lineEnd)
|
||||
} else {
|
||||
text.removeRange(entry.start, entry.end + 1)
|
||||
}
|
||||
}
|
||||
|
||||
private class Entry(val key: String, val start: Int, val valueStart: Int, val end: Int, val section: Boolean)
|
||||
|
||||
private fun section(text: String, path: List<String>): Entry? {
|
||||
var found: Entry? = null
|
||||
@@ -98,18 +146,27 @@ object SteamLaunchOptions {
|
||||
private fun entries(text: String, open: Int, close: Int): List<Entry> {
|
||||
val found = ArrayList<Entry>()
|
||||
var key: String? = null
|
||||
var keyStart = -1
|
||||
var i = open + 1
|
||||
while (i < close) {
|
||||
when {
|
||||
text[i] == '"' -> {
|
||||
val end = stringEnd(text, i) ?: return found
|
||||
if (key == null) key = unescape(text.substring(i + 1, end)) else { found += Entry(key, i, end, false); key = null }
|
||||
if (key == null) {
|
||||
key = unescape(text.substring(i + 1, end))
|
||||
keyStart = i
|
||||
} else {
|
||||
found += Entry(key, keyStart, i, end, false)
|
||||
key = null
|
||||
keyStart = -1
|
||||
}
|
||||
i = end + 1
|
||||
}
|
||||
text[i] == '{' -> {
|
||||
val end = sectionEnd(text, i) ?: return found
|
||||
key?.let { found += Entry(it, i, end, true) }
|
||||
key?.let { found += Entry(it, keyStart, i, end, true) }
|
||||
key = null
|
||||
keyStart = -1
|
||||
i = end + 1
|
||||
}
|
||||
text.startsWith("//", i) -> i = text.indexOf('\n', i).let { if (it < 0) close else it }
|
||||
|
||||
@@ -16,30 +16,36 @@ data class ScreenEffects(
|
||||
val hdr: Boolean = false,
|
||||
val deband: Boolean = false,
|
||||
val debandStrength: Int = 100,
|
||||
val fxaa: Boolean = false,
|
||||
val aaMode: Int = AA_OFF,
|
||||
val toon: Boolean = false,
|
||||
val crt: Boolean = false,
|
||||
val ntsc: Boolean = false,
|
||||
) {
|
||||
val fxaa: Boolean get() = aaMode == AA_FXAA
|
||||
val smaa: Boolean get() = aaMode == AA_SMAA
|
||||
val effectiveCas: Int get() = if (cas) casLevel else 0
|
||||
|
||||
val any: Boolean get() = brightness != 0 || contrast != 0 || abs(gamma - 1f) > 0.005f || saturation != 100 ||
|
||||
effectiveCas > 0 || hdr || deband || fxaa || toon || crt || ntsc
|
||||
effectiveCas > 0 || hdr || deband || aaMode != AA_OFF || toon || crt || ntsc
|
||||
|
||||
fun push(upscaler: Int) {
|
||||
WaylandCompositor.nativeSetCas(cas, casLevel)
|
||||
WaylandCompositor.nativeSetHdr(hdr)
|
||||
WaylandCompositor.nativeSetDeband(deband, debandStrength)
|
||||
WaylandCompositor.nativeSetScreenEffects(brightness.toFloat(), contrast.toFloat(), gamma, saturation.toFloat(), fxaa, toon, crt, ntsc)
|
||||
WaylandCompositor.nativeSetScreenEffects(brightness.toFloat(), contrast.toFloat(), gamma, saturation.toFloat(), aaMode, toon, crt, ntsc)
|
||||
WaylandCompositor.nativeSetLookName(ScreenEffectLooks.match(this, upscaler)?.name)
|
||||
}
|
||||
|
||||
fun encode(): JSONObject = JSONObject()
|
||||
.put("brightness", brightness).put("contrast", contrast).put("gamma", gamma.toDouble()).put("saturation", saturation)
|
||||
.put("cas", cas).put("casLevel", casLevel).put("hdr", hdr).put("deband", deband).put("debandStrength", debandStrength)
|
||||
.put("fxaa", fxaa).put("toon", toon).put("crt", crt).put("ntsc", ntsc)
|
||||
.put("aaMode", aaMode).put("fxaa", fxaa).put("toon", toon).put("crt", crt).put("ntsc", ntsc)
|
||||
|
||||
companion object {
|
||||
const val AA_OFF = 0
|
||||
const val AA_FXAA = 1
|
||||
const val AA_SMAA = 2
|
||||
|
||||
val OFF = ScreenEffects()
|
||||
|
||||
fun decode(json: JSONObject): ScreenEffects = ScreenEffects(
|
||||
@@ -52,7 +58,7 @@ data class ScreenEffects(
|
||||
hdr = json.optBoolean("hdr", false),
|
||||
deband = json.optBoolean("deband", false),
|
||||
debandStrength = json.optInt("debandStrength", 100).coerceIn(0, 200),
|
||||
fxaa = json.optBoolean("fxaa", false),
|
||||
aaMode = json.optInt("aaMode", if (json.optBoolean("fxaa", false)) AA_FXAA else AA_OFF).coerceIn(AA_OFF, AA_SMAA),
|
||||
toon = json.optBoolean("toon", false),
|
||||
crt = json.optBoolean("crt", false),
|
||||
ntsc = json.optBoolean("ntsc", false),
|
||||
@@ -79,13 +85,13 @@ object ScreenEffectLooks {
|
||||
desc = "Sharpening with a touch of contrast - the everyday one.", label = R.string.look_game_clarity, descRes = R.string.look_game_clarity_desc),
|
||||
Look("Vivid", ScreenEffects(brightness = 3, contrast = 10, gamma = 0.98f, saturation = 145, cas = true, casLevel = 30, deband = true),
|
||||
desc = "Colour pushed hard. Deband on so skies don't stripe.", label = R.string.look_vivid, descRes = R.string.look_vivid_desc),
|
||||
Look("Cinematic", ScreenEffects(brightness = -4, contrast = 22, gamma = 1.10f, saturation = 88, cas = true, casLevel = 20, fxaa = true, deband = true),
|
||||
Look("Cinematic", ScreenEffects(brightness = -4, contrast = 22, gamma = 1.10f, saturation = 88, cas = true, casLevel = 20, aaMode = ScreenEffects.AA_FXAA, deband = true),
|
||||
desc = "Deeper contrast, cooler colour, edges smoothed.", label = R.string.look_cinematic, descRes = R.string.look_cinematic_desc),
|
||||
Look("Competitive", ScreenEffects(brightness = 16, contrast = 18, gamma = 0.92f, saturation = 82, cas = true, casLevel = 75),
|
||||
desc = "Shadows lifted and heavy sharpening - spot people first.", label = R.string.look_competitive, descRes = R.string.look_competitive_desc),
|
||||
Look("Adaptive Sharpen", ScreenEffects(cas = true, casLevel = 85),
|
||||
desc = "Sharpening only, colour untouched.", label = R.string.look_adaptive_sharpen, descRes = R.string.look_adaptive_sharpen_desc),
|
||||
Look("Filmic", ScreenEffects(brightness = -2, contrast = 16, gamma = 1.14f, saturation = 92, cas = true, casLevel = 15, fxaa = true, deband = true),
|
||||
Look("Filmic", ScreenEffects(brightness = -2, contrast = 16, gamma = 1.14f, saturation = 92, cas = true, casLevel = 15, aaMode = ScreenEffects.AA_FXAA, deband = true),
|
||||
desc = "Film-like curve, slightly muted.", label = R.string.look_filmic, descRes = R.string.look_filmic_desc),
|
||||
Look("Arcade", ScreenEffects(brightness = 6, contrast = 20, gamma = 0.95f, saturation = 170, cas = true, casLevel = 45, deband = true),
|
||||
desc = "Loud and punchy.", label = R.string.look_arcade, descRes = R.string.look_arcade_desc),
|
||||
@@ -103,7 +109,7 @@ object ScreenEffectLooks {
|
||||
val t = l.effects
|
||||
t.brightness == e.brightness && t.contrast == e.contrast && abs(t.gamma - e.gamma) < 0.005f &&
|
||||
t.saturation == e.saturation && t.effectiveCas == e.effectiveCas &&
|
||||
t.fxaa == e.fxaa && t.crt == e.crt && t.toon == e.toon && t.ntsc == e.ntsc && t.deband == e.deband &&
|
||||
t.aaMode == e.aaMode && t.crt == e.crt && t.toon == e.toon && t.ntsc == e.ntsc && t.deband == e.deband &&
|
||||
(l.scalingMode == null || l.scalingMode == upscaler)
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,7 @@ import com.droiddeck.launcher.session.SessionPrefs
|
||||
|
||||
internal object DroidDeckHudConfig {
|
||||
val DEFAULTS: Map<String, String> = linkedMapOf(
|
||||
"hudSize" to "minimal", "hudLocked" to "1", "hudSnap" to "1", "hudScale" to "100", "hudDock" to "none", "hudOpacity" to "80", "hudColor" to "mid",
|
||||
"hudSize" to "minimal", "hudLocked" to "1", "hudHold" to "collapse", "hudSnap" to "1", "hudScale" to "100", "hudDock" to "none", "hudOpacity" to "80", "hudColor" to "mid",
|
||||
"hudOutline" to "40", "hudOutlineAccent" to "1",
|
||||
"showGpuModel" to "1", "showGPULoad" to "1", "showCPUUsage" to "1", "showCPULoad" to "1",
|
||||
"showPerCore" to "1", "showTemp" to "1", "showBatteryTemp" to "1", "showGpuTemp" to "0",
|
||||
@@ -18,6 +18,8 @@ internal object DroidDeckHudConfig {
|
||||
"tempUnit" to "c", "tempBands" to "1", "tempAuto" to "1", "tempRedCpu" to "90", "tempRedGpu" to "90", "tempRedBat" to "48",
|
||||
)
|
||||
|
||||
const val HOLD_LOCKS = "lock"
|
||||
|
||||
private val NOT_READINGS = setOf("showCPULoad", "showRenderer", "fpsDecimal")
|
||||
|
||||
/** Orders saved before the GPU switch was named after the alias the HUD actually reads. */
|
||||
|
||||
@@ -119,6 +119,7 @@ class DroidDeckHudHost(context: Context) {
|
||||
}
|
||||
hud.setOnSizeCycledListener { size -> DroidDeckHudConfig.set(context, "hudSize", size); onConfigChanged?.invoke() }
|
||||
hud.setOnDockChangedListener { token -> setDock(hud, DroidDeckHudDock.from(token)) }
|
||||
hud.setOnHoldListener { rawX, rawY -> collapseAt(hud, rawX, rawY) }
|
||||
hud.setOnScaledListener { percent ->
|
||||
DroidDeckHudConfig.set(context, "hudScale", percent.toString())
|
||||
onConfigChanged?.invoke()
|
||||
@@ -291,7 +292,7 @@ class DroidDeckHudHost(context: Context) {
|
||||
DroidDeckHudDock.RIGHT -> (maxX - hud.x) / hud.width
|
||||
DroidDeckHudDock.TOP -> hud.y / hud.height
|
||||
DroidDeckHudDock.BOTTOM -> (maxY - hud.y) / hud.height
|
||||
DroidDeckHudDock.NONE -> 0f
|
||||
DroidDeckHudDock.NONE, DroidDeckHudDock.FLOAT -> 0f
|
||||
}
|
||||
if (pulled >= 1f) { setDock(hud, DroidDeckHudDock.NONE); return }
|
||||
wantX = hud.x; wantY = hud.y
|
||||
@@ -375,12 +376,30 @@ class DroidDeckHudHost(context: Context) {
|
||||
hud.scaleX = s; hud.scaleY = s
|
||||
}
|
||||
|
||||
private fun setDock(hud: DroidDeckHudView, edge: DroidDeckHudDock) {
|
||||
private fun setDock(hud: DroidDeckHudView, edge: DroidDeckHudDock, center: Pair<Float, Float>? = null) {
|
||||
if (edge == hud.dock) return
|
||||
animateDock(hud, edge) { commitDock(hud, edge) }
|
||||
animateDock(hud, edge, center) { commitDock(hud, edge) }
|
||||
}
|
||||
|
||||
private fun collapseAt(hud: DroidDeckHudView, rawX: Float, rawY: Float) {
|
||||
if (hud.dock != DroidDeckHudDock.NONE) return
|
||||
val p = hud.parent as? View ?: return
|
||||
val at = IntArray(2).also { p.getLocationOnScreen(it) }
|
||||
val x = rawX - at[0]
|
||||
val y = rawY - at[1]
|
||||
val edge = if (snaps) nearestEdge(x, y, p.width.toFloat(), p.height.toFloat()) else DroidDeckHudDock.FLOAT
|
||||
setDock(hud, edge, Pair(x, y))
|
||||
}
|
||||
|
||||
private fun nearestEdge(x: Float, y: Float, width: Float, height: Float): DroidDeckHudDock = mapOf(
|
||||
DroidDeckHudDock.LEFT to x,
|
||||
DroidDeckHudDock.RIGHT to width - x,
|
||||
DroidDeckHudDock.TOP to y,
|
||||
DroidDeckHudDock.BOTTOM to height - y,
|
||||
).minByOrNull { it.value }!!.key
|
||||
|
||||
private fun commitDock(hud: DroidDeckHudView, edge: DroidDeckHudDock) {
|
||||
snapping = false
|
||||
val tabX = hud.x; val tabY = hud.y
|
||||
if (edge != DroidDeckHudDock.NONE) {
|
||||
val p = hud.parent as? View
|
||||
@@ -407,12 +426,17 @@ class DroidDeckHudHost(context: Context) {
|
||||
SessionPrefs.setDroidDeckHudPosition(context, wantX, wantY)
|
||||
}
|
||||
|
||||
private fun animateDock(hud: DroidDeckHudView, edge: DroidDeckHudDock, commit: () -> Unit) {
|
||||
private fun animateDock(hud: DroidDeckHudView, edge: DroidDeckHudDock, center: Pair<Float, Float>?, commit: () -> Unit) {
|
||||
stopMotion(hud)
|
||||
previewFade?.cancel(); previewFade = null
|
||||
snapping = false
|
||||
hud.alpha = 1f
|
||||
val p = hud.parent as? View
|
||||
if (edge != DroidDeckHudDock.NONE && center != null) {
|
||||
val (tabW, tabH) = hud.dockTabSize()
|
||||
wantX = center.first - tabW / 2f
|
||||
wantY = center.second - tabH / 2f
|
||||
}
|
||||
if (Motion.scale == 0f || p == null || !hud.isLaidOut || hud.width <= 0) {
|
||||
hud.scaleX = 1f; hud.scaleY = 1f
|
||||
hud.setDockPreview(DroidDeckHudDock.NONE, 0f)
|
||||
@@ -424,11 +448,14 @@ class DroidDeckHudHost(context: Context) {
|
||||
hud.pivotX = 0f; hud.pivotY = 0f
|
||||
hud.x = left; hud.y = top
|
||||
val (tabW, tabH) = hud.dockTabSize()
|
||||
wantX = left + (shownW - tabW) / 2f
|
||||
wantY = top + (shownH - tabH) / 2f
|
||||
if (center == null) {
|
||||
wantX = left + (shownW - tabW) / 2f
|
||||
wantY = top + (shownH - tabH) / 2f
|
||||
}
|
||||
val (tabX, tabY) = settled(p, edge, tabW, tabH)
|
||||
val sx = tabW / hud.width; val sy = tabH / hud.height
|
||||
val from = hud.dockPreviewBlend
|
||||
snapping = true
|
||||
hud.animate().x(tabX).y(tabY).scaleX(sx).scaleY(sy).setDuration(Motion.ms(220).toLong()).setInterpolator(EASE)
|
||||
.setUpdateListener { hud.setDockPreview(edge, from + (1f - from) * it.animatedFraction) }
|
||||
.withEndAction {
|
||||
@@ -473,7 +500,7 @@ class DroidDeckHudHost(context: Context) {
|
||||
DroidDeckHudDock.RIGHT -> x = maxX
|
||||
DroidDeckHudDock.TOP -> y = 0f
|
||||
DroidDeckHudDock.BOTTOM -> y = maxY
|
||||
DroidDeckHudDock.NONE -> {}
|
||||
DroidDeckHudDock.NONE, DroidDeckHudDock.FLOAT -> {}
|
||||
}
|
||||
return Pair(x, y)
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ enum class DroidDeckHudSize(val token: String, val label: String) {
|
||||
}
|
||||
|
||||
enum class DroidDeckHudDock(val token: String) {
|
||||
NONE("none"), LEFT("left"), RIGHT("right"), TOP("top"), BOTTOM("bottom");
|
||||
NONE("none"), LEFT("left"), RIGHT("right"), TOP("top"), BOTTOM("bottom"), FLOAT("float");
|
||||
|
||||
companion object {
|
||||
fun from(token: String?): DroidDeckHudDock = values().firstOrNull { it.token == token } ?: NONE
|
||||
|
||||
@@ -191,6 +191,8 @@ class DroidDeckHudView(context: Context) : View(context) {
|
||||
private var onMovedListener: BiConsumer<Float, Float>? = null
|
||||
private var onSizeCycledListener: Consumer<String>? = null
|
||||
private var onLockChangedListener: Consumer<Boolean>? = null
|
||||
private var onHoldListener: BiConsumer<Float, Float>? = null
|
||||
fun setOnHoldListener(l: BiConsumer<Float, Float>?) { onHoldListener = l }
|
||||
fun setOnMovedListener(l: BiConsumer<Float, Float>?) { onMovedListener = l }
|
||||
fun setOnSizeCycledListener(l: Consumer<String>?) { onSizeCycledListener = l }
|
||||
fun setOnLockChangedListener(l: Consumer<Boolean>?) { onLockChangedListener = l }
|
||||
@@ -209,6 +211,7 @@ class DroidDeckHudView(context: Context) : View(context) {
|
||||
override fun onDragged(rawX: Float, rawY: Float) { onDraggedListener?.accept(rawX, rawY) }
|
||||
override fun onFlung(velocityX: Float, velocityY: Float) { onFlungListener?.accept(velocityX, velocityY) }
|
||||
override fun onLockChanged(locked: Boolean) { onLockChangedListener?.accept(locked) }
|
||||
override fun onHold(rawX: Float, rawY: Float) { onHoldListener?.accept(rawX, rawY) }
|
||||
override fun onPinch(factor: Float) {
|
||||
val next = (scale * factor).coerceIn(MIN_SCALE, MAX_SCALE)
|
||||
if (next == scale) return
|
||||
@@ -224,6 +227,7 @@ class DroidDeckHudView(context: Context) : View(context) {
|
||||
private var tabStartX = 0f
|
||||
private var tabStartY = 0f
|
||||
private var tabDragging = false
|
||||
private var tabPressed = false
|
||||
private var onTabDraggedListener: BiConsumer<Float, Float>? = null
|
||||
private var onTabDroppedListener: Runnable? = null
|
||||
private var onTabDragCancelledListener: Runnable? = null
|
||||
@@ -237,19 +241,24 @@ class DroidDeckHudView(context: Context) : View(context) {
|
||||
tabDownRawX = event.rawX; tabDownRawY = event.rawY
|
||||
tabStartX = x; tabStartY = y
|
||||
tabDragging = false
|
||||
tabPressed = true
|
||||
}
|
||||
MotionEvent.ACTION_MOVE -> {
|
||||
MotionEvent.ACTION_MOVE -> if (tabPressed) {
|
||||
val dx = event.rawX - tabDownRawX; val dy = event.rawY - tabDownRawY
|
||||
if (!tabDragging && dx * dx + dy * dy > touchSlop * touchSlop) tabDragging = true
|
||||
if (tabDragging) onTabDraggedListener?.accept(tabStartX + dx, tabStartY + dy)
|
||||
}
|
||||
MotionEvent.ACTION_UP -> {
|
||||
MotionEvent.ACTION_UP -> if (tabPressed) {
|
||||
tabPressed = false
|
||||
if (tabDragging) { tabDragging = false; onTabDroppedListener?.run() }
|
||||
else onDockChangedListener?.accept(DroidDeckHudDock.NONE.token)
|
||||
}
|
||||
MotionEvent.ACTION_CANCEL -> if (tabDragging) {
|
||||
tabDragging = false
|
||||
onTabDragCancelledListener?.run()
|
||||
MotionEvent.ACTION_CANCEL -> {
|
||||
tabPressed = false
|
||||
if (tabDragging) {
|
||||
tabDragging = false
|
||||
onTabDragCancelledListener?.run()
|
||||
}
|
||||
}
|
||||
}
|
||||
return true
|
||||
@@ -341,6 +350,7 @@ class DroidDeckHudView(context: Context) : View(context) {
|
||||
showSession = switchOn("showSession")
|
||||
tempDisplay = HudMetrics.TempDisplay.from(cfg)
|
||||
lockController.setLocked(cfg.get("hudLocked", "1") == "1")
|
||||
lockController.setHoldLocks(cfg.get("hudHold", "collapse") == DroidDeckHudConfig.HOLD_LOCKS)
|
||||
dock = DroidDeckHudDock.from(cfg.get("hudDock", "none"))
|
||||
|
||||
colorIntensity = when (cfg.get("hudColor", "vivid")) {
|
||||
@@ -591,7 +601,7 @@ class DroidDeckHudView(context: Context) : View(context) {
|
||||
DroidDeckHudDock.RIGHT -> intArrayOf(1, 2)
|
||||
DroidDeckHudDock.TOP -> intArrayOf(0, 1)
|
||||
DroidDeckHudDock.BOTTOM -> intArrayOf(2, 3)
|
||||
DroidDeckHudDock.NONE -> intArrayOf()
|
||||
DroidDeckHudDock.NONE, DroidDeckHudDock.FLOAT -> intArrayOf()
|
||||
}
|
||||
for (corner in edge) { round[corner * 2] = 0f; round[corner * 2 + 1] = 0f }
|
||||
tabPath.rewind()
|
||||
|
||||
@@ -36,6 +36,7 @@ public class HudLockController {
|
||||
default void onDragged(float rawX, float rawY) {}
|
||||
default void onFlung(float velocityX, float velocityY) {}
|
||||
void onLockChanged(boolean locked);
|
||||
default void onHold(float rawX, float rawY) {}
|
||||
default void onPinch(float factor) {}
|
||||
default void onPinchEnd() {}
|
||||
}
|
||||
@@ -53,6 +54,7 @@ public class HudLockController {
|
||||
private final android.view.VelocityTracker velocity = android.view.VelocityTracker.obtain();
|
||||
|
||||
private boolean locked = false;
|
||||
private boolean holdLocks = false;
|
||||
|
||||
private float downRawX, downRawY, startX, startY;
|
||||
private boolean dragging = false;
|
||||
@@ -80,6 +82,8 @@ public class HudLockController {
|
||||
|
||||
public void setLocked(boolean locked) { this.locked = locked; }
|
||||
|
||||
public void setHoldLocks(boolean holdLocks) { this.holdLocks = holdLocks; }
|
||||
|
||||
public boolean isLocked() { return locked; }
|
||||
|
||||
public boolean isDragging() { return dragging; }
|
||||
@@ -119,6 +123,10 @@ public class HudLockController {
|
||||
|
||||
@Override
|
||||
public void onLongPress(MotionEvent e) {
|
||||
if (!holdLocks) {
|
||||
cb.onHold(e.getRawX(), e.getRawY());
|
||||
return;
|
||||
}
|
||||
locked = !locked;
|
||||
cb.onLockChanged(locked);
|
||||
flash(locked, HOLD_TOGGLE_MS);
|
||||
|
||||
@@ -1,115 +0,0 @@
|
||||
package com.droiddeck.launcher.input
|
||||
|
||||
import android.graphics.Bitmap
|
||||
import android.graphics.BitmapFactory
|
||||
import java.io.ByteArrayInputStream
|
||||
import java.io.ByteArrayOutputStream
|
||||
import java.util.zip.ZipInputStream
|
||||
|
||||
internal object ArmsControlSkins {
|
||||
private val buttons = mapOf(
|
||||
InputControl.A to "cross", InputControl.B to "circle", InputControl.X to "square", InputControl.Y to "triangle",
|
||||
InputControl.LB to "l1", InputControl.RB to "r1", InputControl.LT to "l2", InputControl.RT to "r2",
|
||||
InputControl.L3 to "l3", InputControl.R3 to "r3", InputControl.SELECT to "select", InputControl.START to "start",
|
||||
InputControl.UP to "up", InputControl.DOWN to "down", InputControl.LEFT to "left", InputControl.RIGHT to "right")
|
||||
private val keys = buttons.values.toSet() + setOf("analog_base", "analog_stick", "analog_base_left", "analog_base_right",
|
||||
"analog_stick_left", "analog_stick_right")
|
||||
|
||||
fun parse(context: android.content.Context, bytes: ByteArray, original: SavedInputLayout, actions: SavedInputBindings, name: String, nativeFailure: Exception? = null): CommunityControls.Pack {
|
||||
require(bytes.size <= 32 * 1024 * 1024 && original.editable && actions.compatible(original))
|
||||
val art = linkedMapOf<String, ByteArray>()
|
||||
var total = 0
|
||||
var entries = 0
|
||||
ZipInputStream(ByteArrayInputStream(bytes)).use { zip ->
|
||||
while (true) {
|
||||
val entry = zip.nextEntry ?: break
|
||||
require(++entries <= 256 && ControlSources.validPath(entry.name.trimEnd('/'))) { "Invalid skin archive path or file count." }
|
||||
if (entry.isDirectory) continue
|
||||
val data = CommunityControls.readLimited(zip, minOf(8 * 1024 * 1024, 64 * 1024 * 1024 - total))
|
||||
total += data.size
|
||||
if (entry.name == "controls.json") throw (nativeFailure ?: IllegalArgumentException("Import this file as a DroidDeck controls pack."))
|
||||
val file = entry.name.substringAfterLast('/').lowercase()
|
||||
if (file.startsWith("._") || !file.endsWith(".png")) continue
|
||||
val key = file.removeSuffix(".png").removePrefix("ic_controller_").removeSuffix("_button")
|
||||
if (key !in keys) continue
|
||||
require(key !in art) { "Duplicate skin button artwork." }
|
||||
art[key] = normalize(data)
|
||||
}
|
||||
}
|
||||
require(art.isNotEmpty()) { "No supported controller PNGs found in this skin." }
|
||||
val used = linkedMapOf<String, ByteArray>()
|
||||
fun image(key: String): String? = art[key]?.let { data ->
|
||||
val file = "skin_$key.png"
|
||||
used[file] = data
|
||||
file
|
||||
}
|
||||
var matched = 0
|
||||
val elements = original.elements.map { e ->
|
||||
val action = actions.action(e) as? InputAction.Native ?: return@map e
|
||||
val control = action.target ?: e.control
|
||||
if (e.kind == InputElementKind.STICK && (control == InputControl.LS || control == InputControl.RS)) {
|
||||
val side = if (control == InputControl.LS) "left" else "right"
|
||||
val base = image("analog_base_$side") ?: image("analog_base")
|
||||
val stick = image("analog_stick_$side") ?: image("analog_stick")
|
||||
if (base == null && stick == null) e else {
|
||||
matched++
|
||||
e.copy(image = base ?: e.image, stickImage = stick ?: e.stickImage, showLabel = false)
|
||||
}
|
||||
} else if (e.kind == InputElementKind.BUTTON || e.kind == InputElementKind.TRIGGER) {
|
||||
val file = buttons[control]?.let(::image)
|
||||
if (file == null) e else { matched++; e.copy(image = file, icon = 0, showLabel = false) }
|
||||
} else e
|
||||
}
|
||||
require(matched > 0) { "This layout has no matching gamepad controls. Choose a gamepad profile and screen." }
|
||||
val id = newInputId()
|
||||
val label = name.trim().take(80).ifBlank { "Imported controller skin" }
|
||||
val layout = original.copy(id = id, name = label, origin = null, elements = elements)
|
||||
for (file in elements.flatMap { listOf(it.image, it.stickImage) }.filter { it.isNotEmpty() }.distinct()) {
|
||||
if (file !in used) used[file] = requireNotNull(InputButtonImages.file(context, file)).inputStream().use {
|
||||
CommunityControls.readLimited(it, 1024 * 1024)
|
||||
}
|
||||
}
|
||||
return CommunityControls.Pack(layout, actions.copy(id = newInputId(), name = label, layoutId = id), used)
|
||||
}
|
||||
|
||||
fun export(context: android.content.Context, layout: SavedInputLayout, actions: SavedInputBindings): ByteArray {
|
||||
val images = linkedMapOf<String, String>()
|
||||
for (element in layout.elements) {
|
||||
val action = actions.action(element) as? InputAction.Native ?: continue
|
||||
val control = action.target ?: element.control
|
||||
if (element.kind == InputElementKind.STICK && (control == InputControl.LS || control == InputControl.RS)) {
|
||||
val side = if (control == InputControl.LS) "left" else "right"
|
||||
if (element.image.isNotEmpty()) images["ic_controller_analog_base_$side.png"] = element.image
|
||||
if (element.stickImage.isNotEmpty()) images["ic_controller_analog_stick_$side.png"] = element.stickImage
|
||||
} else if (element.image.isNotEmpty()) {
|
||||
buttons[control]?.let { images["ic_controller_${it}_button.png"] = element.image }
|
||||
}
|
||||
}
|
||||
require(images.isNotEmpty()) { "This layout has no controller skin artwork to export." }
|
||||
val output = ByteArrayOutputStream()
|
||||
java.util.zip.ZipOutputStream(output).use { zip ->
|
||||
for ((name, local) in images) {
|
||||
val bytes = requireNotNull(InputButtonImages.file(context, local)).inputStream().use {
|
||||
CommunityControls.readLimited(it, 1024 * 1024)
|
||||
}
|
||||
zip.putNextEntry(java.util.zip.ZipEntry(name)); zip.write(bytes); zip.closeEntry()
|
||||
}
|
||||
}
|
||||
return output.toByteArray().also { require(it.size <= 32 * 1024 * 1024) }
|
||||
}
|
||||
|
||||
private fun normalize(data: ByteArray): ByteArray {
|
||||
require(data.take(8) == listOf<Byte>(-119, 80, 78, 71, 13, 10, 26, 10)) { "Invalid skin PNG." }
|
||||
val bounds = BitmapFactory.Options().apply { inJustDecodeBounds = true }
|
||||
BitmapFactory.decodeByteArray(data, 0, data.size, bounds)
|
||||
require(bounds.outWidth in 1..8192 && bounds.outHeight in 1..8192) { "Invalid skin image dimensions." }
|
||||
val options = BitmapFactory.Options().apply {
|
||||
inSampleSize = 1
|
||||
while (maxOf(bounds.outWidth, bounds.outHeight) / inSampleSize > 512) inSampleSize *= 2
|
||||
}
|
||||
val bitmap = requireNotNull(BitmapFactory.decodeByteArray(data, 0, data.size, options)) { "Unreadable skin image." }
|
||||
return try {
|
||||
ByteArrayOutputStream().also { check(bitmap.compress(Bitmap.CompressFormat.PNG, 100, it)) }.toByteArray()
|
||||
} finally { bitmap.recycle() }
|
||||
}
|
||||
}
|
||||
@@ -1,197 +0,0 @@
|
||||
package com.droiddeck.launcher.input
|
||||
|
||||
import android.content.Context
|
||||
import android.graphics.BitmapFactory
|
||||
import org.json.JSONObject
|
||||
import java.io.ByteArrayInputStream
|
||||
import java.io.ByteArrayOutputStream
|
||||
import java.io.InputStream
|
||||
import java.net.HttpURLConnection
|
||||
import java.net.URL
|
||||
import java.security.MessageDigest
|
||||
import java.util.zip.ZipEntry
|
||||
import java.util.zip.ZipInputStream
|
||||
import java.util.zip.ZipOutputStream
|
||||
|
||||
internal object CommunityControls {
|
||||
const val MAX_BYTES = 16 * 1024 * 1024
|
||||
const val BASE = "https://raw.githubusercontent.com/Droid-Deck/DroidDeck/main/community/controls/"
|
||||
const val SUBMIT = "https://github.com/Droid-Deck/DroidDeck/issues/new?template=community-controls.yml"
|
||||
data class Pack(val layout: SavedInputLayout, val bindings: SavedInputBindings, val images: Map<String, ByteArray>)
|
||||
data class Entry(val name: String, val author: String, val game: String, val license: String,
|
||||
val path: String, val sha256: String, val screen: InputLayoutScreen, val preview: String? = null, val bundled: Boolean = false,
|
||||
val source: ControlSources.Source = ControlSources.DROIDDECK, val skin: Boolean = false) {
|
||||
val key get() = source.id + "/" + path
|
||||
}
|
||||
|
||||
fun readLimited(input: InputStream, limit: Int = MAX_BYTES): ByteArray {
|
||||
val output = ByteArrayOutputStream()
|
||||
val buffer = ByteArray(8192)
|
||||
while (true) {
|
||||
val count = input.read(buffer)
|
||||
if (count < 0) break
|
||||
require(output.size() + count <= limit) { "Controls file is too large." }
|
||||
output.write(buffer, 0, count)
|
||||
}
|
||||
return output.toByteArray()
|
||||
}
|
||||
|
||||
fun export(context: Context, layout: SavedInputLayout, bindings: SavedInputBindings): ByteArray {
|
||||
require(layout.editable && bindings.compatible(layout))
|
||||
val library = InputLibraries.read(context).withLayout(layout).withPreset(bindings)
|
||||
val doc = JSONObject(InputLibraries.encode(library))
|
||||
fun item(key: String, id: String): JSONObject {
|
||||
val array = doc.getJSONArray(key)
|
||||
return (0 until array.length()).map { array.getJSONObject(it) }.first { it.getString("id") == id }
|
||||
}
|
||||
val manifest = JSONObject().put("format", "droiddeck-controls").put("version", 1)
|
||||
.put("layout", item("layouts", layout.id)).put("bindings", item("bindings", bindings.id))
|
||||
val output = ByteArrayOutputStream()
|
||||
ZipOutputStream(output).use { zip ->
|
||||
fun add(name: String, bytes: ByteArray) {
|
||||
zip.putNextEntry(ZipEntry(name)); zip.write(bytes); zip.closeEntry()
|
||||
}
|
||||
add("controls.json", manifest.toString().toByteArray(Charsets.UTF_8))
|
||||
for (name in layout.elements.flatMap { listOf(it.image, it.stickImage) }.filter { it.isNotEmpty() }.distinct()) {
|
||||
val file = requireNotNull(InputButtonImages.file(context, name))
|
||||
add("images/$name", file.inputStream().use { readLimited(it, 1024 * 1024) })
|
||||
}
|
||||
}
|
||||
return output.toByteArray().also { parse(context, it) }
|
||||
}
|
||||
|
||||
fun parse(context: Context, bytes: ByteArray): Pack {
|
||||
require(bytes.size <= MAX_BYTES)
|
||||
val files = linkedMapOf<String, ByteArray>()
|
||||
var total = 0
|
||||
ZipInputStream(ByteArrayInputStream(bytes)).use { zip ->
|
||||
while (true) {
|
||||
val entry = zip.nextEntry ?: break
|
||||
require(!entry.isDirectory && files.size < 65 && entry.name !in files)
|
||||
require(entry.name == "controls.json" || entry.name.matches(Regex("images/[A-Za-z0-9_-][A-Za-z0-9_.-]{0,127}")))
|
||||
val data = readLimited(zip, minOf(if (entry.name == "controls.json") 2_000_000 else 1024 * 1024, MAX_BYTES - total))
|
||||
total += data.size
|
||||
files[entry.name] = data
|
||||
}
|
||||
}
|
||||
val manifest = JSONObject(requireNotNull(files.remove("controls.json")).toString(Charsets.UTF_8))
|
||||
require(manifest.getString("format") == "droiddeck-controls" && manifest.getInt("version") == 1)
|
||||
val layout = manifest.getJSONObject("layout")
|
||||
val bindings = manifest.getJSONObject("bindings")
|
||||
val layoutId = newInputId()
|
||||
val bindingId = newInputId()
|
||||
layout.put("id", layoutId).remove("origin")
|
||||
require(layout.getString("template") == InputLayoutTemplate.CUSTOM.name)
|
||||
bindings.put("id", bindingId).put("layout", layoutId)
|
||||
require(!bindings.getBoolean("physical") && bindings.getJSONArray("keys").length() == 0)
|
||||
val doc = JSONObject(InputLibraries.encode(InputLibraries.read(context)))
|
||||
doc.getJSONArray("layouts").put(layout)
|
||||
doc.getJSONArray("bindings").put(bindings)
|
||||
val decoded = requireNotNull(InputLibraries.decode(doc.toString())) { "Invalid controls or bindings." }
|
||||
val saved = decoded.layouts.first { it.id == layoutId }
|
||||
val names = saved.elements.flatMap { listOf(it.image, it.stickImage) }.filter { it.isNotEmpty() }.toSet()
|
||||
require(files.keys == names.map { "images/$it" }.toSet()) { "Missing or unexpected button images." }
|
||||
var pixels = 0L
|
||||
val images = names.associateWith { name ->
|
||||
val data = files.getValue("images/$name")
|
||||
require(data.take(8) == listOf<Byte>(-119, 80, 78, 71, 13, 10, 26, 10))
|
||||
val bounds = BitmapFactory.Options().apply { inJustDecodeBounds = true }
|
||||
BitmapFactory.decodeByteArray(data, 0, data.size, bounds)
|
||||
require(bounds.outWidth in 1..1024 && bounds.outHeight in 1..1024)
|
||||
pixels += bounds.outWidth.toLong() * bounds.outHeight
|
||||
require(pixels <= 16_777_216)
|
||||
val bitmap = requireNotNull(BitmapFactory.decodeByteArray(data, 0, data.size))
|
||||
bitmap.recycle()
|
||||
data
|
||||
}
|
||||
return Pack(saved, decoded.preset(bindingId), images)
|
||||
}
|
||||
|
||||
fun importFile(context: Context, bytes: ByteArray, layout: SavedInputLayout, bindings: SavedInputBindings): Pack =
|
||||
try { parse(context, bytes) } catch (nativeFailure: Exception) {
|
||||
ArmsControlSkins.parse(context, bytes, layout, bindings, "Imported skin", nativeFailure)
|
||||
}
|
||||
|
||||
fun install(context: Context, pack: Pack, profile: String, role: InputRole): InputLibrary {
|
||||
require(pack.layout.supports(role))
|
||||
val written = mutableListOf<java.io.File>()
|
||||
try {
|
||||
val names = pack.images.mapValues { (_, bytes) ->
|
||||
val name = "key_${newInputId()}.png"
|
||||
val file = requireNotNull(InputButtonImages.file(context, name))
|
||||
file.parentFile!!.mkdirs()
|
||||
written += file
|
||||
file.writeBytes(bytes)
|
||||
name
|
||||
}
|
||||
val layout = pack.layout.copy(elements = pack.layout.elements.map { e -> e.copy(image = names[e.image] ?: "", stickImage = names[e.stickImage] ?: "") })
|
||||
return InputLibraries.update(context) {
|
||||
it.withLayout(layout).withPreset(pack.bindings).chooseLayout(profile, role, layout.id)
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
written.forEach { it.delete() }
|
||||
throw e
|
||||
}
|
||||
}
|
||||
|
||||
fun catalog(raw: String, source: ControlSources.Source = ControlSources.DROIDDECK): List<Entry> {
|
||||
require(raw.length <= 1_000_000)
|
||||
val doc = JSONObject(raw)
|
||||
val skin = doc.has("skins") && !doc.has("controls")
|
||||
require(skin || doc.getInt("version") == 1)
|
||||
val list = doc.getJSONArray(if (skin) "skins" else "controls")
|
||||
require(list.length() <= 256)
|
||||
return (0 until list.length()).map { index ->
|
||||
val e = list.getJSONObject(index)
|
||||
fun text(key: String) = e.getString(key).also { require(it.isNotBlank() && it.length <= 160) }
|
||||
val path = text("file")
|
||||
require(ControlSources.validPath(path) && path.endsWith(".zip", ignoreCase = true))
|
||||
val sha = e.optString("sha256").also { require(if (skin) it.isEmpty() || it.matches(Regex("[a-f0-9]{64}")) else it.matches(Regex("[a-f0-9]{64}"))) }
|
||||
Entry(text("name"), e.optString("author").take(160), e.optString("game").take(160), e.optString("license").take(160), path, sha,
|
||||
if (skin) InputLayoutScreen.BOTH else InputLayoutScreen.valueOf(e.getString("screen")), e.optString("preview").takeIf { it.isNotEmpty() }?.also {
|
||||
require(ControlSources.validPath(it) && it.endsWith(".png", ignoreCase = true))
|
||||
}, source = source, skin = skin)
|
||||
}.also { require(it.map { e -> e.path }.distinct().size == it.size) }
|
||||
}
|
||||
|
||||
fun bundled(context: Context): List<Entry> = context.assets.open("community-controls/catalog.json").use {
|
||||
catalog(readLimited(it, 1_000_000).toString(Charsets.UTF_8)).map { e -> e.copy(bundled = true) }
|
||||
}
|
||||
|
||||
fun fetchCatalog(source: ControlSources.Source = ControlSources.DROIDDECK): List<Entry> =
|
||||
catalog(get(source.manifest, 1_000_000).toString(Charsets.UTF_8), source)
|
||||
fun preview(context: Context, entry: Entry): android.graphics.Bitmap? {
|
||||
val path = entry.preview ?: return null
|
||||
val bytes = if (entry.bundled) context.assets.open("community-controls/$path").use { readLimited(it, 512 * 1024) }
|
||||
else get(entry.source.url(path), 2 * 1024 * 1024)
|
||||
val bounds = BitmapFactory.Options().apply { inJustDecodeBounds = true }
|
||||
BitmapFactory.decodeByteArray(bytes, 0, bytes.size, bounds)
|
||||
require(bounds.outWidth in 1..4096 && bounds.outHeight in 1..4096)
|
||||
val options = BitmapFactory.Options().apply {
|
||||
inSampleSize = 1
|
||||
while (maxOf(bounds.outWidth, bounds.outHeight) / inSampleSize > 256) inSampleSize *= 2
|
||||
}
|
||||
return BitmapFactory.decodeByteArray(bytes, 0, bytes.size, options)
|
||||
}
|
||||
|
||||
fun download(context: Context, entry: Entry, layout: SavedInputLayout? = null, bindings: SavedInputBindings? = null): Pack {
|
||||
val bytes = if (entry.bundled) context.assets.open("community-controls/${entry.path}").use { readLimited(it) }
|
||||
else get(entry.source.url(entry.path), if (entry.skin) 32 * 1024 * 1024 else MAX_BYTES)
|
||||
val sha = MessageDigest.getInstance("SHA-256").digest(bytes).joinToString("") { "%02x".format(it) }
|
||||
require(entry.sha256.isEmpty() && entry.skin || sha == entry.sha256) { "Controls download failed verification." }
|
||||
return if (entry.skin) ArmsControlSkins.parse(context, bytes, requireNotNull(layout), requireNotNull(bindings), entry.name)
|
||||
else parse(context, bytes).also { require(it.layout.screen == entry.screen) }
|
||||
}
|
||||
|
||||
private fun get(url: String, limit: Int): ByteArray {
|
||||
val connection = URL(url).openConnection() as HttpURLConnection
|
||||
connection.connectTimeout = 15_000
|
||||
connection.readTimeout = 30_000
|
||||
connection.instanceFollowRedirects = false
|
||||
return try {
|
||||
require(connection.responseCode == 200) { "Could not download community controls (${connection.responseCode})." }
|
||||
require(connection.contentLengthLong <= limit)
|
||||
connection.inputStream.use { readLimited(it, limit) }
|
||||
} finally { connection.disconnect() }
|
||||
}
|
||||
}
|
||||
@@ -1,78 +0,0 @@
|
||||
package com.droiddeck.launcher.input
|
||||
|
||||
import android.content.Context
|
||||
import org.json.JSONArray
|
||||
import java.net.URI
|
||||
import java.net.URLEncoder
|
||||
|
||||
internal object ControlSources {
|
||||
data class Source(val name: String, val manifest: String, val submit: String? = null, val builtIn: Boolean = false) {
|
||||
val id get() = manifest
|
||||
fun url(path: String): String {
|
||||
require(validPath(path)) { "Invalid controls source path." }
|
||||
return manifest.substringBeforeLast('/') + "/" + path.split('/').joinToString("/") {
|
||||
URLEncoder.encode(it, "UTF-8").replace("+", "%20")
|
||||
}
|
||||
}
|
||||
}
|
||||
val DROIDDECK = Source("DroidDeck", CommunityControls.BASE + "catalog.json", CommunityControls.SUBMIT, true)
|
||||
val ARMSX2 = Source("ARMSX2 community", "https://raw.githubusercontent.com/bagasromadon/ARMSX2-CustomControllerSkins/main/manifest.json",
|
||||
"https://github.com/bagasromadon/ARMSX2-CustomControllerSkins/issues/new", true)
|
||||
private fun prefs(context: Context) = context.getSharedPreferences("community-control-sources", Context.MODE_PRIVATE)
|
||||
|
||||
fun validPath(path: String) = path.length in 1..512 && path.split('/').all { it.isNotBlank() && it != "." && it != ".." } &&
|
||||
path.none { it.isISOControl() || it in "\\:%?#" } && !path.startsWith('/')
|
||||
|
||||
private fun https(raw: String): URI {
|
||||
require(raw.length <= 2048)
|
||||
val uri = URI(raw.trim())
|
||||
require(uri.scheme == "https" && !uri.host.isNullOrBlank() && uri.userInfo == null && uri.fragment == null && uri.query == null && !uri.path.isNullOrBlank() && !uri.path.endsWith('/')) {
|
||||
"Enter an HTTPS catalog URL or a GitHub repository URL."
|
||||
}
|
||||
return uri
|
||||
}
|
||||
|
||||
fun candidates(raw: String): List<Source> {
|
||||
val uri = https(raw)
|
||||
val parts = uri.path.trim('/').split('/')
|
||||
if (uri.host.equals("github.com", true)) {
|
||||
require(parts.size == 2 || parts.size >= 5 && parts[2] == "blob") { "Use a GitHub repository or manifest file URL." }
|
||||
require(parts.take(2).all { it.matches(Regex("[A-Za-z0-9_.-]+")) && it != "." && it != ".." })
|
||||
val repo = parts.take(2).joinToString("/")
|
||||
val submit = "https://github.com/$repo/issues/new"
|
||||
val base = "https://raw.githubusercontent.com/$repo/"
|
||||
return if (parts.size == 2) listOf("catalog.json", "manifest.json").map { Source(repo, base + "main/" + it, submit) }
|
||||
else listOf(Source(repo, base + parts.drop(3).joinToString("/"), submit))
|
||||
}
|
||||
val submit = if (uri.host.equals("raw.githubusercontent.com", true) && parts.size >= 4)
|
||||
"https://github.com/${parts[0]}/${parts[1]}/issues/new" else null
|
||||
return listOf(Source(if (submit != null) parts.take(2).joinToString("/") else uri.host, uri.toASCIIString(), submit))
|
||||
}
|
||||
|
||||
fun read(context: Context): List<Source> {
|
||||
val custom = runCatching {
|
||||
val raw = prefs(context).getString("sources", "[]")!!
|
||||
require(raw.length <= 32_000)
|
||||
val array = JSONArray(raw)
|
||||
require(array.length() <= 16)
|
||||
(0 until array.length()).map { candidates(array.getString(it)).single() }
|
||||
}.getOrDefault(emptyList())
|
||||
return (listOf(DROIDDECK, ARMSX2) + custom).distinctBy { it.id }
|
||||
}
|
||||
|
||||
fun add(context: Context, source: Source) {
|
||||
val list = read(context)
|
||||
require(list.none { it.id == source.id }) { "This source is already connected." }
|
||||
require(list.size < 18) { "Remove a source before adding another." }
|
||||
save(context, list + source)
|
||||
}
|
||||
fun remove(context: Context, source: Source) {
|
||||
require(!source.builtIn)
|
||||
save(context, read(context).filterNot { it.id == source.id })
|
||||
}
|
||||
private fun save(context: Context, sources: List<Source>) {
|
||||
check(prefs(context).edit().putString("sources", JSONArray(sources.filterNot { it.builtIn }.map { it.manifest }).toString()).commit()) {
|
||||
"Could not save controls sources."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
package com.droiddeck.launcher.input
|
||||
|
||||
import android.content.Context
|
||||
|
||||
object GameInputControls {
|
||||
private fun prefs(context: Context) = context.getSharedPreferences("input-game-controls", Context.MODE_PRIVATE)
|
||||
fun profile(context: Context, game: String?): String? = game?.let { prefs(context).getString(it, null) }
|
||||
fun set(context: Context, game: String, profile: String?) {
|
||||
require(game.isNotBlank() && game.length <= 512)
|
||||
require(profile == null || InputLibraries.read(context).profiles.any { it.id == profile })
|
||||
val edit = prefs(context).edit()
|
||||
if (profile == null) edit.remove(game) else edit.putString(game, profile)
|
||||
check(edit.commit()) { "Could not save game controls." }
|
||||
}
|
||||
fun resolve(context: Context, library: InputLibrary, desktop: Boolean, game: String?): InputLibrary {
|
||||
val selection = library.selection(desktop)
|
||||
if (game == null || selection.profile != InputProfiles.AUTO) return library
|
||||
val target = profile(context, game)?.let { id -> library.profiles.firstOrNull { it.id == id } } ?: return library
|
||||
var result = library
|
||||
for (role in listOf(InputRole.PRIMARY, InputRole.SECONDARY)) {
|
||||
if (role !in selection.parts) result = result.selectPart(desktop, role, target.binding(role))
|
||||
}
|
||||
return result
|
||||
}
|
||||
}
|
||||
@@ -10,7 +10,7 @@ import org.json.JSONObject
|
||||
import java.util.UUID
|
||||
|
||||
object InputLibraries {
|
||||
private const val VERSION = 15
|
||||
private const val VERSION = 14
|
||||
private const val KEY = "library"
|
||||
private const val RECOVERY = "library-recovery."
|
||||
const val OVERLAY = "builtin.overlay"
|
||||
@@ -304,7 +304,7 @@ object InputLibraries {
|
||||
for (e in layout.elements) elements.put(JSONObject().put("id", e.id).put("kind", e.kind.name)
|
||||
.put("control", e.control.id).put("name", e.name).put("x", e.x.toDouble()).put("y", e.y.toDouble())
|
||||
.put("width", e.width.toDouble()).put("height", e.height.toDouble()).put("floating", e.floating).put("hideWhenIdle", e.hideWhenIdle).put("mouseGestures", e.mouseGestures).put("toggle", e.toggle).put("icon", e.icon).put("image", e.image)
|
||||
.put("elementOpacity", e.opacity.toDouble()).put("buttonShape", e.buttonShape.name).put("showLabel", e.showLabel).put("alwaysShown", e.alwaysShown).put("stickImage", e.stickImage))
|
||||
.put("elementOpacity", e.opacity.toDouble()).put("buttonShape", e.buttonShape.name).put("showLabel", e.showLabel).put("alwaysShown", e.alwaysShown))
|
||||
layouts.put(JSONObject().put("id", layout.id).put("name", layout.name).put("template", layout.template.name).put("elements", elements)
|
||||
.put("tint", layout.style.tint ?: JSONObject.NULL).put("opacity", layout.style.opacity).put("screen", layout.screen.name).put("aspect", layout.aspect.toDouble()).put("scale", layout.scale.toDouble())
|
||||
.put("hidden", JSONArray(layout.style.hidden.map { it.name }.sorted())).put("origin", layout.origin ?: JSONObject.NULL))
|
||||
@@ -345,7 +345,7 @@ object InputLibraries {
|
||||
e.getDouble("y").toFloat(), e.getDouble("width").toFloat(), e.getDouble("height").toFloat(),
|
||||
e.getString("id"), InputElementKind.valueOf(e.getString("kind")), e.getString("name"),
|
||||
e.optBoolean("floating", true), e.optBoolean("hideWhenIdle", false), e.optBoolean("mouseGestures", false), e.optBoolean("toggle", false), e.optInt("icon", 0), e.optString("image", ""),
|
||||
e.optDouble("elementOpacity", 1.0).toFloat(), InputButtonShape.valueOf(e.optString("buttonShape", InputButtonShape.ROUNDED.name)), e.optBoolean("showLabel", true), e.optBoolean("alwaysShown", false), e.optString("stickImage", ""))
|
||||
e.optDouble("elementOpacity", 1.0).toFloat(), InputButtonShape.valueOf(e.optString("buttonShape", InputButtonShape.ROUNDED.name)), e.optBoolean("showLabel", true), e.optBoolean("alwaysShown", false))
|
||||
}
|
||||
SavedInputLayout(layout.getString("id"), layout.getString("name"), elements, InputLayoutTemplate.valueOf(layout.getString("template")),
|
||||
InputSurfaceStyle(if (!layout.has("tint")) ControllerPrefs.STEAM_BLUE else if (layout.isNull("tint")) null else layout.getInt("tint"), layout.optInt("opacity", 100),
|
||||
|
||||
@@ -244,8 +244,7 @@ data class InputLibrary(
|
||||
for (e in layout.elements) {
|
||||
inputName(e.name)
|
||||
require(e.icon == 0 || InputButtonIcons.has(e.icon))
|
||||
for (image in listOf(e.image, e.stickImage))
|
||||
require(image.isEmpty() || image.matches(Regex("[A-Za-z0-9_.-]{1,128}")) && image != "." && image != "..")
|
||||
require(e.image.isEmpty() || e.image.matches(Regex("[A-Za-z0-9_.-]{1,128}")) && e.image != "." && e.image != "..")
|
||||
require(e.opacity.isFinite() && e.opacity in 0.01f..1f)
|
||||
require(!e.toggle || e.kind == InputElementKind.BUTTON || e.kind == InputElementKind.TRIGGER)
|
||||
require(listOf(e.x, e.y, e.width, e.height).all { it.isFinite() })
|
||||
|
||||
@@ -35,7 +35,6 @@ data class InputSurfaceElement(
|
||||
val buttonShape: InputButtonShape = InputButtonShape.ROUNDED,
|
||||
val showLabel: Boolean = true,
|
||||
val alwaysShown: Boolean = false,
|
||||
val stickImage: String = "",
|
||||
) {
|
||||
val hasClick get() = kind == InputElementKind.STICK || kind == InputElementKind.TRACKPAD
|
||||
|
||||
|
||||
@@ -384,7 +384,7 @@ object BwrapSpawner {
|
||||
val program = plan.argv.firstOrNull()?.takeIf { it.startsWith("/") }?.let(::host)?.canonicalFile
|
||||
?.takeIf { it.isFile && isStaticElf(it) } ?: return null
|
||||
if (!linkMounts(plan)) return null
|
||||
return (listOf(program.path) + plan.argv.drop(1)) to plan.env
|
||||
return (NativeGuest.execPrefix(program.path) + listOf(program.path) + plan.argv.drop(1)) to plan.env
|
||||
}
|
||||
val loader = SANDBOX_LOADERS.map(::host).firstOrNull { it.isFile }?.canonicalFile ?: return null
|
||||
val libc = SANDBOX_LIBCS.map(::host).firstOrNull { it.isFile }?.canonicalFile ?: return null
|
||||
@@ -411,13 +411,14 @@ object BwrapSpawner {
|
||||
plan.env.map { (k, v) -> "$k=$v" } + plan.argv
|
||||
val env = linkedMapOf(
|
||||
"DDNATV_ROOT" to sandbox,
|
||||
"DDNATV_EXEC" to NativeGuest.execLoader.orEmpty(),
|
||||
"DDNATV_LINK_ROOT" to rootfs.path,
|
||||
"DDNATV_BINDS" to plan.binds.joinToString("|") { "${it.host}:${it.guest}" },
|
||||
"DDNATV_HOSTNAME" to SessionPrefs.guestHostname(context),
|
||||
"LD_LIBRARY_PATH" to SANDBOX_LIB_DIRS.map(::host).filter { it.isDirectory }.joinToString(":") { it.path },
|
||||
"LD_PRELOAD" to hook.path,
|
||||
).filterValues { it.isNotEmpty() }
|
||||
return (NativeGuest.simulator(rootfs)?.let { it + launch } ?: launch) to env
|
||||
return (NativeGuest.simulator(rootfs)?.let { it + launch } ?: (NativeGuest.execPrefix(loader.path) + launch)) to env
|
||||
}
|
||||
|
||||
private val runpathDirs = java.util.concurrent.ConcurrentHashMap<String, List<String>>()
|
||||
@@ -542,7 +543,7 @@ object BwrapSpawner {
|
||||
.also { b -> b.environment().apply { clear(); putAll(native.second) } }
|
||||
} else {
|
||||
val cmd = LinuxRuntime.prootPrefix(context, plan.root, plan.cwd)
|
||||
if (verbose != null) { cmd.add(1, "-v"); cmd.add(2, verbose.toString()) }
|
||||
if (verbose != null) { cmd.add("-v"); cmd.add(verbose.toString()) }
|
||||
plan.binds.forEach { cmd.add("-b"); cmd.add(it.spec) }
|
||||
val envTool = hasEnvTool(plan)
|
||||
if (envTool) {
|
||||
|
||||
@@ -95,10 +95,13 @@ class DeviceControlsComponent(context: Context, root: File, private val activity
|
||||
permissionNotified = false
|
||||
context.contentResolver.registerContentObserver(Settings.System.CONTENT_URI, true, observer)
|
||||
requests.startWatching()
|
||||
context.registerReceiver(volumeSteps, IntentFilter().apply {
|
||||
val volumeFilter = IntentFilter().apply {
|
||||
addAction(VOLUME_CHANGED_ACTION)
|
||||
addAction(STREAM_MUTE_CHANGED_ACTION)
|
||||
}, null, handler)
|
||||
}
|
||||
if (android.os.Build.VERSION.SDK_INT >= 33)
|
||||
context.registerReceiver(volumeSteps, volumeFilter, null, handler, Context.RECEIVER_NOT_EXPORTED)
|
||||
else context.registerReceiver(volumeSteps, volumeFilter, null, handler)
|
||||
refresh.run()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ object GuestCommand {
|
||||
NativeGuest.processBuilder(context, root, binds, guest).redirectErrorStream(true)
|
||||
} else {
|
||||
val cmd = LinuxRuntime.prootPrefix(context, root, "/root", fakeRoot)
|
||||
if (linkDir != null) cmd.add(1, "--link2symlink")
|
||||
if (linkDir != null) cmd.add("--link2symlink")
|
||||
binds.forEach { cmd.add("-b"); cmd.add(it) }
|
||||
cmd += guest
|
||||
ProcessBuilder(cmd).directory(root).redirectErrorStream(true).also { b ->
|
||||
|
||||
@@ -106,13 +106,15 @@ class LinuxNetworkLinkComponent(
|
||||
synchronized(lock) { writeNetworkState(currentProperties, currentCapabilities) }
|
||||
}
|
||||
}
|
||||
appContext.registerReceiver(receiver, IntentFilter().apply {
|
||||
val wifiFilter = IntentFilter().apply {
|
||||
addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)
|
||||
addAction(WifiManager.RSSI_CHANGED_ACTION)
|
||||
addAction(WifiManager.WIFI_STATE_CHANGED_ACTION)
|
||||
addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION)
|
||||
addAction(LocationManager.MODE_CHANGED_ACTION)
|
||||
})
|
||||
}
|
||||
if (android.os.Build.VERSION.SDK_INT >= 33) appContext.registerReceiver(receiver, wifiFilter, Context.RECEIVER_NOT_EXPORTED)
|
||||
else appContext.registerReceiver(receiver, wifiFilter)
|
||||
wifiReceiver = receiver
|
||||
scanRequestStamp = File(rootDir, "etc/droiddeck-wifi-scan-request").lastModified()
|
||||
scanHandler.post(scanRequests)
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.droiddeck.launcher.runtime;
|
||||
|
||||
import com.droiddeck.launcher.core.AddonPack;
|
||||
import android.content.Context;
|
||||
import android.os.Build;
|
||||
import android.os.Process;
|
||||
import android.system.ErrnoException;
|
||||
import android.system.Os;
|
||||
@@ -77,7 +78,18 @@ public final class LinuxRuntime {
|
||||
}
|
||||
|
||||
private static boolean rootfsProotReady(Context context) {
|
||||
return rootfsProot(context).isFile() && rootfsLoader(context).isFile();
|
||||
return Build.VERSION.SDK_INT < 29 && rootfsProot(context).isFile() && rootfsLoader(context).isFile();
|
||||
}
|
||||
|
||||
/** proot execs its loader, and targetSdk 29+ may exec only the APK's libraries, which hold the pack's matching loader. */
|
||||
public static boolean stockProotAllowed(Context context) {
|
||||
return Build.VERSION.SDK_INT < 29 && SessionPrefs.allowStockProot(context);
|
||||
}
|
||||
|
||||
/** Android 10+ refuses to execute files from app data for targetSdk 29+, but executes the APK's extracted libraries. */
|
||||
private static File bundledLoader(Context context) {
|
||||
File file = new File(context.getApplicationInfo().nativeLibraryDir, "libproot-loader.so");
|
||||
return file.isFile() ? file : null;
|
||||
}
|
||||
|
||||
public static boolean patchedProot(Context context) {
|
||||
@@ -86,22 +98,21 @@ public final class LinuxRuntime {
|
||||
|
||||
public static File prootBinary(Context context) {
|
||||
if (AddonPack.PROOT.installed(context)) return AddonPack.PROOT.file(context, "libproot.so");
|
||||
if (SessionPrefs.allowStockProot(context)) return rootfsProot(context);
|
||||
if (stockProotAllowed(context)) return rootfsProot(context);
|
||||
return AddonPack.PROOT.file(context, "libproot.so");
|
||||
}
|
||||
|
||||
public static File prootLoader(Context context) {
|
||||
if (AddonPack.PROOT.installed(context)) return AddonPack.PROOT.file(context, "libproot-loader.so");
|
||||
if (SessionPrefs.allowStockProot(context)) return rootfsLoader(context);
|
||||
return AddonPack.PROOT.file(context, "libproot-loader.so");
|
||||
File bundled = bundledLoader(context);
|
||||
if (AddonPack.PROOT.installed(context)) return bundled != null ? bundled : AddonPack.PROOT.file(context, "libproot-loader.so");
|
||||
if (stockProotAllowed(context)) return rootfsLoader(context);
|
||||
return bundled != null ? bundled : AddonPack.PROOT.file(context, "libproot-loader.so");
|
||||
}
|
||||
|
||||
public static String prootSource(Context context) {
|
||||
File bin = prootBinary(context);
|
||||
if (!bin.isFile()) return PROOT_MISSING;
|
||||
if (AddonPack.PROOT.installed(context)
|
||||
&& bin.getPath().equals(AddonPack.PROOT.file(context, "libproot.so").getPath())) return PROOT_PACK;
|
||||
return PROOT_ROOTFS;
|
||||
return patchedProot(context) && !bin.equals(rootfsProot(context)) ? PROOT_PACK : PROOT_ROOTFS;
|
||||
}
|
||||
|
||||
public static String prootLibraryPath(Context context) {
|
||||
@@ -183,13 +194,13 @@ public final class LinuxRuntime {
|
||||
|
||||
public static List<String> rootPrefix(Context context, File root, String cwd) {
|
||||
List<String> cmd = prootPrefix(context, root, cwd, true);
|
||||
cmd.add(1, "--link2symlink");
|
||||
cmd.add("--link2symlink");
|
||||
return cmd;
|
||||
}
|
||||
|
||||
public static List<String> prootPrefix(Context context, File root, String cwd, boolean fakeRoot) {
|
||||
List<String> cmd = new ArrayList<>();
|
||||
cmd.add(prootBinary(context).getPath());
|
||||
cmd.addAll(com.droiddeck.launcher.core.HostProcess.dataExecutable(prootBinary(context).getPath()));
|
||||
cmd.add("--kill-on-exit");
|
||||
cmd.add("--kernel-release=" + guestUtsname(SessionPrefs.guestHostname(context)));
|
||||
int uid = Process.myUid();
|
||||
|
||||
@@ -384,7 +384,7 @@ public final class LinuxRuntimeInstaller {
|
||||
String downloading = context.getString(R.string.rtinst_downloading);
|
||||
if (listener != null) listener.onProgress(Step.DOWNLOADING, downloading, 0);
|
||||
if (!LinuxRuntime.patchedProot(context) && !AddonPack.PROOT.await(context, () -> true, packProgress(listener, downloading))
|
||||
&& !SessionPrefs.allowStockProot(context))
|
||||
&& !LinuxRuntime.stockProotAllowed(context))
|
||||
return fail("Cannot download proot", AddonPack.PROOT.getFailure());
|
||||
if (!AddonPack.DIRECTAUDIO.await(context, () -> true, packProgress(listener, downloading)))
|
||||
return fail("Cannot download DirectAudio", AddonPack.DIRECTAUDIO.getFailure());
|
||||
|
||||
@@ -50,6 +50,21 @@ object NativeGuest {
|
||||
|
||||
fun hook(root: File): File = File(root, HOOK)
|
||||
|
||||
/**
|
||||
* libddexec.so, which starts the rootfs loader on Android 10+, where a targetSdk 29+ app may not
|
||||
* execute its data files; null where the kernel still starts them directly.
|
||||
*/
|
||||
@Volatile var execLoader: String? = null
|
||||
private set
|
||||
|
||||
/** What starts the program at [path] from the host: nothing before it, or [execLoader] and the path. */
|
||||
fun execPrefix(path: String): List<String> = execLoader?.let { listOf(it, path) }.orEmpty()
|
||||
|
||||
fun init(context: Context) {
|
||||
execLoader = File(context.applicationInfo.nativeLibraryDir, "libddexec.so")
|
||||
.takeIf { android.os.Build.VERSION.SDK_INT >= 29 && it.isFile }?.path
|
||||
}
|
||||
|
||||
fun loader(root: File): File? =
|
||||
listOf("usr/lib/ld-linux-aarch64.so.1", "lib/ld-linux-aarch64.so.1").map { File(root, it) }.firstOrNull { it.exists() }
|
||||
|
||||
@@ -60,9 +75,10 @@ object NativeGuest {
|
||||
/** Environment every native process starts with; a guest `env -i` is re-seeded by the hook. */
|
||||
fun environment(root: File, preload: List<String> = emptyList()): Map<String, String> = linkedMapOf(
|
||||
"DDNATV_ROOT" to root.path,
|
||||
"DDNATV_EXEC" to execLoader.orEmpty(),
|
||||
"LD_LIBRARY_PATH" to libraryPath(root),
|
||||
"LD_PRELOAD" to (preload.map { File(root, it.removePrefix("/")).path } + hook(root).path).joinToString(":"),
|
||||
)
|
||||
).filterValues { it.isNotEmpty() }
|
||||
|
||||
/**
|
||||
* The host command line for the guest program at [program] (an absolute guest path to a real
|
||||
@@ -72,7 +88,7 @@ object NativeGuest {
|
||||
val loader = checkNotNull(loader(root)) { "no glibc loader in ${root.path}" }
|
||||
val host = File(root, program.removePrefix("/"))
|
||||
val launch = listOf(loader.path, "--argv0", host.name, host.path) + args
|
||||
return simulator(root)?.let { it + launch } ?: launch
|
||||
return simulator(root)?.let { it + launch } ?: (execPrefix(loader.path) + launch)
|
||||
}
|
||||
|
||||
/** The environment of the session process: the hook's root, the mounts proot used to make, the preload list. */
|
||||
@@ -80,6 +96,7 @@ object NativeGuest {
|
||||
val preload = preloadList(root)
|
||||
return linkedMapOf(
|
||||
"DDNATV_ROOT" to root.path,
|
||||
"DDNATV_EXEC" to execLoader.orEmpty(),
|
||||
"DDNATV_HOSTNAME" to hostname.orEmpty(),
|
||||
"DDNATV_BINDS" to binds.joinToString("|") { if (it.contains(':')) it else "$it:$it" },
|
||||
"DDNATV_PRELOAD" to preload.joinToString(":"),
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.droiddeck.launcher.session
|
||||
|
||||
import com.droiddeck.launcher.core.DeviceReport
|
||||
import com.droiddeck.launcher.core.FileUtils
|
||||
import java.io.File
|
||||
|
||||
object FexHost {
|
||||
internal fun kernelHidesCpuFeatures(cpuInfo: String): Boolean {
|
||||
val cores = DeviceReport.cpuFeatureLists(cpuInfo)
|
||||
return cores.isNotEmpty() && cores.any { "cpuid" !in it }
|
||||
}
|
||||
|
||||
fun kernelHidesCpuFeatures(): Boolean =
|
||||
runCatching { kernelHidesCpuFeatures(FileUtils.readString(File("/proc/cpuinfo")).orEmpty()) }.getOrDefault(false)
|
||||
}
|
||||
@@ -20,7 +20,6 @@ object GameProfileManager {
|
||||
}
|
||||
clear("Proton") { ProtonDefault.requestGame(context, scope, null) }
|
||||
clear("component packages") { ComponentsManager.clearGameComponents(context, scope) }
|
||||
clear("on-screen controls") { com.droiddeck.launcher.input.GameInputControls.set(context, scope, null) }
|
||||
clear("texture filtering") { SessionPrefs.clearGameTextureFiltering(context, scope) }
|
||||
clear("Windows components") { WinComponents.setPicks(context, scope, emptyList()) }
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@ import android.view.Display
|
||||
|
||||
object PerfMode {
|
||||
private const val TAG = "PerfMode"
|
||||
const val BFI_MIN_REFRESH_HZ = 100f
|
||||
|
||||
fun apply(a: Activity, fpsLimit: Int = 0, refreshLimit: Int = 0): String {
|
||||
val parts = ArrayList<String>(2)
|
||||
|
||||
@@ -597,7 +597,7 @@ object SessionArtifacts {
|
||||
}
|
||||
val memoryLog = File(dir, "memory-pressure.log")
|
||||
if (newest && !memoryLog.exists()) {
|
||||
SessionLogCapture.dumpMemoryPressure(memoryLog)
|
||||
SessionLogCapture.dumpMemoryPressure(memoryLog, context)
|
||||
}
|
||||
if (stopWhenSessionStarts && SessionState.running) {
|
||||
record.failed = true
|
||||
|
||||
@@ -36,35 +36,60 @@ object SessionFiles {
|
||||
"etc/xdg/autostart/droiddeck-clipboard.desktop" to "etc/xdg/autostart/droiddeck-clipboard.desktop",
|
||||
)
|
||||
|
||||
private const val UBISOFT_SERVICE = "usr/local/lib/droiddeck-ubisoft/droiddeck-upc.exe"
|
||||
private val SERVICE_PACKS = mapOf(
|
||||
AddonPack.UBISOFT to "usr/local/lib/droiddeck-ubisoft",
|
||||
AddonPack.ROCKSTAR to "usr/local/lib/droiddeck-rockstar",
|
||||
AddonPack.DIRT to "usr/local/lib/droiddeck-dirt",
|
||||
)
|
||||
|
||||
/** Fetches the Ubisoft pack and, once it lands, stages the service so a running session gets it without restarting. */
|
||||
fun ensureUbisoftService(context: Context) {
|
||||
AddonPack.UBISOFT.ensure(context) { app ->
|
||||
fun ensureUbisoftService(context: Context) = ensureStoreService(context, AddonPack.UBISOFT)
|
||||
|
||||
fun ensureRockstarService(context: Context) = ensureStoreService(context, AddonPack.ROCKSTAR)
|
||||
|
||||
/** The DiRT 3 / DiRT Showdown ws2_32 stand-in; droiddeck-game-env applies it only when it is staged. */
|
||||
fun ensureDirtStandIn(context: Context) = ensureStoreService(context, AddonPack.DIRT)
|
||||
|
||||
private fun ensureStoreService(context: Context, pack: AddonPack) {
|
||||
pack.ensure(context) { app ->
|
||||
com.droiddeck.launcher.runtime.LinuxRuntime.rootDir(app).takeIf { it.isDirectory }
|
||||
?.let { stageUbisoftService(app, it, null) }
|
||||
?.let { stageStoreService(app, it, pack, null) }
|
||||
}
|
||||
}
|
||||
|
||||
/** Blocks until the store's service pack is installed and staged in [root]; false when it could not be fetched. */
|
||||
fun awaitStoreService(context: Context, store: String, root: File): Boolean {
|
||||
val pack = SERVICE_PACKS.keys.firstOrNull { it.name == store } ?: return false
|
||||
if (!pack.await(context)) return false
|
||||
return stageStoreService(context, root, pack, null)
|
||||
}
|
||||
|
||||
@Synchronized
|
||||
private fun stageUbisoftService(context: Context, root: File, ledger: StageLedger?) {
|
||||
val pack = AddonPack.UBISOFT.takeIf { it.installed(context) }?.dir(context) ?: return
|
||||
val target = File(root, UBISOFT_SERVICE)
|
||||
if (ledger?.current(UBISOFT_SERVICE, target) == true) return
|
||||
val staged = File(target.parentFile, target.name + ".staged")
|
||||
var installed = false
|
||||
try {
|
||||
target.parentFile?.mkdirs()
|
||||
File(pack, "droiddeck-upc.exe").inputStream().use { input ->
|
||||
staged.outputStream().use { output -> FileUtils.copy(input, output) }
|
||||
private fun stageStoreService(context: Context, root: File, pack: AddonPack, ledger: StageLedger?): Boolean {
|
||||
val dir = pack.takeIf { it.installed(context) }?.dir(context) ?: return false
|
||||
val base = SERVICE_PACKS.getValue(pack)
|
||||
var all = true
|
||||
for (file in dir.listFiles().orEmpty().filter { it.isFile && it.name != AddonPack.COMPLETE }.sortedBy { it.name }) {
|
||||
val relative = "$base/${file.name}"
|
||||
val target = File(root, relative)
|
||||
if (ledger?.current(relative, target) == true) continue
|
||||
val staged = File(target.parentFile, target.name + ".staged")
|
||||
var installed = false
|
||||
try {
|
||||
target.parentFile?.mkdirs()
|
||||
file.inputStream().use { input ->
|
||||
staged.outputStream().use { output -> FileUtils.copy(input, output) }
|
||||
}
|
||||
installed = staged.setExecutable(true, false) && staged.renameTo(target)
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "could not stage the ${pack.name} pack", e)
|
||||
} finally {
|
||||
if (!installed) staged.delete()
|
||||
}
|
||||
installed = staged.setExecutable(true, false) && staged.renameTo(target)
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "could not stage the Ubisoft launcher service", e)
|
||||
} finally {
|
||||
if (!installed) staged.delete()
|
||||
if (installed) ledger?.staged(relative, target) else Log.e(TAG, "$relative NOT staged")
|
||||
all = all && installed
|
||||
}
|
||||
if (installed) ledger?.staged(UBISOFT_SERVICE, target) else Log.e(TAG, "$UBISOFT_SERVICE NOT staged")
|
||||
return all
|
||||
}
|
||||
|
||||
fun stage(context: Context, root: File, startsSession: Boolean = false) {
|
||||
@@ -73,8 +98,6 @@ object SessionFiles {
|
||||
GameEnvironmentStore.publish(context)
|
||||
WinComponents.publish(context)
|
||||
val files = arrayOf(
|
||||
"rockstar/helpers/Launcher32.exe" to "usr/local/lib/droiddeck-rockstar/Launcher32.exe",
|
||||
"rockstar/helpers/Launcher64.exe" to "usr/local/lib/droiddeck-rockstar/Launcher64.exe",
|
||||
"usr/local/bin/droiddeck-game-env" to "usr/local/bin/droiddeck-game-env",
|
||||
"usr/local/bin/droiddeck-game-debug" to "usr/local/bin/droiddeck-game-debug",
|
||||
"usr/local/bin/droiddeck-game-gpu" to "usr/local/bin/droiddeck-game-gpu",
|
||||
@@ -234,7 +257,6 @@ object SessionFiles {
|
||||
"usr/local/lib/droiddeck/uruntime" to "usr/local/lib/droiddeck/uruntime",
|
||||
"usr/local/lib/droiddeck-pipewire.tzst" to "usr/local/lib/droiddeck-pipewire.tzst",
|
||||
"usr/local/share/licenses/uruntime/LICENSE" to "usr/local/share/licenses/uruntime/LICENSE",
|
||||
"usr/local/lib/droiddeck-dirt/ws2_32.dll" to "usr/local/lib/droiddeck-dirt/ws2_32.dll",
|
||||
) + mangoapp + xclipse.map { it to it } + maliCompat + msitools.map { it to it } + vr + gpuLoad + fexPreloads).filter { (asset, _) ->
|
||||
val dir = asset.substringBeforeLast('/')
|
||||
runCatching { context.assets.list("linuxfs/$dir")?.contains(asset.substringAfterLast('/')) == true }.getOrDefault(false)
|
||||
@@ -248,7 +270,7 @@ object SessionFiles {
|
||||
var installed = false
|
||||
try {
|
||||
target.parentFile?.mkdirs()
|
||||
(if (asset.startsWith("rockstar/")) requireNotNull(javaClass.getResourceAsStream("/$asset")) else context.assets.open("linuxfs/$asset")).use { input ->
|
||||
context.assets.open("linuxfs/$asset").use { input ->
|
||||
staged.outputStream().use { output -> FileUtils.copy(input, output) }
|
||||
}
|
||||
installed = staged.setExecutable(true, false) && staged.renameTo(target)
|
||||
@@ -290,7 +312,7 @@ object SessionFiles {
|
||||
}
|
||||
if (installed) ledger.staged(key, target) else Log.e(TAG, "DirectAudio $set/$relative NOT staged")
|
||||
}
|
||||
stageUbisoftService(context, root, ledger)
|
||||
for (pack in SERVICE_PACKS.keys) stageStoreService(context, root, pack, ledger)
|
||||
ledger.save()
|
||||
for (old in arrayOf("aarch64-unix", "aarch64-windows", "i386-windows")) File(root, "$DIRECTAUDIO_DIR/lib/wine/$old").deleteRecursively()
|
||||
val preload = StringBuilder("/usr/local/lib/libblsession.so\n")
|
||||
|
||||
@@ -85,6 +85,12 @@ object SessionPrefs {
|
||||
prefs(context).edit().putBoolean("launcherFullscreen", on).apply()
|
||||
}
|
||||
|
||||
fun blackFrameInsertion(context: Context): Boolean = prefs(context).getBoolean("blackFrameInsertion", false)
|
||||
|
||||
fun setBlackFrameInsertion(context: Context, on: Boolean) {
|
||||
prefs(context).edit().putBoolean("blackFrameInsertion", on).apply()
|
||||
}
|
||||
|
||||
fun animationsEnabled(context: Context): Boolean = prefs(context).getBoolean("animations", true)
|
||||
|
||||
fun setAnimationsEnabled(context: Context, on: Boolean) {
|
||||
@@ -267,7 +273,7 @@ object SessionPrefs {
|
||||
prefs(context).edit().putBoolean("railLabels", show).apply()
|
||||
}
|
||||
|
||||
fun agentTab(context: Context): Boolean = prefs(context).getBoolean("agentTab", true)
|
||||
fun agentTab(context: Context): Boolean = prefs(context).getBoolean("agentTab", false)
|
||||
|
||||
fun setAgentTab(context: Context, show: Boolean) {
|
||||
prefs(context).edit().putBoolean("agentTab", show).apply()
|
||||
@@ -641,6 +647,13 @@ object SessionPrefs {
|
||||
position.takeIf { it in listOf("top", "bottom", "left", "right", "center") } ?: "center").apply()
|
||||
}
|
||||
|
||||
fun integerScaling(context: Context): Boolean =
|
||||
prefs(context).getBoolean("integerScaling", false)
|
||||
|
||||
fun setIntegerScaling(context: Context, enabled: Boolean) {
|
||||
prefs(context).edit().putBoolean("integerScaling", enabled).apply()
|
||||
}
|
||||
|
||||
fun returnAfterGame(context: Context): Boolean = prefs(context).getBoolean("returnAfterGame", true)
|
||||
|
||||
fun setReturnAfterGame(context: Context, on: Boolean) {
|
||||
@@ -694,6 +707,18 @@ object SessionPrefs {
|
||||
|
||||
fun micAsked(context: Context): Boolean = prefs(context).getBoolean("micAsked", false)
|
||||
|
||||
fun allFilesAsked(context: Context): Boolean = prefs(context).getBoolean("allFilesAsked", false)
|
||||
|
||||
fun setAllFilesAsked(context: Context) {
|
||||
prefs(context).edit().putBoolean("allFilesAsked", true).apply()
|
||||
}
|
||||
|
||||
fun bluetoothAsked(context: Context): Boolean = prefs(context).getBoolean("bluetoothAsked", false)
|
||||
|
||||
fun setBluetoothAsked(context: Context) {
|
||||
prefs(context).edit().putBoolean("bluetoothAsked", true).apply()
|
||||
}
|
||||
|
||||
fun setMicAsked(context: Context) {
|
||||
prefs(context).edit().putBoolean("micAsked", true).apply()
|
||||
}
|
||||
@@ -939,7 +964,7 @@ object SessionPrefs {
|
||||
prefs(context).edit().putBoolean("steamGpuCompositing", false).apply()
|
||||
return false
|
||||
}
|
||||
return prefs(context).getBoolean("steamGpuCompositing", false)
|
||||
return prefs(context).getBoolean("steamGpuCompositing", true)
|
||||
}
|
||||
|
||||
fun steamGpuCompositingAllowed(): Boolean =
|
||||
|
||||
@@ -540,7 +540,7 @@ class SessionService : Service() {
|
||||
}
|
||||
}
|
||||
if (!LinuxRuntime.patchedProot(this)) {
|
||||
if (SessionPrefs.allowStockProot(this)) {
|
||||
if (LinuxRuntime.stockProotAllowed(this)) {
|
||||
Log.w(TAG, "proot: patched proot missing; droiddeck-stock-proot allows the rootfs copy")
|
||||
} else {
|
||||
val message = getString(R.string.session_proot_missing)
|
||||
|
||||
@@ -18,13 +18,13 @@ object SettingsReset {
|
||||
"storesInstallLanguage",
|
||||
"hud", "hudDeck", "hudFps", "hudBattery", "hudGraph", "hudColor", "hudOpacity", "__KEEP_droidDeckHud__", "__KEEP_droidDeckHudPos__", "backHold", "backActionsInverted", "backDoubleTapMs", "touch", "pen", "penButton", "osc", "shape", "steamController",
|
||||
"gamepadLeft", "gamepadRight", "pipAutoEnter", "unfoldedControls", "unfoldedControlsWithController",
|
||||
"stretch16x9", "picturePosition", "railLabels", "agentTab", "navTabOrder", "navTabShelved", "navTabHidden", "pcKeyboardSize", "pcKeyboardOpacity", "pcKeyboardHiddenKeys",
|
||||
"stretch16x9", "picturePosition", "integerScaling", "railLabels", "agentTab", "navTabOrder", "navTabShelved", "navTabHidden", "pcKeyboardSize", "pcKeyboardOpacity", "pcKeyboardHiddenKeys",
|
||||
"gpuDriverMode", "androidDriver", "linuxDriver", "linuxDriver.steam", "linuxDriver.desktop",
|
||||
"tuSysmem", "glThread", "noGlError", "zinkLazy", "mangoapp", "gpuClockPin", "gamescopeRealtime", "paceCores", "ramCapMb", "vramCapMb", "zramClient", "zramIdle",
|
||||
"directAudio", "mic", "wifiDiscovery", "clientCpusOverride", "clientCpus", "gameCpus",
|
||||
"noXalia", "fastSync", "fsyncFirst", "syncFallback", "prootNoSeccomp", "prootFastPath", "nativeUserland", "cursorComposite",
|
||||
"guestHostname", "fexPreset", "forceSsbs", "logs", "gameDebugLogsEnabled", "enhancedDiagnosticsNext", "storageDiagnostics", "buildWatermark",
|
||||
"upscaler", "upscaleSharpness", "screenEffects", "textureAnisotropy", "textureLodBias",
|
||||
"upscaler", "upscaleSharpness", "screenEffects", "blackFrameInsertion", "textureAnisotropy", "textureLodBias",
|
||||
"steamDownloadsInBackground", "steam_offline", "bootMovie", "bootMovieSound", "bootMovieVolume", "bootMovieSeconds", "skipBootMovie",
|
||||
"bootMovieApplyNext", "bootMovieSteamSeen", "bootMovieShuffle",
|
||||
"questDefaultsV1", "telemetryAuto", "telemetryOff", "statsStrip", "statsHud", "bottomHud", "bottomStripMetrics", "bottomStripTabs", "statsDash", "statsSpeedUnit",
|
||||
|
||||
@@ -80,6 +80,11 @@ object StoreLaunchRequests {
|
||||
lastLaunched = Store.ROCKSTAR to request.optString("id")
|
||||
com.droiddeck.launcher.stores.rockstar.RockstarLaunch.prepare(app, request.optString("id"))
|
||||
}.getOrElse { JSONObject().put("ok", false).put("reason", "error-" + it.javaClass.simpleName) }
|
||||
"store-service" -> runCatching {
|
||||
val root = com.droiddeck.launcher.runtime.LinuxRuntime.rootDir(app)
|
||||
if (com.droiddeck.launcher.session.SessionFiles.awaitStoreService(app, request.optString("store"), root)) JSONObject().put("ok", true)
|
||||
else JSONObject().put("ok", false).put("reason", "service-unavailable")
|
||||
}.getOrElse { JSONObject().put("ok", false).put("reason", "error-" + it.javaClass.simpleName) }
|
||||
"rockstar-exited" -> {
|
||||
if (lastLaunched == (Store.ROCKSTAR to request.optString("id"))) lastLaunched = null
|
||||
JSONObject().put("ok", true)
|
||||
|
||||
@@ -141,6 +141,7 @@ object RockstarAuth {
|
||||
StoreAccounts.clear(context.applicationContext, Store.ROCKSTAR)
|
||||
return "ticket"
|
||||
}
|
||||
com.droiddeck.launcher.session.SessionFiles.ensureRockstarService(context)
|
||||
return null
|
||||
}
|
||||
|
||||
|
||||
@@ -1,18 +1,27 @@
|
||||
package com.droiddeck.launcher.stores.xbox
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.Intent
|
||||
import android.graphics.Color
|
||||
import android.net.Uri
|
||||
import android.os.Bundle
|
||||
import android.util.Log
|
||||
import android.util.TypedValue
|
||||
import android.view.Gravity
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import android.webkit.CookieManager
|
||||
import android.webkit.WebResourceRequest
|
||||
import android.webkit.WebView
|
||||
import android.webkit.WebViewClient
|
||||
import android.widget.Button
|
||||
import android.widget.FrameLayout
|
||||
import android.widget.ImageButton
|
||||
import android.widget.LinearLayout
|
||||
import android.widget.ProgressBar
|
||||
import android.widget.TextView
|
||||
import androidx.activity.ComponentActivity
|
||||
import com.droiddeck.launcher.R
|
||||
import androidx.webkit.WebViewCompat
|
||||
import androidx.webkit.WebViewFeature
|
||||
import com.droiddeck.launcher.core.AddonPack
|
||||
@@ -24,8 +33,10 @@ import org.json.JSONObject
|
||||
import java.util.concurrent.TimeUnit
|
||||
|
||||
class XboxLoginActivity : ComponentActivity() {
|
||||
private lateinit var host: LinearLayout
|
||||
private lateinit var host: FrameLayout
|
||||
private lateinit var status: TextView
|
||||
private lateinit var retry: Button
|
||||
private lateinit var progressBar: ProgressBar
|
||||
private var view: WebView? = null
|
||||
@Volatile private var child: Xodus.Child? = null
|
||||
@Volatile private var session = 0L
|
||||
@@ -37,11 +48,7 @@ class XboxLoginActivity : ComponentActivity() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
requestedOrientation = com.droiddeck.launcher.core.AppUiPrefs.orientation(this)
|
||||
host = LinearLayout(this).apply { orientation = LinearLayout.VERTICAL; setBackgroundColor(Color.BLACK) }
|
||||
status = TextView(this).apply { setTextColor(Color.WHITE); text = "Preparing Microsoft sign-in…"; setPadding(24, 16, 24, 16) }
|
||||
host.addView(status)
|
||||
host.addView(Button(this).apply { text = getString(com.droiddeck.launcher.R.string.stores_login_close); setOnClickListener { finish() } })
|
||||
setContentView(host)
|
||||
setContentView(buildChrome())
|
||||
if (android.os.Build.VERSION.SDK_INT < 28 || !WebViewFeature.isFeatureSupported(WebViewFeature.WEB_MESSAGE_LISTENER) ||
|
||||
!WebViewFeature.isFeatureSupported(WebViewFeature.DOCUMENT_START_SCRIPT)) {
|
||||
status.text = "Update Android System WebView to sign in to Xbox."
|
||||
@@ -148,15 +155,60 @@ class XboxLoginActivity : ComponentActivity() {
|
||||
val failed = step
|
||||
val reason = failure(e)
|
||||
logStep("failed while $failed: $reason")
|
||||
if (e is java.io.IOException) logStep("I/O detail: ${e.message.orEmpty().take(300)}")
|
||||
runOnUiThread {
|
||||
disposeView()
|
||||
val details = if (codes.isEmpty()) "" else "\nDetails: ${codes.joinToString(", ")}"
|
||||
status.text = "Microsoft sign-in did not complete.\nFailed while $failed: $reason$details\nClose this window and try again."
|
||||
status.text = "Microsoft sign-in did not complete.\nFailed while $failed: $reason$details"
|
||||
retry.visibility = View.VISIBLE
|
||||
}
|
||||
}
|
||||
}, "xbox-login").start()
|
||||
}
|
||||
|
||||
private fun dp(value: Int): Int = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, value.toFloat(), resources.displayMetrics).toInt()
|
||||
|
||||
/** The other stores' sign-in frame: a title bar with close, a load bar, and a centered status. */
|
||||
private fun buildChrome(): View {
|
||||
val root = LinearLayout(this).apply { orientation = LinearLayout.VERTICAL; setBackgroundColor(BACKGROUND) }
|
||||
val bar = LinearLayout(this).apply {
|
||||
orientation = LinearLayout.HORIZONTAL; gravity = Gravity.CENTER_VERTICAL; setBackgroundColor(BAR)
|
||||
layoutParams = LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, dp(48))
|
||||
}
|
||||
bar.addView(TextView(this).apply {
|
||||
text = getString(R.string.stores_login_title, Store.XBOX.label)
|
||||
setTextColor(TEXT); textSize = 16f; setPadding(dp(16), 0, dp(8), 0)
|
||||
layoutParams = LinearLayout.LayoutParams(0, ViewGroup.LayoutParams.WRAP_CONTENT, 1f)
|
||||
})
|
||||
bar.addView(ImageButton(this).apply {
|
||||
setImageResource(android.R.drawable.ic_menu_close_clear_cancel); setBackgroundColor(Color.TRANSPARENT)
|
||||
contentDescription = getString(R.string.stores_login_close); layoutParams = LinearLayout.LayoutParams(dp(48), dp(48))
|
||||
setOnClickListener { finish() }
|
||||
})
|
||||
progressBar = ProgressBar(this, null, android.R.attr.progressBarStyleHorizontal).apply {
|
||||
max = 100; visibility = View.GONE
|
||||
layoutParams = LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, dp(3))
|
||||
}
|
||||
host = FrameLayout(this).apply {
|
||||
setBackgroundColor(BACKGROUND)
|
||||
layoutParams = LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 0, 1f)
|
||||
}
|
||||
val panel = LinearLayout(this).apply {
|
||||
orientation = LinearLayout.VERTICAL; gravity = Gravity.CENTER; setBackgroundColor(BACKGROUND)
|
||||
setPadding(dp(24), dp(24), dp(24), dp(24))
|
||||
}
|
||||
status = TextView(this).apply { setTextColor(TEXT); textSize = 15f; gravity = Gravity.CENTER; text = "Preparing Microsoft sign-in…" }
|
||||
retry = Button(this).apply {
|
||||
text = getString(R.string.stores_login_retry); visibility = View.GONE
|
||||
setOnClickListener { startActivity(Intent(intent)); finish() }
|
||||
}
|
||||
panel.addView(status)
|
||||
panel.addView(retry, LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT).apply { topMargin = dp(16) })
|
||||
host.addView(panel, FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT))
|
||||
root.addView(bar); root.addView(progressBar); root.addView(host)
|
||||
return root
|
||||
}
|
||||
|
||||
private fun show(text: String) = runOnUiThread { if (!closed && view == null) status.text = text }
|
||||
|
||||
private fun progress(name: String, text: String) { step = name; show(text) }
|
||||
@@ -191,7 +243,6 @@ class XboxLoginActivity : ComponentActivity() {
|
||||
override fun shouldOverrideUrlLoading(view: WebView, request: WebResourceRequest): Boolean = !trusted(request.url.toString())
|
||||
override fun onPageFinished(view: WebView, url: String) {
|
||||
if (!trusted(url)) { finish(); return }
|
||||
status.text = "Microsoft sign-in"
|
||||
val uri = Uri.parse(url)
|
||||
if (uri.host == "login.live.com" && uri.path == "/ppsecure/post.srf") {
|
||||
view.evaluateJavascript("JSON.stringify(globalThis.ServerData ?? null)") { raw ->
|
||||
@@ -203,7 +254,14 @@ class XboxLoginActivity : ComponentActivity() {
|
||||
}
|
||||
}
|
||||
}
|
||||
host.addView(web, LinearLayout.LayoutParams(-1, 0, 1f))
|
||||
web.setBackgroundColor(BACKGROUND)
|
||||
web.webChromeClient = object : android.webkit.WebChromeClient() {
|
||||
override fun onProgressChanged(view: WebView?, newProgress: Int) {
|
||||
progressBar.progress = newProgress
|
||||
progressBar.visibility = if (newProgress in 1..99) View.VISIBLE else View.GONE
|
||||
}
|
||||
}
|
||||
host.addView(web, FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT))
|
||||
val headers = frame.getJSONObject("headers")
|
||||
val values = headers.keys().asSequence().associateWith { key ->
|
||||
require(key in allowedHeaders)
|
||||
@@ -212,7 +270,11 @@ class XboxLoginActivity : ComponentActivity() {
|
||||
web.loadUrl(frame.getString("url"), values)
|
||||
}
|
||||
|
||||
private fun disposeView() { view?.let { host.removeView(it); it.stopLoading(); it.destroy() }; view = null }
|
||||
private fun disposeView() {
|
||||
view?.let { host.removeView(it); it.stopLoading(); it.destroy() }
|
||||
view = null
|
||||
if (::progressBar.isInitialized) progressBar.visibility = View.GONE
|
||||
}
|
||||
override fun onDestroy() {
|
||||
closed = true
|
||||
val current = child; child = null
|
||||
@@ -225,6 +287,9 @@ class XboxLoginActivity : ComponentActivity() {
|
||||
|
||||
companion object {
|
||||
private const val TAG = "XboxLogin"
|
||||
private const val BACKGROUND = 0xFF0A0B0D.toInt()
|
||||
private const val BAR = 0xFF121417.toInt()
|
||||
private const val TEXT = 0xFFF2F4F7.toInt()
|
||||
|
||||
internal fun failure(e: Exception): String {
|
||||
val message = e.message.orEmpty()
|
||||
|
||||
@@ -61,7 +61,7 @@ internal object XboxRuntime {
|
||||
val view = result.get(90, java.util.concurrent.TimeUnit.SECONDS)
|
||||
check(renew(app, id, token) && synchronized(state) { generation == current }) { "Xbox launch was cancelled" }
|
||||
return JSONObject().put("ok", true).put("socket", socket.path).put("lease", token)
|
||||
.put("exe", view.getString("exe")).put("playfab", view.opt("playfab"))
|
||||
.put("exe", view.getString("exe")).put("playfab", view.opt("playfab")).put("mountRoot", view.opt("mountRoot"))
|
||||
} catch (e: Exception) { released(token); throw e }
|
||||
}
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@ import androidx.compose.runtime.key
|
||||
import androidx.compose.runtime.mutableIntStateOf
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.runtime.produceState
|
||||
import androidx.compose.runtime.rememberCoroutineScope
|
||||
import androidx.compose.runtime.setValue
|
||||
import androidx.compose.ui.Alignment
|
||||
@@ -73,8 +74,10 @@ import com.droiddeck.launcher.frontend.LogoPosition
|
||||
import com.droiddeck.launcher.frontend.SoundtrackCollectionArt
|
||||
import com.droiddeck.launcher.frontend.SteamGameArt
|
||||
import com.droiddeck.launcher.frontend.SteamGridDb
|
||||
import com.droiddeck.launcher.frontend.SteamInputOverride
|
||||
import com.droiddeck.launcher.frontend.SteamLaunchOptions
|
||||
import com.droiddeck.launcher.session.SessionPrefs
|
||||
import com.droiddeck.launcher.session.SessionState
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.coroutines.withContext
|
||||
@@ -336,6 +339,107 @@ internal fun SteamLaunchOptionsPanel(appId: Int) {
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
internal fun SteamInputOverridePanel(appId: Int) {
|
||||
val app = LocalContext.current.applicationContext
|
||||
val colors = MaterialTheme.colorScheme
|
||||
val scope = rememberCoroutineScope()
|
||||
var selected by remember(appId) { mutableStateOf<SteamInputOverride.Mode?>(null) }
|
||||
var version by remember(appId) { mutableIntStateOf(0) }
|
||||
var saving by remember(appId) { mutableStateOf(false) }
|
||||
var loading by remember(appId) { mutableStateOf(true) }
|
||||
var error by remember(appId) { mutableStateOf<Int?>(null) }
|
||||
var saves by remember(appId) { mutableIntStateOf(0) }
|
||||
// SessionState.running is not snapshot state, so the panel polls it while shown.
|
||||
val sessionRunning by produceState(SessionState.running) {
|
||||
while (true) {
|
||||
value = SessionState.running
|
||||
kotlinx.coroutines.delay(1000)
|
||||
}
|
||||
}
|
||||
|
||||
LaunchedEffect(appId, version) {
|
||||
val savesAtStart = saves
|
||||
val read = withContext(Dispatchers.IO) { SteamInputOverride.current(app, appId) }
|
||||
// A save that finished while this read ran already set the selection; the read may predate it.
|
||||
if (!saving && saves == savesAtStart) selected = read
|
||||
loading = false
|
||||
}
|
||||
var wasRunning by remember(appId) { mutableStateOf(SessionState.running) }
|
||||
LaunchedEffect(sessionRunning) {
|
||||
// Steam may have changed the override while it ran, so every stop reloads it.
|
||||
if (wasRunning && !sessionRunning) {
|
||||
if (error == R.string.edit_steam_input_running) error = null
|
||||
loading = true
|
||||
version++
|
||||
}
|
||||
wasRunning = sessionRunning
|
||||
}
|
||||
val lifecycle = LocalLifecycleOwner.current.lifecycle
|
||||
DisposableEffect(lifecycle, appId) {
|
||||
val observer = LifecycleEventObserver { _, event ->
|
||||
if (event == Lifecycle.Event.ON_RESUME && !saving) {
|
||||
loading = true
|
||||
version++
|
||||
}
|
||||
}
|
||||
lifecycle.addObserver(observer)
|
||||
onDispose { lifecycle.removeObserver(observer) }
|
||||
}
|
||||
|
||||
val choices = listOf(
|
||||
SteamInputOverride.Mode.DEFAULT to R.string.edit_steam_input_default,
|
||||
SteamInputOverride.Mode.ENABLED to R.string.edit_steam_input_enable,
|
||||
SteamInputOverride.Mode.DISABLED to R.string.edit_steam_input_disable,
|
||||
)
|
||||
Column(Modifier.fillMaxWidth().tabPanel(), verticalArrangement = Arrangement.spacedBy(2.dp)) {
|
||||
Text(
|
||||
stringResource(R.string.edit_steam_input_override),
|
||||
fontSize = 13.sp,
|
||||
fontWeight = FontWeight.SemiBold,
|
||||
color = colors.onSurfaceVariant,
|
||||
modifier = Modifier.padding(start = 4.dp, bottom = 2.dp),
|
||||
)
|
||||
choices.forEach { (mode, label) ->
|
||||
MenuItem(
|
||||
stringResource(label),
|
||||
checked = selected == mode,
|
||||
enabled = selected != null && !saving && !loading && !sessionRunning && selected != mode,
|
||||
) {
|
||||
val before = selected ?: return@MenuItem
|
||||
saving = true
|
||||
scope.launch {
|
||||
try {
|
||||
val saved = withContext(Dispatchers.IO) { SteamInputOverride.set(app, appId, mode, before) }
|
||||
error = when (saved) {
|
||||
SteamInputOverride.Saved.YES -> null
|
||||
SteamInputOverride.Saved.NO -> R.string.edit_steam_input_not_saved
|
||||
SteamInputOverride.Saved.RUNNING -> R.string.edit_steam_input_running
|
||||
}
|
||||
if (saved == SteamInputOverride.Saved.YES) {
|
||||
saves++
|
||||
selected = mode
|
||||
} else version++
|
||||
} finally {
|
||||
saving = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
val message = error ?: when {
|
||||
sessionRunning -> R.string.edit_steam_input_running
|
||||
selected == null && !loading -> R.string.edit_steam_input_unavailable
|
||||
else -> R.string.edit_steam_input_hint
|
||||
}
|
||||
Text(
|
||||
stringResource(message),
|
||||
fontSize = 12.sp,
|
||||
color = if (error == null) colors.onSurfaceVariant else colors.error,
|
||||
modifier = Modifier.padding(start = 4.dp),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
private class LoadedPosition(val value: LogoPosition.Value?)
|
||||
|
||||
@Composable
|
||||
|
||||
@@ -82,6 +82,7 @@ internal fun AgentEntry(
|
||||
if (reply.options.isNotEmpty()) AgentChoices(reply.options, answerable, onSent)
|
||||
}
|
||||
}
|
||||
is Entry.Notice -> Text(entry.text, color = colors.error, modifier = Modifier.padding(horizontal = 4.dp))
|
||||
is Entry.Thought -> AgentThought(entry.text, live = false)
|
||||
is Entry.Used -> if (entry.tool == "TodoWrite") AgentTodos(entry.input) else AgentToolCall(entry, running, children)
|
||||
is Entry.Result -> Unit
|
||||
|
||||
@@ -567,7 +567,8 @@ private fun labStage(lab: com.droiddeck.launcher.agent.LabProgress) = when (lab.
|
||||
else -> stringResource(R.string.agent_lab_stage_starting)
|
||||
}
|
||||
|
||||
private fun hasActivity() = AgentHost.lab != null || AgentHost.queue.isNotEmpty() || currentTodo() != null
|
||||
private fun hasActivity() = AgentHost.lab != null || AgentHost.queue.isNotEmpty() || currentTodo() != null ||
|
||||
com.droiddeck.launcher.agent.AgentSetup.problems.isNotEmpty()
|
||||
|
||||
/** The todo item in progress and how many are done, while the agent works through a list. */
|
||||
private fun currentTodo(): String? {
|
||||
@@ -594,6 +595,11 @@ private fun AgentActivity(labOpen: Boolean, onLab: () -> Unit) {
|
||||
Text(todo, fontSize = 12.5.sp, color = pal.onSurfaceVariant, maxLines = 1, overflow = TextOverflow.Ellipsis, modifier = Modifier.widthIn(max = 220.dp))
|
||||
}
|
||||
}
|
||||
val problems = com.droiddeck.launcher.agent.AgentSetup.problems
|
||||
if (problems.isNotEmpty()) AgentChip(warn = true, tag = "agent-tools-missing") {
|
||||
Text(stringResource(R.string.agent_tools_missing, problems.joinToString(", ")), fontSize = 12.5.sp, color = AttentionAmber,
|
||||
maxLines = 2, overflow = TextOverflow.Ellipsis, modifier = Modifier.widthIn(max = 260.dp))
|
||||
}
|
||||
for (queued in AgentHost.queue) AgentChip(warn = true) {
|
||||
Text(stringResource(R.string.agent_queued, queued.text), fontSize = 12.5.sp, color = AttentionAmber, maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis, modifier = Modifier.widthIn(max = 180.dp))
|
||||
|
||||
@@ -416,7 +416,7 @@ private fun ToolsRow(title: String, detail: String, action: @Composable () -> Un
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun ToolsField(value: String, onValue: (String) -> Unit, hint: String, tag: String) {
|
||||
internal fun ToolsField(value: String, onValue: (String) -> Unit, hint: String, tag: String) {
|
||||
val colors = MaterialTheme.colorScheme
|
||||
val pal = LocalPalette.current
|
||||
Box(Modifier.fillMaxWidth().clip(Shape12).background(pal.surfaceVariant).padding(horizontal = 12.dp, vertical = 10.dp)) {
|
||||
|
||||
@@ -96,27 +96,61 @@ internal fun AgentSetupView(modifier: Modifier, onDone: () -> Unit = {}) {
|
||||
) {
|
||||
steps.forEachIndexed { index, step ->
|
||||
val status = AgentSetup.status[step] ?: Status.UNKNOWN
|
||||
val (title, hint) = labels(step, AgentHost.harness.name)
|
||||
val harness = AgentHost.harness
|
||||
// A harness that signs in with a pasted key: the sign-in opens its key page and this field takes the key.
|
||||
val keyed = step == Step.SIGN_IN && harness.keyPage != null
|
||||
var keyOpen by rememberSaveable(harness.id) { mutableStateOf(false) }
|
||||
val (title, hint) = labels(step, harness.name, keyed)
|
||||
val lab = AgentHost.lab?.takeIf { it.prepare && it.running }
|
||||
val detail = if (step == Step.PREPARE && lab != null)
|
||||
stringResource(R.string.agent_prepare_progress, lab.permille / 10, clock(lab.etaSeconds.toLong().coerceAtLeast(0)))
|
||||
else AgentSetup.detail[step] ?: hint
|
||||
val detail = when {
|
||||
step == Step.PREPARE && lab != null ->
|
||||
stringResource(R.string.agent_prepare_progress, lab.permille / 10, clock(lab.etaSeconds.toLong().coerceAtLeast(0)))
|
||||
keyed && status == Status.DONE && !AgentSetup.keySaved -> stringResource(R.string.agent_step_free_models)
|
||||
else -> AgentSetup.detail[step] ?: hint
|
||||
}
|
||||
// Shown while the sign-in is pending, so it is still there after a trip to the browser for the key.
|
||||
val pending = (status == Status.TODO || status == Status.FAILED) && AgentSetup.status[Step.INSTALL] == Status.DONE
|
||||
val showKey = keyed && (keyOpen || pending) && status != Status.WORKING
|
||||
var key by remember(harness.id) { mutableStateOf("") }
|
||||
CheckRow(
|
||||
when (status) {
|
||||
Status.DONE -> CheckState.OK
|
||||
Status.WORKING, Status.UNKNOWN -> CheckState.BUSY
|
||||
Status.TODO, Status.FAILED -> CheckState.WARN
|
||||
},
|
||||
title, detail, divider = index < steps.lastIndex,
|
||||
title, detail, divider = index < steps.lastIndex && !showKey,
|
||||
) {
|
||||
val blocked = (step in setOf(Step.SIGN_IN, Step.GITHUB, Step.BUILD_TOOLS) && AgentSetup.status[Step.INSTALL] != Status.DONE) ||
|
||||
(step == Step.PREPARE && AgentSetup.status[Step.BUILD_TOOLS] != Status.DONE)
|
||||
val openKey = {
|
||||
keyOpen = true
|
||||
AgentSetup.run(context, step)
|
||||
}
|
||||
if ((status == Status.TODO || status == Status.FAILED) && !blocked) {
|
||||
val label = stringResource(if (status == Status.FAILED) R.string.agent_setup_retry else action(step))
|
||||
val run = { if (step == Step.CONNECTION) pair(context) else AgentSetup.run(context, step) }
|
||||
if (step.required) PrimaryButton(label, compact = true, onClick = run) else SecondaryButton(label, compact = true, onClick = run)
|
||||
val run = { if (step == Step.CONNECTION) pair(context) else if (keyed) openKey() else AgentSetup.run(context, step) }
|
||||
Row(horizontalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||
if (keyed && harness.free) SecondaryButton(stringResource(R.string.agent_action_free), compact = true) { AgentSetup.useFree(context) }
|
||||
if (step.required) PrimaryButton(label, compact = true, onClick = run) else SecondaryButton(label, compact = true, onClick = run)
|
||||
}
|
||||
} else if (keyed && status == Status.DONE && !AgentSetup.keySaved && !keyOpen) {
|
||||
SecondaryButton(stringResource(R.string.agent_action_add_key), compact = true, onClick = openKey)
|
||||
}
|
||||
}
|
||||
if (showKey) {
|
||||
Row(
|
||||
verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(10.dp),
|
||||
modifier = Modifier.fillMaxWidth().padding(start = 56.dp, end = 14.dp, bottom = 10.dp),
|
||||
) {
|
||||
Box(Modifier.weight(1f)) { ToolsField(key, { key = it.trim() }, stringResource(R.string.agent_key_hint), "agent-key") }
|
||||
PrimaryButton(stringResource(R.string.agent_key_save), enabled = key.isNotBlank(), compact = true) {
|
||||
keyOpen = false
|
||||
AgentSetup.saveKey(context, key)
|
||||
key = ""
|
||||
}
|
||||
}
|
||||
if (index < steps.lastIndex) Box(Modifier.fillMaxWidth().height(1.dp).background(pal.line))
|
||||
}
|
||||
}
|
||||
}
|
||||
Row(verticalAlignment = Alignment.CenterVertically, modifier = Modifier.fillMaxWidth().padding(horizontal = 2.dp)) {
|
||||
@@ -183,6 +217,7 @@ private fun StorageCard() {
|
||||
private fun storageTitle(item: AgentStorage.Item) = when (item) {
|
||||
AgentStorage.Item.CLAUDE_CODE -> R.string.agent_storage_claude
|
||||
AgentStorage.Item.CODEX -> R.string.agent_storage_codex
|
||||
AgentStorage.Item.OPENCODE -> R.string.agent_storage_opencode
|
||||
AgentStorage.Item.BUILD_TOOLS -> R.string.agent_step_build
|
||||
AgentStorage.Item.SOURCE -> R.string.agent_storage_source
|
||||
AgentStorage.Item.CACHES -> R.string.agent_storage_caches
|
||||
@@ -195,10 +230,10 @@ private fun storageWarning(item: AgentStorage.Item) = when (item) {
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun labels(step: Step, harness: String): Pair<String, String> = when (step) {
|
||||
private fun labels(step: Step, harness: String, keyed: Boolean = false): Pair<String, String> = when (step) {
|
||||
Step.CONNECTION -> stringResource(R.string.agent_step_connection) to stringResource(R.string.agent_step_connection_hint)
|
||||
Step.INSTALL -> stringResource(R.string.agent_step_install, harness) to stringResource(R.string.agent_step_install_hint)
|
||||
Step.SIGN_IN -> stringResource(R.string.agent_step_sign_in, harness) to stringResource(R.string.agent_step_sign_in_hint)
|
||||
Step.SIGN_IN -> stringResource(R.string.agent_step_sign_in, harness) to stringResource(if (keyed) R.string.agent_step_sign_in_key_hint else R.string.agent_step_sign_in_hint)
|
||||
Step.GITHUB -> stringResource(R.string.agent_step_github) to stringResource(R.string.agent_step_github_hint)
|
||||
Step.BUILD_TOOLS -> stringResource(R.string.agent_step_build) to stringResource(R.string.agent_step_build_hint)
|
||||
Step.PREPARE -> stringResource(R.string.agent_step_prepare) to stringResource(R.string.agent_step_prepare_hint)
|
||||
|
||||
@@ -37,6 +37,11 @@ internal fun DroidDeckHudSettings(host: MenuHost, a: DrawerActions, track: (Stri
|
||||
DroidDeckHudSize.STRIP to stringResource(R.string.hud_size_strip),
|
||||
),
|
||||
size, chipModifier = track("hud-size")) { a.onHudSetting("hudSize", it.token) }
|
||||
ChoiceRow(host, "hud-hold", stringResource(R.string.hud_hold), null,
|
||||
listOf("collapse" to stringResource(R.string.hud_hold_collapse),
|
||||
DroidDeckHudConfig.HOLD_LOCKS to stringResource(R.string.hud_hold_lock)),
|
||||
if (cfg["hudHold"] == DroidDeckHudConfig.HOLD_LOCKS) DroidDeckHudConfig.HOLD_LOCKS else "collapse",
|
||||
chipModifier = track("hud-hold")) { a.onHudSetting("hudHold", it) }
|
||||
ToggleRow(host, "hud-locked", stringResource(R.string.hud_locked), stringResource(R.string.hud_locked_hint), on("hudLocked"),
|
||||
chipModifier = track("hud-locked")) { a.onHudSetting("hudLocked", flag(it)) }
|
||||
ToggleRow(host, "hud-snap", stringResource(R.string.hud_snap), stringResource(R.string.hud_snap_hint), on("hudSnap"),
|
||||
|
||||
@@ -47,7 +47,7 @@ import androidx.compose.foundation.relocation.bringIntoViewRequester
|
||||
import androidx.compose.foundation.verticalScroll
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.outlined.Apps
|
||||
import androidx.compose.material.icons.outlined.AutoAwesome
|
||||
import androidx.compose.material.icons.outlined.Terminal
|
||||
import androidx.compose.material.icons.outlined.DesktopWindows
|
||||
import androidx.compose.material.icons.outlined.Layers
|
||||
import androidx.compose.material.icons.outlined.LocalMall
|
||||
@@ -197,7 +197,7 @@ internal fun railLabelIcon(key: String): Pair<Int, ImageVector> = when (key) {
|
||||
"stores" -> R.string.rail_stores to Icons.Outlined.LocalMall
|
||||
"desktop" -> R.string.rail_desktop to Icons.Outlined.DesktopWindows
|
||||
"components" -> R.string.rail_components to Icons.Outlined.Layers
|
||||
"agent" -> R.string.rail_agent to Icons.Outlined.AutoAwesome
|
||||
"agent" -> R.string.rail_agent to Icons.Outlined.Terminal
|
||||
"android-apps" -> R.string.rail_apps to Icons.Outlined.Apps
|
||||
"setup" -> R.string.rail_setup to Icons.Outlined.Tune
|
||||
NavTabs.MORE -> R.string.rail_more to Icons.Outlined.MoreHoriz
|
||||
|
||||
@@ -911,15 +911,7 @@ internal fun GameSettingsMenus(host: MenuHost, game: com.droiddeck.launcher.fron
|
||||
val ready = current != null && !state.saving
|
||||
val launcher = game.library == com.droiddeck.launcher.frontend.Library.EPIC_LAUNCHER
|
||||
fun save(change: (android.content.Context) -> com.droiddeck.launcher.core.GameEnvironment.Config?) = state.save(change)
|
||||
var controlsProfile by remember(scope) { mutableStateOf(com.droiddeck.launcher.input.GameInputControls.profile(appContext, scope)) }
|
||||
val controlsKey = "game-settings-controls"
|
||||
val key = GAME_SETTINGS_MENU
|
||||
val controlsMenuOpen = host.open == key || host.open == controlsKey
|
||||
val inputLibrary by androidx.compose.runtime.produceState<com.droiddeck.launcher.input.InputLibrary?>(null, controlsMenuOpen) {
|
||||
value = if (controlsMenuOpen) kotlinx.coroutines.withContext(kotlinx.coroutines.Dispatchers.IO) {
|
||||
com.droiddeck.launcher.input.InputLibraries.read(appContext)
|
||||
} else null
|
||||
}
|
||||
val fexKey = "game-settings-fex"
|
||||
val syncKey = "game-settings-sync"
|
||||
val syncLabels = mapOf(
|
||||
@@ -986,13 +978,10 @@ internal fun GameSettingsMenus(host: MenuHost, game: com.droiddeck.launcher.fron
|
||||
trailing = { Text("›", fontSize = 16.sp, color = colors.onSurfaceVariant) },
|
||||
) { host.open = syncKey }
|
||||
}
|
||||
MenuItem(stringResource(R.string.community_game_controls), checked = false,
|
||||
detail = inputLibrary?.profiles?.firstOrNull { it.id == controlsProfile }?.name ?: useDefault) { host.open = controlsKey }
|
||||
MenuItem(stringResource(R.string.game_settings_default), checked = false, enabled = ready,
|
||||
detail = stringResource(R.string.game_settings_default_detail)) {
|
||||
save {
|
||||
val failure = runCatching { com.droiddeck.launcher.session.GameProfileManager.reset(it, scope) }.exceptionOrNull()
|
||||
if (failure == null) controlsProfile = null
|
||||
com.droiddeck.launcher.stores.StoresState.post {
|
||||
android.widget.Toast.makeText(
|
||||
it,
|
||||
@@ -1004,20 +993,6 @@ internal fun GameSettingsMenus(host: MenuHost, game: com.droiddeck.launcher.fron
|
||||
}
|
||||
}
|
||||
}
|
||||
AnchoredMenu(host.open == controlsKey, onDismiss = { if (host.open == controlsKey) host.open = null },
|
||||
title = stringResource(R.string.community_game_controls)) { first ->
|
||||
MenuItem(useDefault, checked = controlsProfile == null, focusRequester = first) {
|
||||
runCatching { com.droiddeck.launcher.input.GameInputControls.set(appContext, scope, null) }
|
||||
.onSuccess { controlsProfile = null; host.open = key }
|
||||
.onFailure { android.widget.Toast.makeText(appContext, it.message, android.widget.Toast.LENGTH_SHORT).show() }
|
||||
}
|
||||
for (profile in inputLibrary?.profiles.orEmpty()) MenuItem(profile.name, checked = profile.id == controlsProfile,
|
||||
detail = stringResource(R.string.community_game_controls_hint)) {
|
||||
runCatching { com.droiddeck.launcher.input.GameInputControls.set(appContext, scope, profile.id) }
|
||||
.onSuccess { controlsProfile = profile.id; host.open = key }
|
||||
.onFailure { android.widget.Toast.makeText(appContext, it.message, android.widget.Toast.LENGTH_SHORT).show() }
|
||||
}
|
||||
}
|
||||
AnchoredMenu(host.open == resKey, onDismiss = { if (host.open == resKey) host.open = null }, title = stringResource(R.string.game_res_title)) { first ->
|
||||
MenuItem(matchScreen, checked = resolution == null, enabled = ready, focusRequester = first) { pickResolution(null) }
|
||||
com.droiddeck.launcher.core.GameResolution.scales.forEach { scale ->
|
||||
|
||||
@@ -835,6 +835,7 @@ private fun LaunchTab(game: Library.SteamGame, s: FrontEndState, a: FrontEndActi
|
||||
LaunchSettings(s, a, host, game, hopRail ?: GameRef.key(game))
|
||||
if (canEditSteamLaunchOptions(game, s.shortcutPicker)) {
|
||||
SteamLaunchOptionsPanel(game.appId)
|
||||
SteamInputOverridePanel(game.appId)
|
||||
}
|
||||
val folder = game.gameFiles
|
||||
if (game.library == Library.ADDED && game.source == Library.ADDED && !s.shortcutPicker && folder != null) ShortcutFields(game, folder)
|
||||
|
||||
@@ -1,202 +0,0 @@
|
||||
package com.droiddeck.launcher.ui
|
||||
|
||||
import android.content.Intent
|
||||
import android.net.Uri
|
||||
import androidx.activity.compose.rememberLauncherForActivityResult
|
||||
import androidx.activity.result.contract.ActivityResultContracts
|
||||
import androidx.compose.foundation.layout.*
|
||||
import androidx.compose.foundation.Image
|
||||
import androidx.compose.ui.graphics.asImageBitmap
|
||||
import androidx.compose.ui.layout.ContentScale
|
||||
import androidx.compose.material3.*
|
||||
import androidx.compose.runtime.*
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.platform.testTag
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.unit.dp
|
||||
import com.droiddeck.launcher.R
|
||||
import com.droiddeck.launcher.input.*
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.coroutines.withContext
|
||||
|
||||
@Composable
|
||||
internal fun InputCommunityPage(library: InputLibrary, profile: String, initialRole: InputRole, initialEntries: List<CommunityControls.Entry>? = null,
|
||||
onInstalled: (InputLibrary) -> Unit) {
|
||||
val context = LocalContext.current
|
||||
var targetProfile by remember { mutableStateOf(profile) }
|
||||
val scope = rememberCoroutineScope()
|
||||
val host = rememberMenuHost()
|
||||
var role by remember { mutableStateOf(initialRole.takeUnless { it == InputRole.PHYSICAL } ?: InputRole.PRIMARY) }
|
||||
var sources by remember { mutableStateOf(ControlSources.read(context)) }
|
||||
var selectedSource by remember { mutableStateOf(sources.first()) }
|
||||
var addingSource by remember { mutableStateOf(false) }
|
||||
var sourceUrl by remember { mutableStateOf("") }
|
||||
var entries by remember { mutableStateOf(initialEntries ?: CommunityControls.bundled(context)) }
|
||||
var busy by remember { mutableStateOf(false) }
|
||||
var status by remember { mutableStateOf<String?>(null) }
|
||||
var pending by remember { mutableStateOf<CommunityControls.Pack?>(null) }
|
||||
var exporting by remember { mutableStateOf<ByteArray?>(null) }
|
||||
var search by remember { mutableStateOf("") }
|
||||
val filtered = remember(entries, search, role) { entries.filter { it.screen.supports(role) &&
|
||||
(search.isBlank() || "${it.name} ${it.author} ${it.game}".contains(search, ignoreCase = true)) } }
|
||||
var page by remember(selectedSource.id, entries, search, role) { mutableIntStateOf(0) }
|
||||
val pageCount = ((filtered.size + 11) / 12).coerceAtLeast(1)
|
||||
val pageEntries = filtered.drop(page * 12).take(12)
|
||||
val previews = remember(selectedSource.id, pageEntries) { mutableStateMapOf<String, android.graphics.Bitmap>() }
|
||||
LaunchedEffect(previews, pageEntries) {
|
||||
for (entry in pageEntries) {
|
||||
if (entry.preview == null || entry.key in previews) continue
|
||||
var decoded: android.graphics.Bitmap? = null
|
||||
try {
|
||||
withContext(Dispatchers.IO) { decoded = runCatching { CommunityControls.preview(context, entry) }.getOrNull() }
|
||||
decoded?.let { previews[entry.key] = it; decoded = null }
|
||||
} finally { decoded?.recycle() }
|
||||
}
|
||||
}
|
||||
fun task(action: suspend () -> Unit) {
|
||||
if (busy) return
|
||||
busy = true
|
||||
status = null
|
||||
scope.launch {
|
||||
try { action() } catch (e: kotlinx.coroutines.CancellationException) { throw e }
|
||||
catch (e: Exception) { status = e.message ?: context.getString(R.string.community_failed) }
|
||||
finally { busy = false }
|
||||
}
|
||||
}
|
||||
fun load(source: ControlSources.Source) {
|
||||
task {
|
||||
val remote = withContext(Dispatchers.IO) { CommunityControls.fetchCatalog(source) }
|
||||
val bundled = if (source.id == ControlSources.DROIDDECK.id) CommunityControls.bundled(context) else emptyList()
|
||||
entries = (remote + bundled).distinctBy { it.path }
|
||||
status = context.getString(R.string.community_refreshed)
|
||||
}
|
||||
}
|
||||
val importer = rememberLauncherForActivityResult(ActivityResultContracts.OpenDocument()) { uri ->
|
||||
if (uri != null) task {
|
||||
pending = withContext(Dispatchers.IO) {
|
||||
val bytes = requireNotNull(context.contentResolver.openInputStream(uri)).use { CommunityControls.readLimited(it, 32 * 1024 * 1024) }
|
||||
CommunityControls.importFile(context, bytes, requireNotNull(library.layout(targetProfile, role)),
|
||||
library.preset(library.profile(targetProfile).binding(role)))
|
||||
}
|
||||
}
|
||||
}
|
||||
val exporter = rememberLauncherForActivityResult(ActivityResultContracts.CreateDocument("application/zip")) { uri ->
|
||||
val bytes = exporting
|
||||
exporting = null
|
||||
if (uri != null && bytes != null) task {
|
||||
withContext(Dispatchers.IO) {
|
||||
requireNotNull(context.contentResolver.openOutputStream(uri, "wt")).use { it.write(bytes) }
|
||||
}
|
||||
status = context.getString(R.string.community_exported)
|
||||
}
|
||||
}
|
||||
InputHint(stringResource(R.string.community_description))
|
||||
SettingsGroup(stringResource(R.string.community_sources)) {
|
||||
ChoiceRow(host, "community-source", stringResource(R.string.community_source), null,
|
||||
sources.map { it.id to it.name }, selectedSource.id) { id ->
|
||||
if (!busy) {
|
||||
selectedSource = sources.first { it.id == id }
|
||||
entries = if (id == ControlSources.DROIDDECK.id) CommunityControls.bundled(context) else emptyList()
|
||||
load(selectedSource)
|
||||
}
|
||||
}
|
||||
PadTextButton(enabled = !busy, onClick = { sourceUrl = ""; addingSource = true }, modifier = Modifier.padding(8.dp).testTag("community-add-source")) {
|
||||
Text(stringResource(R.string.community_add_source))
|
||||
}
|
||||
if (!selectedSource.builtIn) PadTextButton(enabled = !busy, onClick = { task {
|
||||
ControlSources.remove(context, selectedSource)
|
||||
sources = ControlSources.read(context)
|
||||
selectedSource = sources.first()
|
||||
entries = CommunityControls.bundled(context)
|
||||
} }, modifier = Modifier.padding(8.dp)) { Text(stringResource(R.string.community_remove_source)) }
|
||||
}
|
||||
SettingsGroup(stringResource(R.string.community_target)) {
|
||||
ChoiceRow(host, "community-profile", stringResource(R.string.input_profile), null,
|
||||
library.profiles.map { it.id to it.name }, targetProfile) { if (!busy) targetProfile = it }
|
||||
ChoiceRow(host, "community-screen", stringResource(R.string.community_screen), null,
|
||||
listOf(InputRole.PRIMARY, InputRole.SECONDARY).map { it to roleLabel(it) }, role) { if (!busy) role = it }
|
||||
}
|
||||
SettingsGroup(stringResource(R.string.community_title)) {
|
||||
OutlinedTextField(search, { search = it.take(160) }, singleLine = true,
|
||||
label = { Text(stringResource(R.string.community_search)) }, modifier = Modifier.fillMaxWidth().padding(12.dp))
|
||||
for (entry in pageEntries) {
|
||||
InputNavigationRow(entry.name, listOf(entry.author, entry.game, entry.license).filter { it.isNotEmpty() }.joinToString(" · "),
|
||||
Modifier.testTag("community-pack-${entry.path}"), leading = {
|
||||
previews[entry.key]?.let { Image(it.asImageBitmap(), null, Modifier.width(112.dp).height(76.dp).testTag("community-preview-${entry.path}"), contentScale = ContentScale.Fit) }
|
||||
}) {
|
||||
task { pending = withContext(Dispatchers.IO) { CommunityControls.download(context, entry, library.layout(targetProfile, role),
|
||||
library.preset(library.profile(targetProfile).binding(role))) } }
|
||||
}
|
||||
}
|
||||
if (pageCount > 1) Row(Modifier.fillMaxWidth().padding(8.dp), horizontalArrangement = Arrangement.SpaceBetween) {
|
||||
PadTextButton(enabled = page > 0 && !busy, onClick = { page-- }, modifier = Modifier.testTag("community-previous")) { Text(stringResource(R.string.community_previous)) }
|
||||
Text(stringResource(R.string.community_page, page + 1, pageCount), Modifier.align(androidx.compose.ui.Alignment.CenterVertically))
|
||||
PadTextButton(enabled = page + 1 < pageCount && !busy, onClick = { page++ }, modifier = Modifier.testTag("community-next")) { Text(stringResource(R.string.community_next)) }
|
||||
}
|
||||
if (filtered.isEmpty())
|
||||
InputHint(stringResource(R.string.community_empty))
|
||||
PadTextButton(enabled = !busy, onClick = { load(selectedSource) }, modifier = Modifier.padding(8.dp)) { Text(stringResource(R.string.community_refresh)) }
|
||||
PadTextButton(enabled = !busy, onClick = { importer.launch(arrayOf("application/zip", "application/octet-stream", "application/x-zip-compressed")) },
|
||||
modifier = Modifier.padding(8.dp).testTag("community-import")) { Text(stringResource(R.string.community_import)) }
|
||||
}
|
||||
SettingsGroup(stringResource(R.string.community_share)) {
|
||||
InputHint(stringResource(R.string.community_submit_hint))
|
||||
val layout = library.layout(targetProfile, role)
|
||||
if (layout?.editable == true) PadTextButton(enabled = !busy, onClick = { task {
|
||||
exporting = withContext(Dispatchers.IO) { CommunityControls.export(context, layout, library.preset(library.profile(targetProfile).binding(role))) }
|
||||
exporter.launch(layout.name.replace(Regex("[^A-Za-z0-9_-]"), "_").take(60) + ".ddcontrols.zip")
|
||||
} }, modifier = Modifier.padding(8.dp).testTag("community-export")) { Text(stringResource(R.string.community_export)) }
|
||||
if (layout?.editable == true && layout.elements.any { it.image.isNotEmpty() || it.stickImage.isNotEmpty() })
|
||||
PadTextButton(enabled = !busy, onClick = { task {
|
||||
exporting = withContext(Dispatchers.IO) { ArmsControlSkins.export(context, layout,
|
||||
library.preset(library.profile(targetProfile).binding(role))) }
|
||||
exporter.launch(layout.name.replace(Regex("[^A-Za-z0-9_-]"), "_").take(60) + ".skin.zip")
|
||||
} }, modifier = Modifier.padding(8.dp).testTag("community-export-skin")) { Text(stringResource(R.string.community_export_skin)) }
|
||||
PadTextButton(onClick = {
|
||||
runCatching { context.startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(selectedSource.submit ?: selectedSource.manifest))) }
|
||||
.onFailure { status = context.getString(R.string.community_failed) }
|
||||
}, modifier = Modifier.padding(8.dp)) { Text(stringResource(R.string.community_submit)) }
|
||||
}
|
||||
if (busy) LinearProgressIndicator(Modifier.fillMaxWidth().padding(12.dp))
|
||||
status?.let { InputHint(it) }
|
||||
if (addingSource) AlertDialog(onDismissRequest = { if (!busy) addingSource = false },
|
||||
title = { Text(stringResource(R.string.community_add_source)) }, text = { Column {
|
||||
Text(stringResource(R.string.community_source_hint))
|
||||
OutlinedTextField(sourceUrl, { sourceUrl = it.take(2048) }, singleLine = true,
|
||||
label = { Text(stringResource(R.string.community_source_url)) }, modifier = Modifier.testTag("community-source-url"))
|
||||
status?.let { Text(it) }
|
||||
} }, confirmButton = {
|
||||
PadTextButton(enabled = !busy && sourceUrl.isNotBlank(), onClick = { task {
|
||||
val (source, remote) = withContext(Dispatchers.IO) {
|
||||
var failure: Exception? = null
|
||||
var found: Pair<ControlSources.Source, List<CommunityControls.Entry>>? = null
|
||||
for (candidate in ControlSources.candidates(sourceUrl)) {
|
||||
try { found = candidate to CommunityControls.fetchCatalog(candidate); break }
|
||||
catch (e: Exception) { failure = e }
|
||||
}
|
||||
found ?: throw (failure ?: IllegalArgumentException(context.getString(R.string.community_failed)))
|
||||
}
|
||||
ControlSources.add(context, source)
|
||||
sources = ControlSources.read(context)
|
||||
selectedSource = sources.first { it.id == source.id }
|
||||
entries = remote
|
||||
addingSource = false
|
||||
} }) { Text(stringResource(R.string.community_connect)) }
|
||||
}, dismissButton = { PadTextButton(enabled = !busy, onClick = { addingSource = false }) { Text(stringResource(R.string.common_cancel)) } })
|
||||
pending?.let { pack ->
|
||||
AlertDialog(onDismissRequest = { if (!busy) pending = null }, title = { Text(pack.layout.name) },
|
||||
text = { Column(verticalArrangement = Arrangement.spacedBy(12.dp)) {
|
||||
InputLayoutThumbnail(pack.layout, role, pack.images, Modifier.fillMaxWidth().height(180.dp))
|
||||
Text(stringResource(R.string.community_apply_hint, pack.layout.elements.size, library.profile(targetProfile).name, roleLabel(role)))
|
||||
} }, confirmButton = {
|
||||
PadTextButton(enabled = !busy && pack.layout.supports(role), onClick = { task {
|
||||
val installed = withContext(Dispatchers.IO) { CommunityControls.install(context, pack, targetProfile, role) }
|
||||
onInstalled(installed)
|
||||
pending = null
|
||||
status = context.getString(R.string.community_installed)
|
||||
} }) { Text(stringResource(R.string.community_apply)) }
|
||||
}, dismissButton = { PadTextButton(enabled = !busy, onClick = { pending = null }) { Text(stringResource(R.string.common_cancel)) } })
|
||||
}
|
||||
}
|
||||
@@ -36,17 +36,13 @@ internal fun InputLayoutRow(layout: SavedInputLayout, role: InputRole, detail: S
|
||||
}
|
||||
|
||||
@Composable
|
||||
internal fun InputLayoutThumbnail(layout: SavedInputLayout, role: InputRole, images: Map<String, ByteArray> = emptyMap(),
|
||||
modifier: Modifier = Modifier.width(112.dp).height(76.dp)) {
|
||||
val bitmaps = remember(images) { images.mapValues { (_, bytes) -> android.graphics.BitmapFactory.decodeByteArray(bytes, 0, bytes.size) } }
|
||||
key(bitmaps) {
|
||||
AndroidView(factory = { InputLayoutPreviewView(it, bitmaps.filterValues { it != null }.mapValues { it.value!! }) },
|
||||
modifier = modifier.testTag("layout-preview-${layout.id}"), update = { it.update(layout, role) })
|
||||
}
|
||||
internal fun InputLayoutThumbnail(layout: SavedInputLayout, role: InputRole) {
|
||||
AndroidView(factory = { InputLayoutPreviewView(it) }, modifier = Modifier.width(112.dp).height(76.dp).testTag("layout-preview-${layout.id}"),
|
||||
update = { it.update(layout, role) })
|
||||
}
|
||||
|
||||
internal class InputLayoutPreviewView(context: Context, images: Map<String, android.graphics.Bitmap> = emptyMap()) : View(context) {
|
||||
private val renderer = InputSurfaceView(context, previewImages = images)
|
||||
internal class InputLayoutPreviewView(context: Context) : View(context) {
|
||||
private val renderer = InputSurfaceView(context)
|
||||
private var sourceHeight = 563
|
||||
fun update(layout: SavedInputLayout, role: InputRole) {
|
||||
sourceHeight = if (role == InputRole.PRIMARY) 563 else 870
|
||||
|
||||
@@ -33,10 +33,7 @@ internal fun InputQuickSettings(host: MenuHost, desktop: Boolean, onChanged: (In
|
||||
runCatching { InputLibraries.update(context, change) }.onSuccess { library = it; onChanged(role) }
|
||||
.onFailure { failure = it.message ?: context.getString(R.string.input_save_failed) }
|
||||
}
|
||||
val game = (context.findActivity() as? com.droiddeck.launcher.SessionActivity)?.inputGameScope()
|
||||
fun effective(value: InputLibrary) = GameInputControls.resolve(context, value, desktop, game)
|
||||
val resolved = effective(library)
|
||||
val selection = resolved.selection(desktop)
|
||||
val selection = library.selection(desktop)
|
||||
val mixed = selection.parts.isNotEmpty()
|
||||
val active = library.profile(library.activeId(desktop))
|
||||
val profiles = listOf(InputProfiles.AUTO to stringResource(R.string.input_quick_auto, if (desktop) library.profile(library.desktop).name else library.profile(library.steam).name)) +
|
||||
@@ -64,7 +61,7 @@ internal fun InputQuickSettings(host: MenuHost, desktop: Boolean, onChanged: (In
|
||||
if (role == InputRole.PHYSICAL) binding.physical
|
||||
else !binding.physical && library.layouts.any { it.id == binding.layoutId && it.supports(role) }
|
||||
}.map { it.id to it.name }
|
||||
ChoiceRow(host, "input-part-${role.name}", roleLabel(role), null, options, resolved.activePart(desktop, role).bindings,
|
||||
ChoiceRow(host, "input-part-${role.name}", roleLabel(role), null, options, library.activePart(desktop, role).bindings,
|
||||
chipModifier = track("input-part-${role.name}")) { id -> update(role) { it.selectPart(desktop, role, id) } }
|
||||
}
|
||||
if (mixed) SecondaryButton(stringResource(R.string.input_save_combination)) { naming = true }
|
||||
@@ -76,7 +73,7 @@ internal fun InputQuickSettings(host: MenuHost, desktop: Boolean, onChanged: (In
|
||||
var name by remember { mutableStateOf("") }
|
||||
AlertDialog(onDismissRequest = { naming = false }, title = { Text(stringResource(R.string.input_save_combination)) },
|
||||
text = { OutlinedTextField(name, { name = it.take(80) }, singleLine = true, label = { Text(stringResource(R.string.input_name)) }) },
|
||||
confirmButton = { PadTextButton(enabled = name.isNotBlank(), onClick = { update(null) { effective(it).saveSelection(desktop, name) }; naming = false }) { Text(stringResource(R.string.gesture_save_changes)) } },
|
||||
confirmButton = { PadTextButton(enabled = name.isNotBlank(), onClick = { update(null) { it.saveSelection(desktop, name) }; naming = false }) { Text(stringResource(R.string.gesture_save_changes)) } },
|
||||
dismissButton = { PadTextButton(onClick = { naming = false }) { Text(stringResource(R.string.common_cancel)) } })
|
||||
}
|
||||
failure?.let { message -> AlertDialog(onDismissRequest = { failure = null }, title = { Text(stringResource(R.string.input_save_failed)) },
|
||||
|
||||
@@ -65,7 +65,7 @@ private fun InputSettingsPane(onBack: () -> Unit, onChanged: () -> Unit) {
|
||||
}
|
||||
}
|
||||
|
||||
private enum class InputPage { HOME, PROFILE, SOURCE, LAYOUTS, REUSE, COMMUNITY }
|
||||
private enum class InputPage { HOME, PROFILE, SOURCE, LAYOUTS, REUSE }
|
||||
private data class InputBindingEdit(val preset: String, val control: InputControl, val element: InputSurfaceElement? = null, val key: PhysicalInputKey? = null, val click: Boolean = false)
|
||||
private data class InputNameRequest(val title: Int, val initial: String, val sources: List<Pair<String, String>> = emptyList(),
|
||||
val source: String = "", val offerSharing: Boolean = false, val save: (String, String, Boolean) -> Unit)
|
||||
@@ -85,7 +85,6 @@ private fun InputSettingsContent(onBack: () -> Unit, onChanged: () -> Unit, embe
|
||||
val host = rememberMenuHost()
|
||||
var library by remember { mutableStateOf(InputLibraries.read(context)) }
|
||||
var page by remember { mutableStateOf(InputPage.HOME) }
|
||||
var communityBack by remember { mutableStateOf(InputPage.HOME) }
|
||||
var bindingsTab by remember { mutableIntStateOf(0) }
|
||||
var profileId by remember { mutableStateOf(InputProfile.GAME) }
|
||||
var role by remember { mutableStateOf(InputRole.PHYSICAL) }
|
||||
@@ -105,13 +104,12 @@ private fun InputSettingsContent(onBack: () -> Unit, onChanged: () -> Unit, embe
|
||||
var oscMode by remember { mutableStateOf(SessionPrefs.oscMode(context)) }
|
||||
fun update(change: (InputLibrary) -> InputLibrary): Boolean = runCatching { InputLibraries.update(context, change) }
|
||||
.onSuccess { library = it; onChanged() }.onFailure { error = it.message ?: context.getString(R.string.input_save_failed) }.isSuccess
|
||||
fun go(next: InputPage) { if (next == InputPage.COMMUNITY) communityBack = page; page = next; host.open = null }
|
||||
fun go(next: InputPage) { page = next; host.open = null }
|
||||
fun back() {
|
||||
when {
|
||||
edit != null -> edit = null
|
||||
page == InputPage.HOME -> onBack()
|
||||
page == InputPage.PROFILE -> go(InputPage.HOME)
|
||||
page == InputPage.COMMUNITY -> go(communityBack)
|
||||
page == InputPage.SOURCE -> go(InputPage.PROFILE)
|
||||
else -> go(InputPage.SOURCE)
|
||||
}
|
||||
@@ -193,7 +191,6 @@ private fun InputSettingsContent(onBack: () -> Unit, onChanged: () -> Unit, embe
|
||||
InputPage.SOURCE -> roleLabel(role)
|
||||
InputPage.LAYOUTS -> stringResource(R.string.input_saved_layouts)
|
||||
InputPage.REUSE -> stringResource(R.string.input_use_settings_from)
|
||||
InputPage.COMMUNITY -> stringResource(R.string.community_title)
|
||||
}, eyebrow = when (page) {
|
||||
InputPage.SOURCE -> profile.name
|
||||
InputPage.LAYOUTS, InputPage.REUSE -> "${profile.name} · ${roleLabel(role)}"
|
||||
@@ -201,12 +198,7 @@ private fun InputSettingsContent(onBack: () -> Unit, onChanged: () -> Unit, embe
|
||||
},
|
||||
onBack = ::back, showBack = !(embedded && page == InputPage.HOME), compactLayout = true) {
|
||||
when (page) {
|
||||
InputPage.COMMUNITY -> InputCommunityPage(library, profileId, role) { installed -> library = installed; onChanged() }
|
||||
InputPage.HOME -> {
|
||||
SettingsGroup(stringResource(R.string.community_title)) {
|
||||
InputNavigationRow(stringResource(R.string.community_title), stringResource(R.string.community_home_hint),
|
||||
Modifier.testTag("input-community")) { go(InputPage.COMMUNITY) }
|
||||
}
|
||||
SettingsGroup(stringResource(R.string.input_default_profiles)) {
|
||||
ChoiceRow(host, "auto-desktop", stringResource(R.string.input_desktop_mode), null,
|
||||
library.profiles.map { it.id to it.name }, library.desktop) { id -> update { it.copy(desktop = id) } }
|
||||
@@ -292,7 +284,6 @@ private fun InputSettingsContent(onBack: () -> Unit, onChanged: () -> Unit, embe
|
||||
for (button in layout.quickButtons) ToggleRow(host, "quick-${button.name.lowercase()}", stringResource(quickButtonLabel(button)), null,
|
||||
button !in layout.style.hidden) { on -> update { it.withLayout(layout.withQuickButton(button, on)) } }
|
||||
}
|
||||
InputNavigationRow(stringResource(R.string.community_title), stringResource(R.string.community_home_hint)) { go(InputPage.COMMUNITY) }
|
||||
if (role == InputRole.SECONDARY) InputHint(stringResource(R.string.input_second_screen_enable))
|
||||
}
|
||||
SettingsGroup(stringResource(R.string.input_assign_actions)) {
|
||||
@@ -458,7 +449,7 @@ private fun InputControlGrid(preset: SavedInputBindings, available: List<InputCo
|
||||
}
|
||||
|
||||
@Composable
|
||||
internal fun InputNavigationRow(title: String, detail: String?, modifier: Modifier = Modifier, leading: (@Composable () -> Unit)? = null, onClick: () -> Unit) {
|
||||
private fun InputNavigationRow(title: String, detail: String?, modifier: Modifier = Modifier, leading: (@Composable () -> Unit)? = null, onClick: () -> Unit) {
|
||||
Row(modifier.fillMaxWidth().focusRow(RoundedCornerShape(0.dp), onClick = onClick).heightIn(min = 64.dp).padding(14.dp),
|
||||
verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(12.dp)) {
|
||||
leading?.invoke()
|
||||
@@ -508,6 +499,6 @@ internal fun roleLabel(role: InputRole) = stringResource(when (role) {
|
||||
})
|
||||
|
||||
@Composable
|
||||
internal fun InputHint(text: String) {
|
||||
private fun InputHint(text: String) {
|
||||
Text(text, Modifier.padding(14.dp), style = MaterialTheme.typography.bodyMedium, color = MaterialTheme.colorScheme.onSurfaceVariant)
|
||||
}
|
||||
@@ -51,7 +51,6 @@ class InputSurfaceView(
|
||||
private val inputRole: InputRole = InputRole.SECONDARY,
|
||||
private var surfaceStyle: InputSurfaceStyle = InputSurfaceStyle(),
|
||||
private val haptics: Boolean = inputRole != InputRole.PRIMARY,
|
||||
private val previewImages: Map<String, android.graphics.Bitmap> = emptyMap(),
|
||||
) : FrameLayout(context) {
|
||||
private val content = FrameLayout(context)
|
||||
private val elementSources = ArrayList<InputSurfaceSource>()
|
||||
@@ -327,7 +326,13 @@ class InputSurfaceView(
|
||||
protected fun textColor(lit: Boolean) = if (lit) Color.WHITE else tint?.let { light(it, 210, 0.75f) } ?: TEXT
|
||||
}
|
||||
|
||||
private fun imageBitmap(name: String): android.graphics.Bitmap? = previewImages[name] ?: InputButtonImages.file(context, name)?.let { file ->
|
||||
private inner class HoldButton(context: Context, private val element: InputSurfaceElement, private val source: InputSurfaceSource?) : Surface(context) {
|
||||
private var down = false
|
||||
private val pointers = HashSet<Int>()
|
||||
val round get() = element.buttonShape == InputButtonShape.CIRCLE
|
||||
val gamepad get() = round || element.buttonShape == InputButtonShape.PILL
|
||||
private val symbol = InputButtonIcons.drawable(context, element.icon)
|
||||
private val bitmap = InputButtonImages.file(context, element.image)?.let { file ->
|
||||
val size = BitmapFactory.Options().apply { inJustDecodeBounds = true }
|
||||
BitmapFactory.decodeFile(file.path, size)
|
||||
val options = BitmapFactory.Options().apply {
|
||||
@@ -336,14 +341,6 @@ class InputSurfaceView(
|
||||
}
|
||||
if (file.isFile) BitmapFactory.decodeFile(file.path, options) else null
|
||||
}
|
||||
|
||||
private inner class HoldButton(context: Context, private val element: InputSurfaceElement, private val source: InputSurfaceSource?) : Surface(context) {
|
||||
private var down = false
|
||||
private val pointers = HashSet<Int>()
|
||||
val round get() = element.buttonShape == InputButtonShape.CIRCLE
|
||||
val gamepad get() = round || element.buttonShape == InputButtonShape.PILL
|
||||
private val symbol = InputButtonIcons.drawable(context, element.icon)
|
||||
private val bitmap = imageBitmap(element.image)
|
||||
private val imageRect = RectF()
|
||||
|
||||
override fun onDraw(canvas: Canvas) {
|
||||
@@ -514,17 +511,6 @@ class InputSurfaceView(
|
||||
private var knobY = 0f
|
||||
private val ring = Paint(Paint.ANTI_ALIAS_FLAG).apply { style = Paint.Style.STROKE }
|
||||
private val knob = Paint(Paint.ANTI_ALIAS_FLAG)
|
||||
private val baseImage = imageBitmap(element.image)
|
||||
private val stickImage = imageBitmap(element.stickImage)
|
||||
private val imagePaint = Paint(Paint.ANTI_ALIAS_FLAG or Paint.FILTER_BITMAP_FLAG)
|
||||
private val imageBounds = RectF()
|
||||
|
||||
private fun drawImage(canvas: Canvas, image: android.graphics.Bitmap, x: Float, y: Float, radius: Float) {
|
||||
val scale = min(radius * 2 / image.width, radius * 2 / image.height)
|
||||
imageBounds.set(x - image.width * scale / 2, y - image.height * scale / 2,
|
||||
x + image.width * scale / 2, y + image.height * scale / 2)
|
||||
canvas.drawBitmap(image, null, imageBounds, imagePaint)
|
||||
}
|
||||
|
||||
val adaptive get() = adaptive(element)
|
||||
|
||||
@@ -548,14 +534,6 @@ class InputSurfaceView(
|
||||
val cx = if (touching) originX else centreX()
|
||||
val cy = if (touching) originY else height / 2f
|
||||
val color = tint
|
||||
if (baseImage != null || stickImage != null) {
|
||||
val radius = min(width, height) / 2f - .75f * density
|
||||
if (baseImage != null) drawImage(canvas, baseImage, cx, cy, radius)
|
||||
else { ring.color = LINE; ring.strokeWidth = 2 * density; canvas.drawCircle(cx, cy, radius, ring) }
|
||||
if (stickImage != null) drawImage(canvas, stickImage, cx + knobX, cy + knobY, radius * .46f)
|
||||
else { knob.color = if (touching) ACCENT else KNOB; canvas.drawCircle(cx + knobX, cy + knobY, radius * .46f, knob) }
|
||||
return
|
||||
}
|
||||
if (classic(element) && color != null) {
|
||||
val radius = min(width, height) / 2f - 0.75f * density
|
||||
drawCircle(canvas, cx, cy, radius,
|
||||
|
||||
@@ -83,6 +83,7 @@ class ModeSettings(
|
||||
val forceSsbs: Boolean = false,
|
||||
val syncBackend: String? = null,
|
||||
val picturePosition: String? = null,
|
||||
val integerScaling: Boolean? = null,
|
||||
val stretch16x9: Boolean? = null,
|
||||
val steamClientArch: String? = null,
|
||||
val returnAfterGame: Boolean? = null,
|
||||
@@ -139,6 +140,7 @@ class ModeSettingsActions(
|
||||
val onForceSsbs: (Boolean) -> Unit = {},
|
||||
val onSyncBackend: (String) -> Unit = {},
|
||||
val onPicturePosition: (String) -> Unit = {},
|
||||
val onIntegerScaling: (Boolean) -> Unit = {},
|
||||
val onStretch16x9: (Boolean) -> Unit = {},
|
||||
val onSteamRepair: () -> Unit = {},
|
||||
val onSteamClientArch: (String) -> Unit = {},
|
||||
@@ -242,6 +244,18 @@ fun ModeSheetRows(s: ModeSettings, a: ModeSettingsActions, tab: String, extras:
|
||||
}
|
||||
}
|
||||
SettingsGroup(stringResource(R.string.display_image_scaling)) {
|
||||
s.integerScaling?.let { enabled ->
|
||||
ChoiceRow(
|
||||
host, "integer-scaling",
|
||||
stringResource(R.string.display_integer_scaling),
|
||||
stringResource(R.string.display_integer_scaling_hint),
|
||||
listOf(
|
||||
false to stringResource(R.string.display_scaling_fit),
|
||||
true to stringResource(R.string.display_scaling_integer),
|
||||
),
|
||||
enabled, onPick = a.onIntegerScaling,
|
||||
)
|
||||
}
|
||||
ChoiceRow(
|
||||
host, "upscaler", stringResource(R.string.display_filter), null,
|
||||
SessionPrefs.upscalerChoices(LocalContext.current), s.upscaler,
|
||||
|
||||
@@ -306,12 +306,8 @@ class SecondScreenPresentation(
|
||||
}
|
||||
}
|
||||
|
||||
private fun panelLayout(mode: SecondScreenMode): com.droiddeck.launcher.input.SavedInputLayout? {
|
||||
val desktop = SessionState.mode == SessionService.MODE_DESKTOP
|
||||
return com.droiddeck.launcher.input.GameInputControls.resolve(context,
|
||||
com.droiddeck.launcher.input.InputLibraries.read(context), desktop, sessionActivity.inputGameScope())
|
||||
.panelLayout(desktop, mode.panel(context))
|
||||
}
|
||||
private fun panelLayout(mode: SecondScreenMode) = com.droiddeck.launcher.input.InputLibraries.read(context)
|
||||
.panelLayout(SessionState.mode == SessionService.MODE_DESKTOP, mode.panel(context))
|
||||
|
||||
private fun bar(mode: SecondScreenMode) {
|
||||
val first = barModel(mode) ?: return
|
||||
|
||||
@@ -244,6 +244,8 @@ class DrawerActions(
|
||||
val fexPreset: String,
|
||||
val upscaler: Int = 0,
|
||||
val upscaleSharpness: Int = 75,
|
||||
val integerScaling: Boolean = false,
|
||||
val onIntegerScaling: (Boolean) -> Unit = {},
|
||||
val effects: ScreenEffects = ScreenEffects.OFF,
|
||||
val screenEffectsTarget: String = "auto",
|
||||
val screenEffectsTargets: List<Pair<String, String>> = emptyList(),
|
||||
@@ -275,6 +277,9 @@ class DrawerActions(
|
||||
val onFrameGenReset: () -> Unit = {},
|
||||
val fpsLimit: Int = 0,
|
||||
val onFpsLimit: (Int) -> Unit = {},
|
||||
val blackFrameInsertion: Boolean = false,
|
||||
val blackFrameInsertionAvailable: Boolean = false,
|
||||
val onBlackFrameInsertion: (Boolean) -> Unit = {},
|
||||
val onImportLossless: () -> Unit,
|
||||
val onKeyboard: () -> Unit,
|
||||
val onHardwareKeyboard: () -> Unit,
|
||||
@@ -615,6 +620,16 @@ internal fun SessionDrawer(open: Boolean, requestedPage: SessionDrawerPage, cont
|
||||
onChange = { a.onFpsLimit(if (it <= SessionPrefs.FPS_LIMIT_OFF) 0 else it) })
|
||||
}
|
||||
SettingsGroup(stringResource(R.string.display_image_scaling)) {
|
||||
if (a.steam) SettingsRow(stringResource(R.string.display_integer_scaling), null) {
|
||||
PadTextButton(
|
||||
onClick = { a.onIntegerScaling(!a.integerScaling) }
|
||||
) {
|
||||
Text(stringResource(
|
||||
if (a.integerScaling) R.string.display_scaling_integer
|
||||
else R.string.display_scaling_fit
|
||||
))
|
||||
}
|
||||
}
|
||||
ChoiceRow(host, "upscaler", stringResource(R.string.display_filter), null,
|
||||
SessionPrefs.upscalerChoices(LocalContext.current), a.upscaler,
|
||||
note = stringResource(R.string.display_filter_note),
|
||||
@@ -1107,11 +1122,31 @@ private fun ScreenEffectsGroup(
|
||||
a.onEffects(picked.effects)
|
||||
}
|
||||
}
|
||||
ToggleRow(host, "fxaa", stringResource(R.string.drawer_fxaa), null, e.fxaa, chipModifier = track("fxaa")) { a.onEffects(e.copy(fxaa = it)) }
|
||||
ChoiceRow(host, "antialiasing", stringResource(R.string.drawer_antialiasing), null,
|
||||
listOf(
|
||||
"off" to stringResource(R.string.frame_gen_off),
|
||||
"fxaa" to stringResource(R.string.drawer_fxaa),
|
||||
"smaa" to stringResource(R.string.drawer_smaa),
|
||||
),
|
||||
when (e.aaMode) {
|
||||
ScreenEffects.AA_FXAA -> "fxaa"
|
||||
ScreenEffects.AA_SMAA -> "smaa"
|
||||
else -> "off"
|
||||
}, chipModifier = track("antialiasing")) { mode ->
|
||||
val aaMode = when (mode) {
|
||||
"fxaa" -> ScreenEffects.AA_FXAA
|
||||
"smaa" -> ScreenEffects.AA_SMAA
|
||||
else -> ScreenEffects.AA_OFF
|
||||
}
|
||||
a.onEffects(e.copy(aaMode = aaMode))
|
||||
}
|
||||
ToggleRow(host, "toon", stringResource(R.string.drawer_toon), null, e.toon, chipModifier = track("toon")) { a.onEffects(e.copy(toon = it)) }
|
||||
ToggleRow(host, "crt", stringResource(R.string.drawer_crt), null, e.crt, chipModifier = track("crt")) { a.onEffects(e.copy(crt = it)) }
|
||||
ToggleRow(host, "ntsc", stringResource(R.string.drawer_ntsc), null, e.ntsc, chipModifier = track("ntsc")) { a.onEffects(e.copy(ntsc = it)) }
|
||||
ToggleRow(host, "fake-hdr", stringResource(R.string.drawer_fake_hdr), null, e.hdr, chipModifier = track("fake-hdr")) { a.onEffects(e.copy(hdr = it)) }
|
||||
if (a.blackFrameInsertionAvailable) ToggleRow(host, "bfi", stringResource(R.string.drawer_bfi),
|
||||
stringResource(R.string.drawer_bfi_note), a.blackFrameInsertion,
|
||||
chipModifier = track("bfi"), onChange = a.onBlackFrameInsertion)
|
||||
}
|
||||
val source = remember { MutableInteractionSource() }
|
||||
val hot = source.collectIsFocusedAsState().value || source.collectIsHoveredAsState().value
|
||||
|
||||
@@ -53,6 +53,8 @@ object CompositorHost {
|
||||
WaylandCompositor.nativeSetClockControl(java.io.File(context.filesDir, "${com.droiddeck.launcher.runtime.LinuxRuntime.DIR}/tmp/.bl-clock").path)
|
||||
ownVsyncThread = SessionPrefs.vsyncThread(context)
|
||||
WaylandCompositor.nativeSetRenderOnCommit(SessionPrefs.renderOnCommit(context))
|
||||
blackFrameInsertion = SessionPrefs.blackFrameInsertion(context)
|
||||
WaylandCompositor.nativeSetBlackFrameInsertion(blackFrameInsertion)
|
||||
pace(refreshHz, fpsLimit)
|
||||
if (!SessionState.running) WaylandCompositor.nativeSetOutputSize(outputWidth, outputHeight)
|
||||
if (started) {
|
||||
@@ -72,9 +74,12 @@ object CompositorHost {
|
||||
return true
|
||||
}
|
||||
|
||||
private var blackFrameInsertion = false
|
||||
private var pictureHolds = 0
|
||||
|
||||
private fun pace(refreshHz: Float, fpsLimit: Int) {
|
||||
WaylandCompositor.nativeSetFpsLimit(fpsLimit)
|
||||
WaylandCompositor.nativeSetLayerFrameRate(if (fpsLimit > 0) fpsLimit.toFloat() else refreshHz)
|
||||
WaylandCompositor.nativeSetLayerFrameRate(if (fpsLimit > 0 && !blackFrameInsertion) fpsLimit.toFloat() else refreshHz)
|
||||
WaylandCompositor.nativeSetOutputRefreshRate(refreshHz)
|
||||
SessionState.refreshHz = refreshHz
|
||||
}
|
||||
@@ -84,6 +89,27 @@ object CompositorHost {
|
||||
if (started) pace(refreshHz, fpsLimit)
|
||||
}
|
||||
|
||||
@Synchronized
|
||||
fun setBlackFrameInsertion(on: Boolean, refreshHz: Float, fpsLimit: Int) {
|
||||
blackFrameInsertion = on
|
||||
WaylandCompositor.nativeSetBlackFrameInsertion(on)
|
||||
if (started) pace(refreshHz, fpsLimit)
|
||||
}
|
||||
|
||||
/** Presents only pictures until the matching release; false when nothing is strobing. */
|
||||
@Synchronized
|
||||
fun holdPicture(): Boolean {
|
||||
if (!started || !blackFrameInsertion) return false
|
||||
if (pictureHolds++ == 0) WaylandCompositor.nativeSetPictureHold(true)
|
||||
return true
|
||||
}
|
||||
|
||||
@Synchronized
|
||||
fun releasePicture() {
|
||||
if (pictureHolds == 0) return
|
||||
if (--pictureHolds == 0) WaylandCompositor.nativeSetPictureHold(false)
|
||||
}
|
||||
|
||||
@Synchronized
|
||||
fun resize(surface: Surface, rearm: () -> Unit) {
|
||||
if (!started) return
|
||||
|
||||
@@ -304,7 +304,7 @@ public final class WaylandCompositor {
|
||||
public static native void nativeSetDeband(boolean enabled, int strength);
|
||||
|
||||
public static native void nativeSetScreenEffects(float brightness, float contrast, float gamma, float saturation,
|
||||
boolean fxaa, boolean toon, boolean crt, boolean ntsc);
|
||||
int aaMode, boolean toon, boolean crt, boolean ntsc);
|
||||
|
||||
public static native void nativeSetLookName(String name);
|
||||
|
||||
@@ -321,6 +321,10 @@ public final class WaylandCompositor {
|
||||
|
||||
public static native void nativeSetFpsLimit(int fps);
|
||||
|
||||
public static native void nativeSetBlackFrameInsertion(boolean on);
|
||||
|
||||
public static native void nativeSetPictureHold(boolean on);
|
||||
|
||||
public static native void nativeSetRenderOnCommit(boolean on);
|
||||
|
||||
public static native void nativeSetGpuTurbo(boolean on);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<resources>
|
||||
<string name="steamvr_recovery_title">توقفت رسومات SteamVR</string>
|
||||
<string name="steamvr_recovery_countdown">سيُعاد تشغيل DroidDeck خلال %1$d ثانية لإعادة ضبط الرسومات وإعادة فتح SteamVR. ستُغلق لعبتك الجارية، ولا يمكن استعادة التقدم غير المحفوظ.</string>
|
||||
@@ -357,7 +357,7 @@
|
||||
<string name="mode_return_after_game">العودة إلى DroidDeck بعد اللعبة</string>
|
||||
<string name="mode_return_after_game_hint">عند إغلاق لعبة بدأتها من DroidDeck أو من مشغّل آخر، يُغلَق Steam بشكل سليم (بعد اكتمال الحفظ السحابي) وتعود إلى هناك. عند الإيقاف: تبقى في Steam.</string>
|
||||
<string name="mode_shader_precache">التخزين المسبق للمظلِّلات</string>
|
||||
<string name="mode_shader_precache_hint">ينزّل Steam مظلِّلات مُعدّة مسبقًا لألعابك ويعالجها في الخلفية، فتقلّ التقطّعات في الألعاب. يوفّر الإيقاف البيانات والتخزين والبطارية، وتبني الألعاب المظلِّلات أثناء اللعب بدلًا من ذلك. هو الإعداد نفسه في Steam ضمن التنزيلات > التخزين المسبق للمظلِّلات. يُطبَّق في الجلسة التالية.</string>
|
||||
<string name="mode_shader_precache_hint">ينزّل Steam مظلِّلات مُعدّة مسبقًا لألعابك ويعالجها في الخلفية، فتقلّ التقطّعات في الألعاب. يوفّر الإيقاف البيانات والتخزين والبطارية، وتبني الألعاب المظلِّلات أثناء اللعب بدلًا من ذلك. هو الإعداد نفسه في Steam ضمن التنزيلات > التخزين المسبق للمظلِّلات. يُطبَّق في الجلسة التالية.</string>
|
||||
<string name="mode_steam_repair">إصلاح عميل Steam</string>
|
||||
<string name="mode_steam_repair_hint">يُنزّل عميل Steam مجددًا في المرة التالية التي يبدأ فيها Steam. استخدمه إذا بقي Steam على شاشة التحميل. يتم الاحتفاظ بالألعاب وتسجيل الدخول والإعدادات.</string>
|
||||
<string name="mode_steam_repair_queued">سيتم تنزيل عميل Steam مجددًا في المرة التالية التي يبدأ فيها Steam.</string>
|
||||
@@ -683,6 +683,8 @@
|
||||
<string name="drawer_page_display">العرض</string>
|
||||
<string name="drawer_frame_limit">حد الإطارات</string>
|
||||
<string name="drawer_frame_limit_note">يحدّ هذه اللعبة. تنتقل الشاشة إلى معدل تحديث يقبل القسمة على الحد إن وُجد، وقد تبدو الحدود الأخرى غير منتظمة. تستخدم ألعاب Steam حد الإطارات في Steam ضمن قائمة الوصول السريع.</string>
|
||||
<string name="drawer_bfi">إدراج إطار أسود</string>
|
||||
<string name="drawer_bfi_note">حركة أوضح: يتبع كل إطار تحديث أسود. يتطلب 100 هرتز أو أكثر؛ تعمل اللعبة بنصف معدل التحديث وتبدو أغمق. يتوقف أثناء تشغيل توليد الإطارات.</string>
|
||||
<string name="drawer_page_effects">المؤثرات</string>
|
||||
<string name="drawer_page_controls">عناصر التحكم</string>
|
||||
<string name="drawer_page_components">المكوّنات</string>
|
||||
@@ -716,7 +718,10 @@
|
||||
<string name="hud_size_mega">ضخم</string>
|
||||
<string name="hud_size_strip">شريط</string>
|
||||
<string name="hud_locked">تثبيت في مكانه</string>
|
||||
<string name="hud_locked_hint">اسحب HUD لتحريكه؛ والضغط مطولًا يثبّته أو يلغي تثبيته. أثناء تثبيته، تظل عناصر التحكم على الشاشة الموجودة تحته تعمل.</string>
|
||||
<string name="hud_locked_hint">اسحب HUD لتحريكه. أثناء تثبيته، تظل عناصر التحكم على الشاشة الموجودة تحته تعمل.</string>
|
||||
<string name="hud_hold">ضغط مطوّل</string>
|
||||
<string name="hud_hold_collapse">طيّ أو توسيع</string>
|
||||
<string name="hud_hold_lock">تثبيت أو إلغاء التثبيت</string>
|
||||
<string name="hud_snap">الالتصاق بالجانبين</string>
|
||||
<string name="hud_snap_hint">اترك الواجهة لتنتقل إلى أقرب جانب من الشاشة. اسحبها بسرعة لترميها في ذلك الاتجاه.</string>
|
||||
<string name="hud_group_look">المظهر</string>
|
||||
@@ -1155,7 +1160,7 @@
|
||||
<string name="lab_off_title">تم إيقاف نسخة المختبر</string>
|
||||
<string name="lab_off_other_install">بُنيت لإصدار آخر من DroidDeck. وهي محفوظة في التحديثات.</string>
|
||||
<string name="lab_off_did_not_start">لم يبدأ DroidDeck عليها مرتين</string>
|
||||
<string name="rail_agent">الوكيل</string>
|
||||
<string name="rail_agent">Dev Harness</string>
|
||||
<string name="agent_channel_name">الوكيل</string>
|
||||
<string name="agent_working">الوكيل يعمل</string>
|
||||
<string name="agent_missing">ثبّت Claude Code في بيئة مستخدم Linux لاستخدام الوكيل.</string>
|
||||
@@ -1195,6 +1200,7 @@
|
||||
<string name="agent_hint_working">اكتب لإضافة الرسالة التالية إلى الانتظار</string>
|
||||
<string name="agent_queue">إضافة إلى الانتظار</string>
|
||||
<string name="agent_queued">التالي: %1$s</string>
|
||||
<string name="agent_tools_missing">أدوات الوكيل غير مثبتة: %1$s</string>
|
||||
<string name="agent_unqueue">لا تُرسل</string>
|
||||
<string name="agent_attach">إرفاق</string>
|
||||
<string name="agent_remove_attachment">إزالة</string>
|
||||
@@ -1619,7 +1625,6 @@
|
||||
<string name="game_file_folder">اختر مجلدًا لملفات الألعاب الخاصة بالواجهات الأمامية</string>
|
||||
<string name="game_file_exported">تم حفظ ملفات الألعاب في %1$s</string>
|
||||
<string name="game_frontend_files">ملفات الواجهة الأمامية</string>
|
||||
|
||||
<string name="main_wait_runtime">انتظر حتى تنتهي عملية بيئة التشغيل</string>
|
||||
<string name="main_wait_proton_install">انتظر حتى ينتهي تثبيت أداة التوافق</string>
|
||||
<string name="load_compat_title">جارٍ تجهيز أدوات التوافق</string>
|
||||
@@ -1725,7 +1730,6 @@
|
||||
<string name="main_removing_runtime">جارٍ إزالة بيئة تشغيل Linux</string>
|
||||
<string name="main_settings_main_screen">تعذّر فتح الإعدادات على الشاشة السفلية، لذا فُتحت على الشاشة الأساسية.</string>
|
||||
<string name="main_open_dev_options">افتح خيارات المطوّرين في الإعدادات</string>
|
||||
|
||||
<string name="upd_unknown_apps_failed">تعذّر فتح إعداد «تثبيت التطبيقات غير المعروفة» في Android</string>
|
||||
<string name="upd_couldnt_check">تعذّر التحقّق: %1$s</string>
|
||||
<string name="upd_no_download">لا يتوفّر لهذا الإصدار ملف تنزيل لهذه النسخة من DroidDeck</string>
|
||||
@@ -1735,12 +1739,10 @@
|
||||
<string name="upd_stage_confirm">في انتظار تأكيدك</string>
|
||||
<string name="upd_failed">فشل التحديث</string>
|
||||
<string name="upd_not_offered">لم يعرض Android تثبيت التحديث</string>
|
||||
|
||||
<string name="decky_install_failed">فشل تثبيت Decky: %1$s</string>
|
||||
<string name="decky_plugin_starting">جارٍ بدء استيراد الإضافة…</string>
|
||||
<string name="decky_plugin_failed">فشل استيراد الإضافة: %1$s</string>
|
||||
<string name="decky_plugin_installed">تم تثبيت الإضافة. أعِد تشغيل Steam لتحميلها.</string>
|
||||
|
||||
<string name="drivers_not_checked">لم يتم التحقّق بعد - انقر على «تحديث» للبحث عن برامج تشغيل جديدة</string>
|
||||
<string name="drivers_bundle_sets_display">Android + Linux: يضبط برنامج تشغيل العرض معه</string>
|
||||
<string name="drivers_bundle_sets_runtime">Android + Linux: يضبط برنامج تشغيل بيئة Linux معه</string>
|
||||
@@ -1805,7 +1807,6 @@
|
||||
<string name="drivers_check_failed">فشل التحقّق</string>
|
||||
<string name="drivers_installed_pick_either">تم تثبيت %1$s - اختره من أيٍّ من القائمتين لضبط برنامجَي التشغيل معًا</string>
|
||||
<string name="drivers_installed_pick">تم تثبيت %1$s - اختره من القائمة</string>
|
||||
|
||||
<string name="session_wait_removal">انتظر حتى تنتهي إزالة بيئة التشغيل</string>
|
||||
<string name="session_title_game">لعبة</string>
|
||||
<string name="session_touch_auto_touchpad">لوحة اللمس</string>
|
||||
@@ -1859,7 +1860,6 @@
|
||||
<item quantity="many">يُظهر السجل %1$d خطأً من نوع «Function not implemented»: تسريع seccomp في proot يتسبّب في فشل أداة مساعدة على هذا الجهاز. جرِّب %2$s → «%3$s» (أو «%4$s») وابدأ من جديد.</item>
|
||||
<item quantity="other">يُظهر السجل %1$d خطأ من نوع «Function not implemented»: تسريع seccomp في proot يتسبّب في فشل أداة مساعدة على هذا الجهاز. جرِّب %2$s → «%3$s» (أو «%4$s») وابدأ من جديد.</item>
|
||||
</plurals>
|
||||
|
||||
<string name="mode_decky_plugins">الإضافات</string>
|
||||
<string name="mode_decky_plugins_hint">ثبِّت ملف ZIP لإضافة في جلسة Steam التالية.</string>
|
||||
<string name="mode_decky_plugin_downloading">جارٍ التنزيل…</string>
|
||||
@@ -2244,7 +2244,6 @@
|
||||
<string name="bottom_telemetry_elite">Elite Dangerous</string>
|
||||
<string name="bottom_telemetry_unknown_format">يستقبل المنفذ %1$d بيانات (%2$d حزمة بحجم %3$d بايت)، لكن بتنسيق لا تستطيع هذه الصفحة قراءته بعد.</string>
|
||||
<string name="bottom_telemetry_port_busy">يستخدم برنامج آخر المنفذ %1$s بالفعل، لذا لا يمكن عرض تلك اللعبة هنا.</string>
|
||||
|
||||
<string name="rtinst_removing">جارٍ إزالة بيئة تشغيل Linux</string>
|
||||
<plurals name="rtinst_removing_entries">
|
||||
<item quantity="zero">جارٍ إزالة بيئة تشغيل Linux · %1$d عنصر</item>
|
||||
@@ -2263,7 +2262,6 @@
|
||||
<string name="rtinst_channel_description">يظهر أثناء تثبيت بيئة تشغيل Linux أو إزالتها</string>
|
||||
<string name="rtinst_title_installing">جارٍ تثبيت بيئة تشغيل Linux</string>
|
||||
<string name="rtinst_title_removing">جارٍ إزالة بيئة تشغيل Linux</string>
|
||||
|
||||
<string name="deskpkg_runtime_missing">بيئة تشغيل Linux غير مثبَّتة</string>
|
||||
<string name="deskpkg_no_checksum">لا يتضمّن الكتالوج مجموعًا اختباريًا لـ %1$s</string>
|
||||
<string name="deskpkg_checksum_mismatch">المجموع الاختباري غير مطابق - لم يتم تغيير أي شيء</string>
|
||||
@@ -2271,7 +2269,6 @@
|
||||
<string name="deskpkg_place_failed">تعذّر وضع ملف AppImage في مكانه</string>
|
||||
<string name="deskpkg_extract_failed">فشل الاستخراج</string>
|
||||
<string name="deskpkg_install_failed">فشل التثبيت</string>
|
||||
|
||||
<string name="flatpakmgr_setup_failed">فشل إعداد Flatpak (رمز الخروج %1$d)</string>
|
||||
<string name="flatpakmgr_setup_unfinished">لم يكتمل إعداد Flatpak</string>
|
||||
<string name="flatpakmgr_busy">هناك مهمة أخرى للمتجر قيد التشغيل</string>
|
||||
@@ -2290,7 +2287,6 @@
|
||||
<string name="flatpakmgr_ref_media_codecs">برامج ترميز الوسائط</string>
|
||||
<string name="flatpakmgr_ref_runtime">بيئة تشغيل %1$s</string>
|
||||
<string name="flatpakmgr_ref_runtime_branch">بيئة تشغيل %1$s %2$s</string>
|
||||
|
||||
<string name="appimg_too_small">الملف أصغر من أن يكون AppImage</string>
|
||||
<string name="appimg_unreadable">تتعذّر قراءة الملف: %1$s</string>
|
||||
<string name="appimg_not_linux">هذا ليس AppImage (ليس برنامج Linux)</string>
|
||||
@@ -2305,7 +2301,6 @@
|
||||
<string name="appimg_extracting">جارٍ استخراج %1$s</string>
|
||||
<string name="appimg_extract_failed">تعذّر استخراج ملف AppImage</string>
|
||||
<string name="appimg_extract_failed_detail">تعذّر استخراج ملف AppImage: %1$s</string>
|
||||
|
||||
<string name="deckymgr_stop_session_loader">أوقِف الجلسة النشطة قبل تثبيت Decky Loader</string>
|
||||
<string name="deckymgr_download_failed">فشل تنزيل Decky Loader</string>
|
||||
<string name="deckymgr_size_mismatch">حجم Decky Loader غير مطابق لبيانات الإصدار الوصفية</string>
|
||||
@@ -2354,13 +2349,11 @@
|
||||
<string name="deckymgr_activate_failed">تعذّر تفعيل الإضافة المستورَدة</string>
|
||||
<string name="deckymgr_settings_failed">تعذّر تحديث إعدادات إضافات Decky</string>
|
||||
<string name="deckymgr_restore_failed">تعذّر استعادة الإضافة الحالية</string>
|
||||
|
||||
<string name="adbfix_save_failed">تعذّر حفظ هوية تصحيح الأخطاء اللاسلكي</string>
|
||||
<string name="adbfix_command_failed">فشل أمر ADB (%1$d)</string>
|
||||
<string name="adbfix_not_confirmed">لم يؤكّد Android تغيير حدّ العمليات الفرعية: %1$s</string>
|
||||
<string name="adbfix_no_pairing">لا يوجد إقران محفوظ لتصحيح الأخطاء اللاسلكي</string>
|
||||
<string name="adbfix_enter_address">أدخِل عنوان IP الحالي ورقم المنفذ لتصحيح الأخطاء اللاسلكي</string>
|
||||
|
||||
<string name="adbpair_timed_out">انتهت مهلة انتظار النافذة المنبثقة للإقران. حاوِل مرة أخرى من DroidDeck.</string>
|
||||
<string name="adbpair_discovery_failed_code">تعذّر البحث عن النافذة المنبثقة للإقران (%1$d). تحقَّق من تفعيل Wi-Fi.</string>
|
||||
<string name="adbpair_discovery_failed">تعذّر البحث عن النافذة المنبثقة للإقران: %1$s</string>
|
||||
@@ -2386,7 +2379,6 @@
|
||||
<string name="adbpair_title_done">Steam جاهز</string>
|
||||
<string name="adbpair_done_text">اضغط للعودة إلى DroidDeck. يمكنك إيقاف تصحيح الأخطاء اللاسلكي الآن.</string>
|
||||
<string name="adbpair_title_failed">توقَّف إعداد تصحيح الأخطاء اللاسلكي</string>
|
||||
|
||||
<string name="selfinst_download_failed">فشل التنزيل</string>
|
||||
<string name="selfinst_size_mismatch">حجم التنزيل غير مطابق لملف APK المنشور، وتم تجاهله - حاوِل مرة أخرى</string>
|
||||
<string name="selfinst_checksum_mismatch">التنزيل غير مطابق لمجموعه الاختباري، وتم تجاهله - حاوِل مرة أخرى</string>
|
||||
@@ -2399,13 +2391,11 @@
|
||||
<string name="selfinst_no_signing">ملف APK الذي تم تنزيله لا يحمل معلومات توقيع</string>
|
||||
<string name="selfinst_wrong_signer">ملف APK الذي تم تنزيله غير موقَّع بمفتاح إصدار DroidDeck</string>
|
||||
<string name="appupd_http">استجاب كتالوج التحديثات بـ HTTP %1$d</string>
|
||||
|
||||
<string name="loadstate_starting">جارٍ بدء الجلسة…</string>
|
||||
<string name="loadstate_elapsed">%1$d:%2$02d منقضية · لا تزال جارية</string>
|
||||
<string name="loadstate_steam_update">جارٍ تنزيل تحديث عميل Steam · %1$d%%</string>
|
||||
<string name="loadstate_steam_update_applying">جارٍ تطبيق تحديث عميل Steam…</string>
|
||||
<string name="loadstate_steam_client">جارٍ تنزيل عميل Steam · %1$s</string>
|
||||
|
||||
<string name="pextra_busy">يوجد تثبيت لأداة توافق قيد التنفيذ بالفعل</string>
|
||||
<string name="pextra_stop_session">أوقِف الجلسة النشطة قبل تثبيت أدوات التوافق</string>
|
||||
<string name="pextra_no_release">تعذّر العثور على إصدار ARM64 لـ %1$s</string>
|
||||
@@ -2425,7 +2415,6 @@
|
||||
<string name="pextra_install_failed">فشل تثبيت %1$s (حالة الخروج %2$d)</string>
|
||||
<string name="pextra_could_not_install">تعذّر تثبيت %1$s</string>
|
||||
<string name="esync_fetching">جارٍ جلب حزمة droiddeck-esync</string>
|
||||
|
||||
<string name="cmgr_fex_linux_helpers">مع أدوات Linux المساعدة</string>
|
||||
<string name="cmgr_fex_dlls_only">ملفات DLL فقط</string>
|
||||
<string name="cmgr_original_proton_updated">الأصلي (تم تحديث Proton منذ آخر تبديل)</string>
|
||||
@@ -2448,13 +2437,11 @@
|
||||
<string name="cmgr_nightly_replaced">فشل التنزيل: ربما استُبدل هذا الإصدار الليلي بإصدار أحدث. حدّث القائمة وحاول مرة أخرى.</string>
|
||||
<string name="cmgr_list_predates_checksums">قائمة الحزم هذه أقدم من إضافة المجاميع الاختبارية - حدِّثها وحاوِل مرة أخرى</string>
|
||||
<string name="cmgr_checksum_mismatch">عدم تطابق المجموع الاختباري</string>
|
||||
|
||||
<string name="sprefs_upscaler_linear">خطي</string>
|
||||
<string name="sprefs_upscaler_nearest">الأقرب</string>
|
||||
<string name="sprefs_upscaler_gsr_quality">Snapdragon GSR (جودة)</string>
|
||||
<string name="sprefs_upscaler_sharpen">زيادة الحدة فقط</string>
|
||||
<string name="sprefs_lod_bias_auto">تلقائي (يطابق التكبير)</string>
|
||||
|
||||
<string name="look_off_desc">لا يُطبَّق أي شيء.</string>
|
||||
<string name="look_game_clarity">وضوح اللعبة</string>
|
||||
<string name="look_game_clarity_desc">زيادة حدّة مع لمسة من التباين - الخيار اليومي.</string>
|
||||
@@ -2478,7 +2465,6 @@
|
||||
<string name="look_pixel_clean_desc">بكسلات واضحة للألعاب الثنائية الأبعاد والألعاب القديمة.</string>
|
||||
<string name="look_anime_edge">حافة الأنيمي</string>
|
||||
<string name="look_anime_edge_desc">حدود كرتونية مع زيادة الحدّة.</string>
|
||||
|
||||
<string name="gpuinfo_not_adreno">وحدة GPU ليست من نوع Adreno</string>
|
||||
<string name="gpuinfo_powervr">برنامج تشغيل PowerVR في النظام: يختلف التوافق باختلاف الجهاز</string>
|
||||
<string name="gpuinfo_xclipse">تجريبي: RADV أو برنامج تشغيل Xclipse في النظام</string>
|
||||
@@ -2503,7 +2489,6 @@
|
||||
<string name="gpuinfo_unsupported">غير مدعوم: لا تتوفر واجهة رسومات متوافقة مع وحدة معالجة الرسومات هذه</string>
|
||||
<string name="gpuinfo_bridge">يعمل عبر جسر Mali، على برنامج تشغيل Vulkan الخاص بالهاتف</string>
|
||||
<string name="gpuinfo_bridge_off">غير مدعوم عند إيقاف جسر Mali: يحتاج Turnip إلى معالج رسوميات Adreno (Snapdragon)</string>
|
||||
|
||||
<string name="turnip_rate_limited">تم الوصول إلى حدّ الطلبات في GitHub - حاوِل مرة أخرى لاحقًا</string>
|
||||
<string name="turnip_github_http">استجاب GitHub بـ HTTP %1$d</string>
|
||||
<string name="turnip_download_failed">فشل التنزيل</string>
|
||||
@@ -2524,16 +2509,12 @@
|
||||
<string name="bundle_no_manifest">ليست حزمة برامج تشغيل: لا يوجد manifest.json يذكر برنامج تشغيل لـ Android وآخر لـ Linux</string>
|
||||
<string name="bundle_entry_outside">ليست حزمة برامج تشغيل: %1$s يشير إلى خارجها</string>
|
||||
<string name="bundle_too_large">ليست حزمة برامج تشغيل: تتجاوز بعد الاستخراج %1$d MB</string>
|
||||
|
||||
<string name="gstore_sd_card">بطاقة SD</string>
|
||||
<string name="gstore_folder">مجلد</string>
|
||||
|
||||
<string name="logshare_chooser">مشاركة سجلات الجلسة</string>
|
||||
|
||||
<string name="hdr_needs_android_10">يحتاج إلى Android 10 أو أحدث (طبقات عرض بمساحة ألوان)</string>
|
||||
<string name="hdr_none">لا تُعلن هذه الشاشة عن دعم HDR</string>
|
||||
<string name="hdr_not_hdr10">تدعم هذه الشاشة %1$s، وليس HDR10</string>
|
||||
|
||||
<string name="gpu_this_gpu">وحدة GPU هذه</string>
|
||||
<string name="phantom_title_on">حدّ العمليات الفرعية مفعَّل</string>
|
||||
<string name="phantom_title_unset">حدّ العمليات الفرعية غير محدَّد</string>
|
||||
@@ -2607,7 +2588,6 @@
|
||||
<string name="device_info_copied">تم النسخ.</string>
|
||||
<string name="force_ssbs_title">فرض SSBS</string>
|
||||
<string name="force_ssbs_hint">يحافظ على إعداد سرعة لوحدة المعالجة (CPU) يستمر Wine في إيقافه. قد يجعل ألعاب Windows أسرع على Snapdragon 8 Elite؛ مع تغيّر طفيف على الشرائح الأقدم. يُطبَّق عند تشغيل اللعبة في المرة التالية.</string>
|
||||
|
||||
<string name="rail_stores">المتاجر</string>
|
||||
<string name="source_steam">Steam</string>
|
||||
<string name="source_added">مخصَّص</string>
|
||||
@@ -3105,7 +3085,6 @@
|
||||
<string name="touch_icon_color">لون الأيقونة</string>
|
||||
<string name="touch_button_color">لون الزر</string>
|
||||
<string name="touch_no_icon">بلا أيقونة</string>
|
||||
|
||||
<string name="stores_sync_sign_in">جارٍ التحقق من تسجيل الدخول…</string>
|
||||
<string name="stores_sync_library">جارٍ جلب مكتبتك…</string>
|
||||
<string name="stores_sync_game_list">جارٍ جلب قائمة الألعاب…</string>
|
||||
@@ -3933,6 +3912,7 @@
|
||||
<string name="sync_not_running">Syncthing لا يعمل.</string>
|
||||
<string name="session_end_steam_sigill">توقّف Steam بسبب تعليمة غير صالحة (SIGILL). قد تكون مشكلة توافق في تعليمات CPU أو تعطّلًا في العميل. شارك السجلات مع تفاصيل جهازك.</string>
|
||||
<string name="session_end_steam_try_x64">يمكنك تجربة إعدادات Steam → عميل Steam → x86-64 (تجريبي). يتطلب تنزيلًا إضافيًا وقد يعمل بشكل أبطأ.</string>
|
||||
<string name="session_end_fex_kernel">تعمل برامج x86 وعميل Steam بإصدار x86-64 عبر FEX، الذي لا يمكنه العمل على نواة Linux في هذا الجهاز (%1$s).</string>
|
||||
<string name="session_end_vulkan_device">تعذّر على برنامج تشغيل رسومات Linux العثور على جهاز Vulkan صالح للاستخدام. تحقّق من أن برنامج تشغيل GPU المحدد لـ Linux يدعم هذا الـ GPU.</string>
|
||||
<string name="session_end_gpu_unsupported">لا يمكن بدء هذه الجلسة لأن هذا الـ GPU ليس له برنامج تشغيل Vulkan متوافق لـ Linux في الإعداد الحالي. لا يمكن لبرامج تشغيل Adreno Turnip تفعيل دعم وحدات MediaTek/Mali GPU.</string>
|
||||
<string name="setup_group_memory">الذاكرة</string>
|
||||
@@ -4186,10 +4166,8 @@
|
||||
<string name="input_show_label">إظهار التسمية</string>
|
||||
<string name="input_layout_import_failed">تعذّر استيراد هذا التخطيط</string>
|
||||
<string name="epic_third_party_managed">يُثبّت عبر %1$s</string>
|
||||
|
||||
<string name="theme_white_red">ثلج قرمزي</string>
|
||||
<string name="theme_white_red_detail">أسطح بيضاء مع لمسات حمراء.</string>
|
||||
|
||||
<string name="rail_soundtracks">الموسيقى التصويرية</string>
|
||||
<string name="rail_music">الموسيقى</string>
|
||||
<string name="soundtracks_options">خيارات التشغيل</string>
|
||||
@@ -4266,4 +4244,9 @@
|
||||
<string name="hud_readings_shown">المعروض</string>
|
||||
<string name="hud_readings_count">%1$d من %2$d</string>
|
||||
<string name="exit_hint_back">اضغط زر الرجوع مرة أخرى للخروج</string>
|
||||
</resources>
|
||||
<string name="display_integer_scaling">تحجيم صحيح بالأعداد الصحيحة</string>
|
||||
<string name="display_integer_scaling_hint">يستخدم أكبر معامل تكبير صحيح يناسب الشاشة. قد يقص الحواف. إذا كان المصدر أكبر من الناتج، فإن التحجيم الكسري يعرض الصورة كاملة. يتم ضبط الدقة بشكل منفصل.</string>
|
||||
<string name="display_scaling_integer">عدد صحيح</string>
|
||||
<string name="display_scaling_fit">ملاءمة</string>
|
||||
<string name="drawer_antialiasing">تنعيم الحواف</string>
|
||||
</resources>
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<resources>
|
||||
<string name="steamvr_recovery_title">Los gráficos de SteamVR se detuvieron</string>
|
||||
<string name="steamvr_recovery_countdown">DroidDeck se reiniciará en %1$d segundos para restablecer los gráficos y volver a abrir SteamVR. Tu juego en curso se cerrará; el progreso no guardado no se podrá recuperar.</string>
|
||||
@@ -677,6 +677,8 @@
|
||||
<string name="drawer_page_display">Pantalla</string>
|
||||
<string name="drawer_frame_limit">Límite de fotogramas</string>
|
||||
<string name="drawer_frame_limit_note">Limita este juego. La pantalla cambia a una frecuencia de actualización que sea múltiplo exacto del límite cuando la hay; otros límites pueden verse irregulares. Los juegos de Steam usan el Límite de fotogramas de Steam en el menú Quick Access.</string>
|
||||
<string name="drawer_bfi">Inserción de cuadros negros</string>
|
||||
<string name="drawer_bfi_note">Movimiento más nítido: cada cuadro va seguido de un refresco negro. Requiere 100 Hz o más; el juego corre a la mitad de la frecuencia y se ve más oscuro. Se apaga con la generación de cuadros.</string>
|
||||
<string name="drawer_page_effects">Efectos</string>
|
||||
<string name="drawer_page_controls">Controles</string>
|
||||
<string name="drawer_page_components">Componentes</string>
|
||||
@@ -710,7 +712,10 @@
|
||||
<string name="hud_size_mega">Mega</string>
|
||||
<string name="hud_size_strip">Barra</string>
|
||||
<string name="hud_locked">Fijar posición</string>
|
||||
<string name="hud_locked_hint">Arrastra el HUD para moverlo; una pulsación larga lo bloquea o lo desbloquea. Mientras está bloqueado, los controles en pantalla que tiene debajo siguen funcionando.</string>
|
||||
<string name="hud_locked_hint">Arrastra el HUD para moverlo. Mientras está bloqueado, los controles en pantalla que tiene debajo siguen funcionando.</string>
|
||||
<string name="hud_hold">Pulsación larga</string>
|
||||
<string name="hud_hold_collapse">Contraer o expandir</string>
|
||||
<string name="hud_hold_lock">Bloquear o desbloquear</string>
|
||||
<string name="hud_snap">Ajustar a los lados</string>
|
||||
<string name="hud_snap_hint">Al soltar el HUD, se mueve al lado más cercano de la pantalla. Un gesto rápido lo lanza en esa dirección.</string>
|
||||
<string name="hud_group_look">Aspecto</string>
|
||||
@@ -1173,7 +1178,7 @@
|
||||
<string name="lab_off_title">Compilación de Lab desactivada</string>
|
||||
<string name="lab_off_other_install">Se creó para otra versión de DroidDeck. Se conserva en Actualizaciones.</string>
|
||||
<string name="lab_off_did_not_start">DroidDeck no arrancó con ella dos veces</string>
|
||||
<string name="rail_agent">Agente</string>
|
||||
<string name="rail_agent">Dev Harness</string>
|
||||
<string name="agent_channel_name">Agente</string>
|
||||
<string name="agent_working">El agente está trabajando</string>
|
||||
<string name="agent_missing">Instala Claude Code en el entorno de usuario de Linux para usar el agente.</string>
|
||||
@@ -1213,6 +1218,7 @@
|
||||
<string name="agent_hint_working">Escribe para encolar el siguiente mensaje</string>
|
||||
<string name="agent_queue">Encolar</string>
|
||||
<string name="agent_queued">Siguiente: %1$s</string>
|
||||
<string name="agent_tools_missing">Herramientas del agente sin instalar: %1$s</string>
|
||||
<string name="agent_unqueue">No enviar</string>
|
||||
<string name="agent_attach">Adjuntar</string>
|
||||
<string name="agent_remove_attachment">Quitar</string>
|
||||
@@ -3789,6 +3795,7 @@
|
||||
<string name="sync_not_running">Syncthing no se está ejecutando.</string>
|
||||
<string name="session_end_steam_sigill">Steam se detuvo por una instrucción ilegal (SIGILL). Puede ser un problema de compatibilidad con instrucciones de la CPU o un fallo del cliente. Comparte los registros con los datos de tu dispositivo.</string>
|
||||
<string name="session_end_steam_try_x64">Puedes probar Ajustes de Steam → Cliente de Steam → x86-64 (experimental). Requiere una descarga adicional y puede ir más lento.</string>
|
||||
<string name="session_end_fex_kernel">Los programas x86 y el cliente de Steam x86-64 se ejecutan con FEX, que no puede funcionar con el kernel de Linux de este dispositivo (%1$s).</string>
|
||||
<string name="session_end_vulkan_device">El controlador gráfico de Linux no encontró un dispositivo Vulkan utilizable. Comprueba que el controlador de GPU de Linux seleccionado sea compatible con esta GPU.</string>
|
||||
<string name="session_end_gpu_unsupported">Esta sesión no puede iniciarse porque esta GPU no tiene un controlador Vulkan de Linux compatible en la configuración actual. Los controladores Turnip de Adreno no pueden habilitar la compatibilidad con GPU MediaTek/Mali.</string>
|
||||
<string name="setup_group_memory">Memoria</string>
|
||||
@@ -4117,4 +4124,9 @@
|
||||
<string name="hud_readings_shown">Mostrados</string>
|
||||
<string name="hud_readings_count">%1$d de %2$d</string>
|
||||
<string name="exit_hint_back">Presiona atrás una vez más para salir</string>
|
||||
</resources>
|
||||
<string name="display_integer_scaling">Escalado de píxeles enteros</string>
|
||||
<string name="display_integer_scaling_hint">Usa la mayor escala entera que cabe. Puede recortar los bordes. Si la imagen original supera el tamaño de salida, el escalado fraccional muestra la imagen completa. La resolución se configura por separado.</string>
|
||||
<string name="display_scaling_integer">Entero</string>
|
||||
<string name="display_scaling_fit">Ajustar</string>
|
||||
<string name="drawer_antialiasing">Antialiasing</string>
|
||||
</resources>
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<resources>
|
||||
<string name="steamvr_recovery_title">Графиката на SteamVR спря</string>
|
||||
<string name="steamvr_recovery_countdown">DroidDeck ще се рестартира след %1$d секунди, за да нулира графиката и да отвори отново SteamVR. Текущата ви игра ще бъде затворена; незапазеният напредък не може да бъде възстановен.</string>
|
||||
@@ -675,6 +675,8 @@
|
||||
<string name="drawer_page_display">Екран</string>
|
||||
<string name="drawer_frame_limit">Ограничение на кадрите</string>
|
||||
<string name="drawer_frame_limit_note">Ограничава тази игра. Екранът преминава към честота на опресняване, която се дели точно на ограничението, ако има такава; другите ограничения може да изглеждат неравномерни. Игрите в Steam използват Frame Limit на Steam в менюто Quick Access.</string>
|
||||
<string name="drawer_bfi">Вмъкване на черни кадри</string>
|
||||
<string name="drawer_bfi_note">По-ясно движение: след всеки кадър следва черно опресняване. Нужни са 100 Hz или повече; играта върви на половината честота и изглежда по-тъмна. Изключено при генериране на кадри.</string>
|
||||
<string name="drawer_page_effects">Ефекти</string>
|
||||
<string name="drawer_page_controls">Контроли</string>
|
||||
<string name="drawer_page_components">Компоненти</string>
|
||||
@@ -708,7 +710,10 @@
|
||||
<string name="hud_size_mega">Мега</string>
|
||||
<string name="hud_size_strip">Лента</string>
|
||||
<string name="hud_locked">Заключване на място</string>
|
||||
<string name="hud_locked_hint">Плъзнете HUD, за да го преместите; продължително натискане го заключва или отключва. Докато е заключен, екранните контроли под него продължават да работят.</string>
|
||||
<string name="hud_locked_hint">Плъзнете HUD, за да го преместите. Докато е заключен, екранните контроли под него продължават да работят.</string>
|
||||
<string name="hud_hold">Продължително натискане</string>
|
||||
<string name="hud_hold_collapse">Свиване или разгъване</string>
|
||||
<string name="hud_hold_lock">Заключване или отключване</string>
|
||||
<string name="hud_snap">Залепване отстрани</string>
|
||||
<string name="hud_snap_hint">Пуснете HUD и той отива към по-близката страна на екрана. Бързо плъзване го хвърля в тази посока.</string>
|
||||
<string name="hud_group_look">Визия</string>
|
||||
@@ -1143,7 +1148,7 @@
|
||||
<string name="lab_off_title">Лаб компилацията е изключена</string>
|
||||
<string name="lab_off_other_install">Създадена е за друга версия на DroidDeck. Запазена е в Актуализации.</string>
|
||||
<string name="lab_off_did_not_start">DroidDeck не стартира два пъти с нея</string>
|
||||
<string name="rail_agent">Агент</string>
|
||||
<string name="rail_agent">Dev Harness</string>
|
||||
<string name="agent_channel_name">Агент</string>
|
||||
<string name="agent_working">Агентът работи</string>
|
||||
<string name="agent_missing">Инсталирайте Claude Code в потребителското пространство на Linux, за да използвате агента.</string>
|
||||
@@ -1183,6 +1188,7 @@
|
||||
<string name="agent_hint_working">Въведете, за да наредите следващото съобщение</string>
|
||||
<string name="agent_queue">В опашката</string>
|
||||
<string name="agent_queued">Следващо: %1$s</string>
|
||||
<string name="agent_tools_missing">Инструментите на агента не са инсталирани: %1$s</string>
|
||||
<string name="agent_unqueue">Не изпращай</string>
|
||||
<string name="agent_attach">Прикачи</string>
|
||||
<string name="agent_remove_attachment">Премахни</string>
|
||||
@@ -1587,7 +1593,6 @@
|
||||
<string name="game_file_folder">Избор на папка за файловете на фронтенда на игрите</string>
|
||||
<string name="game_file_exported">Файловете на игрите са запазени в %1$s</string>
|
||||
<string name="game_frontend_files">Файлове на фронтенда</string>
|
||||
|
||||
<string name="main_wait_runtime">Изчакай операцията със средата да приключи</string>
|
||||
<string name="main_wait_proton_install">Изчакай инсталирането на инструмента за съвместимост да приключи</string>
|
||||
<string name="load_compat_title">Подготовка на инструментите за съвместимост</string>
|
||||
@@ -1673,7 +1678,6 @@
|
||||
<string name="main_removing_runtime">Премахване на средата на Linux</string>
|
||||
<string name="main_settings_main_screen">Настройките не можаха да се отворят на долния екран; отворени са на основния екран.</string>
|
||||
<string name="main_open_dev_options">Отваряне на „Опции за програмисти“ в настройките</string>
|
||||
|
||||
<string name="upd_unknown_apps_failed">Настройката на Android „Инсталиране на неизвестни приложения“ не можа да се отвори</string>
|
||||
<string name="upd_couldnt_check">Проверката не можа да се извърши: %1$s</string>
|
||||
<string name="upd_no_download">Тази версия няма изтегляне за това копие на DroidDeck</string>
|
||||
@@ -1683,12 +1687,10 @@
|
||||
<string name="upd_stage_confirm">Изчакване на потвърждение от теб</string>
|
||||
<string name="upd_failed">Актуализацията се провали</string>
|
||||
<string name="upd_not_offered">Android не предложи инсталирането на актуализацията</string>
|
||||
|
||||
<string name="decky_install_failed">Инсталирането на Decky се провали: %1$s</string>
|
||||
<string name="decky_plugin_starting">Стартиране на импортирането на плъгина…</string>
|
||||
<string name="decky_plugin_failed">Импортирането на плъгина се провали: %1$s</string>
|
||||
<string name="decky_plugin_installed">Плъгинът е инсталиран. Рестартирай Steam, за да се зареди.</string>
|
||||
|
||||
<string name="drivers_not_checked">Все още не е проверено - докосни опресняване, за да провериш за нови драйвери</string>
|
||||
<string name="drivers_bundle_sets_display">Android + Linux: задава драйвера за дисплея заедно с него</string>
|
||||
<string name="drivers_bundle_sets_runtime">Android + Linux: задава драйвера за средата заедно с него</string>
|
||||
@@ -1741,7 +1743,6 @@
|
||||
<string name="drivers_check_failed">проверката се провали</string>
|
||||
<string name="drivers_installed_pick_either">Инсталирано: %1$s - избери го в който и да е от списъците, за да зададеш и двата драйвера</string>
|
||||
<string name="drivers_installed_pick">Инсталирано: %1$s - избери го от менюто</string>
|
||||
|
||||
<string name="session_wait_removal">Изчакай премахването на средата да приключи</string>
|
||||
<string name="session_title_game">Игра</string>
|
||||
<string name="session_touch_auto_touchpad">тракпад</string>
|
||||
@@ -1787,7 +1788,6 @@
|
||||
<item quantity="one">Логът показва %1$d грешка „Function not implemented“: ускорението на proot чрез seccomp се проваля при помощен процес на това устройство. Пробвай %2$s → „%3$s“ (или „%4$s“) и стартирай отново.</item>
|
||||
<item quantity="other">Логът показва %1$d грешки „Function not implemented“: ускорението на proot чрез seccomp се проваля при помощен процес на това устройство. Пробвай %2$s → „%3$s“ (или „%4$s“) и стартирай отново.</item>
|
||||
</plurals>
|
||||
|
||||
<string name="mode_decky_plugins">Плъгини</string>
|
||||
<string name="mode_decky_plugins_hint">Инсталирай ZIP с плъгин за следващата сесия на Steam.</string>
|
||||
<string name="mode_decky_plugin_downloading">Изтегляне…</string>
|
||||
@@ -2144,7 +2144,6 @@
|
||||
<string name="bottom_telemetry_elite">Elite Dangerous</string>
|
||||
<string name="bottom_telemetry_unknown_format">Порт %1$d получава данни (%2$d пакета по %3$d байта), но във формат, който тази страница все още не може да чете.</string>
|
||||
<string name="bottom_telemetry_port_busy">Друга програма вече използва порт %1$s, затова тази игра не може да се показва тук.</string>
|
||||
|
||||
<string name="rtinst_removing">Премахване на средата на Linux</string>
|
||||
<plurals name="rtinst_removing_entries">
|
||||
<item quantity="one">Премахване на средата на Linux · %1$d запис</item>
|
||||
@@ -2159,7 +2158,6 @@
|
||||
<string name="rtinst_channel_description">Показва се, докато средата на Linux се инсталира или премахва</string>
|
||||
<string name="rtinst_title_installing">Инсталиране на средата на Linux</string>
|
||||
<string name="rtinst_title_removing">Премахване на средата на Linux</string>
|
||||
|
||||
<string name="deskpkg_runtime_missing">Средата на Linux не е инсталирана</string>
|
||||
<string name="deskpkg_no_checksum">Каталогът няма контролна сума за %1$s</string>
|
||||
<string name="deskpkg_checksum_mismatch">Несъответствие в контролната сума - нищо не е променено</string>
|
||||
@@ -2167,7 +2165,6 @@
|
||||
<string name="deskpkg_place_failed">AppImage не можа да бъде поставен</string>
|
||||
<string name="deskpkg_extract_failed">Разопаковането се провали</string>
|
||||
<string name="deskpkg_install_failed">Инсталирането се провали</string>
|
||||
|
||||
<string name="flatpakmgr_setup_failed">Настройката на Flatpak се провали (изход %1$d)</string>
|
||||
<string name="flatpakmgr_setup_unfinished">Настройката на Flatpak не завърши</string>
|
||||
<string name="flatpakmgr_busy">Друга задача на магазина вече се изпълнява</string>
|
||||
@@ -2186,7 +2183,6 @@
|
||||
<string name="flatpakmgr_ref_media_codecs">медийни кодеци</string>
|
||||
<string name="flatpakmgr_ref_runtime">средата %1$s</string>
|
||||
<string name="flatpakmgr_ref_runtime_branch">средата %1$s %2$s</string>
|
||||
|
||||
<string name="appimg_too_small">Файлът е твърде малък, за да бъде AppImage</string>
|
||||
<string name="appimg_unreadable">Файлът не може да бъде прочетен: %1$s</string>
|
||||
<string name="appimg_not_linux">Това не е AppImage (не е Linux програма)</string>
|
||||
@@ -2201,7 +2197,6 @@
|
||||
<string name="appimg_extracting">Разопаковане на %1$s</string>
|
||||
<string name="appimg_extract_failed">AppImage не можа да бъде разопакован</string>
|
||||
<string name="appimg_extract_failed_detail">AppImage не можа да бъде разопакован: %1$s</string>
|
||||
|
||||
<string name="deckymgr_stop_session_loader">Спри активната сесия, преди да инсталираш Decky Loader</string>
|
||||
<string name="deckymgr_download_failed">Изтеглянето на Decky Loader се провали</string>
|
||||
<string name="deckymgr_size_mismatch">Размерът на Decky Loader не съответства на метаданните на версията</string>
|
||||
@@ -2250,13 +2245,11 @@
|
||||
<string name="deckymgr_activate_failed">Импортираният плъгин не можа да бъде активиран</string>
|
||||
<string name="deckymgr_settings_failed">Настройките на плъгина на Decky не можаха да бъдат обновени</string>
|
||||
<string name="deckymgr_restore_failed">Съществуващият плъгин не можа да бъде възстановен</string>
|
||||
|
||||
<string name="adbfix_save_failed">Идентичността на безжичното отстраняване на грешки не можа да бъде запазена</string>
|
||||
<string name="adbfix_command_failed">Командата на ADB се провали (%1$d)</string>
|
||||
<string name="adbfix_not_confirmed">Android не потвърди промяната на ограничението за дъщерни процеси: %1$s</string>
|
||||
<string name="adbfix_no_pairing">Няма запазено чифтосване за безжично отстраняване на грешки</string>
|
||||
<string name="adbfix_enter_address">Въведи текущия IP адрес и порт за безжично отстраняване на грешки</string>
|
||||
|
||||
<string name="adbpair_timed_out">Изтече времето за изчакване на изскачащия прозорец за чифтосване. Опитай отново от DroidDeck.</string>
|
||||
<string name="adbpair_discovery_failed_code">Не можа да се търси изскачащият прозорец за чифтосване (%1$d). Проверете дали Wi-Fi е включен.</string>
|
||||
<string name="adbpair_discovery_failed">Не можа да се търси изскачащият прозорец за чифтосване: %1$s</string>
|
||||
@@ -2282,7 +2275,6 @@
|
||||
<string name="adbpair_title_done">Steam е готов</string>
|
||||
<string name="adbpair_done_text">Докосни, за да се върнеш в DroidDeck. Вече можеш да изключиш безжичното отстраняване на грешки.</string>
|
||||
<string name="adbpair_title_failed">Настройката на безжичното отстраняване на грешки спря</string>
|
||||
|
||||
<string name="selfinst_download_failed">Изтеглянето не успя</string>
|
||||
<string name="selfinst_size_mismatch">Размерът на изтеглянето не съответстваше на публикуваното APK и беше отхвърлен - опитай отново</string>
|
||||
<string name="selfinst_checksum_mismatch">Изтеглянето не съответстваше на контролната си сума и беше отхвърлено - опитай отново</string>
|
||||
@@ -2295,13 +2287,11 @@
|
||||
<string name="selfinst_no_signing">Изтегленото APK няма информация за подпис</string>
|
||||
<string name="selfinst_wrong_signer">Изтегленото APK не е подписано с ключа за версии на DroidDeck</string>
|
||||
<string name="appupd_http">Каталогът с актуализации отговори с HTTP %1$d</string>
|
||||
|
||||
<string name="loadstate_starting">Стартиране на сесията…</string>
|
||||
<string name="loadstate_elapsed">%1$d:%2$02d изминали · все още работи</string>
|
||||
<string name="loadstate_steam_update">Изтегляне на актуализацията на клиента на Steam · %1$d%%</string>
|
||||
<string name="loadstate_steam_update_applying">Прилагане на актуализацията на клиента Steam…</string>
|
||||
<string name="loadstate_steam_client">Изтегляне на клиента на Steam · %1$s</string>
|
||||
|
||||
<string name="pextra_busy">Вече тече инсталация на инструмент за съвместимост</string>
|
||||
<string name="pextra_stop_session">Спри активната сесия, преди да инсталираш инструменти за съвместимост</string>
|
||||
<string name="pextra_no_release">Не беше намерена ARM64 версия на %1$s</string>
|
||||
@@ -2321,7 +2311,6 @@
|
||||
<string name="pextra_install_failed">Инсталирането на %1$s се провали (код %2$d)</string>
|
||||
<string name="pextra_could_not_install">%1$s не можа да бъде инсталиран</string>
|
||||
<string name="esync_fetching">Извличане на пакета droiddeck-esync</string>
|
||||
|
||||
<string name="cmgr_fex_linux_helpers">с помощни програми за Linux</string>
|
||||
<string name="cmgr_fex_dlls_only">Само DLL файлове</string>
|
||||
<string name="cmgr_original_proton_updated">Оригинал (Proton е обновен след последната замяна)</string>
|
||||
@@ -2344,13 +2333,11 @@
|
||||
<string name="cmgr_nightly_replaced">Изтеглянето не бе успешно: тази нощна версия може да е заменена с по-нова. Обновете списъка и опитайте отново.</string>
|
||||
<string name="cmgr_list_predates_checksums">Този списък с пакети е отпреди въвеждането на контролни суми - обнови го и опитай отново</string>
|
||||
<string name="cmgr_checksum_mismatch">Несъответствие в контролната сума</string>
|
||||
|
||||
<string name="sprefs_upscaler_linear">Линейно</string>
|
||||
<string name="sprefs_upscaler_nearest">Най-близко</string>
|
||||
<string name="sprefs_upscaler_gsr_quality">Snapdragon GSR (качество)</string>
|
||||
<string name="sprefs_upscaler_sharpen">Само изостряне</string>
|
||||
<string name="sprefs_lod_bias_auto">Автоматично (съответства на мащабирането)</string>
|
||||
|
||||
<string name="look_off_desc">Нищо не е приложено.</string>
|
||||
<string name="look_game_clarity">Яснота на играта</string>
|
||||
<string name="look_game_clarity_desc">Изостряне с лек контраст - за всеки ден.</string>
|
||||
@@ -2374,7 +2361,6 @@
|
||||
<string name="look_pixel_clean_desc">Ясни пиксели за 2D и стари игри.</string>
|
||||
<string name="look_anime_edge">Аниме контури</string>
|
||||
<string name="look_anime_edge_desc">Контури като в анимация плюс изостряне.</string>
|
||||
|
||||
<string name="gpuinfo_not_adreno">Не е GPU Adreno</string>
|
||||
<string name="gpuinfo_powervr">Системен драйвер PowerVR: съвместимостта варира според устройството</string>
|
||||
<string name="gpuinfo_xclipse">Експериментално: RADV или системният драйвер Xclipse</string>
|
||||
@@ -2399,7 +2385,6 @@
|
||||
<string name="gpuinfo_unsupported">Не се поддържа: няма съвместим графичен бекенд за този GPU</string>
|
||||
<string name="gpuinfo_bridge">Работи през моста Mali, със собствения драйвер Vulkan на телефона</string>
|
||||
<string name="gpuinfo_bridge_off">Не се поддържа, когато мостът Mali е изключен: Turnip изисква графичен процесор Adreno (Snapdragon)</string>
|
||||
|
||||
<string name="turnip_rate_limited">Достигнато е ограничението на GitHub за заявки - опитай отново по-късно</string>
|
||||
<string name="turnip_github_http">GitHub отговори с HTTP %1$d</string>
|
||||
<string name="turnip_download_failed">Изтеглянето не успя</string>
|
||||
@@ -2420,16 +2405,12 @@
|
||||
<string name="bundle_no_manifest">Не е пакет с драйвери: няма manifest.json, посочващ драйвер за Android и за Linux</string>
|
||||
<string name="bundle_entry_outside">Не е пакет с драйвери: %1$s сочи извън него</string>
|
||||
<string name="bundle_too_large">Не е пакет с драйвери: при разопаковане надхвърля %1$d MB</string>
|
||||
|
||||
<string name="gstore_sd_card">SD карта</string>
|
||||
<string name="gstore_folder">Папка</string>
|
||||
|
||||
<string name="logshare_chooser">Споделяне на логовете от сесията</string>
|
||||
|
||||
<string name="hdr_needs_android_10">изисква Android 10 или по-нова версия (слоеве на екрана с цветово пространство)</string>
|
||||
<string name="hdr_none">този екран не отчита поддръжка на HDR</string>
|
||||
<string name="hdr_not_hdr10">този екран поддържа %1$s, не HDR10</string>
|
||||
|
||||
<string name="gpu_this_gpu">този GPU</string>
|
||||
<string name="phantom_title_on">Ограничението за дъщерни процеси е включено</string>
|
||||
<string name="phantom_title_unset">Ограничението за дъщерни процеси не е зададено</string>
|
||||
@@ -2503,7 +2484,6 @@
|
||||
<string name="device_info_copied">Копирано.</string>
|
||||
<string name="force_ssbs_title">Принудително SSBS</string>
|
||||
<string name="force_ssbs_hint">Поддържа настройка за скоростта на процесора, която Wine непрекъснато изключва. Може да ускори Windows игрите на Snapdragon 8 Elite; при по-стари чипове промяната е малка. Прилага се при следващото стартиране на игра.</string>
|
||||
|
||||
<string name="rail_stores">Магазини</string>
|
||||
<string name="source_steam">Steam</string>
|
||||
<string name="source_added">Персонализирана</string>
|
||||
@@ -2989,7 +2969,6 @@
|
||||
<string name="touch_icon_color">Цвят на иконата</string>
|
||||
<string name="touch_button_color">Цвят на бутона</string>
|
||||
<string name="touch_no_icon">Без икона</string>
|
||||
|
||||
<string name="stores_sync_sign_in">Проверка на вписването…</string>
|
||||
<string name="stores_sync_library">Извличане на библиотеката ви…</string>
|
||||
<string name="stores_sync_game_list">Извличане на списъка с игри…</string>
|
||||
@@ -3777,6 +3756,7 @@
|
||||
<string name="sync_not_running">Syncthing не работи.</string>
|
||||
<string name="session_end_steam_sigill">Steam спря с невалидна инструкция (SIGILL). Това може да е проблем със съвместимостта на CPU инструкциите или срив на клиента. Споделете дневниците с данни за устройството си.</string>
|
||||
<string name="session_end_steam_try_x64">Можете да опитате Настройки на Steam → Клиент на Steam → x86-64 (експериментално). Изисква допълнително изтегляне и може да работи по-бавно.</string>
|
||||
<string name="session_end_fex_kernel">Програмите за x86 и клиентът на Steam за x86-64 работят чрез FEX, който не може да работи с ядрото на Linux на това устройство (%1$s).</string>
|
||||
<string name="session_end_vulkan_device">Графичният драйвер на Linux не намери използваемо устройство Vulkan. Проверете дали избраният GPU драйвер за Linux поддържа този GPU.</string>
|
||||
<string name="session_end_gpu_unsupported">Тази сесия не може да започне, защото този GPU няма съвместим Vulkan драйвер за Linux в текущата настройка. Драйверите Adreno Turnip не могат да добавят поддръжка за GPU на MediaTek/Mali.</string>
|
||||
<string name="setup_group_memory">Памет</string>
|
||||
@@ -4026,10 +4006,8 @@
|
||||
<string name="input_show_label">Показване на етикета</string>
|
||||
<string name="input_layout_import_failed">Това разположение не можа да бъде импортирано</string>
|
||||
<string name="epic_third_party_managed">Инсталира се чрез %1$s</string>
|
||||
|
||||
<string name="theme_white_red">Ален сняг</string>
|
||||
<string name="theme_white_red_detail">Бели повърхности с червени акценти.</string>
|
||||
|
||||
<string name="rail_soundtracks">Саундтраци</string>
|
||||
<string name="rail_music">Музика</string>
|
||||
<string name="soundtracks_options">Опции за възпроизвеждане</string>
|
||||
@@ -4106,4 +4084,9 @@
|
||||
<string name="hud_readings_shown">Показани</string>
|
||||
<string name="hud_readings_count">%1$d от %2$d</string>
|
||||
<string name="exit_hint_back">Натиснете отново „Назад“, за да излезете</string>
|
||||
</resources>
|
||||
<string name="display_integer_scaling">Целочислено мащабиране</string>
|
||||
<string name="display_integer_scaling_hint">Използва най-големия цял коефициент на мащабиране, който се побира. Възможно е изрязване на краищата. Ако източникът е по-голям от изхода, дробното мащабиране показва цялото изображение. Разделителната способност се настройва отделно.</string>
|
||||
<string name="display_scaling_integer">Цяло число</string>
|
||||
<string name="display_scaling_fit">Побиране</string>
|
||||
<string name="drawer_antialiasing">Заглаждане на ръбовете</string>
|
||||
</resources>
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<resources>
|
||||
<string name="steamvr_recovery_title">Grafika SteamVR přestala fungovat</string>
|
||||
<string name="steamvr_recovery_countdown">DroidDeck se za %1$d s restartuje, aby resetoval grafiku a znovu otevřel SteamVR. Spuštěná hra se zavře; neuložený postup nelze obnovit.</string>
|
||||
@@ -357,7 +357,7 @@
|
||||
<string name="mode_return_after_game">Po hře se vrátit do DroidDeck</string>
|
||||
<string name="mode_return_after_game_hint">Když se zavře hra spuštěná z DroidDeck nebo jiného launcheru, Steam se čistě ukončí (nejprve dokončí cloudová uložení) a vrátíte se tam. Vypnuto: zůstanete ve Steamu.</string>
|
||||
<string name="mode_shader_precache">Předběžné ukládání shaderů</string>
|
||||
<string name="mode_shader_precache_hint">Steam stahuje předem sestavené shadery pro vaše hry a zpracovává je na pozadí, takže hry méně trhají. Vypnutí šetří data, úložiště a baterii; hry pak shadery sestavují během hraní. Stejné nastavení jako Stahování > Předběžné ukládání shaderů ve Steamu. Použije se od příští relace.</string>
|
||||
<string name="mode_shader_precache_hint">Steam stahuje předem sestavené shadery pro vaše hry a zpracovává je na pozadí, takže hry méně trhají. Vypnutí šetří data, úložiště a baterii; hry pak shadery sestavují během hraní. Stejné nastavení jako Stahování > Předběžné ukládání shaderů ve Steamu. Použije se od příští relace.</string>
|
||||
<string name="mode_steam_repair">Opravit klienta Steam</string>
|
||||
<string name="mode_steam_repair_hint">Při dalším spuštění znovu stáhne klienta Steam. Použijte, pokud Steam zůstává na načítací obrazovce. Hry, přihlášení a nastavení zůstanou zachovány.</string>
|
||||
<string name="mode_steam_repair_queued">Klient Steam se znovu stáhne při dalším spuštění Steamu.</string>
|
||||
@@ -679,6 +679,8 @@
|
||||
<string name="drawer_page_display">Displej</string>
|
||||
<string name="drawer_frame_limit">Limit snímků</string>
|
||||
<string name="drawer_frame_limit_note">Omezí tuto hru. Displej se přepne na obnovovací frekvenci, kterou limit beze zbytku dělí, pokud nějakou má; jiné limity mohou působit nerovnoměrně. Hry ze Steamu používají Limit snímků Steamu v nabídce Rychlý přístup.</string>
|
||||
<string name="drawer_bfi">Vkládání černých snímků</string>
|
||||
<string name="drawer_bfi_note">Ostřejší pohyb: po každém snímku následuje černé obnovení. Vyžaduje 100 Hz a více; hra běží na polovině obnovovací frekvence a je tmavší. Vypnuto při generování snímků.</string>
|
||||
<string name="drawer_page_effects">Efekty</string>
|
||||
<string name="drawer_page_controls">Ovládání</string>
|
||||
<string name="drawer_page_components">Komponenty</string>
|
||||
@@ -712,7 +714,10 @@
|
||||
<string name="hud_size_mega">Mega</string>
|
||||
<string name="hud_size_strip">Lišta</string>
|
||||
<string name="hud_locked">Zamknout na místě</string>
|
||||
<string name="hud_locked_hint">Přetažením HUD přesunete; dlouhým stiskem ho zamknete nebo odemknete. Když je zamknutý, ovládací prvky na obrazovce pod ním dál fungují.</string>
|
||||
<string name="hud_locked_hint">Přetažením HUD přesunete. Když je zamknutý, ovládací prvky na obrazovce pod ním dál fungují.</string>
|
||||
<string name="hud_hold">Dlouhý stisk</string>
|
||||
<string name="hud_hold_collapse">Sbalit nebo rozbalit</string>
|
||||
<string name="hud_hold_lock">Zamknout nebo odemknout</string>
|
||||
<string name="hud_snap">Přichytit ke stranám</string>
|
||||
<string name="hud_snap_hint">Pusťte HUD a přesune se k bližší straně obrazovky. Rychlým švihnutím ho hodíte tím směrem.</string>
|
||||
<string name="hud_group_look">Vzhled</string>
|
||||
@@ -1149,7 +1154,7 @@
|
||||
<string name="lab_off_title">Laboratorní sestavení vypnuto</string>
|
||||
<string name="lab_off_other_install">Bylo vytvořeno pro jinou verzi aplikace DroidDeck. Zůstává v Aktualizacích.</string>
|
||||
<string name="lab_off_did_not_start">DroidDeck se na něm dvakrát nespustil.</string>
|
||||
<string name="rail_agent">Agent</string>
|
||||
<string name="rail_agent">Dev Harness</string>
|
||||
<string name="agent_channel_name">Agent</string>
|
||||
<string name="agent_working">Agent pracuje</string>
|
||||
<string name="agent_missing">Chcete-li používat agenta, nainstalujte Claude Code v uživatelském prostředí Linuxu.</string>
|
||||
@@ -1189,6 +1194,7 @@
|
||||
<string name="agent_hint_working">Psaním zařadíte další zprávu do fronty</string>
|
||||
<string name="agent_queue">Zařadit do fronty</string>
|
||||
<string name="agent_queued">Další: %1$s</string>
|
||||
<string name="agent_tools_missing">Nástroje agenta nejsou nainstalované: %1$s</string>
|
||||
<string name="agent_unqueue">Neposílat</string>
|
||||
<string name="agent_attach">Přiložit</string>
|
||||
<string name="agent_remove_attachment">Odebrat</string>
|
||||
@@ -1603,7 +1609,6 @@
|
||||
<string name="game_file_folder">Vybrat složku pro soubory her frontendu</string>
|
||||
<string name="game_file_exported">Soubory hry uloženy do %1$s</string>
|
||||
<string name="game_frontend_files">Soubory frontendu</string>
|
||||
|
||||
<string name="main_wait_runtime">Počkejte, až skončí operace s runtime</string>
|
||||
<string name="main_wait_proton_install">Počkejte, až skončí instalace nástroje kompatibility</string>
|
||||
<string name="load_compat_title">Příprava nástrojů kompatibility</string>
|
||||
@@ -1699,7 +1704,6 @@
|
||||
<string name="main_removing_runtime">Odstraňování runtime Linuxu</string>
|
||||
<string name="main_settings_main_screen">Nepodařilo se otevřít Nastavení na spodní obrazovce; otevřelo se na hlavní obrazovce.</string>
|
||||
<string name="main_open_dev_options">Otevřít Možnosti pro vývojáře v Nastavení</string>
|
||||
|
||||
<string name="upd_unknown_apps_failed">Nepodařilo se otevřít nastavení Androidu „Instalace neznámých aplikací“</string>
|
||||
<string name="upd_couldnt_check">Nepodařilo se zkontrolovat: %1$s</string>
|
||||
<string name="upd_no_download">Toto sestavení nemá stažení pro tuto kopii DroidDecku</string>
|
||||
@@ -1709,12 +1713,10 @@
|
||||
<string name="upd_stage_confirm">Čeká na vaše potvrzení</string>
|
||||
<string name="upd_failed">Aktualizace se nezdařila</string>
|
||||
<string name="upd_not_offered">Android nenabídl instalaci aktualizace</string>
|
||||
|
||||
<string name="decky_install_failed">Instalace Decky se nezdařila: %1$s</string>
|
||||
<string name="decky_plugin_starting">Spouštění importu pluginu…</string>
|
||||
<string name="decky_plugin_failed">Import pluginu se nezdařil: %1$s</string>
|
||||
<string name="decky_plugin_installed">Plugin nainstalován. Restartujte Steam, aby se načetl.</string>
|
||||
|
||||
<string name="drivers_not_checked">Zatím nezkontrolováno - klepnutím na obnovit vyhledáte nové ovladače</string>
|
||||
<string name="drivers_bundle_sets_display">Android + Linux: zároveň nastaví ovladač zobrazení</string>
|
||||
<string name="drivers_bundle_sets_runtime">Android + Linux: zároveň nastaví ovladač runtime</string>
|
||||
@@ -1773,7 +1775,6 @@
|
||||
<string name="drivers_check_failed">kontrola se nezdařila</string>
|
||||
<string name="drivers_installed_pick_either">Nainstalováno %1$s - vyberte ho v kterémkoli seznamu pro nastavení obou ovladačů</string>
|
||||
<string name="drivers_installed_pick">Nainstalováno %1$s - vyberte ho v nabídce</string>
|
||||
|
||||
<string name="session_wait_removal">Počkejte, až skončí odstranění runtime</string>
|
||||
<string name="session_title_game">Hra</string>
|
||||
<string name="session_touch_auto_touchpad">touchpad</string>
|
||||
@@ -1823,7 +1824,6 @@
|
||||
<item quantity="many">V logu je %1$d chyb „Function not implemented“: akcelerace seccomp v proot zde selhává u pomocné funkce na tomto zařízení. Zkuste %2$s → „%3$s“ (nebo „%4$s“) a spusťte to znovu.</item>
|
||||
<item quantity="other">V logu je %1$d chyb „Function not implemented“: akcelerace seccomp v proot zde selhává u pomocné funkce na tomto zařízení. Zkuste %2$s → „%3$s“ (nebo „%4$s“) a spusťte to znovu.</item>
|
||||
</plurals>
|
||||
|
||||
<string name="mode_decky_plugins">Pluginy</string>
|
||||
<string name="mode_decky_plugins_hint">Nainstalujte ZIP s pluginem pro další relaci Steamu.</string>
|
||||
<string name="mode_decky_plugin_downloading">Stahování…</string>
|
||||
@@ -2194,7 +2194,6 @@
|
||||
<string name="bottom_telemetry_elite">Elite Dangerous</string>
|
||||
<string name="bottom_telemetry_unknown_format">Port %1$d přijímá data (%2$d paketů po %3$d bajtech), ale ve formátu, který tato stránka zatím neumí přečíst.</string>
|
||||
<string name="bottom_telemetry_port_busy">Port %1$s již používá jiný program, takže se zde tato hra nemůže zobrazit.</string>
|
||||
|
||||
<string name="rtinst_removing">Odstraňování runtime Linuxu</string>
|
||||
<plurals name="rtinst_removing_entries">
|
||||
<item quantity="one">Odstraňování runtime Linuxu · %1$d položka</item>
|
||||
@@ -2211,7 +2210,6 @@
|
||||
<string name="rtinst_channel_description">Zobrazuje se při instalaci nebo odstraňování runtime Linuxu</string>
|
||||
<string name="rtinst_title_installing">Instalace runtime Linuxu</string>
|
||||
<string name="rtinst_title_removing">Odstraňování runtime Linuxu</string>
|
||||
|
||||
<string name="deskpkg_runtime_missing">Runtime Linuxu není nainstalován</string>
|
||||
<string name="deskpkg_no_checksum">Katalog neobsahuje kontrolní součet pro %1$s</string>
|
||||
<string name="deskpkg_checksum_mismatch">Neshoda kontrolního součtu - nic se nezměnilo</string>
|
||||
@@ -2219,7 +2217,6 @@
|
||||
<string name="deskpkg_place_failed">Nepodařilo se umístit AppImage</string>
|
||||
<string name="deskpkg_extract_failed">Rozbalení se nezdařilo</string>
|
||||
<string name="deskpkg_install_failed">Instalace se nezdařila</string>
|
||||
|
||||
<string name="flatpakmgr_setup_failed">Nastavení Flatpaku se nezdařilo (návratový kód %1$d)</string>
|
||||
<string name="flatpakmgr_setup_unfinished">Nastavení Flatpaku se nedokončilo</string>
|
||||
<string name="flatpakmgr_busy">Běží jiná úloha obchodu</string>
|
||||
@@ -2238,7 +2235,6 @@
|
||||
<string name="flatpakmgr_ref_media_codecs">multimediální kodeky</string>
|
||||
<string name="flatpakmgr_ref_runtime">runtime %1$s</string>
|
||||
<string name="flatpakmgr_ref_runtime_branch">runtime %1$s %2$s</string>
|
||||
|
||||
<string name="appimg_too_small">Soubor je příliš malý na to, aby byl AppImage</string>
|
||||
<string name="appimg_unreadable">Soubor nelze přečíst: %1$s</string>
|
||||
<string name="appimg_not_linux">Toto není AppImage (nejde o program pro Linux)</string>
|
||||
@@ -2253,7 +2249,6 @@
|
||||
<string name="appimg_extracting">Rozbalování %1$s</string>
|
||||
<string name="appimg_extract_failed">AppImage se nepodařilo rozbalit</string>
|
||||
<string name="appimg_extract_failed_detail">AppImage se nepodařilo rozbalit: %1$s</string>
|
||||
|
||||
<string name="deckymgr_stop_session_loader">Před instalací Decky Loader zastavte aktivní relaci</string>
|
||||
<string name="deckymgr_download_failed">Stažení Decky Loader se nezdařilo</string>
|
||||
<string name="deckymgr_size_mismatch">Velikost Decky Loader neodpovídala metadatům vydání</string>
|
||||
@@ -2302,13 +2297,11 @@
|
||||
<string name="deckymgr_activate_failed">Nepodařilo se aktivovat importovaný plugin</string>
|
||||
<string name="deckymgr_settings_failed">Nepodařilo se aktualizovat nastavení pluginu Decky</string>
|
||||
<string name="deckymgr_restore_failed">Nepodařilo se obnovit stávající plugin</string>
|
||||
|
||||
<string name="adbfix_save_failed">Nepodařilo se uložit identitu bezdrátového ladění</string>
|
||||
<string name="adbfix_command_failed">Příkaz ADB se nezdařil (%1$d)</string>
|
||||
<string name="adbfix_not_confirmed">Android nepotvrdil změnu limitu procesů potomků: %1$s</string>
|
||||
<string name="adbfix_no_pairing">Není uloženo žádné párování bezdrátového ladění</string>
|
||||
<string name="adbfix_enter_address">Zadejte aktuální IP adresu a port bezdrátového ladění</string>
|
||||
|
||||
<string name="adbpair_timed_out">Čekání na vyskakovací okno pro párování vypršelo. Zkuste to znovu z DroidDecku.</string>
|
||||
<string name="adbpair_discovery_failed_code">Nepodařilo se vyhledat vyskakovací okno pro párování (%1$d). Zkontrolujte, že je zapnutá Wi-Fi.</string>
|
||||
<string name="adbpair_discovery_failed">Nepodařilo se vyhledat vyskakovací okno pro párování: %1$s</string>
|
||||
@@ -2334,7 +2327,6 @@
|
||||
<string name="adbpair_title_done">Steam je připraven</string>
|
||||
<string name="adbpair_done_text">Klepnutím se vrátíte do DroidDecku. Bezdrátové ladění teď můžete vypnout.</string>
|
||||
<string name="adbpair_title_failed">Nastavení bezdrátového ladění bylo zastaveno</string>
|
||||
|
||||
<string name="selfinst_download_failed">Stahování selhalo</string>
|
||||
<string name="selfinst_size_mismatch">Velikost stahování neodpovídala zveřejněnému APK a bylo zahozeno - zkuste to znovu</string>
|
||||
<string name="selfinst_checksum_mismatch">Stahování neodpovídalo svému kontrolnímu součtu a bylo zahozeno - zkuste to znovu</string>
|
||||
@@ -2347,13 +2339,11 @@
|
||||
<string name="selfinst_no_signing">Stažené APK nemá žádné informace o podpisu</string>
|
||||
<string name="selfinst_wrong_signer">Stažené APK není podepsáno vydávacím klíčem DroidDecku</string>
|
||||
<string name="appupd_http">Katalog aktualizací odpověděl HTTP %1$d</string>
|
||||
|
||||
<string name="loadstate_starting">Spouštění relace…</string>
|
||||
<string name="loadstate_elapsed">%1$d:%2$02d uplynulo · stále pracuje</string>
|
||||
<string name="loadstate_steam_update">Stahování aktualizace klienta Steam · %1$d%%</string>
|
||||
<string name="loadstate_steam_update_applying">Instaluje se aktualizace klienta Steam…</string>
|
||||
<string name="loadstate_steam_client">Stahování klienta Steam · %1$s</string>
|
||||
|
||||
<string name="pextra_busy">Instalace nástroje kompatibility už běží</string>
|
||||
<string name="pextra_stop_session">Před instalací nástrojů kompatibility zastavte aktivní relaci</string>
|
||||
<string name="pextra_no_release">Nepodařilo se najít vydání ARM64 pro %1$s</string>
|
||||
@@ -2373,7 +2363,6 @@
|
||||
<string name="pextra_install_failed">Instalace %1$s se nezdařila (návratový kód %2$d)</string>
|
||||
<string name="pextra_could_not_install">Nepodařilo se nainstalovat %1$s</string>
|
||||
<string name="esync_fetching">Stahování balíčku droiddeck-esync</string>
|
||||
|
||||
<string name="cmgr_fex_linux_helpers">s pomocnými nástroji pro Linux</string>
|
||||
<string name="cmgr_fex_dlls_only">Jen DLL</string>
|
||||
<string name="cmgr_original_proton_updated">Původní (Proton byl od posledního přepnutí aktualizován)</string>
|
||||
@@ -2396,13 +2385,11 @@
|
||||
<string name="cmgr_nightly_replaced">Stažení selhalo: tento noční build mohl být nahrazen novějším. Obnovte seznam a zkuste to znovu.</string>
|
||||
<string name="cmgr_list_predates_checksums">Tento seznam balíčků předchází kontrolním součtům - obnovte ho a zkuste to znovu</string>
|
||||
<string name="cmgr_checksum_mismatch">Neshoda kontrolního součtu</string>
|
||||
|
||||
<string name="sprefs_upscaler_linear">Lineární</string>
|
||||
<string name="sprefs_upscaler_nearest">Nejbližší</string>
|
||||
<string name="sprefs_upscaler_gsr_quality">Snapdragon GSR (kvalita)</string>
|
||||
<string name="sprefs_upscaler_sharpen">Jen zaostření</string>
|
||||
<string name="sprefs_lod_bias_auto">Automaticky (podle škálování)</string>
|
||||
|
||||
<string name="look_off_desc">Nic není použito.</string>
|
||||
<string name="look_game_clarity">Herní jasnost</string>
|
||||
<string name="look_game_clarity_desc">Zaostření s trochou kontrastu - ten každodenní.</string>
|
||||
@@ -2426,7 +2413,6 @@
|
||||
<string name="look_pixel_clean_desc">Ostré pixely pro 2D a staré hry.</string>
|
||||
<string name="look_anime_edge">Anime hrany</string>
|
||||
<string name="look_anime_edge_desc">Kreslené obrysy plus zaostření.</string>
|
||||
|
||||
<string name="gpuinfo_not_adreno">Není GPU Adreno</string>
|
||||
<string name="gpuinfo_powervr">Systémový ovladač PowerVR: kompatibilita se liší podle zařízení</string>
|
||||
<string name="gpuinfo_xclipse">Experimentální: RADV nebo systémový ovladač Xclipse</string>
|
||||
@@ -2451,7 +2437,6 @@
|
||||
<string name="gpuinfo_unsupported">Nepodporováno: pro tento GPU není k dispozici kompatibilní grafický backend</string>
|
||||
<string name="gpuinfo_bridge">Běží přes most Mali na vlastním ovladači Vulkan telefonu</string>
|
||||
<string name="gpuinfo_bridge_off">S vypnutým mostem Mali není podporováno: Turnip potřebuje GPU Adreno (Snapdragon)</string>
|
||||
|
||||
<string name="turnip_rate_limited">Byl dosažen limit požadavků GitHubu - zkuste to později</string>
|
||||
<string name="turnip_github_http">GitHub odpověděl HTTP %1$d</string>
|
||||
<string name="turnip_download_failed">Stahování selhalo</string>
|
||||
@@ -2472,16 +2457,12 @@
|
||||
<string name="bundle_no_manifest">Není balíček ovladačů: chybí manifest.json s názvy ovladače pro Android a Linux</string>
|
||||
<string name="bundle_entry_outside">Není balíček ovladačů: %1$s odkazuje mimo něj</string>
|
||||
<string name="bundle_too_large">Není balíček ovladačů: po rozbalení přesáhne %1$d MB</string>
|
||||
|
||||
<string name="gstore_sd_card">SD karta</string>
|
||||
<string name="gstore_folder">Složka</string>
|
||||
|
||||
<string name="logshare_chooser">Sdílet logy relace</string>
|
||||
|
||||
<string name="hdr_needs_android_10">vyžaduje Android 10 nebo novější (vrstvy displeje s barevným prostorem)</string>
|
||||
<string name="hdr_none">tento displej neuvádí podporu HDR</string>
|
||||
<string name="hdr_not_hdr10">tento displej podporuje %1$s, ne HDR10</string>
|
||||
|
||||
<string name="gpu_this_gpu">toto GPU</string>
|
||||
<string name="phantom_title_on">Limit procesů potomků je zapnutý</string>
|
||||
<string name="phantom_title_unset">Limit procesů potomků není nastavený</string>
|
||||
@@ -2555,7 +2536,6 @@
|
||||
<string name="device_info_copied">Zkopírováno.</string>
|
||||
<string name="force_ssbs_title">Vynutit SSBS</string>
|
||||
<string name="force_ssbs_hint">Udržuje zapnuté nastavení rychlosti CPU, které Wine stále vypíná. Může zrychlit Windows hry na Snapdragonu 8 Elite; na starších čipech je rozdíl malý. Použije se při příštím spuštění hry.</string>
|
||||
|
||||
<string name="rail_stores">Obchody</string>
|
||||
<string name="source_steam">Steam</string>
|
||||
<string name="source_added">Vlastní</string>
|
||||
@@ -3047,7 +3027,6 @@
|
||||
<string name="touch_icon_color">Barva ikony</string>
|
||||
<string name="touch_button_color">Barva tlačítka</string>
|
||||
<string name="touch_no_icon">Bez ikony</string>
|
||||
|
||||
<string name="stores_sync_sign_in">Ověřování přihlášení…</string>
|
||||
<string name="stores_sync_library">Načítání vaší knihovny…</string>
|
||||
<string name="stores_sync_game_list">Načítání seznamu her…</string>
|
||||
@@ -3855,6 +3834,7 @@
|
||||
<string name="sync_not_running">Syncthing neběží.</string>
|
||||
<string name="session_end_steam_sigill">Steam se zastavil na neplatné instrukci (SIGILL). Může jít o problém s kompatibilitou instrukcí CPU nebo o pád klienta. Sdílejte protokoly s údaji o zařízení.</string>
|
||||
<string name="session_end_steam_try_x64">Můžete zkusit Nastavení Steamu → Klient Steam → x86-64 (experimentální). Vyžaduje další stahování a může běžet pomaleji.</string>
|
||||
<string name="session_end_fex_kernel">Programy x86 a klient Steam x86-64 běží přes FEX, který na jádře Linuxu tohoto zařízení (%1$s) běžet nemůže.</string>
|
||||
<string name="session_end_vulkan_device">Grafický ovladač Linuxu nenašel použitelné zařízení Vulkan. Zkontrolujte, zda vybraný ovladač GPU pro Linux toto GPU podporuje.</string>
|
||||
<string name="session_end_gpu_unsupported">Tuto relaci nelze spustit, protože toto GPU nemá v aktuálním nastavení kompatibilní ovladač Vulkan pro Linux. Ovladače Adreno Turnip nemohou zapnout podporu GPU MediaTek/Mali.</string>
|
||||
<string name="setup_group_memory">Paměť</string>
|
||||
@@ -4106,10 +4086,8 @@
|
||||
<string name="input_show_label">Zobrazit popisek</string>
|
||||
<string name="input_layout_import_failed">Toto rozložení nelze importovat</string>
|
||||
<string name="epic_third_party_managed">Instaluje se přes %1$s</string>
|
||||
|
||||
<string name="theme_white_red">Šarlatový sníh</string>
|
||||
<string name="theme_white_red_detail">Bílé povrchy s červenými akcenty.</string>
|
||||
|
||||
<string name="rail_soundtracks">Soundtracky</string>
|
||||
<string name="rail_music">Hudba</string>
|
||||
<string name="soundtracks_options">Možnosti přehrávání</string>
|
||||
@@ -4186,4 +4164,9 @@
|
||||
<string name="hud_readings_shown">Zobrazeno</string>
|
||||
<string name="hud_readings_count">%1$d z %2$d</string>
|
||||
<string name="exit_hint_back">Stiskněte znovu zpět pro ukončení</string>
|
||||
</resources>
|
||||
<string name="display_integer_scaling">Celočíselné škálování</string>
|
||||
<string name="display_integer_scaling_hint">Použije největší celočíselné měřítko, které se vejde. Může oříznout okraje. Pokud je zdroj větší než výstup, zlomkové měřítko zobrazí celý obraz. Rozlišení se nastavuje samostatně.</string>
|
||||
<string name="display_scaling_integer">Celé číslo</string>
|
||||
<string name="display_scaling_fit">Přizpůsobit</string>
|
||||
<string name="drawer_antialiasing">Vyhlazování hran</string>
|
||||
</resources>
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<resources>
|
||||
<string name="steamvr_recovery_title">SteamVR-grafikken stoppede</string>
|
||||
<string name="steamvr_recovery_countdown">DroidDeck genstarter om %1$d sekunder for at nulstille grafikken og åbne SteamVR igen. Dit kørende spil lukkes; ikke-gemte fremskridt kan ikke gendannes.</string>
|
||||
@@ -357,7 +357,7 @@
|
||||
<string name="mode_return_after_game">Vend tilbage til DroidDeck efter et spil</string>
|
||||
<string name="mode_return_after_game_hint">Når et spil, du startede fra DroidDeck eller en anden launcher, lukkes, afslutter Steam pænt (cloud-gemninger afsluttes først), og du vender tilbage dertil. Fra: bliv i Steam.</string>
|
||||
<string name="mode_shader_precache">Shader-forhåndscaching</string>
|
||||
<string name="mode_shader_precache_hint">Steam downloader forudbyggede shadere til dine spil og behandler dem i baggrunden, så spil hakker mindre. Fra sparer data, lagerplads og batteri; spil bygger i stedet shadere undervejs. Samme indstilling som Steams Downloads > Shader Pre-Caching. Gælder fra næste session.</string>
|
||||
<string name="mode_shader_precache_hint">Steam downloader forudbyggede shadere til dine spil og behandler dem i baggrunden, så spil hakker mindre. Fra sparer data, lagerplads og batteri; spil bygger i stedet shadere undervejs. Samme indstilling som Steams Downloads > Shader Pre-Caching. Gælder fra næste session.</string>
|
||||
<string name="mode_steam_repair">Reparer Steam-klienten</string>
|
||||
<string name="mode_steam_repair_hint">Downloader Steam-klienten igen, næste gang Steam starter. Brug det, hvis Steam bliver hængende på sin indlæsningsskærm. Spil, login og indstillinger bevares.</string>
|
||||
<string name="mode_steam_repair_queued">Steam-klienten downloades igen, næste gang Steam starter.</string>
|
||||
@@ -675,6 +675,8 @@
|
||||
<string name="drawer_page_display">Skærm</string>
|
||||
<string name="drawer_frame_limit">Billedgrænse</string>
|
||||
<string name="drawer_frame_limit_note">Begrænser dette spil. Skærmen skifter til en opdateringshastighed, som grænsen går lige op i, når den har en; andre grænser kan virke ujævne. Steam-spil bruger Steams Frame Limit i Hurtig adgang-menuen.</string>
|
||||
<string name="drawer_bfi">Indsættelse af sorte billeder</string>
|
||||
<string name="drawer_bfi_note">Skarpere bevægelse: hvert billede efterfølges af en sort opdatering. Kræver 100 Hz eller mere; spillet kører ved halv opdateringshastighed og ser mørkere ud. Slået fra under billedgenerering.</string>
|
||||
<string name="drawer_page_effects">Effekter</string>
|
||||
<string name="drawer_page_controls">Kontroller</string>
|
||||
<string name="drawer_page_components">Komponenter</string>
|
||||
@@ -708,7 +710,10 @@
|
||||
<string name="hud_size_mega">Mega</string>
|
||||
<string name="hud_size_strip">Bjælke</string>
|
||||
<string name="hud_locked">Lås fast</string>
|
||||
<string name="hud_locked_hint">Træk i HUD for at flytte det; et langt tryk låser eller frigør det. Mens det er låst, virker skærmknapperne under det stadig.</string>
|
||||
<string name="hud_locked_hint">Træk i HUD for at flytte det. Mens det er låst, virker skærmknapperne under det stadig.</string>
|
||||
<string name="hud_hold">Langt tryk</string>
|
||||
<string name="hud_hold_collapse">Skjul eller udvid</string>
|
||||
<string name="hud_hold_lock">Lås eller frigør</string>
|
||||
<string name="hud_snap">Fastgør til siderne</string>
|
||||
<string name="hud_snap_hint">Slip HUD\'en, så flytter den sig til skærmens nærmeste side. Et hurtigt stryg kaster den i den retning.</string>
|
||||
<string name="hud_group_look">Udseende</string>
|
||||
@@ -1143,7 +1148,7 @@
|
||||
<string name="lab_off_title">Lab-build slået fra</string>
|
||||
<string name="lab_off_other_install">Den blev bygget til en anden version af DroidDeck. Den ligger stadig i Opdateringer.</string>
|
||||
<string name="lab_off_did_not_start">DroidDeck startede ikke på den to gange</string>
|
||||
<string name="rail_agent">Agent</string>
|
||||
<string name="rail_agent">Dev Harness</string>
|
||||
<string name="agent_channel_name">Agent</string>
|
||||
<string name="agent_working">Agenten arbejder</string>
|
||||
<string name="agent_missing">Installer Claude Code i Linux-brugermiljøet for at bruge agenten.</string>
|
||||
@@ -1183,6 +1188,7 @@
|
||||
<string name="agent_hint_working">Skriv for at sætte den næste besked i kø</string>
|
||||
<string name="agent_queue">Sæt i kø</string>
|
||||
<string name="agent_queued">Næste: %1$s</string>
|
||||
<string name="agent_tools_missing">Agentens værktøjer er ikke installeret: %1$s</string>
|
||||
<string name="agent_unqueue">Send ikke</string>
|
||||
<string name="agent_attach">Vedhæft</string>
|
||||
<string name="agent_remove_attachment">Fjern</string>
|
||||
@@ -1587,7 +1593,6 @@
|
||||
<string name="game_file_folder">Vælg en mappe til frontend-spilfiler</string>
|
||||
<string name="game_file_exported">Spilfiler gemt i %1$s</string>
|
||||
<string name="game_frontend_files">Frontend-filer</string>
|
||||
|
||||
<string name="main_wait_runtime">Vent til runtime-handlingen er færdig</string>
|
||||
<string name="main_wait_proton_install">Vent til installationen af kompatibilitetsværktøjet er færdig</string>
|
||||
<string name="load_compat_title">Forbereder kompatibilitetsværktøjer</string>
|
||||
@@ -1673,7 +1678,6 @@
|
||||
<string name="main_removing_runtime">Fjerner Linux-runtime</string>
|
||||
<string name="main_settings_main_screen">Kunne ikke åbne Indstillinger på den nederste skærm; åbnede den på hovedskærmen.</string>
|
||||
<string name="main_open_dev_options">Åbn Indstillinger for udviklere i Indstillinger</string>
|
||||
|
||||
<string name="upd_unknown_apps_failed">Kunne ikke åbne Androids indstilling ”Installer ukendte apps”</string>
|
||||
<string name="upd_couldnt_check">Kunne ikke kontrollere: %1$s</string>
|
||||
<string name="upd_no_download">Denne build har ingen download til denne kopi af DroidDeck</string>
|
||||
@@ -1683,12 +1687,10 @@
|
||||
<string name="upd_stage_confirm">Venter på din bekræftelse</string>
|
||||
<string name="upd_failed">Opdateringen mislykkedes</string>
|
||||
<string name="upd_not_offered">Android tilbød ikke at installere opdateringen</string>
|
||||
|
||||
<string name="decky_install_failed">Decky-installation mislykkedes: %1$s</string>
|
||||
<string name="decky_plugin_starting">Starter import af plugin…</string>
|
||||
<string name="decky_plugin_failed">Import af plugin mislykkedes: %1$s</string>
|
||||
<string name="decky_plugin_installed">Plugin installeret. Genstart Steam for at indlæse det.</string>
|
||||
|
||||
<string name="drivers_not_checked">Ikke kontrolleret endnu - tryk på opdater for at søge efter nye drivere</string>
|
||||
<string name="drivers_bundle_sets_display">Android + Linux: angiver skærmdriveren samtidig</string>
|
||||
<string name="drivers_bundle_sets_runtime">Android + Linux: angiver runtime-driveren samtidig</string>
|
||||
@@ -1741,7 +1743,6 @@
|
||||
<string name="drivers_check_failed">kontrol mislykkedes</string>
|
||||
<string name="drivers_installed_pick_either">Installeret %1$s - vælg den i en af listerne for at angive begge drivere</string>
|
||||
<string name="drivers_installed_pick">Installeret %1$s - vælg den i menuen</string>
|
||||
|
||||
<string name="session_wait_removal">Vent til fjernelse af runtime er færdig</string>
|
||||
<string name="session_title_game">Spil</string>
|
||||
<string name="session_touch_auto_touchpad">touchpad</string>
|
||||
@@ -1787,7 +1788,6 @@
|
||||
<item quantity="one">Loggen viser %1$d \"Function not implemented\"-fejl: proots seccomp-acceleration fejler i en hjælpeproces på denne enhed. Prøv %2$s → \"%3$s\" (eller \"%4$s\"), og start igen.</item>
|
||||
<item quantity="other">Loggen viser %1$d \"Function not implemented\"-fejl: proots seccomp-acceleration fejler i en hjælpeproces på denne enhed. Prøv %2$s → \"%3$s\" (eller \"%4$s\"), og start igen.</item>
|
||||
</plurals>
|
||||
|
||||
<string name="mode_decky_plugins">Plugins</string>
|
||||
<string name="mode_decky_plugins_hint">Installer en plugin-ZIP til den næste Steam-session.</string>
|
||||
<string name="mode_decky_plugin_downloading">Downloader…</string>
|
||||
@@ -2144,7 +2144,6 @@
|
||||
<string name="bottom_telemetry_elite">Elite Dangerous</string>
|
||||
<string name="bottom_telemetry_unknown_format">Port %1$d modtager data (%2$d pakker á %3$d bytes), men i et format, som denne side endnu ikke kan læse.</string>
|
||||
<string name="bottom_telemetry_port_busy">Et andet program bruger allerede port %1$s, så det spil kan ikke vises her.</string>
|
||||
|
||||
<string name="rtinst_removing">Fjerner Linux-runtime</string>
|
||||
<plurals name="rtinst_removing_entries">
|
||||
<item quantity="one">Fjerner Linux-runtime · %1$d element</item>
|
||||
@@ -2159,7 +2158,6 @@
|
||||
<string name="rtinst_channel_description">Vises, mens Linux-runtime installeres eller fjernes</string>
|
||||
<string name="rtinst_title_installing">Installerer Linux-runtime</string>
|
||||
<string name="rtinst_title_removing">Fjerner Linux-runtime</string>
|
||||
|
||||
<string name="deskpkg_runtime_missing">Linux-runtime er ikke installeret</string>
|
||||
<string name="deskpkg_no_checksum">Kataloget har ingen tjeksum for %1$s</string>
|
||||
<string name="deskpkg_checksum_mismatch">Tjeksum stemmer ikke - intet blev ændret</string>
|
||||
@@ -2167,7 +2165,6 @@
|
||||
<string name="deskpkg_place_failed">Kunne ikke placere AppImage</string>
|
||||
<string name="deskpkg_extract_failed">Udpakning mislykkedes</string>
|
||||
<string name="deskpkg_install_failed">Installation mislykkedes</string>
|
||||
|
||||
<string name="flatpakmgr_setup_failed">Flatpak-opsætning mislykkedes (afslutningskode %1$d)</string>
|
||||
<string name="flatpakmgr_setup_unfinished">Flatpak-opsætning blev ikke afsluttet</string>
|
||||
<string name="flatpakmgr_busy">En anden butiksopgave er i gang</string>
|
||||
@@ -2186,7 +2183,6 @@
|
||||
<string name="flatpakmgr_ref_media_codecs">mediecodecs</string>
|
||||
<string name="flatpakmgr_ref_runtime">%1$s-runtime</string>
|
||||
<string name="flatpakmgr_ref_runtime_branch">%1$s-runtime %2$s</string>
|
||||
|
||||
<string name="appimg_too_small">Filen er for lille til at være en AppImage</string>
|
||||
<string name="appimg_unreadable">Filen kan ikke læses: %1$s</string>
|
||||
<string name="appimg_not_linux">Dette er ikke en AppImage (det er ikke et Linux-program)</string>
|
||||
@@ -2201,7 +2197,6 @@
|
||||
<string name="appimg_extracting">Udpakker %1$s</string>
|
||||
<string name="appimg_extract_failed">AppImage kunne ikke udpakkes</string>
|
||||
<string name="appimg_extract_failed_detail">AppImage kunne ikke udpakkes: %1$s</string>
|
||||
|
||||
<string name="deckymgr_stop_session_loader">Stop den aktive session, før du installerer Decky Loader</string>
|
||||
<string name="deckymgr_download_failed">Download af Decky Loader mislykkedes</string>
|
||||
<string name="deckymgr_size_mismatch">Decky Loaders størrelse passede ikke med metadata for udgivelsen</string>
|
||||
@@ -2250,13 +2245,11 @@
|
||||
<string name="deckymgr_activate_failed">Kunne ikke aktivere det importerede plugin</string>
|
||||
<string name="deckymgr_settings_failed">Kunne ikke opdatere Decky-pluginindstillinger</string>
|
||||
<string name="deckymgr_restore_failed">Kunne ikke gendanne det eksisterende plugin</string>
|
||||
|
||||
<string name="adbfix_save_failed">Kunne ikke gemme identitet til Trådløs fejlretning</string>
|
||||
<string name="adbfix_command_failed">ADB-kommando mislykkedes (%1$d)</string>
|
||||
<string name="adbfix_not_confirmed">Android bekræftede ikke, at procesgrænsen blev ændret: %1$s</string>
|
||||
<string name="adbfix_no_pairing">Ingen parring for Trådløs fejlretning er gemt</string>
|
||||
<string name="adbfix_enter_address">Indtast den aktuelle IP-adresse og port for Trådløs fejlretning</string>
|
||||
|
||||
<string name="adbpair_timed_out">Der opstod timeout under venten på parringsvinduet. Forsøg igen fra DroidDeck.</string>
|
||||
<string name="adbpair_discovery_failed_code">Kunne ikke lede efter parringsvinduet (%1$d). Tjek at Wi-Fi er tændt.</string>
|
||||
<string name="adbpair_discovery_failed">Kunne ikke lede efter parringsvinduet: %1$s</string>
|
||||
@@ -2282,7 +2275,6 @@
|
||||
<string name="adbpair_title_done">Steam er klar</string>
|
||||
<string name="adbpair_done_text">Tryk for at gå tilbage til DroidDeck. Du kan slukke Trådløs fejlretning nu.</string>
|
||||
<string name="adbpair_title_failed">Opsætning af Trådløs fejlretning stoppet</string>
|
||||
|
||||
<string name="selfinst_download_failed">Hentningen mislykkedes</string>
|
||||
<string name="selfinst_size_mismatch">Downloadets størrelse passede ikke med den udgivne APK og blev kasseret - forsøg igen</string>
|
||||
<string name="selfinst_checksum_mismatch">Downloadet matchede ikke sin tjeksum og blev kasseret - forsøg igen</string>
|
||||
@@ -2295,13 +2287,11 @@
|
||||
<string name="selfinst_no_signing">Den downloadede APK har ingen signeringsoplysninger</string>
|
||||
<string name="selfinst_wrong_signer">Den downloadede APK er ikke signeret med DroidDecks udgivelsesnøgle</string>
|
||||
<string name="appupd_http">Opdateringskataloget svarede HTTP %1$d</string>
|
||||
|
||||
<string name="loadstate_starting">Starter sessionen…</string>
|
||||
<string name="loadstate_elapsed">%1$d:%2$02d forløbet · arbejder stadig</string>
|
||||
<string name="loadstate_steam_update">Downloader Steam-klientopdateringen · %1$d%%</string>
|
||||
<string name="loadstate_steam_update_applying">Anvender Steam-klientopdateringen…</string>
|
||||
<string name="loadstate_steam_client">Downloader Steam-klienten · %1$s</string>
|
||||
|
||||
<string name="pextra_busy">En installation af et kompatibilitetsværktøj er allerede i gang</string>
|
||||
<string name="pextra_stop_session">Stop den aktive session, før du installerer kompatibilitetsværktøjer</string>
|
||||
<string name="pextra_no_release">Kunne ikke finde en ARM64-udgivelse af %1$s</string>
|
||||
@@ -2321,7 +2311,6 @@
|
||||
<string name="pextra_install_failed">Installation af %1$s mislykkedes (afslutningskode %2$d)</string>
|
||||
<string name="pextra_could_not_install">Kunne ikke installere %1$s</string>
|
||||
<string name="esync_fetching">Henter droiddeck-esync-pakken</string>
|
||||
|
||||
<string name="cmgr_fex_linux_helpers">med Linux-hjælpeprogrammer</string>
|
||||
<string name="cmgr_fex_dlls_only">Kun DLL\'er</string>
|
||||
<string name="cmgr_original_proton_updated">Original (Proton opdateret siden sidste ombytning)</string>
|
||||
@@ -2344,13 +2333,11 @@
|
||||
<string name="cmgr_nightly_replaced">Download mislykkedes: denne nightly kan være erstattet af en nyere build. Opdater listen, og prøv igen.</string>
|
||||
<string name="cmgr_list_predates_checksums">Denne pakkeliste er ældre end tjeksummer - opdater den, og forsøg igen</string>
|
||||
<string name="cmgr_checksum_mismatch">Tjeksum stemmer ikke</string>
|
||||
|
||||
<string name="sprefs_upscaler_linear">Lineær</string>
|
||||
<string name="sprefs_upscaler_nearest">Nærmeste</string>
|
||||
<string name="sprefs_upscaler_gsr_quality">Snapdragon GSR (kvalitet)</string>
|
||||
<string name="sprefs_upscaler_sharpen">Kun skærpning</string>
|
||||
<string name="sprefs_lod_bias_auto">Auto (matcher skalering)</string>
|
||||
|
||||
<string name="look_off_desc">Intet anvendt.</string>
|
||||
<string name="look_game_clarity">Spilklarhed</string>
|
||||
<string name="look_game_clarity_desc">Skærpning med et strejf af kontrast - den til hver dag.</string>
|
||||
@@ -2374,7 +2361,6 @@
|
||||
<string name="look_pixel_clean_desc">Skarpe pixels til 2D og gamle titler.</string>
|
||||
<string name="look_anime_edge">Anime-kant</string>
|
||||
<string name="look_anime_edge_desc">Toon-konturer plus skærpning.</string>
|
||||
|
||||
<string name="gpuinfo_not_adreno">Ikke en Adreno-GPU</string>
|
||||
<string name="gpuinfo_powervr">System-PowerVR-driver: Kompatibiliteten varierer afhængigt af enheden</string>
|
||||
<string name="gpuinfo_xclipse">Eksperimentelt: RADV eller systemets Xclipse-driver</string>
|
||||
@@ -2399,7 +2385,6 @@
|
||||
<string name="gpuinfo_unsupported">Understøttes ikke: ingen kompatibel grafikbackend er tilgængelig for denne GPU</string>
|
||||
<string name="gpuinfo_bridge">Kører via Mali-broen på telefonens egen Vulkan-driver</string>
|
||||
<string name="gpuinfo_bridge_off">Understøttes ikke, når Mali-broen er slået fra: Turnip kræver en Adreno-GPU (Snapdragon)</string>
|
||||
|
||||
<string name="turnip_rate_limited">GitHubs hastighedsgrænse blev nået - forsøg igen senere</string>
|
||||
<string name="turnip_github_http">GitHub svarede HTTP %1$d</string>
|
||||
<string name="turnip_download_failed">Hentningen mislykkedes</string>
|
||||
@@ -2420,16 +2405,12 @@
|
||||
<string name="bundle_no_manifest">Ikke en driverpakke: ingen manifest.json, der angiver en android- og en linux-driver</string>
|
||||
<string name="bundle_entry_outside">Ikke en driverpakke: %1$s peger uden for den</string>
|
||||
<string name="bundle_too_large">Ikke en driverpakke: den udpakkes til mere end %1$d MB</string>
|
||||
|
||||
<string name="gstore_sd_card">SD-kort</string>
|
||||
<string name="gstore_folder">Mappe</string>
|
||||
|
||||
<string name="logshare_chooser">Del sessionslogs</string>
|
||||
|
||||
<string name="hdr_needs_android_10">kræver Android 10 eller nyere (skærmlag med et farverum)</string>
|
||||
<string name="hdr_none">denne skærm rapporterer ingen HDR-understøttelse</string>
|
||||
<string name="hdr_not_hdr10">denne skærm understøtter %1$s, ikke HDR10</string>
|
||||
|
||||
<string name="gpu_this_gpu">denne GPU</string>
|
||||
<string name="phantom_title_on">Procesgrænse er tændt</string>
|
||||
<string name="phantom_title_unset">Procesgrænse er ikke sat</string>
|
||||
@@ -2503,7 +2484,6 @@
|
||||
<string name="device_info_copied">Kopieret.</string>
|
||||
<string name="force_ssbs_title">Tving SSBS</string>
|
||||
<string name="force_ssbs_hint">Bevarer en CPU-hastighedsindstilling, som Wine hele tiden slår fra. Kan gøre Windows-spil hurtigere på Snapdragon 8 Elite; lille ændring set på ældre chips. Træder i kraft ved næste spilstart.</string>
|
||||
|
||||
<string name="rail_stores">Butikker</string>
|
||||
<string name="source_steam">Steam</string>
|
||||
<string name="source_added">Brugerdefineret</string>
|
||||
@@ -2989,7 +2969,6 @@
|
||||
<string name="touch_icon_color">Ikonfarve</string>
|
||||
<string name="touch_button_color">Knapfarve</string>
|
||||
<string name="touch_no_icon">Intet ikon</string>
|
||||
|
||||
<string name="stores_sync_sign_in">Kontrollerer login…</string>
|
||||
<string name="stores_sync_library">Henter dit bibliotek…</string>
|
||||
<string name="stores_sync_game_list">Henter spilliste…</string>
|
||||
@@ -3777,6 +3756,7 @@
|
||||
<string name="sync_not_running">Syncthing kører ikke.</string>
|
||||
<string name="session_end_steam_sigill">Steam stoppede med en ulovlig instruktion (SIGILL). Det kan være et kompatibilitetsproblem med CPU-instruktioner eller et klientnedbrud. Del logs med oplysninger om din enhed.</string>
|
||||
<string name="session_end_steam_try_x64">Du kan prøve Steam-indstillinger → Steam-klient → x86-64 (eksperimentel). Det kræver en ekstra download og kan køre langsommere.</string>
|
||||
<string name="session_end_fex_kernel">x86-programmer og x86-64-Steam-klienten kører gennem FEX, som ikke kan køre på denne enheds Linux-kerne (%1$s).</string>
|
||||
<string name="session_end_vulkan_device">Linux-grafikdriveren kunne ikke finde en brugbar Vulkan-enhed. Tjek, at den valgte Linux-GPU-driver understøtter denne GPU.</string>
|
||||
<string name="session_end_gpu_unsupported">Denne session kan ikke starte, fordi denne GPU ikke har nogen kompatibel Linux Vulkan-driver i den nuværende opsætning. Adreno Turnip-drivere kan ikke aktivere understøttelse af MediaTek/Mali-GPU’er.</string>
|
||||
<string name="setup_group_memory">Hukommelse</string>
|
||||
@@ -4026,10 +4006,8 @@
|
||||
<string name="input_show_label">Vis etiket</string>
|
||||
<string name="input_layout_import_failed">Dette layout kunne ikke importeres</string>
|
||||
<string name="epic_third_party_managed">Installeres via %1$s</string>
|
||||
|
||||
<string name="theme_white_red">Skarlagensne</string>
|
||||
<string name="theme_white_red_detail">Hvide overflader med røde accenter.</string>
|
||||
|
||||
<string name="rail_soundtracks">Soundtracks</string>
|
||||
<string name="rail_music">Musik</string>
|
||||
<string name="soundtracks_options">Afspilningsindstillinger</string>
|
||||
@@ -4106,4 +4084,9 @@
|
||||
<string name="hud_readings_shown">Vist</string>
|
||||
<string name="hud_readings_count">%1$d af %2$d</string>
|
||||
<string name="exit_hint_back">Tryk tilbage igen for at afslutte</string>
|
||||
</resources>
|
||||
<string name="display_integer_scaling">Heltalsskalering</string>
|
||||
<string name="display_integer_scaling_hint">Bruger den største hele skalering, der kan være på skærmen. Kan beskære kanterne. Hvis kilden er større end outputtet, viser brøkbaseret skalering hele billedet. Opløsningen indstilles separat.</string>
|
||||
<string name="display_scaling_integer">Heltal</string>
|
||||
<string name="display_scaling_fit">Tilpas</string>
|
||||
<string name="drawer_antialiasing">Kantudjævning</string>
|
||||
</resources>
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<resources>
|
||||
<string name="steamvr_recovery_title">SteamVR-Grafik ausgefallen</string>
|
||||
<string name="steamvr_recovery_countdown">DroidDeck startet in %1$d Sekunden neu, um die Grafik zurückzusetzen und SteamVR wieder zu öffnen. Dein laufendes Spiel wird geschlossen; nicht gespeicherter Fortschritt lässt sich nicht wiederherstellen.</string>
|
||||
@@ -357,7 +357,7 @@
|
||||
<string name="mode_return_after_game">Nach einem Spiel zu DroidDeck zurückkehren</string>
|
||||
<string name="mode_return_after_game_hint">Wenn ein Spiel, das du über DroidDeck oder einen anderen Launcher gestartet hast, beendet wird, schließt Steam sauber (Cloud-Speicherstände werden zuerst fertig) und du kehrst dorthin zurück. Aus: in Steam bleiben.</string>
|
||||
<string name="mode_shader_precache">Shader-Vorab-Caching</string>
|
||||
<string name="mode_shader_precache_hint">Steam lädt für deine Spiele vorkompilierte Shader herunter und verarbeitet sie im Hintergrund, damit Spiele weniger ruckeln. Aus spart Daten, Speicher und Akku; Spiele erstellen Shader dann während des Spielens. Dieselbe Einstellung wie Steams Downloads > Shader-Vorab-Caching. Gilt ab der nächsten Sitzung.</string>
|
||||
<string name="mode_shader_precache_hint">Steam lädt für deine Spiele vorkompilierte Shader herunter und verarbeitet sie im Hintergrund, damit Spiele weniger ruckeln. Aus spart Daten, Speicher und Akku; Spiele erstellen Shader dann während des Spielens. Dieselbe Einstellung wie Steams Downloads > Shader-Vorab-Caching. Gilt ab der nächsten Sitzung.</string>
|
||||
<string name="mode_steam_repair">Steam-Client reparieren</string>
|
||||
<string name="mode_steam_repair_hint">Lädt den Steam-Client beim nächsten Start von Steam erneut herunter. Nutze dies, wenn Steam im Ladebildschirm hängen bleibt. Spiele, Anmeldung und Einstellungen bleiben erhalten.</string>
|
||||
<string name="mode_steam_repair_queued">Der Steam-Client wird beim nächsten Start von Steam erneut heruntergeladen.</string>
|
||||
@@ -675,6 +675,8 @@
|
||||
<string name="drawer_page_display">Anzeige</string>
|
||||
<string name="drawer_frame_limit">Bildratenlimit</string>
|
||||
<string name="drawer_frame_limit_note">Begrenzt dieses Spiel. Der Bildschirm wechselt zu einer Bildwiederholrate, die durch das Limit glatt teilbar ist, sofern vorhanden; andere Limits können ungleichmäßig wirken. Steam-Spiele nutzen das Bildratenlimit von Steam im Schnellzugriffsmenü.</string>
|
||||
<string name="drawer_bfi">Schwarzbild-Einfügung</string>
|
||||
<string name="drawer_bfi_note">Schärfere Bewegung: Auf jedes Bild folgt ein schwarzer Refresh. Braucht 100 Hz oder mehr; das Spiel läuft mit halber Bildwiederholrate und wirkt dunkler. Aus, solange Frame Generation läuft.</string>
|
||||
<string name="drawer_page_effects">Effekte</string>
|
||||
<string name="drawer_page_controls">Steuerung</string>
|
||||
<string name="drawer_page_components">Komponenten</string>
|
||||
@@ -708,7 +710,10 @@
|
||||
<string name="hud_size_mega">Mega</string>
|
||||
<string name="hud_size_strip">Leiste</string>
|
||||
<string name="hud_locked">Position sperren</string>
|
||||
<string name="hud_locked_hint">Ziehe das HUD, um es zu verschieben; langes Drücken sperrt oder entsperrt es. Solange es gesperrt ist, funktionieren die Bildschirmsteuerungen darunter weiter.</string>
|
||||
<string name="hud_locked_hint">Ziehe das HUD, um es zu verschieben. Solange es gesperrt ist, funktionieren die Bildschirmsteuerungen darunter weiter.</string>
|
||||
<string name="hud_hold">Langes Drücken</string>
|
||||
<string name="hud_hold_collapse">Ein- oder ausklappen</string>
|
||||
<string name="hud_hold_lock">Sperren oder entsperren</string>
|
||||
<string name="hud_snap">An Seiten einrasten</string>
|
||||
<string name="hud_snap_hint">Lass das HUD los, und es springt an die nähere Bildschirmseite. Ein Wischen wirft es in diese Richtung.</string>
|
||||
<string name="hud_group_look">Aussehen</string>
|
||||
@@ -1135,7 +1140,7 @@
|
||||
<string name="lab_off_title">Lab-Build deaktiviert</string>
|
||||
<string name="lab_off_other_install">Er wurde für eine andere Version von DroidDeck erstellt. Er bleibt in Updates erhalten.</string>
|
||||
<string name="lab_off_did_not_start">DroidDeck ist damit zweimal nicht gestartet</string>
|
||||
<string name="rail_agent">Agent</string>
|
||||
<string name="rail_agent">Dev Harness</string>
|
||||
<string name="agent_channel_name">Agent</string>
|
||||
<string name="agent_working">Agent arbeitet</string>
|
||||
<string name="agent_missing">Installiere Claude Code in der Linux-Umgebung, um den Agenten zu verwenden.</string>
|
||||
@@ -1175,6 +1180,7 @@
|
||||
<string name="agent_hint_working">Tippen, um die nächste Nachricht einzureihen</string>
|
||||
<string name="agent_queue">Einreihen</string>
|
||||
<string name="agent_queued">Als Nächstes: %1$s</string>
|
||||
<string name="agent_tools_missing">Agent-Werkzeuge nicht installiert: %1$s</string>
|
||||
<string name="agent_unqueue">Nicht senden</string>
|
||||
<string name="agent_attach">Anhängen</string>
|
||||
<string name="agent_remove_attachment">Entfernen</string>
|
||||
@@ -1579,7 +1585,6 @@
|
||||
<string name="game_file_folder">Ordner für Frontend-Spieldateien auswählen</string>
|
||||
<string name="game_file_exported">Spieldateien gespeichert unter %1$s</string>
|
||||
<string name="game_frontend_files">Frontend-Dateien</string>
|
||||
|
||||
<string name="main_wait_runtime">Warte, bis der Vorgang an der Laufzeit abgeschlossen ist</string>
|
||||
<string name="main_wait_proton_install">Warte, bis die Installation des Kompatibilitätstools abgeschlossen ist</string>
|
||||
<string name="load_compat_title">Kompatibilitätstools werden vorbereitet</string>
|
||||
@@ -1665,7 +1670,6 @@
|
||||
<string name="main_removing_runtime">Linux-Laufzeit wird entfernt</string>
|
||||
<string name="main_settings_main_screen">Die Einstellungen ließen sich nicht auf dem unteren Bildschirm öffnen und wurden auf dem Hauptbildschirm geöffnet.</string>
|
||||
<string name="main_open_dev_options">Entwickleroptionen in den Einstellungen öffnen</string>
|
||||
|
||||
<string name="upd_unknown_apps_failed">Die Android-Einstellung „Unbekannte Apps installieren“ konnte nicht geöffnet werden</string>
|
||||
<string name="upd_couldnt_check">Prüfung nicht möglich: %1$s</string>
|
||||
<string name="upd_no_download">Dieser Build hat keinen Download für diese DroidDeck-Installation</string>
|
||||
@@ -1675,12 +1679,10 @@
|
||||
<string name="upd_stage_confirm">Warte auf deine Bestätigung</string>
|
||||
<string name="upd_failed">Das Update ist fehlgeschlagen</string>
|
||||
<string name="upd_not_offered">Android hat die Installation des Updates nicht angeboten</string>
|
||||
|
||||
<string name="decky_install_failed">Decky-Installation fehlgeschlagen: %1$s</string>
|
||||
<string name="decky_plugin_starting">Plugin-Import wird gestartet…</string>
|
||||
<string name="decky_plugin_failed">Plugin-Import fehlgeschlagen: %1$s</string>
|
||||
<string name="decky_plugin_installed">Plugin installiert. Starte Steam neu, um es zu laden.</string>
|
||||
|
||||
<string name="drivers_not_checked">Noch nicht geprüft - tippe auf Aktualisieren, um nach neuen Treibern zu suchen</string>
|
||||
<string name="drivers_bundle_sets_display">Android + Linux: legt den Anzeigetreiber gleich mit fest</string>
|
||||
<string name="drivers_bundle_sets_runtime">Android + Linux: legt den Laufzeittreiber gleich mit fest</string>
|
||||
@@ -1733,7 +1735,6 @@
|
||||
<string name="drivers_check_failed">Prüfung fehlgeschlagen</string>
|
||||
<string name="drivers_installed_pick_either">%1$s installiert - wähle ihn in einer der beiden Listen, um beide Treiber festzulegen</string>
|
||||
<string name="drivers_installed_pick">%1$s installiert - wähle ihn im Menü aus</string>
|
||||
|
||||
<string name="session_wait_removal">Warte, bis die Laufzeit entfernt ist</string>
|
||||
<string name="session_title_game">Spiel</string>
|
||||
<string name="session_touch_auto_touchpad">Touchpad</string>
|
||||
@@ -1779,7 +1780,6 @@
|
||||
<item quantity="one">Das Protokoll zeigt %1$d Fehler „Function not implemented“: Die seccomp-Beschleunigung von proot lässt auf diesem Gerät einen Helfer scheitern. Versuche %2$s → „%3$s“ (oder „%4$s“) und starte neu.</item>
|
||||
<item quantity="other">Das Protokoll zeigt %1$d Fehler „Function not implemented“: Die seccomp-Beschleunigung von proot lässt auf diesem Gerät einen Helfer scheitern. Versuche %2$s → „%3$s“ (oder „%4$s“) und starte neu.</item>
|
||||
</plurals>
|
||||
|
||||
<string name="mode_decky_plugins">Plugins</string>
|
||||
<string name="mode_decky_plugins_hint">Installiere eine Plugin-ZIP für die nächste Steam-Sitzung.</string>
|
||||
<string name="mode_decky_plugin_downloading">Wird heruntergeladen…</string>
|
||||
@@ -2136,7 +2136,6 @@
|
||||
<string name="bottom_telemetry_elite">Elite Dangerous</string>
|
||||
<string name="bottom_telemetry_unknown_format">Port %1$d empfängt Daten (%2$d Pakete mit %3$d Bytes), aber in einem Format, das diese Seite noch nicht lesen kann.</string>
|
||||
<string name="bottom_telemetry_port_busy">Ein anderes Programm verwendet bereits Port %1$s, daher kann dieses Spiel hier nicht angezeigt werden.</string>
|
||||
|
||||
<string name="rtinst_removing">Linux-Laufzeit wird entfernt</string>
|
||||
<plurals name="rtinst_removing_entries">
|
||||
<item quantity="one">Linux-Laufzeit wird entfernt · %1$d Eintrag</item>
|
||||
@@ -2151,7 +2150,6 @@
|
||||
<string name="rtinst_channel_description">Wird angezeigt, während die Linux-Laufzeit installiert oder entfernt wird</string>
|
||||
<string name="rtinst_title_installing">Linux-Laufzeit wird installiert</string>
|
||||
<string name="rtinst_title_removing">Linux-Laufzeit wird entfernt</string>
|
||||
|
||||
<string name="deskpkg_runtime_missing">Die Linux-Laufzeit ist nicht installiert</string>
|
||||
<string name="deskpkg_no_checksum">Der Katalog hat keine Prüfsumme für %1$s</string>
|
||||
<string name="deskpkg_checksum_mismatch">Prüfsumme stimmt nicht überein - es wurde nichts geändert</string>
|
||||
@@ -2159,7 +2157,6 @@
|
||||
<string name="deskpkg_place_failed">Das AppImage konnte nicht abgelegt werden</string>
|
||||
<string name="deskpkg_extract_failed">Entpacken fehlgeschlagen</string>
|
||||
<string name="deskpkg_install_failed">Installation fehlgeschlagen</string>
|
||||
|
||||
<string name="flatpakmgr_setup_failed">Flatpak-Einrichtung fehlgeschlagen (Exit-Code %1$d)</string>
|
||||
<string name="flatpakmgr_setup_unfinished">Flatpak-Einrichtung wurde nicht abgeschlossen</string>
|
||||
<string name="flatpakmgr_busy">Eine andere Store-Aufgabe läuft</string>
|
||||
@@ -2178,7 +2175,6 @@
|
||||
<string name="flatpakmgr_ref_media_codecs">Mediencodecs</string>
|
||||
<string name="flatpakmgr_ref_runtime">%1$s-Laufzeit</string>
|
||||
<string name="flatpakmgr_ref_runtime_branch">%1$s-Laufzeit %2$s</string>
|
||||
|
||||
<string name="appimg_too_small">Die Datei ist zu klein für ein AppImage</string>
|
||||
<string name="appimg_unreadable">Die Datei kann nicht gelesen werden: %1$s</string>
|
||||
<string name="appimg_not_linux">Dies ist kein AppImage (es ist kein Linux-Programm)</string>
|
||||
@@ -2193,7 +2189,6 @@
|
||||
<string name="appimg_extracting">%1$s wird entpackt</string>
|
||||
<string name="appimg_extract_failed">Das AppImage konnte nicht entpackt werden</string>
|
||||
<string name="appimg_extract_failed_detail">Das AppImage konnte nicht entpackt werden: %1$s</string>
|
||||
|
||||
<string name="deckymgr_stop_session_loader">Beende die aktive Sitzung, bevor du Decky Loader installierst</string>
|
||||
<string name="deckymgr_download_failed">Download von Decky Loader fehlgeschlagen</string>
|
||||
<string name="deckymgr_size_mismatch">Die Größe von Decky Loader stimmt nicht mit den Release-Metadaten überein</string>
|
||||
@@ -2242,13 +2237,11 @@
|
||||
<string name="deckymgr_activate_failed">Das importierte Plugin konnte nicht aktiviert werden</string>
|
||||
<string name="deckymgr_settings_failed">Decky-Plugin-Einstellungen konnten nicht aktualisiert werden</string>
|
||||
<string name="deckymgr_restore_failed">Das vorhandene Plugin konnte nicht wiederhergestellt werden</string>
|
||||
|
||||
<string name="adbfix_save_failed">Identität für Debugging über WLAN konnte nicht gespeichert werden</string>
|
||||
<string name="adbfix_command_failed">ADB-Befehl fehlgeschlagen (%1$d)</string>
|
||||
<string name="adbfix_not_confirmed">Android hat nicht bestätigt, dass das Limit für untergeordnete Prozesse geändert wurde: %1$s</string>
|
||||
<string name="adbfix_no_pairing">Keine Kopplung für Debugging über WLAN gespeichert</string>
|
||||
<string name="adbfix_enter_address">Aktuelle IP-Adresse & Port von Debugging über WLAN eingeben</string>
|
||||
|
||||
<string name="adbpair_timed_out">Zeitüberschreitung beim Warten auf das Kopplungs-Pop-up. Versuche es erneut über DroidDeck.</string>
|
||||
<string name="adbpair_discovery_failed_code">Suche nach dem Kopplungs-Pop-up nicht möglich (%1$d). Prüfe, ob WLAN aktiviert ist.</string>
|
||||
<string name="adbpair_discovery_failed">Suche nach dem Kopplungs-Pop-up nicht möglich: %1$s</string>
|
||||
@@ -2274,7 +2267,6 @@
|
||||
<string name="adbpair_title_done">Steam ist bereit</string>
|
||||
<string name="adbpair_done_text">Tippe, um zu DroidDeck zurückzukehren. Du kannst Debugging über WLAN jetzt deaktivieren.</string>
|
||||
<string name="adbpair_title_failed">Einrichtung von Debugging über WLAN abgebrochen</string>
|
||||
|
||||
<string name="selfinst_download_failed">Download fehlgeschlagen</string>
|
||||
<string name="selfinst_size_mismatch">Der Download hatte nicht die Größe der veröffentlichten APK und wurde verworfen - versuche es erneut</string>
|
||||
<string name="selfinst_checksum_mismatch">Der Download stimmte nicht mit seiner Prüfsumme überein und wurde verworfen - versuche es erneut</string>
|
||||
@@ -2287,13 +2279,11 @@
|
||||
<string name="selfinst_no_signing">Die heruntergeladene APK hat keine Signaturinformationen</string>
|
||||
<string name="selfinst_wrong_signer">Die heruntergeladene APK ist nicht mit dem Release-Schlüssel von DroidDeck signiert</string>
|
||||
<string name="appupd_http">Der Update-Katalog antwortete mit HTTP %1$d</string>
|
||||
|
||||
<string name="loadstate_starting">Sitzung wird gestartet…</string>
|
||||
<string name="loadstate_elapsed">%1$d:%2$02d vergangen · läuft noch</string>
|
||||
<string name="loadstate_steam_update">Update des Steam-Clients wird heruntergeladen · %1$d %%</string>
|
||||
<string name="loadstate_steam_update_applying">Steam-Client-Update wird angewendet…</string>
|
||||
<string name="loadstate_steam_client">Steam-Client wird heruntergeladen · %1$s</string>
|
||||
|
||||
<string name="pextra_busy">Es läuft bereits die Installation eines Kompatibilitätstools</string>
|
||||
<string name="pextra_stop_session">Beende die aktive Sitzung, bevor du Kompatibilitätstools installierst</string>
|
||||
<string name="pextra_no_release">Kein ARM64-Release für %1$s gefunden</string>
|
||||
@@ -2313,7 +2303,6 @@
|
||||
<string name="pextra_install_failed">Installation von %1$s fehlgeschlagen (Exit-Code %2$d)</string>
|
||||
<string name="pextra_could_not_install">%1$s konnte nicht installiert werden</string>
|
||||
<string name="esync_fetching">droiddeck-esync-Paket wird abgerufen</string>
|
||||
|
||||
<string name="cmgr_fex_linux_helpers">mit Linux-Helfern</string>
|
||||
<string name="cmgr_fex_dlls_only">nur DLLs</string>
|
||||
<string name="cmgr_original_proton_updated">Original (Proton seit dem letzten Austausch aktualisiert)</string>
|
||||
@@ -2336,13 +2325,11 @@
|
||||
<string name="cmgr_nightly_replaced">Download fehlgeschlagen: Dieser Nightly-Build wurde vielleicht durch einen neueren ersetzt. Aktualisiere die Liste und versuche es erneut.</string>
|
||||
<string name="cmgr_list_predates_checksums">Diese Paketliste stammt aus der Zeit vor Prüfsummen - aktualisiere sie und versuche es erneut</string>
|
||||
<string name="cmgr_checksum_mismatch">Prüfsumme stimmt nicht überein</string>
|
||||
|
||||
<string name="sprefs_upscaler_linear">Linear</string>
|
||||
<string name="sprefs_upscaler_nearest">Nächster Nachbar</string>
|
||||
<string name="sprefs_upscaler_gsr_quality">Snapdragon GSR (Qualität)</string>
|
||||
<string name="sprefs_upscaler_sharpen">Nur schärfen</string>
|
||||
<string name="sprefs_lod_bias_auto">Auto (an Skalierung anpassen)</string>
|
||||
|
||||
<string name="look_off_desc">Nichts angewendet.</string>
|
||||
<string name="look_game_clarity">Spielklarheit</string>
|
||||
<string name="look_game_clarity_desc">Schärfung mit etwas Kontrast - für jeden Tag.</string>
|
||||
@@ -2366,7 +2353,6 @@
|
||||
<string name="look_pixel_clean_desc">Scharfe Pixel für 2D und alte Titel.</string>
|
||||
<string name="look_anime_edge">Anime-Kanten</string>
|
||||
<string name="look_anime_edge_desc">Cartoon-Konturen plus Schärfung.</string>
|
||||
|
||||
<string name="gpuinfo_not_adreno">Keine Adreno-GPU</string>
|
||||
<string name="gpuinfo_powervr">System-PowerVR-Treiber: Kompatibilität hängt vom Gerät ab</string>
|
||||
<string name="gpuinfo_xclipse">Experimentell: RADV oder der System-Xclipse-Treiber</string>
|
||||
@@ -2391,7 +2377,6 @@
|
||||
<string name="gpuinfo_unsupported">Nicht unterstützt: Für diese GPU ist kein kompatibles Grafik-Backend verfügbar</string>
|
||||
<string name="gpuinfo_bridge">Läuft über die Mali-Brücke mit dem eigenen Vulkan-Treiber des Telefons</string>
|
||||
<string name="gpuinfo_bridge_off">Bei deaktivierter Mali-Brücke nicht unterstützt: Turnip benötigt eine Adreno-GPU (Snapdragon)</string>
|
||||
|
||||
<string name="turnip_rate_limited">Das Rate-Limit von GitHub wurde erreicht - versuche es später erneut</string>
|
||||
<string name="turnip_github_http">GitHub antwortete mit HTTP %1$d</string>
|
||||
<string name="turnip_download_failed">Download fehlgeschlagen</string>
|
||||
@@ -2412,16 +2397,12 @@
|
||||
<string name="bundle_no_manifest">Kein Treiber-Bundle: keine manifest.json, die einen Android- und einen Linux-Treiber nennt</string>
|
||||
<string name="bundle_entry_outside">Kein Treiber-Bundle: %1$s zeigt nach außerhalb</string>
|
||||
<string name="bundle_too_large">Kein Treiber-Bundle: entpackt mehr als %1$d MB</string>
|
||||
|
||||
<string name="gstore_sd_card">SD-Karte</string>
|
||||
<string name="gstore_folder">Ordner</string>
|
||||
|
||||
<string name="logshare_chooser">Sitzungsprotokolle teilen</string>
|
||||
|
||||
<string name="hdr_needs_android_10">erfordert Android 10 oder neuer (Anzeigeebenen mit Farbraum)</string>
|
||||
<string name="hdr_none">dieses Display meldet keine HDR-Unterstützung</string>
|
||||
<string name="hdr_not_hdr10">dieses Display unterstützt %1$s, aber nicht HDR10</string>
|
||||
|
||||
<string name="gpu_this_gpu">diese GPU</string>
|
||||
<string name="phantom_title_on">Limit für untergeordnete Prozesse ist aktiv</string>
|
||||
<string name="phantom_title_unset">Limit für untergeordnete Prozesse ist nicht festgelegt</string>
|
||||
@@ -2495,7 +2476,6 @@
|
||||
<string name="device_info_copied">Kopiert.</string>
|
||||
<string name="force_ssbs_title">SSBS erzwingen</string>
|
||||
<string name="force_ssbs_hint">Hält eine CPU-Geschwindigkeitseinstellung aktiv, die Wine immer wieder abschaltet. Kann Windows-Spiele auf dem Snapdragon 8 Elite beschleunigen; auf älteren Chips kaum Unterschied. Gilt ab dem nächsten Spielstart.</string>
|
||||
|
||||
<string name="rail_stores">Stores</string>
|
||||
<string name="source_steam">Steam</string>
|
||||
<string name="source_added">Eigene</string>
|
||||
@@ -2978,7 +2958,6 @@
|
||||
<string name="touch_icon_color">Symbolfarbe</string>
|
||||
<string name="touch_button_color">Schaltflächenfarbe</string>
|
||||
<string name="touch_no_icon">Kein Symbol</string>
|
||||
|
||||
<string name="stores_sync_sign_in">Anmeldung wird geprüft…</string>
|
||||
<string name="stores_sync_library">Bibliothek wird abgerufen…</string>
|
||||
<string name="stores_sync_game_list">Spieleliste wird abgerufen…</string>
|
||||
@@ -3777,6 +3756,7 @@
|
||||
<string name="sync_not_running">Syncthing läuft nicht.</string>
|
||||
<string name="session_end_steam_sigill">Steam wurde mit einer ungültigen Anweisung (SIGILL) beendet. Das kann ein Kompatibilitätsproblem mit CPU-Befehlen oder ein Absturz des Clients sein. Teile die Logs zusammen mit den Details deines Geräts.</string>
|
||||
<string name="session_end_steam_try_x64">Du kannst Steam-Einstellungen → Steam-Client → x86-64 (experimentell) ausprobieren. Das erfordert einen zusätzlichen Download und kann langsamer laufen.</string>
|
||||
<string name="session_end_fex_kernel">x86-Programme und der x86-64-Steam-Client laufen über FEX, das mit dem Linux-Kernel dieses Geräts (%1$s) nicht laufen kann.</string>
|
||||
<string name="session_end_vulkan_device">Der Linux-Grafiktreiber hat kein nutzbares Vulkan-Gerät gefunden. Prüfe, ob der ausgewählte Linux-GPU-Treiber diese GPU unterstützt.</string>
|
||||
<string name="session_end_gpu_unsupported">Diese Sitzung kann nicht starten, weil es für diese GPU in der aktuellen Konfiguration keinen kompatiblen Linux-Vulkan-Treiber gibt. Adreno-Turnip-Treiber können keine Unterstützung für MediaTek/Mali-GPUs aktivieren.</string>
|
||||
<string name="setup_group_memory">Arbeitsspeicher</string>
|
||||
@@ -4026,10 +4006,8 @@
|
||||
<string name="input_show_label">Beschriftung anzeigen</string>
|
||||
<string name="input_layout_import_failed">Dieses Layout konnte nicht importiert werden</string>
|
||||
<string name="epic_third_party_managed">Wird über %1$s installiert</string>
|
||||
|
||||
<string name="theme_white_red">Scharlachroter Schnee</string>
|
||||
<string name="theme_white_red_detail">Weiße Oberflächen mit roten Akzenten.</string>
|
||||
|
||||
<string name="rail_soundtracks">Soundtracks</string>
|
||||
<string name="rail_music">Musik</string>
|
||||
<string name="soundtracks_options">Wiedergabeoptionen</string>
|
||||
@@ -4106,4 +4084,9 @@
|
||||
<string name="hud_readings_shown">Angezeigt</string>
|
||||
<string name="hud_readings_count">%1$d von %2$d</string>
|
||||
<string name="exit_hint_back">Noch einmal zurück drücken zum Beenden</string>
|
||||
</resources>
|
||||
<string name="display_integer_scaling">Ganzzahlige Skalierung</string>
|
||||
<string name="display_integer_scaling_hint">Verwendet die größte passende ganzzahlige Skalierung. Bildschirmränder können abgeschnitten werden. Ist die Quelle größer als die Ausgabe, zeigt eine gebrochene Skalierung das vollständige Bild. Die Auflösung wird separat eingestellt.</string>
|
||||
<string name="display_scaling_integer">Ganzzahlig</string>
|
||||
<string name="display_scaling_fit">Anpassen</string>
|
||||
<string name="drawer_antialiasing">Kantenglättung</string>
|
||||
</resources>
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<resources>
|
||||
<string name="steamvr_recovery_title">Τα γραφικά του SteamVR σταμάτησαν</string>
|
||||
<string name="steamvr_recovery_countdown">Το DroidDeck θα κάνει επανεκκίνηση σε %1$d δευτερόλεπτα για να επαναφέρει τα γραφικά και να ανοίξει ξανά το SteamVR. Το παιχνίδι που εκτελείται θα κλείσει· η μη αποθηκευμένη πρόοδος δεν μπορεί να ανακτηθεί.</string>
|
||||
@@ -675,6 +675,8 @@
|
||||
<string name="drawer_page_display">Οθόνη</string>
|
||||
<string name="drawer_frame_limit">Όριο καρέ</string>
|
||||
<string name="drawer_frame_limit_note">Περιορίζει αυτό το παιχνίδι. Η οθόνη αλλάζει σε ρυθμό ανανέωσης που διαιρείται ακριβώς με το όριο, αν υπάρχει· άλλα όρια μπορεί να φαίνονται ανομοιόμορφα. Τα παιχνίδια Steam χρησιμοποιούν το Frame Limit του Steam στο μενού Quick Access.</string>
|
||||
<string name="drawer_bfi">Εισαγωγή μαύρων καρέ</string>
|
||||
<string name="drawer_bfi_note">Πιο καθαρή κίνηση: κάθε καρέ ακολουθείται από μαύρη ανανέωση. Απαιτεί 100 Hz ή περισσότερα· το παιχνίδι τρέχει στον μισό ρυθμό ανανέωσης και φαίνεται πιο σκοτεινό. Ανενεργό όσο λειτουργεί η δημιουργία καρέ.</string>
|
||||
<string name="drawer_page_effects">Εφέ</string>
|
||||
<string name="drawer_page_controls">Χειριστήρια</string>
|
||||
<string name="drawer_page_components">Στοιχεία</string>
|
||||
@@ -708,7 +710,10 @@
|
||||
<string name="hud_size_mega">Μέγα</string>
|
||||
<string name="hud_size_strip">Λωρίδα</string>
|
||||
<string name="hud_locked">Κλείδωμα θέσης</string>
|
||||
<string name="hud_locked_hint">Σύρετε το HUD για να το μετακινήσετε· ένα παρατεταμένο πάτημα το κλειδώνει ή το ξεκλειδώνει. Όσο είναι κλειδωμένο, τα χειριστήρια οθόνης από κάτω του εξακολουθούν να λειτουργούν.</string>
|
||||
<string name="hud_locked_hint">Σύρετε το HUD για να το μετακινήσετε. Όσο είναι κλειδωμένο, τα χειριστήρια οθόνης από κάτω του εξακολουθούν να λειτουργούν.</string>
|
||||
<string name="hud_hold">Παρατεταμένο πάτημα</string>
|
||||
<string name="hud_hold_collapse">Σύμπτυξη ή ανάπτυξη</string>
|
||||
<string name="hud_hold_lock">Κλείδωμα ή ξεκλείδωμα</string>
|
||||
<string name="hud_snap">Προσκόλληση στα πλάγια</string>
|
||||
<string name="hud_snap_hint">Αφήστε το HUD και μετακινείται στην πιο κοντινή πλευρά της οθόνης. Μια γρήγορη κίνηση το πετάει προς εκείνη την κατεύθυνση.</string>
|
||||
<string name="hud_group_look">Εμφάνιση</string>
|
||||
@@ -1143,7 +1148,7 @@
|
||||
<string name="lab_off_title">Η έκδοση Lab απενεργοποιήθηκε</string>
|
||||
<string name="lab_off_other_install">Δημιουργήθηκε για άλλη έκδοση του DroidDeck. Διατηρείται στις Ενημερώσεις.</string>
|
||||
<string name="lab_off_did_not_start">Το DroidDeck δεν ξεκίνησε με αυτό δύο φορές</string>
|
||||
<string name="rail_agent">Πράκτορας</string>
|
||||
<string name="rail_agent">Dev Harness</string>
|
||||
<string name="agent_channel_name">Πράκτορας</string>
|
||||
<string name="agent_working">Ο πράκτορας εργάζεται</string>
|
||||
<string name="agent_missing">Εγκατέστησε το Claude Code στο περιβάλλον χρήστη του Linux για να χρησιμοποιήσεις τον πράκτορα.</string>
|
||||
@@ -1183,6 +1188,7 @@
|
||||
<string name="agent_hint_working">Γράψτε για να προσθέσετε το επόμενο μήνυμα στην ουρά</string>
|
||||
<string name="agent_queue">Στην ουρά</string>
|
||||
<string name="agent_queued">Επόμενο: %1$s</string>
|
||||
<string name="agent_tools_missing">Τα εργαλεία του πράκτορα δεν εγκαταστάθηκαν: %1$s</string>
|
||||
<string name="agent_unqueue">Να μην σταλεί</string>
|
||||
<string name="agent_attach">Επισύναψη</string>
|
||||
<string name="agent_remove_attachment">Αφαίρεση</string>
|
||||
@@ -1587,7 +1593,6 @@
|
||||
<string name="game_file_folder">Επιλέξτε φάκελο για τα αρχεία παιχνιδιού της διεπαφής</string>
|
||||
<string name="game_file_exported">Τα αρχεία παιχνιδιού αποθηκεύτηκαν στο %1$s</string>
|
||||
<string name="game_frontend_files">Αρχεία διεπαφής</string>
|
||||
|
||||
<string name="main_wait_runtime">Περιμένετε να ολοκληρωθεί η λειτουργία του runtime</string>
|
||||
<string name="main_wait_proton_install">Περιμένετε να ολοκληρωθεί η εγκατάσταση του εργαλείου συμβατότητας</string>
|
||||
<string name="load_compat_title">Προετοιμασία εργαλείων συμβατότητας</string>
|
||||
@@ -1673,7 +1678,6 @@
|
||||
<string name="main_removing_runtime">Κατάργηση του Linux runtime</string>
|
||||
<string name="main_settings_main_screen">Δεν ήταν δυνατό το άνοιγμα των Ρυθμίσεων στην κάτω οθόνη· άνοιξαν στην κύρια οθόνη.</string>
|
||||
<string name="main_open_dev_options">Άνοιγμα Επιλογών προγραμματιστή στις Ρυθμίσεις</string>
|
||||
|
||||
<string name="upd_unknown_apps_failed">Δεν ήταν δυνατό το άνοιγμα της ρύθμισης του Android «Εγκατάσταση άγνωστων εφαρμογών»</string>
|
||||
<string name="upd_couldnt_check">Δεν ήταν δυνατός ο έλεγχος: %1$s</string>
|
||||
<string name="upd_no_download">Αυτή η έκδοση δεν έχει λήψη για αυτό το αντίγραφο του DroidDeck</string>
|
||||
@@ -1683,12 +1687,10 @@
|
||||
<string name="upd_stage_confirm">Περιμένει να επιβεβαιώσετε</string>
|
||||
<string name="upd_failed">Η ενημέρωση απέτυχε</string>
|
||||
<string name="upd_not_offered">Το Android δεν πρότεινε την εγκατάσταση της ενημέρωσης</string>
|
||||
|
||||
<string name="decky_install_failed">Η εγκατάσταση του Decky απέτυχε: %1$s</string>
|
||||
<string name="decky_plugin_starting">Έναρξη εισαγωγής προσθέτου…</string>
|
||||
<string name="decky_plugin_failed">Η εισαγωγή προσθέτου απέτυχε: %1$s</string>
|
||||
<string name="decky_plugin_installed">Το πρόσθετο εγκαταστάθηκε. Κάντε επανεκκίνηση του Steam για να φορτωθεί.</string>
|
||||
|
||||
<string name="drivers_not_checked">Δεν έχει ελεγχθεί ακόμα - πατήστε ανανέωση για αναζήτηση νέων προγραμμάτων οδήγησης</string>
|
||||
<string name="drivers_bundle_sets_display">Android + Linux: ορίζει το πρόγραμμα οδήγησης οθόνης μαζί με αυτό</string>
|
||||
<string name="drivers_bundle_sets_runtime">Android + Linux: ορίζει το πρόγραμμα οδήγησης runtime μαζί με αυτό</string>
|
||||
@@ -1741,7 +1743,6 @@
|
||||
<string name="drivers_check_failed">ο έλεγχος απέτυχε</string>
|
||||
<string name="drivers_installed_pick_either">Εγκατεστημένο %1$s - επιλέξτε το σε οποιαδήποτε λίστα για να ορίσετε και τα δύο προγράμματα οδήγησης</string>
|
||||
<string name="drivers_installed_pick">Εγκατεστημένο %1$s - επιλέξτε το στο μενού</string>
|
||||
|
||||
<string name="session_wait_removal">Περιμένετε να ολοκληρωθεί η κατάργηση του runtime</string>
|
||||
<string name="session_title_game">Παιχνίδι</string>
|
||||
<string name="session_touch_auto_touchpad">πινακίδα αφής</string>
|
||||
@@ -1787,7 +1788,6 @@
|
||||
<item quantity="one">Το αρχείο καταγραφής δείχνει %1$d σφάλμα «Function not implemented»: η επιτάχυνση seccomp του proot αποτυγχάνει σε έναν βοηθητικό μηχανισμό σε αυτή τη συσκευή. Δοκιμάστε %2$s → «%3$s» (ή «%4$s») και ξεκινήστε ξανά.</item>
|
||||
<item quantity="other">Το αρχείο καταγραφής δείχνει %1$d σφάλματα «Function not implemented»: η επιτάχυνση seccomp του proot αποτυγχάνει σε έναν βοηθητικό μηχανισμό σε αυτή τη συσκευή. Δοκιμάστε %2$s → «%3$s» (ή «%4$s») και ξεκινήστε ξανά.</item>
|
||||
</plurals>
|
||||
|
||||
<string name="mode_decky_plugins">Πρόσθετα</string>
|
||||
<string name="mode_decky_plugins_hint">Εγκαταστήστε ένα ZIP προσθέτου για την επόμενη συνεδρία Steam.</string>
|
||||
<string name="mode_decky_plugin_downloading">Γίνεται λήψη…</string>
|
||||
@@ -2144,7 +2144,6 @@
|
||||
<string name="bottom_telemetry_elite">Elite Dangerous</string>
|
||||
<string name="bottom_telemetry_unknown_format">Η θύρα %1$d λαμβάνει δεδομένα (%2$d πακέτα των %3$d byte), αλλά σε μορφή που αυτή η σελίδα δεν μπορεί ακόμα να διαβάσει.</string>
|
||||
<string name="bottom_telemetry_port_busy">Ένα άλλο πρόγραμμα χρησιμοποιεί ήδη τη θύρα %1$s, οπότε αυτό το παιχνίδι δεν μπορεί να εμφανιστεί εδώ.</string>
|
||||
|
||||
<string name="rtinst_removing">Κατάργηση του Linux runtime</string>
|
||||
<plurals name="rtinst_removing_entries">
|
||||
<item quantity="one">Κατάργηση του Linux runtime · %1$d εγγραφή</item>
|
||||
@@ -2159,7 +2158,6 @@
|
||||
<string name="rtinst_channel_description">Εμφανίζεται όσο το Linux runtime εγκαθίσταται ή καταργείται</string>
|
||||
<string name="rtinst_title_installing">Εγκατάσταση του Linux runtime</string>
|
||||
<string name="rtinst_title_removing">Κατάργηση του Linux runtime</string>
|
||||
|
||||
<string name="deskpkg_runtime_missing">Το Linux runtime δεν είναι εγκατεστημένο</string>
|
||||
<string name="deskpkg_no_checksum">Ο κατάλογος δεν έχει checksum για το %1$s</string>
|
||||
<string name="deskpkg_checksum_mismatch">Αναντιστοιχία checksum - τίποτα δεν άλλαξε</string>
|
||||
@@ -2167,7 +2165,6 @@
|
||||
<string name="deskpkg_place_failed">Δεν ήταν δυνατή η τοποθέτηση του AppImage</string>
|
||||
<string name="deskpkg_extract_failed">Η εξαγωγή απέτυχε</string>
|
||||
<string name="deskpkg_install_failed">Η εγκατάσταση απέτυχε</string>
|
||||
|
||||
<string name="flatpakmgr_setup_failed">Η ρύθμιση του Flatpak απέτυχε (έξοδος %1$d)</string>
|
||||
<string name="flatpakmgr_setup_unfinished">Η ρύθμιση του Flatpak δεν ολοκληρώθηκε</string>
|
||||
<string name="flatpakmgr_busy">Μια άλλη εργασία καταστήματος εκτελείται ήδη</string>
|
||||
@@ -2186,7 +2183,6 @@
|
||||
<string name="flatpakmgr_ref_media_codecs">codecs πολυμέσων</string>
|
||||
<string name="flatpakmgr_ref_runtime">runtime %1$s</string>
|
||||
<string name="flatpakmgr_ref_runtime_branch">runtime %1$s %2$s</string>
|
||||
|
||||
<string name="appimg_too_small">Το αρχείο είναι πολύ μικρό για να είναι AppImage</string>
|
||||
<string name="appimg_unreadable">Το αρχείο δεν μπορεί να αναγνωστεί: %1$s</string>
|
||||
<string name="appimg_not_linux">Αυτό δεν είναι AppImage (δεν είναι πρόγραμμα Linux)</string>
|
||||
@@ -2201,7 +2197,6 @@
|
||||
<string name="appimg_extracting">Εξαγωγή %1$s</string>
|
||||
<string name="appimg_extract_failed">Δεν ήταν δυνατή η εξαγωγή του AppImage</string>
|
||||
<string name="appimg_extract_failed_detail">Δεν ήταν δυνατή η εξαγωγή του AppImage: %1$s</string>
|
||||
|
||||
<string name="deckymgr_stop_session_loader">Διακόψτε την ενεργή συνεδρία πριν εγκαταστήσετε το Decky Loader</string>
|
||||
<string name="deckymgr_download_failed">Η λήψη του Decky Loader απέτυχε</string>
|
||||
<string name="deckymgr_size_mismatch">Το μέγεθος του Decky Loader δεν ταίριαζε με τα μεταδεδομένα της κυκλοφορίας</string>
|
||||
@@ -2250,13 +2245,11 @@
|
||||
<string name="deckymgr_activate_failed">Δεν ήταν δυνατή η ενεργοποίηση του εισαγόμενου προσθέτου</string>
|
||||
<string name="deckymgr_settings_failed">Δεν ήταν δυνατή η ενημέρωση των ρυθμίσεων προσθέτων Decky</string>
|
||||
<string name="deckymgr_restore_failed">Δεν ήταν δυνατή η επαναφορά του υπάρχοντος προσθέτου</string>
|
||||
|
||||
<string name="adbfix_save_failed">Δεν ήταν δυνατή η αποθήκευση της ταυτότητας ασύρματου εντοπισμού σφαλμάτων</string>
|
||||
<string name="adbfix_command_failed">Η εντολή ADB απέτυχε (%1$d)</string>
|
||||
<string name="adbfix_not_confirmed">Το Android δεν επιβεβαίωσε ότι το όριο θυγατρικών διαδικασιών άλλαξε: %1$s</string>
|
||||
<string name="adbfix_no_pairing">Δεν υπάρχει αποθηκευμένη σύζευξη ασύρματου εντοπισμού σφαλμάτων</string>
|
||||
<string name="adbfix_enter_address">Εισαγάγετε την τρέχουσα διεύθυνση IP & θύρα του ασύρματου εντοπισμού σφαλμάτων</string>
|
||||
|
||||
<string name="adbpair_timed_out">Λήξη χρόνου αναμονής για το αναδυόμενο παράθυρο σύζευξης. Δοκιμάστε ξανά από το DroidDeck.</string>
|
||||
<string name="adbpair_discovery_failed_code">Δεν ήταν δυνατή η αναζήτηση του αναδυόμενου παραθύρου σύζευξης (%1$d). Ελέγξτε ότι το Wi-Fi είναι ενεργό.</string>
|
||||
<string name="adbpair_discovery_failed">Δεν ήταν δυνατή η αναζήτηση του αναδυόμενου παραθύρου σύζευξης: %1$s</string>
|
||||
@@ -2282,7 +2275,6 @@
|
||||
<string name="adbpair_title_done">Το Steam είναι έτοιμο</string>
|
||||
<string name="adbpair_done_text">Πατήστε για να επιστρέψετε στο DroidDeck. Μπορείτε να απενεργοποιήσετε τον ασύρματο εντοπισμό σφαλμάτων τώρα.</string>
|
||||
<string name="adbpair_title_failed">Η ρύθμιση ασύρματου εντοπισμού σφαλμάτων διακόπηκε</string>
|
||||
|
||||
<string name="selfinst_download_failed">Η λήψη απέτυχε</string>
|
||||
<string name="selfinst_size_mismatch">Το μέγεθος της λήψης δεν ταίριαζε με το δημοσιευμένο APK και απορρίφθηκε - δοκιμάστε ξανά</string>
|
||||
<string name="selfinst_checksum_mismatch">Η λήψη δεν ταίριαζε με το άθροισμα ελέγχου της και απορρίφθηκε - δοκιμάστε ξανά</string>
|
||||
@@ -2295,13 +2287,11 @@
|
||||
<string name="selfinst_no_signing">Το ληφθέν APK δεν έχει πληροφορίες υπογραφής</string>
|
||||
<string name="selfinst_wrong_signer">Το ληφθέν APK δεν είναι υπογεγραμμένο με το κλειδί κυκλοφορίας του DroidDeck</string>
|
||||
<string name="appupd_http">Ο κατάλογος ενημερώσεων απάντησε με HTTP %1$d</string>
|
||||
|
||||
<string name="loadstate_starting">Εκκίνηση της συνεδρίας…</string>
|
||||
<string name="loadstate_elapsed">%1$d:%2$02d πέρασαν · ακόμα σε εξέλιξη</string>
|
||||
<string name="loadstate_steam_update">Λήψη της ενημέρωσης του πελάτη Steam · %1$d%%</string>
|
||||
<string name="loadstate_steam_update_applying">Εφαρμογή της ενημέρωσης του πελάτη Steam…</string>
|
||||
<string name="loadstate_steam_client">Λήψη του πελάτη Steam · %1$s</string>
|
||||
|
||||
<string name="pextra_busy">Μια εγκατάσταση εργαλείου συμβατότητας εκτελείται ήδη</string>
|
||||
<string name="pextra_stop_session">Διακόψτε την ενεργή συνεδρία πριν εγκαταστήσετε εργαλεία συμβατότητας</string>
|
||||
<string name="pextra_no_release">Δεν βρέθηκε κυκλοφορία ARM64 για το %1$s</string>
|
||||
@@ -2321,7 +2311,6 @@
|
||||
<string name="pextra_install_failed">Η εγκατάσταση του %1$s απέτυχε (έξοδος %2$d)</string>
|
||||
<string name="pextra_could_not_install">Δεν ήταν δυνατή η εγκατάσταση του %1$s</string>
|
||||
<string name="esync_fetching">Λήψη πακέτου droiddeck-esync</string>
|
||||
|
||||
<string name="cmgr_fex_linux_helpers">με βοηθητικά Linux</string>
|
||||
<string name="cmgr_fex_dlls_only">Μόνο DLL</string>
|
||||
<string name="cmgr_original_proton_updated">Αρχικό (το Proton ενημερώθηκε από την τελευταία εναλλαγή)</string>
|
||||
@@ -2344,13 +2333,11 @@
|
||||
<string name="cmgr_nightly_replaced">Η λήψη απέτυχε: αυτή η νυχτερινή έκδοση ίσως αντικαταστάθηκε από νεότερη. Ανανεώστε τη λίστα και δοκιμάστε ξανά.</string>
|
||||
<string name="cmgr_list_predates_checksums">Αυτή η λίστα πακέτων προηγείται των αθροισμάτων ελέγχου - ανανεώστε την και δοκιμάστε ξανά</string>
|
||||
<string name="cmgr_checksum_mismatch">Αναντιστοιχία αθροίσματος ελέγχου</string>
|
||||
|
||||
<string name="sprefs_upscaler_linear">Γραμμικό</string>
|
||||
<string name="sprefs_upscaler_nearest">Πλησιέστερο</string>
|
||||
<string name="sprefs_upscaler_gsr_quality">Snapdragon GSR (ποιότητα)</string>
|
||||
<string name="sprefs_upscaler_sharpen">Μόνο όξυνση</string>
|
||||
<string name="sprefs_lod_bias_auto">Αυτόματο (αντιστοιχία κλιμάκωσης)</string>
|
||||
|
||||
<string name="look_off_desc">Δεν εφαρμόζεται τίποτα.</string>
|
||||
<string name="look_game_clarity">Σαφήνεια παιχνιδιού</string>
|
||||
<string name="look_game_clarity_desc">Όξυνση με μια πινελιά αντίθεσης - το καθημερινό.</string>
|
||||
@@ -2374,7 +2361,6 @@
|
||||
<string name="look_pixel_clean_desc">Ευκρινή pixel για 2D και παλιά παιχνίδια.</string>
|
||||
<string name="look_anime_edge">Περίγραμμα Anime</string>
|
||||
<string name="look_anime_edge_desc">Περιγράμματα τύπου toon συν όξυνση.</string>
|
||||
|
||||
<string name="gpuinfo_not_adreno">Δεν είναι GPU Adreno</string>
|
||||
<string name="gpuinfo_powervr">Πρόγραμμα οδήγησης PowerVR του συστήματος: η συμβατότητα διαφέρει ανά συσκευή</string>
|
||||
<string name="gpuinfo_xclipse">Πειραματικό: RADV ή το πρόγραμμα οδήγησης Xclipse του συστήματος</string>
|
||||
@@ -2399,7 +2385,6 @@
|
||||
<string name="gpuinfo_unsupported">Δεν υποστηρίζεται: δεν υπάρχει συμβατό υποσύστημα γραφικών για αυτήν την GPU</string>
|
||||
<string name="gpuinfo_bridge">Λειτουργεί μέσω της γέφυρας Mali, πάνω στον ενσωματωμένο οδηγό Vulkan του τηλεφώνου</string>
|
||||
<string name="gpuinfo_bridge_off">Δεν υποστηρίζεται με τη γέφυρα Mali απενεργοποιημένη: το Turnip χρειάζεται GPU Adreno (Snapdragon)</string>
|
||||
|
||||
<string name="turnip_rate_limited">Το όριο ρυθμού του GitHub ξεπεράστηκε - δοκιμάστε ξανά αργότερα</string>
|
||||
<string name="turnip_github_http">Το GitHub απάντησε με HTTP %1$d</string>
|
||||
<string name="turnip_download_failed">Η λήψη απέτυχε</string>
|
||||
@@ -2420,16 +2405,12 @@
|
||||
<string name="bundle_no_manifest">Δεν είναι πακέτο προγραμμάτων οδήγησης: δεν υπάρχει manifest.json που να ονομάζει πρόγραμμα οδήγησης android και linux</string>
|
||||
<string name="bundle_entry_outside">Δεν είναι πακέτο προγραμμάτων οδήγησης: το %1$s δείχνει έξω από αυτό</string>
|
||||
<string name="bundle_too_large">Δεν είναι πακέτο προγραμμάτων οδήγησης: αποσυμπιέζεται σε περισσότερα από %1$d MB</string>
|
||||
|
||||
<string name="gstore_sd_card">Κάρτα SD</string>
|
||||
<string name="gstore_folder">Φάκελος</string>
|
||||
|
||||
<string name="logshare_chooser">Κοινοποίηση αρχείων καταγραφής συνεδρίας</string>
|
||||
|
||||
<string name="hdr_needs_android_10">απαιτεί Android 10 ή νεότερο (επίπεδα οθόνης με χρωματικό χώρο)</string>
|
||||
<string name="hdr_none">αυτή η οθόνη δεν αναφέρει υποστήριξη HDR</string>
|
||||
<string name="hdr_not_hdr10">αυτή η οθόνη υποστηρίζει %1$s, όχι HDR10</string>
|
||||
|
||||
<string name="gpu_this_gpu">αυτό το GPU</string>
|
||||
<string name="phantom_title_on">Το όριο θυγατρικών διαδικασιών είναι ενεργό</string>
|
||||
<string name="phantom_title_unset">Το όριο θυγατρικών διαδικασιών δεν έχει οριστεί</string>
|
||||
@@ -2503,7 +2484,6 @@
|
||||
<string name="device_info_copied">Αντιγράφηκε.</string>
|
||||
<string name="force_ssbs_title">Εξαναγκασμός SSBS</string>
|
||||
<string name="force_ssbs_hint">Διατηρεί μια ρύθμιση ταχύτητας CPU που το Wine απενεργοποιεί συνεχώς. Μπορεί να κάνει τα παιχνίδια Windows πιο γρήγορα σε Snapdragon 8 Elite· μικρή διαφορά σε παλαιότερα chip. Ισχύει από την επόμενη εκκίνηση παιχνιδιού.</string>
|
||||
|
||||
<string name="rail_stores">Καταστήματα</string>
|
||||
<string name="source_steam">Steam</string>
|
||||
<string name="source_added">Προσαρμοσμένο</string>
|
||||
@@ -2989,7 +2969,6 @@
|
||||
<string name="touch_icon_color">Χρώμα εικονιδίου</string>
|
||||
<string name="touch_button_color">Χρώμα κουμπιού</string>
|
||||
<string name="touch_no_icon">Χωρίς εικονίδιο</string>
|
||||
|
||||
<string name="stores_sync_sign_in">Έλεγχος σύνδεσης…</string>
|
||||
<string name="stores_sync_library">Λήψη της βιβλιοθήκης σας…</string>
|
||||
<string name="stores_sync_game_list">Λήψη λίστας παιχνιδιών…</string>
|
||||
@@ -3777,6 +3756,7 @@
|
||||
<string name="sync_not_running">Το Syncthing δεν εκτελείται.</string>
|
||||
<string name="session_end_steam_sigill">Το Steam σταμάτησε με μη έγκυρη εντολή (SIGILL). Μπορεί να είναι πρόβλημα συμβατότητας εντολών CPU ή κατάρρευση του πελάτη. Μοιραστείτε τα αρχεία καταγραφής με τα στοιχεία της συσκευής σας.</string>
|
||||
<string name="session_end_steam_try_x64">Μπορείτε να δοκιμάσετε Ρυθμίσεις Steam → Πελάτης Steam → x86-64 (πειραματικό). Απαιτεί επιπλέον λήψη και μπορεί να είναι πιο αργό.</string>
|
||||
<string name="session_end_fex_kernel">Τα προγράμματα x86 και το πρόγραμμα-πελάτης Steam x86-64 εκτελούνται μέσω του FEX, το οποίο δεν μπορεί να λειτουργήσει στον πυρήνα Linux αυτής της συσκευής (%1$s).</string>
|
||||
<string name="session_end_vulkan_device">Το πρόγραμμα οδήγησης γραφικών Linux δεν βρήκε χρησιμοποιήσιμη συσκευή Vulkan. Ελέγξτε ότι το επιλεγμένο πρόγραμμα οδήγησης GPU Linux υποστηρίζει αυτή τη GPU.</string>
|
||||
<string name="session_end_gpu_unsupported">Αυτή η συνεδρία δεν μπορεί να ξεκινήσει επειδή αυτή η GPU δεν έχει συμβατό πρόγραμμα οδήγησης Vulkan για Linux στην τρέχουσα ρύθμιση. Τα προγράμματα οδήγησης Adreno Turnip δεν μπορούν να ενεργοποιήσουν υποστήριξη για GPU MediaTek/Mali.</string>
|
||||
<string name="setup_group_memory">Μνήμη</string>
|
||||
@@ -4026,10 +4006,8 @@
|
||||
<string name="input_show_label">Εμφάνιση ετικέτας</string>
|
||||
<string name="input_layout_import_failed">Δεν ήταν δυνατή η εισαγωγή αυτής της διάταξης</string>
|
||||
<string name="epic_third_party_managed">Εγκαθίσταται μέσω %1$s</string>
|
||||
|
||||
<string name="theme_white_red">Κατακόκκινο χιόνι</string>
|
||||
<string name="theme_white_red_detail">Λευκές επιφάνειες με κόκκινες λεπτομέρειες.</string>
|
||||
|
||||
<string name="rail_soundtracks">Soundtrack</string>
|
||||
<string name="rail_music">Μουσική</string>
|
||||
<string name="soundtracks_options">Επιλογές αναπαραγωγής</string>
|
||||
@@ -4106,4 +4084,9 @@
|
||||
<string name="hud_readings_shown">Εμφανίζονται</string>
|
||||
<string name="hud_readings_count">%1$d από %2$d</string>
|
||||
<string name="exit_hint_back">Πατήστε ξανά πίσω για έξοδο</string>
|
||||
</resources>
|
||||
<string name="display_integer_scaling">Ακέραια κλιμάκωση</string>
|
||||
<string name="display_integer_scaling_hint">Χρησιμοποιεί τη μεγαλύτερη ακέραια κλίμακα που χωράει. Ενδέχεται να περικοπούν οι άκρες. Αν η πηγή είναι μεγαλύτερη από την έξοδο, η κλασματική κλιμάκωση εμφανίζει ολόκληρη την εικόνα. Η ανάλυση ρυθμίζεται ξεχωριστά.</string>
|
||||
<string name="display_scaling_integer">Ακέραιος</string>
|
||||
<string name="display_scaling_fit">Προσαρμογή</string>
|
||||
<string name="drawer_antialiasing">Εξομάλυνση ακμών</string>
|
||||
</resources>
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<resources>
|
||||
<string name="steamvr_recovery_title">Los gráficos de SteamVR se detuvieron</string>
|
||||
<string name="steamvr_recovery_countdown">DroidDeck se reiniciará en %1$d segundos para restablecer los gráficos y volver a abrir SteamVR. Tu juego en curso se cerrará; el progreso no guardado no se podrá recuperar.</string>
|
||||
@@ -677,6 +677,8 @@
|
||||
<string name="drawer_page_display">Pantalla</string>
|
||||
<string name="drawer_frame_limit">Límite de fotogramas</string>
|
||||
<string name="drawer_frame_limit_note">Limita este juego. La pantalla cambia a una frecuencia de actualización que sea múltiplo exacto del límite cuando la hay; otros límites pueden verse irregulares. Los juegos de Steam usan el Límite de fotogramas de Steam en el menú Quick Access.</string>
|
||||
<string name="drawer_bfi">Inserción de fotogramas negros</string>
|
||||
<string name="drawer_bfi_note">Movimiento más nítido: cada fotograma va seguido de un refresco negro. Requiere 100 Hz o más; el juego va a la mitad de la frecuencia y se ve más oscuro. Desactivado con la generación de fotogramas.</string>
|
||||
<string name="drawer_page_effects">Efectos</string>
|
||||
<string name="drawer_page_controls">Controles</string>
|
||||
<string name="drawer_page_components">Componentes</string>
|
||||
@@ -710,7 +712,10 @@
|
||||
<string name="hud_size_mega">Mega</string>
|
||||
<string name="hud_size_strip">Barra</string>
|
||||
<string name="hud_locked">Fijar posición</string>
|
||||
<string name="hud_locked_hint">Arrastra el HUD para moverlo; una pulsación larga lo bloquea o lo desbloquea. Mientras está bloqueado, los controles en pantalla que tiene debajo siguen funcionando.</string>
|
||||
<string name="hud_locked_hint">Arrastra el HUD para moverlo. Mientras está bloqueado, los controles en pantalla que tiene debajo siguen funcionando.</string>
|
||||
<string name="hud_hold">Pulsación larga</string>
|
||||
<string name="hud_hold_collapse">Contraer o expandir</string>
|
||||
<string name="hud_hold_lock">Bloquear o desbloquear</string>
|
||||
<string name="hud_snap">Ajustar a los lados</string>
|
||||
<string name="hud_snap_hint">Al soltar el HUD, se mueve al lado más cercano de la pantalla. Un gesto rápido lo lanza en esa dirección.</string>
|
||||
<string name="hud_group_look">Aspecto</string>
|
||||
@@ -1146,7 +1151,7 @@
|
||||
<string name="lab_off_title">Compilación de laboratorio desactivada</string>
|
||||
<string name="lab_off_other_install">Se compiló para otra versión de DroidDeck. Se conserva en Actualizaciones.</string>
|
||||
<string name="lab_off_did_not_start">DroidDeck no se inició en dos ocasiones con esa compilación.</string>
|
||||
<string name="rail_agent">Agente</string>
|
||||
<string name="rail_agent">Dev Harness</string>
|
||||
<string name="agent_channel_name">Agente</string>
|
||||
<string name="agent_working">El agente está trabajando</string>
|
||||
<string name="agent_missing">Instala Claude Code en el espacio de usuario de Linux para usar el agente.</string>
|
||||
@@ -1186,6 +1191,7 @@
|
||||
<string name="agent_hint_working">Escribe para encolar el siguiente mensaje</string>
|
||||
<string name="agent_queue">Encolar</string>
|
||||
<string name="agent_queued">Siguiente: %1$s</string>
|
||||
<string name="agent_tools_missing">Herramientas del agente sin instalar: %1$s</string>
|
||||
<string name="agent_unqueue">No enviar</string>
|
||||
<string name="agent_attach">Adjuntar</string>
|
||||
<string name="agent_remove_attachment">Quitar</string>
|
||||
@@ -1595,7 +1601,6 @@
|
||||
<string name="game_file_folder">Elige una carpeta para los archivos de juegos del frontend</string>
|
||||
<string name="game_file_exported">Archivos de juegos guardados en %1$s</string>
|
||||
<string name="game_frontend_files">Archivos para frontends</string>
|
||||
|
||||
<string name="main_wait_runtime">Espera a que termine la operación del runtime</string>
|
||||
<string name="main_wait_proton_install">Espera a que termine la instalación de la herramienta de compatibilidad</string>
|
||||
<string name="load_compat_title">Preparando las herramientas de compatibilidad</string>
|
||||
@@ -1686,7 +1691,6 @@
|
||||
<string name="main_removing_runtime">Eliminando el runtime de Linux</string>
|
||||
<string name="main_settings_main_screen">No se pudieron abrir los Ajustes en la pantalla inferior; se abrieron en la pantalla principal.</string>
|
||||
<string name="main_open_dev_options">Abre Opciones de desarrollador en Ajustes</string>
|
||||
|
||||
<string name="upd_unknown_apps_failed">No se pudo abrir el ajuste \"Instalar apps desconocidas\" de Android</string>
|
||||
<string name="upd_couldnt_check">No se pudo comprobar: %1$s</string>
|
||||
<string name="upd_no_download">Esta versión no tiene descarga para esta copia de DroidDeck</string>
|
||||
@@ -1696,12 +1700,10 @@
|
||||
<string name="upd_stage_confirm">Esperando tu confirmación</string>
|
||||
<string name="upd_failed">La actualización falló</string>
|
||||
<string name="upd_not_offered">Android no ofreció instalar la actualización</string>
|
||||
|
||||
<string name="decky_install_failed">Falló la instalación de Decky: %1$s</string>
|
||||
<string name="decky_plugin_starting">Iniciando la importación del plugin…</string>
|
||||
<string name="decky_plugin_failed">Falló la importación del plugin: %1$s</string>
|
||||
<string name="decky_plugin_installed">Plugin instalado. Reinicia Steam para cargarlo.</string>
|
||||
|
||||
<string name="drivers_not_checked">Aún sin comprobar - toca actualizar para buscar controladores nuevos</string>
|
||||
<string name="drivers_bundle_sets_display">Android + Linux: define también el controlador de pantalla</string>
|
||||
<string name="drivers_bundle_sets_runtime">Android + Linux: define también el controlador de runtime</string>
|
||||
@@ -1757,7 +1759,6 @@
|
||||
<string name="drivers_check_failed">falló la comprobación</string>
|
||||
<string name="drivers_installed_pick_either">%1$s instalado - elígelo en cualquiera de las listas para definir ambos controladores</string>
|
||||
<string name="drivers_installed_pick">%1$s instalado - elígelo en el menú</string>
|
||||
|
||||
<string name="session_wait_removal">Espera a que termine la eliminación del runtime</string>
|
||||
<string name="session_title_game">Juego</string>
|
||||
<string name="session_touch_auto_touchpad">touchpad</string>
|
||||
@@ -1805,7 +1806,6 @@
|
||||
<item quantity="many">El registro muestra %1$d errores \"Function not implemented\": la aceleración seccomp de proot hace fallar un proceso auxiliar en este dispositivo. Prueba %2$s → \"%3$s\" (o \"%4$s\") y vuelve a iniciar.</item>
|
||||
<item quantity="other">El registro muestra %1$d errores \"Function not implemented\": la aceleración seccomp de proot hace fallar un proceso auxiliar en este dispositivo. Prueba %2$s → \"%3$s\" (o \"%4$s\") y vuelve a iniciar.</item>
|
||||
</plurals>
|
||||
|
||||
<string name="mode_decky_plugins">Plugins</string>
|
||||
<string name="mode_decky_plugins_hint">Instala un ZIP de plugin para la próxima sesión de Steam.</string>
|
||||
<string name="mode_decky_plugin_downloading">Descargando…</string>
|
||||
@@ -2169,7 +2169,6 @@
|
||||
<string name="bottom_telemetry_elite">Elite Dangerous</string>
|
||||
<string name="bottom_telemetry_unknown_format">El puerto %1$d recibe datos (%2$d paquetes de %3$d bytes), pero en un formato que esta página aún no puede leer.</string>
|
||||
<string name="bottom_telemetry_port_busy">Otro programa ya usa el puerto %1$s, así que ese juego no se puede mostrar aquí.</string>
|
||||
|
||||
<string name="rtinst_removing">Eliminando el runtime de Linux</string>
|
||||
<plurals name="rtinst_removing_entries">
|
||||
<item quantity="one">Eliminando el runtime de Linux · %1$d elemento</item>
|
||||
@@ -2185,7 +2184,6 @@
|
||||
<string name="rtinst_channel_description">Se muestra mientras se instala o elimina el runtime de Linux</string>
|
||||
<string name="rtinst_title_installing">Instalando el runtime de Linux</string>
|
||||
<string name="rtinst_title_removing">Eliminando el runtime de Linux</string>
|
||||
|
||||
<string name="deskpkg_runtime_missing">El runtime de Linux no está instalado</string>
|
||||
<string name="deskpkg_no_checksum">El catálogo no tiene suma de verificación para %1$s</string>
|
||||
<string name="deskpkg_checksum_mismatch">La suma de verificación no coincide - no se cambió nada</string>
|
||||
@@ -2193,7 +2191,6 @@
|
||||
<string name="deskpkg_place_failed">No se pudo colocar el AppImage</string>
|
||||
<string name="deskpkg_extract_failed">La extracción falló</string>
|
||||
<string name="deskpkg_install_failed">La instalación falló</string>
|
||||
|
||||
<string name="flatpakmgr_setup_failed">La configuración de Flatpak falló (salida %1$d)</string>
|
||||
<string name="flatpakmgr_setup_unfinished">La configuración de Flatpak no terminó</string>
|
||||
<string name="flatpakmgr_busy">Hay otra tarea de la tienda en curso</string>
|
||||
@@ -2212,7 +2209,6 @@
|
||||
<string name="flatpakmgr_ref_media_codecs">códecs multimedia</string>
|
||||
<string name="flatpakmgr_ref_runtime">runtime de %1$s</string>
|
||||
<string name="flatpakmgr_ref_runtime_branch">runtime de %1$s %2$s</string>
|
||||
|
||||
<string name="appimg_too_small">El archivo es demasiado pequeño para ser un AppImage</string>
|
||||
<string name="appimg_unreadable">No se puede leer el archivo: %1$s</string>
|
||||
<string name="appimg_not_linux">Esto no es un AppImage (no es un programa de Linux)</string>
|
||||
@@ -2227,7 +2223,6 @@
|
||||
<string name="appimg_extracting">Extrayendo %1$s</string>
|
||||
<string name="appimg_extract_failed">No se pudo extraer el AppImage</string>
|
||||
<string name="appimg_extract_failed_detail">No se pudo extraer el AppImage: %1$s</string>
|
||||
|
||||
<string name="deckymgr_stop_session_loader">Detén la sesión activa antes de instalar Decky Loader</string>
|
||||
<string name="deckymgr_download_failed">Falló la descarga de Decky Loader</string>
|
||||
<string name="deckymgr_size_mismatch">El tamaño de Decky Loader no coincide con los metadatos de la versión</string>
|
||||
@@ -2276,13 +2271,11 @@
|
||||
<string name="deckymgr_activate_failed">No se pudo activar el plugin importado</string>
|
||||
<string name="deckymgr_settings_failed">No se pudieron actualizar los ajustes de plugins de Decky</string>
|
||||
<string name="deckymgr_restore_failed">No se pudo restaurar el plugin existente</string>
|
||||
|
||||
<string name="adbfix_save_failed">No se pudo guardar la identidad de la Depuración inalámbrica</string>
|
||||
<string name="adbfix_command_failed">Falló el comando ADB (%1$d)</string>
|
||||
<string name="adbfix_not_confirmed">Android no confirmó el cambio del límite de procesos secundarios: %1$s</string>
|
||||
<string name="adbfix_no_pairing">No hay ninguna vinculación de Depuración inalámbrica guardada</string>
|
||||
<string name="adbfix_enter_address">Introduce la dirección IP y el puerto actuales de la Depuración inalámbrica</string>
|
||||
|
||||
<string name="adbpair_timed_out">Se agotó el tiempo de espera de la ventana de vinculación. Inténtalo de nuevo desde DroidDeck.</string>
|
||||
<string name="adbpair_discovery_failed_code">No se pudo buscar la ventana de vinculación (%1$d). Comprueba que el Wi-Fi esté activado.</string>
|
||||
<string name="adbpair_discovery_failed">No se pudo buscar la ventana de vinculación: %1$s</string>
|
||||
@@ -2308,7 +2301,6 @@
|
||||
<string name="adbpair_title_done">Steam está listo</string>
|
||||
<string name="adbpair_done_text">Toca para volver a DroidDeck. Ya puedes desactivar la Depuración inalámbrica.</string>
|
||||
<string name="adbpair_title_failed">Se detuvo la configuración de la Depuración inalámbrica</string>
|
||||
|
||||
<string name="selfinst_download_failed">Error en la descarga</string>
|
||||
<string name="selfinst_size_mismatch">El tamaño de la descarga no coincidía con el APK publicado y se descartó - inténtalo de nuevo</string>
|
||||
<string name="selfinst_checksum_mismatch">La descarga no coincidía con su suma de verificación y se descartó - inténtalo de nuevo</string>
|
||||
@@ -2321,13 +2313,11 @@
|
||||
<string name="selfinst_no_signing">El APK descargado no tiene información de firma</string>
|
||||
<string name="selfinst_wrong_signer">El APK descargado no está firmado con la clave de publicación de DroidDeck</string>
|
||||
<string name="appupd_http">El catálogo de actualizaciones respondió HTTP %1$d</string>
|
||||
|
||||
<string name="loadstate_starting">Iniciando la sesión…</string>
|
||||
<string name="loadstate_elapsed">%1$d:%2$02d transcurridos · sigue en marcha</string>
|
||||
<string name="loadstate_steam_update">Descargando la actualización del cliente de Steam · %1$d%%</string>
|
||||
<string name="loadstate_steam_update_applying">Aplicando la actualización del cliente de Steam…</string>
|
||||
<string name="loadstate_steam_client">Descargando el cliente de Steam · %1$s</string>
|
||||
|
||||
<string name="pextra_busy">Ya se está instalando una herramienta de compatibilidad</string>
|
||||
<string name="pextra_stop_session">Detén la sesión activa antes de instalar herramientas de compatibilidad</string>
|
||||
<string name="pextra_no_release">No se encontró una versión ARM64 de %1$s</string>
|
||||
@@ -2347,7 +2337,6 @@
|
||||
<string name="pextra_install_failed">Falló la instalación de %1$s (salida %2$d)</string>
|
||||
<string name="pextra_could_not_install">No se pudo instalar %1$s</string>
|
||||
<string name="esync_fetching">Descargando el paquete droiddeck-esync</string>
|
||||
|
||||
<string name="cmgr_fex_linux_helpers">con auxiliares de Linux</string>
|
||||
<string name="cmgr_fex_dlls_only">Solo DLL</string>
|
||||
<string name="cmgr_original_proton_updated">Original (Proton se actualizó desde el último reemplazo)</string>
|
||||
@@ -2370,13 +2359,11 @@
|
||||
<string name="cmgr_nightly_replaced">Error en la descarga: puede que esta compilación nocturna se haya sustituido por una más reciente. Actualiza la lista y vuelve a intentarlo.</string>
|
||||
<string name="cmgr_list_predates_checksums">Esta lista de paquetes es anterior a las sumas de verificación - actualízala e inténtalo de nuevo</string>
|
||||
<string name="cmgr_checksum_mismatch">La suma de verificación no coincide</string>
|
||||
|
||||
<string name="sprefs_upscaler_linear">Lineal</string>
|
||||
<string name="sprefs_upscaler_nearest">Más cercano</string>
|
||||
<string name="sprefs_upscaler_gsr_quality">Snapdragon GSR (calidad)</string>
|
||||
<string name="sprefs_upscaler_sharpen">Solo nitidez</string>
|
||||
<string name="sprefs_lod_bias_auto">Auto (según el escalado)</string>
|
||||
|
||||
<string name="look_off_desc">Sin efectos.</string>
|
||||
<string name="look_game_clarity">Claridad</string>
|
||||
<string name="look_game_clarity_desc">Nitidez con un toque de contraste: el de todos los días.</string>
|
||||
@@ -2400,7 +2387,6 @@
|
||||
<string name="look_pixel_clean_desc">Píxeles nítidos para 2D y juegos antiguos.</string>
|
||||
<string name="look_anime_edge">Bordes anime</string>
|
||||
<string name="look_anime_edge_desc">Contornos toon más nitidez.</string>
|
||||
|
||||
<string name="gpuinfo_not_adreno">La GPU no es Adreno</string>
|
||||
<string name="gpuinfo_powervr">Controlador PowerVR del sistema: la compatibilidad varía según el dispositivo</string>
|
||||
<string name="gpuinfo_xclipse">Experimental: RADV o el controlador Xclipse del sistema</string>
|
||||
@@ -2425,7 +2411,6 @@
|
||||
<string name="gpuinfo_unsupported">No compatible: no hay un motor gráfico compatible disponible para esta GPU</string>
|
||||
<string name="gpuinfo_bridge">Se ejecuta a través del puente Mali, sobre el controlador Vulkan propio del teléfono</string>
|
||||
<string name="gpuinfo_bridge_off">No se admite con el puente Mali desactivado: Turnip necesita una GPU Adreno (Snapdragon)</string>
|
||||
|
||||
<string name="turnip_rate_limited">Se alcanzó el límite de solicitudes de GitHub - inténtalo más tarde</string>
|
||||
<string name="turnip_github_http">GitHub respondió HTTP %1$d</string>
|
||||
<string name="turnip_download_failed">Error en la descarga</string>
|
||||
@@ -2446,16 +2431,12 @@
|
||||
<string name="bundle_no_manifest">No es un paquete de controladores: no hay un manifest.json que indique un controlador android y uno linux</string>
|
||||
<string name="bundle_entry_outside">No es un paquete de controladores: %1$s apunta fuera de él</string>
|
||||
<string name="bundle_too_large">No es un paquete de controladores: ocupa más de %1$d MB al descomprimirse</string>
|
||||
|
||||
<string name="gstore_sd_card">Tarjeta SD</string>
|
||||
<string name="gstore_folder">Carpeta</string>
|
||||
|
||||
<string name="logshare_chooser">Compartir registros de sesión</string>
|
||||
|
||||
<string name="hdr_needs_android_10">requiere Android 10 o posterior (capas de pantalla con espacio de color)</string>
|
||||
<string name="hdr_none">esta pantalla no indica compatibilidad con HDR</string>
|
||||
<string name="hdr_not_hdr10">esta pantalla admite %1$s, no HDR10</string>
|
||||
|
||||
<string name="gpu_this_gpu">esta GPU</string>
|
||||
<string name="phantom_title_on">El límite de procesos secundarios está activado</string>
|
||||
<string name="phantom_title_unset">El límite de procesos secundarios no está definido</string>
|
||||
@@ -2529,7 +2510,6 @@
|
||||
<string name="device_info_copied">Copiado.</string>
|
||||
<string name="force_ssbs_title">Forzar SSBS</string>
|
||||
<string name="force_ssbs_hint">Mantiene activado un ajuste de velocidad de la CPU que Wine sigue desactivando. Puede hacer más rápidos los juegos de Windows en Snapdragon 8 Elite; poco cambio en chips anteriores. Se aplica en el próximo inicio de un juego.</string>
|
||||
|
||||
<string name="rail_stores">Tiendas</string>
|
||||
<string name="source_steam">Steam</string>
|
||||
<string name="source_added">Personalizados</string>
|
||||
@@ -3015,7 +2995,6 @@
|
||||
<string name="touch_icon_color">Color del icono</string>
|
||||
<string name="touch_button_color">Color del botón</string>
|
||||
<string name="touch_no_icon">Sin icono</string>
|
||||
|
||||
<string name="stores_sync_sign_in">Comprobando el inicio de sesión…</string>
|
||||
<string name="stores_sync_library">Obteniendo tu biblioteca…</string>
|
||||
<string name="stores_sync_game_list">Obteniendo la lista de juegos…</string>
|
||||
@@ -3816,6 +3795,7 @@
|
||||
<string name="sync_not_running">Syncthing no se está ejecutando.</string>
|
||||
<string name="session_end_steam_sigill">Steam se detuvo por una instrucción ilegal (SIGILL). Puede ser un problema de compatibilidad con instrucciones de la CPU o un fallo del cliente. Comparte los registros con los datos de tu dispositivo.</string>
|
||||
<string name="session_end_steam_try_x64">Puedes probar Ajustes de Steam → Cliente de Steam → x86-64 (experimental). Requiere una descarga adicional y puede ir más lento.</string>
|
||||
<string name="session_end_fex_kernel">Los programas x86 y el cliente de Steam x86-64 se ejecutan con FEX, que no puede funcionar con el kernel de Linux de este dispositivo (%1$s).</string>
|
||||
<string name="session_end_vulkan_device">El controlador gráfico de Linux no ha encontrado un dispositivo Vulkan utilizable. Comprueba que el controlador de GPU de Linux seleccionado sea compatible con esta GPU.</string>
|
||||
<string name="session_end_gpu_unsupported">Esta sesión no puede iniciarse porque esta GPU no tiene un controlador Vulkan de Linux compatible en la configuración actual. Los controladores Turnip de Adreno no pueden habilitar la compatibilidad con GPU MediaTek/Mali.</string>
|
||||
<string name="setup_group_memory">Memoria</string>
|
||||
@@ -4066,10 +4046,8 @@
|
||||
<string name="input_show_label">Mostrar etiqueta</string>
|
||||
<string name="input_layout_import_failed">No se ha podido importar esta disposición</string>
|
||||
<string name="epic_third_party_managed">Se instala mediante %1$s</string>
|
||||
|
||||
<string name="theme_white_red">Nieve escarlata</string>
|
||||
<string name="theme_white_red_detail">Superficies blancas con acentos rojos.</string>
|
||||
|
||||
<string name="rail_soundtracks">Bandas sonoras</string>
|
||||
<string name="rail_music">Música</string>
|
||||
<string name="soundtracks_options">Opciones de reproducción</string>
|
||||
@@ -4146,4 +4124,9 @@
|
||||
<string name="hud_readings_shown">Mostrados</string>
|
||||
<string name="hud_readings_count">%1$d de %2$d</string>
|
||||
<string name="exit_hint_back">Pulsa atrás una vez más para salir</string>
|
||||
</resources>
|
||||
<string name="display_integer_scaling">Escalado de píxeles enteros</string>
|
||||
<string name="display_integer_scaling_hint">Usa la mayor escala entera que cabe. Puede recortar los bordes. Si la imagen original supera el tamaño de salida, el escalado fraccional muestra la imagen completa. La resolución se configura por separado.</string>
|
||||
<string name="display_scaling_integer">Entero</string>
|
||||
<string name="display_scaling_fit">Ajustar</string>
|
||||
<string name="drawer_antialiasing">Suavizado de bordes</string>
|
||||
</resources>
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<resources>
|
||||
<string name="steamvr_recovery_title">SteamVR:n grafiikka pysähtyi</string>
|
||||
<string name="steamvr_recovery_countdown">DroidDeck käynnistyy uudelleen %1$d sekunnin kuluttua nollatakseen grafiikan ja avatakseen SteamVR:n uudelleen. Käynnissä oleva pelisi suljetaan; tallentamatonta edistymistä ei voi palauttaa.</string>
|
||||
@@ -357,7 +357,7 @@
|
||||
<string name="mode_return_after_game">Palaa DroidDeckiin pelin jälkeen</string>
|
||||
<string name="mode_return_after_game_hint">Kun DroidDeckistä tai muusta käynnistimestä aloittamasi peli sulkeutuu, Steam sulkeutuu hallitusti (pilvitallennukset valmistuvat ensin) ja palaat sinne. Pois: pysy Steamissa.</string>
|
||||
<string name="mode_shader_precache">Sävyttimien esivälimuistitus</string>
|
||||
<string name="mode_shader_precache_hint">Steam lataa peleillesi valmiiksi käännetyt sävyttimet ja käsittelee ne taustalla, joten pelit nykivät vähemmän. Pois päältä säästää dataa, tallennustilaa ja akkua; pelit kääntävät sävyttimet pelatessa. Sama asetus kuin Steamin Lataukset > Shader Pre-Caching. Tulee voimaan seuraavassa istunnossa.</string>
|
||||
<string name="mode_shader_precache_hint">Steam lataa peleillesi valmiiksi käännetyt sävyttimet ja käsittelee ne taustalla, joten pelit nykivät vähemmän. Pois päältä säästää dataa, tallennustilaa ja akkua; pelit kääntävät sävyttimet pelatessa. Sama asetus kuin Steamin Lataukset > Shader Pre-Caching. Tulee voimaan seuraavassa istunnossa.</string>
|
||||
<string name="mode_steam_repair">Korjaa Steam-asiakasohjelma</string>
|
||||
<string name="mode_steam_repair_hint">Lataa Steam-asiakasohjelman uudelleen, kun Steam käynnistyy seuraavan kerran. Käytä tätä, jos Steam jää latausnäytölle. Pelit, kirjautuminen ja asetukset säilyvät.</string>
|
||||
<string name="mode_steam_repair_queued">Steam-asiakasohjelma ladataan uudelleen, kun Steam käynnistyy seuraavan kerran.</string>
|
||||
@@ -675,6 +675,8 @@
|
||||
<string name="drawer_page_display">Näyttö</string>
|
||||
<string name="drawer_frame_limit">Kuvanopeusraja</string>
|
||||
<string name="drawer_frame_limit_note">Rajoittaa tätä peliä. Näyttö vaihtaa virkistystaajuuteen, joka on rajan tasakerrannainen, jos sellainen on; muut rajat voivat näyttää epätasaisilta. Steam-pelit käyttävät Steamin Frame Limit -asetusta Pikavalikossa.</string>
|
||||
<string name="drawer_bfi">Mustien kuvien lisäys</string>
|
||||
<string name="drawer_bfi_note">Terävämpi liike: jokaista kuvaa seuraa musta päivitys. Vaatii vähintään 100 Hz; peli pyörii puolella virkistystaajuudesta ja näyttää tummemmalta. Pois päältä kuvien generoinnin aikana.</string>
|
||||
<string name="drawer_page_effects">Tehosteet</string>
|
||||
<string name="drawer_page_controls">Ohjaimet</string>
|
||||
<string name="drawer_page_components">Komponentit</string>
|
||||
@@ -708,7 +710,10 @@
|
||||
<string name="hud_size_mega">Mega</string>
|
||||
<string name="hud_size_strip">Palkki</string>
|
||||
<string name="hud_locked">Lukitse paikalleen</string>
|
||||
<string name="hud_locked_hint">Siirrä HUD:ia vetämällä; pitkä painallus lukitsee tai vapauttaa sen. Lukittuna sen alla olevat näytön ohjaimet toimivat edelleen.</string>
|
||||
<string name="hud_locked_hint">Siirrä HUD:ia vetämällä. Lukittuna sen alla olevat näytön ohjaimet toimivat edelleen.</string>
|
||||
<string name="hud_hold">Pitkä painallus</string>
|
||||
<string name="hud_hold_collapse">Tiivistä tai laajenna</string>
|
||||
<string name="hud_hold_lock">Lukitse tai vapauta</string>
|
||||
<string name="hud_snap">Kiinnitä sivuille</string>
|
||||
<string name="hud_snap_hint">Kun päästät HUDista irti, se siirtyy näytön lähempään reunaan. Nopea pyyhkäisy heittää sen siihen suuntaan.</string>
|
||||
<string name="hud_group_look">Ulkoasu</string>
|
||||
@@ -1143,7 +1148,7 @@
|
||||
<string name="lab_off_title">Lab-versio poistettu käytöstä</string>
|
||||
<string name="lab_off_other_install">Se rakennettiin DroidDeckin toiselle versiolle. Se on tallessa Päivityksissä.</string>
|
||||
<string name="lab_off_did_not_start">DroidDeck ei käynnistynyt sillä kahdesti</string>
|
||||
<string name="rail_agent">Agentti</string>
|
||||
<string name="rail_agent">Dev Harness</string>
|
||||
<string name="agent_channel_name">Agentti</string>
|
||||
<string name="agent_working">Agentti työskentelee</string>
|
||||
<string name="agent_missing">Asenna Claude Code Linux-ympäristöön käyttääksesi agenttia.</string>
|
||||
@@ -1183,6 +1188,7 @@
|
||||
<string name="agent_hint_working">Kirjoita lisätäksesi seuraavan viestin jonoon</string>
|
||||
<string name="agent_queue">Jono</string>
|
||||
<string name="agent_queued">Seuraava: %1$s</string>
|
||||
<string name="agent_tools_missing">Agentin työkaluja ei ole asennettu: %1$s</string>
|
||||
<string name="agent_unqueue">Älä lähetä</string>
|
||||
<string name="agent_attach">Liitä</string>
|
||||
<string name="agent_remove_attachment">Poista</string>
|
||||
@@ -1587,7 +1593,6 @@
|
||||
<string name="game_file_folder">Valitse kansio käyttöliittymän pelitiedostoille</string>
|
||||
<string name="game_file_exported">Pelitiedostot tallennettu kohteeseen %1$s</string>
|
||||
<string name="game_frontend_files">Käyttöliittymän tiedostot</string>
|
||||
|
||||
<string name="main_wait_runtime">Odota, että ajoympäristötoiminto päättyy</string>
|
||||
<string name="main_wait_proton_install">Odota, että yhteensopivuustyökalun asennus päättyy</string>
|
||||
<string name="load_compat_title">Valmistellaan yhteensopivuustyökaluja</string>
|
||||
@@ -1673,7 +1678,6 @@
|
||||
<string name="main_removing_runtime">Poistetaan Linux-ajoympäristöä</string>
|
||||
<string name="main_settings_main_screen">Asetuksia ei voitu avata alanäytöllä; avattiin sen sijaan päänäytöllä.</string>
|
||||
<string name="main_open_dev_options">Avaa Kehittäjäasetukset Asetuksissa</string>
|
||||
|
||||
<string name="upd_unknown_apps_failed">Androidin \"Tuntemattomien sovellusten asentaminen\" -asetusta ei voitu avata</string>
|
||||
<string name="upd_couldnt_check">Tarkistus epäonnistui: %1$s</string>
|
||||
<string name="upd_no_download">Tälle versiolle ei ole latausta tähän DroidDeck-kopioon</string>
|
||||
@@ -1683,12 +1687,10 @@
|
||||
<string name="upd_stage_confirm">Odotetaan vahvistustasi</string>
|
||||
<string name="upd_failed">Päivitys epäonnistui</string>
|
||||
<string name="upd_not_offered">Android ei tarjonnut päivityksen asentamista</string>
|
||||
|
||||
<string name="decky_install_failed">Deckyn asennus epäonnistui: %1$s</string>
|
||||
<string name="decky_plugin_starting">Aloitetaan laajennuksen tuontia…</string>
|
||||
<string name="decky_plugin_failed">Laajennuksen tuonti epäonnistui: %1$s</string>
|
||||
<string name="decky_plugin_installed">Laajennus asennettu. Käynnistä Steam uudelleen, jotta se latautuu.</string>
|
||||
|
||||
<string name="drivers_not_checked">Ei tarkistettu vielä - napauta päivitä etsiäksesi uusia ajureita</string>
|
||||
<string name="drivers_bundle_sets_display">Android + Linux: asettaa näyttöajurin sen mukana</string>
|
||||
<string name="drivers_bundle_sets_runtime">Android + Linux: asettaa ajoympäristön ajurin sen mukana</string>
|
||||
@@ -1741,7 +1743,6 @@
|
||||
<string name="drivers_check_failed">tarkistus epäonnistui</string>
|
||||
<string name="drivers_installed_pick_either">Asennettu %1$s - valitse se kummasta tahansa listasta asettaaksesi molemmat ajurit</string>
|
||||
<string name="drivers_installed_pick">Asennettu %1$s - valitse se valikosta</string>
|
||||
|
||||
<string name="session_wait_removal">Odota, että ajoympäristön poisto päättyy</string>
|
||||
<string name="session_title_game">Peli</string>
|
||||
<string name="session_touch_auto_touchpad">kosketuslevy</string>
|
||||
@@ -1787,7 +1788,6 @@
|
||||
<item quantity="one">Loki näyttää %1$d ”Function not implemented” -virheen: prootin seccomp-kiihdytys epäonnistuu laitteen apuohjelmassa. Kokeile %2$s → ”%3$s” (tai ”%4$s”) ja käynnistä uudelleen.</item>
|
||||
<item quantity="other">Loki näyttää %1$d ”Function not implemented” -virhettä: prootin seccomp-kiihdytys epäonnistuu laitteen apuohjelmassa. Kokeile %2$s → ”%3$s” (tai ”%4$s”) ja käynnistä uudelleen.</item>
|
||||
</plurals>
|
||||
|
||||
<string name="mode_decky_plugins">Laajennukset</string>
|
||||
<string name="mode_decky_plugins_hint">Asenna laajennuksen ZIP-tiedosto seuraavaa Steam-istuntoa varten.</string>
|
||||
<string name="mode_decky_plugin_downloading">Latautuu…</string>
|
||||
@@ -2144,7 +2144,6 @@
|
||||
<string name="bottom_telemetry_elite">Elite Dangerous</string>
|
||||
<string name="bottom_telemetry_unknown_format">Portti %1$d vastaanottaa dataa (%2$d pakettia, kukin %3$d tavua), mutta muodossa, jota tämä sivu ei vielä osaa lukea.</string>
|
||||
<string name="bottom_telemetry_port_busy">Toinen ohjelma käyttää jo porttia %1$s, joten peliä ei voida näyttää täällä.</string>
|
||||
|
||||
<string name="rtinst_removing">Poistetaan Linux-ajoympäristöä</string>
|
||||
<plurals name="rtinst_removing_entries">
|
||||
<item quantity="one">Poistetaan Linux-ajoympäristöä · %1$d kohta</item>
|
||||
@@ -2159,7 +2158,6 @@
|
||||
<string name="rtinst_channel_description">Näytetään, kun Linux-ajoympäristöä asennetaan tai poistetaan</string>
|
||||
<string name="rtinst_title_installing">Asennetaan Linux-ajoympäristöä</string>
|
||||
<string name="rtinst_title_removing">Poistetaan Linux-ajoympäristöä</string>
|
||||
|
||||
<string name="deskpkg_runtime_missing">Linux-ajoympäristöä ei ole asennettu</string>
|
||||
<string name="deskpkg_no_checksum">Luettelossa ei ole tarkistussummaa kohteelle %1$s</string>
|
||||
<string name="deskpkg_checksum_mismatch">Tarkistussumma ei täsmää - mitään ei muutettu</string>
|
||||
@@ -2167,7 +2165,6 @@
|
||||
<string name="deskpkg_place_failed">AppImagea ei voitu sijoittaa</string>
|
||||
<string name="deskpkg_extract_failed">Purkaminen epäonnistui</string>
|
||||
<string name="deskpkg_install_failed">Asennus epäonnistui</string>
|
||||
|
||||
<string name="flatpakmgr_setup_failed">Flatpak-asennus epäonnistui (poistumiskoodi %1$d)</string>
|
||||
<string name="flatpakmgr_setup_unfinished">Flatpak-asennus ei valmistunut</string>
|
||||
<string name="flatpakmgr_busy">Toinen kauppatehtävä on käynnissä</string>
|
||||
@@ -2186,7 +2183,6 @@
|
||||
<string name="flatpakmgr_ref_media_codecs">mediakoodekit</string>
|
||||
<string name="flatpakmgr_ref_runtime">%1$s-ajoympäristö</string>
|
||||
<string name="flatpakmgr_ref_runtime_branch">%1$s-ajoympäristö %2$s</string>
|
||||
|
||||
<string name="appimg_too_small">Tiedosto on liian pieni ollakseen AppImage</string>
|
||||
<string name="appimg_unreadable">Tiedostoa ei voida lukea: %1$s</string>
|
||||
<string name="appimg_not_linux">Tämä ei ole AppImage (se ei ole Linux-ohjelma)</string>
|
||||
@@ -2201,7 +2197,6 @@
|
||||
<string name="appimg_extracting">Puretaan %1$s</string>
|
||||
<string name="appimg_extract_failed">AppImagea ei voitu purkaa</string>
|
||||
<string name="appimg_extract_failed_detail">AppImagea ei voitu purkaa: %1$s</string>
|
||||
|
||||
<string name="deckymgr_stop_session_loader">Pysäytä käynnissä oleva istunto ennen Decky Loaderin asentamista</string>
|
||||
<string name="deckymgr_download_failed">Decky Loaderin lataus epäonnistui</string>
|
||||
<string name="deckymgr_size_mismatch">Decky Loaderin koko ei vastannut julkaisun metatietoja</string>
|
||||
@@ -2250,13 +2245,11 @@
|
||||
<string name="deckymgr_activate_failed">Tuotua laajennusta ei voitu ottaa käyttöön</string>
|
||||
<string name="deckymgr_settings_failed">Deckyn laajennusasetuksia ei voitu päivittää</string>
|
||||
<string name="deckymgr_restore_failed">Nykyistä laajennusta ei voitu palauttaa</string>
|
||||
|
||||
<string name="adbfix_save_failed">Langattoman virheenkorjauksen tunnistetta ei voitu tallentaa</string>
|
||||
<string name="adbfix_command_failed">ADB-komento epäonnistui (%1$d)</string>
|
||||
<string name="adbfix_not_confirmed">Android ei vahvistanut, että lapsiprosessirajaa muutettiin: %1$s</string>
|
||||
<string name="adbfix_no_pairing">Langattoman virheenkorjauksen laiteparitusta ei ole tallennettu</string>
|
||||
<string name="adbfix_enter_address">Anna langattoman virheenkorjauksen nykyinen IP-osoite ja portti</string>
|
||||
|
||||
<string name="adbpair_timed_out">Paritusikkunan odotus aikakatkaistiin. Yritä uudelleen DroidDeckistä.</string>
|
||||
<string name="adbpair_discovery_failed_code">Paritusikkunaa ei voitu etsiä (%1$d). Tarkista, että Wi-Fi on päällä.</string>
|
||||
<string name="adbpair_discovery_failed">Paritusikkunaa ei voitu etsiä: %1$s</string>
|
||||
@@ -2282,7 +2275,6 @@
|
||||
<string name="adbpair_title_done">Steam on valmis</string>
|
||||
<string name="adbpair_done_text">Napauta palataksesi DroidDeckiin. Voit sammuttaa langattoman virheenkorjauksen nyt.</string>
|
||||
<string name="adbpair_title_failed">Langattoman virheenkorjauksen käyttöönotto pysähtyi</string>
|
||||
|
||||
<string name="selfinst_download_failed">Lataus epäonnistui</string>
|
||||
<string name="selfinst_size_mismatch">Latauksen koko ei vastannut julkaistua APK-tiedostoa, ja se hylättiin - yritä uudelleen</string>
|
||||
<string name="selfinst_checksum_mismatch">Lataus ei vastannut tarkistussummaansa, ja se hylättiin - yritä uudelleen</string>
|
||||
@@ -2295,13 +2287,11 @@
|
||||
<string name="selfinst_no_signing">Ladatussa APK-tiedostossa ei ole allekirjoitustietoja</string>
|
||||
<string name="selfinst_wrong_signer">Ladattu APK ei ole allekirjoitettu DroidDeckin julkaisuavaimella</string>
|
||||
<string name="appupd_http">Päivitysluettelo vastasi HTTP %1$d</string>
|
||||
|
||||
<string name="loadstate_starting">Käynnistetään istuntoa…</string>
|
||||
<string name="loadstate_elapsed">%1$d:%2$02d kulunut · yhä käynnissä</string>
|
||||
<string name="loadstate_steam_update">Ladataan Steam-asiakasohjelman päivitystä · %1$d %%</string>
|
||||
<string name="loadstate_steam_update_applying">Asennetaan Steam-asiakasohjelman päivitystä…</string>
|
||||
<string name="loadstate_steam_client">Ladataan Steam-asiakasohjelmaa · %1$s</string>
|
||||
|
||||
<string name="pextra_busy">Yhteensopivuustyökalun asennus on jo käynnissä</string>
|
||||
<string name="pextra_stop_session">Pysäytä käynnissä oleva istunto ennen yhteensopivuustyökalujen asentamista</string>
|
||||
<string name="pextra_no_release">ARM64-julkaisua kohteelle %1$s ei löytynyt</string>
|
||||
@@ -2321,7 +2311,6 @@
|
||||
<string name="pextra_install_failed">%1$s-asennus epäonnistui (poistumiskoodi %2$d)</string>
|
||||
<string name="pextra_could_not_install">Kohdetta %1$s ei voitu asentaa</string>
|
||||
<string name="esync_fetching">Haetaan droiddeck-esync-pakettia</string>
|
||||
|
||||
<string name="cmgr_fex_linux_helpers">Linux-apuohjelmien kanssa</string>
|
||||
<string name="cmgr_fex_dlls_only">Vain DLL-tiedostot</string>
|
||||
<string name="cmgr_original_proton_updated">Alkuperäinen (Proton päivitetty viimeisimmän vaihdon jälkeen)</string>
|
||||
@@ -2344,13 +2333,11 @@
|
||||
<string name="cmgr_nightly_replaced">Lataus epäonnistui: tämä yöversio on ehkä korvattu uudemmalla. Päivitä luettelo ja yritä uudelleen.</string>
|
||||
<string name="cmgr_list_predates_checksums">Tämä pakettiluettelo on tarkistussummia vanhempi - päivitä se ja yritä uudelleen</string>
|
||||
<string name="cmgr_checksum_mismatch">Tarkistussumma ei täsmää</string>
|
||||
|
||||
<string name="sprefs_upscaler_linear">Lineaarinen</string>
|
||||
<string name="sprefs_upscaler_nearest">Lähin</string>
|
||||
<string name="sprefs_upscaler_gsr_quality">Snapdragon GSR (laatu)</string>
|
||||
<string name="sprefs_upscaler_sharpen">Vain terävöinti</string>
|
||||
<string name="sprefs_lod_bias_auto">Automaattinen (sovita skaalaukseen)</string>
|
||||
|
||||
<string name="look_off_desc">Ei mitään käytössä.</string>
|
||||
<string name="look_game_clarity">Pelin terävyys</string>
|
||||
<string name="look_game_clarity_desc">Terävöinti hieman kontrastilla - arkikäyttöön.</string>
|
||||
@@ -2374,7 +2361,6 @@
|
||||
<string name="look_pixel_clean_desc">Terävät pikselit 2D- ja vanhoille peleille.</string>
|
||||
<string name="look_anime_edge">Anime-reunat</string>
|
||||
<string name="look_anime_edge_desc">Sarjakuvamaiset ääriviivat ja terävöinti.</string>
|
||||
|
||||
<string name="gpuinfo_not_adreno">Ei Adreno-grafiikkapiiri</string>
|
||||
<string name="gpuinfo_powervr">Järjestelmän PowerVR-ajuri: yhteensopivuus vaihtelee laitteen mukaan</string>
|
||||
<string name="gpuinfo_xclipse">Kokeellinen: RADV tai järjestelmän Xclipse-ajuri</string>
|
||||
@@ -2399,7 +2385,6 @@
|
||||
<string name="gpuinfo_unsupported">Ei tuettu: tälle GPU:lle ei ole saatavilla yhteensopivaa grafiikkataustajärjestelmää</string>
|
||||
<string name="gpuinfo_bridge">Toimii Mali-sillan kautta puhelimen omalla Vulkan-ajurilla</string>
|
||||
<string name="gpuinfo_bridge_off">Ei tuettu, kun Mali-silta on pois päältä: Turnip toimii vain Adreno (Snapdragon) -grafiikkasuorittimella</string>
|
||||
|
||||
<string name="turnip_rate_limited">GitHubin käyttörajoitus tuli vastaan - yritä myöhemmin uudelleen</string>
|
||||
<string name="turnip_github_http">GitHub vastasi HTTP %1$d</string>
|
||||
<string name="turnip_download_failed">Lataus epäonnistui</string>
|
||||
@@ -2420,16 +2405,12 @@
|
||||
<string name="bundle_no_manifest">Ei ajuripaketti: ei manifest.json-tiedostoa, joka nimeäisi android- ja linux-ajurin</string>
|
||||
<string name="bundle_entry_outside">Ei ajuripaketti: %1$s osoittaa sen ulkopuolelle</string>
|
||||
<string name="bundle_too_large">Ei ajuripaketti: se purkautuu yli %1$d MB:n kokoiseksi</string>
|
||||
|
||||
<string name="gstore_sd_card">SD-kortti</string>
|
||||
<string name="gstore_folder">Kansio</string>
|
||||
|
||||
<string name="logshare_chooser">Jaa istuntolokit</string>
|
||||
|
||||
<string name="hdr_needs_android_10">vaatii Android 10:n tai uudemman (näyttötasot väriavaruudella)</string>
|
||||
<string name="hdr_none">tämä näyttö ei ilmoita HDR-tukea</string>
|
||||
<string name="hdr_not_hdr10">tämä näyttö tukee %1$s, ei HDR10:tä</string>
|
||||
|
||||
<string name="gpu_this_gpu">tämä grafiikkapiiri</string>
|
||||
<string name="phantom_title_on">Lapsiprosessiraja on päällä</string>
|
||||
<string name="phantom_title_unset">Lapsiprosessirajaa ei ole asetettu</string>
|
||||
@@ -2503,7 +2484,6 @@
|
||||
<string name="device_info_copied">Kopioitu.</string>
|
||||
<string name="force_ssbs_title">Pakota SSBS</string>
|
||||
<string name="force_ssbs_hint">Pitää päällä suoritintehoasetuksen, jonka Wine jatkuvasti sammuttaa. Voi nopeuttaa Windows-pelejä Snapdragon 8 Elite -piirillä; vanhemmilla piireillä vaikutus on pieni. Vaikuttaa seuraavasta pelin käynnistyksestä alkaen.</string>
|
||||
|
||||
<string name="rail_stores">Kaupat</string>
|
||||
<string name="source_steam">Steam</string>
|
||||
<string name="source_added">Mukautettu</string>
|
||||
@@ -2989,7 +2969,6 @@
|
||||
<string name="touch_icon_color">Kuvakkeen väri</string>
|
||||
<string name="touch_button_color">Painikkeen väri</string>
|
||||
<string name="touch_no_icon">Ei kuvaketta</string>
|
||||
|
||||
<string name="stores_sync_sign_in">Tarkistetaan kirjautumista…</string>
|
||||
<string name="stores_sync_library">Haetaan kirjastoasi…</string>
|
||||
<string name="stores_sync_game_list">Haetaan peliluetteloa…</string>
|
||||
@@ -3777,6 +3756,7 @@
|
||||
<string name="sync_not_running">Syncthing ei ole käynnissä.</string>
|
||||
<string name="session_end_steam_sigill">Steam pysähtyi virheelliseen käskyyn (SIGILL). Syynä voi olla CPU-käskyjen yhteensopivuusongelma tai asiakasohjelman kaatuminen. Jaa lokit ja laitteesi tiedot.</string>
|
||||
<string name="session_end_steam_try_x64">Voit kokeilla Steam-asetukset → Steam-asiakasohjelma → x86-64 (kokeellinen). Se vaatii lisälatauksen ja voi toimia hitaammin.</string>
|
||||
<string name="session_end_fex_kernel">x86-ohjelmat ja x86-64-Steam-asiakasohjelma toimivat FEXin kautta, eikä FEX toimi tämän laitteen Linux-ytimellä (%1$s).</string>
|
||||
<string name="session_end_vulkan_device">Linux-grafiikka-ajuri ei löytänyt käyttökelpoista Vulkan-laitetta. Tarkista, että valittu Linux-GPU-ajuri tukee tätä GPU:ta.</string>
|
||||
<string name="session_end_gpu_unsupported">Tätä istuntoa ei voi käynnistää, koska tälle GPU:lle ei ole yhteensopivaa Linux Vulkan -ajuria nykyisissä asetuksissa. Adreno Turnip -ajurit eivät voi tuoda tukea MediaTek/Mali-GPU:ille.</string>
|
||||
<string name="setup_group_memory">Muisti</string>
|
||||
@@ -4026,10 +4006,8 @@
|
||||
<string name="input_show_label">Näytä nimi</string>
|
||||
<string name="input_layout_import_failed">Tätä asettelua ei voitu tuoda</string>
|
||||
<string name="epic_third_party_managed">Asennetaan sovelluksen %1$s kautta</string>
|
||||
|
||||
<string name="theme_white_red">Helakanpunainen lumi</string>
|
||||
<string name="theme_white_red_detail">Valkoiset pinnat punaisin korostuksin.</string>
|
||||
|
||||
<string name="rail_soundtracks">Soundtrackit</string>
|
||||
<string name="rail_music">Musiikki</string>
|
||||
<string name="soundtracks_options">Toistoasetukset</string>
|
||||
@@ -4106,4 +4084,9 @@
|
||||
<string name="hud_readings_shown">Näkyvissä</string>
|
||||
<string name="hud_readings_count">%1$d / %2$d</string>
|
||||
<string name="exit_hint_back">Paina takaisin vielä kerran poistuaksesi</string>
|
||||
</resources>
|
||||
<string name="display_integer_scaling">Kokonaislukuskaalaus</string>
|
||||
<string name="display_integer_scaling_hint">Käyttää suurinta kokonaislukukerrointa, joka mahtuu näyttöön. Reunat voivat rajautua. Jos lähde on tulostetta suurempi, murto-osaskaalaus näyttää koko kuvan. Resoluutio määritetään erikseen.</string>
|
||||
<string name="display_scaling_integer">Kokonaisluku</string>
|
||||
<string name="display_scaling_fit">Sovita</string>
|
||||
<string name="drawer_antialiasing">Reunanpehmennys</string>
|
||||
</resources>
|
||||
Loaded 100 of 208 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user