mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 12:35:42 +00:00
Compare commits
18
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a80300c357 | ||
|
|
356bdede67 | ||
|
|
b60fac6dda | ||
|
|
023daf57d2 | ||
|
|
bb58d0cc7b | ||
|
|
9b91c02e07 | ||
|
|
35a4a0750f | ||
|
|
48300cc002 | ||
|
|
0d9e0600f4 | ||
|
|
8bf7ba7eca | ||
|
|
dbd277d5bd | ||
|
|
2ef2d4b53d | ||
|
|
040d31c1ee | ||
|
|
db0c32c72f | ||
|
|
7277386cd3 | ||
|
|
e1d096127c | ||
|
|
f0934018df | ||
|
|
07f5e5f83d |
No files matched your search
@@ -314,8 +314,11 @@ jobs:
|
||||
docker run --rm -v "$PWD:/src" -w /src public.ecr.aws/docker/library/debian:bullseye bash -c '
|
||||
set -euo pipefail
|
||||
printf "deb http://archive.debian.org/debian bullseye main\ndeb http://archive.debian.org/debian-security bullseye-security main\n" > /etc/apt/sources.list
|
||||
apt-get -o Acquire::Check-Valid-Until=false update -qq
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends gcc g++ gcc-multilib g++-multilib binutils >/dev/null
|
||||
apt-get -o Acquire::Retries=3 -o Acquire::Check-Valid-Until=false update -qq
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -o Acquire::Retries=3 install -y -qq --no-install-recommends ca-certificates >/dev/null
|
||||
sed -i "s|http://archive.debian.org|https://archive.debian.org|g" /etc/apt/sources.list
|
||||
apt-get -o Acquire::Retries=3 -o Acquire::Check-Valid-Until=false update -qq
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -o Acquire::Retries=3 install -y -qq --no-install-recommends gcc g++ gcc-multilib g++-multilib binutils >/dev/null
|
||||
tools/linuxfs/build-x86-preloads.sh app/src/main/assets/linuxfs
|
||||
'
|
||||
sudo chown -R "$(id -u):$(id -g)" app/src/main/assets/linuxfs
|
||||
@@ -447,7 +450,7 @@ jobs:
|
||||
path: |
|
||||
app/.cxx
|
||||
app/build/intermediates/cxx
|
||||
key: cxx-${{ env.NDK_VERSION }}-${{ hashFiles('app/src/main/cpp/**', 'tools/vr/src/xr_*.h') }}
|
||||
key: cxx-${{ env.NDK_VERSION }}-${{ hashFiles('app/src/main/cpp/**', 'questxr/src/main/cpp/**', 'tools/vr/src/xr_*.h') }}
|
||||
restore-keys: |
|
||||
cxx-${{ env.NDK_VERSION }}-
|
||||
|
||||
@@ -500,7 +503,12 @@ jobs:
|
||||
run: python3 -m unittest discover -s tools/tests -p 'test_*.py'
|
||||
|
||||
- name: Unit tests
|
||||
run: ./gradlew testReleaseUnitTest --console=plain -PndkVersion="$NDK_VERSION"
|
||||
env:
|
||||
JAVA_TOOL_OPTIONS: ${{ github.event_name == 'workflow_dispatch' && '-Drobolectric.logging=stderr' || '' }}
|
||||
run: |
|
||||
args=()
|
||||
if [ "$GITHUB_EVENT_NAME" = workflow_dispatch ]; then args+=(--info --stacktrace); fi
|
||||
./gradlew testReleaseUnitTest --console=plain -PndkVersion="$NDK_VERSION" "${args[@]}"
|
||||
|
||||
- name: Sign with the testkey (v1 + v2 + v3)
|
||||
run: |
|
||||
|
||||
@@ -33,3 +33,5 @@ __pycache__/
|
||||
.signing.env
|
||||
app/src/main/assets/directaudio/
|
||||
/tools/vr/out/
|
||||
/questxr-build.log
|
||||
/questxr-validation/
|
||||
@@ -1,3 +0,0 @@
|
||||
# Rules
|
||||
|
||||
- Comments should be rare, factual, and explain only non-obvious external constraints or business invariants.
|
||||
@@ -23,6 +23,8 @@
|
||||
<uses-feature android:name="android.hardware.vulkan.version" android:version="0x401000" android:required="true" />
|
||||
<uses-feature android:name="android.hardware.gamepad" android:required="false" />
|
||||
<uses-feature android:name="android.hardware.vr.headtracking" android:version="1" android:required="false" />
|
||||
<uses-feature android:name="oculus.software.handtracking" android:required="false" />
|
||||
<uses-permission android:name="com.oculus.permission.HAND_TRACKING" />
|
||||
|
||||
<application
|
||||
android:name=".App"
|
||||
@@ -38,9 +40,7 @@
|
||||
android:isGame="true">
|
||||
|
||||
<meta-data android:name="android.game_mode_config" android:resource="@xml/game_mode_config" />
|
||||
<meta-data android:name="com.oculus.supportedDevices" android:value="quest2|quest3|quest3s" />
|
||||
<activity android:name=".QuestXrActivity" android:exported="true" android:launchMode="singleTask"
|
||||
android:permission="android.permission.DUMP"
|
||||
android:resizeableActivity="false" android:screenOrientation="landscape"
|
||||
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|keyboard|navigation|uiMode"
|
||||
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen">
|
||||
@@ -56,7 +56,7 @@
|
||||
android:name=".MainActivity"
|
||||
android:exported="true"
|
||||
android:screenOrientation="sensorLandscape"
|
||||
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|density|keyboard|keyboardHidden|navigation">
|
||||
android:configChanges="keyboard|keyboardHidden|navigation">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
@@ -106,21 +106,18 @@
|
||||
android:name=".files.FileManagerActivity"
|
||||
android:exported="false"
|
||||
android:screenOrientation="sensorLandscape"
|
||||
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|density"
|
||||
android:theme="@style/AppTheme" />
|
||||
|
||||
<activity
|
||||
android:name=".files.FilePickerActivity"
|
||||
android:exported="false"
|
||||
android:screenOrientation="sensorLandscape"
|
||||
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|density"
|
||||
android:theme="@style/AppTheme" />
|
||||
|
||||
<activity
|
||||
android:name=".stores.StoreLoginActivity"
|
||||
android:exported="false"
|
||||
android:screenOrientation="sensorLandscape"
|
||||
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize"
|
||||
android:theme="@style/AppTheme" />
|
||||
|
||||
<activity
|
||||
|
||||
@@ -30,7 +30,7 @@ string(SUBSTRING "${WINFG_CHAIN_HASH_FULL}" 0 12 WINFG_CHAIN_HASH)
|
||||
message(STATUS "win-fg chain: ${WINFG_UPSTREAM} (src ${WINFG_CHAIN_HASH})")
|
||||
|
||||
add_subdirectory(waylandcomp)
|
||||
add_subdirectory(questxr)
|
||||
add_subdirectory(../../../../questxr/src/main/cpp questxr)
|
||||
add_library(sdnative SHARED sdnative/sdnative.c)
|
||||
target_link_libraries(sdnative log)
|
||||
|
||||
|
||||
@@ -1140,12 +1140,8 @@ struct DeckImu {
|
||||
uint16_t pressure[2];
|
||||
uint32_t controls;
|
||||
uint32_t pad_type;
|
||||
uint32_t latency;
|
||||
};
|
||||
static_assert(offsetof(DeckImu, pad_type) == 44, "DeckImu::pad_type matches FakeInputWriter");
|
||||
static_assert(offsetof(DeckImu, latency) == 48, "DeckImu::latency matches FakeInputWriter");
|
||||
static constexpr uint32_t LATENCY_CONTROLLER = 1, LATENCY_TOUCH = 2;
|
||||
static constexpr int LOW_LATENCY_REPORT_INTERVAL_US = 1000;
|
||||
static constexpr uint32_t DECK_EXTRA_L4 = 1, DECK_EXTRA_R4 = 2, DECK_EXTRA_L5 = 4,
|
||||
DECK_EXTRA_R5 = 8, DECK_EXTRA_LPAD_TOUCH = 16,
|
||||
DECK_EXTRA_RPAD_TOUCH = 32, DECK_EXTRA_LPAD_CLICK = 64,
|
||||
@@ -1307,27 +1303,6 @@ __attribute__((visibility("hidden"))) static uint32_t live_pad_type() {
|
||||
return value & PAD_TYPE_SET ? value & 0xff : session_pad_type();
|
||||
}
|
||||
|
||||
__attribute__((visibility("hidden"))) static bool low_latency(uint32_t which) {
|
||||
const uint8_t *blocks = ring_blocks();
|
||||
const DeckImu *imu = blocks ? reinterpret_cast<const DeckImu *>(blocks + FAKE_INPUT_RING_SIZE) : nullptr;
|
||||
return imu && (__atomic_load_n(&imu->latency, __ATOMIC_ACQUIRE) & which);
|
||||
}
|
||||
|
||||
__attribute__((visibility("hidden"))) static int controller_report_interval_us(int normal_us) {
|
||||
return low_latency(LATENCY_CONTROLLER) ? LOW_LATENCY_REPORT_INTERVAL_US : normal_us;
|
||||
}
|
||||
|
||||
__attribute__((visibility("hidden"))) static void sleep_us(int us) {
|
||||
struct timespec interval = {0, us * 1000L};
|
||||
nanosleep(&interval, nullptr);
|
||||
}
|
||||
|
||||
__attribute__((visibility("hidden"))) static uint64_t monotonic_us() {
|
||||
struct timespec now;
|
||||
clock_gettime(CLOCK_MONOTONIC, &now);
|
||||
return static_cast<uint64_t>(now.tv_sec) * 1000000ULL + static_cast<uint64_t>(now.tv_nsec) / 1000ULL;
|
||||
}
|
||||
|
||||
static bool fake_triton_enabled() {
|
||||
static int enabled = -1;
|
||||
if (enabled < 0)
|
||||
@@ -1478,7 +1453,8 @@ __attribute__((visibility("hidden"))) static void *deck_report_thread(void *arg)
|
||||
if (send(self->peer, report, sizeof(report), MSG_DONTWAIT | MSG_NOSIGNAL) < 0 &&
|
||||
errno != EAGAIN && errno != EWOULDBLOCK)
|
||||
break;
|
||||
sleep_us(controller_report_interval_us(DECK_REPORT_INTERVAL_US));
|
||||
struct timespec interval = {0, DECK_REPORT_INTERVAL_US * 1000L};
|
||||
nanosleep(&interval, nullptr);
|
||||
}
|
||||
syscall(SYS_close, self->peer);
|
||||
munmap(self->ring, self->mapping_size);
|
||||
@@ -1510,7 +1486,7 @@ __attribute__((visibility("hidden"))) static void put_sony_touch(uint8_t *at, So
|
||||
}
|
||||
|
||||
__attribute__((visibility("hidden"))) static void
|
||||
build_sony_report(uint8_t *report, uint8_t model, uint32_t packet, uint64_t elapsed_us, uint32_t buttons, const int32_t *axes,
|
||||
build_sony_report(uint8_t *report, uint8_t model, uint32_t packet, uint32_t buttons, const int32_t *axes,
|
||||
const DeckExtras &extras, SonyTouch &touch) {
|
||||
memset(report, 0, SONY_REPORT_BYTES);
|
||||
report[0] = 0x01;
|
||||
@@ -1541,7 +1517,7 @@ build_sony_report(uint8_t *report, uint8_t model, uint32_t packet, uint64_t elap
|
||||
p[6] = static_cast<uint8_t>(system | ((packet & 0x3f) << 2));
|
||||
p[7] = left_trigger;
|
||||
p[8] = right_trigger;
|
||||
put16(p + 9, static_cast<int>(elapsed_us * 3 / 16));
|
||||
put16(p + 9, static_cast<int>(packet * 750));
|
||||
for (int i = 0; i < 3; i++) {
|
||||
put16(p + 12 + i * 2, gyro[i]);
|
||||
put16(p + 18 + i * 2, accel[i]);
|
||||
@@ -1563,7 +1539,7 @@ build_sony_report(uint8_t *report, uint8_t model, uint32_t packet, uint64_t elap
|
||||
put16(p + 15 + i * 2, gyro[i]);
|
||||
put16(p + 21 + i * 2, accel[i]);
|
||||
}
|
||||
put32(p + 27, static_cast<uint32_t>(elapsed_us * 3));
|
||||
put32(p + 27, packet * 12000);
|
||||
put_sony_touch(p + 32, touch, 0, left, extras.pads[0], extras.pads[1], SONY_TOUCH_HEIGHT_DUALSENSE);
|
||||
put_sony_touch(p + 36, touch, 1, right, extras.pads[2], extras.pads[3], SONY_TOUCH_HEIGHT_DUALSENSE);
|
||||
p[52] = 0x2a;
|
||||
@@ -1582,7 +1558,6 @@ __attribute__((visibility("hidden"))) static void *sony_report_thread(void *arg)
|
||||
int32_t axes[8] = {};
|
||||
DeckExtras extras;
|
||||
SonyTouch touch;
|
||||
const uint64_t start_us = monotonic_us();
|
||||
while (live_pad_type() == type) {
|
||||
if (read_snapshot(self->ring, snap) && snap.generation == ring_generation(self->ring)) {
|
||||
buttons = snap.buttons;
|
||||
@@ -1590,11 +1565,12 @@ __attribute__((visibility("hidden"))) static void *sony_report_thread(void *arg)
|
||||
}
|
||||
read_deck_extras(*self, extras);
|
||||
uint8_t report[SONY_REPORT_BYTES];
|
||||
build_sony_report(report, self->sony, ++packet, monotonic_us() - start_us, buttons, axes, extras, touch);
|
||||
build_sony_report(report, self->sony, ++packet, buttons, axes, extras, touch);
|
||||
if (send(self->peer, report, sizeof(report), MSG_DONTWAIT | MSG_NOSIGNAL) < 0 &&
|
||||
errno != EAGAIN && errno != EWOULDBLOCK)
|
||||
break;
|
||||
sleep_us(controller_report_interval_us(DECK_REPORT_INTERVAL_US));
|
||||
struct timespec interval = {0, DECK_REPORT_INTERVAL_US * 1000L};
|
||||
nanosleep(&interval, nullptr);
|
||||
}
|
||||
syscall(SYS_close, self->peer);
|
||||
munmap(self->ring, self->mapping_size);
|
||||
@@ -1708,7 +1684,8 @@ __attribute__((visibility("hidden"))) static void *triton_report_thread(void *ar
|
||||
errno != EAGAIN && errno != EWOULDBLOCK)
|
||||
break;
|
||||
}
|
||||
sleep_us(controller_report_interval_us(TRITON_REPORT_INTERVAL_US));
|
||||
struct timespec interval = {0, TRITON_REPORT_INTERVAL_US * 1000L};
|
||||
nanosleep(&interval, nullptr);
|
||||
}
|
||||
syscall(SYS_close, self->peer);
|
||||
munmap(self->ring, self->mapping_size);
|
||||
@@ -1732,7 +1709,7 @@ static constexpr int16_t TRITON_WIRED_PRODUCT = 0x1302;
|
||||
static constexpr int32_t TRITON_STICK_TOUCH = 2000;
|
||||
|
||||
__attribute__((visibility("hidden"))) static void
|
||||
build_triton_report(uint8_t *report, uint32_t packet, uint64_t elapsed_us, uint32_t buttons, const int32_t *axes,
|
||||
build_triton_report(uint8_t *report, uint32_t packet, uint32_t buttons, const int32_t *axes,
|
||||
const DeckExtras &extras) {
|
||||
memset(report, 0, TRITON_STATE_BYTES);
|
||||
report[0] = static_cast<uint8_t>(packet);
|
||||
@@ -1775,7 +1752,7 @@ build_triton_report(uint8_t *report, uint32_t packet, uint64_t elapsed_us, uint3
|
||||
put16(report + 23, extras.pads[2]);
|
||||
put16(report + 25, extras.pads[3]);
|
||||
put16(report + 27, extras.pressure[1]);
|
||||
put32(report + 29, static_cast<uint32_t>(elapsed_us));
|
||||
put32(report + 29, packet * TRITON_REPORT_INTERVAL_US);
|
||||
for (int i = 0; i < 3; i++) {
|
||||
put16(report + 33 + i * 2, extras.accel[i]);
|
||||
put16(report + 39 + i * 2, extras.gyro[i]);
|
||||
@@ -1791,7 +1768,6 @@ __attribute__((visibility("hidden"))) static void *triton_pad_thread(void *arg)
|
||||
uint32_t buttons = 0;
|
||||
int32_t axes[8] = {};
|
||||
DeckExtras extras;
|
||||
const uint64_t start_us = monotonic_us();
|
||||
while (live_pad_type() == PAD_TYPE_STEAM) {
|
||||
if (read_snapshot(self->ring, snap) && snap.generation == ring_generation(self->ring)) {
|
||||
buttons = snap.buttons;
|
||||
@@ -1800,11 +1776,12 @@ __attribute__((visibility("hidden"))) static void *triton_pad_thread(void *arg)
|
||||
read_deck_extras(*self, extras);
|
||||
uint8_t report[TRITON_REPORT_ID_BYTES + TRITON_STATE_BYTES];
|
||||
report[0] = TRITON_STATE_WIRED;
|
||||
build_triton_report(report + 1, ++packet, monotonic_us() - start_us, buttons, axes, extras);
|
||||
build_triton_report(report + 1, ++packet, buttons, axes, extras);
|
||||
if (send(self->peer, report, sizeof(report), MSG_DONTWAIT | MSG_NOSIGNAL) < 0 &&
|
||||
errno != EAGAIN && errno != EWOULDBLOCK)
|
||||
break;
|
||||
sleep_us(controller_report_interval_us(TRITON_REPORT_INTERVAL_US));
|
||||
struct timespec interval = {0, TRITON_REPORT_INTERVAL_US * 1000L};
|
||||
nanosleep(&interval, nullptr);
|
||||
}
|
||||
syscall(SYS_close, self->peer);
|
||||
munmap(self->ring, self->mapping_size);
|
||||
@@ -2042,7 +2019,8 @@ __attribute__((visibility("hidden"))) static void *touch_report_thread(void *arg
|
||||
if (send(self->peer, report, sizeof(report), MSG_DONTWAIT | MSG_NOSIGNAL) < 0 &&
|
||||
errno != EAGAIN && errno != EWOULDBLOCK)
|
||||
break;
|
||||
sleep_us(low_latency(LATENCY_TOUCH) ? LOW_LATENCY_REPORT_INTERVAL_US : TOUCH_REPORT_INTERVAL_US);
|
||||
struct timespec interval = {0, TOUCH_REPORT_INTERVAL_US * 1000L};
|
||||
nanosleep(&interval, nullptr);
|
||||
}
|
||||
syscall(SYS_close, self->peer);
|
||||
touch_state([](TouchRingFile &r) { if (r.opened) r.opened--; });
|
||||
@@ -3567,7 +3545,6 @@ EXPORT int close(int fd) {
|
||||
}
|
||||
|
||||
static constexpr int kMaxRingWaitMs = 2;
|
||||
static constexpr int kLowLatencyRingWaitUs = 250;
|
||||
|
||||
EXPORT ssize_t read(int fd, void *buf, size_t count) {
|
||||
if (!watched(fd)) return syscall(SYS_read, fd, buf, count);
|
||||
@@ -3656,8 +3633,7 @@ EXPORT ssize_t read(int fd, void *buf, size_t count) {
|
||||
int result = nanosleep(&sleep_time, nullptr);
|
||||
guard.lock();
|
||||
if (result < 0) return -1;
|
||||
if (low_latency(LATENCY_CONTROLLER)) backoff_ns = kLowLatencyRingWaitUs * 1000;
|
||||
else if (backoff_ns < kMaxRingWaitMs * 1000 * 1000) backoff_ns *= 2;
|
||||
if (backoff_ns < kMaxRingWaitMs * 1000 * 1000) backoff_ns *= 2;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3839,7 +3815,7 @@ static int poll_fake(struct pollfd *fds, nfds_t nfds, int timeout,
|
||||
if (deadline_ms >= 0 && monotonic_ms() >= deadline_ms)
|
||||
return 0;
|
||||
|
||||
if (backoff_ms < kMaxRingWaitMs && !low_latency(LATENCY_CONTROLLER))
|
||||
if (backoff_ms < kMaxRingWaitMs)
|
||||
backoff_ms *= 2;
|
||||
}
|
||||
}
|
||||
@@ -4012,7 +3988,7 @@ EXPORT int select(int nfds, fd_set *readfds, fd_set *writefds,
|
||||
if (deadline_ms >= 0 && monotonic_ms() >= deadline_ms)
|
||||
return 0;
|
||||
|
||||
if (backoff_ms < kMaxRingWaitMs && !low_latency(LATENCY_CONTROLLER))
|
||||
if (backoff_ms < kMaxRingWaitMs)
|
||||
backoff_ms *= 2;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,201 +0,0 @@
|
||||
#pragma once
|
||||
#include <EGL/eglext.h>
|
||||
#include <GLES3/gl31.h>
|
||||
#include <GLES2/gl2ext.h>
|
||||
#include <android/hardware_buffer.h>
|
||||
#include "xr_gpu_channel.h"
|
||||
|
||||
class QuestGpuFrames {
|
||||
public:
|
||||
bool Start(const std::string &filename, EGLDisplay display) {
|
||||
const char *extensions = reinterpret_cast<const char *>(glGetString(GL_EXTENSIONS));
|
||||
const char *eglExtensions = eglQueryString(display, EGL_EXTENSIONS);
|
||||
if (!extensions || !eglExtensions || !strstr(extensions, "GL_EXT_external_buffer")
|
||||
|| !strstr(eglExtensions, "EGL_ANDROID_get_native_client_buffer")) return false;
|
||||
storage_ = reinterpret_cast<PFNGLBUFFERSTORAGEEXTERNALEXTPROC>(eglGetProcAddress("glBufferStorageExternalEXT"));
|
||||
client_ = reinterpret_cast<PFNEGLGETNATIVECLIENTBUFFERANDROIDPROC>(eglGetProcAddress("eglGetNativeClientBufferANDROID"));
|
||||
if (strstr(extensions, "GL_OES_texture_view")) view_ = reinterpret_cast<PFNGLTEXTUREVIEWOESPROC>(eglGetProcAddress("glTextureViewOES"));
|
||||
else if (strstr(extensions, "GL_EXT_texture_view")) view_ = reinterpret_cast<PFNGLTEXTUREVIEWOESPROC>(eglGetProcAddress("glTextureViewEXT"));
|
||||
if (!storage_ || !client_ || !view_ || filename.size() >= sizeof(sockaddr_un::sun_path)) return false;
|
||||
const char *source = "#version 310 es\nlayout(local_size_x=8,local_size_y=8)in;"
|
||||
"layout(std430,binding=0)readonly buffer Source{uint pixels[];};"
|
||||
"layout(rgba8,binding=0)writeonly uniform highp image2D target;uniform bool bgra;"
|
||||
"void main(){ivec2 p=ivec2(gl_GlobalInvocationID.xy),size=imageSize(target);"
|
||||
"if(any(greaterThanEqual(p,size)))return;vec4 value=unpackUnorm4x8(pixels[p.y*size.x+p.x]);"
|
||||
"imageStore(target,p,bgra?value.bgra:value);}";
|
||||
GLuint shader = glCreateShader(GL_COMPUTE_SHADER); glShaderSource(shader, 1, &source, nullptr); glCompileShader(shader);
|
||||
program_ = glCreateProgram(); glAttachShader(program_, shader); glLinkProgram(program_); glDeleteShader(shader);
|
||||
GLint linked{}; glGetProgramiv(program_, GL_LINK_STATUS, &linked);
|
||||
if (!linked) { Stop(); return false; }
|
||||
lock_ = open((filename + ".lock").c_str(), O_CREAT | O_RDWR | O_CLOEXEC | O_NOFOLLOW, 0600);
|
||||
struct stat status{};
|
||||
if (lock_ < 0 || fstat(lock_, &status) || !S_ISREG(status.st_mode) || status.st_uid != getuid()
|
||||
|| flock(lock_, LOCK_EX | LOCK_NB)) { Stop(); return false; }
|
||||
if (lstat(filename.c_str(), &status) == 0) {
|
||||
if (!S_ISSOCK(status.st_mode) || status.st_uid != getuid() || unlink(filename.c_str())) { Stop(); return false; }
|
||||
} else if (errno != ENOENT) { Stop(); return false; }
|
||||
listener_ = socket(AF_UNIX, SOCK_SEQPACKET | SOCK_CLOEXEC | SOCK_NONBLOCK, 0);
|
||||
sockaddr_un address{}; address.sun_family = AF_UNIX; strcpy(address.sun_path, filename.c_str());
|
||||
if (listener_ < 0 || bind(listener_, reinterpret_cast<sockaddr *>(&address), sizeof(address))) { Stop(); return false; }
|
||||
filename_ = filename;
|
||||
if (chmod(filename.c_str(), 0600) || listen(listener_, 2)) { Stop(); return false; }
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Take(DroidDeckXrFrameHeader &header, GLuint &texture) {
|
||||
if (listener_ < 0) return false;
|
||||
if (peer_ < 0) {
|
||||
peer_ = accept4(listener_, nullptr, nullptr, SOCK_CLOEXEC | SOCK_NONBLOCK);
|
||||
if (peer_ < 0) return false;
|
||||
if (!xr_frame_peer(peer_)) { Disconnect(); return false; }
|
||||
configured_ = false; deadline_ = xr_frame_now() + 2000000000LL;
|
||||
}
|
||||
pollfd ready{peer_, POLLIN, 0};
|
||||
if (poll(&ready, 1, 0) <= 0) {
|
||||
if (!configured_ && xr_frame_now() > deadline_) Disconnect();
|
||||
return false;
|
||||
}
|
||||
if (!(ready.revents & POLLIN)) { Disconnect(); return false; }
|
||||
if (!configured_) {
|
||||
XrGpuRequest request;
|
||||
if (!xr_gpu_receive(peer_, &request, sizeof(request)) || request.magic != XR_GPU_MAGIC
|
||||
|| request.version != XR_GPU_VERSION || !xr_gpu_dimensions(request.width, request.height)
|
||||
|| !Allocate(request.width, request.height)) { Disconnect(); return false; }
|
||||
XrGpuPoolInfo info; info.width = width_; info.height = height_;
|
||||
for (unsigned index = 0; index < XR_GPU_SLOTS; index++) info.sizes[index] = sizes_[index];
|
||||
configured_ = xr_gpu_send(peer_, &info, sizeof(info), fds_.data(), fds_.size());
|
||||
for (int &fd : fds_) { if (fd >= 0) close(fd); fd = -1; }
|
||||
if (!configured_) Disconnect();
|
||||
return false;
|
||||
}
|
||||
XrGpuFrame frame;
|
||||
if (!xr_gpu_receive(peer_, &frame, sizeof(frame))) { Disconnect(); return false; }
|
||||
auto state = xr_gpu_frame_state(frame, width_, height_, lastFrame_, xr_frame_now());
|
||||
if (state == XrGpuFrameState::Invalid) {
|
||||
rejected_++; Disconnect(); return false;
|
||||
}
|
||||
lastFrame_ = frame.header.frame_id;
|
||||
if (state == XrGpuFrameState::Stale) {
|
||||
// No GPU read was submitted, so the producer can safely reclaim a dropped frame.
|
||||
dropped_++;
|
||||
if (!xr_gpu_send(peer_, &frame.header.frame_id, sizeof(frame.header.frame_id))) Disconnect();
|
||||
return false;
|
||||
}
|
||||
if (!Output()) { Disconnect(); return false; }
|
||||
glMemoryBarrier(GL_ALL_BARRIER_BITS);
|
||||
glUseProgram(program_); glBindBufferBase(GL_SHADER_STORAGE_BUFFER, 0, buffers_[frame.slot]);
|
||||
glUniform1i(glGetUniformLocation(program_, "bgra"), !!(frame.flags & XR_GPU_BGRA));
|
||||
glBindImageTexture(0, raw_, 0, GL_FALSE, 0, GL_WRITE_ONLY, GL_RGBA8);
|
||||
glDispatchCompute((width_ + 7) / 8, (height_ + 7) / 8, 1);
|
||||
glMemoryBarrier(GL_TEXTURE_FETCH_BARRIER_BIT | GL_SHADER_IMAGE_ACCESS_BARRIER_BIT);
|
||||
// The producer may overwrite this slot only after the native GPU has finished reading it.
|
||||
glFinish();
|
||||
if (glGetError() != GL_NO_ERROR) { rejected_++; Disconnect(); return false; }
|
||||
if (!xr_gpu_send(peer_, &frame.header.frame_id, sizeof(frame.header.frame_id))) Disconnect();
|
||||
received_++;
|
||||
header = frame.header;
|
||||
texture = header.color_space == DROIDDECK_XR_COLOR_SRGB_RGBA8 ? srgb_ : raw_;
|
||||
return true;
|
||||
}
|
||||
|
||||
uint64_t Received() const { return received_; }
|
||||
uint64_t Rejected() const { return rejected_; }
|
||||
uint64_t Dropped() const { return dropped_; }
|
||||
void Stop() {
|
||||
Disconnect(); DropPool();
|
||||
glDeleteTextures(1, &srgb_); glDeleteTextures(1, &raw_); srgb_ = raw_ = 0;
|
||||
if (program_) glDeleteProgram(program_); program_ = 0;
|
||||
if (listener_ >= 0) close(listener_); listener_ = -1;
|
||||
if (!filename_.empty()) unlink(filename_.c_str()); filename_.clear();
|
||||
if (lock_ >= 0) close(lock_); lock_ = -1;
|
||||
}
|
||||
private:
|
||||
int listener_ = -1, peer_ = -1, lock_ = -1;
|
||||
std::string filename_;
|
||||
bool configured_ = false;
|
||||
int64_t deadline_{};
|
||||
uint32_t width_{}, height_{}, outputWidth_{}, outputHeight_{};
|
||||
uint64_t lastFrame_{}, received_{}, rejected_{}, dropped_{};
|
||||
std::array<AHardwareBuffer *, XR_GPU_SLOTS> hardware_{};
|
||||
std::array<GLuint, XR_GPU_SLOTS> buffers_{};
|
||||
std::array<int, XR_GPU_SLOTS> fds_{{-1, -1, -1}};
|
||||
std::array<uint64_t, XR_GPU_SLOTS> sizes_{};
|
||||
GLuint raw_{}, srgb_{}, program_{};
|
||||
PFNGLBUFFERSTORAGEEXTERNALEXTPROC storage_{};
|
||||
PFNEGLGETNATIVECLIENTBUFFERANDROIDPROC client_{};
|
||||
PFNGLTEXTUREVIEWOESPROC view_{};
|
||||
|
||||
void Disconnect() { if (peer_ >= 0) close(peer_); peer_ = -1; configured_ = false; lastFrame_ = 0; }
|
||||
void DropPool() {
|
||||
if (buffers_[0]) glFinish();
|
||||
glDeleteBuffers(buffers_.size(), buffers_.data()); buffers_.fill(0);
|
||||
for (auto *&buffer : hardware_) { if (buffer) AHardwareBuffer_release(buffer); buffer = nullptr; }
|
||||
for (int &fd : fds_) { if (fd >= 0) close(fd); fd = -1; }
|
||||
}
|
||||
static int AllocationFd(AHardwareBuffer *buffer, uint64_t bytes, uint64_t &allocation) {
|
||||
int pair[2];
|
||||
if (socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, pair)) return -1;
|
||||
if (AHardwareBuffer_sendHandleToUnixSocket(buffer, pair[0])) { close(pair[0]); close(pair[1]); return -1; }
|
||||
close(pair[0]);
|
||||
int selected = -1; unsigned candidates = 0;
|
||||
for (;;) {
|
||||
unsigned char data[1024]; iovec bytesReceived{data, sizeof(data)};
|
||||
alignas(cmsghdr) unsigned char control[CMSG_SPACE(32 * sizeof(int))]{};
|
||||
msghdr message{}; message.msg_iov = &bytesReceived; message.msg_iovlen = 1;
|
||||
message.msg_control = control; message.msg_controllen = sizeof(control);
|
||||
ssize_t result = recvmsg(pair[1], &message, MSG_CMSG_CLOEXEC);
|
||||
if (result < 0 && errno == EINTR) continue;
|
||||
if (result <= 0) break;
|
||||
for (auto *item = CMSG_FIRSTHDR(&message); item; item = CMSG_NXTHDR(&message, item)) {
|
||||
if (item->cmsg_level != SOL_SOCKET || item->cmsg_type != SCM_RIGHTS) continue;
|
||||
auto *fds = reinterpret_cast<int *>(CMSG_DATA(item));
|
||||
for (unsigned index = 0; index < (item->cmsg_len - CMSG_LEN(0)) / sizeof(int); index++) {
|
||||
struct stat status{};
|
||||
if (!fstat(fds[index], &status) && status.st_size >= static_cast<int64_t>(bytes)
|
||||
&& status.st_size <= static_cast<int64_t>(bytes + 65536)) {
|
||||
candidates++; if (selected >= 0) close(selected);
|
||||
selected = fds[index]; allocation = status.st_size;
|
||||
} else close(fds[index]);
|
||||
}
|
||||
}
|
||||
if (message.msg_flags & (MSG_TRUNC | MSG_CTRUNC)) { candidates = 0; break; }
|
||||
}
|
||||
close(pair[1]);
|
||||
if (candidates != 1) { if (selected >= 0) close(selected); return -1; }
|
||||
return selected;
|
||||
}
|
||||
bool Allocate(uint32_t width, uint32_t height) {
|
||||
DropPool(); width_ = width; height_ = height;
|
||||
const uint64_t bytes = uint64_t(width) * height * 4;
|
||||
GLint64 limit{}; glGetInteger64v(GL_MAX_SHADER_STORAGE_BLOCK_SIZE, &limit);
|
||||
if (bytes > static_cast<uint64_t>(limit)) return false;
|
||||
AHardwareBuffer_Desc description{}; description.width = bytes; description.height = description.layers = 1;
|
||||
description.format = AHARDWAREBUFFER_FORMAT_BLOB;
|
||||
description.usage = AHARDWAREBUFFER_USAGE_GPU_DATA_BUFFER;
|
||||
glGenBuffers(buffers_.size(), buffers_.data());
|
||||
for (unsigned index = 0; index < XR_GPU_SLOTS; index++) {
|
||||
if (AHardwareBuffer_allocate(&description, &hardware_[index])) { DropPool(); return false; }
|
||||
fds_[index] = AllocationFd(hardware_[index], bytes, sizes_[index]);
|
||||
if (fds_[index] < 0) { DropPool(); return false; }
|
||||
glBindBuffer(GL_SHADER_STORAGE_BUFFER, buffers_[index]);
|
||||
storage_(GL_SHADER_STORAGE_BUFFER, 0, bytes, client_(hardware_[index]), 0);
|
||||
if (glGetError() != GL_NO_ERROR) { DropPool(); return false; }
|
||||
}
|
||||
glBindBuffer(GL_SHADER_STORAGE_BUFFER, 0);
|
||||
return true;
|
||||
}
|
||||
bool Output() {
|
||||
if (raw_ && outputWidth_ == width_ && outputHeight_ == height_) return true;
|
||||
glDeleteTextures(1, &srgb_); glDeleteTextures(1, &raw_); srgb_ = raw_ = 0;
|
||||
glGenTextures(1, &raw_); glBindTexture(GL_TEXTURE_2D, raw_);
|
||||
glTexStorage2D(GL_TEXTURE_2D, 1, GL_RGBA8, width_, height_);
|
||||
glGenTextures(1, &srgb_); view_(srgb_, GL_TEXTURE_2D, raw_, GL_SRGB8_ALPHA8, 0, 1, 0, 1);
|
||||
for (GLuint texture : {raw_, srgb_}) {
|
||||
glBindTexture(GL_TEXTURE_2D, texture);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
|
||||
}
|
||||
outputWidth_ = width_; outputHeight_ = height_;
|
||||
return glGetError() == GL_NO_ERROR;
|
||||
}
|
||||
};
|
||||
@@ -1871,12 +1871,7 @@ static void render_scene(void) {
|
||||
else if (rendered && how == 2) droiddeck_color_frame_shown(hs.color, DROIDDECK_HDR_TONEMAPPED, 0);
|
||||
else if (rendered) hdr_copy = "the HDR composition pass is unavailable on this driver";
|
||||
}
|
||||
if (hdr_route == 0 && vkp_quest_layer_presentation() && !framegen && !cardboard &&
|
||||
!ahb_layer_only_candidate(w, h)) {
|
||||
/* The complete SDR scene stays on one display layer. Do not hide/re-show GAME
|
||||
* on each desktop frame just because it is not a single fullscreen window. */
|
||||
rendered = vkp_render(w, h, dl.d, dl.n) == 0;
|
||||
} else if (hdr_route == 0 || hdr_route == 3) {
|
||||
if (hdr_route == 0 || hdr_route == 3) {
|
||||
const int pass_on = fx_on || framegen;
|
||||
int li = (g_zero_copy && !framegen && !cardboard) ? layer_candidate(&dl, w, h) : -1;
|
||||
int over = li >= 0 ? dl.n - 1 - li : 0;
|
||||
@@ -2614,24 +2609,7 @@ static void pointer_delta(double dx, double dy) {
|
||||
}
|
||||
|
||||
static void pointer_button(uint32_t button, int pressed) {
|
||||
if (pressed) {
|
||||
pointer_input(0, 0, 1, button, pressed);
|
||||
return;
|
||||
}
|
||||
// Releases also clean up interrupted gestures. Deliver them to the existing
|
||||
// pointer focus without motion or hit-testing: native touch has independent
|
||||
// coordinates, so replaying g_ptr_x/y here can warp the game cursor.
|
||||
uint32_t t = now_ms();
|
||||
for (int i = 0; i < g_nptrs; i++) {
|
||||
struct seat_pointer *sp = &g_ptrs[i];
|
||||
if (!sp->focus) continue;
|
||||
wl_pointer_send_button(sp->ptr, wl_display_next_serial(g_display), t, button,
|
||||
WL_POINTER_BUTTON_STATE_RELEASED);
|
||||
if (wl_resource_get_version(sp->ptr) >= WL_POINTER_FRAME_SINCE_VERSION)
|
||||
wl_pointer_send_frame(sp->ptr);
|
||||
}
|
||||
g_grab = NULL;
|
||||
wl_display_flush_clients(g_display);
|
||||
pointer_input(0, 0, 1, button, pressed);
|
||||
}
|
||||
|
||||
static void deliver_pointer(const struct input_msg *m) {
|
||||
@@ -2938,26 +2916,12 @@ static int on_input_readable(int fd, uint32_t mask, void *data) {
|
||||
case 6: pointer_delta(m.p1 / 256.0, m.p2 / 256.0); break;
|
||||
case 7: deliver_touch(&m); break;
|
||||
case 8: output_resized(); break;
|
||||
case 9:
|
||||
vk_present_set_scale_mode(m.p1, m.p2);
|
||||
schedule_render();
|
||||
break;
|
||||
default: deliver_pointer(&m); break;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void droiddeck_wayland_set_scale_mode(int mode, int alignment) {
|
||||
if (g_input_pipe[1] < 0) {
|
||||
vk_present_set_scale_mode(mode, alignment);
|
||||
return;
|
||||
}
|
||||
struct input_msg m = { 9, mode, alignment, 0, 0 };
|
||||
ssize_t n = write(g_input_pipe[1], &m, sizeof(m));
|
||||
(void)n;
|
||||
}
|
||||
|
||||
void droiddeck_wayland_send_pointer(int action, int x, int y) {
|
||||
if (g_input_pipe[1] < 0) return;
|
||||
struct input_msg m = { 0, action, x, y, 0 };
|
||||
@@ -3161,9 +3125,6 @@ int droiddeck_wayland_run(void) {
|
||||
open_session_log();
|
||||
|
||||
if (vkp_ready() != 0) WLOGE("renderer unavailable; clients will connect but nothing is drawn");
|
||||
/* Presentation compatibility is not HDR capability. Set the initial layer mode before
|
||||
* clients bind, including when Desktop is the first session in this app process. */
|
||||
if (vkp_quest_layer_presentation() && sc_layer_available()) g_zero_copy = 1;
|
||||
|
||||
struct wl_display *display = wl_display_create();
|
||||
if (!display) {
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
#ifndef DROIDDECK_QUEST_DEVICE_H
|
||||
#define DROIDDECK_QUEST_DEVICE_H
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
|
||||
/* Presentation only; this does not select a GPU driver or expand driver support. */
|
||||
static inline int quest_device_matches(const char *model, const char *device, const char *maker) {
|
||||
return !strcasecmp(model, "Quest 2") || !strcasecmp(model, "Quest 3") ||
|
||||
!strcasecmp(model, "Quest 3S") ||
|
||||
((!strcasecmp(maker, "Oculus") || !strcasecmp(maker, "Meta")) &&
|
||||
(!strcmp(device, "hollywood") || !strcmp(device, "eureka") || !strcmp(device, "panther")));
|
||||
}
|
||||
#endif
|
||||
@@ -185,8 +185,6 @@ static int g_pending_cb;
|
||||
static unsigned g_stat_layer_frames;
|
||||
static int g_two_logged;
|
||||
static AHardwareBuffer *g_blank;
|
||||
static ASurfaceControl *g_base_sc;
|
||||
static int g_base_w, g_base_h, g_base_shown;
|
||||
|
||||
static void layers_init(void) {
|
||||
if (g_layers_ready) return;
|
||||
@@ -264,58 +262,14 @@ static AHardwareBuffer *blank_buffer(void) {
|
||||
AHARDWAREBUFFER_USAGE_CPU_WRITE_RARELY};
|
||||
if (AHardwareBuffer_allocate(&d, &g_blank) != 0 || !g_blank) { g_blank = NULL; return NULL; }
|
||||
void *p = NULL;
|
||||
int locked = AHardwareBuffer_lock(g_blank, AHARDWAREBUFFER_USAGE_CPU_WRITE_RARELY, -1, NULL, &p);
|
||||
if (locked != 0 || !p) {
|
||||
if (locked == 0) AHardwareBuffer_unlock(g_blank, NULL);
|
||||
AHardwareBuffer_release(g_blank); g_blank = NULL;
|
||||
return NULL;
|
||||
}
|
||||
AHardwareBuffer_Desc got; AHardwareBuffer_describe(g_blank, &got);
|
||||
memset(p, 0, (size_t)got.stride * 4 * got.height);
|
||||
if (AHardwareBuffer_unlock(g_blank, NULL) != 0) {
|
||||
AHardwareBuffer_release(g_blank); g_blank = NULL;
|
||||
return NULL;
|
||||
if (AHardwareBuffer_lock(g_blank, AHARDWAREBUFFER_USAGE_CPU_WRITE_RARELY, -1, NULL, &p) == 0 && p) {
|
||||
AHardwareBuffer_Desc got; AHardwareBuffer_describe(g_blank, &got);
|
||||
memset(p, 0, (size_t)got.stride * 4 * 16);
|
||||
AHardwareBuffer_unlock(g_blank, NULL);
|
||||
}
|
||||
return g_blank;
|
||||
}
|
||||
|
||||
int sc_layer_base_black(int width, int height) {
|
||||
if (width <= 0 || height <= 0 || load_api() != 0 || !vkp_window()) return -1;
|
||||
if (g_base_sc && g_base_shown && width == g_base_w && height == g_base_h) return 0;
|
||||
AHardwareBuffer *black = blank_buffer();
|
||||
if (!black) return -1;
|
||||
if (!g_base_sc) g_base_sc = api.createFromWindow(vkp_window(), "droiddeck_wayland_black");
|
||||
if (!g_base_sc) return -1;
|
||||
ASurfaceTransaction *tx = api.txCreate();
|
||||
if (!tx) return -1;
|
||||
ARect src = {0, 0, 16, 16}, dst = {0, 0, width, height};
|
||||
api.setBuffer(tx, g_base_sc, black, -1);
|
||||
api.setBufferTransparency(tx, g_base_sc, ASC_TRANSPARENCY_OPAQUE);
|
||||
api.setZOrder(tx, g_base_sc, 0); /* GAME = 1, OVERLAY = 2 */
|
||||
api.setGeometry(tx, g_base_sc, &src, &dst, 0);
|
||||
api.setVisibility(tx, g_base_sc, ASC_VISIBILITY_SHOW);
|
||||
api.txApply(tx); api.txDelete(tx);
|
||||
g_base_w = width; g_base_h = height; g_base_shown = 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void base_hide(int retire) {
|
||||
if (!g_base_sc) return;
|
||||
ASurfaceTransaction *tx = api.txCreate();
|
||||
if (tx) {
|
||||
api.setVisibility(tx, g_base_sc, ASC_VISIBILITY_HIDE);
|
||||
if (retire) api.reparent(tx, g_base_sc, NULL);
|
||||
api.txApply(tx); api.txDelete(tx);
|
||||
g_base_shown = 0;
|
||||
}
|
||||
if (retire) {
|
||||
api.release(g_base_sc); g_base_sc = NULL;
|
||||
g_base_w = g_base_h = g_base_shown = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void sc_layer_hide_base(void) { base_hide(0); }
|
||||
|
||||
static void replace_with_blank(ASurfaceTransaction *tx, struct layer *l) {
|
||||
AHardwareBuffer *b = blank_buffer();
|
||||
if (b) api.setBuffer(tx, l->sc, b, -1);
|
||||
@@ -973,7 +927,6 @@ void sc_layer_hide_overlay(void) {
|
||||
}
|
||||
|
||||
void sc_layer_window_gone(void) {
|
||||
base_hide(1); /* the backdrop belongs to the old window, just like GAME and OVERLAY */
|
||||
if (api.state != 1) return;
|
||||
layers_init();
|
||||
for (int i = SC_LAYER_COUNT - 1; i >= 0; i--) retire_sc(&g_layers[i]);
|
||||
|
||||
@@ -36,8 +36,6 @@ int sc_layer_overlay_affordable(void);
|
||||
int sc_layer_present_overlay(struct vkp_image *src, const int geo[8], int translucent);
|
||||
|
||||
void sc_layer_hide(void);
|
||||
int sc_layer_base_black(int width, int height);
|
||||
void sc_layer_hide_base(void);
|
||||
void sc_layer_hide_overlay(void);
|
||||
|
||||
void sc_layer_window_gone(void);
|
||||
|
||||
@@ -8,11 +8,9 @@
|
||||
#include "hdr_compose.h"
|
||||
#include "blend_pass.h"
|
||||
#include "droiddeck_color.h"
|
||||
#include "quest_device.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/system_properties.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <poll.h>
|
||||
@@ -66,21 +64,6 @@ static VkExtent2D g_extent;
|
||||
static int g_first_frame_done;
|
||||
|
||||
static int g_base_black;
|
||||
|
||||
int vkp_quest_layer_presentation(void) {
|
||||
/* Compositor thread only; this is a process-wide device property, not a session setting.
|
||||
* Quest 2 still needs its separate A6xx driver: this gate only chooses presentation. */
|
||||
static int enabled = -1;
|
||||
if (enabled < 0) {
|
||||
char model[PROP_VALUE_MAX] = {0}, device[PROP_VALUE_MAX] = {0}, maker[PROP_VALUE_MAX] = {0};
|
||||
__system_property_get("ro.product.model", model);
|
||||
__system_property_get("ro.product.device", device);
|
||||
__system_property_get("ro.product.manufacturer", maker);
|
||||
enabled = quest_device_matches(model, device, maker);
|
||||
if (enabled) droiddeck_log("gpu", "Quest presentation: display layers for Steam and desktop, CPU-initialized black backdrop; independent of HDR");
|
||||
}
|
||||
return enabled;
|
||||
}
|
||||
static VkExtent2D g_caps_extent;
|
||||
static int64_t g_surface_checked_ns;
|
||||
|
||||
@@ -140,7 +123,9 @@ static int g_req_pending;
|
||||
static int g_req_detached;
|
||||
static uint64_t g_req_generation, g_req_applied;
|
||||
static pthread_cond_t g_req_condition = PTHREAD_COND_INITIALIZER;
|
||||
static uint64_t g_presented_frames;
|
||||
|
||||
uint64_t vkp_presented_frames(void) { return __atomic_load_n(&g_presented_frames, __ATOMIC_ACQUIRE); }
|
||||
|
||||
static volatile int g_mode = VKP_MODE_STRETCH, g_align = VKP_ALIGN_CENTER;
|
||||
|
||||
@@ -150,9 +135,6 @@ static struct {
|
||||
int rx, ry, rw, rh;
|
||||
int valid;
|
||||
} g_map;
|
||||
static pthread_mutex_t g_game_picture_lock = PTHREAD_MUTEX_INITIALIZER;
|
||||
static float g_game_picture_rect[4];
|
||||
static int g_game_picture_top;
|
||||
|
||||
static int64_t g_swap_retry_at_ns;
|
||||
static int g_swap_fail_logged;
|
||||
@@ -295,7 +277,7 @@ int vkp_device_lost(void) { return g_dev_state == -2; }
|
||||
|
||||
void vk_present_set_scale_mode(int mode, int alignment) {
|
||||
if (mode < VKP_MODE_OFF || mode > VKP_MODE_INTEGER) mode = VKP_MODE_FIT;
|
||||
if (alignment < VKP_ALIGN_CENTER || alignment > VKP_ALIGN_PICTURE_BOTTOM) alignment = VKP_ALIGN_CENTER;
|
||||
if (alignment < VKP_ALIGN_CENTER || alignment > VKP_ALIGN_BOTTOM) alignment = VKP_ALIGN_CENTER;
|
||||
g_mode = mode;
|
||||
g_align = alignment;
|
||||
}
|
||||
@@ -314,8 +296,6 @@ static const char *align_name(int a) {
|
||||
switch (a) {
|
||||
case VKP_ALIGN_TOP: return "top";
|
||||
case VKP_ALIGN_BOTTOM: return "bottom";
|
||||
case VKP_ALIGN_PICTURE_TOP: return "picture top";
|
||||
case VKP_ALIGN_PICTURE_BOTTOM: return "picture bottom";
|
||||
default: return "center";
|
||||
}
|
||||
}
|
||||
@@ -351,30 +331,13 @@ static void update_map(int scene_w, int scene_h) {
|
||||
g_map.off_x = (float)(g_map.rx + (int)((g_map.rw - scene_w * aspect) * 0.5f));
|
||||
g_map.off_y = (float)(g_map.ry + (int)((g_map.rh - scene_h * aspect) * 0.5f));
|
||||
}
|
||||
if (align == VKP_ALIGN_PICTURE_TOP) g_map.off_y = 0;
|
||||
else if (align == VKP_ALIGN_PICTURE_BOTTOM) g_map.off_y = H - scene_h * g_map.ky;
|
||||
g_map.valid = 1;
|
||||
pthread_mutex_lock(&g_game_picture_lock);
|
||||
g_game_picture_top = align == VKP_ALIGN_PICTURE_TOP || align == VKP_ALIGN_PICTURE_BOTTOM;
|
||||
g_game_picture_rect[0] = g_map.off_x;
|
||||
g_game_picture_rect[1] = g_map.off_y;
|
||||
g_game_picture_rect[2] = g_map.off_x + scene_w * g_map.kx;
|
||||
g_game_picture_rect[3] = g_map.off_y + scene_h * g_map.ky;
|
||||
pthread_mutex_unlock(&g_game_picture_lock);
|
||||
droiddeck_log("screen", "%s, %s: %dx%d scene shown %dx%d at %d,%d on the %dx%d output",
|
||||
mode_name(mode), align_name(align), scene_w, scene_h,
|
||||
(int)(scene_w * g_map.kx + 0.5f), (int)(scene_h * g_map.ky + 0.5f),
|
||||
(int)g_map.off_x, (int)g_map.off_y, W, H);
|
||||
}
|
||||
|
||||
int vkp_game_picture_rect(float rect[4]) {
|
||||
pthread_mutex_lock(&g_game_picture_lock);
|
||||
int active = g_game_picture_top;
|
||||
if (active) memcpy(rect, g_game_picture_rect, sizeof(g_game_picture_rect));
|
||||
pthread_mutex_unlock(&g_game_picture_lock);
|
||||
return active;
|
||||
}
|
||||
|
||||
int vkp_output_to_scene(double ox, double oy, double *sx, double *sy) {
|
||||
if (!g_map.valid || g_map.kx <= 0 || g_map.ky <= 0) return 0;
|
||||
*sx = (ox - g_map.off_x) / g_map.kx;
|
||||
@@ -1383,10 +1346,6 @@ static void check_surface_changed(void) {
|
||||
|
||||
int vkp_base_black(int scene_w, int scene_h) {
|
||||
vkp_apply_window_request();
|
||||
if (vkp_quest_layer_presentation()) {
|
||||
if (vkp_update_map(scene_w, scene_h) != 0) return -1;
|
||||
return sc_layer_base_black((int)g_extent.width, (int)g_extent.height);
|
||||
}
|
||||
check_surface_changed();
|
||||
if (g_base_black && g_swapchain && g_window && g_dev_state == 1) {
|
||||
g_perf.base_kept++;
|
||||
@@ -1465,7 +1424,6 @@ static int render_impl(int scene_w, int scene_h, const struct vkp_draw *draws, i
|
||||
const struct vkp_hdr_frame *hf, int *how) {
|
||||
if (how) *how = 0;
|
||||
vkp_apply_window_request();
|
||||
sc_layer_hide_base();
|
||||
check_surface_changed();
|
||||
if (g_dev_state == -2) return -1;
|
||||
if (dev_init() != 0 || !g_window || scene_w <= 0 || scene_h <= 0) return -1;
|
||||
@@ -1713,6 +1671,7 @@ static int render_impl(int scene_w, int scene_h, const struct vkp_draw *draws, i
|
||||
}
|
||||
|
||||
g_base_black = (g_plain_frame && n == 0 && !hf) ? 1 : 0;
|
||||
if (fr == VK_SUCCESS) __atomic_add_fetch(&g_presented_frames, 1u, __ATOMIC_RELEASE);
|
||||
|
||||
if (drawn && !g_first_frame_done) {
|
||||
g_first_frame_done = 1;
|
||||
@@ -1723,26 +1682,6 @@ static int render_impl(int scene_w, int scene_h, const struct vkp_draw *draws, i
|
||||
}
|
||||
|
||||
int vkp_render(int scene_w, int scene_h, const struct vkp_draw *draws, int n) {
|
||||
if (vkp_quest_layer_presentation() && !vkp_framegen_active() && !vkp_cardboard_active()) {
|
||||
/* The desktop (multiple windows), overlays and an empty scene must also avoid WSI.
|
||||
* Merely enabling zero-copy handles only a single fullscreen window and leaves both
|
||||
* the letterbox and every fallback frame going through the corrupted swapchain. */
|
||||
vkp_apply_window_request();
|
||||
sc_layer_hide_overlay();
|
||||
if (n > 0) {
|
||||
if (sc_layer_present_pass(draws, n, scene_w, scene_h) != 0) {
|
||||
static int said;
|
||||
if (!said) { said = 1; droiddeck_log("error", "Quest scene layer unavailable; retaining the previous frame rather than using the corrupt Android swapchain"); }
|
||||
return -1;
|
||||
}
|
||||
} else {
|
||||
sc_layer_hide();
|
||||
}
|
||||
/* sc_layer_present_pass signals only after submitting client content.
|
||||
* A backdrop alone, or a successful no-op while a layer slot is unavailable,
|
||||
* must not dismiss the app's loading UI or mark Steam's window as shown. */
|
||||
return vkp_base_black(scene_w, scene_h);
|
||||
}
|
||||
return render_impl(scene_w, scene_h, draws, n, NULL, NULL);
|
||||
}
|
||||
|
||||
@@ -1776,15 +1715,6 @@ void vkp_signal_first_frame(void) {
|
||||
|
||||
int vkp_update_map(int scene_w, int scene_h) {
|
||||
if (g_dev_state == -2 || dev_init() != 0 || !g_window || scene_w <= 0 || scene_h <= 0) return -1;
|
||||
if (vkp_quest_layer_presentation()) {
|
||||
/* Layer geometry needs the window size, not a Vulkan swapchain. In particular, do
|
||||
* not create/present a swapchain just to paint black under an otherwise clean layer. */
|
||||
int w = ANativeWindow_getWidth(g_window), h = ANativeWindow_getHeight(g_window);
|
||||
if (w <= 0 || h <= 0) return -1;
|
||||
g_extent = (VkExtent2D){(uint32_t)w, (uint32_t)h};
|
||||
update_map(scene_w, scene_h);
|
||||
return g_map.valid ? 0 : -1;
|
||||
}
|
||||
check_surface_changed();
|
||||
if (!g_swapchain && swap_init() != 0) return -1;
|
||||
update_map(scene_w, scene_h);
|
||||
@@ -1993,7 +1923,11 @@ int vkp_pass_begin_hdr(int scene_w, int scene_h, const struct vkp_draw *draws, i
|
||||
static int pass_begin_impl(int scene_w, int scene_h, const struct vkp_draw *draws, int n,
|
||||
const struct vkp_hdr_frame *hf, int *rw, int *rh) {
|
||||
if (g_pass.active) vkp_pass_abort();
|
||||
if (vkp_update_map(scene_w, scene_h) != 0) return -1;
|
||||
if (g_dev_state == -2 || dev_init() != 0 || !g_window || scene_w <= 0 || scene_h <= 0) return -1;
|
||||
check_surface_changed();
|
||||
if (!g_swapchain && swap_init() != 0) return -1;
|
||||
update_map(scene_w, scene_h);
|
||||
if (!g_map.valid) return -1;
|
||||
if (hf) {
|
||||
if (ensure_img(&g_hdrscene, scene_w, scene_h, HDR_FMT,
|
||||
VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_SAMPLED_BIT |
|
||||
|
||||
@@ -8,13 +8,10 @@ void vk_present_set_driver(const char *driver_path, const char *library_name,
|
||||
void vk_present_set_window(ANativeWindow *window);
|
||||
int vkp_apply_window_request(void);
|
||||
|
||||
int vkp_quest_layer_presentation(void);
|
||||
|
||||
enum vkp_scale_mode { VKP_MODE_OFF = 0, VKP_MODE_FIT = 1, VKP_MODE_STRETCH = 2, VKP_MODE_FILL = 3,
|
||||
VKP_MODE_INTEGER = 4 };
|
||||
enum vkp_align { VKP_ALIGN_CENTER = 0, VKP_ALIGN_TOP = 1, VKP_ALIGN_BOTTOM = 2, VKP_ALIGN_PICTURE_TOP = 3, VKP_ALIGN_PICTURE_BOTTOM = 4 };
|
||||
enum vkp_align { VKP_ALIGN_CENTER = 0, VKP_ALIGN_TOP = 1, VKP_ALIGN_BOTTOM = 2 };
|
||||
void vk_present_set_scale_mode(int mode, int alignment);
|
||||
int vkp_game_picture_rect(float rect[4]);
|
||||
int vkp_output_to_scene(double ox, double oy, double *sx, double *sy);
|
||||
void vkp_output_size(int *w, int *h);
|
||||
|
||||
@@ -52,6 +49,7 @@ const char *vkp_gpu_name(void);
|
||||
int vkp_ready(void);
|
||||
int vkp_has_window(void);
|
||||
int vkp_wait_window_request(int timeout_ms);
|
||||
uint64_t vkp_presented_frames(void);
|
||||
int vkp_device_lost(void);
|
||||
|
||||
int vkp_render(int scene_w, int scene_h, const struct vkp_draw *draws, int n);
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
#include "droiddeck_color.h"
|
||||
|
||||
extern int droiddeck_wayland_run(void);
|
||||
extern void droiddeck_wayland_set_scale_mode(int mode, int alignment);
|
||||
extern void droiddeck_wayland_send_pointer(int action, int x, int y);
|
||||
extern void droiddeck_wayland_send_touch(int action, int pointer_id, int x, int y);
|
||||
extern int droiddeck_cursor_snapshot(int *out, int cap);
|
||||
@@ -355,20 +354,11 @@ Java_com_droiddeck_launcher_wayland_WaylandCompositor_nativeResizeOutput(JNIEnv
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_com_droiddeck_launcher_wayland_WaylandCompositor_nativeSetScaleMode(JNIEnv *env, jclass clazz, jint mode, jint alignment) {
|
||||
droiddeck_wayland_set_scale_mode(mode, alignment);
|
||||
vk_present_set_scale_mode(mode, alignment);
|
||||
__android_log_print(ANDROID_LOG_INFO, TAG, "scale mode %d alignment %d", mode, alignment);
|
||||
}
|
||||
|
||||
|
||||
JNIEXPORT jboolean JNICALL
|
||||
Java_com_droiddeck_launcher_wayland_WaylandCompositor_nativeGamePictureRect(JNIEnv *env, jclass clazz, jfloatArray out) {
|
||||
if (!out || (*env)->GetArrayLength(env, out) < 4) return JNI_FALSE;
|
||||
float rect[4];
|
||||
if (!vkp_game_picture_rect(rect)) return JNI_FALSE;
|
||||
(*env)->SetFloatArrayRegion(env, out, 0, 4, rect);
|
||||
return JNI_TRUE;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_com_droiddeck_launcher_wayland_WaylandCompositor_nativeSetUpscaler(JNIEnv *env, jclass clazz, jint mode) {
|
||||
vkp_effects_set_scaling(mode);
|
||||
@@ -598,6 +588,11 @@ Java_com_droiddeck_launcher_wayland_WaylandCompositor_nativeWaitSurface(
|
||||
return vkp_wait_window_request(timeout_ms) ? JNI_TRUE : JNI_FALSE;
|
||||
}
|
||||
|
||||
JNIEXPORT jlong JNICALL
|
||||
Java_com_droiddeck_launcher_wayland_WaylandCompositor_nativePresentedFrames(JNIEnv *env, jclass clazz) {
|
||||
return (jlong)vkp_presented_frames();
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_com_droiddeck_launcher_wayland_WaylandCompositor_nativeSetClipboardText(JNIEnv *env, jclass clazz, jbyteArray utf8) {
|
||||
int len;
|
||||
|
||||
@@ -20,7 +20,6 @@ import com.droiddeck.launcher.gpu.TurnipDriver
|
||||
import com.droiddeck.launcher.gpu.TurnipReleases
|
||||
import com.droiddeck.launcher.session.SessionService
|
||||
import com.droiddeck.launcher.session.SessionPrefs
|
||||
import com.droiddeck.launcher.session.QuestExperimental
|
||||
import com.droiddeck.launcher.ui.DriverRow
|
||||
import com.droiddeck.launcher.ui.GpuDriversState
|
||||
import com.droiddeck.launcher.ui.PairRow
|
||||
@@ -104,7 +103,7 @@ internal class DriverMenus(private val activity: Activity, private val ui: Handl
|
||||
val lm = LinuxVulkanDriverManager(activity)
|
||||
val td = TurnipDriver(activity)
|
||||
val pairs = DriverPairs.from(TurnipReleases.cached(activity))
|
||||
val recommended = if (QuestExperimental.isSupported()) null else DriverPairs.recommendedKey(gpu, pairs)
|
||||
val recommended = DriverPairs.recommendedKey(gpu, pairs)
|
||||
pairRows = pairs.map { p ->
|
||||
val bundle = p.bundle?.let { installedBundle(it) }
|
||||
val displayId = if (p.bundle != null) bundle?.androidId else p.display?.let { TurnipReleases.installedId(activity, it, td::isInstalled) }
|
||||
@@ -133,14 +132,6 @@ internal class DriverMenus(private val activity: Activity, private val ui: Handl
|
||||
if (mode != SessionPrefs.GPU_DRIVERS_AUTO || pairBusy != null || releaseChecking) return
|
||||
if (!force && autoCheckedThisProcess) return
|
||||
autoCheckedThisProcess = true
|
||||
val displayChanged = SessionPrefs.androidDriver(activity) != QuestExperimental.defaultAndroidDriver()
|
||||
if (QuestExperimental.applyAutoDrivers(activity)) {
|
||||
autoStatus = activity.getString(
|
||||
if (displayChanged && CompositorHost.isStarted) R.string.drivers_using_quest_restart else R.string.drivers_using_quest,
|
||||
)
|
||||
refreshDrivers()
|
||||
return
|
||||
}
|
||||
if (DriverPairs.recommendedKey(gpu, emptyList()) == null) {
|
||||
autoStatus = activity.getString(R.string.drivers_none_to_set, gpu.supportText(activity).lowercase())
|
||||
return
|
||||
|
||||
@@ -150,7 +150,6 @@ class MainActivity : ComponentActivity() {
|
||||
private var phantomProcessStatus by mutableStateOf(PhantomProcessStatus.NOT_APPLICABLE)
|
||||
private var showPhantomGate by mutableStateOf(false)
|
||||
private var directAudio by mutableStateOf(false)
|
||||
private var picturePosition by mutableStateOf("center")
|
||||
private var stretch16x9 by mutableStateOf(false)
|
||||
private var orientation by mutableStateOf(android.content.pm.ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE)
|
||||
private var launcherFullscreen by mutableStateOf(true)
|
||||
@@ -160,8 +159,6 @@ class MainActivity : ComponentActivity() {
|
||||
private var storesOpenTab by mutableStateOf(SessionPrefs.STORES_OPEN_LIBRARY)
|
||||
private var navRequest by mutableStateOf<String?>(null)
|
||||
private var storesShowMature by mutableStateOf(false)
|
||||
private var storesSort by mutableStateOf(SessionPrefs.STORES_SORTS.first())
|
||||
private var storesView by mutableStateOf(SessionPrefs.STORES_VIEWS.first())
|
||||
private var mic by mutableStateOf(false)
|
||||
private var wifiDiscovery by mutableStateOf(false)
|
||||
private var wifiDiscoveryPermission by mutableStateOf(false)
|
||||
@@ -519,8 +516,6 @@ class MainActivity : ComponentActivity() {
|
||||
gameStoresSpeedTier = SessionPrefs.gameStoresSpeedTier(this)
|
||||
storesOpenTab = SessionPrefs.storesOpenTab(this)
|
||||
storesShowMature = SessionPrefs.storesShowMature(this)
|
||||
storesSort = SessionPrefs.storesSort(this)
|
||||
storesView = SessionPrefs.storesView(this)
|
||||
applyLauncherFullscreen()
|
||||
updates.start()
|
||||
setContent {
|
||||
@@ -578,8 +573,6 @@ class MainActivity : ComponentActivity() {
|
||||
addedGamesArt = addedGamesArt,
|
||||
sgdbUserKey = sgdbUserKey,
|
||||
storesShowMature = storesShowMature,
|
||||
storesSort = storesSort,
|
||||
storesView = storesView,
|
||||
storeDownloadsActive = com.droiddeck.launcher.stores.StoresState.activeDownloads,
|
||||
),
|
||||
FrontEndActions(
|
||||
@@ -735,8 +728,6 @@ class MainActivity : ComponentActivity() {
|
||||
onStoresOpenTab = { tab -> SessionPrefs.setStoresOpenTab(this, tab); storesOpenTab = tab },
|
||||
onNavigated = { navRequest = null },
|
||||
onStoresShowMature = { show -> SessionPrefs.setStoresShowMature(this, show); storesShowMature = show },
|
||||
onStoresSort = { sort -> SessionPrefs.setStoresSort(this, sort); storesSort = sort },
|
||||
onStoresView = { view -> SessionPrefs.setStoresView(this, view); storesView = view },
|
||||
onLibraryChanged = { refreshAddedGames(); refresh() },
|
||||
onAnimationsEnabled = { on ->
|
||||
SessionPrefs.setAnimationsEnabled(this, on)
|
||||
@@ -1255,7 +1246,6 @@ class MainActivity : ComponentActivity() {
|
||||
oscMode = if (mode == SessionService.MODE_STEAM) oscMode else null,
|
||||
backActionsInverted = backActionsInverted,
|
||||
directAudio = if (mode == SessionService.MODE_STEAM) directAudio else null,
|
||||
picturePosition = if (mode == SessionService.MODE_STEAM) picturePosition 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,
|
||||
@@ -1316,7 +1306,6 @@ class MainActivity : ComponentActivity() {
|
||||
backActionsInverted = inverted
|
||||
},
|
||||
onDirectAudio = { on -> SessionPrefs.setDirectAudio(this, on); directAudio = on },
|
||||
onPicturePosition = { value -> SessionPrefs.setPicturePosition(this, value); picturePosition = value },
|
||||
onStretch16x9 = { on -> SessionPrefs.setStretch16x9(this, on); stretch16x9 = on },
|
||||
onMic = { on ->
|
||||
SessionPrefs.setMicEnabled(this, on)
|
||||
@@ -1476,7 +1465,6 @@ class MainActivity : ComponentActivity() {
|
||||
oscMode = SessionPrefs.oscMode(this)
|
||||
backActionsInverted = SessionPrefs.backActionsInverted(this)
|
||||
directAudio = SessionPrefs.directAudio(this)
|
||||
picturePosition = SessionPrefs.picturePosition(this)
|
||||
stretch16x9 = SessionPrefs.stretch16x9(this)
|
||||
mic = SessionPrefs.micEnabled(this)
|
||||
refreshWifiDiscovery()
|
||||
|
||||
@@ -2,26 +2,42 @@ package com.droiddeck.launcher
|
||||
|
||||
import android.app.NativeActivity
|
||||
import android.os.Bundle
|
||||
import android.os.SystemClock
|
||||
import android.view.Surface
|
||||
import android.util.Log
|
||||
import android.widget.Toast
|
||||
import com.droiddeck.launcher.gpu.SteamVr
|
||||
import com.droiddeck.launcher.session.SessionService
|
||||
import com.droiddeck.launcher.session.SessionState
|
||||
import com.droiddeck.launcher.wayland.CompositorHost
|
||||
import com.droiddeck.launcher.wayland.WaylandCompositor
|
||||
|
||||
class QuestXrActivity : NativeActivity() {
|
||||
private var presentedBaseline = 0L
|
||||
private var steamVrStarted = false
|
||||
@Volatile private var closing = false
|
||||
@Volatile private var steamVrStatus = SteamVr.Status.UNAVAILABLE
|
||||
private var sessionId: String? = null
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
sessionId = SessionState.sessionId
|
||||
SessionService.setXrActivityVisible(this, true)
|
||||
if (intent.getBooleanExtra("guest_surface", false) || intent.getBooleanExtra("guest_frames", false)) {
|
||||
if (intent.getBooleanExtra("guest_surface", false)) intent.putExtra("surface_test", true)
|
||||
SessionService.setXrActivityVisible(this, true)
|
||||
}
|
||||
super.onCreate(savedInstanceState)
|
||||
}
|
||||
|
||||
fun onXrSurface(surface: Surface?, width: Int, height: Int) {
|
||||
if (surface != null) {
|
||||
presentedBaseline = WaylandCompositor.nativePresentedFrames()
|
||||
WaylandCompositor.nativeSetCardboard(false, 1, 0.064f, 3f, 4f, 0f, 0f, 90f, 0f, 0f)
|
||||
WaylandCompositor.nativeSetFrameGenArmed(false, 0, 0)
|
||||
WaylandCompositor.nativeSetZeroCopy(false)
|
||||
WaylandCompositor.nativeSetOutputSize(width, height)
|
||||
WaylandCompositor.nativeSetFpsLimit(0)
|
||||
}
|
||||
CompositorHost.attachXr(surface)
|
||||
SessionService.setXrActivityVisible(this, surface != null)
|
||||
WaylandCompositor.nativeVsync(System.nanoTime())
|
||||
check(WaylandCompositor.nativeWaitSurface(3000)) { "XR surface GPU handshake timed out" }
|
||||
if (surface != null) startSteamVr()
|
||||
}
|
||||
|
||||
fun onXrActive(active: Boolean) {
|
||||
if (active) {
|
||||
check(CompositorHost.isStarted) { "DroidDeck compositor is not running" }
|
||||
@@ -29,7 +45,7 @@ class QuestXrActivity : NativeActivity() {
|
||||
WaylandCompositor.nativeSetCardboard(false, 1, 0.064f, 3f, 4f, 0f, 0f, 90f, 0f, 0f)
|
||||
WaylandCompositor.nativeSetFrameGenArmed(false, 0, 0)
|
||||
WaylandCompositor.nativeSetZeroCopy(false)
|
||||
CompositorHost.attachXr()
|
||||
CompositorHost.attachXr(null)
|
||||
WaylandCompositor.nativeVsync(System.nanoTime())
|
||||
check(WaylandCompositor.nativeWaitSurface(3000)) { "XR frame GPU handshake timed out" }
|
||||
}
|
||||
@@ -38,64 +54,22 @@ class QuestXrActivity : NativeActivity() {
|
||||
}
|
||||
|
||||
private fun startSteamVr() {
|
||||
if (!steamVrStarted) {
|
||||
if (intent.getBooleanExtra("start_steamvr", false) && !steamVrStarted) {
|
||||
steamVrStarted = true
|
||||
Thread({
|
||||
try {
|
||||
val started = synchronized(steamVrLock) {
|
||||
if (closing || !sessionAlive()) false else {
|
||||
steamVrOwner = this
|
||||
SteamVr.run(this, "start")
|
||||
}
|
||||
}
|
||||
if (!started) {
|
||||
if (!closing) leaveXr("SteamVR start failed", sessionAlive())
|
||||
return@Thread
|
||||
}
|
||||
val startupDeadline = SystemClock.elapsedRealtime() + 30_000
|
||||
var lastRunning: Long? = null
|
||||
while (!closing) {
|
||||
if (!sessionAlive()) {
|
||||
leaveXr("Steam session ended", false)
|
||||
break
|
||||
}
|
||||
steamVrStatus = SteamVr.status(this)
|
||||
val now = SystemClock.elapsedRealtime()
|
||||
if (steamVrStatus == SteamVr.Status.RUNNING) lastRunning = now
|
||||
val deadline = lastRunning?.plus(5_000) ?: startupDeadline
|
||||
if (steamVrStatus != SteamVr.Status.RUNNING && now >= deadline) {
|
||||
leaveXr("SteamVR stopped or did not finish starting", true)
|
||||
break
|
||||
}
|
||||
Thread.sleep(1000)
|
||||
}
|
||||
} finally {
|
||||
synchronized(steamVrLock) {
|
||||
// A retiring activity must not stop a replacement's SteamVR session.
|
||||
if (steamVrOwner === this) {
|
||||
if (sessionAlive()) SteamVr.run(this, "stop")
|
||||
steamVrOwner = null
|
||||
}
|
||||
}
|
||||
if (!SteamVr.run(this, "start")) Log.e("DroidDeckXR", "SteamVR start failed")
|
||||
while (!closing) {
|
||||
steamVrStatus = SteamVr.status(this)
|
||||
Thread.sleep(1000)
|
||||
}
|
||||
SteamVr.run(this, "stop")
|
||||
}, "quest-steamvr-start").start()
|
||||
}
|
||||
}
|
||||
|
||||
private fun sessionAlive() = SessionState.running && !SessionState.stopRequested &&
|
||||
sessionId != null && SessionState.sessionId == sessionId
|
||||
|
||||
private fun leaveXr(reason: String, failed: Boolean) {
|
||||
Log.w("DroidDeckXR", reason)
|
||||
closing = true
|
||||
runOnUiThread {
|
||||
if (failed) Toast.makeText(this, R.string.cardboard_steamvr_failed, Toast.LENGTH_LONG).show()
|
||||
finish()
|
||||
}
|
||||
}
|
||||
|
||||
fun onXrFrame(frameTimeNanos: Long) {
|
||||
fun onXrFrame(frameTimeNanos: Long): Long {
|
||||
WaylandCompositor.nativeVsync(frameTimeNanos)
|
||||
return (WaylandCompositor.nativePresentedFrames() - presentedBaseline).coerceAtLeast(0)
|
||||
}
|
||||
|
||||
fun onXrStatus(): Int = steamVrStatus.ordinal
|
||||
@@ -110,9 +84,4 @@ class QuestXrActivity : NativeActivity() {
|
||||
SessionService.setXrActivityVisible(this, false)
|
||||
super.onStop()
|
||||
}
|
||||
|
||||
companion object {
|
||||
private val steamVrLock = Any()
|
||||
private var steamVrOwner: QuestXrActivity? = null
|
||||
}
|
||||
}
|
||||
@@ -120,19 +120,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
|
||||
private var pipUi by mutableStateOf(false)
|
||||
private var pipAutoEnter by mutableStateOf(false)
|
||||
private var unfoldedControls by mutableStateOf(false)
|
||||
private var picturePosition by mutableStateOf("center")
|
||||
|
||||
private fun applyGameAlignment() {
|
||||
if (!CompositorHost.isStarted) return
|
||||
val active = SessionState.mode == SessionService.MODE_STEAM &&
|
||||
!pipUi && !isInPictureInPictureMode && !cardboard.enabled
|
||||
val alignment = if (!active) ALIGN_CENTER else when (picturePosition) {
|
||||
"top" -> ALIGN_PICTURE_TOP
|
||||
"bottom" -> ALIGN_PICTURE_BOTTOM
|
||||
else -> ALIGN_CENTER
|
||||
}
|
||||
WaylandCompositor.nativeSetScaleMode(SCALE_FIT, alignment)
|
||||
}
|
||||
private var unfoldedPanel: com.droiddeck.launcher.ui.DeckControlsPanel? = null
|
||||
private lateinit var sessionRoot: FrameLayout
|
||||
private val guestKeysDown = mutableSetOf<Int>()
|
||||
@@ -175,7 +162,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
|
||||
}
|
||||
private var watching = true
|
||||
private lateinit var touchpad: TouchpadGestures
|
||||
private lateinit var threeFingerTap: com.droiddeck.launcher.input.ThreeFingerTap
|
||||
private var touchMode by mutableStateOf(SessionPrefs.TOUCH_AUTO)
|
||||
private var cursorPos by mutableStateOf(androidx.compose.ui.geometry.Offset(-100f, -100f))
|
||||
private var cursorVisible by mutableStateOf(false)
|
||||
@@ -262,8 +248,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
|
||||
private var drawerPage by mutableStateOf(SessionDrawerPage.CONTROLLER)
|
||||
private var drawerControllerActive by mutableStateOf(false)
|
||||
private var backActionsInverted by mutableStateOf(false)
|
||||
private var lowLatencyController by mutableStateOf(false)
|
||||
private var lowLatencyTouch by mutableStateOf(false)
|
||||
private var padType by mutableStateOf(SessionPrefs.CONTROLLER_DECK)
|
||||
private var pcKeyboardOpen by mutableStateOf(false)
|
||||
private var achievementsInFront by mutableStateOf<AchievementsInFront?>(null)
|
||||
@@ -418,7 +402,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
|
||||
onScreenControls = OnScreenControls(this, bridge, onKeyboard = ::togglePcKeyboard).also { root.addView(it) }
|
||||
keyboard = KeyboardHost(this).also { root.addView(it) }
|
||||
touchpad = TouchpadGestures(PointerGestures.slop(this), pointerListener)
|
||||
threeFingerTap = com.droiddeck.launcher.input.ThreeFingerTap(PointerGestures.slop(this) * 2)
|
||||
val noCursor = android.view.PointerIcon.getSystemIcon(this, android.view.PointerIcon.TYPE_NULL)
|
||||
root.pointerIcon = noCursor
|
||||
surfaceView.pointerIcon = noCursor
|
||||
@@ -480,7 +463,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
|
||||
defaultFocusHighlightEnabled = false
|
||||
setContent {
|
||||
androidx.compose.runtime.LaunchedEffect(drawerOpen, pcKeyboardOpen, achievementsOpen, pipUi) { updatePointerCapture() }
|
||||
androidx.compose.runtime.LaunchedEffect(picturePosition, SessionState.running, pipUi, cardboard.enabled) { applyGameAlignment() }
|
||||
DroidDeckTheme {
|
||||
if (pipUi) {
|
||||
if (SessionState.suspended) androidx.compose.foundation.layout.Box(
|
||||
@@ -521,8 +503,8 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
|
||||
releaseDrawerDirection()
|
||||
}
|
||||
}
|
||||
LaunchedEffect(cardboard.enabled, steamVrSwitchedPicture, drawerOpen, drawerPage) {
|
||||
while (cardboard.enabled || steamVrSwitchedPicture || (drawerOpen && drawerPage == SessionDrawerPage.STEAMVR)) {
|
||||
LaunchedEffect(cardboard.enabled, steamVrSwitchedPicture) {
|
||||
while (cardboard.enabled || steamVrSwitchedPicture) {
|
||||
val now = kotlinx.coroutines.withContext(kotlinx.coroutines.Dispatchers.IO) {
|
||||
SteamVr.status(this@SessionActivity)
|
||||
}
|
||||
@@ -559,7 +541,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
|
||||
onCardboard = { c -> SessionPrefs.setCardboard(this@SessionActivity, c); applyCardboard(c) },
|
||||
onCardboardRecenter = { headTracker?.recenter() },
|
||||
steamVr = steamVrStatus,
|
||||
immersiveSteamVr = com.droiddeck.launcher.session.QuestExperimental.isSupported(),
|
||||
onSteamVr = { action -> steamVrAction(action) },
|
||||
textureAnisotropy = if (drawerGameProfileId == null) textureAnisotropy else drawerTextureAnisotropy,
|
||||
textureLodBias = if (drawerGameProfileId == null) textureLodBias else drawerTextureLodBias,
|
||||
@@ -636,18 +617,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
|
||||
SessionPrefs.setBackActionsInverted(this@SessionActivity, inverted)
|
||||
backActionsInverted = inverted
|
||||
},
|
||||
lowLatencyController = lowLatencyController,
|
||||
lowLatencyTouch = lowLatencyTouch,
|
||||
onLowLatencyController = { on ->
|
||||
SessionPrefs.setLowLatencyController(this@SessionActivity, on)
|
||||
lowLatencyController = on
|
||||
applyLowLatency()
|
||||
},
|
||||
onLowLatencyTouch = { on ->
|
||||
SessionPrefs.setLowLatencyTouch(this@SessionActivity, on)
|
||||
lowLatencyTouch = on
|
||||
applyLowLatency()
|
||||
},
|
||||
onOsc = { v ->
|
||||
SessionPrefs.setOscMode(this@SessionActivity, v)
|
||||
readPrefs()
|
||||
@@ -1087,7 +1056,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
|
||||
private fun readPrefs() {
|
||||
pipAutoEnter = SessionPrefs.pipAutoEnter(this)
|
||||
unfoldedControls = SessionPrefs.unfoldedControls(this)
|
||||
picturePosition = SessionPrefs.picturePosition(this)
|
||||
hudOn = SessionPrefs.hudEnabled(this)
|
||||
upscaler = SessionPrefs.upscaler(this)
|
||||
upscaleSharpness = SessionPrefs.upscaleSharpness(this)
|
||||
@@ -1118,8 +1086,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
|
||||
steamDownloadsInBackground = SessionPrefs.steamDownloadsInBackground(this)
|
||||
oscMode = SessionPrefs.oscMode(this)
|
||||
backActionsInverted = SessionPrefs.backActionsInverted(this)
|
||||
lowLatencyController = SessionPrefs.lowLatencyController(this)
|
||||
lowLatencyTouch = SessionPrefs.lowLatencyTouch(this)
|
||||
padType = SessionPrefs.steamController(this)
|
||||
}
|
||||
|
||||
@@ -1325,7 +1291,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
|
||||
)
|
||||
}
|
||||
applyFrameGen()
|
||||
applyGameAlignment()
|
||||
}
|
||||
|
||||
private var surfaceW = 0
|
||||
@@ -1995,15 +1960,9 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
|
||||
else -> SessionState.mode != SessionService.MODE_STEAM || SessionState.steamUi == "desktop"
|
||||
}
|
||||
|
||||
private val gamePictureBounds = FloatArray(4)
|
||||
private var topPictureMapped = false
|
||||
|
||||
private fun drawnRect(): android.graphics.RectF? {
|
||||
val width = surfaceView.width.takeIf { it > 0 } ?: return null
|
||||
val height = surfaceView.height.takeIf { it > 0 } ?: return null
|
||||
topPictureMapped = CompositorHost.isStarted && WaylandCompositor.nativeGamePictureRect(gamePictureBounds)
|
||||
if (topPictureMapped) return android.graphics.RectF(
|
||||
gamePictureBounds[0], gamePictureBounds[1], gamePictureBounds[2], gamePictureBounds[3])
|
||||
val out = SessionState.outputSize
|
||||
val scale = minOf(width / out.first.toFloat(), height / out.second.toFloat())
|
||||
val drawnW = out.first * scale
|
||||
@@ -2013,19 +1972,9 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
|
||||
return android.graphics.RectF(left, top, left + drawnW, top + drawnH)
|
||||
}
|
||||
|
||||
private var ignoreGameTouch = false
|
||||
|
||||
override fun onTouchEvent(event: MotionEvent): Boolean {
|
||||
if (event.isFromSource(android.view.InputDevice.SOURCE_MOUSE)) return onMouse(event)
|
||||
if (routedTouchMode == SessionPrefs.TOUCH_OFF) return true
|
||||
if (SessionState.mode == SessionService.MODE_STEAM && SessionState.steamUi != "desktop") {
|
||||
val wasActive = threeFingerTap.active
|
||||
if (threeFingerTap.onTouch(event)) padBridge?.triggerSteamKeyboard()
|
||||
if (threeFingerTap.active && !wasActive) {
|
||||
if (usingTouchpad()) touchpad.cancel() else WaylandCompositor.nativeSendTouch(3, -1, 0, 0)
|
||||
}
|
||||
if (threeFingerTap.active || wasActive) return true
|
||||
}
|
||||
if (usingTouchpad()) {
|
||||
val rect = drawnRect() ?: return false
|
||||
if (touchpad.bounds != rect) {
|
||||
@@ -2036,14 +1985,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
|
||||
return touchpad.onTouch(event)
|
||||
}
|
||||
val rect = drawnRect() ?: return false
|
||||
if (event.actionMasked == MotionEvent.ACTION_DOWN)
|
||||
ignoreGameTouch = topPictureMapped && !rect.contains(event.x, event.y)
|
||||
if (ignoreGameTouch) {
|
||||
if (event.actionMasked == MotionEvent.ACTION_DOWN)
|
||||
WaylandCompositor.nativeSendTouch(3, -1, 0, 0)
|
||||
if (event.actionMasked == MotionEvent.ACTION_UP || event.actionMasked == MotionEvent.ACTION_CANCEL) ignoreGameTouch = false
|
||||
return true
|
||||
}
|
||||
fun sendTouch(action: Int, index: Int) {
|
||||
val x = event.getX(index).coerceIn(rect.left, rect.right)
|
||||
val y = event.getY(index).coerceIn(rect.top, rect.bottom)
|
||||
@@ -2385,7 +2326,8 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
|
||||
|
||||
private fun steamVrAction(action: String) {
|
||||
if (action == "start" && com.droiddeck.launcher.session.QuestExperimental.isSupported()) {
|
||||
startActivity(android.content.Intent(this, QuestXrActivity::class.java))
|
||||
startActivity(android.content.Intent(this, QuestXrActivity::class.java)
|
||||
.putExtra("guest_surface", true).putExtra("start_steamvr", true))
|
||||
return
|
||||
}
|
||||
if (action == "start") {
|
||||
@@ -2473,16 +2415,8 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
|
||||
super.onAttachedToWindow()
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.R) return
|
||||
val decor = window.decorView
|
||||
decor.requestUnbufferedDispatch(unbufferedSources())
|
||||
decor.viewTreeObserver.addOnGlobalFocusChangeListener { _, _ -> decor.post { decor.requestUnbufferedDispatch(unbufferedSources()) } }
|
||||
}
|
||||
|
||||
private fun unbufferedSources() =
|
||||
if (lowLatencyTouch) UNBUFFERED_SOURCES or InputDevice.SOURCE_CLASS_POINTER else UNBUFFERED_SOURCES
|
||||
|
||||
private fun applyLowLatency() {
|
||||
com.droiddeck.launcher.input.FakeInputWriter.setLowLatency(lowLatencyController, lowLatencyTouch)
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) window.decorView.requestUnbufferedDispatch(unbufferedSources())
|
||||
decor.requestUnbufferedDispatch(UNBUFFERED_SOURCES)
|
||||
decor.viewTreeObserver.addOnGlobalFocusChangeListener { _, _ -> decor.post { decor.requestUnbufferedDispatch(UNBUFFERED_SOURCES) } }
|
||||
}
|
||||
|
||||
override fun onWindowFocusChanged(hasFocus: Boolean) {
|
||||
@@ -2604,8 +2538,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
|
||||
private const val DRAWER_REPEAT_ACCELERATION_MS = 1_400L
|
||||
private const val SCALE_FIT = 1
|
||||
private const val ALIGN_CENTER = 0
|
||||
private const val ALIGN_PICTURE_TOP = 3
|
||||
private const val ALIGN_PICTURE_BOTTOM = 4
|
||||
private val RUNTIME_LINES = PackageLines(
|
||||
R.string.session_runtime_downloading, R.string.session_runtime_downloading_mb,
|
||||
R.string.session_runtime_checking, R.string.session_runtime_unpacking,
|
||||
|
||||
@@ -48,12 +48,6 @@ public final class Downloader {
|
||||
if (have > 0) connection.setRequestProperty("Range", "bytes=" + have + "-");
|
||||
int code = connection.getResponseCode();
|
||||
boolean appending = code == HttpURLConnection.HTTP_PARTIAL;
|
||||
if (appending && !rangeStartsAt(connection.getHeaderField("Content-Range"), have)) {
|
||||
// A 206 that does not begin where the kept bytes end would corrupt the file if appended.
|
||||
connection.disconnect();
|
||||
destination.delete();
|
||||
return downloadFile(url, destination, false, progress);
|
||||
}
|
||||
if (code / 100 != 2) {
|
||||
if (have > 0) {
|
||||
connection.disconnect();
|
||||
@@ -93,13 +87,6 @@ public final class Downloader {
|
||||
}
|
||||
}
|
||||
|
||||
/** True when a `Content-Range: bytes START-END/TOTAL` header starts exactly at {@code start}. */
|
||||
static boolean rangeStartsAt(String contentRange, long start) {
|
||||
if (contentRange == null) return false;
|
||||
java.util.regex.Matcher m = java.util.regex.Pattern.compile("^\\s*bytes\\s+(\\d+)-\\d+/(?:\\d+|\\*)\\s*$").matcher(contentRange);
|
||||
return m.matches() && Long.parseLong(m.group(1)) == start;
|
||||
}
|
||||
|
||||
private static HttpURLConnection open(String url) throws java.io.IOException {
|
||||
HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();
|
||||
connection.setConnectTimeout(TIMEOUT_MS);
|
||||
|
||||
@@ -36,10 +36,6 @@ object AddedGameArt {
|
||||
|
||||
class Option(val group: String, val thumb: String, val full: String)
|
||||
|
||||
class Choices(val options: List<Option>, val sgdb: SteamGridDb.Status)
|
||||
|
||||
class Found<T>(val items: List<T>, val status: SteamGridDb.Status)
|
||||
|
||||
private val CHOSEN = Regex("""chosen-(\w+)\.(\w+)""")
|
||||
|
||||
private fun chosen(cache: File, slot: Slot): File? =
|
||||
@@ -112,7 +108,7 @@ object AddedGameArt {
|
||||
dir.listFiles { f -> f.isFile && f.extension.lowercase() in CHOOSABLE }?.sortedBy { it.name.lowercase() }.orEmpty()
|
||||
}.take(12)
|
||||
|
||||
fun choices(context: Context, game: AddedGames.Game, slot: Slot): Choices {
|
||||
fun options(context: Context, game: AddedGames.Game, slot: Slot): List<Option> {
|
||||
val out = ArrayList<Option>()
|
||||
folderImages(game.folder).forEach { out.add(Option(FOLDER, it.path, it.path)) }
|
||||
val cache = cacheDir(context, game)
|
||||
@@ -122,42 +118,16 @@ object AddedGameArt {
|
||||
val url = "$CDN$steamId/$remote".takeIf { exists(it) } ?: steamAssetUrl(steamId, remote)
|
||||
if (url != null) out.add(Option(STEAM, url, url))
|
||||
}
|
||||
var status = SteamGridDb.Status.OK
|
||||
val key = SteamGridDb.key(context)
|
||||
if (key.isEmpty()) {
|
||||
status = SteamGridDb.Status.NO_KEY
|
||||
} else {
|
||||
if (key.isNotEmpty()) {
|
||||
cache.mkdirs()
|
||||
try {
|
||||
val gridId = remembered(File(cache, "sgdb-id"), SteamGridDb.keyChangedAt(context), retryMiss = true) {
|
||||
SteamGridDb.gameId(key, steamId?.toIntOrNull(), game.name)?.toString()
|
||||
}?.toIntOrNull()
|
||||
if (gridId == null) status = SteamGridDb.Status.NO_GAME
|
||||
else SteamGridDb.images(key, gridId, slot, if (slot == Slot.ICON) 3 else 5)
|
||||
.forEach { (thumb, full) -> out.add(Option(SGDB, thumb, full)) }
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "${game.name}: SteamGridDB failed (${e.javaClass.simpleName})")
|
||||
status = (e as? SteamGridDb.Failed)?.status ?: SteamGridDb.Status.SERVER
|
||||
}
|
||||
}
|
||||
return Choices(out, status)
|
||||
}
|
||||
|
||||
fun searchGames(context: Context, term: String): Found<SteamGridDb.Game> = sgdb(context) { SteamGridDb.search(it, term) }
|
||||
|
||||
fun gameImages(context: Context, id: Int, slot: Slot, page: Int): Found<Option> = sgdb(context) { key ->
|
||||
SteamGridDb.page(key, id, slot, page).map { (thumb, full) -> Option(SGDB, thumb, full) }
|
||||
}
|
||||
|
||||
private fun <T> sgdb(context: Context, call: (String) -> List<T>): Found<T> {
|
||||
val key = SteamGridDb.key(context)
|
||||
if (key.isEmpty()) return Found(emptyList(), SteamGridDb.Status.NO_KEY)
|
||||
return try {
|
||||
Found(call(key), SteamGridDb.Status.OK)
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "SteamGridDB: ${e.javaClass.simpleName}")
|
||||
Found(emptyList(), (e as? SteamGridDb.Failed)?.status ?: SteamGridDb.Status.SERVER)
|
||||
val gridId = remembered(File(cache, "sgdb-id")) {
|
||||
runCatching { SteamGridDb.gameId(key, steamId?.toIntOrNull(), game.name) }.getOrNull()?.toString()
|
||||
}?.toIntOrNull()
|
||||
if (gridId != null) runCatching { SteamGridDb.images(key, gridId, slot, if (slot == Slot.ICON) 3 else 5) }.getOrNull()
|
||||
?.forEach { (thumb, full) -> out.add(Option(SGDB, thumb, full)) }
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
fun choose(context: Context, game: AddedGames.Game, slot: Slot, option: Option): Boolean {
|
||||
@@ -210,8 +180,6 @@ object AddedGameArt {
|
||||
fun fetchMissing(context: Context, games: List<AddedGames.Game>): Boolean {
|
||||
if (!SessionPrefs.addedGamesArt(context)) return false
|
||||
val sgdbKey = SteamGridDb.key(context)
|
||||
val keyChangedAt = SteamGridDb.keyChangedAt(context)
|
||||
var sgdbDown = false
|
||||
var changed = false
|
||||
for (game in games) {
|
||||
if (local(game).portrait != null) continue
|
||||
@@ -224,24 +192,11 @@ object AddedGameArt {
|
||||
val appId = match.appId?.takeIf { match.certainty == SteamMatch.Certainty.FILES }
|
||||
val id = match.appId?.toString()
|
||||
if (id != null && download(id, cache)) changed = true
|
||||
if (File(cache, "p.jpg").isFile || sgdbKey.isEmpty() || sgdbDown) continue
|
||||
val stored: String? = try {
|
||||
remembered(File(cache, "sgdb-id"), keyChangedAt) {
|
||||
SteamGridDb.gameId(sgdbKey, appId ?: id?.toIntOrNull(), game.name)?.toString()
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "${game.name}: SteamGridDB lookup failed (${e.javaClass.simpleName}); not asking again this pass")
|
||||
sgdbDown = true
|
||||
null
|
||||
}
|
||||
val gridId = stored?.toIntOrNull() ?: continue
|
||||
val grabbed = try {
|
||||
SteamGridDb.download(sgdbKey, gridId, cache)
|
||||
} catch (e: Exception) {
|
||||
sgdbDown = true
|
||||
false
|
||||
}
|
||||
if (grabbed) changed = true
|
||||
if (File(cache, "p.jpg").isFile || sgdbKey.isEmpty()) continue
|
||||
val gridId = remembered(File(cache, "sgdb-id")) {
|
||||
runCatching { SteamGridDb.gameId(sgdbKey, appId ?: id?.toIntOrNull(), game.name) }.getOrNull()?.toString()
|
||||
}?.toIntOrNull() ?: continue
|
||||
if (runCatching { SteamGridDb.download(sgdbKey, gridId, cache) }.getOrDefault(false)) changed = true
|
||||
}
|
||||
return changed
|
||||
}
|
||||
@@ -252,12 +207,11 @@ object AddedGameArt {
|
||||
return match
|
||||
}
|
||||
|
||||
internal fun remembered(marker: File, notBefore: Long = 0L, retryMiss: Boolean = false, find: () -> String?): String? {
|
||||
private fun remembered(marker: File, find: () -> String?): String? {
|
||||
if (marker.isFile) {
|
||||
val value = marker.readText().trim()
|
||||
if (value != "none") return value
|
||||
val at = marker.lastModified()
|
||||
if (!retryMiss && at >= notBefore && System.currentTimeMillis() - at < RETRY_AFTER_MS) return null
|
||||
if (System.currentTimeMillis() - marker.lastModified() < RETRY_AFTER_MS) return null
|
||||
}
|
||||
val found = find()
|
||||
marker.writeText(found ?: "none")
|
||||
|
||||
@@ -76,7 +76,7 @@ object DependencyDetector {
|
||||
|
||||
fun consider(f: File, isDir: Boolean, insideRedist: Boolean) {
|
||||
val name = f.name.lowercase(Locale.US)
|
||||
val path = relativeReason(gameDir, f).lowercase(Locale.US)
|
||||
val path = f.path.replace('\\', '/').lowercase(Locale.US)
|
||||
val kind = if (insideRedist || isDir || name.endsWith(".exe") || name.endsWith(".msi") || name.endsWith(".cab"))
|
||||
Kind.BUNDLED else Kind.SHIPPED
|
||||
for (comp in classify(path, name, isDir)) {
|
||||
|
||||
@@ -128,14 +128,6 @@ object Library {
|
||||
return out.values.toList()
|
||||
}
|
||||
|
||||
fun steamLibraryArt(context: Context): List<Pair<Int, File>> {
|
||||
val cache = File(LinuxRuntime.rootDir(context), "root/.local/share/Steam/appcache/librarycache")
|
||||
return cache.listFiles().orEmpty().mapNotNull { dir ->
|
||||
val appId = dir.name.toIntOrNull()?.takeIf { it !in NOT_GAMES } ?: return@mapNotNull null
|
||||
steamCacheImage(cache, appId, STEAM_CAPSULES)?.let { appId to it }
|
||||
}
|
||||
}
|
||||
|
||||
fun launchableGames(context: Context, strictRead: Boolean = false, added: List<AddedGames.Game>? = null): List<SteamGame> {
|
||||
val roots = steamLibraries(context).map { it.first }
|
||||
return (steamGames(context, strictRead) + (added ?: AddedGames.scan(context)).map { g -> addedGame(context, g, roots) }).distinctBy { it.gameId }
|
||||
|
||||
@@ -16,12 +16,6 @@ object SteamGridDb {
|
||||
private const val API = "https://www.steamgriddb.com/api/v2"
|
||||
private const val QUERY = "nsfw=false&humor=false"
|
||||
|
||||
enum class Status { OK, NO_KEY, BAD_KEY, LIMIT, OFFLINE, SERVER, NO_GAME }
|
||||
|
||||
class Failed(val status: Status) : Exception(status.name)
|
||||
|
||||
class Game(val id: Int, val name: String, val verified: Boolean)
|
||||
|
||||
@VisibleForTesting
|
||||
@Volatile
|
||||
internal var keys: CredentialCipher.KeyProvider = CredentialCipher.Keystore
|
||||
@@ -36,8 +30,6 @@ object SteamGridDb {
|
||||
|
||||
fun key(context: Context): String = pick(userKey(context), builtInKey())
|
||||
|
||||
fun keyChangedAt(context: Context): Long = keyFile(context).lastModified()
|
||||
|
||||
@Synchronized
|
||||
fun userKey(context: Context): String {
|
||||
val f = keyFile(context)
|
||||
@@ -105,37 +97,17 @@ object SteamGridDb {
|
||||
return got
|
||||
}
|
||||
|
||||
fun search(key: String, term: String): List<Game> {
|
||||
val q = term.trim()
|
||||
if (q.isEmpty()) return emptyList()
|
||||
val enc = URLEncoder.encode(q, "UTF-8").replace("+", "%20")
|
||||
val data = json(key, "$API/search/autocomplete/$enc")?.optJSONArray("data") ?: return emptyList()
|
||||
return games(data)
|
||||
}
|
||||
|
||||
internal fun games(data: JSONArray): List<Game> =
|
||||
(0 until data.length()).mapNotNull { data.optJSONObject(it) }
|
||||
.filter { it.optInt("id") > 0 && it.optString("name").isNotEmpty() }
|
||||
.map { Game(it.optInt("id"), it.optString("name"), it.optBoolean("verified")) }
|
||||
|
||||
internal fun path(id: Int, slot: AddedGameArt.Slot, page: Int): String {
|
||||
val base = when (slot) {
|
||||
fun images(key: String, id: Int, slot: AddedGameArt.Slot, limit: Int): List<Pair<String, String>> {
|
||||
val path = when (slot) {
|
||||
AddedGameArt.Slot.COVER -> "grids/game/$id?dimensions=600x900&$QUERY"
|
||||
AddedGameArt.Slot.BACKGROUND -> "heroes/game/$id?$QUERY"
|
||||
AddedGameArt.Slot.LOGO -> "logos/game/$id?$QUERY"
|
||||
AddedGameArt.Slot.ICON -> "icons/game/$id?$QUERY"
|
||||
}
|
||||
return if (page > 0) "$base&page=$page" else base
|
||||
val items = json(key, "$API/$path")?.optJSONArray("data") ?: return emptyList()
|
||||
return ranked(items, pngOnly = slot == AddedGameArt.Slot.LOGO || slot == AddedGameArt.Slot.ICON).take(limit)
|
||||
}
|
||||
|
||||
fun page(key: String, id: Int, slot: AddedGameArt.Slot, page: Int): List<Pair<String, String>> {
|
||||
val items = json(key, "$API/${path(id, slot, page)}")?.optJSONArray("data") ?: return emptyList()
|
||||
return ranked(items, pngOnly = slot == AddedGameArt.Slot.LOGO || slot == AddedGameArt.Slot.ICON)
|
||||
}
|
||||
|
||||
fun images(key: String, id: Int, slot: AddedGameArt.Slot, limit: Int): List<Pair<String, String>> =
|
||||
page(key, id, slot, 0).take(limit)
|
||||
|
||||
internal fun ranked(items: JSONArray, pngOnly: Boolean): List<Pair<String, String>> =
|
||||
(0 until items.length()).map { items.getJSONObject(it) }
|
||||
.filter { it.optString("url").startsWith("https://") && (!pngOnly || it.optString("mime") == "image/png" || it.optString("url").endsWith(".png", true)) }
|
||||
@@ -147,13 +119,6 @@ object SteamGridDb {
|
||||
.filter { it.optString("url").startsWith("https://") && (!pngOnly || it.optString("mime") == "image/png" || it.optString("url").endsWith(".png", true)) }
|
||||
.maxByOrNull { it.optInt("score", 0) }?.optString("url")
|
||||
|
||||
internal fun failure(code: Int): Status? = when {
|
||||
code == 401 || code == 403 -> Status.BAD_KEY
|
||||
code == 429 -> Status.LIMIT
|
||||
code >= 500 -> Status.SERVER
|
||||
else -> null
|
||||
}
|
||||
|
||||
private fun json(key: String, url: String): JSONObject? {
|
||||
val c = URL(url).openConnection() as HttpURLConnection
|
||||
c.connectTimeout = 10_000
|
||||
@@ -161,19 +126,8 @@ object SteamGridDb {
|
||||
c.setRequestProperty("User-Agent", "DroidDeck-launcher")
|
||||
c.setRequestProperty("Authorization", "Bearer $key")
|
||||
return try {
|
||||
val code = c.responseCode
|
||||
if (code == 200) {
|
||||
JSONObject(c.inputStream.use { it.readBytes() }.toString(Charsets.UTF_8)).takeIf { it.optBoolean("success", true) }
|
||||
} else {
|
||||
Log.w(TAG, "${URL(url).path}: HTTP $code")
|
||||
failure(code)?.let { throw Failed(it) }
|
||||
null
|
||||
}
|
||||
} catch (e: Failed) {
|
||||
throw e
|
||||
} catch (e: java.io.IOException) {
|
||||
Log.w(TAG, "${URL(url).path}: ${e.javaClass.simpleName}")
|
||||
throw Failed(Status.OFFLINE)
|
||||
if (c.responseCode != 200) { Log.w(TAG, "${URL(url).path}: HTTP ${c.responseCode}"); null }
|
||||
else JSONObject(c.inputStream.use { it.readBytes() }.toString(Charsets.UTF_8)).takeIf { it.optBoolean("success", true) }
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "${URL(url).path}: ${e.javaClass.simpleName}"); null
|
||||
} finally {
|
||||
|
||||
@@ -81,7 +81,7 @@ data class GpuInfo(
|
||||
)
|
||||
}
|
||||
|
||||
internal fun threeDigits(text: String): Int = Regex("""(\d{3})""").find(text)?.groupValues?.get(1)?.toIntOrNull() ?: 0
|
||||
private fun threeDigits(text: String): Int = Regex("""(\d{3})""").find(text)?.groupValues?.get(1)?.toIntOrNull() ?: 0
|
||||
|
||||
private val PLATFORMS = mapOf(
|
||||
"msmnile" to 640, "kona" to 650, "lahaina" to 660, "taro" to 730, "cape" to 730,
|
||||
|
||||
@@ -8,7 +8,6 @@ import android.util.Log;
|
||||
import com.droiddeck.launcher.R;
|
||||
import com.droiddeck.launcher.core.FileUtils;
|
||||
import com.droiddeck.launcher.core.TarZst;
|
||||
import com.droiddeck.launcher.session.QuestExperimental;
|
||||
import com.droiddeck.launcher.session.SessionPrefs;
|
||||
|
||||
import org.json.JSONObject;
|
||||
@@ -282,8 +281,6 @@ public final class TurnipDriver {
|
||||
if (forced.startsWith("a7")) return DRIVER_A7XX;
|
||||
if (forced.startsWith("a6")) return DRIVER_A6XX;
|
||||
}
|
||||
String quest = QuestExperimental.INSTANCE.defaultAndroidDriver();
|
||||
if (quest != null) return quest;
|
||||
String model = gpuModel();
|
||||
Log.i(TAG, "gpu model: " + (model == null ? "unknown" : model));
|
||||
if (model != null) {
|
||||
|
||||
@@ -79,10 +79,6 @@ public class FakeInputWriter {
|
||||
private static final int DECK_CONTROLS_OFFSET = IMU_OFFSET + 40;
|
||||
private static final int PAD_TYPE_OFFSET = IMU_OFFSET + 44;
|
||||
private static final int PAD_TYPE_SET = 0x80000000;
|
||||
private static final int LATENCY_OFFSET = IMU_OFFSET + 48;
|
||||
public static final int LATENCY_CONTROLLER = 1;
|
||||
public static final int LATENCY_TOUCH = 2;
|
||||
private static volatile int latency = 0;
|
||||
public static final int PAD_TYPE_DECK = 0;
|
||||
public static final int PAD_TYPE_STEAM = 1;
|
||||
public static final int PAD_TYPE_XBOX = 2;
|
||||
@@ -218,7 +214,6 @@ public class FakeInputWriter {
|
||||
data.putInt(DECK_CONTROLS_OFFSET, 0);
|
||||
int type = padType;
|
||||
data.putInt(PAD_TYPE_OFFSET, type >= 0 ? PAD_TYPE_SET | type : 0);
|
||||
data.putInt(LATENCY_OFFSET, latency);
|
||||
data.putInt(TRITON_OFFSET, TRITON_MAGIC);
|
||||
data.putInt(TRITON_CONNECTED_OFFSET, tritonConnected ? 1 : 0);
|
||||
data.putLong(TRITON_INPUT_SEQ_OFFSET, 0L);
|
||||
@@ -519,22 +514,6 @@ public class FakeInputWriter {
|
||||
}
|
||||
}
|
||||
|
||||
public static void setLowLatency(boolean controller, boolean touch) {
|
||||
int flags = (controller ? LATENCY_CONTROLLER : 0) | (touch ? LATENCY_TOUCH : 0);
|
||||
latency = flags;
|
||||
RingSlot ringSlot;
|
||||
synchronized (RING_LOCK) {
|
||||
ringSlot = RING_SLOTS[0];
|
||||
}
|
||||
if (ringSlot == null) return;
|
||||
synchronized (ringSlot) {
|
||||
ByteBuffer ring = ringSlot.data;
|
||||
if (ring == null) return;
|
||||
nativeStoreFence();
|
||||
ring.putInt(LATENCY_OFFSET, flags);
|
||||
}
|
||||
}
|
||||
|
||||
public static void setTritonConnected(int slot, boolean connected) {
|
||||
tritonConnected = connected;
|
||||
RingSlot ringSlot = tritonSlot(slot);
|
||||
|
||||
@@ -55,8 +55,7 @@ public final class PadBridge {
|
||||
private boolean systemGuidePressed;
|
||||
private boolean systemQamPressed;
|
||||
private boolean qamChordActive;
|
||||
private int chordButton = -1;
|
||||
private boolean chordButtonPressed;
|
||||
private boolean qamSyntheticAPressed;
|
||||
private boolean qamTapPressed;
|
||||
private int qamChordGeneration;
|
||||
private volatile Runnable onPlayerInput;
|
||||
@@ -116,7 +115,7 @@ public final class PadBridge {
|
||||
systemGuidePressed = false;
|
||||
systemQamPressed = false;
|
||||
qamChordActive = false;
|
||||
chordButtonPressed = false;
|
||||
qamSyntheticAPressed = false;
|
||||
qamTapPressed = false;
|
||||
qamChordGeneration++;
|
||||
if (open) {
|
||||
@@ -341,7 +340,7 @@ public final class PadBridge {
|
||||
boolean qamStarted = qamPressed && !systemQamPressed;
|
||||
systemGuidePressed = guidePressed;
|
||||
systemQamPressed = qamPressed;
|
||||
if (qamStarted && !nativeQam()) startChord(PadState.A);
|
||||
if (qamStarted && !nativeQam()) startQamChord();
|
||||
else publish();
|
||||
}
|
||||
|
||||
@@ -368,7 +367,7 @@ public final class PadBridge {
|
||||
|
||||
public synchronized void triggerQam() {
|
||||
if (!nativeQam()) {
|
||||
startChord(PadState.A);
|
||||
startQamChord();
|
||||
return;
|
||||
}
|
||||
if (qamTapPressed) return;
|
||||
@@ -384,17 +383,12 @@ public final class PadBridge {
|
||||
publish();
|
||||
}
|
||||
|
||||
public synchronized void triggerSteamKeyboard() {
|
||||
startChord(PadState.X);
|
||||
}
|
||||
|
||||
private void startChord(int button) {
|
||||
private void startQamChord() {
|
||||
if (qamChordActive) return;
|
||||
qamChordActive = true;
|
||||
chordButton = button;
|
||||
int generation = ++qamChordGeneration;
|
||||
publish();
|
||||
chordHandler.postDelayed(() -> pressChordButton(generation), qamGuideLeadMs());
|
||||
chordHandler.postDelayed(() -> pressQamA(generation), qamGuideLeadMs());
|
||||
}
|
||||
|
||||
static long qamGuideLeadMs() {
|
||||
@@ -403,16 +397,16 @@ public final class PadBridge {
|
||||
return Math.max(QAM_GUIDE_LEAD_MIN_MS, Math.min(QAM_GUIDE_LEAD_MAX_MS, frame * QAM_GUIDE_LEAD_FRAMES));
|
||||
}
|
||||
|
||||
private synchronized void pressChordButton(int generation) {
|
||||
private synchronized void pressQamA(int generation) {
|
||||
if (generation != qamChordGeneration || !qamChordActive) return;
|
||||
chordButtonPressed = true;
|
||||
qamSyntheticAPressed = true;
|
||||
publish();
|
||||
chordHandler.postDelayed(() -> releaseChordButton(generation), QAM_A_HOLD_MS);
|
||||
chordHandler.postDelayed(() -> releaseQamA(generation), QAM_A_HOLD_MS);
|
||||
}
|
||||
|
||||
private synchronized void releaseChordButton(int generation) {
|
||||
private synchronized void releaseQamA(int generation) {
|
||||
if (generation != qamChordGeneration || !qamChordActive) return;
|
||||
chordButtonPressed = false;
|
||||
qamSyntheticAPressed = false;
|
||||
publish();
|
||||
chordHandler.postDelayed(() -> releaseQamGuide(generation), QAM_GUIDE_TAIL_MS);
|
||||
}
|
||||
@@ -531,7 +525,7 @@ public final class PadBridge {
|
||||
effectiveState.copyFrom(state);
|
||||
if (guide) effectiveState.press(PadState.GUIDE, true);
|
||||
if (qam) effectiveState.press(PadState.QAM, true);
|
||||
if (chordButtonPressed) effectiveState.press(chordButton, true);
|
||||
if (qamSyntheticAPressed) effectiveState.press(PadState.A, true);
|
||||
writer.writePad(effectiveState);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,55 +0,0 @@
|
||||
package com.droiddeck.launcher.input
|
||||
|
||||
import android.view.MotionEvent
|
||||
import kotlin.math.hypot
|
||||
|
||||
class ThreeFingerTap(private val slopPx: Float) {
|
||||
var active = false
|
||||
private set
|
||||
|
||||
private val starts = HashMap<Int, Pair<Float, Float>>()
|
||||
private var downAt = 0L
|
||||
private var threeAt = 0L
|
||||
private var valid = false
|
||||
|
||||
fun onTouch(event: MotionEvent): Boolean {
|
||||
when (event.actionMasked) {
|
||||
MotionEvent.ACTION_DOWN -> {
|
||||
starts.clear()
|
||||
active = false
|
||||
valid = true
|
||||
downAt = event.eventTime
|
||||
note(event, event.actionIndex)
|
||||
}
|
||||
MotionEvent.ACTION_POINTER_DOWN -> {
|
||||
note(event, event.actionIndex)
|
||||
if (event.pointerCount > 3) valid = false
|
||||
if (event.pointerCount == 3 && !active) {
|
||||
active = true
|
||||
threeAt = event.eventTime
|
||||
if (threeAt - downAt > LAND_MS) valid = false
|
||||
}
|
||||
}
|
||||
MotionEvent.ACTION_MOVE -> for (i in 0 until event.pointerCount) {
|
||||
val start = starts[event.getPointerId(i)] ?: continue
|
||||
if (hypot(event.getX(i) - start.first, event.getY(i) - start.second) > slopPx) valid = false
|
||||
}
|
||||
MotionEvent.ACTION_UP -> {
|
||||
val fired = active && valid && event.eventTime - threeAt < TAP_MS
|
||||
active = false
|
||||
return fired
|
||||
}
|
||||
MotionEvent.ACTION_CANCEL -> active = false
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
private fun note(event: MotionEvent, index: Int) {
|
||||
starts[event.getPointerId(index)] = event.getX(index) to event.getY(index)
|
||||
}
|
||||
|
||||
private companion object {
|
||||
const val LAND_MS = 250L
|
||||
const val TAP_MS = 350L
|
||||
}
|
||||
}
|
||||
@@ -230,31 +230,9 @@ public final class LinuxRuntimeInstaller {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The download is named after the release, so a partial file is only ever resumed for the same
|
||||
* version and checksum, never for a different runtime that happens to share a fixed name.
|
||||
*/
|
||||
static String archiveName(Release release) {
|
||||
String version = release.version.replaceAll("[^A-Za-z0-9._-]", "_");
|
||||
String sum = release.sha256.replaceAll("[^A-Za-z0-9]", "");
|
||||
if (sum.length() > 12) sum = sum.substring(0, 12);
|
||||
return "linuxfs-" + version + "-" + sum + ".tar.zst";
|
||||
}
|
||||
|
||||
/** Removes archives left by other releases and by builds that used the fixed name. */
|
||||
private static void deleteOtherArchives(File dir, String keep) {
|
||||
File[] files = dir.listFiles((d, name) -> name.startsWith("linuxfs") && name.endsWith(".tar.zst") && !name.equals(keep));
|
||||
if (files == null) return;
|
||||
for (File file : files) file.delete();
|
||||
}
|
||||
|
||||
private static boolean installOnce(Context context, Release release, ProgressListener listener) {
|
||||
File archive = new File(context.getCacheDir(), archiveName(release));
|
||||
// A failed download keeps what it fetched so the next attempt resumes it; anything that
|
||||
// reached verification and failed is not trusted and is removed.
|
||||
boolean keepPartial = false;
|
||||
File archive = new File(context.getCacheDir(), "linuxfs.tar.zst");
|
||||
try {
|
||||
deleteOtherArchives(context.getCacheDir(), archive.getName());
|
||||
File pendingRemoval = removalDirectory(LinuxRuntime.rootDir(context));
|
||||
if (pendingRemoval.exists() && listener != null) listener.onProgress(context.getString(R.string.rtinst_removing_leftovers), -1);
|
||||
if (!discard(pendingRemoval, null)) throw new IOException("Cannot clear the previous runtime: " + pendingRemoval);
|
||||
@@ -269,7 +247,6 @@ public final class LinuxRuntimeInstaller {
|
||||
});
|
||||
if (!ok) {
|
||||
Log.w(TAG, "download failed");
|
||||
keepPartial = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -323,7 +300,7 @@ public final class LinuxRuntimeInstaller {
|
||||
Log.e(TAG, "install", e);
|
||||
return false;
|
||||
} finally {
|
||||
if (!keepPartial) archive.delete();
|
||||
archive.delete();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ object ProtonExtras {
|
||||
val tools = listOf(
|
||||
Tool("ge", "GE-Proton", "GE-Proton", "GloriousEggroll/proton-ge-custom", Regex("aarch64\\.tar\\.(gz|xz)$")),
|
||||
Tool("cachyos", "proton-cachyos", "proton-cachyos", "CachyOS/proton-cachyos", Regex("arm64\\.tar\\.(gz|xz)$")),
|
||||
Tool("droiddeck", "DroidDeck-Proton", "DroidDeck-Proton", "Droid-Deck/DroidDeck-Proton", Regex("aarch64\\.tar\\.(gz|xz)$")),
|
||||
Tool("droiddeck", "DroidDeck-Proton", "DroidDeck-Proton", "The412Banner/DroidDeck-Proton", Regex("aarch64\\.tar\\.(gz|xz)$")),
|
||||
)
|
||||
|
||||
private fun home(context: Context) = File(LinuxRuntime.rootDir(context), "root")
|
||||
|
||||
@@ -24,22 +24,6 @@ object QuestExperimental {
|
||||
fun isSupported(): Boolean = supported(Build.MODEL, Build.DEVICE, Build.MANUFACTURER)
|
||||
fun isQuest2(): Boolean = quest2(Build.MODEL, Build.DEVICE, Build.MANUFACTURER)
|
||||
|
||||
fun defaultAndroidDriver(): String? = when {
|
||||
!isSupported() -> null
|
||||
isQuest2() -> DRIVER_A6XX
|
||||
else -> DRIVER
|
||||
}
|
||||
|
||||
fun applyAutoDrivers(context: Context): Boolean {
|
||||
if (SessionPrefs.gpuDriverMode(context) != SessionPrefs.GPU_DRIVERS_AUTO) return false
|
||||
val driver = defaultAndroidDriver() ?: return false
|
||||
context.getSharedPreferences("session", Context.MODE_PRIVATE).edit()
|
||||
.putString("androidDriver", driver)
|
||||
.putString("linuxDriver", "")
|
||||
.apply()
|
||||
return true
|
||||
}
|
||||
|
||||
fun initialize(context: Context) {
|
||||
if (!isSupported()) return
|
||||
val prefs = context.getSharedPreferences("session", Context.MODE_PRIVATE)
|
||||
|
||||
@@ -71,8 +71,6 @@ object SessionFiles {
|
||||
"usr/local/bin/droiddeck-steam-games" to "usr/local/bin/droiddeck-steam-games",
|
||||
"usr/local/bin/droiddeck-pad-defaults" to "usr/local/bin/droiddeck-pad-defaults",
|
||||
"usr/local/bin/droiddeck-steamvr" to "usr/local/bin/droiddeck-steamvr",
|
||||
"usr/local/bin/droiddeck-steamvr-settings" to "usr/local/bin/droiddeck-steamvr-settings",
|
||||
"usr/local/bin/droiddeck-steamvr-game" to "usr/local/bin/droiddeck-steamvr-game",
|
||||
"usr/local/bin/droiddeck-bwrap" to "usr/local/bin/droiddeck-bwrap",
|
||||
"usr/local/bin/droiddeck-flatpak" to "usr/local/bin/droiddeck-flatpak",
|
||||
"usr/local/bin/droiddeck-flatpak-setup" to "usr/local/bin/droiddeck-flatpak-setup",
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.util.Locale
|
||||
object SessionPaths {
|
||||
private const val TAG = "SessionPaths"
|
||||
|
||||
const val KEEP_SESSIONS = 3
|
||||
const val KEEP_SESSIONS = 30
|
||||
|
||||
const val TOOLS_DIR = "tools"
|
||||
|
||||
|
||||
@@ -104,23 +104,6 @@ object SessionPrefs {
|
||||
prefs(context).edit().putBoolean("storesShowMature", show).apply()
|
||||
}
|
||||
|
||||
fun storesSort(context: Context): String =
|
||||
prefs(context).getString("storesSort", null)?.takeIf { it in STORES_SORTS } ?: STORES_SORTS.first()
|
||||
|
||||
fun setStoresSort(context: Context, sort: String) {
|
||||
prefs(context).edit().putString("storesSort", if (sort in STORES_SORTS) sort else STORES_SORTS.first()).apply()
|
||||
}
|
||||
|
||||
fun storesView(context: Context): String =
|
||||
prefs(context).getString("storesView", null)?.takeIf { it in STORES_VIEWS } ?: STORES_VIEWS.first()
|
||||
|
||||
fun setStoresView(context: Context, view: String) {
|
||||
prefs(context).edit().putString("storesView", if (view in STORES_VIEWS) view else STORES_VIEWS.first()).apply()
|
||||
}
|
||||
|
||||
val STORES_SORTS = listOf("lastPlayed", "recentlyInstalled", "titleAsc", "titleDesc", "sizeDesc", "sizeAsc", "releaseDateDesc")
|
||||
val STORES_VIEWS = listOf("cards", "list")
|
||||
|
||||
const val STORES_OPEN_LIBRARY = "library"
|
||||
const val STORES_OPEN_STORE = "store"
|
||||
|
||||
@@ -147,18 +130,6 @@ object SessionPrefs {
|
||||
private fun mangoappSession(context: Context) =
|
||||
SessionState.mode == SessionService.MODE_STEAM && mangoapp(context)
|
||||
|
||||
fun lowLatencyController(context: Context): Boolean = prefs(context).getBoolean("lowLatencyController", false)
|
||||
|
||||
fun setLowLatencyController(context: Context, on: Boolean) {
|
||||
prefs(context).edit().putBoolean("lowLatencyController", on).apply()
|
||||
}
|
||||
|
||||
fun lowLatencyTouch(context: Context): Boolean = prefs(context).getBoolean("lowLatencyTouch", false)
|
||||
|
||||
fun setLowLatencyTouch(context: Context, on: Boolean) {
|
||||
prefs(context).edit().putBoolean("lowLatencyTouch", on).apply()
|
||||
}
|
||||
|
||||
fun backActionsInverted(context: Context): Boolean = prefs(context).getBoolean("backActionsInverted", false)
|
||||
|
||||
fun setBackActionsInverted(context: Context, inverted: Boolean) {
|
||||
@@ -224,15 +195,6 @@ object SessionPrefs {
|
||||
}
|
||||
|
||||
|
||||
fun picturePosition(context: Context): String =
|
||||
prefs(context).getString("picturePosition", "center")
|
||||
?.takeIf { it in listOf("top", "bottom", "center") } ?: "center"
|
||||
|
||||
fun setPicturePosition(context: Context, position: String) {
|
||||
prefs(context).edit().putString("picturePosition",
|
||||
position.takeIf { it in listOf("top", "bottom", "center") } ?: "center").apply()
|
||||
}
|
||||
|
||||
fun stretch16x9(context: Context): Boolean = prefs(context).getBoolean("stretch16x9", false)
|
||||
|
||||
fun setStretch16x9(context: Context, on: Boolean) {
|
||||
|
||||
@@ -624,7 +624,6 @@ class SessionService : Service() {
|
||||
SessionState.deckPad = deckBinds.isNotEmpty()
|
||||
if (wantsDeck && !SessionState.deckPad) Log.w(TAG, "deck pad: not available this session; the pad stays an Xbox 360 controller")
|
||||
logControllersAtStart()
|
||||
com.droiddeck.launcher.input.FakeInputWriter.setLowLatency(SessionPrefs.lowLatencyController(this), SessionPrefs.lowLatencyTouch(this))
|
||||
if (uinput) {
|
||||
guest.add("FAKE_EVDEV_UINPUT=1")
|
||||
if (SessionState.deckPad) {
|
||||
|
||||
@@ -13,7 +13,7 @@ object SettingsReset {
|
||||
"orientation", "launcherFullscreen", "animations", "theme", "runSteamAtStartup", "addedGamesArt",
|
||||
"gameStoresEnabled", "gameStoresSpeedTier", "gameStoresParallel", "storesOpenTab", "storesShowMature",
|
||||
"hud", "hudDeck", "backActionsInverted", "touch", "osc", "shape", "steamController",
|
||||
"gamepadLeft", "gamepadRight", "pipAutoEnter", "unfoldedControls", "stretch16x9", "picturePosition",
|
||||
"gamepadLeft", "gamepadRight", "pipAutoEnter", "unfoldedControls", "stretch16x9",
|
||||
"gpuDriverMode", "androidDriver", "linuxDriver", "linuxDriver.steam", "linuxDriver.desktop",
|
||||
"tuSysmem", "glThread", "noGlError", "zinkLazy", "mangoapp", "gpuClockPin", "gamescopeRealtime",
|
||||
"directAudio", "mic", "wifiDiscovery", "clientCpusOverride", "clientCpus", "gameCpus",
|
||||
|
||||
@@ -53,35 +53,6 @@ fun installedCards(store: Store, installed: List<InstalledStoreGame>, library: L
|
||||
}.distinctBy { it.id }.sortedBy { it.title.lowercase() }
|
||||
}
|
||||
|
||||
private fun releaseDateValue(item: CatalogItem): Long =
|
||||
item.releaseDate.take(10).takeIf { it.length == 10 }?.let { raw ->
|
||||
runCatching { java.time.LocalDate.parse(raw).toEpochDay() }.getOrDefault(0L)
|
||||
} ?: 0L
|
||||
|
||||
fun sortCatalogItems(
|
||||
items: List<CatalogItem>,
|
||||
sort: String,
|
||||
lastPlayed: (CatalogItem) -> Long = { 0L },
|
||||
installedAt: (CatalogItem) -> Long = { 0L },
|
||||
size: (CatalogItem) -> Long = { it.sizeBytes },
|
||||
): List<CatalogItem> = when (sort) {
|
||||
"lastPlayed" -> items.sortedWith(compareByDescending(lastPlayed).thenBy { it.title.lowercase() })
|
||||
"recentlyInstalled" -> items.sortedWith(compareByDescending(installedAt).thenBy { it.title.lowercase() })
|
||||
"titleAsc" -> items.sortedBy { it.title.lowercase() }
|
||||
"titleDesc" -> items.sortedByDescending { it.title.lowercase() }
|
||||
"sizeDesc" -> items.sortedWith(compareByDescending(size).thenBy { it.title.lowercase() })
|
||||
"sizeAsc" -> items.sortedWith(compareBy<CatalogItem> { size(it).takeIf { b -> b > 0 } ?: Long.MAX_VALUE }.thenBy { it.title.lowercase() })
|
||||
"releaseDateDesc" -> items.sortedWith(compareByDescending(::releaseDateValue).thenBy { it.title.lowercase() })
|
||||
else -> items
|
||||
}
|
||||
|
||||
internal fun retainCatalogOrder(items: List<CatalogItem>, previous: List<CatalogItem>): List<CatalogItem> {
|
||||
if (items.size != previous.size) return items
|
||||
val byKey = items.associateBy { it.key }
|
||||
if (previous.any { it.key !in byKey }) return items
|
||||
return previous.map { byKey.getValue(it.key) }
|
||||
}
|
||||
|
||||
fun mergeItems(old: List<CatalogItem>?, new: List<CatalogItem>): List<CatalogItem> {
|
||||
if (old.isNullOrEmpty()) return new
|
||||
val before = old.associateBy { it.key }
|
||||
|
||||
@@ -12,7 +12,6 @@ import com.droiddeck.launcher.stores.epic.EpicCredentialStore
|
||||
import com.droiddeck.launcher.stores.epic.EpicDownloadManager
|
||||
import com.droiddeck.launcher.stores.epic.EpicInstallTags
|
||||
import com.droiddeck.launcher.stores.epic.EpicPrefs
|
||||
import java.util.concurrent.CompletableFuture
|
||||
import java.util.concurrent.ConcurrentHashMap
|
||||
import java.util.concurrent.Executors
|
||||
|
||||
@@ -21,8 +20,7 @@ object StoreSizes {
|
||||
|
||||
val known = mutableStateMapOf<String, Long>()
|
||||
|
||||
private val sizeRequests = ConcurrentHashMap<String, CompletableFuture<Long?>>()
|
||||
private val diskRequests = ConcurrentHashMap<String, CompletableFuture<Long?>>()
|
||||
private val asked = ConcurrentHashMap.newKeySet<String>()
|
||||
private val pool = Executors.newFixedThreadPool(3, com.droiddeck.launcher.stores.download.DownloadQueue.workerFactory("sizes"))
|
||||
|
||||
fun size(item: CatalogItem): Long = known[item.key] ?: item.sizeBytes
|
||||
@@ -31,35 +29,22 @@ object StoreSizes {
|
||||
private fun cache(context: Context, store: Store) = caches.getOrPut(store) { SizeCache.forStore(context.applicationContext.filesDir, store) }
|
||||
|
||||
fun request(context: Context, item: CatalogItem) {
|
||||
if (!item.owned || item.sizeBytes > 0 || item.store == Store.GOG || known.containsKey(item.key)) return
|
||||
resolve(context, item).thenAccept { bytes ->
|
||||
if (bytes != null) StoresState.post { known[item.key] = bytes }
|
||||
}
|
||||
}
|
||||
|
||||
fun resolve(context: Context, item: CatalogItem): CompletableFuture<Long?> {
|
||||
val available = known[item.key] ?: item.sizeBytes.takeIf { it > 0 }
|
||||
if (!item.owned || item.store == Store.GOG || item.sizeBytes > 0) return CompletableFuture.completedFuture(available)
|
||||
if (available != null) return CompletableFuture.completedFuture(available)
|
||||
if (!item.owned || item.sizeBytes > 0 || item.store == Store.GOG) return
|
||||
if (known.containsKey(item.key) || !asked.add(item.key)) return
|
||||
val app = context.applicationContext
|
||||
val version = item.extra["version"].orEmpty()
|
||||
return sizeRequests.computeIfAbsent(item.key) {
|
||||
CompletableFuture.supplyAsync({
|
||||
val cached = cache(app, item.store).get(item.id, version)
|
||||
val bytes = cached ?: runCatching { fetch(app, item) }
|
||||
.onFailure { Log.w(TAG, "${item.key}: ${it.javaClass.simpleName}") }
|
||||
.getOrNull()
|
||||
bytes?.takeIf { it > 0 }?.also {
|
||||
cache(app, item.store).put(item.id, version, it)
|
||||
when (item.store) {
|
||||
Store.EPIC -> EpicPrefs.get(app).edit().putLong("size_${item.id}", it).apply()
|
||||
Store.AMAZON -> AmazonPrefs.get(app).edit().putLong("size_${item.id}", it).apply()
|
||||
Store.GOG -> {}
|
||||
}
|
||||
pool.execute {
|
||||
val cached = cache(app, item.store).get(item.id, version)
|
||||
if (cached != null) { StoresState.post { known[item.key] = cached }; return@execute }
|
||||
val bytes = runCatching { fetch(app, item) }.onFailure { Log.w(TAG, "${item.key}: ${it.javaClass.simpleName}") }.getOrNull() ?: 0L
|
||||
if (bytes > 0) {
|
||||
cache(app, item.store).put(item.id, version, bytes)
|
||||
when (item.store) {
|
||||
Store.EPIC -> EpicPrefs.get(app).edit().putLong("size_${item.id}", bytes).apply()
|
||||
Store.AMAZON -> AmazonPrefs.get(app).edit().putLong("size_${item.id}", bytes).apply()
|
||||
Store.GOG -> {}
|
||||
}
|
||||
}, pool).exceptionally { error ->
|
||||
Log.w(TAG, "${item.key}: size resolution failed", error)
|
||||
null
|
||||
StoresState.post { known[item.key] = bytes }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -67,25 +52,14 @@ object StoreSizes {
|
||||
val onDisk = mutableStateMapOf<String, Long>()
|
||||
|
||||
fun requestDisk(context: Context, key: String, game: InstalledStoreGame) {
|
||||
resolveDisk(context, key, game).thenAccept { bytes ->
|
||||
if (bytes != null) StoresState.post { onDisk[key] = bytes }
|
||||
}
|
||||
}
|
||||
|
||||
fun resolveDisk(context: Context, key: String, game: InstalledStoreGame): CompletableFuture<Long?> {
|
||||
onDisk[key]?.let { return CompletableFuture.completedFuture(it) }
|
||||
if (onDisk.containsKey(key) || !asked.add("disk:$key")) return
|
||||
val app = context.applicationContext
|
||||
val version = "disk:${game.sidecar.installedAt}:${game.sidecar.installVersion}"
|
||||
return diskRequests.computeIfAbsent(key) {
|
||||
CompletableFuture.supplyAsync({
|
||||
val c = cache(app, game.sidecar.store)
|
||||
c.get("disk:${game.sidecar.id}", version)
|
||||
?: game.folder.walkTopDown().filter { it.isFile && !it.name.startsWith(".droiddeck") }
|
||||
.sumOf { it.length() }.also { c.put("disk:${game.sidecar.id}", version, it) }
|
||||
}, pool).thenApply { it.takeIf { bytes -> bytes > 0 } }.exceptionally { error ->
|
||||
Log.w(TAG, "$key: disk size resolution failed", error)
|
||||
null
|
||||
}
|
||||
pool.execute {
|
||||
val c = cache(app, game.sidecar.store)
|
||||
val bytes = c.get("disk:${game.sidecar.id}", version)
|
||||
?: game.folder.walkTopDown().filter { it.isFile && !it.name.startsWith(".droiddeck") }.sumOf { it.length() }.also { c.put("disk:${game.sidecar.id}", version, it) }
|
||||
if (bytes > 0) StoresState.post { onDisk[key] = bytes }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -233,10 +233,7 @@ object StoresState {
|
||||
val overlay = java.io.File(com.droiddeck.launcher.runtime.LinuxRuntime.rootDir(context), "root/.local/share/droiddeck/epic-overlay")
|
||||
if (overlay.exists()) Thread({ overlay.deleteRecursively(); Log.i(TAG, "removed the old EOS overlay download") }, "epic-overlay-cleanup").start()
|
||||
val app = context.applicationContext
|
||||
Thread({
|
||||
runCatching { CloudSaves.uploadAllDirty(app, "recovery") }
|
||||
.onFailure { Log.w(TAG, "cloud save recovery failed", it) }
|
||||
}, "cloud-recovery").start()
|
||||
Thread({ CloudSaves.uploadAllDirty(app, "recovery") }, "cloud-recovery").start()
|
||||
}
|
||||
|
||||
internal fun post(block: () -> Unit) = main.post(block)
|
||||
|
||||
@@ -22,7 +22,6 @@ import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.filled.Close
|
||||
import androidx.compose.material.icons.automirrored.filled.ArrowBack
|
||||
import androidx.compose.material.icons.outlined.Image
|
||||
import androidx.compose.material.icons.outlined.Search
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
@@ -57,7 +56,6 @@ import com.droiddeck.launcher.R
|
||||
import com.droiddeck.launcher.frontend.AddedGameArt
|
||||
import com.droiddeck.launcher.frontend.AddedGameEdits
|
||||
import com.droiddeck.launcher.frontend.AddedGames
|
||||
import com.droiddeck.launcher.frontend.SteamGridDb
|
||||
import com.droiddeck.launcher.session.SessionPrefs
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.launch
|
||||
@@ -358,15 +356,9 @@ private fun ArtChooserDialog(
|
||||
val shown = rememberShown(onBack)
|
||||
val back = { shown.targetState = false }
|
||||
var options by remember { mutableStateOf<List<AddedGameArt.Option>?>(null) }
|
||||
var sgdb by remember { mutableStateOf(SteamGridDb.Status.OK) }
|
||||
var picking by remember { mutableStateOf(false) }
|
||||
var searching by remember { mutableStateOf(false) }
|
||||
val chosenRef = remember(current) { AddedGameArt.chosenSource(app, game, slot).second }
|
||||
LaunchedEffect(slot) {
|
||||
val found = withContext(Dispatchers.IO) { runCatching { AddedGameArt.choices(app, game, slot) }.getOrNull() }
|
||||
options = found?.options ?: emptyList()
|
||||
sgdb = found?.sgdb ?: SteamGridDb.Status.SERVER
|
||||
}
|
||||
LaunchedEffect(slot) { options = withContext(Dispatchers.IO) { runCatching { AddedGameArt.options(app, game, slot) }.getOrDefault(emptyList()) } }
|
||||
val first = remember { FocusRequester() }
|
||||
LaunchedEffect(Unit) { focusWithinFrames({ false }) { first } }
|
||||
val apply: (AddedGameArt.Option) -> Unit = { option ->
|
||||
@@ -402,9 +394,7 @@ private fun ArtChooserDialog(
|
||||
}
|
||||
}
|
||||
}
|
||||
if (sgdb != SteamGridDb.Status.OK) SgdbNote(sgdb)
|
||||
}
|
||||
PickerRow(Icons.Outlined.Search, stringResource(R.string.art_search_sgdb), null) { searching = true }
|
||||
PickerRow(Icons.Outlined.Image, stringResource(R.string.art_pick_image), null, focus = if (opts?.isEmpty() != false) first else null) { picking = true }
|
||||
PickerRow(null, stringResource(R.string.art_reset), null) {
|
||||
scope.launch {
|
||||
@@ -418,136 +408,6 @@ private fun ArtChooserDialog(
|
||||
if (picking) ExePickerDialog(stringResource(R.string.art_pick_title, slotName), kind = PickKind.IMAGE, onDismiss = { picking = false }, onPick = { file ->
|
||||
apply(AddedGameArt.Option(AddedGameArt.FILE, file.path, file.path))
|
||||
})
|
||||
if (searching) SgdbSearchDialog(
|
||||
game, slot, current,
|
||||
onBack = { searching = false }, onCloseAll = { searching = false; onCloseAll() }, onPick = apply,
|
||||
)
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun SgdbNote(status: SteamGridDb.Status) {
|
||||
val colors = MaterialTheme.colorScheme
|
||||
val quiet = status == SteamGridDb.Status.NO_KEY || status == SteamGridDb.Status.NO_GAME
|
||||
Text(
|
||||
stringResource(
|
||||
when (status) {
|
||||
SteamGridDb.Status.NO_KEY -> R.string.art_sgdb_no_key
|
||||
SteamGridDb.Status.BAD_KEY -> R.string.art_sgdb_bad_key
|
||||
SteamGridDb.Status.LIMIT -> R.string.art_sgdb_limit
|
||||
SteamGridDb.Status.OFFLINE -> R.string.art_sgdb_offline
|
||||
SteamGridDb.Status.NO_GAME -> R.string.art_sgdb_no_game
|
||||
else -> R.string.art_sgdb_server
|
||||
},
|
||||
),
|
||||
fontSize = 12.sp, color = if (quiet) colors.onSurfaceVariant else colors.error, modifier = Modifier.padding(start = 2.dp, top = 4.dp),
|
||||
)
|
||||
}
|
||||
|
||||
@OptIn(ExperimentalLayoutApi::class)
|
||||
@Composable
|
||||
private fun SgdbSearchDialog(
|
||||
game: AddedGames.Game, slot: AddedGameArt.Slot, current: AddedGameArt.SlotState?,
|
||||
onBack: () -> Unit, onCloseAll: () -> Unit, onPick: (AddedGameArt.Option) -> Unit,
|
||||
) {
|
||||
val app = LocalContext.current.applicationContext
|
||||
val colors = MaterialTheme.colorScheme
|
||||
val scope = rememberCoroutineScope()
|
||||
val shown = rememberShown(onBack)
|
||||
val back = { shown.targetState = false }
|
||||
var query by remember { mutableStateOf(game.name) }
|
||||
var matches by remember { mutableStateOf<List<SteamGridDb.Game>?>(null) }
|
||||
var picked by remember { mutableStateOf<SteamGridDb.Game?>(null) }
|
||||
var images by remember { mutableStateOf<List<AddedGameArt.Option>>(emptyList()) }
|
||||
var page by remember { mutableIntStateOf(0) }
|
||||
var more by remember { mutableStateOf(false) }
|
||||
var busy by remember { mutableStateOf(true) }
|
||||
var status by remember { mutableStateOf(SteamGridDb.Status.OK) }
|
||||
val chosenRef = remember(current) { AddedGameArt.chosenSource(app, game, slot).second }
|
||||
val slotName = slot.label()
|
||||
val showImages: (SteamGridDb.Game) -> Unit = { found ->
|
||||
scope.launch {
|
||||
picked = found
|
||||
images = emptyList()
|
||||
page = 0
|
||||
more = false
|
||||
busy = true
|
||||
status = SteamGridDb.Status.OK
|
||||
val result = withContext(Dispatchers.IO) { AddedGameArt.gameImages(app, found.id, slot, 0) }
|
||||
images = result.items
|
||||
status = result.status
|
||||
more = result.items.isNotEmpty()
|
||||
busy = false
|
||||
}
|
||||
}
|
||||
val search: () -> Unit = {
|
||||
scope.launch {
|
||||
busy = true
|
||||
picked = null
|
||||
status = SteamGridDb.Status.OK
|
||||
val result = withContext(Dispatchers.IO) { AddedGameArt.searchGames(app, query) }
|
||||
matches = result.items
|
||||
status = result.status
|
||||
busy = false
|
||||
val sure = result.items.firstOrNull { AddedGameArt.nameMatch(query, it.name) == 3 } ?: result.items.singleOrNull()
|
||||
if (sure != null) showImages(sure)
|
||||
}
|
||||
}
|
||||
val loadMore: () -> Unit = {
|
||||
val found = picked
|
||||
if (found != null && !busy) scope.launch {
|
||||
busy = true
|
||||
val result = withContext(Dispatchers.IO) { AddedGameArt.gameImages(app, found.id, slot, page + 1) }
|
||||
val fresh = result.items.filter { next -> images.none { it.full == next.full } }
|
||||
images = images + fresh
|
||||
page += 1
|
||||
more = fresh.isNotEmpty()
|
||||
if (result.status != SteamGridDb.Status.OK) status = result.status
|
||||
busy = false
|
||||
}
|
||||
}
|
||||
LaunchedEffect(Unit) { search() }
|
||||
AppDialog(shown, back, "sgdbSearch", wide = false, maxWidth = 460.dp) {
|
||||
DialogTitleRow(stringResource(R.string.art_sgdb_title, slotName), onClose = { onCloseAll() }, leading = {
|
||||
SmallIconButton(Icons.AutoMirrored.Filled.ArrowBack, stringResource(R.string.common_back), colors.onBackground, onClick = back)
|
||||
})
|
||||
androidx.compose.material3.OutlinedTextField(
|
||||
query, { query = it }, singleLine = true, modifier = Modifier.fillMaxWidth(),
|
||||
label = { Text(stringResource(R.string.art_sgdb_search_label)) },
|
||||
keyboardActions = androidx.compose.foundation.text.KeyboardActions(onSearch = { search() }),
|
||||
keyboardOptions = androidx.compose.foundation.text.KeyboardOptions(imeAction = androidx.compose.ui.text.input.ImeAction.Search),
|
||||
)
|
||||
val maxHeight = (LocalConfiguration.current.screenHeightDp * 0.6f).dp
|
||||
Column(
|
||||
verticalArrangement = Arrangement.spacedBy(8.dp),
|
||||
modifier = Modifier.fillMaxWidth().heightIn(max = maxHeight).verticalScroll(rememberScrollState()),
|
||||
) {
|
||||
if (status != SteamGridDb.Status.OK) SgdbNote(status)
|
||||
val chosenGame = picked
|
||||
val list = matches.orEmpty()
|
||||
if (chosenGame == null) {
|
||||
for (match in list) key(match.id) { PickerRow(null, match.name, null) { showImages(match) } }
|
||||
if (matches != null && list.isEmpty() && !busy && status == SteamGridDb.Status.OK) {
|
||||
Text(stringResource(R.string.art_sgdb_none), fontSize = 12.sp, color = colors.onSurfaceVariant, modifier = Modifier.padding(start = 2.dp, top = 4.dp))
|
||||
}
|
||||
} else {
|
||||
Text(chosenGame.name, fontSize = 12.sp, color = colors.onSurfaceVariant, modifier = Modifier.padding(start = 2.dp, top = 4.dp))
|
||||
FlowRow(horizontalArrangement = Arrangement.spacedBy(8.dp), verticalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||
for (option in images) key(option.full) {
|
||||
ArtOption(
|
||||
slot, option, selected = current?.chosen == true && option.full == chosenRef, focus = null,
|
||||
description = "${artSourceLabel(AddedGameArt.SGDB)} $slotName",
|
||||
) { onPick(option) }
|
||||
}
|
||||
}
|
||||
if (images.isEmpty() && !busy && status == SteamGridDb.Status.OK) {
|
||||
Text(stringResource(R.string.art_sgdb_none), fontSize = 12.sp, color = colors.onSurfaceVariant, modifier = Modifier.padding(start = 2.dp, top = 4.dp))
|
||||
}
|
||||
if (more && !busy) PickerRow(null, stringResource(R.string.art_sgdb_more), null) { loadMore() }
|
||||
if (list.size > 1) PickerRow(null, stringResource(R.string.art_sgdb_other_games), null) { picked = null }
|
||||
}
|
||||
if (busy) androidx.compose.material3.LinearProgressIndicator(Modifier.fillMaxWidth().padding(vertical = 8.dp))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
|
||||
@@ -139,8 +139,6 @@ class FrontEndState(
|
||||
val addedGamesArt: Boolean = true,
|
||||
val sgdbUserKey: Boolean = false,
|
||||
val storesShowMature: Boolean = false,
|
||||
val storesSort: String = SessionPrefs.STORES_SORTS.first(),
|
||||
val storesView: String = SessionPrefs.STORES_VIEWS.first(),
|
||||
val storeDownloadsActive: Int = 0,
|
||||
val updates: UpdatesState = UpdatesState(),
|
||||
)
|
||||
@@ -201,8 +199,6 @@ class FrontEndActions(
|
||||
val onStoresOpenTab: (String) -> Unit = {},
|
||||
val onNavigated: () -> Unit = {},
|
||||
val onStoresShowMature: (Boolean) -> Unit = {},
|
||||
val onStoresSort: (String) -> Unit = {},
|
||||
val onStoresView: (String) -> Unit = {},
|
||||
val onLibraryChanged: () -> Unit = {},
|
||||
val onHomeApp: () -> Unit = {},
|
||||
val onHomeScreen: (Boolean) -> Unit = {},
|
||||
|
||||
@@ -77,7 +77,6 @@ class ModeSettings(
|
||||
val fexPreset: String? = null,
|
||||
val forceSsbs: Boolean = false,
|
||||
val syncBackend: String? = null,
|
||||
val picturePosition: String? = null,
|
||||
val stretch16x9: Boolean? = null,
|
||||
val steamRepairQueued: Boolean = false,
|
||||
val mangoapp: Boolean = true,
|
||||
@@ -121,7 +120,6 @@ class ModeSettingsActions(
|
||||
val onFexPreset: (String) -> Unit = {},
|
||||
val onForceSsbs: (Boolean) -> Unit = {},
|
||||
val onSyncBackend: (String) -> Unit = {},
|
||||
val onPicturePosition: (String) -> Unit = {},
|
||||
val onStretch16x9: (Boolean) -> Unit = {},
|
||||
val onSteamRepair: () -> Unit = {},
|
||||
val onMangoapp: (Boolean) -> Unit = {},
|
||||
@@ -169,13 +167,6 @@ fun ModeSheetRows(s: ModeSettings, a: ModeSettingsActions, tab: String, extras:
|
||||
val displaySize = com.droiddeck.launcher.session.SessionDisplay.resolveChoice(s.panelSize, s.resolution)
|
||||
SettingsGroup(stringResource(R.string.display_session)) {
|
||||
ResolutionRow(host, s.resolution, s.panelSize, a.onResolution)
|
||||
s.picturePosition?.let { position ->
|
||||
ChoiceRow(host, "picture-position", stringResource(R.string.display_picture_position), null,
|
||||
listOf("top" to stringResource(R.string.display_position_top),
|
||||
"bottom" to stringResource(R.string.display_position_bottom),
|
||||
"center" to stringResource(R.string.display_position_center)),
|
||||
position, onPick = a.onPicturePosition)
|
||||
}
|
||||
if (s.stretch16x9 != null && (com.droiddeck.launcher.session.SessionDisplay.canStretch16x9(s.panelSize) ||
|
||||
com.droiddeck.launcher.session.SessionDisplay.canStretch16x9(displaySize))) {
|
||||
val canStretch = com.droiddeck.launcher.session.SessionDisplay.canStretch16x9(displaySize)
|
||||
|
||||
@@ -5,8 +5,6 @@ internal enum class SessionDrawerPage(val firstControl: String) {
|
||||
SECOND_SCREEN("second-screen:none"),
|
||||
DISPLAY("hud"),
|
||||
EFFECTS("look"),
|
||||
STEAMVR("steamvr"),
|
||||
CARDBOARD("cardboard"),
|
||||
GAMES("anisotropy"),
|
||||
SESSION("suspend"),
|
||||
}
|
||||
|
||||
@@ -42,8 +42,6 @@ import androidx.compose.material.icons.outlined.PictureInPictureAlt
|
||||
import androidx.compose.material.icons.automirrored.outlined.ExitToApp
|
||||
import androidx.compose.material.icons.outlined.Settings
|
||||
import androidx.compose.material.icons.outlined.SportsEsports
|
||||
import androidx.compose.material.icons.outlined.ViewInAr
|
||||
import androidx.compose.material.icons.outlined.Vrpano
|
||||
import androidx.compose.material3.Icon
|
||||
import androidx.compose.material3.RadioButton
|
||||
import androidx.compose.material3.RadioButtonDefaults
|
||||
@@ -153,8 +151,6 @@ private val SessionDrawerPage.title: Int get() = when (this) {
|
||||
SessionDrawerPage.CONTROLLER -> R.string.drawer_page_controller
|
||||
SessionDrawerPage.SECOND_SCREEN -> R.string.drawer_second_screen
|
||||
SessionDrawerPage.DISPLAY -> R.string.drawer_page_display
|
||||
SessionDrawerPage.STEAMVR -> R.string.steamvr_title
|
||||
SessionDrawerPage.CARDBOARD -> R.string.cardboard_title
|
||||
SessionDrawerPage.EFFECTS -> R.string.drawer_page_effects
|
||||
SessionDrawerPage.GAMES -> R.string.game_settings_title
|
||||
SessionDrawerPage.SESSION -> R.string.mode_session
|
||||
@@ -164,8 +160,6 @@ private val SessionDrawerPage.icon get() = when (this) {
|
||||
SessionDrawerPage.CONTROLLER -> Icons.Outlined.SportsEsports
|
||||
SessionDrawerPage.SECOND_SCREEN -> Icons.Outlined.ScreenShare
|
||||
SessionDrawerPage.DISPLAY -> Icons.Outlined.DesktopWindows
|
||||
SessionDrawerPage.STEAMVR -> Icons.Outlined.ViewInAr
|
||||
SessionDrawerPage.CARDBOARD -> Icons.Outlined.Vrpano
|
||||
SessionDrawerPage.EFFECTS -> Icons.Outlined.AutoFixHigh
|
||||
SessionDrawerPage.GAMES -> Icons.Outlined.Layers
|
||||
SessionDrawerPage.SESSION -> Icons.Outlined.Settings
|
||||
@@ -215,7 +209,6 @@ class DrawerActions(
|
||||
val cardboard: Cardboard = Cardboard.OFF,
|
||||
val cardboardSensor: Boolean = false,
|
||||
val steamVr: SteamVr.Status? = null,
|
||||
val immersiveSteamVr: Boolean = false,
|
||||
val textureAnisotropy: Int? = 0,
|
||||
val textureLodBias: String? = TextureFiltering.LOD_BIAS_OFF,
|
||||
val secondScreenMode: SecondScreenMode,
|
||||
@@ -240,10 +233,6 @@ class DrawerActions(
|
||||
val onSuspendPolicy: (String) -> Unit,
|
||||
val onSteamDownloadsInBackground: (Boolean) -> Unit = {},
|
||||
val onBackActionsInverted: (Boolean) -> Unit,
|
||||
val lowLatencyController: Boolean = false,
|
||||
val lowLatencyTouch: Boolean = false,
|
||||
val onLowLatencyController: (Boolean) -> Unit = {},
|
||||
val onLowLatencyTouch: (Boolean) -> Unit = {},
|
||||
val onTouch: (String) -> Unit,
|
||||
val onFexPreset: (String) -> Unit,
|
||||
val onUpscaler: (Int) -> Unit = {},
|
||||
@@ -459,13 +448,12 @@ internal fun SessionDrawer(open: Boolean, requestedPage: SessionDrawerPage, cont
|
||||
stringResource(R.string.display_sharpness), null, a.upscaleSharpness, 0..100, step = 5,
|
||||
format = { "$it%" }, modifier = focus.track(page, "upscale-sharpness"), onChange = a.onUpscaleSharpness)
|
||||
}
|
||||
CardboardGroup(host, a) { key -> focus.track(page, key) }
|
||||
}
|
||||
SessionDrawerPage.EFFECTS -> {
|
||||
ScreenEffectsGroup(host, a, advancedEffectsExpanded,
|
||||
onAdvancedToggle = { advancedEffectsExpanded = !advancedEffectsExpanded }) { key -> focus.track(page, key) }
|
||||
}
|
||||
SessionDrawerPage.STEAMVR -> SteamVrGroup(a) { key -> focus.track(page, key) }
|
||||
SessionDrawerPage.CARDBOARD -> CardboardGroup(host, a) { key -> focus.track(page, key) }
|
||||
SessionDrawerPage.CONTROLLER -> {
|
||||
SettingsGroup(stringResource(R.string.drawer_page_controller)) {
|
||||
a.padType?.let { type ->
|
||||
@@ -509,14 +497,6 @@ internal fun SessionDrawer(open: Boolean, requestedPage: SessionDrawerPage, cont
|
||||
stringResource(R.string.unfolded_controls_hint), a.unfoldedControls,
|
||||
chipModifier = focus.track(page, "unfolded-controls"), onChange = a.onUnfoldedControls)
|
||||
}
|
||||
SettingsGroup(stringResource(R.string.drawer_latency)) {
|
||||
ToggleRow(host, "low-latency-controller", stringResource(R.string.drawer_low_latency_controller),
|
||||
stringResource(R.string.drawer_low_latency_controller_hint), a.lowLatencyController,
|
||||
chipModifier = focus.track(page, "low-latency-controller"), onChange = a.onLowLatencyController)
|
||||
ToggleRow(host, "low-latency-touch", stringResource(R.string.drawer_low_latency_touch),
|
||||
stringResource(R.string.drawer_low_latency_touch_hint), a.lowLatencyTouch,
|
||||
chipModifier = focus.track(page, "low-latency-touch"), onChange = a.onLowLatencyTouch)
|
||||
}
|
||||
SettingsGroup(stringResource(R.string.drawer_keyboard)) {
|
||||
Row(horizontalArrangement = Arrangement.spacedBy(8.dp), modifier = Modifier.fillMaxWidth().padding(8.dp)) {
|
||||
DrawerOutlineButton(stringResource(R.string.drawer_pc_keyboard), modifier = Modifier.weight(1f).height(48.dp).then(focus.track(page, "hardware"))) {
|
||||
@@ -923,34 +903,17 @@ private fun CardboardGroup(host: MenuHost, a: DrawerActions, track: (String) ->
|
||||
}
|
||||
if (c.headTracking && a.cardboardSensor)
|
||||
ActionRow(stringResource(R.string.cardboard_recenter), null, stringResource(R.string.cardboard_recenter_button), a.onCardboardRecenter)
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun SteamVrGroup(a: DrawerActions, track: (String) -> Modifier) {
|
||||
SettingsGroup(stringResource(R.string.steamvr_title)) {
|
||||
val vrLabel = stringResource(R.string.cardboard_steamvr)
|
||||
val enterLabel = stringResource(if (a.immersiveSteamVr) R.string.steamvr_enter else R.string.cardboard_steamvr_start)
|
||||
val enterHint = stringResource(if (a.immersiveSteamVr) R.string.steamvr_quest_ready_hint else R.string.cardboard_steamvr_ready_hint)
|
||||
@Composable fun button(label: String, hint: String?, text: String, action: String) {
|
||||
SettingsRow(label, hint) {
|
||||
SecondaryButton(text, modifier = track("steamvr"), onClick = { a.onSteamVr(action) })
|
||||
}
|
||||
}
|
||||
when (a.steamVr) {
|
||||
SteamVr.Status.NOT_INSTALLED -> button(vrLabel, stringResource(R.string.cardboard_steamvr_install_hint),
|
||||
stringResource(R.string.cardboard_steamvr_install), "install")
|
||||
SteamVr.Status.NOT_INSTALLED -> ActionRow(vrLabel, stringResource(R.string.cardboard_steamvr_install_hint),
|
||||
stringResource(R.string.cardboard_steamvr_install), { a.onSteamVr("install") })
|
||||
SteamVr.Status.INSTALLING -> SettingsRow(vrLabel, stringResource(R.string.cardboard_steamvr_installing)) {}
|
||||
SteamVr.Status.READY -> button(vrLabel, enterHint, enterLabel, "start")
|
||||
SteamVr.Status.RUNNING -> {
|
||||
if (a.immersiveSteamVr) button(vrLabel, enterHint, enterLabel, "start")
|
||||
SettingsRow(vrLabel, stringResource(R.string.cardboard_steamvr_running_hint)) {
|
||||
SecondaryButton(stringResource(R.string.cardboard_steamvr_stop),
|
||||
modifier = track(if (a.immersiveSteamVr) "steamvr-stop" else "steamvr"), onClick = { a.onSteamVr("stop") })
|
||||
}
|
||||
}
|
||||
SteamVr.Status.READY -> ActionRow(vrLabel, stringResource(R.string.cardboard_steamvr_ready_hint),
|
||||
stringResource(R.string.cardboard_steamvr_start), { a.onSteamVr("start") })
|
||||
SteamVr.Status.RUNNING -> ActionRow(vrLabel, stringResource(R.string.cardboard_steamvr_running_hint),
|
||||
stringResource(R.string.cardboard_steamvr_stop), { a.onSteamVr("stop") })
|
||||
SteamVr.Status.UNAVAILABLE -> SettingsRow(vrLabel, stringResource(R.string.cardboard_steamvr_unavailable)) {}
|
||||
null -> SettingsRow(vrLabel, stringResource(R.string.steamvr_checking)) {}
|
||||
null -> {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,6 @@ import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.produceState
|
||||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.runtime.setValue
|
||||
import androidx.compose.ui.geometry.Rect
|
||||
@@ -67,8 +66,6 @@ import coil.request.ImageRequest
|
||||
import coil.size.Scale
|
||||
import coil.transform.RoundedCornersTransformation
|
||||
import kotlin.math.roundToInt
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.withContext
|
||||
|
||||
private const val WALL_MIN_GAMES = 4
|
||||
private const val WALL_DISTINCT = 40
|
||||
@@ -80,10 +77,6 @@ internal fun SteamHome(s: FrontEndState, a: FrontEndActions, modifier: Modifier)
|
||||
val ctx = androidx.compose.ui.platform.LocalContext.current
|
||||
LaunchedEffect(Unit) { com.droiddeck.launcher.frontend.SteamFeatured.load(ctx) }
|
||||
val featured = com.droiddeck.launcher.frontend.SteamFeatured.games
|
||||
val signedIn = s.offlineAccount != null
|
||||
val owned by produceState(emptyList<Pair<Int, java.io.File>>(), signedIn) {
|
||||
value = if (!signedIn) emptyList() else withContext(Dispatchers.IO) { runCatching { Library.steamLibraryArt(ctx).shuffled() }.getOrDefault(emptyList()) }
|
||||
}
|
||||
val games = remember(s.steamGames) { s.steamGames.sortedWith(compareByDescending<Library.SteamGame> { it.lastPlayed }.thenBy { it.gameId }) }
|
||||
val narrow = LocalNarrowPane.current
|
||||
var words by remember { mutableStateOf<Rect?>(null) }
|
||||
@@ -113,10 +106,10 @@ internal fun SteamHome(s: FrontEndState, a: FrontEndActions, modifier: Modifier)
|
||||
when {
|
||||
games.isEmpty() -> EmptyLibrary(
|
||||
avoid = words,
|
||||
wall = if (owned.isEmpty() && featured.isEmpty()) null else { { CapsuleWall(emptyList(), owned = owned, featured = featured) } },
|
||||
wall = if (featured.isEmpty()) null else { { CapsuleWall(emptyList(), featured = featured) } },
|
||||
) { Box(Modifier.fillMaxSize().graphicsLayer { scaleX = 1.06f; scaleY = 1.06f }) { WallFade() } }
|
||||
games.size < WALL_MIN_GAMES -> CapsuleFan(games)
|
||||
else -> CapsuleWall(games, owned = owned, featured = featured)
|
||||
else -> CapsuleWall(games, featured = featured)
|
||||
}
|
||||
},
|
||||
scrim = { if (games.size >= WALL_MIN_GAMES) WallFade() },
|
||||
@@ -157,21 +150,18 @@ internal fun CapsuleWall(
|
||||
games: List<Library.SteamGame>,
|
||||
driftMs: Int = if (games.isEmpty()) 75_000 else 40_000,
|
||||
modifier: Modifier = Modifier,
|
||||
owned: List<Pair<Int, java.io.File>> = emptyList(),
|
||||
featured: List<com.droiddeck.launcher.frontend.SteamFeatured.Game> = emptyList(),
|
||||
) {
|
||||
val pal = LocalPalette.current
|
||||
val blank = remember(pal) { WallCapsule(Brush.linearGradient(listOf(pal.surface, pal.background)), edge = pal.line) }
|
||||
val padding = remember(games, owned, featured) {
|
||||
val shown = games.map { it.appId }.toMutableSet()
|
||||
val library = owned.filter { shown.add(it.first) }.map { (id, art) -> id.toString() to art }
|
||||
val store = if (owned.isEmpty()) featured.filter { shown.add(it.appId) }.map { it.name to it.art } else emptyList()
|
||||
(library + store).take((WALL_DISTINCT - games.size).coerceAtLeast(0))
|
||||
val padding = remember(games, featured) {
|
||||
val owned = games.map { it.appId }.toSet()
|
||||
featured.filter { it.appId !in owned }.take((WALL_DISTINCT - games.size).coerceAtLeast(0))
|
||||
}
|
||||
TiltedWall(games.size + padding.size, driftMs, modifier) { i ->
|
||||
when {
|
||||
i < games.size -> WallCapsule(artBrush(hueOf(games[i].name)), games[i].art)
|
||||
i - games.size < padding.size -> padding[i - games.size].let { (seed, art) -> WallCapsule(artBrush(hueOf(seed)), art) }
|
||||
i - games.size < padding.size -> padding[i - games.size].let { WallCapsule(artBrush(hueOf(it.name)), it.art) }
|
||||
else -> blank
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,11 +85,6 @@ import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.filled.Check
|
||||
import androidx.compose.material.icons.filled.Search
|
||||
import androidx.compose.material.icons.automirrored.filled.Login
|
||||
import androidx.compose.material.icons.filled.GridView
|
||||
import androidx.compose.material.icons.filled.Sort
|
||||
import androidx.compose.material.icons.filled.ViewList
|
||||
import com.droiddeck.launcher.stores.sortCatalogItems
|
||||
import com.droiddeck.launcher.stores.retainCatalogOrder
|
||||
import androidx.compose.foundation.layout.widthIn
|
||||
import androidx.compose.foundation.basicMarquee
|
||||
import androidx.compose.material.icons.filled.PlayArrow
|
||||
@@ -100,7 +95,6 @@ import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.LaunchedEffect
|
||||
import androidx.compose.runtime.SideEffect
|
||||
import androidx.compose.runtime.State
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.key
|
||||
@@ -138,10 +132,6 @@ import com.droiddeck.launcher.stores.StoresState
|
||||
import com.droiddeck.launcher.stores.download.DownloadStage
|
||||
import com.droiddeck.launcher.stores.download.DownloadState
|
||||
import com.droiddeck.launcher.stores.formatBytes
|
||||
import java.util.concurrent.CompletableFuture
|
||||
import kotlin.coroutines.resume
|
||||
import kotlin.coroutines.resumeWithException
|
||||
import kotlinx.coroutines.suspendCancellableCoroutine
|
||||
|
||||
|
||||
private const val DOWNLOADS = "downloads"
|
||||
@@ -748,72 +738,13 @@ private fun Storefront(
|
||||
val installedOnly = tab == "installed"
|
||||
val loaded = StoresState.library.containsKey(store)
|
||||
val showGrid = tab != "store" || q.isNotEmpty()
|
||||
val sort = s.storesSort
|
||||
val lastPlayedFor = remember(s.steamGames) {
|
||||
val byKey = s.steamGames.associate { "${it.source}:${it.storeId}" to it.lastPlayed }
|
||||
val lookup: (CatalogItem) -> Long = { i -> byKey[i.key] ?: 0L }
|
||||
lookup
|
||||
}
|
||||
val installedAtFor = remember(StoresState.installed) {
|
||||
val byKey = StoresState.installed.associate { "${it.sidecar.store.id}:${it.sidecar.id}" to it.sidecar.installedAt }
|
||||
val lookup: (CatalogItem) -> Long = { i -> byKey[i.key] ?: 0L }
|
||||
lookup
|
||||
}
|
||||
val isSizeSort = (tab == "library" || tab == "installed") && (sort == "sizeAsc" || sort == "sizeDesc")
|
||||
val candidates = remember(library, installedItems, everything, tab, q, s.storesShowMature) {
|
||||
val visible = remember(library, installedItems, everything, tab, q, s.storesShowMature) {
|
||||
when (tab) {
|
||||
"library" -> library.filter(::matches)
|
||||
"installed" -> installedItems.filter(::matches)
|
||||
else -> everything.filter { matches(it) && shown(it) }
|
||||
}
|
||||
}
|
||||
val candidateKeys = remember(candidates) { candidates.map { it.key } }
|
||||
var resolvedSizeSortKey by remember(store, tab) { mutableStateOf<List<String>?>(null) }
|
||||
val sizeSortPending = isSizeSort && resolvedSizeSortKey != candidateKeys
|
||||
var stableVisible by remember(store, tab) { mutableStateOf(emptyList<CatalogItem>()) }
|
||||
val resolvedSizes = when {
|
||||
!isSizeSort -> emptyMap<String, Long>()
|
||||
installedOnly -> com.droiddeck.launcher.stores.StoreSizes.onDisk.toMap()
|
||||
else -> com.droiddeck.launcher.stores.StoreSizes.known.toMap()
|
||||
}
|
||||
val sizeFor = remember(resolvedSizes, installedOnly) {
|
||||
val resolved = resolvedSizes
|
||||
val lookup: (CatalogItem) -> Long = { item ->
|
||||
resolved[item.key] ?: if (installedOnly) 0L else item.sizeBytes
|
||||
}
|
||||
lookup
|
||||
}
|
||||
val sortedVisible = remember(candidates, tab, sort, lastPlayedFor, installedAtFor, sizeFor) {
|
||||
if (tab == "library" || tab == "installed")
|
||||
sortCatalogItems(candidates, sort, lastPlayed = lastPlayedFor, installedAt = installedAtFor, size = sizeFor)
|
||||
else candidates
|
||||
}
|
||||
val visible = remember(sizeSortPending, candidates, stableVisible, sortedVisible) {
|
||||
if (sizeSortPending) retainCatalogOrder(candidates, stableVisible) else sortedVisible
|
||||
}
|
||||
SideEffect {
|
||||
if (!sizeSortPending && stableVisible != sortedVisible) stableVisible = sortedVisible
|
||||
}
|
||||
LaunchedEffect(store, tab, sort, candidates, candidateKeys) {
|
||||
if (!isSizeSort || resolvedSizeSortKey == candidateKeys) return@LaunchedEffect
|
||||
val requests = candidates.map { item ->
|
||||
val future: CompletableFuture<Long?> = if (tab == "installed") {
|
||||
StoresState.installedGame(store, item.id)?.let {
|
||||
com.droiddeck.launcher.stores.StoreSizes.resolveDisk(ctx, item.key, it)
|
||||
} ?: CompletableFuture.completedFuture<Long?>(null)
|
||||
} else {
|
||||
com.droiddeck.launcher.stores.StoreSizes.resolve(ctx, item)
|
||||
}
|
||||
item to future
|
||||
}
|
||||
CompletableFuture.allOf(*requests.map { it.second }.toTypedArray()).await()
|
||||
requests.forEach { (item, future) ->
|
||||
val bytes = future.getNow(null) ?: return@forEach
|
||||
if (tab == "installed") com.droiddeck.launcher.stores.StoreSizes.onDisk[item.key] = bytes
|
||||
else if (item.owned && item.sizeBytes <= 0) com.droiddeck.launcher.stores.StoreSizes.known[item.key] = bytes
|
||||
}
|
||||
resolvedSizeSortKey = candidateKeys
|
||||
}
|
||||
val empty = stringResource(when {
|
||||
installedOnly -> R.string.stores_installed_empty
|
||||
tab == "library" && library.isEmpty() && StoresState.status[store] != null -> R.string.stores_library_loading
|
||||
@@ -824,9 +755,7 @@ private fun Storefront(
|
||||
val density = androidx.compose.ui.platform.LocalDensity.current
|
||||
val focus = LocalFrontFocus.current
|
||||
val scope = rememberCoroutineScope()
|
||||
val headerItems = 1 + (if (sizeSortPending) 1 else 0) +
|
||||
(if (StoresState.status[store] != null) 1 else 0) + (if (StoresState.problems[store] != null) 1 else 0)
|
||||
val listMode = s.storesView == "list" && (tab == "library" || tab == "installed")
|
||||
val headerItems = 1 + (if (StoresState.status[store] != null) 1 else 0) + (if (StoresState.problems[store] != null) 1 else 0)
|
||||
val card: @Composable (CatalogItem) -> Unit = { item ->
|
||||
val first = if (showGrid) item.key == visible.firstOrNull()?.key else !firstPlaced
|
||||
firstPlaced = true
|
||||
@@ -838,7 +767,7 @@ private fun Storefront(
|
||||
else -> 0
|
||||
}
|
||||
val index = visible.indexOfFirst { it.key == item.key }
|
||||
val next = storeGridNeighbor(index, visible.size, if (listMode) 1 else columns, direction)
|
||||
val next = storeGridNeighbor(index, visible.size, columns, direction)
|
||||
when {
|
||||
direction == 0 || index < 0 -> false
|
||||
next == null -> direction > 0
|
||||
@@ -857,13 +786,12 @@ private fun Storefront(
|
||||
}
|
||||
}
|
||||
}
|
||||
if (listMode) GameListRow(item, store, installedKeys, onOpen, first, navigation)
|
||||
else GameCard(item, store, s, a, installedKeys, onOpen, first, navigation)
|
||||
GameCard(item, store, s, a, installedKeys, onOpen, first, navigation)
|
||||
}
|
||||
LazyVerticalGrid(
|
||||
columns = if (listMode) GridCells.Fixed(1) else GridCells.Adaptive(CardWidth), state = grid, modifier = Modifier.fillMaxSize().focusGroup().onSizeChanged {
|
||||
columns = GridCells.Adaptive(CardWidth), state = grid, modifier = Modifier.fillMaxSize().focusGroup().onSizeChanged {
|
||||
val gap = with(density) { 10.dp.roundToPx() }
|
||||
val minimum = with(density) { (if (listMode) CardWidth * 2 else CardWidth).roundToPx() }
|
||||
val minimum = with(density) { CardWidth.roundToPx() }
|
||||
columns = ((it.width + gap) / (minimum + gap)).toInt().coerceAtLeast(1)
|
||||
},
|
||||
horizontalArrangement = Arrangement.spacedBy(10.dp), verticalArrangement = Arrangement.spacedBy(10.dp),
|
||||
@@ -885,25 +813,12 @@ private fun Storefront(
|
||||
else -> stringResource(R.string.stores_search_library)
|
||||
},
|
||||
) {
|
||||
if (tab == "library" || tab == "installed") {
|
||||
SortButton(s, a)
|
||||
ViewButton(s, a)
|
||||
}
|
||||
SmallTextButton(stringResource(R.string.stores_refresh)) { StoresState.open(ctx, store, force = true) }
|
||||
val name = StoresState.accounts[store] ?: ""
|
||||
SignOutButton(store, name)
|
||||
}
|
||||
}
|
||||
}
|
||||
if (sizeSortPending) item(key = "size-sort-progress", span = { GridItemSpan(maxLineSpan) }) {
|
||||
Row(
|
||||
verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(8.dp),
|
||||
modifier = Modifier.fillMaxWidth().padding(bottom = 8.dp),
|
||||
) {
|
||||
androidx.compose.material3.LinearProgressIndicator(Modifier.weight(1f).height(3.dp))
|
||||
Text(stringResource(R.string.store_section_loading), fontSize = 11.sp, color = MaterialTheme.colorScheme.onSurfaceVariant)
|
||||
}
|
||||
}
|
||||
StoresState.status[store]?.let { line -> item(key = "sync", span = { GridItemSpan(maxLineSpan) }) { Rise(3) { SyncBar(line) } } }
|
||||
StoresState.problems[store]?.let { line -> item(key = "problem", span = { GridItemSpan(maxLineSpan) }) { Rise(3) { Box(Modifier.padding(bottom = 8.dp)) { Note(line) } } } }
|
||||
when (tab) {
|
||||
@@ -929,14 +844,6 @@ private fun Storefront(
|
||||
}
|
||||
}
|
||||
|
||||
private suspend fun <T> CompletableFuture<T>.await(): T =
|
||||
suspendCancellableCoroutine { continuation ->
|
||||
whenComplete { value, error ->
|
||||
if (error == null) continuation.resume(value)
|
||||
else continuation.resumeWithException(error)
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
internal fun ModeHeader(title: String, query: String, onQuery: (String) -> Unit, placeholder: String, trailing: @Composable () -> Unit) {
|
||||
val colors = MaterialTheme.colorScheme
|
||||
@@ -1026,126 +933,6 @@ private fun SmallTextButton(text: String, key: String = text, onClick: () -> Uni
|
||||
)
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun HeaderIconButton(description: String, icon: androidx.compose.ui.graphics.vector.ImageVector, key: String, onClick: () -> Unit) {
|
||||
val colors = MaterialTheme.colorScheme
|
||||
val pal = LocalPalette.current
|
||||
val src = remember { MutableInteractionSource() }
|
||||
val hot = rememberHot(src)
|
||||
Box(
|
||||
contentAlignment = Alignment.Center,
|
||||
modifier = Modifier.paneItem("btn:$key").size(32.dp).clip(CircleShape).background(if (hot) pal.signal.copy(alpha = 0.14f) else Color.Transparent)
|
||||
.glideBorder(hot, CircleShape, pal.signal)
|
||||
.hoverable(src).clickable(interactionSource = src, indication = LocalIndication.current, role = Role.Button, onClick = onClick)
|
||||
.controllerConfirm(onClick = onClick),
|
||||
) { Icon(icon, description, tint = if (hot) pal.signal else colors.onSurfaceVariant, modifier = Modifier.size(18.dp)) }
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun SortButton(s: FrontEndState, a: FrontEndActions) {
|
||||
val pal = LocalPalette.current
|
||||
val title = stringResource(R.string.stores_sort)
|
||||
var at by remember { mutableStateOf<Rect?>(null) }
|
||||
Box(Modifier.onGloballyPositioned { at = it.boundsInRoot() }) {
|
||||
HeaderIconButton(title, Icons.Filled.Sort, "sort") {
|
||||
val from = at ?: return@HeaderIconButton
|
||||
StoresMotion.ask(StepAsk(
|
||||
anchor = from, side = StepSide.Left, accent = pal.signal, pillCorner = 8.dp, items = SessionPrefs.STORES_SORTS.size,
|
||||
onDismiss = {},
|
||||
handle = { Text(title, fontSize = 12.sp, fontWeight = FontWeight.SemiBold, color = pal.signal, maxLines = 1, overflow = TextOverflow.Ellipsis) },
|
||||
) {
|
||||
StepTitle(title)
|
||||
StepList {
|
||||
SessionPrefs.STORES_SORTS.forEachIndexed { i, sort ->
|
||||
val label = when (sort) {
|
||||
"lastPlayed" -> stringResource(R.string.stores_sort_last_played)
|
||||
"recentlyInstalled" -> stringResource(R.string.stores_sort_recently_installed)
|
||||
"titleAsc" -> stringResource(R.string.stores_sort_title_asc)
|
||||
"titleDesc" -> stringResource(R.string.stores_sort_title_desc)
|
||||
"sizeDesc" -> stringResource(R.string.stores_sort_size_desc)
|
||||
"sizeAsc" -> stringResource(R.string.stores_sort_size_asc)
|
||||
else -> stringResource(R.string.stores_sort_release_date)
|
||||
}
|
||||
StepChoice(
|
||||
label, selected = sort == s.storesSort, enabled = open,
|
||||
modifier = Modifier.fillMaxWidth().stepItem(i)
|
||||
.then(if (sort == s.storesSort) Modifier.focusRequester(first) else Modifier),
|
||||
) {
|
||||
a.onStoresSort(sort)
|
||||
StoresMotion.fold()
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun ViewButton(s: FrontEndState, a: FrontEndActions) {
|
||||
val list = s.storesView == "list"
|
||||
HeaderIconButton(
|
||||
if (list) stringResource(R.string.stores_view_cards) else stringResource(R.string.stores_view_list),
|
||||
if (list) Icons.Filled.GridView else Icons.Filled.ViewList,
|
||||
"view",
|
||||
) { a.onStoresView(if (list) "cards" else "list") }
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun GameListRow(
|
||||
item: CatalogItem, store: Store, installedKeys: Set<String>, onOpen: (String) -> Unit,
|
||||
first: Boolean = false, navigation: Modifier = Modifier,
|
||||
) {
|
||||
val colors = MaterialTheme.colorScheme
|
||||
val pal = LocalPalette.current
|
||||
val src = remember { MutableInteractionSource() }
|
||||
val hot = rememberHot(src)
|
||||
val installed = item.id in installedKeys
|
||||
val download = StoresState.download("${store.id}:${item.id}")?.takeIf { it.isActive }
|
||||
if (installed) {
|
||||
val ctx = LocalContext.current
|
||||
val game = StoresState.installedGame(store, item.id)
|
||||
if (game != null) androidx.compose.runtime.LaunchedEffect(item.key) { com.droiddeck.launcher.stores.StoreSizes.requestDisk(ctx, item.key, game) }
|
||||
}
|
||||
val placed = remember { arrayOfNulls<androidx.compose.ui.layout.LayoutCoordinates>(1) }
|
||||
val corner = with(androidx.compose.ui.platform.LocalDensity.current) { 10.dp.toPx() }
|
||||
val open = {
|
||||
placed[0]?.takeIf { it.isAttached }?.let { StoresMotion.markCard(CardMark(item.key, it.boundsInRoot(), corner, item.imageUrl ?: item.tallImageUrl)) }
|
||||
onOpen(item.key)
|
||||
}
|
||||
val meta = listOfNotNull(
|
||||
item.developer.takeIf { it.isNotBlank() },
|
||||
item.releaseDate.take(4).takeIf { it.length == 4 },
|
||||
when {
|
||||
installed -> {
|
||||
val bytes = com.droiddeck.launcher.stores.StoreSizes.onDisk[item.key]
|
||||
?: com.droiddeck.launcher.stores.StoreSizes.size(item).takeIf { it > 0 } ?: 0L
|
||||
formatBytes(bytes).takeIf { it.isNotEmpty() }
|
||||
}
|
||||
item.isFree -> stringResource(R.string.stores_free)
|
||||
item.isDiscounted -> "-${item.discountPercent}%"
|
||||
item.hasPrice -> item.finalPrice.takeIf { it.isNotBlank() }
|
||||
else -> null
|
||||
},
|
||||
)
|
||||
Row(
|
||||
verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(12.dp),
|
||||
modifier = Modifier.fillMaxWidth().heightIn(min = 64.dp).then(navigation).paneItem("card:${item.key}")
|
||||
.then(if (first) Modifier.firstTile() else Modifier)
|
||||
.clip(RoundedCornerShape(10.dp)).glideBorder(hot, RoundedCornerShape(10.dp), pal.signal, pal.line)
|
||||
.hoverable(src).clickable(interactionSource = src, indication = LocalIndication.current, onClick = open).controllerConfirm(onClick = open)
|
||||
.padding(horizontal = 10.dp, vertical = 8.dp),
|
||||
) {
|
||||
CardArt(item, Modifier.width(96.dp).height(54.dp).clip(RoundedCornerShape(8.dp)))
|
||||
Column(Modifier.weight(1f), verticalArrangement = Arrangement.spacedBy(2.dp)) {
|
||||
Text(item.title, fontSize = 14.sp, fontWeight = FontWeight.Bold, color = colors.onBackground, maxLines = 1, overflow = TextOverflow.Ellipsis)
|
||||
Text(meta.joinToString(" · "), fontSize = 12.sp, color = colors.onSurfaceVariant, maxLines = 1, overflow = TextOverflow.Ellipsis)
|
||||
}
|
||||
if (installed) Icon(Icons.Filled.Check, stringResource(R.string.stores_installed_chip), tint = pal.good, modifier = Modifier.size(16.dp))
|
||||
else if (download != null) Text("${download.percent}%", fontSize = 11.sp, fontWeight = FontWeight.Bold, color = pal.signal, maxLines = 1)
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun SignOutButton(store: Store, name: String) {
|
||||
val ctx = LocalContext.current
|
||||
|
||||
@@ -73,11 +73,11 @@ object CompositorHost {
|
||||
private var attached: Surface? = null
|
||||
|
||||
@Synchronized
|
||||
fun attachXr() {
|
||||
fun attachXr(surface: Surface?) {
|
||||
check(started) { "DroidDeck compositor is not running" }
|
||||
pauseVsync()
|
||||
attached = null
|
||||
WaylandCompositor.nativeSetSurface(null)
|
||||
attached = surface
|
||||
WaylandCompositor.nativeSetSurface(surface)
|
||||
}
|
||||
|
||||
@Synchronized
|
||||
|
||||
@@ -149,6 +149,7 @@ public final class WaylandCompositor {
|
||||
|
||||
public static native void nativeSetSurface(Surface surface);
|
||||
public static native boolean nativeWaitSurface(int timeoutMs);
|
||||
public static native long nativePresentedFrames();
|
||||
|
||||
public static native void nativeSendPointer(int action, int x, int y);
|
||||
|
||||
@@ -198,8 +199,6 @@ public final class WaylandCompositor {
|
||||
|
||||
public static native void nativeSetOutputSize(int width, int height);
|
||||
|
||||
public static native boolean nativeGamePictureRect(float[] out);
|
||||
|
||||
public static native void nativeResizeOutput(int width, int height);
|
||||
|
||||
public static native void nativeResetFirstFrame();
|
||||
|
||||
@@ -917,8 +917,8 @@
|
||||
<string name="wadb_turn_off">إيقاف الحد</string>
|
||||
<string name="wadb_other_ways">طرق أخرى لتغييره</string>
|
||||
<string name="wadb_dev_try_first">1 · خيارات المطوّرين (جرّب هذا أولًا)</string>
|
||||
<string name="wadb_restrict_on">عطِّل «إيقاف القيود المفروضة على العمليات الثانوية».</string>
|
||||
<string name="wadb_restrict_off">فعِّل «إيقاف القيود المفروضة على العمليات الثانوية».</string>
|
||||
<string name="wadb_restrict_on">فعِّل «تقييد العمليات الفرعية».</string>
|
||||
<string name="wadb_restrict_off">عطِّل «تقييد العمليات الفرعية».</string>
|
||||
<string name="wadb_computer_last">3 · ADB من كمبيوتر (كخيار أخير)</string>
|
||||
<string name="wadb_only_if">فقط إذا كان تصحيح الأخطاء اللاسلكي غير متاح.</string>
|
||||
<string name="wadb_computer_group">3 · ADB من كمبيوتر (كخيار أخير)</string>
|
||||
@@ -2003,16 +2003,6 @@
|
||||
<string name="stores_free">مجاني</string>
|
||||
<string name="stores_resume">استئناف</string>
|
||||
<string name="stores_refresh">تحديث</string>
|
||||
<string name="stores_sort">ترتيب</string>
|
||||
<string name="stores_sort_last_played">لُعب مؤخرًا</string>
|
||||
<string name="stores_sort_recently_installed">ثُبت مؤخرًا</string>
|
||||
<string name="stores_sort_title_asc">العنوان أ–ي</string>
|
||||
<string name="stores_sort_title_desc">العنوان ي–أ</string>
|
||||
<string name="stores_sort_size_desc">الحجم: الأكبر</string>
|
||||
<string name="stores_sort_size_asc">الحجم: الأصغر</string>
|
||||
<string name="stores_sort_release_date">تاريخ الإصدار</string>
|
||||
<string name="stores_view_list">عرض القائمة</string>
|
||||
<string name="stores_view_cards">عرض البطاقات</string>
|
||||
<string name="stores_show_mature">إظهار المحتوى للبالغين</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
|
||||
@@ -893,8 +893,8 @@
|
||||
<string name="wadb_turn_off">Изключване на ограничението</string>
|
||||
<string name="wadb_other_ways">Други начини за промяна</string>
|
||||
<string name="wadb_dev_try_first">1 · Опции за програмисти (пробвайте първо)</string>
|
||||
<string name="wadb_restrict_on">Изключете „Деактивиране на ограниченията за дъщерните процеси“.</string>
|
||||
<string name="wadb_restrict_off">Включете „Деактивиране на ограниченията за дъщерните процеси“.</string>
|
||||
<string name="wadb_restrict_on">Включете „Restrict child processes“.</string>
|
||||
<string name="wadb_restrict_off">Изключете „Restrict child processes“.</string>
|
||||
<string name="wadb_computer_last">3 · ADB от компютър (последна възможност)</string>
|
||||
<string name="wadb_only_if">Само ако безжичното отстраняване на грешки не е достъпно.</string>
|
||||
<string name="wadb_computer_group">3 · ADB от компютър (последна възможност)</string>
|
||||
@@ -1919,16 +1919,6 @@
|
||||
<string name="stores_free">Безплатна</string>
|
||||
<string name="stores_resume">Продължи</string>
|
||||
<string name="stores_refresh">Обнови</string>
|
||||
<string name="stores_sort">Сортиране</string>
|
||||
<string name="stores_sort_last_played">Играни наскоро</string>
|
||||
<string name="stores_sort_recently_installed">Инсталирани наскоро</string>
|
||||
<string name="stores_sort_title_asc">Заглавие А–Я</string>
|
||||
<string name="stores_sort_title_desc">Заглавие Я–А</string>
|
||||
<string name="stores_sort_size_desc">Размер: най-голям</string>
|
||||
<string name="stores_sort_size_asc">Размер: най-малък</string>
|
||||
<string name="stores_sort_release_date">Дата на издаване</string>
|
||||
<string name="stores_view_list">Изглед на списък</string>
|
||||
<string name="stores_view_cards">Изглед с карти</string>
|
||||
<string name="stores_show_mature">Показвай съдържание за възрастни</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
|
||||
@@ -905,8 +905,8 @@
|
||||
<string name="wadb_turn_off">Vypnout omezení</string>
|
||||
<string name="wadb_other_ways">Jiné způsoby změny</string>
|
||||
<string name="wadb_dev_try_first">1 · Možnosti pro vývojáře (zkusit nejdřív)</string>
|
||||
<string name="wadb_restrict_on">Vypněte „Deaktivace omezení podřízených procesů“.</string>
|
||||
<string name="wadb_restrict_off">Zapněte „Deaktivace omezení podřízených procesů“.</string>
|
||||
<string name="wadb_restrict_on">Zapněte „Restrict child processes“.</string>
|
||||
<string name="wadb_restrict_off">Vypněte „Restrict child processes“.</string>
|
||||
<string name="wadb_computer_last">3 · ADB z počítače (poslední možnost)</string>
|
||||
<string name="wadb_only_if">Jen pokud Bezdrátové ladění není k dispozici.</string>
|
||||
<string name="wadb_computer_group">3 · ADB z počítače (poslední možnost)</string>
|
||||
@@ -1961,16 +1961,6 @@
|
||||
<string name="stores_free">Zdarma</string>
|
||||
<string name="stores_resume">Pokračovat</string>
|
||||
<string name="stores_refresh">Obnovit</string>
|
||||
<string name="stores_sort">Řazení</string>
|
||||
<string name="stores_sort_last_played">Nedávno hrané</string>
|
||||
<string name="stores_sort_recently_installed">Nedávno nainstalované</string>
|
||||
<string name="stores_sort_title_asc">Název A–Z</string>
|
||||
<string name="stores_sort_title_desc">Název Z–A</string>
|
||||
<string name="stores_sort_size_desc">Velikost: největší</string>
|
||||
<string name="stores_sort_size_asc">Velikost: nejmenší</string>
|
||||
<string name="stores_sort_release_date">Datum vydání</string>
|
||||
<string name="stores_view_list">Zobrazení seznamu</string>
|
||||
<string name="stores_view_cards">Zobrazení karet</string>
|
||||
<string name="stores_show_mature">Zobrazovat obsah pro dospělé</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
|
||||
@@ -893,8 +893,8 @@
|
||||
<string name="wadb_turn_off">Slå grænsen fra</string>
|
||||
<string name="wadb_other_ways">Andre måder at ændre det</string>
|
||||
<string name="wadb_dev_try_first">1 · Udviklerindstillinger (prøv først)</string>
|
||||
<string name="wadb_restrict_on">Slå “Deaktiver begrænsningerne for underprocesser” fra.</string>
|
||||
<string name="wadb_restrict_off">Slå “Deaktiver begrænsningerne for underprocesser” til.</string>
|
||||
<string name="wadb_restrict_on">Slå “Begræns underprocesser” til.</string>
|
||||
<string name="wadb_restrict_off">Slå “Begræns underprocesser” fra.</string>
|
||||
<string name="wadb_computer_last">3 · Computer-ADB (sidste udvej)</string>
|
||||
<string name="wadb_only_if">Kun hvis Trådløs fejlretning ikke er tilgængelig.</string>
|
||||
<string name="wadb_computer_group">3 · Computer-ADB (sidste udvej)</string>
|
||||
@@ -1919,16 +1919,6 @@
|
||||
<string name="stores_free">Gratis</string>
|
||||
<string name="stores_resume">Genoptag</string>
|
||||
<string name="stores_refresh">Opdater</string>
|
||||
<string name="stores_sort">Sortér</string>
|
||||
<string name="stores_sort_last_played">Senest spillet</string>
|
||||
<string name="stores_sort_recently_installed">Senest installeret</string>
|
||||
<string name="stores_sort_title_asc">Titel A–Å</string>
|
||||
<string name="stores_sort_title_desc">Titel Å–A</string>
|
||||
<string name="stores_sort_size_desc">Størrelse: størst</string>
|
||||
<string name="stores_sort_size_asc">Størrelse: mindst</string>
|
||||
<string name="stores_sort_release_date">Udgivelsesdato</string>
|
||||
<string name="stores_view_list">Listevisning</string>
|
||||
<string name="stores_view_cards">Kortvisning</string>
|
||||
<string name="stores_show_mature">Vis indhold for voksne</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
|
||||
@@ -893,8 +893,8 @@
|
||||
<string name="wadb_turn_off">Limit deaktivieren</string>
|
||||
<string name="wadb_other_ways">Andere Wege, es zu ändern</string>
|
||||
<string name="wadb_dev_try_first">1 · Entwickleroptionen (zuerst versuchen)</string>
|
||||
<string name="wadb_restrict_on">Schalte „Beschränkungen für Unterprozesse deaktivieren“ aus.</string>
|
||||
<string name="wadb_restrict_off">Schalte „Beschränkungen für Unterprozesse deaktivieren“ ein.</string>
|
||||
<string name="wadb_restrict_on">Schalte „Untergeordnete Prozesse einschränken“ ein.</string>
|
||||
<string name="wadb_restrict_off">Schalte „Untergeordnete Prozesse einschränken“ aus.</string>
|
||||
<string name="wadb_computer_last">3 · ADB am Computer (letzter Ausweg)</string>
|
||||
<string name="wadb_only_if">Nur wenn „Debugging über WLAN“ nicht verfügbar ist.</string>
|
||||
<string name="wadb_computer_group">3 · ADB am Computer (letzter Ausweg)</string>
|
||||
@@ -1919,16 +1919,6 @@
|
||||
<string name="stores_free">Kostenlos</string>
|
||||
<string name="stores_resume">Fortsetzen</string>
|
||||
<string name="stores_refresh">Aktualisieren</string>
|
||||
<string name="stores_sort">Sortieren</string>
|
||||
<string name="stores_sort_last_played">Zuletzt gespielt</string>
|
||||
<string name="stores_sort_recently_installed">Zuletzt installiert</string>
|
||||
<string name="stores_sort_title_asc">Titel A–Z</string>
|
||||
<string name="stores_sort_title_desc">Titel Z–A</string>
|
||||
<string name="stores_sort_size_desc">Größe: größte</string>
|
||||
<string name="stores_sort_size_asc">Größe: kleinste</string>
|
||||
<string name="stores_sort_release_date">Erscheinungsdatum</string>
|
||||
<string name="stores_view_list">Listenansicht</string>
|
||||
<string name="stores_view_cards">Kartenansicht</string>
|
||||
<string name="stores_show_mature">Inhalte für Erwachsene anzeigen</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
@@ -2242,18 +2232,4 @@
|
||||
<string name="stores_hltb_completionist">Komplettierer</string>
|
||||
<string name="stores_hltb_hours">%1$s Std.</string>
|
||||
<string name="stores_hltb_minutes">%1$d Min.</string>
|
||||
<string name="mode_zram">zRAM-Komprimierung</string>
|
||||
<string name="mode_zram_hint">Während ein Spiel läuft, wird der Arbeitsspeicher des Steam-Clients in das zram des Geräts komprimiert, sodass mehr RAM für das Spiel bleibt. Wird beim nächsten Start von Steam angewendet.</string>
|
||||
<string name="mode_zram_unsupported">Nicht verfügbar: Dieses Gerät hat kein zram oder keinen Swap, oder sein Kernel ist älter als 5.4.</string>
|
||||
<string name="setup_reset_settings">Alle Einstellungen zurücksetzen</string>
|
||||
<string name="setup_reset_settings_title">Alle Einstellungen zurücksetzen?</string>
|
||||
<string name="setup_reset_settings_body">Anzeige-, Leistungs-, Controller-, Design-, Sprach- und Launcher-Einstellungen werden auf ihre Standardwerte zurückgesetzt. Deine Spiele, die Steam-Anmeldung, Shop-Konten, heruntergeladene Treiber und Speicherordner bleiben erhalten.</string>
|
||||
<string name="setup_reset_settings_button">Zurücksetzen</string>
|
||||
<string name="setup_reset_settings_hint">Setzt jede Einstellung auf den Standardwert zurück</string>
|
||||
<string name="setup_reset_settings_partial">Die Einstellungen wurden zurückgesetzt, aber einige Teile konnten nicht zurückgesetzt werden. Details stehen in den Protokollen.</string>
|
||||
<string name="setup_reset_settings_profiles">Auch Spielprofile zurücksetzen (Proton, FEX, Komponenten und Umgebung jedes Spiels sowie die Umgebung des Standardprofils)</string>
|
||||
<string name="setup_reset_settings_session_running">Beende die Sitzung, bevor du die Einstellungen zurücksetzt.</string>
|
||||
<string name="stores_storage_insufficient">Nicht genug freier Speicher: %1$s benötigt, nur %2$s frei</string>
|
||||
<string name="stores_storage_low">Zu wenig Speicher (%1$s frei, %2$s benötigt)</string>
|
||||
<string name="stores_target_free_unknown">Freier Speicher unbekannt</string>
|
||||
</resources>
|
||||
@@ -893,8 +893,8 @@
|
||||
<string name="wadb_turn_off">Απενεργοποίηση ορίου</string>
|
||||
<string name="wadb_other_ways">Άλλοι τρόποι αλλαγής</string>
|
||||
<string name="wadb_dev_try_first">1 · Επιλογές προγραμματιστή (δοκιμάστε πρώτα)</string>
|
||||
<string name="wadb_restrict_on">Απενεργοποιήστε «Απενεργοπ. περιορισμών σε θυγατρικές διεργασίες».</string>
|
||||
<string name="wadb_restrict_off">Ενεργοποιήστε «Απενεργοπ. περιορισμών σε θυγατρικές διεργασίες».</string>
|
||||
<string name="wadb_restrict_on">Ενεργοποιήστε «Περιορισμός θυγατρικών διαδικασιών».</string>
|
||||
<string name="wadb_restrict_off">Απενεργοποιήστε «Περιορισμός θυγατρικών διαδικασιών».</string>
|
||||
<string name="wadb_computer_last">3 · ADB υπολογιστή (τελευταία λύση)</string>
|
||||
<string name="wadb_only_if">Μόνο αν ο Ασύρματος εντοπισμός σφαλμάτων δεν είναι διαθέσιμος.</string>
|
||||
<string name="wadb_computer_group">3 · ADB υπολογιστή (τελευταία λύση)</string>
|
||||
@@ -1919,16 +1919,6 @@
|
||||
<string name="stores_free">Δωρεάν</string>
|
||||
<string name="stores_resume">Συνέχιση</string>
|
||||
<string name="stores_refresh">Ανανέωση</string>
|
||||
<string name="stores_sort">Ταξινόμηση</string>
|
||||
<string name="stores_sort_last_played">Παίχτηκαν πρόσφατα</string>
|
||||
<string name="stores_sort_recently_installed">Εγκαταστήθηκαν πρόσφατα</string>
|
||||
<string name="stores_sort_title_asc">Τίτλος Α–Ω</string>
|
||||
<string name="stores_sort_title_desc">Τίτλος Ω–Α</string>
|
||||
<string name="stores_sort_size_desc">Μέγεθος: μεγαλύτερο</string>
|
||||
<string name="stores_sort_size_asc">Μέγεθος: μικρότερο</string>
|
||||
<string name="stores_sort_release_date">Ημερομηνία κυκλοφορίας</string>
|
||||
<string name="stores_view_list">Προβολή λίστας</string>
|
||||
<string name="stores_view_cards">Προβολή καρτών</string>
|
||||
<string name="stores_show_mature">Εμφάνιση περιεχομένου για ενήλικες</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
|
||||
@@ -306,8 +306,8 @@
|
||||
<string name="mode_sgdb_key">Clave API de SteamGridDB</string>
|
||||
<string name="mode_sgdb_key_yours">Tu clave</string>
|
||||
<string name="mode_sgdb_edit">Editar…</string>
|
||||
<string name="mode_added_art_hint">Completa las imágenes que faltan desde Steam y, después, desde SteamGridDB. Tus propios cover.jpg, hero.jpg, logo.png o icon.png en la carpeta del juego tienen prioridad.</string>
|
||||
<string name="summary_remove_game">Quitar %1$s</string>
|
||||
<string name="mode_added_art_hint">Completa las imágenes que faltan según el nombre de la carpeta. Tus propios cover.jpg, hero.jpg, logo.png o icon.png en la carpeta del juego tienen prioridad.</string>
|
||||
<string name="summary_remove_game">Remove %1$s</string>
|
||||
<string name="mode_added_remove_confirm">¿Quitar?</string>
|
||||
<string name="games_add">Añadir juego</string>
|
||||
<string name="games_add_title">Añadir un juego:</string>
|
||||
@@ -346,10 +346,10 @@
|
||||
<string name="wincomp_active">Instalados para este juego (%1$d)</string>
|
||||
<string name="wincomp_all">Todos los componentes (%1$d)</string>
|
||||
<string name="wincomp_installers">Necesitan un instalador de Windows (%1$d)</string>
|
||||
<string name="wincomp_installers_note">Son programas de instalación independientes, sin ningún paquete que extraer, y todavía no hay un registro de lo que instalan. La mayoría son runtimes antiguos que el Mono incluido en Proton ya sustituye; los registros se añaden a medida que se crean.</string>
|
||||
<string name="wincomp_installers_note">Estos ejecutan un instalador real dentro del prefijo (.NET, PhysX, XNA, los instaladores completos de Visual C++…). DroidDeck aún no puede hacerlo; es lo siguiente.</string>
|
||||
<string name="wincomp_show">Mostrar</string>
|
||||
<string name="wincomp_hide">Ocultar</string>
|
||||
<string name="wincomp_needs_installer">Ejecuta su propio programa de instalación (aún sin registro)</string>
|
||||
<string name="wincomp_needs_installer">Necesita un instalador de Windows (próximamente)</string>
|
||||
<string name="wincomp_unsupported">Aún no compatible aquí</string>
|
||||
<string name="wincomp_loading">Cargando los componentes…</string>
|
||||
<string name="wincomp_failed">No se pudo instalar: %1$s</string>
|
||||
@@ -907,8 +907,8 @@
|
||||
<string name="wadb_turn_off">Desactivar límite</string>
|
||||
<string name="wadb_other_ways">Otras formas de cambiarlo</string>
|
||||
<string name="wadb_dev_try_first">1 · Opciones de desarrollador (pruébalo primero)</string>
|
||||
<string name="wadb_restrict_on">Desactiva “Inhabilitar restricciones de procesos secundarios”.</string>
|
||||
<string name="wadb_restrict_off">Activa “Inhabilitar restricciones de procesos secundarios”.</string>
|
||||
<string name="wadb_restrict_on">Activa “Restringir procesos secundarios”.</string>
|
||||
<string name="wadb_restrict_off">Desactiva “Restringir procesos secundarios”.</string>
|
||||
<string name="wadb_computer_last">3 · ADB desde ordenador (último recurso)</string>
|
||||
<string name="wadb_only_if">Solo si la Depuración inalámbrica no está disponible.</string>
|
||||
<string name="wadb_computer_group">3 · ADB desde ordenador (último recurso)</string>
|
||||
@@ -1948,16 +1948,6 @@
|
||||
<string name="stores_free">Gratis</string>
|
||||
<string name="stores_resume">Reanudar</string>
|
||||
<string name="stores_refresh">Actualizar</string>
|
||||
<string name="stores_sort">Ordenar</string>
|
||||
<string name="stores_sort_last_played">Jugados recientemente</string>
|
||||
<string name="stores_sort_recently_installed">Instalados recientemente</string>
|
||||
<string name="stores_sort_title_asc">Título A–Z</string>
|
||||
<string name="stores_sort_title_desc">Título Z–A</string>
|
||||
<string name="stores_sort_size_desc">Tamaño: mayor</string>
|
||||
<string name="stores_sort_size_asc">Tamaño: menor</string>
|
||||
<string name="stores_sort_release_date">Fecha de lanzamiento</string>
|
||||
<string name="stores_view_list">Vista de lista</string>
|
||||
<string name="stores_view_cards">Vista de tarjetas</string>
|
||||
<string name="stores_show_mature">Mostrar contenido para adultos</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
@@ -2275,10 +2265,4 @@
|
||||
<string name="drawer_component_downloads">Descargar componentes</string>
|
||||
<string name="drawer_component_downloads_hint">Las descargas se comparten con la página Componentes. Elige arriba una versión descargada para usarla al iniciar el próximo juego.</string>
|
||||
<string name="drawer_component_choose_download">Elige una versión para descargar</string>
|
||||
<string name="mode_zram">Compresión zRAM</string>
|
||||
<string name="mode_zram_hint">Mientras se ejecuta un juego, la memoria del cliente de Steam se comprime en la zram del dispositivo, lo que deja más RAM para el juego. Se aplica la próxima vez que se inicie Steam.</string>
|
||||
<string name="mode_zram_unsupported">No disponible: este dispositivo no tiene swap activo, o su kernel es anterior a la 5.4.</string>
|
||||
<string name="stores_storage_insufficient">No hay suficiente espacio libre: se necesitan %1$s y solo hay %2$s libres</string>
|
||||
<string name="stores_storage_low">Espacio insuficiente (%1$s libres, se necesitan %2$s)</string>
|
||||
<string name="stores_target_free_unknown">Espacio libre desconocido</string>
|
||||
</resources>
|
||||
@@ -893,8 +893,8 @@
|
||||
<string name="wadb_turn_off">Kytke raja pois päältä</string>
|
||||
<string name="wadb_other_ways">Muita tapoja muuttaa sitä</string>
|
||||
<string name="wadb_dev_try_first">1 · Kehittäjäasetukset (kokeile ensin)</string>
|
||||
<string name="wadb_restrict_on">Aseta ”Poista käytöstä alatason prosessirajoitukset” pois päältä.</string>
|
||||
<string name="wadb_restrict_off">Aseta ”Poista käytöstä alatason prosessirajoitukset” päälle.</string>
|
||||
<string name="wadb_restrict_on">Aseta ”Restrict child processes” päälle.</string>
|
||||
<string name="wadb_restrict_off">Aseta ”Restrict child processes” pois päältä.</string>
|
||||
<string name="wadb_computer_last">3 · Tietokoneen ADB (viimeinen keino)</string>
|
||||
<string name="wadb_only_if">Vain jos Langaton virheenkorjaus ei ole käytettävissä.</string>
|
||||
<string name="wadb_computer_group">3 · Tietokoneen ADB (viimeinen keino)</string>
|
||||
@@ -1919,16 +1919,6 @@
|
||||
<string name="stores_free">Ilmainen</string>
|
||||
<string name="stores_resume">Jatka</string>
|
||||
<string name="stores_refresh">Päivitä</string>
|
||||
<string name="stores_sort">Järjestä</string>
|
||||
<string name="stores_sort_last_played">Viimeksi pelatut</string>
|
||||
<string name="stores_sort_recently_installed">Viimeksi asennetut</string>
|
||||
<string name="stores_sort_title_asc">Nimi A–Ö</string>
|
||||
<string name="stores_sort_title_desc">Nimi Ö–A</string>
|
||||
<string name="stores_sort_size_desc">Koko: suurin</string>
|
||||
<string name="stores_sort_size_asc">Koko: pienin</string>
|
||||
<string name="stores_sort_release_date">Julkaisupäivä</string>
|
||||
<string name="stores_view_list">Luettelonäkymä</string>
|
||||
<string name="stores_view_cards">Korttinäkymä</string>
|
||||
<string name="stores_show_mature">Näytä aikuisille tarkoitettu sisältö</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
|
||||
@@ -306,8 +306,8 @@
|
||||
<string name="mode_sgdb_key">Clé API SteamGridDB</string>
|
||||
<string name="mode_sgdb_key_yours">Votre clé</string>
|
||||
<string name="mode_sgdb_edit">Modifier…</string>
|
||||
<string name="mode_added_art_hint">Complète les images manquantes depuis Steam, puis SteamGridDB. Les fichiers cover.jpg, hero.jpg, logo.png ou icon.png que vous placez dans le dossier du jeu sont prioritaires.</string>
|
||||
<string name="summary_remove_game">Retirer %1$s</string>
|
||||
<string name="mode_added_art_hint">Complète les images manquantes selon le nom du dossier. Les fichiers cover.jpg, hero.jpg, logo.png ou icon.png dans le dossier du jeu sont prioritaires.</string>
|
||||
<string name="summary_remove_game">Remove %1$s</string>
|
||||
<string name="mode_added_remove_confirm">Retirer ?</string>
|
||||
<string name="games_add">Ajouter un jeu</string>
|
||||
<string name="games_add_title">Ajouter un jeu :</string>
|
||||
@@ -907,8 +907,8 @@
|
||||
<string name="wadb_turn_off">Désactiver la limite</string>
|
||||
<string name="wadb_other_ways">Autres méthodes de modification</string>
|
||||
<string name="wadb_dev_try_first">1 · Options pour les développeurs (à essayer en premier)</string>
|
||||
<string name="wadb_restrict_on">Désactivez «Désactiver les limites pour les processus enfant».</string>
|
||||
<string name="wadb_restrict_off">Activez «Désactiver les limites pour les processus enfant».</string>
|
||||
<string name="wadb_restrict_on">Activez « Limiter les processus enfants ».</string>
|
||||
<string name="wadb_restrict_off">Désactivez « Limiter les processus enfants ».</string>
|
||||
<string name="wadb_computer_last">3 · ADB sur PC (en dernier recours)</string>
|
||||
<string name="wadb_only_if">À utiliser uniquement si le débogage sans fil n\'est pas disponible.</string>
|
||||
<string name="wadb_computer_group">3 · ADB sur PC (en dernier recours)</string>
|
||||
@@ -1948,16 +1948,6 @@
|
||||
<string name="stores_free">Gratuit</string>
|
||||
<string name="stores_resume">Reprendre</string>
|
||||
<string name="stores_refresh">Actualiser</string>
|
||||
<string name="stores_sort">Trier</string>
|
||||
<string name="stores_sort_last_played">Joués récemment</string>
|
||||
<string name="stores_sort_recently_installed">Installés récemment</string>
|
||||
<string name="stores_sort_title_asc">Titre A–Z</string>
|
||||
<string name="stores_sort_title_desc">Titre Z–A</string>
|
||||
<string name="stores_sort_size_desc">Taille : plus grand</string>
|
||||
<string name="stores_sort_size_asc">Taille : plus petit</string>
|
||||
<string name="stores_sort_release_date">Date de sortie</string>
|
||||
<string name="stores_view_list">Vue liste</string>
|
||||
<string name="stores_view_cards">Vue cartes</string>
|
||||
<string name="stores_show_mature">Afficher le contenu pour adultes</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
@@ -2275,10 +2265,4 @@
|
||||
<string name="drawer_component_downloads">Télécharger des composants</string>
|
||||
<string name="drawer_component_downloads_hint">Les téléchargements sont partagés avec la page « Composants ». Choisissez une version téléchargée ci-dessus pour l\'utiliser au prochain lancement du jeu.</string>
|
||||
<string name="drawer_component_choose_download">Choisissez une version à télécharger</string>
|
||||
<string name="mode_zram">Compression zRAM</string>
|
||||
<string name="mode_zram_hint">Pendant qu\'un jeu tourne, la mémoire du client Steam est compressée dans la zram de l\'appareil, ce qui laisse plus de RAM au jeu. S\'applique au prochain démarrage de Steam.</string>
|
||||
<string name="mode_zram_unsupported">Indisponible : cet appareil n\'a pas de swap actif, ou son noyau est antérieur à la version 5.4.</string>
|
||||
<string name="stores_storage_insufficient">Espace libre insuffisant : %1$s nécessaires, seulement %2$s libres</string>
|
||||
<string name="stores_storage_low">Espace insuffisant (%1$s libres, %2$s nécessaires)</string>
|
||||
<string name="stores_target_free_unknown">Espace libre inconnu</string>
|
||||
</resources>
|
||||
@@ -893,8 +893,8 @@
|
||||
<string name="wadb_turn_off">सीमा बंद करें</string>
|
||||
<string name="wadb_other_ways">इसे बदलने के अन्य तरीके</string>
|
||||
<string name="wadb_dev_try_first">1 · डेवलपर विकल्प (पहले आज़माएं)</string>
|
||||
<string name="wadb_restrict_on">“चाइल्ड प्रोसेस से जुड़ी पाबंदियां हटाएं” बंद करें।</string>
|
||||
<string name="wadb_restrict_off">“चाइल्ड प्रोसेस से जुड़ी पाबंदियां हटाएं” चालू करें।</string>
|
||||
<string name="wadb_restrict_on">“Restrict child processes” चालू करें।</string>
|
||||
<string name="wadb_restrict_off">“Restrict child processes” बंद करें।</string>
|
||||
<string name="wadb_computer_last">3 · कंप्यूटर ADB (आख़िरी विकल्प)</string>
|
||||
<string name="wadb_only_if">सिर्फ़ तब जब वायरलेस डीबगिंग उपलब्ध न हो।</string>
|
||||
<string name="wadb_computer_group">3 · कंप्यूटर ADB (आख़िरी विकल्प)</string>
|
||||
@@ -1919,16 +1919,6 @@
|
||||
<string name="stores_free">फ़्री</string>
|
||||
<string name="stores_resume">फिर से शुरू करें</string>
|
||||
<string name="stores_refresh">रीफ़्रेश करें</string>
|
||||
<string name="stores_sort">क्रमबद्ध करें</string>
|
||||
<string name="stores_sort_last_played">हाल में खेले गए</string>
|
||||
<string name="stores_sort_recently_installed">हाल में इंस्टॉल किए गए</string>
|
||||
<string name="stores_sort_title_asc">शीर्षक A–Z</string>
|
||||
<string name="stores_sort_title_desc">शीर्षक Z–A</string>
|
||||
<string name="stores_sort_size_desc">आकार: सबसे बड़ा</string>
|
||||
<string name="stores_sort_size_asc">आकार: सबसे छोटा</string>
|
||||
<string name="stores_sort_release_date">रिलीज़ तिथि</string>
|
||||
<string name="stores_view_list">सूची दृश्य</string>
|
||||
<string name="stores_view_cards">कार्ड दृश्य</string>
|
||||
<string name="stores_show_mature">वयस्क कंटेंट दिखाएं</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
|
||||
@@ -893,8 +893,8 @@
|
||||
<string name="wadb_turn_off">Korlát kikapcsolása</string>
|
||||
<string name="wadb_other_ways">Egyéb módok a módosítására</string>
|
||||
<string name="wadb_dev_try_first">1 · Fejlesztői beállítások (próbálja ezt először)</string>
|
||||
<string name="wadb_restrict_on">Kapcsolja ki az „Alárendelt folyamatok korlátozásának kikapcsolása” lehetőséget.</string>
|
||||
<string name="wadb_restrict_off">Kapcsolja be az „Alárendelt folyamatok korlátozásának kikapcsolása” lehetőséget.</string>
|
||||
<string name="wadb_restrict_on">Kapcsolja be a „Gyermekfolyamatok korlátozása” lehetőséget.</string>
|
||||
<string name="wadb_restrict_off">Kapcsolja ki a „Gyermekfolyamatok korlátozása” lehetőséget.</string>
|
||||
<string name="wadb_computer_last">3 · Számítógépes ADB (végső megoldás)</string>
|
||||
<string name="wadb_only_if">Csak ha a vezeték nélküli hibakeresés nem elérhető.</string>
|
||||
<string name="wadb_computer_group">3 · Számítógépes ADB (végső megoldás)</string>
|
||||
@@ -1919,16 +1919,6 @@
|
||||
<string name="stores_free">Ingyenes</string>
|
||||
<string name="stores_resume">Folytatás</string>
|
||||
<string name="stores_refresh">Frissítés</string>
|
||||
<string name="stores_sort">Rendezés</string>
|
||||
<string name="stores_sort_last_played">Nemrég játszott</string>
|
||||
<string name="stores_sort_recently_installed">Nemrég telepített</string>
|
||||
<string name="stores_sort_title_asc">Cím A–Z</string>
|
||||
<string name="stores_sort_title_desc">Cím Z–A</string>
|
||||
<string name="stores_sort_size_desc">Méret: legnagyobb</string>
|
||||
<string name="stores_sort_size_asc">Méret: legkisebb</string>
|
||||
<string name="stores_sort_release_date">Megjelenés dátuma</string>
|
||||
<string name="stores_view_list">Listanézet</string>
|
||||
<string name="stores_view_cards">Kártyanézet</string>
|
||||
<string name="stores_show_mature">Felnőtt tartalom megjelenítése</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
|
||||
@@ -887,8 +887,8 @@
|
||||
<string name="wadb_turn_off">Nonaktifkan batas</string>
|
||||
<string name="wadb_other_ways">Cara lain untuk mengubahnya</string>
|
||||
<string name="wadb_dev_try_first">1 · Opsi pengembang (coba dahulu)</string>
|
||||
<string name="wadb_restrict_on">Nonaktifkan “Nonaktifkan batasan proses turunan”.</string>
|
||||
<string name="wadb_restrict_off">Aktifkan “Nonaktifkan batasan proses turunan”.</string>
|
||||
<string name="wadb_restrict_on">Aktifkan “Restrict child processes”.</string>
|
||||
<string name="wadb_restrict_off">Nonaktifkan “Restrict child processes”.</string>
|
||||
<string name="wadb_computer_last">3 · ADB komputer (upaya terakhir)</string>
|
||||
<string name="wadb_only_if">Hanya jika Debugging nirkabel tidak tersedia.</string>
|
||||
<string name="wadb_computer_group">3 · ADB komputer (upaya terakhir)</string>
|
||||
@@ -1898,16 +1898,6 @@
|
||||
<string name="stores_free">Gratis</string>
|
||||
<string name="stores_resume">Lanjutkan</string>
|
||||
<string name="stores_refresh">Segarkan</string>
|
||||
<string name="stores_sort">Urutkan</string>
|
||||
<string name="stores_sort_last_played">Baru dimainkan</string>
|
||||
<string name="stores_sort_recently_installed">Baru dipasang</string>
|
||||
<string name="stores_sort_title_asc">Judul A–Z</string>
|
||||
<string name="stores_sort_title_desc">Judul Z–A</string>
|
||||
<string name="stores_sort_size_desc">Ukuran: terbesar</string>
|
||||
<string name="stores_sort_size_asc">Ukuran: terkecil</string>
|
||||
<string name="stores_sort_release_date">Tanggal rilis</string>
|
||||
<string name="stores_view_list">Tampilan daftar</string>
|
||||
<string name="stores_view_cards">Tampilan kartu</string>
|
||||
<string name="stores_show_mature">Tampilkan konten dewasa</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
|
||||
@@ -899,8 +899,8 @@
|
||||
<string name="wadb_turn_off">Disattiva il limite</string>
|
||||
<string name="wadb_other_ways">Altri modi per cambiarlo</string>
|
||||
<string name="wadb_dev_try_first">1 · Opzioni sviluppatore (da provare prima)</string>
|
||||
<string name="wadb_restrict_on">Disattiva “Disattiva limitazioni per i processi secondari”.</string>
|
||||
<string name="wadb_restrict_off">Attiva “Disattiva limitazioni per i processi secondari”.</string>
|
||||
<string name="wadb_restrict_on">Attiva “Limita processi figlio”.</string>
|
||||
<string name="wadb_restrict_off">Disattiva “Limita processi figlio”.</string>
|
||||
<string name="wadb_computer_last">3 · ADB da computer (ultima risorsa)</string>
|
||||
<string name="wadb_only_if">Solo se il Debug wireless non è disponibile.</string>
|
||||
<string name="wadb_computer_group">3 · ADB da computer (ultima risorsa)</string>
|
||||
@@ -1940,16 +1940,6 @@
|
||||
<string name="stores_free">Gratis</string>
|
||||
<string name="stores_resume">Riprendi</string>
|
||||
<string name="stores_refresh">Aggiorna</string>
|
||||
<string name="stores_sort">Ordina</string>
|
||||
<string name="stores_sort_last_played">Giocate di recente</string>
|
||||
<string name="stores_sort_recently_installed">Installate di recente</string>
|
||||
<string name="stores_sort_title_asc">Titolo A–Z</string>
|
||||
<string name="stores_sort_title_desc">Titolo Z–A</string>
|
||||
<string name="stores_sort_size_desc">Dimensione: maggiore</string>
|
||||
<string name="stores_sort_size_asc">Dimensione: minore</string>
|
||||
<string name="stores_sort_release_date">Data di uscita</string>
|
||||
<string name="stores_view_list">Visualizzazione elenco</string>
|
||||
<string name="stores_view_cards">Visualizzazione schede</string>
|
||||
<string name="stores_show_mature">Mostra contenuti per adulti</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
@@ -2267,18 +2257,4 @@
|
||||
<string name="stores_hltb_completionist">Completista</string>
|
||||
<string name="stores_hltb_hours">%1$s h</string>
|
||||
<string name="stores_hltb_minutes">%1$d min</string>
|
||||
<string name="mode_zram">Compressione zRAM</string>
|
||||
<string name="mode_zram_hint">Mentre un gioco è in esecuzione, la memoria del client Steam viene compressa nella zram del dispositivo, lasciando più RAM al gioco. Si applica al prossimo avvio di Steam.</string>
|
||||
<string name="mode_zram_unsupported">Non disponibile: questo dispositivo non ha zram o swap, oppure il suo kernel è precedente alla 5.4.</string>
|
||||
<string name="setup_reset_settings">Ripristina tutte le impostazioni</string>
|
||||
<string name="setup_reset_settings_title">Ripristinare tutte le impostazioni?</string>
|
||||
<string name="setup_reset_settings_body">Le impostazioni di schermo, prestazioni, controller, tema, lingua e launcher tornano ai valori predefiniti. Giochi, accesso a Steam, account degli store, driver scaricati e cartelle di archiviazione vengono mantenuti.</string>
|
||||
<string name="setup_reset_settings_button">Ripristina</string>
|
||||
<string name="setup_reset_settings_hint">Riporta ogni impostazione al valore predefinito</string>
|
||||
<string name="setup_reset_settings_partial">Le impostazioni sono state ripristinate, ma alcune parti no. I dettagli sono nei log.</string>
|
||||
<string name="setup_reset_settings_profiles">Ripristina anche i profili dei giochi (Proton, FEX, componenti e ambiente di ogni gioco e l\'ambiente del profilo predefinito)</string>
|
||||
<string name="setup_reset_settings_session_running">Termina la sessione prima di ripristinare le impostazioni.</string>
|
||||
<string name="stores_storage_insufficient">Spazio libero insufficiente: servono %1$s, ne sono liberi solo %2$s</string>
|
||||
<string name="stores_storage_low">Spazio insufficiente (%1$s liberi, ne servono %2$s)</string>
|
||||
<string name="stores_target_free_unknown">Spazio libero sconosciuto</string>
|
||||
</resources>
|
||||
@@ -205,7 +205,7 @@
|
||||
<string name="add_app_folder_copied">このフォルダにはLinuxプログラムが含まれており、共有ストレージでは実行できないため、DroidDeckにコピーされます(%1$s)。</string>
|
||||
<string name="add_app_confirm">追加</string>
|
||||
<string name="add_app_cancel">キャンセル</string>
|
||||
<string name="add_app_runtime_required">先に「セットアップ」からLinux実行環境をインストールしてください。</string>
|
||||
<string name="add_app_runtime_required">先に「設定」からLinux実行環境をインストールしてください。</string>
|
||||
<string name="add_app_busy">%1$sが完了するまでお待ちください。</string>
|
||||
<string name="steam_compat_label">互換</string>
|
||||
<string name="proton_compatible_note">Steamの互換性メニューで「%1$s」と表示されたビルドには、DroidDeckのプレフィックス修正が含まれており、ここでゲームを起動できます。デフォルトはProton Experimental ARM64(%1$s)で、より新しいProton 11.0 ARM64(%1$s)がインストールされている場合はそちらになります。この表示のないValve純正のProtonでは、このデバイスでゲームを起動できません。</string>
|
||||
@@ -219,7 +219,7 @@
|
||||
<string name="common_update">更新</string>
|
||||
<string name="common_checking">確認中…</string>
|
||||
<string name="common_working">処理中…</string>
|
||||
<string name="common_forget">解除</string>
|
||||
<string name="common_forget">忘れる</string>
|
||||
<string name="common_add_ellipsis">追加…</string>
|
||||
<string name="common_use">使用</string>
|
||||
<string name="common_applies_next_session">次回のセッションで有効になります。</string>
|
||||
@@ -289,12 +289,12 @@
|
||||
<string name="mode_decky_installed">インストール済み · %1$s</string>
|
||||
<string name="mode_decky_update">アップデートあり · %1$s</string>
|
||||
<string name="mode_decky_current">最新です · %1$s</string>
|
||||
<string name="mode_decky_loader">ローダー</string>
|
||||
<string name="mode_decky_loader">Loader</string>
|
||||
<string name="mode_decky_install_latest">最新バージョンをインストール</string>
|
||||
<string name="mode_decky_on">Steamと共に起動します。有効にすると、このデバイス上の他のアプリがSteamを制御できる場合があります。</string>
|
||||
<string name="mode_decky_off">オフ。Steamのリモートデバッグポートは閉じたままになります。</string>
|
||||
<string name="mode_decky_remove_title">Decky Loaderをアンインストールしますか?</string>
|
||||
<string name="mode_decky_remove_text">ローダーを削除します。プラグインと設定は保持されます。</string>
|
||||
<string name="mode_decky_remove_text">Loaderを削除します。プラグインと設定は保持されます。</string>
|
||||
<string name="mode_client">クライアント</string>
|
||||
<string name="mode_mangoapp">パフォーマンスオーバーレイ</string>
|
||||
<string name="mode_mangoapp_hint">Deckモードでゲームがクラッシュしたり画面が真っ暗になる場合は、これをオフにしてください。次回のセッションで有効になります。</string>
|
||||
@@ -306,8 +306,8 @@
|
||||
<string name="mode_sgdb_key">SteamGridDB API キー</string>
|
||||
<string name="mode_sgdb_key_yours">自分のキー</string>
|
||||
<string name="mode_sgdb_edit">編集…</string>
|
||||
<string name="mode_added_art_hint">不足しているアートワークをSteamから、次にSteamGridDBから補完します。ゲームフォルダ内のcover.jpg、hero.jpg、logo.png、icon.pngが優先されます。</string>
|
||||
<string name="summary_remove_game">%1$sを削除</string>
|
||||
<string name="mode_added_art_hint">フォルダ名に基づいて不足している画像を補完します。ゲームフォルダ内のcover.jpg、hero.jpg、logo.png、またはicon.pngが優先的に使用されます。</string>
|
||||
<string name="summary_remove_game">Remove %1$s</string>
|
||||
<string name="mode_added_remove_confirm">削除?</string>
|
||||
<string name="games_add">ゲームを追加</string>
|
||||
<string name="games_add_title">ゲームを追加:</string>
|
||||
@@ -340,14 +340,14 @@
|
||||
<string name="wincomp_found_bundled">ゲームに%1$sが同梱されています</string>
|
||||
<string name="wincomp_found_shipped">ゲームに%1$sがあります(そのままで動くことが多いです)</string>
|
||||
<string name="wincomp_already_here">このゲームに導入済み</string>
|
||||
<string name="wincomp_no_recommendation">ゲームのフォルダには、必要なコンポーネントを示すものがありません。</string>
|
||||
<string name="wincomp_no_recommendation">ゲームのフォルダーには、必要なコンポーネントを示すものがありません。</string>
|
||||
<string name="wincomp_active">このゲームにインストール済み(%1$d)</string>
|
||||
<string name="wincomp_all">すべてのコンポーネント(%1$d)</string>
|
||||
<string name="wincomp_installers">Windowsインストーラーが必要(%1$d)</string>
|
||||
<string name="wincomp_installers_note">これらはそれぞれ独自のセットアッププログラムで、中に取り出せるパッケージはなく、何をインストールするかの記録もまだありません。多くはProton内蔵のMonoで代用できる古いランタイムで、記録は作成次第追加されます。</string>
|
||||
<string name="wincomp_installers_note">これらはプレフィックス内で実際のインストーラーを実行します(.NET、PhysX、XNA、Visual C++のフルインストーラーなど)。DroidDeckはまだ対応していませんが、次に対応予定です。</string>
|
||||
<string name="wincomp_show">表示</string>
|
||||
<string name="wincomp_hide">非表示</string>
|
||||
<string name="wincomp_needs_installer">独自のセットアッププログラムを実行します(記録はまだありません)</string>
|
||||
<string name="wincomp_needs_installer">Windowsインストーラーが必要(対応予定)</string>
|
||||
<string name="wincomp_unsupported">ここではまだ未対応</string>
|
||||
<string name="wincomp_loading">コンポーネントを読み込み中…</string>
|
||||
<string name="wincomp_failed">インストールできませんでした: %1$s</string>
|
||||
@@ -467,7 +467,7 @@
|
||||
<string name="comp_applies_next_game">次回のゲーム起動時に有効になります</string>
|
||||
<string name="comp_import_zip">.zipをインポート</string>
|
||||
<string name="comp_reading">Protonを読み込み中…</string>
|
||||
<string name="comp_no_proton">Protonがインストールされていません。一度Steamを起動してARM64 Protonをダウンロードするか、「セットアップ」からGE-ProtonまたはCachyOSを追加してください。</string>
|
||||
<string name="comp_no_proton">Protonがインストールされていません。一度Steamを起動してARM64 Protonをダウンロードするか、「設定」からGE-ProtonまたはCachyOSを追加してください。</string>
|
||||
<string name="comp_original">元 · %1$s</string>
|
||||
<string name="comp_this_build">%1$s · 現在のビルド</string>
|
||||
<string name="comp_earlier_build">%1$s · 以前のビルド</string>
|
||||
@@ -533,7 +533,7 @@
|
||||
<string name="perf_fastpath">prootファストパス</string>
|
||||
<string name="perf_fastpath_needs_seccomp">prootのseccompフィルターが必要です。</string>
|
||||
<string name="perf_fastpath_hint">ファイル検索が速くなり、スタッターが減ります。プログラムがファイルを見つけられない場合は、これをオフにしてください。</string>
|
||||
<string name="perf_identity">セッションの識別情報</string>
|
||||
<string name="perf_identity">セッションID</string>
|
||||
<string name="perf_hostname">ホスト名</string>
|
||||
<string name="perf_hostname_hint">Steamがこのデバイスを認識する名前。空にすると%1$sに戻ります。</string>
|
||||
<string name="perf_hostname_invalid">英数字と中間のハイフンのみ使用でき、最大63文字です。</string>
|
||||
@@ -639,7 +639,7 @@
|
||||
<string name="setup_tab_controller">コントローラー</string>
|
||||
<string name="setup_tab_session">セッション</string>
|
||||
<string name="setup_tab_launcher">ランチャー</string>
|
||||
<string name="setup_title">セットアップ</string>
|
||||
<string name="setup_title">設定</string>
|
||||
<string name="setup_all_set">● すべて準備完了</string>
|
||||
<string name="setup_n_ready">%1$d/%2$d 準備完了</string>
|
||||
<string name="setup_system_check">システムチェック</string>
|
||||
@@ -733,7 +733,7 @@
|
||||
<string name="store_title">ストア</string>
|
||||
<string name="store_chip_flathub">Flathub · ARM64</string>
|
||||
<string name="store_chip_ready">● Flatpakの準備完了</string>
|
||||
<string name="store_needs_runtime">先に「セットアップ」からLinux実行環境をインストールしてください。</string>
|
||||
<string name="store_needs_runtime">先に「設定」からLinux実行環境をインストールしてください。</string>
|
||||
<string name="store_setup_title">Flatpakをセットアップ</string>
|
||||
<string name="store_setup_text">Flatpakを追加し、Flathubに接続します(約20MB)。最初のアプリは実行環境もダウンロードします。</string>
|
||||
<string name="store_setting_up">セットアップ中…</string>
|
||||
@@ -895,8 +895,8 @@
|
||||
<string name="wadb_turn_off">制限をオフにする</string>
|
||||
<string name="wadb_other_ways">その他の変更方法</string>
|
||||
<string name="wadb_dev_try_first">1 · 開発者向けオプション(最初に試す)</string>
|
||||
<string name="wadb_restrict_on">「子プロセスの制限を無効化」をオフにします。</string>
|
||||
<string name="wadb_restrict_off">「子プロセスの制限を無効化」をオンにします。</string>
|
||||
<string name="wadb_restrict_on">「子プロセスを制限」をオンにします。</string>
|
||||
<string name="wadb_restrict_off">「子プロセスを制限」をオフにします。</string>
|
||||
<string name="wadb_computer_last">3 · PC ADB(最終手段)</string>
|
||||
<string name="wadb_only_if">ワイヤレスデバッグが利用できない場合にのみ使用してください。</string>
|
||||
<string name="wadb_computer_group">3 · PC ADB(最終手段)</string>
|
||||
@@ -952,7 +952,7 @@
|
||||
<string name="content_runtime_required">実行環境が必要です</string>
|
||||
<string name="content_loading_details">インストール詳細を読み込み中…</string>
|
||||
<string name="content_details_unavailable">インストール詳細は利用できません。後でもう一度お試しください。</string>
|
||||
<string name="content_needs_runtime">先に「セットアップ」からLinux実行環境をインストールしてください。</string>
|
||||
<string name="content_needs_runtime">先に「設定」からLinux実行環境をインストールしてください。</string>
|
||||
<string name="content_stop_first">実行中のセッションを停止してからデスクトップアプリをインストールしてください。</string>
|
||||
<string name="content_install_into">%1$sをLinuxデスクトップにインストールします。</string>
|
||||
<string name="store_busy_percent_short">%1$s · %2$d%%</string>
|
||||
@@ -990,8 +990,8 @@
|
||||
<string name="games_export_winlator">Winlatorアーカイブとしてエクスポート…</string>
|
||||
<string name="games_open_save_folder">セーブフォルダを開く</string>
|
||||
<string name="games_never_played">未プレイ</string>
|
||||
<string name="games_runtime_busy_percent">実行環境は使用中 · %1$d%%</string>
|
||||
<string name="games_runtime_busy">実行環境は使用中</string>
|
||||
<string name="games_runtime_busy_percent">実行環境がビジー · %1$d%%</string>
|
||||
<string name="games_runtime_busy">実行環境がビジー</string>
|
||||
<string name="games_runtime_first_play">初回実行時に実行環境を導入</string>
|
||||
<string name="games_runtime_update">実行環境にアップデートがあります</string>
|
||||
<string name="games_runtime_ready">● 実行環境の準備完了</string>
|
||||
@@ -1067,7 +1067,7 @@
|
||||
<string name="rail_store">ストア</string>
|
||||
<string name="rail_components">コンポーネント</string>
|
||||
<string name="rail_apps">アプリ</string>
|
||||
<string name="rail_setup">セットアップ</string>
|
||||
<string name="rail_setup">設定</string>
|
||||
<string name="rail_updates">アップデート</string>
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">%1$sを再開</string>
|
||||
@@ -1196,7 +1196,7 @@
|
||||
<string name="drivers_pick_any">ドライバーzipまたはAndroid + Linuxバンドルを選択</string>
|
||||
<string name="main_pkg_problem">%1$s:%2$s</string>
|
||||
<string name="main_removing_named">%1$sを削除中…</string>
|
||||
<string name="main_forgetting_named">%1$sを解除中…</string>
|
||||
<string name="main_forgetting_named">%1$sを登録解除中…</string>
|
||||
<string name="main_pick_game_storage">ゲームの保存先フォルダを選択</string>
|
||||
<string name="main_pick_decky_zip">Deckyプラグインのzipを選択</string>
|
||||
<string name="main_storage_not_usable">使用できません:%1$s</string>
|
||||
@@ -1554,7 +1554,7 @@
|
||||
<string name="flatpakmgr_ref_graphics_drivers">グラフィックドライバー</string>
|
||||
<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="flatpakmgr_ref_runtime_branch">%1$sランタイム %2$s</string>
|
||||
|
||||
<string name="appimg_too_small">ファイルが小さすぎるため、AppImageではありません</string>
|
||||
<string name="appimg_unreadable">ファイルを読み取れません:%1$s</string>
|
||||
@@ -1855,7 +1855,7 @@
|
||||
<string name="source_steam">Steam</string>
|
||||
<string name="source_added">カスタム</string>
|
||||
<string name="setup_stores">ストア</string>
|
||||
<string name="setup_stores_open_on">ストアページを開くときの初期タブ</string>
|
||||
<string name="setup_stores_open_on">ストアの初期表示</string>
|
||||
<string name="setup_stores_speed">ダウンロード速度レベル</string>
|
||||
<string name="setup_stores_engine">ストアエンジン</string>
|
||||
<string name="setup_stores_engine_chip_ready">● エンジン準備完了</string>
|
||||
@@ -1906,16 +1906,6 @@
|
||||
<string name="stores_free">無料</string>
|
||||
<string name="stores_resume">再開</string>
|
||||
<string name="stores_refresh">更新</string>
|
||||
<string name="stores_sort">並べ替え</string>
|
||||
<string name="stores_sort_last_played">最近プレイ</string>
|
||||
<string name="stores_sort_recently_installed">最近インストール</string>
|
||||
<string name="stores_sort_title_asc">タイトル A–Z</string>
|
||||
<string name="stores_sort_title_desc">タイトル Z–A</string>
|
||||
<string name="stores_sort_size_desc">サイズ: 大きい順</string>
|
||||
<string name="stores_sort_size_asc">サイズ: 小さい順</string>
|
||||
<string name="stores_sort_release_date">リリース日</string>
|
||||
<string name="stores_view_list">リスト表示</string>
|
||||
<string name="stores_view_cards">カード表示</string>
|
||||
<string name="stores_show_mature">成人向けコンテンツを表示</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
@@ -2043,11 +2033,11 @@
|
||||
<string name="common_close">閉じる</string>
|
||||
<string name="common_back">戻る</string>
|
||||
<string name="common_edit">編集</string>
|
||||
<string name="games_add_all">このフォルダのゲームをすべて追加</string>
|
||||
<string name="games_added_none">このフォルダに新しいゲームはありません</string>
|
||||
<string name="games_add_all">このフォルダーのゲームをすべて追加</string>
|
||||
<string name="games_added_none">このフォルダーに新しいゲームはありません</string>
|
||||
<string name="edit_name">名前</string>
|
||||
<string name="edit_target">ターゲット</string>
|
||||
<string name="edit_start_in">開始フォルダ</string>
|
||||
<string name="edit_start_in">開始フォルダー</string>
|
||||
<string name="edit_launch_options">起動オプション</string>
|
||||
<string name="edit_artwork">アートワーク</string>
|
||||
<string name="edit_other_exe">別の exe…</string>
|
||||
@@ -2056,7 +2046,7 @@
|
||||
<string name="art_background">背景</string>
|
||||
<string name="art_logo">ロゴ</string>
|
||||
<string name="art_icon">アイコン</string>
|
||||
<string name="art_src_folder">ゲームフォルダ</string>
|
||||
<string name="art_src_folder">ゲームフォルダー</string>
|
||||
<string name="art_src_steam">Steam</string>
|
||||
<string name="art_src_sgdb">SteamGridDB</string>
|
||||
<string name="art_src_file">自分のファイル</string>
|
||||
|
||||
@@ -306,8 +306,8 @@
|
||||
<string name="mode_sgdb_key">SteamGridDB API 키</string>
|
||||
<string name="mode_sgdb_key_yours">내 키</string>
|
||||
<string name="mode_sgdb_edit">편집…</string>
|
||||
<string name="mode_added_art_hint">누락된 이미지를 Steam, 그다음 SteamGridDB에서 채웁니다. 게임 폴더의 cover.jpg, hero.jpg, logo.png 또는 icon.png가 우선적으로 사용됩니다.</string>
|
||||
<string name="summary_remove_game">%1$s 제거</string>
|
||||
<string name="mode_added_art_hint">폴더 이름을 기준으로 누락된 이미지를 채웁니다. 게임 폴더의 cover.jpg, hero.jpg, logo.png 또는 icon.png가 우선적으로 사용됩니다.</string>
|
||||
<string name="summary_remove_game">Remove %1$s</string>
|
||||
<string name="mode_added_remove_confirm">제거?</string>
|
||||
<string name="games_add">게임 추가</string>
|
||||
<string name="games_add_title">게임 추가:</string>
|
||||
@@ -344,10 +344,10 @@
|
||||
<string name="wincomp_active">이 게임에 설치됨 (%1$d)</string>
|
||||
<string name="wincomp_all">모든 구성 요소 (%1$d)</string>
|
||||
<string name="wincomp_installers">Windows 설치 프로그램 필요 (%1$d)</string>
|
||||
<string name="wincomp_installers_note">이 항목들은 내부에 풀어낼 패키지가 없는 자체 설치 프로그램이며, 설치하는 내용은 아직 기록되지 않았습니다. 대부분 Proton에 포함된 Mono가 이미 대신하는 오래된 런타임이며, 기록은 만들어지는 대로 추가됩니다.</string>
|
||||
<string name="wincomp_installers_note">이 항목들은 프리픽스 안에서 실제 설치 프로그램을 실행합니다(.NET, PhysX, XNA, 전체 Visual C++ 설치 프로그램 등). DroidDeck은 아직 지원하지 않으며 다음에 지원할 예정입니다.</string>
|
||||
<string name="wincomp_show">표시</string>
|
||||
<string name="wincomp_hide">숨기기</string>
|
||||
<string name="wincomp_needs_installer">자체 설치 프로그램을 실행합니다 (아직 기록 없음)</string>
|
||||
<string name="wincomp_needs_installer">Windows 설치 프로그램 필요 (예정)</string>
|
||||
<string name="wincomp_unsupported">아직 여기서 지원되지 않음</string>
|
||||
<string name="wincomp_loading">구성 요소를 불러오는 중…</string>
|
||||
<string name="wincomp_failed">설치할 수 없습니다: %1$s</string>
|
||||
@@ -895,8 +895,8 @@
|
||||
<string name="wadb_turn_off">제한 끄기</string>
|
||||
<string name="wadb_other_ways">기타 변경 방법</string>
|
||||
<string name="wadb_dev_try_first">1 · 개발자 옵션(먼저 시도)</string>
|
||||
<string name="wadb_restrict_on">\"하위 프로세스 제한 사용 중지\"를 끕니다.</string>
|
||||
<string name="wadb_restrict_off">\"하위 프로세스 제한 사용 중지\"를 켭니다.</string>
|
||||
<string name="wadb_restrict_on">\"하위 프로세스 제한\"을 켭니다.</string>
|
||||
<string name="wadb_restrict_off">\"하위 프로세스 제한\"을 끕니다.</string>
|
||||
<string name="wadb_computer_last">3 · PC ADB(최후의 수단)</string>
|
||||
<string name="wadb_only_if">무선 디버깅을 사용할 수 없을 때만 사용하세요.</string>
|
||||
<string name="wadb_computer_group">3 · PC ADB(최후의 수단)</string>
|
||||
@@ -1906,16 +1906,6 @@
|
||||
<string name="stores_free">무료</string>
|
||||
<string name="stores_resume">재개</string>
|
||||
<string name="stores_refresh">새로 고침</string>
|
||||
<string name="stores_sort">정렬</string>
|
||||
<string name="stores_sort_last_played">최근 플레이</string>
|
||||
<string name="stores_sort_recently_installed">최근 설치</string>
|
||||
<string name="stores_sort_title_asc">제목 A–Z</string>
|
||||
<string name="stores_sort_title_desc">제목 Z–A</string>
|
||||
<string name="stores_sort_size_desc">크기: 큰순</string>
|
||||
<string name="stores_sort_size_asc">크기: 작은순</string>
|
||||
<string name="stores_sort_release_date">출시일</string>
|
||||
<string name="stores_view_list">목록 보기</string>
|
||||
<string name="stores_view_cards">카드 보기</string>
|
||||
<string name="stores_show_mature">성인용 콘텐츠 표시</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
|
||||
@@ -887,8 +887,8 @@
|
||||
<string name="wadb_turn_off">Matikan had</string>
|
||||
<string name="wadb_other_ways">Cara lain untuk menukarnya</string>
|
||||
<string name="wadb_dev_try_first">1 · Pilihan pembangun (cuba dahulu)</string>
|
||||
<string name="wadb_restrict_on">Tetapkan “Lumpuhkan sekatan proses anak” mati.</string>
|
||||
<string name="wadb_restrict_off">Tetapkan “Lumpuhkan sekatan proses anak” hidup.</string>
|
||||
<string name="wadb_restrict_on">Tetapkan “Sekat proses anak” hidup.</string>
|
||||
<string name="wadb_restrict_off">Tetapkan “Sekat proses anak” mati.</string>
|
||||
<string name="wadb_computer_last">3 · ADB komputer (pilihan akhir)</string>
|
||||
<string name="wadb_only_if">Hanya jika Debugging Wayarles tidak tersedia.</string>
|
||||
<string name="wadb_computer_group">3 · ADB komputer (pilihan akhir)</string>
|
||||
@@ -1898,16 +1898,6 @@
|
||||
<string name="stores_free">Percuma</string>
|
||||
<string name="stores_resume">Sambung</string>
|
||||
<string name="stores_refresh">Segar semula</string>
|
||||
<string name="stores_sort">Isih</string>
|
||||
<string name="stores_sort_last_played">Baru dimainkan</string>
|
||||
<string name="stores_sort_recently_installed">Baru dipasang</string>
|
||||
<string name="stores_sort_title_asc">Tajuk A–Z</string>
|
||||
<string name="stores_sort_title_desc">Tajuk Z–A</string>
|
||||
<string name="stores_sort_size_desc">Saiz: terbesar</string>
|
||||
<string name="stores_sort_size_asc">Saiz: terkecil</string>
|
||||
<string name="stores_sort_release_date">Tarikh keluaran</string>
|
||||
<string name="stores_view_list">Paparan senarai</string>
|
||||
<string name="stores_view_cards">Paparan kad</string>
|
||||
<string name="stores_show_mature">Papar kandungan matang</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
|
||||
@@ -893,8 +893,8 @@
|
||||
<string name="wadb_turn_off">Slå av grensen</string>
|
||||
<string name="wadb_other_ways">Andre måter å endre det</string>
|
||||
<string name="wadb_dev_try_first">1 · Utvikleralternativer (prøv først)</string>
|
||||
<string name="wadb_restrict_on">Slå av «Slå av begrensninger for underordnede prosesser».</string>
|
||||
<string name="wadb_restrict_off">Slå på «Slå av begrensninger for underordnede prosesser».</string>
|
||||
<string name="wadb_restrict_on">Slå på «Restrict child processes».</string>
|
||||
<string name="wadb_restrict_off">Slå av «Restrict child processes».</string>
|
||||
<string name="wadb_computer_last">3 · ADB fra datamaskin (siste utvei)</string>
|
||||
<string name="wadb_only_if">Bare hvis trådløs feilsøking ikke er tilgjengelig.</string>
|
||||
<string name="wadb_computer_group">3 · ADB fra datamaskin (siste utvei)</string>
|
||||
@@ -1919,16 +1919,6 @@
|
||||
<string name="stores_free">Gratis</string>
|
||||
<string name="stores_resume">Gjenoppta</string>
|
||||
<string name="stores_refresh">Oppdater</string>
|
||||
<string name="stores_sort">Sorter</string>
|
||||
<string name="stores_sort_last_played">Nylig spilt</string>
|
||||
<string name="stores_sort_recently_installed">Nylig installert</string>
|
||||
<string name="stores_sort_title_asc">Tittel A–Å</string>
|
||||
<string name="stores_sort_title_desc">Tittel Å–A</string>
|
||||
<string name="stores_sort_size_desc">Størrelse: størst</string>
|
||||
<string name="stores_sort_size_asc">Størrelse: minst</string>
|
||||
<string name="stores_sort_release_date">Utgivelsesdato</string>
|
||||
<string name="stores_view_list">Listevisning</string>
|
||||
<string name="stores_view_cards">Kortvisning</string>
|
||||
<string name="stores_show_mature">Vis innhold for voksne</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
|
||||
@@ -893,8 +893,8 @@
|
||||
<string name="wadb_turn_off">Limiet uitschakelen</string>
|
||||
<string name="wadb_other_ways">Andere manieren om dit te wijzigen</string>
|
||||
<string name="wadb_dev_try_first">1 · Opties voor ontwikkelaars (probeer dit eerst)</string>
|
||||
<string name="wadb_restrict_on">Zet “Beperkingen voor onderliggende processen uitzetten” uit.</string>
|
||||
<string name="wadb_restrict_off">Zet “Beperkingen voor onderliggende processen uitzetten” aan.</string>
|
||||
<string name="wadb_restrict_on">Zet “Subprocessen beperken” aan.</string>
|
||||
<string name="wadb_restrict_off">Zet “Subprocessen beperken” uit.</string>
|
||||
<string name="wadb_computer_last">3 · Computer-ADB (laatste redmiddel)</string>
|
||||
<string name="wadb_only_if">Alleen als Draadloos debuggen niet beschikbaar is.</string>
|
||||
<string name="wadb_computer_group">3 · Computer-ADB (laatste redmiddel)</string>
|
||||
@@ -1919,16 +1919,6 @@
|
||||
<string name="stores_free">Gratis</string>
|
||||
<string name="stores_resume">Hervatten</string>
|
||||
<string name="stores_refresh">Vernieuwen</string>
|
||||
<string name="stores_sort">Sorteren</string>
|
||||
<string name="stores_sort_last_played">Onlangs gespeeld</string>
|
||||
<string name="stores_sort_recently_installed">Onlangs geïnstalleerd</string>
|
||||
<string name="stores_sort_title_asc">Titel A–Z</string>
|
||||
<string name="stores_sort_title_desc">Titel Z–A</string>
|
||||
<string name="stores_sort_size_desc">Grootte: grootste</string>
|
||||
<string name="stores_sort_size_asc">Grootte: kleinste</string>
|
||||
<string name="stores_sort_release_date">Releasedatum</string>
|
||||
<string name="stores_view_list">Lijstweergave</string>
|
||||
<string name="stores_view_cards">Kaartweergave</string>
|
||||
<string name="stores_show_mature">Inhoud voor volwassenen tonen</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
|
||||
@@ -905,8 +905,8 @@
|
||||
<string name="wadb_turn_off">Wyłącz limit</string>
|
||||
<string name="wadb_other_ways">Inne sposoby na zmianę tego</string>
|
||||
<string name="wadb_dev_try_first">1 · Opcje programisty (spróbuj najpierw)</string>
|
||||
<string name="wadb_restrict_on">Ustaw „Wyłącz ograniczenia procesów podrzędnych aplikacji” na wyłączone.</string>
|
||||
<string name="wadb_restrict_off">Ustaw „Wyłącz ograniczenia procesów podrzędnych aplikacji” na włączone.</string>
|
||||
<string name="wadb_restrict_on">Ustaw „Ogranicz procesy podrzędne” na włączone.</string>
|
||||
<string name="wadb_restrict_off">Ustaw „Ogranicz procesy podrzędne” na wyłączone.</string>
|
||||
<string name="wadb_computer_last">3 · Komputer z ADB (ostatnia opcja)</string>
|
||||
<string name="wadb_only_if">Tylko jeśli debugowanie bezprzewodowe jest niedostępne.</string>
|
||||
<string name="wadb_computer_group">3 · Komputer z ADB (ostatnia opcja)</string>
|
||||
@@ -1961,16 +1961,6 @@
|
||||
<string name="stores_free">Bezpłatna</string>
|
||||
<string name="stores_resume">Wznów</string>
|
||||
<string name="stores_refresh">Odśwież</string>
|
||||
<string name="stores_sort">Sortuj</string>
|
||||
<string name="stores_sort_last_played">Ostatnio grane</string>
|
||||
<string name="stores_sort_recently_installed">Ostatnio zainstalowane</string>
|
||||
<string name="stores_sort_title_asc">Tytuł A–Z</string>
|
||||
<string name="stores_sort_title_desc">Tytuł Z–A</string>
|
||||
<string name="stores_sort_size_desc">Rozmiar: największy</string>
|
||||
<string name="stores_sort_size_asc">Rozmiar: najmniejszy</string>
|
||||
<string name="stores_sort_release_date">Data wydania</string>
|
||||
<string name="stores_view_list">Widok listy</string>
|
||||
<string name="stores_view_cards">Widok kart</string>
|
||||
<string name="stores_show_mature">Pokaż treści dla dorosłych</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
|
||||
@@ -899,8 +899,8 @@
|
||||
<string name="wadb_turn_off">Desativar limite</string>
|
||||
<string name="wadb_other_ways">Outras formas de o alterar</string>
|
||||
<string name="wadb_dev_try_first">1 · Opções de programador (tente primeiro)</string>
|
||||
<string name="wadb_restrict_on">Desative “Desativar restrições de processos secundários”.</string>
|
||||
<string name="wadb_restrict_off">Ative “Desativar restrições de processos secundários”.</string>
|
||||
<string name="wadb_restrict_on">Ative “Restringir processos secundários”.</string>
|
||||
<string name="wadb_restrict_off">Desative “Restringir processos secundários”.</string>
|
||||
<string name="wadb_computer_last">3 · ADB num computador (último recurso)</string>
|
||||
<string name="wadb_only_if">Apenas se a Depuração sem fios não estiver disponível.</string>
|
||||
<string name="wadb_computer_group">3 · ADB num computador (último recurso)</string>
|
||||
@@ -1940,16 +1940,6 @@
|
||||
<string name="stores_free">Grátis</string>
|
||||
<string name="stores_resume">Retomar</string>
|
||||
<string name="stores_refresh">Atualizar</string>
|
||||
<string name="stores_sort">Ordenar</string>
|
||||
<string name="stores_sort_last_played">Jogados recentemente</string>
|
||||
<string name="stores_sort_recently_installed">Instalados recentemente</string>
|
||||
<string name="stores_sort_title_asc">Título A–Z</string>
|
||||
<string name="stores_sort_title_desc">Título Z–A</string>
|
||||
<string name="stores_sort_size_desc">Tamanho: maior</string>
|
||||
<string name="stores_sort_size_asc">Tamanho: menor</string>
|
||||
<string name="stores_sort_release_date">Data de lançamento</string>
|
||||
<string name="stores_view_list">Vista de lista</string>
|
||||
<string name="stores_view_cards">Vista de cartões</string>
|
||||
<string name="stores_show_mature">Mostrar conteúdo para adultos</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
|
||||
@@ -899,8 +899,8 @@
|
||||
<string name="wadb_turn_off">Desativar o limite</string>
|
||||
<string name="wadb_other_ways">Outras formas de alterar</string>
|
||||
<string name="wadb_dev_try_first">1 · Opções do desenvolvedor (tente primeiro)</string>
|
||||
<string name="wadb_restrict_on">Desative “Desativar restrições de processos filhos”.</string>
|
||||
<string name="wadb_restrict_off">Ative “Desativar restrições de processos filhos”.</string>
|
||||
<string name="wadb_restrict_on">Ative “Restringir processos filhos”.</string>
|
||||
<string name="wadb_restrict_off">Desative “Restringir processos filhos”.</string>
|
||||
<string name="wadb_computer_last">3 · ADB pelo computador (último recurso)</string>
|
||||
<string name="wadb_only_if">Só se a Depuração por Wi-Fi não estiver disponível.</string>
|
||||
<string name="wadb_computer_group">3 · ADB pelo computador (último recurso)</string>
|
||||
@@ -1940,16 +1940,6 @@
|
||||
<string name="stores_free">Grátis</string>
|
||||
<string name="stores_resume">Retomar</string>
|
||||
<string name="stores_refresh">Atualizar</string>
|
||||
<string name="stores_sort">Ordenar</string>
|
||||
<string name="stores_sort_last_played">Jogados recentemente</string>
|
||||
<string name="stores_sort_recently_installed">Instalados recentemente</string>
|
||||
<string name="stores_sort_title_asc">Título A–Z</string>
|
||||
<string name="stores_sort_title_desc">Título Z–A</string>
|
||||
<string name="stores_sort_size_desc">Tamanho: maior</string>
|
||||
<string name="stores_sort_size_asc">Tamanho: menor</string>
|
||||
<string name="stores_sort_release_date">Data de lançamento</string>
|
||||
<string name="stores_view_list">Vista de lista</string>
|
||||
<string name="stores_view_cards">Vista de cartões</string>
|
||||
<string name="stores_show_mature">Mostrar conteúdo adulto</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
@@ -2267,18 +2257,4 @@
|
||||
<string name="stores_hltb_completionist">Completista</string>
|
||||
<string name="stores_hltb_hours">%1$s h</string>
|
||||
<string name="stores_hltb_minutes">%1$d min</string>
|
||||
<string name="mode_zram">Compressão zRAM</string>
|
||||
<string name="mode_zram_hint">Enquanto um jogo roda, a memória do cliente Steam é comprimida na zram do dispositivo, deixando mais RAM para o jogo. Vale a partir da próxima vez que a Steam iniciar.</string>
|
||||
<string name="mode_zram_unsupported">Indisponível: este dispositivo não tem swap ativo, ou o kernel é anterior à versão 5.4.</string>
|
||||
<string name="setup_reset_settings">Redefinir todas as configurações</string>
|
||||
<string name="setup_reset_settings_title">Redefinir todas as configurações?</string>
|
||||
<string name="setup_reset_settings_body">As configurações de tela, desempenho, controle, tema, idioma e inicializador voltam ao padrão. Seus jogos, o login da Steam, as contas das lojas, os drivers baixados e as pastas de armazenamento são mantidos.</string>
|
||||
<string name="setup_reset_settings_button">Redefinir</string>
|
||||
<string name="setup_reset_settings_hint">Volta todas as configurações ao padrão</string>
|
||||
<string name="setup_reset_settings_partial">As configurações foram redefinidas, mas algumas partes não puderam ser. Os detalhes estão nos registros.</string>
|
||||
<string name="setup_reset_settings_profiles">Redefinir também os perfis de jogo (Proton, FEX, componentes e ambiente de cada jogo e o ambiente do perfil Padrão)</string>
|
||||
<string name="setup_reset_settings_session_running">Encerre a sessão antes de redefinir as configurações.</string>
|
||||
<string name="stores_storage_insufficient">Espaço livre insuficiente: são necessários %1$s, só há %2$s livres</string>
|
||||
<string name="stores_storage_low">Espaço insuficiente (%1$s livres, são necessários %2$s)</string>
|
||||
<string name="stores_target_free_unknown">Espaço livre desconhecido</string>
|
||||
</resources>
|
||||
@@ -899,8 +899,8 @@
|
||||
<string name="wadb_turn_off">Dezactivează limita</string>
|
||||
<string name="wadb_other_ways">Alte moduri de a o schimba</string>
|
||||
<string name="wadb_dev_try_first">1 · Opțiuni pentru dezvoltatori (încearcă mai întâi)</string>
|
||||
<string name="wadb_restrict_on">Dezactivează „Dezactivează restricțiile pentru procese secundare”.</string>
|
||||
<string name="wadb_restrict_off">Activează „Dezactivează restricțiile pentru procese secundare”.</string>
|
||||
<string name="wadb_restrict_on">Activează „Restricționează procesele-copil”.</string>
|
||||
<string name="wadb_restrict_off">Dezactivează „Restricționează procesele-copil”.</string>
|
||||
<string name="wadb_computer_last">3 · ADB pe computer (ultima soluție)</string>
|
||||
<string name="wadb_only_if">Doar dacă Depanarea wireless nu este disponibilă.</string>
|
||||
<string name="wadb_computer_group">3 · ADB pe computer (ultima soluție)</string>
|
||||
@@ -1940,16 +1940,6 @@
|
||||
<string name="stores_free">Gratuit</string>
|
||||
<string name="stores_resume">Reluare</string>
|
||||
<string name="stores_refresh">Reîmprospătează</string>
|
||||
<string name="stores_sort">Sortează</string>
|
||||
<string name="stores_sort_last_played">Jucate recent</string>
|
||||
<string name="stores_sort_recently_installed">Instalate recent</string>
|
||||
<string name="stores_sort_title_asc">Titlu A–Z</string>
|
||||
<string name="stores_sort_title_desc">Titlu Z–A</string>
|
||||
<string name="stores_sort_size_desc">Dimensiune: cea mai mare</string>
|
||||
<string name="stores_sort_size_asc">Dimensiune: cea mai mică</string>
|
||||
<string name="stores_sort_release_date">Data lansării</string>
|
||||
<string name="stores_view_list">Vizualizare listă</string>
|
||||
<string name="stores_view_cards">Vizualizare carduri</string>
|
||||
<string name="stores_show_mature">Arată conținutul pentru adulți</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
|
||||
@@ -306,8 +306,8 @@
|
||||
<string name="mode_sgdb_key">API-ключ SteamGridDB</string>
|
||||
<string name="mode_sgdb_key_yours">Ваш ключ</string>
|
||||
<string name="mode_sgdb_edit">Изменить…</string>
|
||||
<string name="mode_added_art_hint">Дополняет отсутствующие изображения из Steam, затем из SteamGridDB. Файлы cover.jpg, hero.jpg, logo.png или icon.png в папке с игрой имеют приоритет.</string>
|
||||
<string name="summary_remove_game">Убрать %1$s</string>
|
||||
<string name="mode_added_art_hint">Дополняет отсутствующие изображения по имени папки. Файлы cover.jpg, hero.jpg, logo.png или icon.png в папке с игрой имеют приоритет.</string>
|
||||
<string name="summary_remove_game">Remove %1$s</string>
|
||||
<string name="mode_added_remove_confirm">Убрать?</string>
|
||||
<string name="games_add">Добавить игру</string>
|
||||
<string name="games_add_title">Добавить игру:</string>
|
||||
@@ -913,8 +913,8 @@
|
||||
<string name="wadb_turn_off">Отключить ограничение</string>
|
||||
<string name="wadb_other_ways">Другие способы изменения</string>
|
||||
<string name="wadb_dev_try_first">1 · Для разработчиков (сначала попробуйте это)</string>
|
||||
<string name="wadb_restrict_on">Отключите «Отключить ограничения для дочерних процессов».</string>
|
||||
<string name="wadb_restrict_off">Включите «Отключить ограничения для дочерних процессов».</string>
|
||||
<string name="wadb_restrict_on">Включите «Ограничение дочерних процессов».</string>
|
||||
<string name="wadb_restrict_off">Отключите «Ограничение дочерних процессов».</string>
|
||||
<string name="wadb_computer_last">3 · ADB на ПК (крайняя мера)</string>
|
||||
<string name="wadb_only_if">Используйте только если отладка по Wi-Fi недоступна.</string>
|
||||
<string name="wadb_computer_group">3 · ADB на ПК (крайняя мера)</string>
|
||||
@@ -1969,16 +1969,6 @@
|
||||
<string name="stores_free">Бесплатно</string>
|
||||
<string name="stores_resume">Продолжить</string>
|
||||
<string name="stores_refresh">Обновить</string>
|
||||
<string name="stores_sort">Сортировка</string>
|
||||
<string name="stores_sort_last_played">Недавно запущенные</string>
|
||||
<string name="stores_sort_recently_installed">Недавно установленные</string>
|
||||
<string name="stores_sort_title_asc">Название А–Я</string>
|
||||
<string name="stores_sort_title_desc">Название Я–А</string>
|
||||
<string name="stores_sort_size_desc">Размер: по убыванию</string>
|
||||
<string name="stores_sort_size_asc">Размер: по возрастанию</string>
|
||||
<string name="stores_sort_release_date">Дата выхода</string>
|
||||
<string name="stores_view_list">Вид списком</string>
|
||||
<string name="stores_view_cards">Вид карточками</string>
|
||||
<string name="stores_show_mature">Показывать контент для взрослых</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
@@ -2300,10 +2290,4 @@
|
||||
<string name="drawer_component_downloads">Скачать компоненты</string>
|
||||
<string name="drawer_component_downloads_hint">Загрузки общие со страницей «Компоненты». Выберите выше скачанную версию, чтобы использовать её при следующем запуске игры.</string>
|
||||
<string name="drawer_component_choose_download">Выберите версию для скачивания</string>
|
||||
<string name="mode_zram">Сжатие zRAM</string>
|
||||
<string name="mode_zram_hint">Пока идёт игра, память клиента Steam сжимается в zram устройства, и игре остаётся больше ОЗУ. Применяется при следующем запуске Steam.</string>
|
||||
<string name="mode_zram_unsupported">Недоступно: на устройстве нет zram или swap, либо его ядро старше 5.4.</string>
|
||||
<string name="stores_storage_insufficient">Недостаточно свободного места: нужно %1$s, свободно только %2$s</string>
|
||||
<string name="stores_storage_low">Недостаточно места (свободно %1$s, нужно %2$s)</string>
|
||||
<string name="stores_target_free_unknown">Свободное место неизвестно</string>
|
||||
</resources>
|
||||
@@ -893,8 +893,8 @@
|
||||
<string name="wadb_turn_off">Stäng av gränsen</string>
|
||||
<string name="wadb_other_ways">Andra sätt att ändra det</string>
|
||||
<string name="wadb_dev_try_first">1 · Utvecklaralternativ (prova först)</string>
|
||||
<string name="wadb_restrict_on">Slå av ”Inaktivera begränsningar på underordnade processer”.</string>
|
||||
<string name="wadb_restrict_off">Slå på ”Inaktivera begränsningar på underordnade processer”.</string>
|
||||
<string name="wadb_restrict_on">Slå på ”Begränsa underprocesser”.</string>
|
||||
<string name="wadb_restrict_off">Slå av ”Begränsa underprocesser”.</string>
|
||||
<string name="wadb_computer_last">3 · Dator-ADB (sista utväg)</string>
|
||||
<string name="wadb_only_if">Bara om Trådlös felsökning inte är tillgänglig.</string>
|
||||
<string name="wadb_computer_group">3 · Dator-ADB (sista utväg)</string>
|
||||
@@ -1919,16 +1919,6 @@
|
||||
<string name="stores_free">Gratis</string>
|
||||
<string name="stores_resume">Återuppta</string>
|
||||
<string name="stores_refresh">Uppdatera</string>
|
||||
<string name="stores_sort">Sortera</string>
|
||||
<string name="stores_sort_last_played">Senast spelade</string>
|
||||
<string name="stores_sort_recently_installed">Senast installerade</string>
|
||||
<string name="stores_sort_title_asc">Titel A–Ö</string>
|
||||
<string name="stores_sort_title_desc">Titel Ö–A</string>
|
||||
<string name="stores_sort_size_desc">Storlek: störst</string>
|
||||
<string name="stores_sort_size_asc">Storlek: minst</string>
|
||||
<string name="stores_sort_release_date">Utgivningsdatum</string>
|
||||
<string name="stores_view_list">Listvy</string>
|
||||
<string name="stores_view_cards">Kortvy</string>
|
||||
<string name="stores_show_mature">Visa innehåll för vuxna</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
|
||||
@@ -887,8 +887,8 @@
|
||||
<string name="wadb_turn_off">ปิดขีดจำกัด</string>
|
||||
<string name="wadb_other_ways">วิธีอื่นในการเปลี่ยนค่านี้</string>
|
||||
<string name="wadb_dev_try_first">1 · ตัวเลือกสำหรับนักพัฒนา (ลองก่อน)</string>
|
||||
<string name="wadb_restrict_on">ปิด “ปิดการจำกัดการประมวลผลข้อมูลย่อย”</string>
|
||||
<string name="wadb_restrict_off">เปิด “ปิดการจำกัดการประมวลผลข้อมูลย่อย”</string>
|
||||
<string name="wadb_restrict_on">เปิด “Restrict child processes”</string>
|
||||
<string name="wadb_restrict_off">ปิด “Restrict child processes”</string>
|
||||
<string name="wadb_computer_last">3 · ADB จากคอมพิวเตอร์ (ทางเลือกสุดท้าย)</string>
|
||||
<string name="wadb_only_if">ใช้เฉพาะเมื่อ Wireless debugging ใช้งานไม่ได้</string>
|
||||
<string name="wadb_computer_group">3 · ADB จากคอมพิวเตอร์ (ทางเลือกสุดท้าย)</string>
|
||||
@@ -1898,16 +1898,6 @@
|
||||
<string name="stores_free">ฟรี</string>
|
||||
<string name="stores_resume">ดำเนินการต่อ</string>
|
||||
<string name="stores_refresh">รีเฟรช</string>
|
||||
<string name="stores_sort">จัดเรียง</string>
|
||||
<string name="stores_sort_last_played">เล่นล่าสุด</string>
|
||||
<string name="stores_sort_recently_installed">เพิ่งติดตั้ง</string>
|
||||
<string name="stores_sort_title_asc">ชื่อ A–Z</string>
|
||||
<string name="stores_sort_title_desc">ชื่อ Z–A</string>
|
||||
<string name="stores_sort_size_desc">ขนาด: ใหญ่สุด</string>
|
||||
<string name="stores_sort_size_asc">ขนาด: เล็กสุด</string>
|
||||
<string name="stores_sort_release_date">วันวางจำหน่าย</string>
|
||||
<string name="stores_view_list">มุมมองรายการ</string>
|
||||
<string name="stores_view_cards">มุมมองการ์ด</string>
|
||||
<string name="stores_show_mature">แสดงเนื้อหาสำหรับผู้ใหญ่</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
|
||||
@@ -893,8 +893,8 @@
|
||||
<string name="wadb_turn_off">Sınırı kapat</string>
|
||||
<string name="wadb_other_ways">Değiştirmenin diğer yolları</string>
|
||||
<string name="wadb_dev_try_first">1 · Geliştirici seçenekleri (önce bunu deneyin)</string>
|
||||
<string name="wadb_restrict_on">“Alt işlem kısıtlamalarını devre dışı bırak” seçeneğini kapalı olarak ayarlayın.</string>
|
||||
<string name="wadb_restrict_off">“Alt işlem kısıtlamalarını devre dışı bırak” seçeneğini açık olarak ayarlayın.</string>
|
||||
<string name="wadb_restrict_on">“Alt süreçleri kısıtla” seçeneğini açık olarak ayarlayın.</string>
|
||||
<string name="wadb_restrict_off">“Alt süreçleri kısıtla” seçeneğini kapalı olarak ayarlayın.</string>
|
||||
<string name="wadb_computer_last">3 · Bilgisayardan ADB (son yöntem)</string>
|
||||
<string name="wadb_only_if">Yalnızca Kablosuz hata ayıklama kullanılamıyorsa.</string>
|
||||
<string name="wadb_computer_group">3 · Bilgisayardan ADB (son yöntem)</string>
|
||||
@@ -1919,16 +1919,6 @@
|
||||
<string name="stores_free">Ücretsiz</string>
|
||||
<string name="stores_resume">Sürdür</string>
|
||||
<string name="stores_refresh">Yenile</string>
|
||||
<string name="stores_sort">Sırala</string>
|
||||
<string name="stores_sort_last_played">Son oynanan</string>
|
||||
<string name="stores_sort_recently_installed">Son yüklenen</string>
|
||||
<string name="stores_sort_title_asc">Başlık A–Z</string>
|
||||
<string name="stores_sort_title_desc">Başlık Z–A</string>
|
||||
<string name="stores_sort_size_desc">Boyut: en büyük</string>
|
||||
<string name="stores_sort_size_asc">Boyut: en küçük</string>
|
||||
<string name="stores_sort_release_date">Çıkış tarihi</string>
|
||||
<string name="stores_view_list">Liste görünümü</string>
|
||||
<string name="stores_view_cards">Kart görünümü</string>
|
||||
<string name="stores_show_mature">Yetişkin içeriği göster</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
|
||||
@@ -905,8 +905,8 @@
|
||||
<string name="wadb_turn_off">Вимкнути обмеження</string>
|
||||
<string name="wadb_other_ways">Інші способи змінити це</string>
|
||||
<string name="wadb_dev_try_first">1 · Параметри розробника (спробуйте спершу)</string>
|
||||
<string name="wadb_restrict_on">Вимкніть «Вимкнути обмеження для дочірніх процесів».</string>
|
||||
<string name="wadb_restrict_off">Увімкніть «Вимкнути обмеження для дочірніх процесів».</string>
|
||||
<string name="wadb_restrict_on">Увімкніть «Обмежити дочірні процеси».</string>
|
||||
<string name="wadb_restrict_off">Вимкніть «Обмежити дочірні процеси».</string>
|
||||
<string name="wadb_computer_last">3 · ADB з комп’ютера (останній варіант)</string>
|
||||
<string name="wadb_only_if">Лише якщо бездротове налагодження недоступне.</string>
|
||||
<string name="wadb_computer_group">3 · ADB з комп’ютера (останній варіант)</string>
|
||||
@@ -1961,16 +1961,6 @@
|
||||
<string name="stores_free">Безкоштовно</string>
|
||||
<string name="stores_resume">Продовжити</string>
|
||||
<string name="stores_refresh">Оновити</string>
|
||||
<string name="stores_sort">Сортувати</string>
|
||||
<string name="stores_sort_last_played">Нещодавно запущені</string>
|
||||
<string name="stores_sort_recently_installed">Нещодавно встановлені</string>
|
||||
<string name="stores_sort_title_asc">Назва А–Я</string>
|
||||
<string name="stores_sort_title_desc">Назва Я–А</string>
|
||||
<string name="stores_sort_size_desc">Розмір: найбільший</string>
|
||||
<string name="stores_sort_size_asc">Розмір: найменший</string>
|
||||
<string name="stores_sort_release_date">Дата виходу</string>
|
||||
<string name="stores_view_list">Вигляд списком</string>
|
||||
<string name="stores_view_cards">Вигляд картками</string>
|
||||
<string name="stores_show_mature">Показувати контент для дорослих</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
|
||||
@@ -887,8 +887,8 @@
|
||||
<string name="wadb_turn_off">Tắt giới hạn</string>
|
||||
<string name="wadb_other_ways">Cách khác để đổi nó</string>
|
||||
<string name="wadb_dev_try_first">1 · Tùy chọn cho nhà phát triển (thử trước)</string>
|
||||
<string name="wadb_restrict_on">Đặt “Tắt các mục hạn chế đối với tiến trình con” thành tắt.</string>
|
||||
<string name="wadb_restrict_off">Đặt “Tắt các mục hạn chế đối với tiến trình con” thành bật.</string>
|
||||
<string name="wadb_restrict_on">Đặt “Restrict child processes” thành bật.</string>
|
||||
<string name="wadb_restrict_off">Đặt “Restrict child processes” thành tắt.</string>
|
||||
<string name="wadb_computer_last">3 · ADB từ máy tính (phương án cuối)</string>
|
||||
<string name="wadb_only_if">Chỉ khi Gỡ lỗi qua mạng không dây không khả dụng.</string>
|
||||
<string name="wadb_computer_group">3 · ADB từ máy tính (phương án cuối)</string>
|
||||
@@ -1898,16 +1898,6 @@
|
||||
<string name="stores_free">Miễn phí</string>
|
||||
<string name="stores_resume">Tiếp tục</string>
|
||||
<string name="stores_refresh">Làm mới</string>
|
||||
<string name="stores_sort">Sắp xếp</string>
|
||||
<string name="stores_sort_last_played">Chơi gần đây</string>
|
||||
<string name="stores_sort_recently_installed">Cài gần đây</string>
|
||||
<string name="stores_sort_title_asc">Tên A–Z</string>
|
||||
<string name="stores_sort_title_desc">Tên Z–A</string>
|
||||
<string name="stores_sort_size_desc">Kích thước: lớn nhất</string>
|
||||
<string name="stores_sort_size_asc">Kích thước: nhỏ nhất</string>
|
||||
<string name="stores_sort_release_date">Ngày phát hành</string>
|
||||
<string name="stores_view_list">Chế độ danh sách</string>
|
||||
<string name="stores_view_cards">Chế độ thẻ</string>
|
||||
<string name="stores_show_mature">Hiện nội dung người lớn</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
|
||||
@@ -219,7 +219,7 @@
|
||||
<string name="common_update">更新</string>
|
||||
<string name="common_checking">检查中…</string>
|
||||
<string name="common_working">处理中…</string>
|
||||
<string name="common_forget">清除</string>
|
||||
<string name="common_forget">移除</string>
|
||||
<string name="common_add_ellipsis">添加…</string>
|
||||
<string name="common_use">使用</string>
|
||||
<string name="common_applies_next_session">将在下次会话生效。</string>
|
||||
@@ -306,8 +306,8 @@
|
||||
<string name="mode_sgdb_key">SteamGridDB API 密钥</string>
|
||||
<string name="mode_sgdb_key_yours">你的密钥</string>
|
||||
<string name="mode_sgdb_edit">编辑…</string>
|
||||
<string name="mode_added_art_hint">自动从 Steam、其次从 SteamGridDB 补齐缺失的美术图。游戏文件夹中你自己的 cover.jpg、hero.jpg、logo.png 或 icon.png 优先。</string>
|
||||
<string name="summary_remove_game">移除 %1$s</string>
|
||||
<string name="mode_added_art_hint">按文件夹名补齐缺失的美术图。游戏文件夹中你自己的 cover.jpg、hero.jpg、logo.png 或 icon.png 优先。</string>
|
||||
<string name="summary_remove_game">Remove %1$s</string>
|
||||
<string name="mode_added_remove_confirm">移除?</string>
|
||||
<string name="games_add">添加游戏</string>
|
||||
<string name="games_add_title">添加游戏:</string>
|
||||
@@ -344,10 +344,10 @@
|
||||
<string name="wincomp_active">已为此游戏安装(%1$d)</string>
|
||||
<string name="wincomp_all">全部组件(%1$d)</string>
|
||||
<string name="wincomp_installers">需要 Windows 安装程序(%1$d)</string>
|
||||
<string name="wincomp_installers_note">这些是各自的安装程序,内部没有可拆出的软件包,目前也还没有记录它们会安装什么。其中多数是 Proton 内置 Mono 已能替代的旧运行时;安装记录会陆续补充。</string>
|
||||
<string name="wincomp_installers_note">这些组件需要在前缀中运行真正的安装程序(.NET、PhysX、XNA、完整的 Visual C++ 安装程序等)。DroidDeck 暂时无法做到,接下来会支持。</string>
|
||||
<string name="wincomp_show">显示</string>
|
||||
<string name="wincomp_hide">隐藏</string>
|
||||
<string name="wincomp_needs_installer">会执行自己的安装程序(暂无安装记录)</string>
|
||||
<string name="wincomp_needs_installer">需要 Windows 安装程序(即将支持)</string>
|
||||
<string name="wincomp_unsupported">此处暂不支持</string>
|
||||
<string name="wincomp_loading">正在加载组件…</string>
|
||||
<string name="wincomp_failed">无法安装:%1$s</string>
|
||||
@@ -460,7 +460,7 @@
|
||||
<string name="comp_esync_wanted">%1$s · 尚无 droiddeck-esync 包</string>
|
||||
<string name="comp_esync_builtin">%1$s · 内置 esync,无需包</string>
|
||||
<string name="comp_gpu_drivers">GPU 驱动</string>
|
||||
<string name="comp_reapplied">%1$s · 于 %2$s 启动时重新应用</string>
|
||||
<string name="comp_reapplied">%1$s · 于启动 %2$s 时重新应用</string>
|
||||
<string name="comp_next_queued">下一个:%1$s · 在游戏关闭后</string>
|
||||
<string name="comp_in_use">正在使用 %1$s:%2$s</string>
|
||||
<string name="comp_waits">等待游戏关闭</string>
|
||||
@@ -626,7 +626,7 @@
|
||||
</plurals>
|
||||
<string name="drawer_no_proton">尚未安装 Proton。</string>
|
||||
<string name="drawer_game_running">游戏运行中</string>
|
||||
<string name="drawer_reapplied">于 %1$s 启动时重新应用</string>
|
||||
<string name="drawer_reapplied">于启动 %1$s 时重新应用</string>
|
||||
<string name="drawer_original">原件</string>
|
||||
<string name="drawer_components_note">在“组件”页面导入和删除。</string>
|
||||
<string name="setup_check_done">完成</string>
|
||||
@@ -895,8 +895,8 @@
|
||||
<string name="wadb_turn_off">关闭限制</string>
|
||||
<string name="wadb_other_ways">其他修改方式</string>
|
||||
<string name="wadb_dev_try_first">1 · 开发者选项(优先尝试)</string>
|
||||
<string name="wadb_restrict_on">把“停止限制子进程”设为关。</string>
|
||||
<string name="wadb_restrict_off">把“停止限制子进程”设为开。</string>
|
||||
<string name="wadb_restrict_on">把“限制子进程”设为开。</string>
|
||||
<string name="wadb_restrict_off">把“限制子进程”设为关。</string>
|
||||
<string name="wadb_computer_last">3 · 电脑 ADB(最后手段)</string>
|
||||
<string name="wadb_only_if">仅在无线调试不可用时使用。</string>
|
||||
<string name="wadb_computer_group">3 · 电脑 ADB(最后手段)</string>
|
||||
@@ -1159,7 +1159,7 @@
|
||||
<item quantity="other">已将 %1$d 个文件导出为 %2$s:%3$s</item>
|
||||
</plurals>
|
||||
<string name="main_saves_pick_folder">选择 %1$s 的保存位置(%2$s)</string>
|
||||
<string name="main_action_failed">%1$s 失败:%2$s</string>
|
||||
<string name="main_action_failed">%1$s失败:%2$s</string>
|
||||
<string name="main_no_logs_yet">还没有会话日志:请先运行一次会话。</string>
|
||||
<string name="main_no_logs_to_clear">没有可清除的会话日志。</string>
|
||||
<plurals name="main_logs_cleared">
|
||||
@@ -1196,7 +1196,7 @@
|
||||
<string name="drivers_pick_any">选择驱动 zip 包或 Android + Linux 组合包</string>
|
||||
<string name="main_pkg_problem">%1$s:%2$s</string>
|
||||
<string name="main_removing_named">正在移除 %1$s…</string>
|
||||
<string name="main_forgetting_named">正在清除 %1$s…</string>
|
||||
<string name="main_forgetting_named">正在移除 %1$s…</string>
|
||||
<string name="main_pick_game_storage">选择游戏存储文件夹</string>
|
||||
<string name="main_pick_decky_zip">选择 Decky 插件 ZIP 包</string>
|
||||
<string name="main_storage_not_usable">无法使用:%1$s</string>
|
||||
@@ -1906,16 +1906,6 @@
|
||||
<string name="stores_free">免费</string>
|
||||
<string name="stores_resume">继续</string>
|
||||
<string name="stores_refresh">刷新</string>
|
||||
<string name="stores_sort">排序</string>
|
||||
<string name="stores_sort_last_played">最近游玩</string>
|
||||
<string name="stores_sort_recently_installed">最近安装</string>
|
||||
<string name="stores_sort_title_asc">标题 A–Z</string>
|
||||
<string name="stores_sort_title_desc">标题 Z–A</string>
|
||||
<string name="stores_sort_size_desc">大小: 从大到小</string>
|
||||
<string name="stores_sort_size_asc">大小: 从小到大</string>
|
||||
<string name="stores_sort_release_date">发行日期</string>
|
||||
<string name="stores_view_list">列表视图</string>
|
||||
<string name="stores_view_cards">卡片视图</string>
|
||||
<string name="stores_show_mature">显示成人内容</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
@@ -2225,8 +2215,4 @@
|
||||
<string name="drawer_component_downloads">下载组件</string>
|
||||
<string name="drawer_component_downloads_hint">下载内容与“组件”页面共享。在上方选择已下载的版本,即可在下次启动游戏时使用。</string>
|
||||
<string name="drawer_component_choose_download">选择要下载的版本</string>
|
||||
<string name="display_picture_position">画面位置</string>
|
||||
<string name="display_position_top">置顶</string>
|
||||
<string name="display_position_bottom">置底</string>
|
||||
<string name="display_position_center">居中(默认)</string>
|
||||
</resources>
|
||||
@@ -38,7 +38,7 @@
|
||||
<string name="lsfg_import_invalid">此檔案不是 Lossless Scaling 的 Lossless.dll</string>
|
||||
<string name="lsfg_import_failed">無法從此 Lossless.dll 準備 LSFG</string>
|
||||
<string name="lsfg_problem_missing">LSFG 需要 Steam 上的 Lossless Scaling 或已匯入的 Lossless.dll</string>
|
||||
<string name="lsfg_problem_failed">LSFG 無法從 Lossless.dll 準備著色器</string>
|
||||
<string name="lsfg_problem_failed">LSFG 無法從 Lossless.dll 準備着色器</string>
|
||||
<string name="hud_fg_unsupported">%1$s:不支援</string>
|
||||
<string name="hud_fg_failed">%1$s:引擎故障</string>
|
||||
<string name="hud_fg_needs_lossless">%1$s:需要 Lossless Scaling</string>
|
||||
@@ -68,9 +68,9 @@
|
||||
<string name="game_env_unused">標準 Proton 運行環境不會讀取此變數。</string>
|
||||
<string name="game_env_loading">正在載入…</string>
|
||||
<string name="game_env_feature">D3D12 功能級別覆寫。12_2 會回報 DirectX 12 Ultimate 功能;不支援的功能可能會出錯。不設定則自動偵測。</string>
|
||||
<string name="game_env_shader">D3D12 著色器模型覆寫。6_9 需要夠新的 VKD3D 及相應的 GPU 功能。不設定則自動偵測。</string>
|
||||
<string name="game_env_cache">保持啟用 Mesa 著色器快取,以減少重複編譯。設為 false 即啟用快取。</string>
|
||||
<string name="game_env_cache_size">Mesa 著色器快取的大小上限,例如 1G。快取越大,佔用的儲存空間越多。</string>
|
||||
<string name="game_env_shader">D3D12 着色器模型覆寫。6_9 需要夠新的 VKD3D 及相應的 GPU 功能。不設定則自動偵測。</string>
|
||||
<string name="game_env_cache">保持啟用 Mesa 着色器快取,以減少重複編譯。設為 false 即啟用快取。</string>
|
||||
<string name="game_env_cache_size">Mesa 着色器快取的大小上限,例如 1G。快取越大,佔用的儲存空間越多。</string>
|
||||
<string name="game_env_vkd3d_config">D3D12 的 VKD3D 選項。nodxr 會停用光線追蹤;只在個別遊戲需要時使用。</string>
|
||||
<string name="game_env_proton_log">設為 1 以產生 Proton 診斷記錄。記錄可能會降低效能並佔用儲存空間。</string>
|
||||
<string name="game_env_wined3d">設為 1 以改用基於 OpenGL 的 WineD3D 代替 DXVK,用於 D3D9–11 兼容性測試。</string>
|
||||
@@ -92,7 +92,7 @@
|
||||
<string name="fex_preset_title">FEX 預設</string>
|
||||
<string name="fex_next_launch">下次啟動遊戲時生效。</string>
|
||||
<string name="game_settings_title">遊戲</string>
|
||||
<string name="fex_default_label">FEX 預設值</string>
|
||||
<string name="fex_default_label">FEX 預設</string>
|
||||
<string name="fex_default_detail">使用 FEX 預設設定。</string>
|
||||
<string name="fex_stability_label">穩定</string>
|
||||
<string name="fex_stability_detail">最安全但最慢的設定。</string>
|
||||
@@ -205,7 +205,7 @@
|
||||
<string name="add_app_folder_copied">該資料夾包含 Linux 程式,而共用儲存空間無法執行這些程式,因此會複製到 DroidDeck(%1$s)。</string>
|
||||
<string name="add_app_confirm">新增</string>
|
||||
<string name="add_app_cancel">取消</string>
|
||||
<string name="add_app_runtime_required">請先在「初始設定」中安裝 Linux 運行環境。</string>
|
||||
<string name="add_app_runtime_required">請先在「設定」中安裝 Linux 運行環境。</string>
|
||||
<string name="add_app_busy">請等待 %1$s 完成。</string>
|
||||
<string name="steam_compat_label">兼容</string>
|
||||
<string name="proton_compatible_note">在 Steam「兼容性」選單中標示為「%1$s」的版本已包含 DroidDeck 的前綴修正,可在此啟動遊戲。預設為 Proton Experimental ARM64(%1$s);安裝較新的 Proton 11.0 ARM64(%1$s)後則改用該版本。Valve 本身沒有此標示的 Proton 項目無法在此裝置上啟動遊戲。</string>
|
||||
@@ -219,7 +219,7 @@
|
||||
<string name="common_update">更新</string>
|
||||
<string name="common_checking">正在檢查…</string>
|
||||
<string name="common_working">處理中…</string>
|
||||
<string name="common_forget">清除</string>
|
||||
<string name="common_forget">忘記</string>
|
||||
<string name="common_add_ellipsis">新增…</string>
|
||||
<string name="common_use">使用</string>
|
||||
<string name="common_applies_next_session">下次會話生效。</string>
|
||||
@@ -246,7 +246,7 @@
|
||||
<string name="mode_hdr_restart">重新啟動應用程式後生效。</string>
|
||||
<string name="mode_drivers">驅動程式</string>
|
||||
<string name="mode_gpu_drivers">GPU 驅動程式</string>
|
||||
<string name="mode_gpu_drivers_hint">Steam 和桌面共用,請在「組件」頁面設定。</string>
|
||||
<string name="mode_gpu_drivers_hint">Steam 和桌面共用,請在「元件」頁面設定。</string>
|
||||
<string name="mode_touch_controls">觸控與控制</string>
|
||||
<string name="mode_touch">觸控</string>
|
||||
<string name="mode_touch_touchpad">觸控板</string>
|
||||
@@ -306,13 +306,13 @@
|
||||
<string name="mode_sgdb_key">SteamGridDB API 密鑰</string>
|
||||
<string name="mode_sgdb_key_yours">你的密鑰</string>
|
||||
<string name="mode_sgdb_edit">編輯…</string>
|
||||
<string name="mode_added_art_hint">自動從 Steam、其次從 SteamGridDB 補上缺少的圖片。遊戲資料夾中你自己的 cover.jpg、hero.jpg、logo.png 或 icon.png 優先使用。</string>
|
||||
<string name="summary_remove_game">移除 %1$s</string>
|
||||
<string name="mode_added_art_hint">按資料夾名稱補上缺少的圖片。遊戲資料夾中你自己的 cover.jpg、hero.jpg、logo.png 或 icon.png 會優先使用。</string>
|
||||
<string name="summary_remove_game">Remove %1$s</string>
|
||||
<string name="mode_added_remove_confirm">移除?</string>
|
||||
<string name="games_add">加入遊戲</string>
|
||||
<string name="games_add_title">加入遊戲:</string>
|
||||
<string name="games_pick_exe_title">選擇 exe:</string>
|
||||
<string name="games_add_unreachable">會話無法存取此位置</string>
|
||||
<string name="games_add_unreachable">工作階段無法存取此位置</string>
|
||||
<string name="mode_added_exe_check">請檢查此 exe</string>
|
||||
<string name="wincomp_title">Windows 組件</string>
|
||||
<string name="wincomp_pad_hint">按 LB / RB 在各部分之間切換。</string>
|
||||
@@ -344,10 +344,10 @@
|
||||
<string name="wincomp_active">已為這款遊戲安裝(%1$d)</string>
|
||||
<string name="wincomp_all">所有組件(%1$d)</string>
|
||||
<string name="wincomp_installers">需要 Windows 安裝程式(%1$d)</string>
|
||||
<string name="wincomp_installers_note">這些是各自的安裝程式,內部沒有可拆出的軟件包,目前也還沒有記錄它們會安裝什麼。其中多數是 Proton 內建 Mono 已能取代的舊運行環境;安裝記錄會陸續補充。</string>
|
||||
<string name="wincomp_installers_note">這些組件需要在前綴內執行真正的安裝程式(.NET、PhysX、XNA、完整的 Visual C++ 安裝程式等)。DroidDeck 暫時未能做到,下一步就會支援。</string>
|
||||
<string name="wincomp_show">顯示</string>
|
||||
<string name="wincomp_hide">隱藏</string>
|
||||
<string name="wincomp_needs_installer">會執行自己的安裝程式(暫無安裝記錄)</string>
|
||||
<string name="wincomp_needs_installer">需要 Windows 安裝程式(即將支援)</string>
|
||||
<string name="wincomp_unsupported">這裏暫不支援</string>
|
||||
<string name="wincomp_loading">正在載入組件…</string>
|
||||
<string name="wincomp_failed">無法安裝:%1$s</string>
|
||||
@@ -404,9 +404,9 @@
|
||||
<string name="comp_display_driver_hint">在兩種模式下負責將畫面繪製到螢幕。重新啟動應用程式後生效。</string>
|
||||
<string name="comp_import_adrenotools">匯入 AdrenoTools zip…</string>
|
||||
<string name="comp_never">從未</string>
|
||||
<string name="comp_nightlies_checked">Nightlies 檢查時間:%1$s</string>
|
||||
<string name="comp_title">組件</string>
|
||||
<string name="comp_about">關於組件</string>
|
||||
<string name="comp_nightlies_checked">已於 %1$s 檢查 Nightlies</string>
|
||||
<string name="comp_title">元件</string>
|
||||
<string name="comp_about">關於元件</string>
|
||||
<string name="comp_check_drivers">檢查新驅動程式</string>
|
||||
<string name="comp_check_nightlies">在 Nightlies 檢查新軟件包</string>
|
||||
<string name="comp_proton">Proton</string>
|
||||
@@ -549,7 +549,7 @@
|
||||
<string name="drawer_page_display">顯示</string>
|
||||
<string name="drawer_page_effects">效果</string>
|
||||
<string name="drawer_page_controls">控制</string>
|
||||
<string name="drawer_page_components">組件</string>
|
||||
<string name="drawer_page_components">元件</string>
|
||||
<string name="drawer_page_controller">控制器</string>
|
||||
<string name="drawer_page_settings">設定</string>
|
||||
<string name="drawer_page_desc">%1$s頁面</string>
|
||||
@@ -565,7 +565,7 @@
|
||||
<string name="drawer_scaling_sharpness">縮放銳利度</string>
|
||||
<string name="drawer_effects">畫面效果</string>
|
||||
<string name="drawer_effects_hint">即時生效。開啟任何效果都會略為佔用 GPU 時間。</string>
|
||||
<string name="drawer_look">預設集</string>
|
||||
<string name="drawer_look">預設</string>
|
||||
<string name="drawer_look_custom">自訂</string>
|
||||
<string name="drawer_effects_advanced">進階</string>
|
||||
<string name="widgets_expanded">已展開</string>
|
||||
@@ -722,7 +722,7 @@
|
||||
<string name="setup_tool_performance_hint">CPU 核心分配</string>
|
||||
<string name="setup_tool_roms">ROM 資料夾</string>
|
||||
<string name="setup_tool_roms_hint">模擬器遊戲的存放位置</string>
|
||||
<string name="setup_card_components">組件</string>
|
||||
<string name="setup_card_components">元件</string>
|
||||
<string name="setup_card_components_hint">FEX、DXVK、VKD3D</string>
|
||||
<string name="setup_card_controls">控制</string>
|
||||
<string name="setup_card_controls_hint">按鍵對應</string>
|
||||
@@ -733,7 +733,7 @@
|
||||
<string name="store_title">商店</string>
|
||||
<string name="store_chip_flathub">Flathub · ARM64</string>
|
||||
<string name="store_chip_ready">● Flatpak 已就緒</string>
|
||||
<string name="store_needs_runtime">請先在「初始設定」中安裝 Linux 運行環境。</string>
|
||||
<string name="store_needs_runtime">請先在「設定」中安裝 Linux 運行環境。</string>
|
||||
<string name="store_setup_title">設定 Flatpak</string>
|
||||
<string name="store_setup_text">新增 Flatpak 並連接到 Flathub(約 20 MB)。安裝第一個應用程式時亦會下載其運行環境。</string>
|
||||
<string name="store_setting_up">正在設定…</string>
|
||||
@@ -843,7 +843,7 @@
|
||||
</plurals>
|
||||
<string name="gate_title">需要更改一項 Android 設定</string>
|
||||
<string name="gate_eyebrow">Steam</string>
|
||||
<string name="gate_lede">Android 會停止啟動大量背景程序的應用程式,而 Steam 會啟動數十個。在變更此設定前,遊戲會在沒有任何錯誤訊息的情況下關閉。</string>
|
||||
<string name="gate_lede">Android 會停止啟動大量背景程序的應用程式,而 Steam 會啟動數十個。更改此設定前,遊戲會在沒有任何錯誤訊息的情況下關閉。</string>
|
||||
<string name="gate_fix_for_me">幫我修復</string>
|
||||
<string name="gate_toggle_steps">開啟「停用子進程限制」,然後返回。請保持開發人員選項開啟,否則此開關會再次關閉。</string>
|
||||
<string name="gate_open_dev">開啟開發人員選項</string>
|
||||
@@ -851,13 +851,13 @@
|
||||
<string name="gate_needs_wifi">無線偵錯需要 Wi-Fi。任何網絡都可以,無需連接互聯網。</string>
|
||||
<string name="gate_needs_notifications">配對碼需在通知中輸入。請允許 DroidDeck 發出通知,或使用「其他方式」。</string>
|
||||
<string name="gate_allow_notifications">允許通知</string>
|
||||
<string name="gate_step1">開啟「系統設定」→「開發人員選項」→「無線偵錯」,並將其開啟</string>
|
||||
<string name="gate_step1">開啟「設定」→「開發人員選項」→「無線偵錯」,並將其開啟</string>
|
||||
<string name="gate_step2">輕按「使用配對碼配對裝置」</string>
|
||||
<string name="gate_step3">在 DroidDeck 通知中輸入配對碼</string>
|
||||
<string name="gate_waiting">正在等待配對彈出式視窗…</string>
|
||||
<string name="gate_code_needed">已找到彈出式視窗,請在通知中輸入其中的配對碼。</string>
|
||||
<string name="gate_status">狀態</string>
|
||||
<string name="gate_polling">每 2 秒檢查一次。關閉此開關後,本頁面會自動關閉。</string>
|
||||
<string name="gate_polling">每 2 秒檢查一次。關閉後此頁面會自動關閉。</string>
|
||||
<string name="gate_other_ways">其他方式</string>
|
||||
<string name="gate_other_toggle">無線偵錯、手動輸入位址、電腦 ADB</string>
|
||||
<string name="gate_other_no_toggle">手動輸入位址、電腦 ADB、開發人員選項</string>
|
||||
@@ -870,7 +870,7 @@
|
||||
<string name="gate_choose_display">選擇要在哪個螢幕開啟 Android 設定。</string>
|
||||
<string name="gate_main_screen">主螢幕</string>
|
||||
<string name="wadb_finding_port">已配對,正在尋找無線偵錯連接埠…</string>
|
||||
<string name="wadb_enter_port">已配對,請輸入「系統設定」中顯示的連接埠。</string>
|
||||
<string name="wadb_enter_port">已配對,請輸入「設定」中顯示的連接埠。</string>
|
||||
<string name="wadb_applying">已找到裝置,正在套用設定…</string>
|
||||
<string name="wadb_apply_failed">無法自動套用。請檢查下方的位址,然後重試。%1$s</string>
|
||||
<string name="wadb_title_wireless">無線偵錯</string>
|
||||
@@ -895,8 +895,8 @@
|
||||
<string name="wadb_turn_off">關閉限制</string>
|
||||
<string name="wadb_other_ways">其他更改方式</string>
|
||||
<string name="wadb_dev_try_first">1 · 開發人員選項(請先嘗試)</string>
|
||||
<string name="wadb_restrict_on">關閉「停用對子處理過程的限制」。</string>
|
||||
<string name="wadb_restrict_off">開啟「停用對子處理過程的限制」。</string>
|
||||
<string name="wadb_restrict_on">開啟「限制子進程」。</string>
|
||||
<string name="wadb_restrict_off">關閉「限制子進程」。</string>
|
||||
<string name="wadb_computer_last">3 · 電腦 ADB(最後手段)</string>
|
||||
<string name="wadb_only_if">只在無法使用無線偵錯時使用。</string>
|
||||
<string name="wadb_computer_group">3 · 電腦 ADB(最後手段)</string>
|
||||
@@ -952,7 +952,7 @@
|
||||
<string name="content_runtime_required">需要運行環境</string>
|
||||
<string name="content_loading_details">正在載入安裝詳情…</string>
|
||||
<string name="content_details_unavailable">無法取得安裝詳情,請稍後再試。</string>
|
||||
<string name="content_needs_runtime">請先在「初始設定」中安裝 Linux 運行環境。</string>
|
||||
<string name="content_needs_runtime">請先在「設定」中安裝 Linux 運行環境。</string>
|
||||
<string name="content_stop_first">請先停止正在執行的會話,再安裝桌面應用程式。</string>
|
||||
<string name="content_install_into">將 %1$s 安裝到 Linux 桌面。</string>
|
||||
<string name="store_busy_percent_short">%1$s · %2$d%%</string>
|
||||
@@ -1065,7 +1065,7 @@
|
||||
<string name="rail_games">遊戲</string>
|
||||
<string name="rail_desktop">桌面</string>
|
||||
<string name="rail_store">商店</string>
|
||||
<string name="rail_components">組件</string>
|
||||
<string name="rail_components">元件</string>
|
||||
<string name="rail_apps">應用程式</string>
|
||||
<string name="rail_setup">設定</string>
|
||||
<string name="rail_updates">更新</string>
|
||||
@@ -1187,7 +1187,7 @@
|
||||
<string name="comp_cannot_read">無法讀取檔案</string>
|
||||
<string name="comp_imported">已匯入 %1$s</string>
|
||||
<string name="comp_swap_cancelled">已取消等待中的替換。</string>
|
||||
<string name="comp_pick_wcp">選擇組件套件(-linux .wcp)</string>
|
||||
<string name="comp_pick_wcp">選擇元件套件(-linux .wcp)</string>
|
||||
<string name="comp_nightlies_unreachable">無法連接 Nightlies</string>
|
||||
<string name="comp_stored">已儲存 %1$s</string>
|
||||
<string name="comp_download_failed">下載失敗:%1$s</string>
|
||||
@@ -1196,14 +1196,14 @@
|
||||
<string name="drivers_pick_any">選擇驅動程式 zip 或 Android + Linux 組合包</string>
|
||||
<string name="main_pkg_problem">%1$s:%2$s</string>
|
||||
<string name="main_removing_named">正在移除 %1$s…</string>
|
||||
<string name="main_forgetting_named">正在清除 %1$s…</string>
|
||||
<string name="main_forgetting_named">正在忘記 %1$s…</string>
|
||||
<string name="main_pick_game_storage">選擇遊戲儲存資料夾</string>
|
||||
<string name="main_pick_decky_zip">選擇 Decky 插件 ZIP</string>
|
||||
<string name="main_storage_not_usable">無法使用:%1$s</string>
|
||||
<string name="main_running_program">程式</string>
|
||||
<string name="main_removing_runtime">正在移除 Linux 運行環境</string>
|
||||
<string name="main_settings_main_screen">無法在下方螢幕開啟「設定」,已改為在主螢幕開啟。</string>
|
||||
<string name="main_open_dev_options">在「系統設定」中開啟開發人員選項</string>
|
||||
<string name="main_open_dev_options">在「設定」中開啟開發人員選項</string>
|
||||
|
||||
<string name="upd_unknown_apps_failed">無法開啟 Android 的「安裝不明應用程式」設定</string>
|
||||
<string name="upd_couldnt_check">無法檢查:%1$s</string>
|
||||
@@ -1637,12 +1637,12 @@
|
||||
<string name="adbpair_applying">正在套用設定…</string>
|
||||
<string name="adbpair_command_failed">無線偵錯指令失敗</string>
|
||||
<string name="adbpair_channel_name">無線偵錯設定</string>
|
||||
<string name="adbpair_channel_description">在「系統設定」開啟時要求輸入無線偵錯配對碼</string>
|
||||
<string name="adbpair_channel_description">在「設定」開啟時要求輸入無線偵錯配對碼</string>
|
||||
<string name="adbpair_title_pair">配對無線偵錯</string>
|
||||
<string name="adbpair_waiting_text">開啟無線偵錯,然後輕按「使用配對碼配對裝置」。</string>
|
||||
<string name="adbpair_waiting_long">開啟無線偵錯,然後輕按「使用配對碼配對裝置」。請留在「設定」中:配對碼需在此通知中輸入。</string>
|
||||
<string name="adbpair_code_label">6 位數配對碼</string>
|
||||
<string name="adbpair_code_hint">輕按「輸入配對碼」,然後輸入「系統設定」中顯示的 6 位數字。</string>
|
||||
<string name="adbpair_code_hint">輕按「輸入配對碼」,然後輸入「設定」中顯示的 6 位數字。</string>
|
||||
<string name="adbpair_title_code">輸入 Wi-Fi 配對碼</string>
|
||||
<string name="adbpair_title_retry">請再次輸入配對碼</string>
|
||||
<string name="adbpair_enter_code">輸入配對碼</string>
|
||||
@@ -1876,7 +1876,7 @@
|
||||
<string name="stores_signin">登入</string>
|
||||
<string name="stores_signout_named">%1$s · 登出</string>
|
||||
<string name="stores_signout_title">登出 %1$s?</string>
|
||||
<string name="stores_signout_note">已安裝的遊戲會保留。重新登入後會再次取得你的收藏庫。</string>
|
||||
<string name="stores_signout_note">已安裝的遊戲會保留。重新登入時會再次取得收藏庫。</string>
|
||||
<string name="stores_signout_stay">保持登入</string>
|
||||
<string name="stores_signout_go">登出</string>
|
||||
<string name="stores_search_catalog">搜尋 %1$s 目錄…</string>
|
||||
@@ -1893,7 +1893,7 @@
|
||||
<string name="stores_shelf_free">免費遊戲</string>
|
||||
<string name="stores_shelf_trending">趨勢</string>
|
||||
<string name="stores_shelf_library">你的收藏庫</string>
|
||||
<string name="stores_play">開啟遊戲</string>
|
||||
<string name="stores_play">開始遊戲</string>
|
||||
<string name="stores_install">安裝</string>
|
||||
<string name="stores_resume_install">繼續安裝</string>
|
||||
<string name="stores_dl_interrupted">已中斷</string>
|
||||
@@ -1902,20 +1902,10 @@
|
||||
<string name="stores_view_on">在 %1$s 查看</string>
|
||||
<string name="stores_buy_price">購買 · %1$s</string>
|
||||
<string name="stores_installed_chip">已安裝</string>
|
||||
<string name="stores_in_library">已在收藏庫中</string>
|
||||
<string name="stores_in_library">已在收藏庫</string>
|
||||
<string name="stores_free">免費</string>
|
||||
<string name="stores_resume">繼續</string>
|
||||
<string name="stores_refresh">重新整理</string>
|
||||
<string name="stores_sort">排序</string>
|
||||
<string name="stores_sort_last_played">最近遊玩</string>
|
||||
<string name="stores_sort_recently_installed">最近安裝</string>
|
||||
<string name="stores_sort_title_asc">標題 A–Z</string>
|
||||
<string name="stores_sort_title_desc">標題 Z–A</string>
|
||||
<string name="stores_sort_size_desc">大小: 由大到小</string>
|
||||
<string name="stores_sort_size_asc">大小: 由小到大</string>
|
||||
<string name="stores_sort_release_date">發行日期</string>
|
||||
<string name="stores_view_list">列表檢視</string>
|
||||
<string name="stores_view_cards">卡片檢視</string>
|
||||
<string name="stores_show_mature">顯示成人內容</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
@@ -1973,7 +1963,7 @@
|
||||
<string name="stores_card_engine_java">%1$s · 內置</string>
|
||||
<string name="stores_how_it_runs">運行方式</string>
|
||||
<string name="stores_kv_fetched">取自</string>
|
||||
<string name="stores_kv_fetched_value">%1$s,使用你的帳戶</string>
|
||||
<string name="stores_kv_fetched_value">%1$s(使用你的帳戶)</string>
|
||||
<string name="stores_kv_installed_to">安裝位置</string>
|
||||
<string name="stores_kv_installed_to_value">遊戲儲存位置(Games/%1$s/%2$s)</string>
|
||||
<string name="stores_kv_launched_by">啟動方式</string>
|
||||
@@ -2029,7 +2019,7 @@
|
||||
<string name="stores_notification_delete">刪除</string>
|
||||
<string name="stores_notification_keep">保留</string>
|
||||
<string name="stores_login_title">登入 %1$s</string>
|
||||
<string name="stores_login_provider_title">使用你的服務商帳戶登入</string>
|
||||
<string name="stores_login_provider_title">透過你的帳戶提供者登入</string>
|
||||
<string name="stores_login_reload">重新載入</string>
|
||||
<string name="stores_login_close">關閉</string>
|
||||
<string name="stores_login_retry">再試一次</string>
|
||||
@@ -2225,8 +2215,4 @@
|
||||
<string name="drawer_component_downloads">下載元件</string>
|
||||
<string name="drawer_component_downloads_hint">下載內容與「元件」頁面共用。在上方選擇已下載的版本,即可在下次啟動遊戲時使用。</string>
|
||||
<string name="drawer_component_choose_download">選擇要下載的版本</string>
|
||||
<string name="display_picture_position">畫面位置</string>
|
||||
<string name="display_position_top">置頂</string>
|
||||
<string name="display_position_bottom">置底</string>
|
||||
<string name="display_position_center">置中(預設)</string>
|
||||
</resources>
|
||||
@@ -92,7 +92,7 @@
|
||||
<string name="fex_preset_title">FEX 預設</string>
|
||||
<string name="fex_next_launch">下次啟動遊戲時生效。</string>
|
||||
<string name="game_settings_title">遊戲</string>
|
||||
<string name="fex_default_label">FEX 預設值</string>
|
||||
<string name="fex_default_label">FEX 預設</string>
|
||||
<string name="fex_default_detail">使用 FEX 預設設定。</string>
|
||||
<string name="fex_stability_label">穩定</string>
|
||||
<string name="fex_stability_detail">最安全、最慢的設定。</string>
|
||||
@@ -205,7 +205,7 @@
|
||||
<string name="add_app_folder_copied">該資料夾包含 Linux 程式,共用儲存空間無法執行這些程式,因此會將其複製到 DroidDeck(%1$s)。</string>
|
||||
<string name="add_app_confirm">新增</string>
|
||||
<string name="add_app_cancel">取消</string>
|
||||
<string name="add_app_runtime_required">請先從「初始設定」中安裝 Linux 執行環境。</string>
|
||||
<string name="add_app_runtime_required">請先從「設定」中安裝 Linux 執行環境。</string>
|
||||
<string name="add_app_busy">請等待 %1$s 完成。</string>
|
||||
<string name="steam_compat_label">相容</string>
|
||||
<string name="proton_compatible_note">在 Steam 的「相容性」選單中標示「%1$s」的組建版本包含 DroidDeck 的 前綴修正,可在此啟動遊戲。預設為 Proton Experimental ARM64(%1$s);安裝較新的 Proton 11.0 ARM64(%1$s)後則改用該版本。Valve 自己未帶此標示的 Proton 項目無法在這部裝置上啟動遊戲。</string>
|
||||
@@ -219,7 +219,7 @@
|
||||
<string name="common_update">更新</string>
|
||||
<string name="common_checking">正在檢查…</string>
|
||||
<string name="common_working">處理中…</string>
|
||||
<string name="common_forget">清除</string>
|
||||
<string name="common_forget">忘記</string>
|
||||
<string name="common_add_ellipsis">新增…</string>
|
||||
<string name="common_use">使用</string>
|
||||
<string name="common_applies_next_session">下次工作階段生效。</string>
|
||||
@@ -306,8 +306,8 @@
|
||||
<string name="mode_sgdb_key">SteamGridDB API 金鑰</string>
|
||||
<string name="mode_sgdb_key_yours">你的金鑰</string>
|
||||
<string name="mode_sgdb_edit">編輯…</string>
|
||||
<string name="mode_added_art_hint">自動從 Steam、其次從 SteamGridDB 補齊缺少的圖片。遊戲資料夾中你自己的 cover.jpg、hero.jpg、logo.png 或 icon.png 優先使用。</string>
|
||||
<string name="summary_remove_game">移除 %1$s</string>
|
||||
<string name="mode_added_art_hint">按資料夾名稱補全缺少的圖片。遊戲資料夾中的 cover.jpg、hero.jpg、logo.png 或 icon.png 優先使用。</string>
|
||||
<string name="summary_remove_game">Remove %1$s</string>
|
||||
<string name="mode_added_remove_confirm">移除?</string>
|
||||
<string name="games_add">新增遊戲</string>
|
||||
<string name="games_add_title">新增遊戲:</string>
|
||||
@@ -344,10 +344,10 @@
|
||||
<string name="wincomp_active">已為這款遊戲安裝(%1$d)</string>
|
||||
<string name="wincomp_all">所有元件(%1$d)</string>
|
||||
<string name="wincomp_installers">需要 Windows 安裝程式(%1$d)</string>
|
||||
<string name="wincomp_installers_note">這些是各自的安裝程式,內部沒有可拆出的軟體包,目前也還沒有記錄它們會安裝什麼。其中多數是 Proton 內建 Mono 已能取代的舊執行環境;安裝記錄會陸續補充。</string>
|
||||
<string name="wincomp_installers_note">這些元件需要在前綴中執行真正的安裝程式(.NET、PhysX、XNA、完整的 Visual C++ 安裝程式等)。DroidDeck 目前還做不到,接下來就會支援。</string>
|
||||
<string name="wincomp_show">顯示</string>
|
||||
<string name="wincomp_hide">隱藏</string>
|
||||
<string name="wincomp_needs_installer">會執行自己的安裝程式(暫無安裝記錄)</string>
|
||||
<string name="wincomp_needs_installer">需要 Windows 安裝程式(即將支援)</string>
|
||||
<string name="wincomp_unsupported">這裡尚不支援</string>
|
||||
<string name="wincomp_loading">正在載入元件…</string>
|
||||
<string name="wincomp_failed">無法安裝:%1$s</string>
|
||||
@@ -404,7 +404,7 @@
|
||||
<string name="comp_display_driver_hint">在兩種模式下都負責將畫面輸出到螢幕。重新啟動應用程式後生效。</string>
|
||||
<string name="comp_import_adrenotools">匯入 AdrenoTools zip…</string>
|
||||
<string name="comp_never">從未</string>
|
||||
<string name="comp_nightlies_checked">Nightlies 檢查時間:%1$s</string>
|
||||
<string name="comp_nightlies_checked">已於 %1$s 檢查 Nightlies</string>
|
||||
<string name="comp_title">元件</string>
|
||||
<string name="comp_about">關於元件</string>
|
||||
<string name="comp_check_drivers">檢查新驅動程式</string>
|
||||
@@ -460,7 +460,7 @@
|
||||
<string name="comp_esync_wanted">%1$s · 尚無 droiddeck-esync 套件</string>
|
||||
<string name="comp_esync_builtin">%1$s · 內建 esync,不需要套件</string>
|
||||
<string name="comp_gpu_drivers">GPU 驅動程式</string>
|
||||
<string name="comp_reapplied">%1$s · 已於 %2$s 啟動時重新套用</string>
|
||||
<string name="comp_reapplied">%1$s · 已在啟動 %2$s 時重新套用</string>
|
||||
<string name="comp_next_queued">下一項:%1$s · 遊戲關閉後</string>
|
||||
<string name="comp_in_use">正在使用 %1$s:%2$s</string>
|
||||
<string name="comp_waits">等待遊戲關閉</string>
|
||||
@@ -626,7 +626,7 @@
|
||||
</plurals>
|
||||
<string name="drawer_no_proton">尚未安裝 Proton。</string>
|
||||
<string name="drawer_game_running">遊戲執行中</string>
|
||||
<string name="drawer_reapplied">已於 %1$s 啟動時重新套用</string>
|
||||
<string name="drawer_reapplied">已在啟動 %1$s 時重新套用</string>
|
||||
<string name="drawer_original">原始</string>
|
||||
<string name="drawer_components_note">請在「元件」頁面匯入和刪除。</string>
|
||||
<string name="setup_check_done">完成</string>
|
||||
@@ -733,7 +733,7 @@
|
||||
<string name="store_title">商店</string>
|
||||
<string name="store_chip_flathub">Flathub · ARM64</string>
|
||||
<string name="store_chip_ready">● Flatpak 已就緒</string>
|
||||
<string name="store_needs_runtime">請先從「初始設定」中安裝 Linux 執行環境。</string>
|
||||
<string name="store_needs_runtime">請先從「設定」中安裝 Linux 執行環境。</string>
|
||||
<string name="store_setup_title">設定 Flatpak</string>
|
||||
<string name="store_setup_text">新增 Flatpak 並連線到 Flathub(約 20 MB)。第一個應用程式還會下載其執行環境。</string>
|
||||
<string name="store_setting_up">正在設定…</string>
|
||||
@@ -851,7 +851,7 @@
|
||||
<string name="gate_needs_wifi">無線偵錯需要 Wi-Fi。任何網路都可以,不需要網際網路。</string>
|
||||
<string name="gate_needs_notifications">配對碼會顯示在通知中。請允許 DroidDeck 傳送通知,或使用「其他方式」。</string>
|
||||
<string name="gate_allow_notifications">允許通知</string>
|
||||
<string name="gate_step1">開啟「Android 設定」→「開發人員選項」→「無線偵錯」,並將其開啟</string>
|
||||
<string name="gate_step1">開啟設定 → 開發人員選項 → 無線偵錯,並將其開啟</string>
|
||||
<string name="gate_step2">點擊「使用配對碼配對裝置」</string>
|
||||
<string name="gate_step3">將配對碼輸入 DroidDeck 通知中</string>
|
||||
<string name="gate_waiting">正在等待配對彈出視窗…</string>
|
||||
@@ -895,8 +895,8 @@
|
||||
<string name="wadb_turn_off">關閉限制</string>
|
||||
<string name="wadb_other_ways">其他變更方式</string>
|
||||
<string name="wadb_dev_try_first">1 · 開發人員選項(優先嘗試)</string>
|
||||
<string name="wadb_restrict_on">關閉「停止限制子程序」。</string>
|
||||
<string name="wadb_restrict_off">開啟「停止限制子程序」。</string>
|
||||
<string name="wadb_restrict_on">開啟「限制子處理程序」。</string>
|
||||
<string name="wadb_restrict_off">關閉「限制子處理程序」。</string>
|
||||
<string name="wadb_computer_last">3 · 電腦 ADB(最後手段)</string>
|
||||
<string name="wadb_only_if">僅在無線偵錯無法使用時使用。</string>
|
||||
<string name="wadb_computer_group">3 · 電腦 ADB(最後手段)</string>
|
||||
@@ -952,7 +952,7 @@
|
||||
<string name="content_runtime_required">需要執行環境</string>
|
||||
<string name="content_loading_details">正在載入安裝詳細資料…</string>
|
||||
<string name="content_details_unavailable">安裝詳細資料無法使用。請稍後重試。</string>
|
||||
<string name="content_needs_runtime">請先從「初始設定」中安裝 Linux 執行環境。</string>
|
||||
<string name="content_needs_runtime">請先從「設定」中安裝 Linux 執行環境。</string>
|
||||
<string name="content_stop_first">請停止正在執行的工作階段後再安裝桌面應用程式。</string>
|
||||
<string name="content_install_into">將 %1$s 安裝到 Linux 桌面。</string>
|
||||
<string name="store_busy_percent_short">%1$s · %2$d%%</string>
|
||||
@@ -1159,7 +1159,7 @@
|
||||
<item quantity="other">已將 %1$d 個檔案匯出為 %2$s:%3$s</item>
|
||||
</plurals>
|
||||
<string name="main_saves_pick_folder">選擇 %1$s 的儲存位置(%2$s)</string>
|
||||
<string name="main_action_failed">%1$s 失敗:%2$s</string>
|
||||
<string name="main_action_failed">失敗(%1$s):%2$s</string>
|
||||
<string name="main_no_logs_yet">還沒有工作階段日誌:請先執行一次工作階段。</string>
|
||||
<string name="main_no_logs_to_clear">沒有可清除的工作階段日誌。</string>
|
||||
<plurals name="main_logs_cleared">
|
||||
@@ -1196,14 +1196,14 @@
|
||||
<string name="drivers_pick_any">選擇驅動程式 zip 或 Android + Linux 套件組合</string>
|
||||
<string name="main_pkg_problem">%1$s:%2$s</string>
|
||||
<string name="main_removing_named">正在移除 %1$s…</string>
|
||||
<string name="main_forgetting_named">正在清除 %1$s…</string>
|
||||
<string name="main_forgetting_named">正在忘記 %1$s…</string>
|
||||
<string name="main_pick_game_storage">選擇遊戲儲存資料夾</string>
|
||||
<string name="main_pick_decky_zip">選擇 Decky 外掛程式 ZIP</string>
|
||||
<string name="main_storage_not_usable">無法使用:%1$s</string>
|
||||
<string name="main_running_program">程式</string>
|
||||
<string name="main_removing_runtime">正在移除 Linux 執行環境</string>
|
||||
<string name="main_settings_main_screen">無法在底部螢幕開啟「設定」,已改在主螢幕上開啟。</string>
|
||||
<string name="main_open_dev_options">在「Android 設定」中開啟開發人員選項</string>
|
||||
<string name="main_open_dev_options">在「設定」中開啟開發人員選項</string>
|
||||
|
||||
<string name="upd_unknown_apps_failed">無法開啟 Android 的「安裝不明應用程式」設定</string>
|
||||
<string name="upd_couldnt_check">無法檢查:%1$s</string>
|
||||
@@ -1637,12 +1637,12 @@
|
||||
<string name="adbpair_applying">正在套用設定…</string>
|
||||
<string name="adbpair_command_failed">無線偵錯指令失敗</string>
|
||||
<string name="adbpair_channel_name">無線偵錯設定</string>
|
||||
<string name="adbpair_channel_description">在「Android 設定」開啟時要求輸入無線偵錯配對碼</string>
|
||||
<string name="adbpair_channel_description">在「設定」開啟時要求輸入無線偵錯配對碼</string>
|
||||
<string name="adbpair_title_pair">配對無線偵錯</string>
|
||||
<string name="adbpair_waiting_text">開啟無線偵錯,然後點擊「使用配對碼配對裝置」。</string>
|
||||
<string name="adbpair_waiting_long">開啟無線偵錯,然後點擊「使用配對碼配對裝置」。請留在「設定」中:配對碼要輸入在這則通知裡。</string>
|
||||
<string name="adbpair_code_label">6 位數配對碼</string>
|
||||
<string name="adbpair_code_hint">點擊「輸入配對碼」,然後輸入「Android 設定」中顯示的 6 位數字。</string>
|
||||
<string name="adbpair_code_hint">點擊「輸入配對碼」,然後輸入「設定」中顯示的 6 位數字。</string>
|
||||
<string name="adbpair_title_code">輸入 Wi-Fi 配對碼</string>
|
||||
<string name="adbpair_title_retry">請再次輸入配對碼</string>
|
||||
<string name="adbpair_enter_code">輸入配對碼</string>
|
||||
@@ -1876,7 +1876,7 @@
|
||||
<string name="stores_signin">登入</string>
|
||||
<string name="stores_signout_named">%1$s · 登出</string>
|
||||
<string name="stores_signout_title">要登出 %1$s 嗎?</string>
|
||||
<string name="stores_signout_note">已安裝的遊戲會保留。重新登入後會再次取得你的收藏庫。</string>
|
||||
<string name="stores_signout_note">已安裝的遊戲會保留。重新登入時會再次取得收藏庫。</string>
|
||||
<string name="stores_signout_stay">保持登入</string>
|
||||
<string name="stores_signout_go">登出</string>
|
||||
<string name="stores_search_catalog">搜尋 %1$s 目錄…</string>
|
||||
@@ -1891,9 +1891,9 @@
|
||||
<string name="stores_shelf_new">最新上架</string>
|
||||
<string name="stores_shelf_deals">特惠</string>
|
||||
<string name="stores_shelf_free">免費遊戲</string>
|
||||
<string name="stores_shelf_trending">趨勢</string>
|
||||
<string name="stores_shelf_trending">熱門趨勢</string>
|
||||
<string name="stores_shelf_library">你的收藏庫</string>
|
||||
<string name="stores_play">執行</string>
|
||||
<string name="stores_play">開始遊戲</string>
|
||||
<string name="stores_install">安裝</string>
|
||||
<string name="stores_resume_install">繼續安裝</string>
|
||||
<string name="stores_dl_interrupted">已中斷</string>
|
||||
@@ -1906,16 +1906,6 @@
|
||||
<string name="stores_free">免費</string>
|
||||
<string name="stores_resume">繼續</string>
|
||||
<string name="stores_refresh">重新整理</string>
|
||||
<string name="stores_sort">排序</string>
|
||||
<string name="stores_sort_last_played">最近遊玩</string>
|
||||
<string name="stores_sort_recently_installed">最近安裝</string>
|
||||
<string name="stores_sort_title_asc">標題 A–Z</string>
|
||||
<string name="stores_sort_title_desc">標題 Z–A</string>
|
||||
<string name="stores_sort_size_desc">大小: 由大到小</string>
|
||||
<string name="stores_sort_size_asc">大小: 由小到大</string>
|
||||
<string name="stores_sort_release_date">發行日期</string>
|
||||
<string name="stores_view_list">列表檢視</string>
|
||||
<string name="stores_view_cards">卡片檢視</string>
|
||||
<string name="stores_show_mature">顯示成人內容</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
@@ -2029,7 +2019,7 @@
|
||||
<string name="stores_notification_delete">刪除</string>
|
||||
<string name="stores_notification_keep">保留</string>
|
||||
<string name="stores_login_title">登入 %1$s</string>
|
||||
<string name="stores_login_provider_title">使用你的服務商帳號登入</string>
|
||||
<string name="stores_login_provider_title">透過你的帳號提供者登入</string>
|
||||
<string name="stores_login_reload">重新載入</string>
|
||||
<string name="stores_login_close">關閉</string>
|
||||
<string name="stores_login_retry">再試一次</string>
|
||||
@@ -2225,8 +2215,4 @@
|
||||
<string name="drawer_component_downloads">下載元件</string>
|
||||
<string name="drawer_component_downloads_hint">下載內容與「元件」頁面共用。在上方選擇已下載的版本,即可在下次啟動遊戲時使用。</string>
|
||||
<string name="drawer_component_choose_download">選擇要下載的版本</string>
|
||||
<string name="display_picture_position">畫面位置</string>
|
||||
<string name="display_position_top">置頂</string>
|
||||
<string name="display_position_bottom">置底</string>
|
||||
<string name="display_position_center">置中(預設)</string>
|
||||
</resources>
|
||||
@@ -595,10 +595,6 @@
|
||||
<string name="cardboard_no_sensor">This device has no rotation sensor.</string>
|
||||
<string name="cardboard_recenter">Recenter view</string>
|
||||
<string name="cardboard_recenter_button">Recenter</string>
|
||||
<string name="steamvr_title">SteamVR</string>
|
||||
<string name="steamvr_enter">Enter SteamVR</string>
|
||||
<string name="steamvr_quest_ready_hint">Enter immersive VR with headset tracking and Touch controllers.</string>
|
||||
<string name="steamvr_checking">Checking SteamVR…</string>
|
||||
<string name="cardboard_steamvr">SteamVR (experimental)</string>
|
||||
<string name="cardboard_steamvr_install">Install</string>
|
||||
<string name="cardboard_steamvr_install_hint">Downloads Valve\'s ARM64 SteamVR (571 MB).</string>
|
||||
@@ -626,11 +622,6 @@
|
||||
<string name="drawer_texture_sharpness_note">A negative mip bias: sharper textures, some shimmer. Auto matches how far the session is enlarged to the screen.</string>
|
||||
<string name="drawer_touch_auto">Auto (%1$s)</string>
|
||||
<string name="drawer_keyboard">Keyboard</string>
|
||||
<string name="drawer_latency">Latency</string>
|
||||
<string name="drawer_low_latency_controller">Low-latency controller</string>
|
||||
<string name="drawer_low_latency_controller_hint">Pad reports at 1000 Hz instead of 250 Hz. Slightly more CPU.</string>
|
||||
<string name="drawer_low_latency_touch">Low-latency touch</string>
|
||||
<string name="drawer_low_latency_touch_hint">Touches skip frame batching; Steam touch controls at 1000 Hz. Slightly more CPU.</string>
|
||||
<string name="drawer_pc_keyboard">PC keyboard</string>
|
||||
<string name="drawer_android_keyboard">Android</string>
|
||||
<string name="drawer_second_screen">Second screen</string>
|
||||
@@ -943,8 +934,8 @@
|
||||
<string name="wadb_turn_off">Turn limit off</string>
|
||||
<string name="wadb_other_ways">Other ways to change it</string>
|
||||
<string name="wadb_dev_try_first">1 · Developer options (try first)</string>
|
||||
<string name="wadb_restrict_on">Turn off “Disable child process restrictions”.</string>
|
||||
<string name="wadb_restrict_off">Turn on “Disable child process restrictions”.</string>
|
||||
<string name="wadb_restrict_on">Set “Restrict child processes” on.</string>
|
||||
<string name="wadb_restrict_off">Set “Restrict child processes” off.</string>
|
||||
<string name="wadb_computer_last">3 · Computer ADB (last resort)</string>
|
||||
<string name="wadb_only_if">Only if Wireless debugging is unavailable.</string>
|
||||
<string name="wadb_computer_group">3 · Computer ADB (last resort)</string>
|
||||
@@ -1293,8 +1284,6 @@
|
||||
<string name="drivers_switched_to_restart">Switched to %1$s %2$s. The display driver applies after DroidDeck restarts.</string>
|
||||
<string name="drivers_using">Using %1$s %2$s.</string>
|
||||
<string name="drivers_using_restart">Using %1$s %2$s. The display driver applies after DroidDeck restarts.</string>
|
||||
<string name="drivers_using_quest">Using the bundled Quest display driver and runtime default.</string>
|
||||
<string name="drivers_using_quest_restart">Using the bundled Quest display driver and runtime default. The display driver applies after DroidDeck restarts.</string>
|
||||
<string name="drivers_not_a_driver">Not a driver zip: neither an AdrenoTools driver, a -Linux Turnip nor an Android + Linux bundle</string>
|
||||
<string name="drivers_import_failed">Import failed: %1$s</string>
|
||||
<string name="drivers_imported_unnamed">Imported driver</string>
|
||||
@@ -1983,16 +1972,6 @@
|
||||
<string name="stores_free">Free</string>
|
||||
<string name="stores_resume">Resume</string>
|
||||
<string name="stores_refresh">Refresh</string>
|
||||
<string name="stores_sort">Sort</string>
|
||||
<string name="stores_sort_last_played">Recently played</string>
|
||||
<string name="stores_sort_recently_installed">Recently installed</string>
|
||||
<string name="stores_sort_title_asc">Title A–Z</string>
|
||||
<string name="stores_sort_title_desc">Title Z–A</string>
|
||||
<string name="stores_sort_size_desc">Size: largest</string>
|
||||
<string name="stores_sort_size_asc">Size: smallest</string>
|
||||
<string name="stores_sort_release_date">Release date</string>
|
||||
<string name="stores_view_list">List view</string>
|
||||
<string name="stores_view_cards">Card view</string>
|
||||
<string name="stores_show_mature">Show mature content</string>
|
||||
<string name="epic_card_title">Epic</string>
|
||||
<string name="epic_card_eos">EOS</string>
|
||||
@@ -2155,18 +2134,6 @@
|
||||
<string name="art_pick_image">Pick image…</string>
|
||||
<string name="art_pick_title">Pick an image: %1$s</string>
|
||||
<string name="art_reset">Reset to automatic</string>
|
||||
<string name="art_search_sgdb">Search SteamGridDB…</string>
|
||||
<string name="art_sgdb_title">SteamGridDB: %1$s</string>
|
||||
<string name="art_sgdb_search_label">Search for a game</string>
|
||||
<string name="art_sgdb_more">Show more</string>
|
||||
<string name="art_sgdb_other_games">Other matches</string>
|
||||
<string name="art_sgdb_none">Nothing found.</string>
|
||||
<string name="art_sgdb_no_key">SteamGridDB needs an API key. Add yours in Setup › Launcher.</string>
|
||||
<string name="art_sgdb_bad_key">SteamGridDB did not accept the API key. Check it in Setup › Launcher.</string>
|
||||
<string name="art_sgdb_limit">SteamGridDB is limiting requests right now. Try again in a minute.</string>
|
||||
<string name="art_sgdb_offline">SteamGridDB could not be reached. Check the connection.</string>
|
||||
<string name="art_sgdb_server">SteamGridDB had a problem. Try again later.</string>
|
||||
<string name="art_sgdb_no_game">SteamGridDB has no match for this game. Try a search.</string>
|
||||
<plurals name="games_added_n">
|
||||
<item quantity="one">%1$d game added</item>
|
||||
<item quantity="other">%1$d games added</item>
|
||||
@@ -2293,8 +2260,4 @@
|
||||
<string name="stores_sync_gog_unreachable">Couldn\'t reach GOG</string>
|
||||
<string name="stores_sync_gog_unreadable">Could not read your GOG library</string>
|
||||
<string name="stores_registering">Registering with Steam…</string>
|
||||
<string name="display_picture_position">Picture position</string>
|
||||
<string name="display_position_top">Top</string>
|
||||
<string name="display_position_bottom">Bottom</string>
|
||||
<string name="display_position_center">Center (default)</string>
|
||||
</resources>
|
||||
@@ -1,56 +0,0 @@
|
||||
package com.droiddeck.launcher
|
||||
|
||||
import android.app.Activity
|
||||
import android.content.Context
|
||||
import android.os.Handler
|
||||
import android.os.Looper
|
||||
import com.droiddeck.launcher.session.QuestExperimental
|
||||
import com.droiddeck.launcher.session.SessionPrefs
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertNull
|
||||
import org.junit.Before
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import org.robolectric.Robolectric
|
||||
import org.robolectric.RobolectricTestRunner
|
||||
import org.robolectric.RuntimeEnvironment
|
||||
import org.robolectric.annotation.Config
|
||||
import org.robolectric.shadows.ShadowBuild
|
||||
|
||||
@RunWith(RobolectricTestRunner::class)
|
||||
@Config(sdk = [28], manifest = Config.NONE)
|
||||
class DriverMenusAutoTest {
|
||||
@Before fun reset() {
|
||||
RuntimeEnvironment.getApplication().getSharedPreferences("session", Context.MODE_PRIVATE)
|
||||
.edit().clear().commit()
|
||||
ShadowBuild.setModel("Quest 3")
|
||||
ShadowBuild.setDevice("eureka")
|
||||
}
|
||||
|
||||
@Test fun selectingAutoUsesTheQuestPairWithoutStartingADownload() {
|
||||
val activity = Robolectric.buildActivity(Activity::class.java).setup().get()
|
||||
SessionPrefs.setGpuDriverMode(activity, SessionPrefs.GPU_DRIVERS_MANUAL)
|
||||
SessionPrefs.setAndroidDriver(activity, "chosen-display")
|
||||
SessionPrefs.setLinuxDriver(activity, "chosen-linux")
|
||||
val menus = DriverMenus(activity, Handler(Looper.getMainLooper()))
|
||||
menus.setMode(true)
|
||||
assertEquals(QuestExperimental.DRIVER, SessionPrefs.androidDriver(activity))
|
||||
assertEquals("", SessionPrefs.linuxDriver(activity))
|
||||
assertEquals(activity.getString(R.string.drivers_using_quest), menus.autoStatus)
|
||||
assertFalse(menus.releaseChecking)
|
||||
assertNull(menus.pairBusy)
|
||||
menus.ensureAuto(force = true)
|
||||
assertFalse(menus.releaseChecking)
|
||||
}
|
||||
|
||||
@Test fun openingManualDriverSettingsRetainsTheSelectedPair() {
|
||||
val activity = Robolectric.buildActivity(Activity::class.java).setup().get()
|
||||
SessionPrefs.setGpuDriverMode(activity, SessionPrefs.GPU_DRIVERS_MANUAL)
|
||||
SessionPrefs.setAndroidDriver(activity, "chosen-display")
|
||||
SessionPrefs.setLinuxDriver(activity, "chosen-linux")
|
||||
DriverMenus(activity, Handler(Looper.getMainLooper())).ensureAuto(force = true)
|
||||
assertEquals("chosen-display", SessionPrefs.androidDriver(activity))
|
||||
assertEquals("chosen-linux", SessionPrefs.linuxDriver(activity))
|
||||
}
|
||||
}
|
||||
@@ -1,111 +0,0 @@
|
||||
package com.droiddeck.launcher.core
|
||||
|
||||
import java.io.File
|
||||
import java.net.ServerSocket
|
||||
import java.net.Socket
|
||||
import java.nio.file.Files
|
||||
import java.util.concurrent.CopyOnWriteArrayList
|
||||
import org.junit.After
|
||||
import org.junit.Assert.assertArrayEquals
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Before
|
||||
import org.junit.Test
|
||||
|
||||
/**
|
||||
* A download that was cut off keeps its bytes, and a second call with `resume` asks for the rest
|
||||
* with a Range header instead of starting again. The server is a plain socket so the first answer
|
||||
* can promise the whole file and then hang up halfway.
|
||||
*/
|
||||
class DownloaderResumeTest {
|
||||
private val data = ByteArray(300_000) { (it % 251).toByte() }
|
||||
private val cutAt = 100_000
|
||||
private val requests = CopyOnWriteArrayList<String?>()
|
||||
private lateinit var server: ServerSocket
|
||||
private lateinit var dir: File
|
||||
private lateinit var thread: Thread
|
||||
@Volatile private var misbehave = false
|
||||
|
||||
@Before fun setUp() {
|
||||
dir = Files.createTempDirectory("downloader-resume").toFile()
|
||||
server = ServerSocket(0)
|
||||
thread = Thread {
|
||||
try {
|
||||
while (!server.isClosed) {
|
||||
val socket = server.accept()
|
||||
// the client may hang up on a body it refuses; that must not stop the server
|
||||
runCatching { handle(socket) }
|
||||
}
|
||||
} catch (_: Exception) {
|
||||
// closed by tearDown
|
||||
}
|
||||
}.apply { isDaemon = true; start() }
|
||||
}
|
||||
|
||||
@After fun tearDown() {
|
||||
server.close()
|
||||
dir.deleteRecursively()
|
||||
}
|
||||
|
||||
private fun handle(socket: Socket) = socket.use {
|
||||
val input = it.getInputStream().bufferedReader(Charsets.ISO_8859_1)
|
||||
var range: String? = null
|
||||
while (true) {
|
||||
val line = input.readLine() ?: break
|
||||
if (line.isEmpty()) break
|
||||
if (line.startsWith("Range:", ignoreCase = true)) range = line.substringAfter(':').trim()
|
||||
}
|
||||
requests.add(range)
|
||||
val out = it.getOutputStream()
|
||||
val from = range?.removePrefix("bytes=")?.substringBefore('-')?.toIntOrNull()
|
||||
if (misbehave) {
|
||||
// answers a Range request with a 206 that starts at 0, and serves plain requests whole
|
||||
val start = if (from == null) "200 OK" else "206 Partial Content"
|
||||
val extra = if (from == null) "" else "Content-Range: bytes 0-${data.size - 1}/${data.size}\r\n"
|
||||
out.write("HTTP/1.1 $start\r\n${extra}Content-Length: ${data.size}\r\nConnection: close\r\n\r\n".toByteArray())
|
||||
out.write(data)
|
||||
out.flush()
|
||||
} else if (from == null) {
|
||||
out.write("HTTP/1.1 200 OK\r\nContent-Length: ${data.size}\r\nConnection: close\r\n\r\n".toByteArray())
|
||||
out.write(data, 0, cutAt)
|
||||
out.flush()
|
||||
// hang up with most of the promised body still unsent
|
||||
} else {
|
||||
val rest = data.size - from
|
||||
out.write(("HTTP/1.1 206 Partial Content\r\nContent-Range: bytes $from-${data.size - 1}/${data.size}\r\n" +
|
||||
"Content-Length: $rest\r\nConnection: close\r\n\r\n").toByteArray())
|
||||
out.write(data, from, rest)
|
||||
out.flush()
|
||||
}
|
||||
}
|
||||
|
||||
@Test fun cutOffDownloadResumesFromWhatWasKept() {
|
||||
val url = "http://127.0.0.1:${server.localPort}/runtime.tar.zst"
|
||||
val target = File(dir, "runtime.tar.zst")
|
||||
|
||||
assertFalse("the cut-off transfer must not report success", Downloader.downloadFile(url, target, true, null))
|
||||
val kept = target.length()
|
||||
assertTrue("the partial bytes stay on disk (kept=$kept)", kept in 1 until data.size)
|
||||
|
||||
assertTrue(Downloader.downloadFile(url, target, true, null))
|
||||
assertEquals(data.size.toLong(), target.length())
|
||||
assertArrayEquals(data, target.readBytes())
|
||||
assertEquals(listOf<String?>(null, "bytes=$kept-"), requests.toList())
|
||||
}
|
||||
|
||||
@Test fun answerFromTheWrongOffsetIsNotAppended() {
|
||||
val url = "http://127.0.0.1:${server.localPort}/runtime.tar.zst"
|
||||
val target = File(dir, "runtime.tar.zst")
|
||||
|
||||
assertFalse(Downloader.downloadFile(url, target, true, null))
|
||||
val kept = target.length()
|
||||
assertTrue(kept in 1 until data.size)
|
||||
|
||||
misbehave = true
|
||||
assertTrue(Downloader.downloadFile(url, target, true, null))
|
||||
assertEquals(data.size.toLong(), target.length())
|
||||
assertArrayEquals("the file must not be the kept bytes plus a misplaced body", data, target.readBytes())
|
||||
assertEquals(listOf<String?>(null, "bytes=$kept-", null), requests.toList())
|
||||
}
|
||||
}
|
||||
@@ -108,65 +108,4 @@ class AddedGameArtLookupTest {
|
||||
assertFalse(file.exists())
|
||||
assertEquals("", SteamGridDb.key(app))
|
||||
}
|
||||
|
||||
@Test fun aFailedLookupIsNotRememberedAsNoMatch() {
|
||||
val marker = File(tmp.newFolder(), "sgdb-id")
|
||||
try {
|
||||
AddedGameArt.remembered(marker) { throw SteamGridDb.Failed(SteamGridDb.Status.BAD_KEY) }
|
||||
fail("the failure was swallowed")
|
||||
} catch (e: SteamGridDb.Failed) {
|
||||
assertEquals(SteamGridDb.Status.BAD_KEY, e.status)
|
||||
}
|
||||
assertFalse(marker.exists())
|
||||
}
|
||||
|
||||
@Test fun aMissIsKeptUntilTheKeyChangesOrTheUserAsksAgain() {
|
||||
val marker = File(tmp.newFolder(), "sgdb-id")
|
||||
var asked = 0
|
||||
assertNull(AddedGameArt.remembered(marker) { asked++; null })
|
||||
assertEquals("none", marker.readText())
|
||||
assertNull(AddedGameArt.remembered(marker) { asked++; "9" })
|
||||
assertEquals(1, asked)
|
||||
assertEquals("9", AddedGameArt.remembered(marker, notBefore = System.currentTimeMillis() + 1000) { asked++; "9" })
|
||||
assertEquals(2, asked)
|
||||
assertEquals("9", AddedGameArt.remembered(marker) { fail("asked again"); null })
|
||||
|
||||
val old = File(marker.parentFile, "old-id").apply { writeText("none") }
|
||||
assertEquals("5", AddedGameArt.remembered(old, retryMiss = true) { "5" })
|
||||
assertEquals("5", old.readText())
|
||||
}
|
||||
|
||||
@Test fun savingAKeyMarksWhenItChanged() {
|
||||
SteamGridDb.keys = CredentialCipher.KeyProvider { SecretKeySpec(ByteArray(32).also { SecureRandom().nextBytes(it) }, "AES") }
|
||||
assertEquals(0L, SteamGridDb.keyChangedAt(app))
|
||||
SteamGridDb.setUserKey(app, "abcdef0123456789")
|
||||
assertTrue(SteamGridDb.keyChangedAt(app) > 0L)
|
||||
}
|
||||
|
||||
@Test fun aBadResponseSaysWhatWentWrong() {
|
||||
assertEquals(SteamGridDb.Status.BAD_KEY, SteamGridDb.failure(401))
|
||||
assertEquals(SteamGridDb.Status.BAD_KEY, SteamGridDb.failure(403))
|
||||
assertEquals(SteamGridDb.Status.LIMIT, SteamGridDb.failure(429))
|
||||
assertEquals(SteamGridDb.Status.SERVER, SteamGridDb.failure(503))
|
||||
assertNull(SteamGridDb.failure(404))
|
||||
assertNull(SteamGridDb.failure(200))
|
||||
}
|
||||
|
||||
@Test fun searchResultsKeepOnlyGamesWithAnIdAndAName() {
|
||||
val data = JSONArray()
|
||||
.put(JSONObject().put("id", 7).put("name", "DONTFORGET").put("verified", true))
|
||||
.put(JSONObject().put("id", 0).put("name", "No id"))
|
||||
.put(JSONObject().put("id", 8).put("name", ""))
|
||||
.put("junk")
|
||||
val games = SteamGridDb.games(data)
|
||||
assertEquals(1, games.size)
|
||||
assertEquals(7, games[0].id)
|
||||
assertEquals("DONTFORGET", games[0].name)
|
||||
assertTrue(games[0].verified)
|
||||
}
|
||||
|
||||
@Test fun laterPagesAskForThePageAndTheFirstDoesNot() {
|
||||
assertEquals("heroes/game/5?nsfw=false&humor=false", SteamGridDb.path(5, AddedGameArt.Slot.BACKGROUND, 0))
|
||||
assertEquals("grids/game/5?dimensions=600x900&nsfw=false&humor=false&page=2", SteamGridDb.path(5, AddedGameArt.Slot.COVER, 2))
|
||||
}
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
package com.droiddeck.launcher.frontend
|
||||
|
||||
import java.io.File
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Rule
|
||||
import org.junit.Test
|
||||
import org.junit.rules.TemporaryFolder
|
||||
|
||||
class DependencyDetectorTest {
|
||||
@get:Rule val tmp = TemporaryFolder()
|
||||
|
||||
@Test fun foldersAboveTheGameDoNotChangeWhatIsFound() {
|
||||
val folder = File(tmp.newFolder("Games 2005", "agility"), "Game")
|
||||
File(folder, "_CommonRedist/vcredist/2013").mkdirs()
|
||||
File(folder, "_CommonRedist/vcredist/2013/vcredist_x64.exe").writeText("x")
|
||||
assertEquals(listOf("vcredist2013"), DependencyDetector.detect(folder).map { it.componentName })
|
||||
}
|
||||
}
|
||||
@@ -1,80 +0,0 @@
|
||||
package com.droiddeck.launcher.gpu
|
||||
|
||||
import com.droiddeck.launcher.gpu.GpuInfo.Family
|
||||
import com.droiddeck.launcher.gpu.GpuInfo.Support
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Test
|
||||
|
||||
class GpuDetectionTest {
|
||||
private fun info(adreno: Boolean, model: Int) =
|
||||
GpuInfo(name = "x", model = model, family = GpuInfo.familyOf(adreno, model), soc = "", oneUi8Gen2 = false)
|
||||
|
||||
@Test fun modelIsTheFirstThreeDigitsOfWhateverTheKernelOrVulkanReports() {
|
||||
assertEquals(650, GpuInfo.threeDigits("Adreno650"))
|
||||
assertEquals(830, GpuInfo.threeDigits("Adreno (TM) 830"))
|
||||
assertEquals(740, GpuInfo.threeDigits("Adreno740v2"))
|
||||
assertEquals(618, GpuInfo.threeDigits(" adreno 618 "))
|
||||
assertEquals(750, GpuInfo.threeDigits("Adreno (TM) 750 (Qualcomm)"))
|
||||
assertEquals(0, GpuInfo.threeDigits(""))
|
||||
assertEquals(0, GpuInfo.threeDigits(" "))
|
||||
assertEquals(0, GpuInfo.threeDigits("Adreno"))
|
||||
assertEquals(0, GpuInfo.threeDigits("Adreno 65"))
|
||||
}
|
||||
|
||||
@Test fun nonAdrenoRenderersAreNeverAdrenoWhateverNumberTheyCarry() {
|
||||
// Xclipse (Exynos), Mali and Immortalis names; familyOf ignores the number off Adreno.
|
||||
assertEquals(Family.NOT_ADRENO, GpuInfo.familyOf(false, 0))
|
||||
assertEquals(Family.NOT_ADRENO, GpuInfo.familyOf(false, GpuInfo.threeDigits("Samsung Xclipse 920")))
|
||||
assertEquals(Family.NOT_ADRENO, GpuInfo.familyOf(false, GpuInfo.threeDigits("Xclipse 940")))
|
||||
assertEquals(Family.NOT_ADRENO, GpuInfo.familyOf(false, GpuInfo.threeDigits("Mali-G720-Immortalis MC12")))
|
||||
assertEquals(Family.NOT_ADRENO, GpuInfo.familyOf(false, GpuInfo.threeDigits("Mali-G715")))
|
||||
assertEquals(Family.NOT_ADRENO, GpuInfo.familyOf(false, 830))
|
||||
}
|
||||
|
||||
@Test fun familyBoundaries() {
|
||||
assertEquals(Family.ADRENO_UNKNOWN, GpuInfo.familyOf(true, 0))
|
||||
assertEquals(Family.ADRENO_UNKNOWN, GpuInfo.familyOf(true, 540))
|
||||
assertEquals(Family.ADRENO_UNKNOWN, GpuInfo.familyOf(true, 599))
|
||||
for (m in listOf(600, 618, 619, 640, 650, 660, 690)) assertEquals("$m", Family.A6XX, GpuInfo.familyOf(true, m))
|
||||
for (m in listOf(710, 720, 722)) assertEquals("$m", Family.A7XX_LOW, GpuInfo.familyOf(true, m))
|
||||
for (m in listOf(700, 702, 725, 730, 740, 750, 780)) assertEquals("$m", Family.A7XX, GpuInfo.familyOf(true, m))
|
||||
for (m in listOf(800, 825, 829, 830, 840, 999)) assertEquals("$m", Family.A8XX, GpuInfo.familyOf(true, m))
|
||||
}
|
||||
|
||||
@Test fun supportTiers() {
|
||||
assertEquals(Support.TESTED, info(true, 650).support)
|
||||
assertEquals(Support.UNTESTED, info(true, 640).support)
|
||||
assertEquals(Support.UNTESTED, info(true, 618).support)
|
||||
assertEquals(Support.UNTESTED, info(true, 660).support)
|
||||
assertEquals(Support.UNTESTED, info(true, 720).support)
|
||||
assertEquals(Support.UNTESTED, info(true, 722).support)
|
||||
assertEquals(Support.UNTESTED, info(true, 0).support)
|
||||
assertEquals(Support.TESTED, info(true, 725).support)
|
||||
assertEquals(Support.TESTED, info(true, 740).support)
|
||||
assertEquals(Support.TESTED, info(true, 750).support)
|
||||
assertEquals(Support.TESTED, info(true, 830).support)
|
||||
assertEquals(Support.UNSUPPORTED, info(false, 0).support)
|
||||
assertEquals(Support.UNSUPPORTED, info(false, 830).support)
|
||||
}
|
||||
|
||||
@Test fun userFacingTextPerTier() {
|
||||
assertEquals("Supported", info(true, 830).supportText)
|
||||
assertEquals("Experimental: its drivers are test builds", info(true, 720).supportText)
|
||||
assertEquals("Outside tested hardware (Adreno 650, 725 and newer): it may not run", info(true, 618).supportText)
|
||||
assertEquals("Not supported: DroidDeck needs an Adreno (Snapdragon) GPU", info(false, 0).supportText)
|
||||
assertEquals("Not an Adreno GPU", Family.NOT_ADRENO.label)
|
||||
assertEquals("Adreno 8xx", Family.A8XX.label)
|
||||
}
|
||||
|
||||
@Test fun platformCodeNamesIncludingCaseAndUnknowns() {
|
||||
assertEquals(640, GpuInfo.platformModel("msmnile"))
|
||||
assertEquals(650, GpuInfo.platformModel("kona"))
|
||||
assertEquals(660, GpuInfo.platformModel("LAHAINA"))
|
||||
assertEquals(730, GpuInfo.platformModel("taro"))
|
||||
assertEquals(730, GpuInfo.platformModel("cape"))
|
||||
assertEquals(830, GpuInfo.platformModel("Sun"))
|
||||
assertEquals(0, GpuInfo.platformModel(""))
|
||||
assertEquals(0, GpuInfo.platformModel("exynos2400"))
|
||||
assertEquals(0, GpuInfo.platformModel(" kona "))
|
||||
}
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
package com.droiddeck.launcher.gpu
|
||||
|
||||
import com.droiddeck.launcher.session.QuestExperimental
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Before
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import org.robolectric.RobolectricTestRunner
|
||||
import org.robolectric.RuntimeEnvironment
|
||||
import org.robolectric.annotation.Config
|
||||
import org.robolectric.shadows.ShadowBuild
|
||||
|
||||
@RunWith(RobolectricTestRunner::class)
|
||||
@Config(sdk = [28], manifest = Config.NONE)
|
||||
class TurnipDriverAutoTest {
|
||||
@Before fun reset() {
|
||||
ShadowBuild.setModel("Phone")
|
||||
ShadowBuild.setDevice("phone")
|
||||
}
|
||||
|
||||
@Test fun questModelsUseTheirPatchedDriverAsTheFallback() {
|
||||
val driver = TurnipDriver(RuntimeEnvironment.getApplication())
|
||||
for (model in listOf("Quest 3", "Quest 3S", "Quest 2")) {
|
||||
ShadowBuild.setModel(model)
|
||||
assertEquals(if (model == "Quest 2") QuestExperimental.DRIVER_A6XX else QuestExperimental.DRIVER,
|
||||
driver.autoId())
|
||||
}
|
||||
}
|
||||
|
||||
@Test fun otherDevicesRetainTheGenericFallback() {
|
||||
assertEquals("turnip25.1.0", TurnipDriver(RuntimeEnvironment.getApplication()).autoId())
|
||||
}
|
||||
}
|
||||
@@ -1,96 +0,0 @@
|
||||
package com.droiddeck.launcher.input
|
||||
|
||||
import android.view.MotionEvent
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import org.robolectric.RobolectricTestRunner
|
||||
import org.robolectric.annotation.Config
|
||||
|
||||
@RunWith(RobolectricTestRunner::class)
|
||||
@Config(sdk = [28], manifest = Config.NONE)
|
||||
class ThreeFingerTapTest {
|
||||
private val tap = ThreeFingerTap(8f)
|
||||
private var time = 1000L
|
||||
private var downTime = 0L
|
||||
private val a = 1 to (400f to 300f)
|
||||
private val b = 2 to (500f to 300f)
|
||||
private val c = 3 to (600f to 300f)
|
||||
|
||||
@Test fun quickThreeFingerTapFires() {
|
||||
assertEquals(listOf(false, false, false, false, false, true), threeFingerTap())
|
||||
}
|
||||
|
||||
@Test fun activeOnceTheThirdFingerLandsUntilTheLastLifts() {
|
||||
touch(MotionEvent.ACTION_DOWN, 0, a)
|
||||
touch(MotionEvent.ACTION_POINTER_DOWN, 1, a, b)
|
||||
assertFalse(tap.active)
|
||||
touch(MotionEvent.ACTION_POINTER_DOWN, 2, a, b, c)
|
||||
assertTrue(tap.active)
|
||||
touch(MotionEvent.ACTION_POINTER_UP, 2, a, b, c)
|
||||
touch(MotionEvent.ACTION_POINTER_UP, 1, a, b)
|
||||
assertTrue(tap.active)
|
||||
touch(MotionEvent.ACTION_UP, 0, a)
|
||||
assertFalse(tap.active)
|
||||
}
|
||||
|
||||
@Test fun twoFingerTapDoesNotFire() {
|
||||
touch(MotionEvent.ACTION_DOWN, 0, a)
|
||||
touch(MotionEvent.ACTION_POINTER_DOWN, 1, a, b)
|
||||
touch(MotionEvent.ACTION_POINTER_UP, 1, a, b)
|
||||
assertFalse(touch(MotionEvent.ACTION_UP, 0, a))
|
||||
}
|
||||
|
||||
@Test fun heldTooLongDoesNotFire() {
|
||||
assertFalse(threeFingerTap(hold = 600).last())
|
||||
}
|
||||
|
||||
@Test fun swipeDoesNotFire() {
|
||||
touch(MotionEvent.ACTION_DOWN, 0, a)
|
||||
touch(MotionEvent.ACTION_POINTER_DOWN, 1, a, b)
|
||||
touch(MotionEvent.ACTION_POINTER_DOWN, 2, a, b, c)
|
||||
touch(MotionEvent.ACTION_MOVE, 0, a, b, 3 to (600f to 400f))
|
||||
touch(MotionEvent.ACTION_POINTER_UP, 2, a, b, c)
|
||||
touch(MotionEvent.ACTION_POINTER_UP, 1, a, b)
|
||||
assertFalse(touch(MotionEvent.ACTION_UP, 0, a))
|
||||
}
|
||||
|
||||
@Test fun fingersLandingFarApartDoNotFire() {
|
||||
touch(MotionEvent.ACTION_DOWN, 0, a)
|
||||
time += 500
|
||||
touch(MotionEvent.ACTION_POINTER_DOWN, 1, a, b)
|
||||
touch(MotionEvent.ACTION_POINTER_DOWN, 2, a, b, c)
|
||||
touch(MotionEvent.ACTION_POINTER_UP, 2, a, b, c)
|
||||
touch(MotionEvent.ACTION_POINTER_UP, 1, a, b)
|
||||
assertFalse(touch(MotionEvent.ACTION_UP, 0, a))
|
||||
}
|
||||
|
||||
private fun threeFingerTap(hold: Long = 100): List<Boolean> {
|
||||
val out = mutableListOf<Boolean>()
|
||||
out += touch(MotionEvent.ACTION_DOWN, 0, a)
|
||||
time += 20
|
||||
out += touch(MotionEvent.ACTION_POINTER_DOWN, 1, a, b)
|
||||
time += 20
|
||||
out += touch(MotionEvent.ACTION_POINTER_DOWN, 2, a, b, c)
|
||||
time += hold
|
||||
out += touch(MotionEvent.ACTION_POINTER_UP, 2, a, b, c)
|
||||
out += touch(MotionEvent.ACTION_POINTER_UP, 1, a, b)
|
||||
out += touch(MotionEvent.ACTION_UP, 0, a)
|
||||
return out
|
||||
}
|
||||
|
||||
private fun touch(action: Int, index: Int, vararg pointers: Pair<Int, Pair<Float, Float>>): Boolean {
|
||||
if (action == MotionEvent.ACTION_DOWN) downTime = time
|
||||
val properties = pointers.map { (id, _) ->
|
||||
MotionEvent.PointerProperties().apply { this.id = id; toolType = MotionEvent.TOOL_TYPE_FINGER }
|
||||
}.toTypedArray()
|
||||
val coords = pointers.map { (_, at) ->
|
||||
MotionEvent.PointerCoords().apply { x = at.first; y = at.second; pressure = 1f; size = 1f }
|
||||
}.toTypedArray()
|
||||
val masked = action or (index shl MotionEvent.ACTION_POINTER_INDEX_SHIFT)
|
||||
val event = MotionEvent.obtain(downTime, time, masked, pointers.size, properties, coords, 0, 0, 1f, 1f, 0, 0, 0, 0)
|
||||
return tap.onTouch(event).also { event.recycle() }
|
||||
}
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
package com.droiddeck.launcher.runtime
|
||||
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertNotEquals
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Test
|
||||
|
||||
class LinuxRuntimeArchiveNameTest {
|
||||
private fun release(version: String, sha: String) =
|
||||
LinuxRuntimeInstaller.Release(version, "https://example.invalid/runtime.tar.zst", sha, 1L)
|
||||
|
||||
@Test fun sameReleaseKeepsTheSameName() {
|
||||
val a = LinuxRuntimeInstaller.archiveName(release("r9", "ab".repeat(32)))
|
||||
val b = LinuxRuntimeInstaller.archiveName(release("r9", "ab".repeat(32)))
|
||||
assertEquals(a, b)
|
||||
}
|
||||
|
||||
@Test fun anotherVersionOrChecksumGetsAnotherName() {
|
||||
val base = LinuxRuntimeInstaller.archiveName(release("r9", "ab".repeat(32)))
|
||||
assertNotEquals(base, LinuxRuntimeInstaller.archiveName(release("r10", "ab".repeat(32))))
|
||||
assertNotEquals(base, LinuxRuntimeInstaller.archiveName(release("r9", "cd".repeat(32))))
|
||||
}
|
||||
|
||||
@Test fun nameIsASafeFileNameThatTheCleanupRecognises() {
|
||||
val name = LinuxRuntimeInstaller.archiveName(release("r9/../x y", "AB/CD ".repeat(10)))
|
||||
assertFalse(name.contains('/'))
|
||||
assertFalse(name.contains(' '))
|
||||
assertTrue(name.startsWith("linuxfs"))
|
||||
assertTrue(name.endsWith(".tar.zst"))
|
||||
}
|
||||
|
||||
@Test fun shortOrEmptyChecksumStillMakesAName() {
|
||||
assertEquals("linuxfs-r9-.tar.zst", LinuxRuntimeInstaller.archiveName(release("r9", "")))
|
||||
}
|
||||
}
|
||||
@@ -52,7 +52,7 @@ class ProtonExtrasTest {
|
||||
val droiddeck = tool("droiddeck")
|
||||
assertEquals("DroidDeck-Proton", droiddeck.name)
|
||||
assertEquals("DroidDeck-Proton", droiddeck.prefix)
|
||||
assertEquals("Droid-Deck/DroidDeck-Proton", droiddeck.repo)
|
||||
assertEquals("The412Banner/DroidDeck-Proton", droiddeck.repo)
|
||||
assertTrue(droiddeck.assetPattern.containsMatchIn("DroidDeck-Proton-11-7.5-aarch64.tar.gz"))
|
||||
assertTrue(droiddeck.assetPattern.containsMatchIn("DroidDeck-Proton-11-8-aarch64.tar.xz"))
|
||||
assertFalse(droiddeck.assetPattern.containsMatchIn("DroidDeck-Proton-11-7.5-aarch64.sha512sum"))
|
||||
|
||||
@@ -76,35 +76,6 @@ class QuestExperimentalTest {
|
||||
assertFalse(QuestExperimental.supported("Pixel 7", "panther", "Google"))
|
||||
}
|
||||
|
||||
@Test fun autoUsesTheQuestPairWithoutChangingOtherSettings() {
|
||||
for (model in listOf("Quest 3", "Quest 3S", "Quest 2")) {
|
||||
ShadowBuild.setModel(model)
|
||||
SessionPrefs.setGpuDriverMode(context, SessionPrefs.GPU_DRIVERS_AUTO)
|
||||
SessionPrefs.setAndroidDriver(context, "downloaded-display")
|
||||
SessionPrefs.setLinuxDriver(context, "downloaded-linux")
|
||||
SessionPrefs.setHdr(context, "steam", false)
|
||||
assertTrue(QuestExperimental.applyAutoDrivers(context))
|
||||
assertEquals(if (model == "Quest 2") QuestExperimental.DRIVER_A6XX else QuestExperimental.DRIVER,
|
||||
SessionPrefs.androidDriver(context))
|
||||
assertEquals("", SessionPrefs.linuxDriver(context))
|
||||
assertEquals(SessionPrefs.GPU_DRIVERS_AUTO, SessionPrefs.gpuDriverMode(context))
|
||||
assertFalse(SessionPrefs.hdr(context, "steam"))
|
||||
}
|
||||
}
|
||||
|
||||
@Test fun autoLeavesManualQuestChoicesAndOtherDevicesAlone() {
|
||||
for ((model, mode) in listOf("Quest 3" to SessionPrefs.GPU_DRIVERS_MANUAL,
|
||||
"Phone" to SessionPrefs.GPU_DRIVERS_AUTO)) {
|
||||
ShadowBuild.setModel(model)
|
||||
SessionPrefs.setGpuDriverMode(context, mode)
|
||||
SessionPrefs.setAndroidDriver(context, "chosen-display")
|
||||
SessionPrefs.setLinuxDriver(context, "chosen-linux")
|
||||
assertFalse(QuestExperimental.applyAutoDrivers(context))
|
||||
assertEquals("chosen-display", SessionPrefs.androidDriver(context))
|
||||
assertEquals("chosen-linux", SessionPrefs.linuxDriver(context))
|
||||
}
|
||||
}
|
||||
|
||||
@Test fun installedPackagesUseSeparateSandboxSockets() {
|
||||
val packages = listOf("com.droiddeck.launcher", "com.tencent.ig",
|
||||
"com.antutu.benchmark.full", "com.ludashi.benchmark")
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
package com.droiddeck.launcher.stores
|
||||
|
||||
import android.content.Context
|
||||
import android.content.ContextWrapper
|
||||
import android.content.SharedPreferences
|
||||
import org.junit.After
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Before
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import org.robolectric.RobolectricTestRunner
|
||||
import org.robolectric.RuntimeEnvironment
|
||||
import org.robolectric.annotation.Config
|
||||
|
||||
@RunWith(RobolectricTestRunner::class)
|
||||
@Config(sdk = [33], manifest = Config.NONE)
|
||||
class CloudRecoveryThreadTest {
|
||||
private val uncaught = mutableListOf<Throwable>()
|
||||
private var previous: Thread.UncaughtExceptionHandler? = null
|
||||
|
||||
@Before fun setUp() {
|
||||
previous = Thread.getDefaultUncaughtExceptionHandler()
|
||||
Thread.setDefaultUncaughtExceptionHandler { _, error -> synchronized(uncaught) { uncaught += error } }
|
||||
}
|
||||
|
||||
@After fun tearDown() {
|
||||
Thread.setDefaultUncaughtExceptionHandler(previous)
|
||||
}
|
||||
|
||||
@Test fun aFailingRecoveryUploadDoesNotReachTheCrashHandler() {
|
||||
val context = object : ContextWrapper(RuntimeEnvironment.getApplication()) {
|
||||
override fun getApplicationContext(): Context = this
|
||||
override fun getSharedPreferences(name: String, mode: Int): SharedPreferences =
|
||||
if (name == "stores.cloud") throw IllegalStateException("preferences are gone") else super.getSharedPreferences(name, mode)
|
||||
}
|
||||
StoresState.init(context)
|
||||
Thread.getAllStackTraces().keys.filter { it.name == "cloud-recovery" }.forEach { it.join(5000) }
|
||||
assertEquals(emptyList<Throwable>(), synchronized(uncaught) { uncaught.toList() })
|
||||
}
|
||||
}
|
||||
@@ -1,67 +0,0 @@
|
||||
package com.droiddeck.launcher.stores
|
||||
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Test
|
||||
|
||||
class SortCatalogItemsTest {
|
||||
private fun item(id: String, title: String, size: Long = 0, releaseDate: String = "") =
|
||||
CatalogItem(Store.GOG, id, title, imageUrl = null, sizeBytes = size, releaseDate = releaseDate, owned = true)
|
||||
|
||||
@Test fun titleOrderIsCaseInsensitiveAndDescendingIsItsMirror() {
|
||||
val items = listOf(item("1", "Zelda"), item("2", "alpha"), item("3", "Beta"))
|
||||
assertEquals(listOf("alpha", "Beta", "Zelda"), sortCatalogItems(items, "titleAsc").map { it.title })
|
||||
assertEquals(listOf("Zelda", "Beta", "alpha"), sortCatalogItems(items, "titleDesc").map { it.title })
|
||||
}
|
||||
|
||||
@Test fun playedAndInstalledComeFirstWithTitlesBreakingTies() {
|
||||
val items = listOf(item("1", "Zelda"), item("2", "alpha"), item("3", "Beta"))
|
||||
val played = mapOf("gog:3" to 900L, "gog:1" to 900L)
|
||||
assertEquals(listOf("Beta", "Zelda", "alpha"), sortCatalogItems(items, "lastPlayed", lastPlayed = { played[it.key] ?: 0L }).map { it.title })
|
||||
val installed = mapOf("gog:2" to 500L)
|
||||
assertEquals(listOf("alpha", "Beta", "Zelda"), sortCatalogItems(items, "recentlyInstalled", installedAt = { installed[it.key] ?: 0L }).map { it.title })
|
||||
}
|
||||
|
||||
@Test fun sizeAscendingPutsUnknownSizesLast() {
|
||||
val items = listOf(item("1", "Zelda"), item("2", "alpha", size = 500), item("3", "Beta", size = 900))
|
||||
assertEquals(listOf("alpha", "Beta", "Zelda"), sortCatalogItems(items, "sizeAsc").map { it.title })
|
||||
assertEquals(listOf("Beta", "alpha", "Zelda"), sortCatalogItems(items, "sizeDesc").map { it.title })
|
||||
}
|
||||
|
||||
@Test fun releaseDatesSortNewestFirstAndUnparsableOnesLast() {
|
||||
val items = listOf(item("1", "Zelda", releaseDate = "1986-02-21"), item("2", "alpha", releaseDate = "2023-05-12"), item("3", "Beta", releaseDate = "TBA"))
|
||||
assertEquals(listOf("alpha", "Zelda", "Beta"), sortCatalogItems(items, "releaseDateDesc").map { it.title })
|
||||
}
|
||||
|
||||
@Test fun unknownSortKeepsTheCatalogsOwnOrder() {
|
||||
val items = listOf(item("1", "Zelda"), item("2", "alpha"))
|
||||
assertEquals(listOf("Zelda", "alpha"), sortCatalogItems(items, "whatever").map { it.title })
|
||||
}
|
||||
|
||||
@Test fun pendingSizeSortRetainsThePreviousSortOrder() {
|
||||
val items = listOf(item("1", "Zelda"), item("2", "alpha"), item("3", "Beta"))
|
||||
val previousOrders = listOf(
|
||||
sortCatalogItems(items, "titleDesc"),
|
||||
sortCatalogItems(items, "lastPlayed", lastPlayed = { if (it.id == "3") 900L else 0L }),
|
||||
)
|
||||
previousOrders.forEach { previous ->
|
||||
assertEquals(previous, retainCatalogOrder(items, previous))
|
||||
}
|
||||
}
|
||||
|
||||
@Test fun retainedOrderUsesCurrentItemMetadata() {
|
||||
val old = listOf(item("1", "Zelda"), item("2", "alpha"))
|
||||
val current = listOf(old[0].copy(sizeBytes = 500), old[1].copy(title = "Alpha updated"))
|
||||
assertEquals(listOf(current[1], current[0]), retainCatalogOrder(current, old.reversed()))
|
||||
}
|
||||
|
||||
@Test fun changedMembershipFallsBackToCurrentCandidates() {
|
||||
val previous = listOf(item("1", "Zelda"), item("2", "alpha"))
|
||||
val added = previous + item("3", "Beta")
|
||||
val removed = previous.take(1)
|
||||
val replaced = listOf(previous[0], item("3", "Beta"))
|
||||
listOf(added, removed, replaced, emptyList()).forEach { current ->
|
||||
assertEquals(current, retainCatalogOrder(current, previous))
|
||||
}
|
||||
assertEquals(previous, retainCatalogOrder(previous, emptyList()))
|
||||
}
|
||||
}
|
||||
@@ -20,9 +20,7 @@ class SessionDrawerPageTest {
|
||||
assertEquals(sessionDrawerPages(false), connected.filter { it != SessionDrawerPage.SECOND_SCREEN })
|
||||
for (pages in listOf(connected, sessionDrawerPages(false))) {
|
||||
assertEquals(SessionDrawerPage.EFFECTS, pages.step(SessionDrawerPage.DISPLAY, 1))
|
||||
assertEquals(SessionDrawerPage.STEAMVR, pages.step(SessionDrawerPage.EFFECTS, 1))
|
||||
assertEquals(SessionDrawerPage.CARDBOARD, pages.step(SessionDrawerPage.STEAMVR, 1))
|
||||
assertEquals(SessionDrawerPage.GAMES, pages.step(SessionDrawerPage.CARDBOARD, 1))
|
||||
assertEquals(SessionDrawerPage.GAMES, pages.step(SessionDrawerPage.EFFECTS, 1))
|
||||
assertEquals(SessionDrawerPage.SESSION, pages.step(SessionDrawerPage.GAMES, 1))
|
||||
}
|
||||
}
|
||||
|
||||
+3
-25
@@ -12,8 +12,6 @@ and reports every run.
|
||||
answers each command with JSON. It and the session-start Activity (`AgentStartActivity`) are in
|
||||
every build and require `android.permission.DUMP`, held by the ADB shell and privileged or
|
||||
explicitly granted callers. The provider checks the calling permission before decoding requests.
|
||||
A build shipped under another package (`tools/release/variants.txt`) answers at
|
||||
`content://<package>.agent`: set `DROIDDECK_PACKAGE` to that package for `droiddeckctl`.
|
||||
- **The guest agent** `droiddeck-agent` runs inside every session (started by
|
||||
`droiddeck-session`). It runs commands with the session's own environment, publishes gamescope's
|
||||
focus, and talks to the Steam client's DevTools, which only accepts guest processes. The app and
|
||||
@@ -25,8 +23,8 @@ and reports every run.
|
||||
## Access
|
||||
|
||||
Player controls and observations work over authorized ADB on any build: `state`, `start`, `stop`,
|
||||
`resume`, `wait`, `launch`, `quit`, `focus`, `input`, `ui`, `logs`, `screenshot`, `record`, `pacing`,
|
||||
`displays`, `wake`, and `access`.
|
||||
`resume`, `wait`, `launch`, `quit`, `focus`, `input`, `ui`, `logs`, `screenshot`, `record`, `displays`,
|
||||
`wake`, and `access`.
|
||||
|
||||
**Setup > Diagnostics > Debugging tools** is off by default in every build, including debug builds.
|
||||
It enables `run`, `guest`, `cdp`, all `env` operations, `override`, and `prefs`. The toggle switches
|
||||
@@ -117,33 +115,13 @@ tools/droiddeckctl prefs set session some_key true --type bool
|
||||
|
||||
tools/droiddeckctl logs latest ./session-artifacts
|
||||
tools/droiddeckctl screenshot ./screen.png --display 4
|
||||
tools/droiddeckctl xr-frame ./xr-capture
|
||||
tools/droiddeckctl record ./clip.mp4 --seconds 8 --display 0
|
||||
tools/droiddeckctl pacing --seconds 30
|
||||
tools/droiddeckctl displays
|
||||
tools/droiddeckctl wake
|
||||
```
|
||||
|
||||
`xr-frame` captures both app eye textures while SteamVR is open, saving `left.png`,
|
||||
`right.png` and `capture.json` with the matching source frame, projection poses,
|
||||
FOV and dimensions. It works over wired or wireless authorized ADB.
|
||||
Newer builds also include `source.png`, the incoming stereo texture before the
|
||||
Android eye draw, and sRGB attachment/write state in the metadata for color debugging.
|
||||
Source PNGs use the incoming frame's color space and eye PNGs use sRGB. Transfers use Android's
|
||||
gzip utility to avoid sending full uncompressed images over wireless ADB.
|
||||
A unique request ID prevents stale images from passing as a fresh capture; no valid XR
|
||||
layer produces an explicit error. Captures exclude Meta system overlays and
|
||||
the headset compositor's final reprojection. GPU readback runs only on request
|
||||
and can briefly affect frame timing. Remote files are overwritten each time.
|
||||
|
||||
A sleeping device suspends the session and hides the app's windows from `ui dump`; `wake` first.
|
||||
|
||||
`pacing` reads SurfaceFlinger's timestats for the game's layer (the session's SurfaceView when the
|
||||
compositor has no layer of its own) and reports the frames that reached the panel, `fpsOnScreen`,
|
||||
the present-to-present histogram and the share of intervals off the usual cadence. A game's own fps
|
||||
counter counts frames handed over, not frames shown, so it can read 60 while one frame in four
|
||||
stays on screen for two refreshes.
|
||||
|
||||
`input` needs a session that has drawn its first frame. Pad input goes through the session screen's
|
||||
virtual pad, the same one the on-screen controls drive, so games that ignore touch still respond.
|
||||
`launch`, `quit` and `cdp` need a Steam session; `focus` and `wait focused` need gamescope (every
|
||||
@@ -189,7 +167,7 @@ Automator show them:
|
||||
| `play-steam` | Play on the Steam and Games pages |
|
||||
| `setting-<key>` | every toggle and choice row, by its key (`setting-logs`, `setting-agent-commands`, ...) |
|
||||
| `tab-<n>` | a page's tab strip (Setup's Overview, Controller, Session, Launcher...), by position |
|
||||
| `drawer-tab-controller`, `-second_screen`, `-display`, `-effects`, `-steamvr`, `-cardboard`, `-games`, `-session` | the session drawer's pages |
|
||||
| `drawer-tab-controller`, `-second_screen`, `-display`, `-effects`, `-games`, `-session` | the session drawer's pages |
|
||||
| `drawer-stop`, `drawer-stop-confirm`, `drawer-stop-cancel` | stopping a session from the drawer |
|
||||
|
||||
## Scenarios
|
||||
|
||||
@@ -66,19 +66,10 @@ value holds on both sides.
|
||||
Automatic: the game folder's own images, then Steam (the appid the files name, else a
|
||||
store search whose result has the same name), then SteamGridDB, then the exe's icon. The
|
||||
art chooser (an Artwork row) shows the game folder's images, Steam's official piece and
|
||||
SteamGridDB's best few (fetched when it opens); a tap applies one, "Search SteamGridDB…"
|
||||
opens a search (it starts with the game's name and opens the match at once when one is
|
||||
exact; "Show more" pages through the images), "Pick image…" takes a file through the same
|
||||
picker (png, jpg, jpeg, webp, ico), "Reset to automatic" drops the choice. A choice is a
|
||||
copy in `files/added-art/<appid>/chosen-<slot>.<ext>`, its source in the preferences.
|
||||
|
||||
SteamGridDB failures are told apart (`SteamGridDb.Status`: no key, key refused, rate limit,
|
||||
offline, server, no match for the game) and shown under the SteamGridDB images instead of
|
||||
leaving the row out. The SteamGridDB game id is remembered per game in
|
||||
`added-art/<appid>/sgdb-id`; "none" (SteamGridDB has no such game) is kept for a week, but
|
||||
a failed request is never written as "none", a "none" older than the saved key is asked
|
||||
again, and the chooser always asks again when the user opens it. A background pass stops
|
||||
asking SteamGridDB after its first failure.
|
||||
SteamGridDB's best few (fetched when it opens); a tap applies one, "Pick image…" takes a
|
||||
file through the same picker (png, jpg, jpeg, webp, ico), "Reset to automatic" drops the
|
||||
choice. A choice is a copy in `files/added-art/<appid>/chosen-<slot>.<ext>`, its source in
|
||||
the preferences.
|
||||
|
||||
Setup › Launcher › Games holds the Artwork switch (automatic fetching) and the
|
||||
SteamGridDB API key: the user's own, sealed with `CredentialCipher`, wins over the build's
|
||||
|
||||
@@ -0,0 +1,408 @@
|
||||
# Quest OpenXR implementation
|
||||
|
||||
Branch: `feat/quest-openxr`. The goal is standalone immersive SteamVR on Quest,
|
||||
using DroidDeck's Linux guest and an Android OpenXR frontend.
|
||||
|
||||
## Milestone 1: native headset frontend
|
||||
|
||||
`questxr` builds a separate `com.droiddeck.questxr` companion so the frontend can
|
||||
be validated without replacing the installed DroidDeck runtime. It uses the
|
||||
Khronos Android loader, GLES swapchains, predicted stereo views and head poses,
|
||||
Touch grip/trigger actions, and trigger-edge haptic feedback. The test scene has
|
||||
world-fixed geometry and tracked controller cubes. Controller availability is
|
||||
optional for the diagnostic scene; sleeping controllers remain inactive.
|
||||
|
||||
Build with `:questxr:assembleDebug`. `tools/deploy_quest_xr.ps1` builds, aligns,
|
||||
signs with an external key directory, verifies the expected certificate and
|
||||
installs the companion. Private keys must remain outside the checkout.
|
||||
|
||||
Run `python tools/test_quest_xr.py --adb <adb executable>`. The runner restarts
|
||||
the companion, simulates wearing the headset using Meta's documented
|
||||
`com.oculus.vrpowermanager.prox_close` broadcast, checks fresh advancing frame
|
||||
telemetry and valid tracked head pose, and stores local JSON/logcat results in
|
||||
the ignored `questxr-validation` directory. Use `--require-controllers` when
|
||||
both Touch controllers are awake. That option must pass before claiming tracked
|
||||
controller validation. Trigger haptics require an actual trigger press.
|
||||
|
||||
## Device evidence, 2026-10-14
|
||||
|
||||
Quest 3, Android 14, DroidDeck 0.4.0. Local Windows build with NDK 27.2.12479018
|
||||
passed. The deployed companion certificate matches `keystore/release-signer.sha256`.
|
||||
The automated 15-second test passed with 792 rendered stereo frames at the last
|
||||
sample, a 13,888,888 ns predicted display period (72 Hz), and head location flags
|
||||
15 (position/orientation valid and tracked). A focused state was observed before
|
||||
an OS panel took input focus; stereo frame submission continued in VISIBLE.
|
||||
Neither controller was active. Controller motion and physical haptics have not
|
||||
been validated. This establishes native OpenXR rendering, not SteamVR gameplay.
|
||||
|
||||
Quest reported `XR_KHR_android_surface_swapchain` support. Next, validate an
|
||||
Android-produced surface swapchain as a projection source, then connect the
|
||||
existing Android Wayland compositor to it. This may avoid transferring Linux
|
||||
dmabufs directly into the runtime's graphics device. Surface support alone does
|
||||
not establish that projection, synchronization, or SteamVR rendering works.
|
||||
|
||||
The first launch left a controller-required OS dialog from an earlier manifest.
|
||||
After declaring optional controller/hand capability and restarting VR Shell,
|
||||
the app launched. Automated tests should report launch blockers rather than
|
||||
treating a successful `am start` as successful rendering.
|
||||
|
||||
## Milestone 2: Android projection surface and guest integration
|
||||
|
||||
The Android Surface producer test passed repeatedly, including 1,079 submitted
|
||||
stereo frames in a 15-second test at 72 Hz. The new stage-space test reports
|
||||
tracked floor-relative position, and the runtime supports monotonic-time
|
||||
conversion. A JNI abort during the first surface test was traced to treating
|
||||
the runtime's global Surface reference as a local reference and corrected.
|
||||
|
||||
The same native frontend is now compiled into the main app behind the explicit
|
||||
`QuestXrActivity` entrypoint. With `guest_surface=true`, it hands its Android
|
||||
projection Surface to the existing compositor. Surface transitions wait for a
|
||||
compositor acknowledgement after the old Vulkan swapchain's GPU work drains.
|
||||
Successful guest GPU presentations are counted separately from XR submissions.
|
||||
The main app's Kotlin and native targets compile locally; an on-device main-app
|
||||
guest test is still required before considering this bridge functional.
|
||||
|
||||
The frontend publishes a versioned 296-byte seqlock tracking record under the
|
||||
session runtime directory. It contains floor-relative head/controller poses,
|
||||
per-eye view geometry, predicted display time converted to CLOCK_MONOTONIC,
|
||||
display period, and Touch action values. The OpenVR driver consumes fresh
|
||||
records for real head/controller poses and asymmetric FOV; it marks stale
|
||||
tracking invalid. The modified ARM64 Linux driver links successfully in WSL.
|
||||
Driver timing, eye-to-head transforms, input completeness, render-pose/image
|
||||
association and return haptics still need implementation/validation.
|
||||
|
||||
The companion's release build now targets Android 14 and passes release lint.
|
||||
|
||||
## Milestone 3: input, timing and return haptics
|
||||
|
||||
The driver now supplies eye-to-head transforms and runtime-derived IPD, consumes
|
||||
Touch trigger/squeeze/stick/button state, reports predicted pose timestamps and
|
||||
paces vsync against converted OpenXR display timing. Vive-profile compatibility
|
||||
maps primary buttons to trackpad click and secondary/menu buttons to application
|
||||
menu. A versioned 64-byte feedback channel carries bounded driver haptic events
|
||||
back to OpenXR. Repeated surface tests still submit 1,079 stereo frames at 72 Hz.
|
||||
The native and Kotlin targets compile, release lint passes, and the ARM64 Linux
|
||||
driver links with no undefined symbols. IPC tests cover valid packets, odd
|
||||
seqlocks, version mismatch, stale/future timestamps, inactive state, excessive
|
||||
dimensions and truncated files; they run in CI as well.
|
||||
|
||||
The first full integration CI APK compiled successfully but failed the ELF
|
||||
closure check because its system-library list omitted `libGLESv3.so`. The list
|
||||
now recognizes that Android system dependency. A subsequent full CI run is
|
||||
required before deployment of the integrated main-app build.
|
||||
|
||||
On-device prerequisites: the installed app's Debugging tools toggle explicitly
|
||||
rejects agent UI activation (`PROTECTED_CONTROL`); it must be switched on-device.
|
||||
Steam is signed out and both Touch controllers remain inactive. These block
|
||||
guest command diagnostics and actual game/controller/haptic validation, but do
|
||||
not block native rendering or independent engineering. No guard was bypassed.
|
||||
|
||||
## Milestone 4: full build and deployment
|
||||
|
||||
Full CI run 38641552327 passed at `e1d09612`, including APK compilation, tracking
|
||||
IPC tests and ELF closure verification. Its 62,211,156-byte APK was downloaded,
|
||||
aligned and signed locally with the provided key. The installed original APK's
|
||||
certificate matched the expected release certificate. Updating the standard
|
||||
`com.droiddeck.launcher` package with `adb install -r` succeeded; a copy of the
|
||||
previous APK is retained locally under ignored `build/installed-original.apk`.
|
||||
No uninstall or data reset was performed.
|
||||
|
||||
At that stage, source added the Quest-specific SteamVR Start flow, ongoing SteamVR
|
||||
status telemetry, a clean native Back/exit path, and bounded Android event
|
||||
draining. It removes UI-thread waits from native surface handoff to avoid a
|
||||
NativeActivity destruction deadlock, and restores proximity after tests unless
|
||||
`--keep-awake` is specified. These changes compiled locally and subsequently
|
||||
shipped in the integrated APK described in the final build evidence.
|
||||
|
||||
Later device runs stopped rendering because the OS displayed **Finding position
|
||||
in room**, saying it cannot detect headset movement. Logs show the XR session
|
||||
going through STOPPING to IDLE; a sample had only flags 7, lacking tracked
|
||||
position. State changes are now written immediately to health telemetry, and
|
||||
tests require all four valid/tracked flags to establish 6DoF. Earlier successful
|
||||
72 Hz runs remain evidence for those earlier device conditions; the latest
|
||||
tests are not counted as passes. Physical headset positioning/lighting needs
|
||||
attention before sustained 6DoF and game validation can resume.
|
||||
|
||||
The actual shared tracking file was read through the debuggable companion:
|
||||
296 bytes, correct magic/version and even sequence, converted prediction about
|
||||
21 ms beyond the monotonic sample time. This confirms the IPC time-domain
|
||||
conversion on the headset.
|
||||
|
||||
## Milestone 5: owned image and original render-pose protocol
|
||||
|
||||
The opt-in `DROIDDECK_VR_PRESENT=questframes` presenter captures an owned RGBA
|
||||
side-by-side image and its original SteamVR render geometry. The driver retains
|
||||
each submitted `mHmdPose` and `mProjection` and composes the same eye-to-head rig
|
||||
configured at HMD activation. It does not substitute the newest tracked pose
|
||||
for an older image. The versioned 264-byte header and pixels travel together
|
||||
over a private, same-UID Unix socket. Acknowledgement means the receiver owns a
|
||||
complete CPU copy, not that an XR layer was displayed.
|
||||
|
||||
The capture path holds `Present` until its Vulkan copy fence completes. It
|
||||
refuses missing, empty, errored or timed-out producer DMA fences, unsupported
|
||||
multiple layers and malformed render geometry. It never substitutes the old
|
||||
4 ms delay for synchronization. **Kernel producer-fence registration on the
|
||||
Quest graphics chain is not yet established**, and KGSL may reject the export
|
||||
entirely. Consequently this is an experimental correctness-first path, not a
|
||||
verified synchronization solution. The existing compatibility Vulkan layer
|
||||
still drops some imported semaphore waits; that also needs resolution before
|
||||
gameplay correctness can be claimed.
|
||||
|
||||
With `frame_input=true`, the native frontend uses explicitly acquired GLES XR
|
||||
swapchain images, uploads receiver-owned pixels, and submits the captured
|
||||
per-eye poses/FOV. It omits stale images. `frame_verify=true` reads uploaded
|
||||
pixels back from the GPU and compares every byte. This mode is separate from
|
||||
the asynchronous Android Surface diagnostic. The main activity's explicit
|
||||
`guest_frames=true` entrypoint detaches the desktop Surface, keeps the guest
|
||||
active and starts the same SteamVR helper when requested. The Linux helper
|
||||
selects the experimental presenter only when this private receiver exists.
|
||||
`tools/test_quest_xr.py --guest --steamvr` uses that entrypoint and requires owned
|
||||
source images/frame IDs to advance, not generic desktop presentations. It is
|
||||
not yet the normal Quest Start flow and does not provide a zero-copy or
|
||||
performance-ready bridge.
|
||||
|
||||
Host tests cover image/pose pairing, rotation and asymmetric projection math,
|
||||
latest-frame replacement, copying before acknowledgement, private socket
|
||||
ownership, restart/stale-socket recovery, replay rejection, malformed/truncated
|
||||
input and deadlines. Address/undefined-behavior sanitizer tests pass. A separate
|
||||
test confirms eight concurrent blocking presenters exit when Vulkan cannot
|
||||
initialize. Android test executables compile with NDK 27.2.12479018; the main
|
||||
native target and companion APK also compile. These are host/build results,
|
||||
not headset GPU evidence. The Quest subsequently disappeared from ADB, so the
|
||||
new path cannot yet be deployed or validated on-device.
|
||||
|
||||
`tools/build_quest_xr_tests.ps1` builds the three Android test executables.
|
||||
`tools/test_quest_frame_channel.py --adb <adb> --native-tests <directory>` runs
|
||||
the Android protocol test and a known-pattern sender under the companion's own
|
||||
UID. It checks the final source frame ID and GPU checksum. Add
|
||||
`--require-rendering` to additionally require sustained tracked projection.
|
||||
Without that option it proves only private image transport/GLES upload, not
|
||||
6DoF, SteamVR or games. It never enables the main app's protected Debugging tools.
|
||||
|
||||
The failed full build at `7277386c` was a Debian archive HTTP package 404. CI now
|
||||
bootstraps CA certificates, uses HTTPS for compiler packages and retries
|
||||
downloads while retaining APT signature/package-hash verification.
|
||||
|
||||
The signed companion for this stage is retained locally under ignored
|
||||
`build/questxr-owned-frames-signed.apk`. Deployment supports `-SignOnly` while
|
||||
disconnected; before installing it now requires an authorized, explicitly
|
||||
selected Quest 3, rather than risking an unrelated Android device.
|
||||
|
||||
### Reconnected device evidence
|
||||
|
||||
Full CI run 38649944478 passed at `040d31c1` and its APK was downloaded and
|
||||
release-signed locally. After USB reconnection, the updated diagnostic companion
|
||||
installed successfully. The private image test passed on the actual Quest:
|
||||
144 complete frames received, zero rejections, 137 uploaded, final source and
|
||||
GPU-verified frame ID 144, and expected GPU checksum 1815165381. Every byte of
|
||||
the owned image matched GLES readback. The protocol unit executable also passed
|
||||
on Android. These prove image ownership/transport and real GPU upload, not
|
||||
Linux producer synchronization or SteamVR gameplay.
|
||||
|
||||
A later repeat passed both tracking and frame protocol unit executables on
|
||||
Android but lost the sustained session at image 138. The native tracking test
|
||||
also failed: 9 rendered frames, session stopped to IDLE, head flags 7 and no
|
||||
active controllers. State reports still show Debugging tools off and no running
|
||||
guest. Steam sign-in is pending. Test failures are retained, not reclassified
|
||||
as passes. The user cannot attend these prerequisites yet and requested a pause
|
||||
after the remaining independent work.
|
||||
|
||||
The driver now marks position/orientation that are merely valid but untracked
|
||||
as out-of-range and rejects nonfinite or non-unit poses. The importer requests
|
||||
Vulkan 1.2 for its core image-format-list use. Focused Kotlin tests and the new
|
||||
validation classifier tests pass. The broad Linux suite had one unrelated
|
||||
AppImage log-tail failure under WSL; the full CI suite passed at `040d31c1`.
|
||||
|
||||
### Final build and requested pause
|
||||
|
||||
Full CI run 38652176155 passed at `2ef2d4b5`, including the expanded IPC tests,
|
||||
Kotlin/Python tests and ELF checks. The APK was downloaded, release-signed with
|
||||
the external key and installed over the standard package with `adb install -r`.
|
||||
The device provider confirms `remote clean · feat/quest-openxr at 2ef2d4b`,
|
||||
version 0.4.0, retained r9 runtime and an idle session. MainActivity launches
|
||||
without an AndroidRuntime error. No uninstall or data reset was used.
|
||||
|
||||
A final cosmetic shader-variable cleanup compiled for both native targets and
|
||||
was deployed in the companion. Its repeated device test passed both Android IPC
|
||||
executables and the known-pattern GPU upload: 144 received, zero rejected,
|
||||
126 uploaded, source/GPU-verified ID 144 and checksum 1815165381. The earlier
|
||||
interrupted repeat remains a recorded failure; sustained tracked rendering and
|
||||
guest SteamVR remain unverified. The unrelated AppImage test suite passed all
|
||||
eight cases on a focused rerun without code changes.
|
||||
|
||||
The diagnostic companion is stopped, simulated proximity is restored to far,
|
||||
and the USB stay-awake setting introduced during testing is restored to off.
|
||||
The user requested pausing the goal until they can help with Steam sign-in,
|
||||
on-device Debugging tools, tracking and controllers. The goal is not complete.
|
||||
|
||||
### Resumed device work
|
||||
|
||||
Steam sign-in and the on-device Debugging tools prerequisite are now satisfied.
|
||||
The user's left Touch controller tracks in space and gives a short trigger
|
||||
pulse in the native scene. The right controller also fails in Quest Home, so
|
||||
two-controller validation remains blocked by a controller/Quest-side issue.
|
||||
The native scene reports tracked head flags 15 and a roughly 8.333 ms display
|
||||
period (120 Hz). This does not establish guest SteamVR image correctness.
|
||||
|
||||
The selected imported Android/Linux drivers failed frame import. Selecting the
|
||||
bundled Quest-patched Android driver and the Linux runtime default, disabling
|
||||
Cardboard for the ordinary 2D panel, and restarting the app process restored
|
||||
Steam's first frame and READY. These were combined configuration changes, not
|
||||
an isolated single-driver comparison. Original preferences are backed up
|
||||
locally. No uninstall or data reset was used.
|
||||
|
||||
Valve's pinned ARM64 SteamVR package installed successfully. The guest driver
|
||||
receives real per-eye texture handles and imports them on the Quest GPU, but
|
||||
the correctness-first capture path rejects the unavailable producer fences.
|
||||
The first owned-image test submitted zero projection images; it remains a
|
||||
failure. The ordinary Wayland diagnostic can present SteamVR frames but does
|
||||
not establish producer synchronization or image/pose association.
|
||||
|
||||
The Vsync scheduler now rejects repeated predicted targets and PostPresent
|
||||
uses the same atomically paired runtime tick/period instead of a fixed 60 Hz
|
||||
interval. Host and actual Android CPU regression tests pass for 72/90/120 Hz,
|
||||
throttling, prediction reuse, concurrent tick/period publication and restart.
|
||||
The updated ARM64 driver links and was copied into the live runtime with its
|
||||
SHA-256 verified. This does not yet establish sustained guest rendering.
|
||||
|
||||
The 2D panel's onStop could also suspend the guest after the XR surface became
|
||||
visible. XR visibility now has a separate service lease; panel transitions
|
||||
cannot overwrite it, and normal suspend rules return when XR visibility is
|
||||
lost. Focused visibility/background-policy tests pass. A signed full-app build
|
||||
and live validation of this lifecycle fix are pending. The lease is acquired
|
||||
before native initialization so removing the old panel task cannot end the
|
||||
guest during the handoff, and it is explicitly released on stop/destruction.
|
||||
|
||||
SteamVR's virtual display still advertised 1920x1080 at 60 Hz while the XR
|
||||
driver advertised 3360x1760 at 120 Hz. The compositor could not find a matching
|
||||
surface and crashed after its first submission. A controlled runtime override
|
||||
to the XR geometry restores the headless display surface and sustained 120 Hz
|
||||
submission: over 10,000 Present calls were observed. Owned images remain at
|
||||
zero because the producer-fence check correctly refuses them.
|
||||
|
||||
The helper now obtains display geometry from fresh, validated tracking using a
|
||||
small ARM64 reader built against the same IPC headers. Explicit user overrides
|
||||
remain unchanged and older/stale sessions retain the normal fallback. Host
|
||||
tracking tests and four shell-helper regressions pass. The actual Quest reader
|
||||
prints 3360x1760@120, and automatic selection reproduces sustained submission.
|
||||
Startup stdout is now retained in Steam's guest log directory, with the old
|
||||
runtime-log path preserved as a symlink; a session restart no longer loses it.
|
||||
|
||||
A minimal native Vulkan probe on the real Quest reports export/import support
|
||||
for SYNC_FD fences/semaphores, but not OPAQUE_FD handles. This distinguishes the
|
||||
unsupported implicit DMA-buf fence export from available explicit Vulkan GPU
|
||||
completion primitives. Implementing the explicit producer synchronization is
|
||||
still necessary. The desktop's dashboard helper also
|
||||
lacks X display authorization; no authentication or permission check was
|
||||
bypassed to work around that error.
|
||||
|
||||
The Linux Vulkan GPU regression in `tools/vr/tests/test_vulkan_sync_fd.cpp`
|
||||
submits an actual GPU fill with an exportable SYNC_FD fence, checks its kernel
|
||||
sync-file payload, waits for the signal, and verifies every mapped value.
|
||||
The Quest run exported descriptor 5, reported one initially pending kernel
|
||||
fence, signaled successfully and matched all 1,024 values. This proves an
|
||||
explicit Vulkan GPU completion primitive on this graphics stack, not the
|
||||
as-yet-unimplemented cross-process producer lease or SteamVR game correctness.
|
||||
`tools/vr/build.sh` builds its ARM64 executable under `build/vr`; it is not
|
||||
bundled into the user-facing runtime. A valid already-signaled SYNC_FD value of
|
||||
-1 is handled according to the Vulkan specification.
|
||||
|
||||
## Remaining stages
|
||||
|
||||
### Sustained validation telemetry
|
||||
|
||||
`tools/test_quest_xr.py --metrics` records public battery, thermal-service and
|
||||
package-memory dumps before and after the measured frame window. Unavailable
|
||||
metrics remain explicitly unavailable; no privilege escalation or alternate
|
||||
private-file access is attempted. Reports now distinguish observed XR submits,
|
||||
guest GPU presentations, owned-image uploads and rejected-frame rates from the
|
||||
runtime's nominal refresh rate, and record the focused/tracked sample fraction.
|
||||
A run that loses focused 6DoF tracking at the end no longer passes merely because
|
||||
one earlier sample was tracked. These reporting paths have host tests; no new
|
||||
Quest performance or thermal result is claimed while the headset is disconnected.
|
||||
|
||||
### Touch input profile
|
||||
|
||||
Fresh XR controller activation now selects SteamVR's built-in `oculus_touch`
|
||||
profile and handed Quest Plus render model instead of presenting real Touch
|
||||
controllers as Vive wands. Face buttons, joystick click, left menu, analog grip
|
||||
and capacitive touches are separate inputs. A/B and X/Y no longer double as
|
||||
trackpad or menu clicks; the Quest's reserved system button is not fabricated
|
||||
from its left application menu. Native OpenXR captures trigger, thumbstick,
|
||||
thumbrest and face-button touch actions in previously unused button bits, keeping
|
||||
the 296-byte tracking layout and existing low click bits compatible. Inactive
|
||||
hands clear every input; invalid analog values are sanitized. The flat Cardboard
|
||||
gamepad path retains its existing Vive profile and mappings.
|
||||
Hand poses now carry the converted OpenXR prediction timestamp relative to
|
||||
SteamVR's clock, matching the headset instead of reporting a future hand pose
|
||||
as a present-time sample. The common timestamp conversion is host-tested for
|
||||
future, past and unavailable prediction times.
|
||||
|
||||
Host tests cover the input decoder's independent clicks, touch-versus-press,
|
||||
handed menu, analog ranges and inactive reset. The Android native frontend and
|
||||
Linux driver compile locally. SteamVR profile acceptance, game bindings and the
|
||||
physical right controller still require connected-device validation. Profile
|
||||
and component paths follow the [OpenXR Touch profile](https://registry.khronos.org/OpenXR/specs/1.0-khr/html/xrspec.html#_oculus_touch_controller_profile)
|
||||
and ALVR's [OpenVR properties](https://github.com/alvr-org/ALVR/blob/ebec107b7e5f81677fb9c631d239daf2110bf573/alvr/server_openvr/src/props.rs)
|
||||
and [input paths](https://github.com/alvr-org/ALVR/blob/ebec107b7e5f81677fb9c631d239daf2110bf573/alvr/server_openvr/cpp/alvr_server/Paths.cpp).
|
||||
|
||||
### Experimental producer lease
|
||||
|
||||
`DROIDDECK_VR_PRODUCER_LEASE=1` opts the compositor into a private, same-UID,
|
||||
PID-authenticated producer endpoint. It serializes producer queue submissions,
|
||||
inserts real GPU fence markers on every observed producer queue, and grants a
|
||||
lease only after those fences complete. Producer submissions remain frozen
|
||||
until the presenter's GPU readback finishes and the release handshake succeeds.
|
||||
The presenter device is excluded from the producer lock. Multiple producer
|
||||
PIDs in one eye pair are rejected. Pending timeout fences are retained, not
|
||||
destroyed while the GPU can still use them. Losing a granted lease quarantines
|
||||
submissions instead of resuming writes against a potentially incomplete copy;
|
||||
restarting SteamVR is required in that case. The layer remains resident for its
|
||||
process lifetime so its service threads cannot execute unloaded code.
|
||||
|
||||
The protocol regression verifies private sockets, peer PID, completion gating,
|
||||
retention beyond client acquisition deadlines, release acknowledgement and
|
||||
disconnect quarantine. A real Vulkan Lavapipe regression waits for deliberately
|
||||
delayed GPU work, verifies all 1,024 buffer words, blocks a concurrent overwriter
|
||||
through the lease, then verifies its writes after release; it also exercises
|
||||
an outstanding fence through repeated timeouts. CI installs the software Vulkan
|
||||
driver so this is not merely a source-shaped or mocked GPU test.
|
||||
|
||||
This route is intentionally opt-in, not declared complete. Live Quest validation
|
||||
must establish that the swap-set PID identifies the actual final-image writer,
|
||||
audit the compositor's external-memory image-layout/queue-family release
|
||||
contract, and validate the matching acquire/release barriers with real images.
|
||||
The host buffer test does not establish any of those image-sharing properties.
|
||||
Owned-image submission still fails closed without a successfully retained lease.
|
||||
|
||||
The Vulkan layer no longer drops imported binary waits or unsignaled timeline
|
||||
waits after a three-millisecond grace period. Queue submissions and host waits
|
||||
retain their original arguments, deadlines and downstream results. The
|
||||
software fallback supports permanent OPAQUE_FD timeline payloads only; binary,
|
||||
temporary and malformed fallback imports fail explicitly without consuming
|
||||
the caller's descriptor. Native handles still pass through unchanged. Host
|
||||
regressions exercise both submit APIs, pending values, device-loss propagation,
|
||||
65-semaphore host waits, import failures, re-export and descriptor cleanup.
|
||||
These are API-contract tests, not Quest GPU or SteamVR game validation. Native
|
||||
binary SYNC_FD support remains available, but adapting SteamVR's unsupported
|
||||
OPAQUE_FD binary usage still requires a correctly synchronized implementation.
|
||||
|
||||
Steam's ARM64 watchdog also aborts with `futex robust_list not initialized by
|
||||
pthreads`. A captured preload trace showed successful own-thread queries
|
||||
leaving `errno=EFAULT`. The preload now prefers the real kernel query, falls
|
||||
back only for `ENOSYS`, preserves errno on fallback success and safely rejects
|
||||
invalid output pointers. A host regression compares native and fallback
|
||||
results with the kernel's actual head, including a held robust mutex and a
|
||||
second thread, and preserves permission failures. This is not yet a verified
|
||||
fix for Valve's assertion: the Quest disconnected before a new device trace.
|
||||
|
||||
- Android/Linux eye-image bridge and frame ownership/synchronization.
|
||||
- OpenVR driver IPC for predicted 6DoF head, per-eye views and tracked hands.
|
||||
- Real Touch input mapping and haptics returning through the bridge.
|
||||
- Runtime-paced driver timing and render-pose association.
|
||||
- Guest SteamVR dashboard and owned-game validation on Quest.
|
||||
- Sustained timing, memory and thermal measurements; existing semaphore
|
||||
workarounds must be assessed under the real graphics chain.
|
||||
|
||||
References: [Meta scriptable testing](https://developers.meta.com/vr/documentation/native/android/ts-scriptable-testing/),
|
||||
[Khronos Android surface swapchain](https://registry.khronos.org/OpenXR/specs/1.1/man/html/xrCreateSwapchainAndroidSurfaceKHR.html).
|
||||
@@ -228,11 +228,3 @@ flag for an experiment.
|
||||
Device check (Thor): Alan Wake's American Nightmare with its 1280x720 Game Resolution runs on `:1`
|
||||
at 1280x720 with no `--force-windows-fullscreen` in the session, 2 frame-size changes, no crash
|
||||
in logcat. The Games tab and the drawer render without the switch.
|
||||
|
||||
## Steam picture position
|
||||
|
||||
The launcher's Execute Steam settings, under Display, offer Picture position: Top, Bottom, Center (default). The selection applies to the entire Steam session, including menus and games, and is loaded again on resume. No focus-based switching or in-game toggle is used. PiP and VR retain their own presentation.
|
||||
|
||||
Positioning keeps the selected resolution, fit scale, aspect ratio and full surface intact. It distributes outer letterboxing above or below the picture; it does not crop game-authored black bars inside the surface. A surface that already fills the panel has no vertical space to move. Use a 16:9 resolution for fixed-16:9 games when a separate controls area is desired.
|
||||
|
||||
The compositor publishes actual bounds for touch mapping and ignores touches starting outside the picture. The mapping harness covers top, bottom and center across tall, 16:9 and wide surfaces, including inverse input mapping and legacy half-screen mode compatibility.
|
||||
@@ -1,126 +0,0 @@
|
||||
# Quest presentation candidate Test 2 — 2026-10-13
|
||||
|
||||
Base: `main` at `a394dfd31b2102e20dd99c6f51b4873bbdedab05`.
|
||||
Reference APK: `DroidDeck-PR669-A6xx-Test2(1).apk`, SHA-256
|
||||
`95ffb5ea6ae61d6a92c4ce9ad46f329d77a0f113ebbaabc6da30d6c8bd951154`.
|
||||
Its embedded source revision is `d3f3439bbc45ca67de86d0093356a449c2c74600`.
|
||||
|
||||
## Evidence and scope
|
||||
|
||||
Reported symptoms: Desktop shows vertical corruption; Steam has green marks in
|
||||
its black borders; starting Desktop first also corrupts subsequent Steam, and
|
||||
closing Steam can expose corruption when returning to the menu. The supplied
|
||||
modified PR669 APK reportedly avoids the transition problem.
|
||||
|
||||
Source inspection confirms that the compositor outlives sessions. The old
|
||||
Quest workaround enables only `hdr.steam`, and the initial HDR-gated layer
|
||||
selection happens only at compositor startup. Whole desktops and black borders
|
||||
can still use the Android Vulkan swapchain even when a fullscreen game uses a
|
||||
SurfaceControl layer. This is consistent with the reported symptoms, but is not
|
||||
an on-device reproduction or proof of the exact driver defect.
|
||||
|
||||
The supplied APK has the same Steam-only preference initialization and the
|
||||
same bundled Quest 3 Turnip binary as main (SHA-256
|
||||
`af0d6bb38756eace17b43311c5c61a7ef3dc6e83d5cb8a63577d6a1d10c0aed0`).
|
||||
It additionally supports a Quest 2 driver. Therefore the APK comparison does
|
||||
not establish a new Quest 3 driver regression. Device, installed driver,
|
||||
persistent preferences and session logs still matter.
|
||||
|
||||
## Test 1 startup regression and Test 2 correction
|
||||
|
||||
The Test 1 user confirmed a Quest 3 and a black window after runtime setup.
|
||||
The supplied state report identifies `0.4.0-questdisplay-test1`, runtime `r9`
|
||||
installed, an active guest, `installing=null`, no recorded failure, and saved
|
||||
session artifacts. The session was suspended at capture. Suspension alone does
|
||||
not establish the cause of the original black window. The retained main log
|
||||
starts after the test window was closed, so the startup diagnostics are absent.
|
||||
|
||||
Source review found a Test 1 bug: `vkp_render` unconditionally signaled the first
|
||||
frame after successfully showing the black backdrop, even with no client draws.
|
||||
The Android listener then hid the loading UI and marked Steam's window as shown.
|
||||
This also happened when the content-layer operation returned a successful no-op
|
||||
(no visible geometry or no available pool slot). Consequently `firstFrame=true`
|
||||
in Test 1 is not reliable evidence that Steam had displayed a frame.
|
||||
|
||||
Test 2 removes the backdrop notification. The existing content-layer presenter
|
||||
owns the notification after submitting client content. A host regression test
|
||||
compiles the production `vkp_render` entrypoint with controlled layer outcomes;
|
||||
it failed on Test 1's empty scene and passes with this change. It also covers
|
||||
successful no-ops, content presentation, errors and the existing non-Quest,
|
||||
frame-generation and Cardboard routes. All seven focused host tests pass.
|
||||
|
||||
On 2026-10-13, the user tested Test 2 on Quest 3 and confirmed that it was
|
||||
functioning as intended. This is a user-reported hardware result; a separate
|
||||
pass/fail record for each checklist item below was not supplied. Broader headset,
|
||||
game, colour and performance coverage remains outstanding. The user's separate
|
||||
Quest 2 success report concerns the Adreno 6xx compatibility PR, not this build.
|
||||
|
||||
## Candidate change
|
||||
|
||||
- Recognize Quest 2/3/3S for presentation independently of HDR and session order.
|
||||
This does not install an A6xx driver or expand main's Quest 2 driver support.
|
||||
- Enable the layer protocol before the first client connects.
|
||||
- Compose complete SDR scenes into the existing GPU-rendered gralloc layer,
|
||||
including Desktop's multiple windows. Keep the existing path for a fullscreen
|
||||
AHB that cannot be imported into the compositor.
|
||||
- Present the black backdrop as an opaque SurfaceControl layer, initialized
|
||||
once through a CPU-mapped 16-by-16 buffer. Game/desktop rendering stays on
|
||||
the GPU. The backdrop does not use a Turnip Android swapchain.
|
||||
- Use actual native-window dimensions for layer geometry without creating a
|
||||
Vulkan swapchain solely for sizing.
|
||||
- Retire the backdrop on detach/rebind and hide it before a real swapchain
|
||||
frame. Reject a black buffer whose CPU lock/unlock failed.
|
||||
|
||||
Other devices retain their normal presentation paths. Frame generation and
|
||||
Cardboard still use the original swapchain path and are outside this test's
|
||||
coverage; leave them off for the first test. HDR negotiation itself is unchanged.
|
||||
|
||||
## Validation
|
||||
|
||||
The full ARM64 native compositor, including the existing frame-generation
|
||||
engines, is compiled from this checkout with Android NDK r27d, API 26 and 16 KB
|
||||
ELF alignment. Host tests exercise the actual backdrop implementation with
|
||||
mock Android APIs: initialized pixels and padded rows, immutable reuse,
|
||||
resize, hide/show, retirement/recreation, absent windows, allocation/lock/
|
||||
unlock/transaction failure recovery, and the Quest device gate. These checks
|
||||
cannot validate Horizon's compositor, colours, latency or graphics output.
|
||||
|
||||
Run the focused host tests (LeakSanitizer may need `ASAN_OPTIONS=detect_leaks=0`
|
||||
when the test runner itself operates under ptrace):
|
||||
|
||||
```sh
|
||||
python3 -m unittest tools.tests.test_quest_presentation tools.tests.test_quest_kgsl -v
|
||||
```
|
||||
|
||||
The test APK uses the verified official CI APK for this exact base commit,
|
||||
with only `lib/arm64-v8a/libdroiddeckwayland.so` rebuilt and replaced, an added
|
||||
`assets/quest-presentation-test.json` provenance record, and a new APK signature.
|
||||
DEX, other native libraries and runtime assets stay unchanged. The manifest is
|
||||
repackaged with the repository's variant helper as `com.droiddeck.questdisplaytest`
|
||||
so it can install beside the normal app and the supplied APK, whose signing key
|
||||
is different. Provider authorities and the signature permission are renamed too.
|
||||
It uses separate app data and needs its own initial setup. It is not a complete
|
||||
Gradle rebuild. The displayed version is `0.4.0-questdisplay-test2`. It is signed
|
||||
using the repository's public AOSP test key. The launcher label remains DroidDeck;
|
||||
check the version in app info to distinguish the test installation.
|
||||
|
||||
Test 2 retains Test 1's package, version code and signing certificate. Install it
|
||||
over Test 1 without uninstalling or clearing data; its installed runtime and
|
||||
session logs are retained. The original main application remains separate.
|
||||
|
||||
## Headset test
|
||||
|
||||
Fully close DroidDeck before starting. Keep the same driver and resolution
|
||||
settings that produced the problem; turn off frame generation and Cardboard.
|
||||
|
||||
1. Cold launch Desktop. Check the desktop, windows and black borders.
|
||||
2. Switch Desktop to Steam without restarting the app.
|
||||
3. Close Steam and return to the DroidDeck menu.
|
||||
4. Fully close the app, then launch Steam first; inspect the top/bottom borders.
|
||||
5. Switch to Desktop and repeat both transitions several times.
|
||||
6. Resize the Quest panel and suspend/resume the app once.
|
||||
|
||||
Record the headset model and whether each step is fixed. If it fails, export
|
||||
that session's logs, including `wayland.log` and device information. Look for
|
||||
`Quest presentation: display layers for Steam and desktop` to confirm this
|
||||
renderer was loaded. Test 2's reported Quest 3 result is recorded above.
|
||||
+2
-150
@@ -1,7 +1,7 @@
|
||||
# Experimental Quest 2/3/3S support
|
||||
|
||||
Quest runs DroidDeck as a 2D panel, with an experimental immersive SteamVR path
|
||||
in the standard app. Quest 2 has a separate experimental Adreno 6xx driver path.
|
||||
Quest 3/3S runs DroidDeck as a 2D panel. This does not add immersive VR or
|
||||
OpenXR support. Quest 2 has a separate experimental Adreno 6xx driver path.
|
||||
|
||||
Quest 2 selects `turnip26.3.0-quest2`, a pinned Banners-Turnip A6xx/A7xx build
|
||||
with the same GPUOBJ adapter. It does not select the Quest 3 A7xx binary.
|
||||
@@ -24,19 +24,9 @@ first launch selects manual drivers, the bundled
|
||||
`turnip25.1.0-quest1` Android driver and the default Linux driver. It enables
|
||||
`hdr.steam` to use the existing SurfaceControl presentation workaround from
|
||||
[the Quest report](https://github.com/Droid-Deck/DroidDeck/issues/245).
|
||||
Presentation also has a Quest-specific layer path for complete SDR scenes and
|
||||
the black backdrop, independent of this HDR preference; see
|
||||
[the presentation candidate and headset test](quest-presentation-test.md).
|
||||
These defaults apply once; subsequent user changes are retained. Colour
|
||||
accuracy and headset performance still need testing.
|
||||
|
||||
Selecting driver Auto also uses the bundled Quest display driver and runtime
|
||||
default, without downloading a generic Adreno driver pair. Manual selections
|
||||
remain available and are not replaced on startup. Android's Auto-by-GPU fallback
|
||||
uses the Quest bundle too; the external `Download/droiddeck-driver` override
|
||||
still takes precedence. Fully close and restart DroidDeck after changing the
|
||||
display driver, since the compositor loads it once per app process.
|
||||
|
||||
Both the Android driver wrapper and the Linux session preload use
|
||||
`tools/quest/kgsl_compat.c`. Successful legacy allocation/free calls are
|
||||
unchanged. Only `EACCES`/`EPERM` failures retry through `GPUOBJ_ALLOC`,
|
||||
@@ -64,141 +54,3 @@ On a headset, check the Steam login panel, sign-in, game installation and
|
||||
then an owned game's rendering/input. Capture the device/OS, session logs,
|
||||
`files/quest-startup.txt` and any `files/quest-last-crash.txt` failure.
|
||||
Host allocation and preload-chain tests do not establish headset operation.
|
||||
|
||||
## Experimental immersive SteamVR
|
||||
|
||||
In a running Steam session, open the session menu's SteamVR tab, install SteamVR
|
||||
once, then choose Enter SteamVR. Cardboard has its own tab and can remain off. On supported Quest devices this opens the standard app's
|
||||
OpenXR activity. The guest driver receives headset poses, Touch controller input
|
||||
and display timing, and returns owned stereo images tagged with the latest eye poses.
|
||||
SteamVR haptics return through the tracking bridge. No root or separate XR APK
|
||||
is required. Other devices retain their existing SteamVR start behavior.
|
||||
|
||||
The left Touch menu button is SteamVR's system button and toggles its dashboard.
|
||||
The right Meta button remains reserved by the headset OS.
|
||||
|
||||
The driver supplies SteamVR's version-5 chaperone configuration through
|
||||
`Prop_DriverProvidedChaperoneJson_String`, following Valve's driver API. Standing
|
||||
tracking keeps the OpenXR stage coordinates; seated tracking starts at the head's
|
||||
position and yaw. No synthetic play area or collision walls are advertised.
|
||||
Without a seated transform, SteamVR reported valid raw and standing poses but
|
||||
invalid seated poses, causing Thumper to remain behind its tracking-loss fade.
|
||||
On Quest, supplying both transforms made all three origins valid; seated height
|
||||
started within a millimetre of zero while standing and raw height stayed unchanged.
|
||||
|
||||
Quest uses SteamVR's normal Linux compositor through its display component.
|
||||
The Vulkan layer captures only the HMD display swapchain, retains its present
|
||||
waits, and chains a GPU copy before presentation. Three bounded capture buffers
|
||||
allow rendering and transfer to overlap. Where native GLES supports
|
||||
`GL_EXT_external_buffer` and texture views, Android allocates three
|
||||
`AHardwareBuffer` BLOBs and passes their DMA-BUF allocations to Linux through
|
||||
`SCM_RIGHTS`. Vulkan imports them as buffers and transfers foreign queue-family
|
||||
ownership before and after copying the display image. A native compute shader
|
||||
reads each shared buffer into a private RGBA8 texture; an sRGB texture view
|
||||
preserves hardware transfer decoding. Native GPU completion precedes the
|
||||
acknowledgement, so Linux cannot overwrite an active reader. This removes the CPU
|
||||
pixel copy and upload, but still includes GPU copies and explicit completion waits.
|
||||
|
||||
If capability negotiation or buffer import fails before frames are submitted,
|
||||
the existing CPU transport remains available. It brackets the DMA-BUF read with
|
||||
`DMA_BUF_IOCTL_SYNC`, copies to owned pixels, then acknowledges and uploads them.
|
||||
Both channels authenticate the peer UID and bound buffer sizes. Missing
|
||||
acknowledgements after submission quarantine the transfer and fail presentation
|
||||
instead of falling back while a reader might still own a buffer.
|
||||
|
||||
The helper temporarily enables SteamVR's Linux Vulkan asynchronous queue and disables motion
|
||||
smoothing, backing up those preferences and restoring them on stop or the next start
|
||||
after an interrupted session. It excludes the pinned Steam Frame package's optional CVP backend,
|
||||
whose library constructor exits on Quest's unsupported SoC. The original library
|
||||
is retained with a `.droiddeck-disabled` suffix. SteamVR binaries are not patched.
|
||||
Cardboard retains its existing direct-mode path; `questframes` remains an explicit
|
||||
diagnostic override for the earlier driver presenter.
|
||||
|
||||
The panel compositor detaches before OpenXR starts displaying guest frames.
|
||||
Session suspension accounts for the immersive activity while the panel is hidden.
|
||||
Closing the immersive activity stops SteamVR. The panel remains available for
|
||||
returning to the normal Steam session.
|
||||
The immersive activity belongs to the Steam session that opened it. Ending that
|
||||
session closes XR; a failed startup or stopped SteamVR also returns to the panel
|
||||
with an error instead of leaving a black scene. Enter SteamVR can then start a
|
||||
fresh connection.
|
||||
|
||||
SteamVR scene-application and dashboard events also guide Gamescope's game focus.
|
||||
While the dashboard is hidden, the guest agent resolves the live scene process's
|
||||
Steam app ID and promotes its focusable window. Opening the dashboard or ending
|
||||
the scene restores the previous order if no other client has replaced it. This
|
||||
keeps keyboard/gamepad input with the VR scene without game-specific IDs.
|
||||
|
||||
With Steam already running, `python3 tools/test_quest_xr.py --serial SERIAL`
|
||||
launches the immersive activity and verifies advancing owned images, tracked
|
||||
6DoF, focus and SteamVR status. Add `--require-controllers` while holding both
|
||||
controllers. Results include telemetry and logcat in `build/questxr-validation`.
|
||||
Host tests and APK installation alone do not establish headset operation.
|
||||
|
||||
On Quest 3, a 45-second hardware run maintained focused tracked 6DoF, both
|
||||
controllers active, and advancing stereo images. A headset tester confirmed
|
||||
controller models and trigger animation. That run delivered about 8.5 new stereo
|
||||
images per second despite a 90 Hz XR session.
|
||||
That earlier measurement used the driver-direct presenter. With SteamVR's normal
|
||||
compositor, a native Vulkan scene passed its first submission and continued
|
||||
submitting stereo frames. Thumper and The Thrill of the Fight produced clean
|
||||
immersive scenes. SUPERHOT's Windows OpenXR build initially showed shared-image
|
||||
corruption: DXVK supplied a restricted mutable-image format list while SteamVR
|
||||
created its corresponding opaque shared images without one. Turnip can select
|
||||
different memory layouts for those descriptions. On the Quest bridge, the layer
|
||||
normalizes the known opaque-FD stereo-array creation chains to SteamVR's unrestricted list,
|
||||
without changing application-owned single-layer OpenVR images, DMA-BUF/modifier
|
||||
images or other targets. A headset capture then
|
||||
showed clean SUPERHOT scene geometry; interactive gameplay remains unverified.
|
||||
A subsequent 60-second shared-buffer dashboard run delivered about
|
||||
43 new stereo images per second. Reusing Android pixel buffers raised the next
|
||||
60-second run to about 68 received and 65 uploaded images per second, with valid
|
||||
focused tracking and no rejected frames. These dashboard results do not establish refresh-rate gameplay: game input,
|
||||
sustained game performance, and exact association with SteamVR's final compositor
|
||||
pose still require validation.
|
||||
|
||||
The native GPU-buffer channel passed 256 full-size buffer reuse cycles, including
|
||||
head/tail pixel checks and sRGB texture-view decoding. A subsequent SUPERHOT
|
||||
scene run delivered about 43 new stereo images/s and 58 XR draws/s over one
|
||||
minute, with focused tracking and no rejected frames. The earlier CPU-path
|
||||
SUPERHOT run uploaded about 28 images/s; these are separate runs, not a controlled
|
||||
benchmark. Capturing the source and eye images can delay frame consumption;
|
||||
the GPU receiver acknowledges stale frames without reading them and keeps the
|
||||
last private image until a fresh frame arrives. Missing completion still fails
|
||||
closed. `frame_verify` explicitly selects the CPU path for byte comparison.
|
||||
|
||||
The frame channel supports linear and sRGB RGBA8. SteamVR's final display image
|
||||
uses sRGB display values; Android decodes those during texture sampling and writes
|
||||
to an sRGB eye swapchain, encoding the display values once. A Quest color-chart
|
||||
capture verified that 64, 128, 192 and 224 grey patches retain those values;
|
||||
the previous sRGB source upload darkened them to approximately 13, 55, 134 and
|
||||
190. The transport remains 8-bit SDR; this correction does not add HDR or higher
|
||||
precision gradients.
|
||||
|
||||
When available, `XR_EXT_performance_settings` requests sustained-high CPU and GPU
|
||||
performance for the running OpenXR session. These are runtime-managed hints;
|
||||
device power and thermal policies remain authoritative. Unsupported or rejected
|
||||
requests do not prevent startup. This does not change render resolution.
|
||||
|
||||
The manifest declares the supported Quest models using Meta's standard
|
||||
`com.oculus.supportedDevices` metadata. Without it, Quest 3 used compatibility
|
||||
mode and its refresh-rate API returned an empty capability list. With the
|
||||
declaration, the test runtime reported 72/80/90/120 Hz; a fresh normal launch
|
||||
used 72 Hz in both OpenXR telemetry and SteamVR's HMD property. DroidDeck leaves
|
||||
the refresh choice to the runtime. No forced refresh override is included.
|
||||
|
||||
### Experimental flat games in SteamVR
|
||||
|
||||
Start SteamVR first, then add `droiddeck-steamvr-game %command%` to a flat
|
||||
game's Steam launch options. Remove that prefix to restore normal panel launch.
|
||||
This runs a nested, unmodified Gamescope OpenVR backend for that game. Gamescope
|
||||
owns the GPU overlay, placement and input routing; no CPU screen capture or
|
||||
PipeWire service is used. The existing DroidDeck Vulkan synchronization layer
|
||||
remains enabled. On Quest, a connected XR receiver selects Gamescope's Vulkan
|
||||
texture sharing instead of DMA-BUF modifiers. Explicit environment overrides
|
||||
are preserved; other devices retain the upstream modifier default.
|
||||
|
||||
An upstream GPU cube overlay has been observed on Quest 3. Flat-game stability,
|
||||
controller interaction and performance still require hardware validation. This
|
||||
uses Valve's public Gamescope backend; the exact Steam Frame OS launch setup
|
||||
has not been verified.
|
||||
@@ -0,0 +1,32 @@
|
||||
plugins {
|
||||
id 'com.android.application'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'com.droiddeck.questxr'
|
||||
compileSdk 34
|
||||
ndkVersion project.findProperty('ndkVersion') ?: '27.3.13750724'
|
||||
defaultConfig {
|
||||
applicationId 'com.droiddeck.questxr'
|
||||
minSdk 26
|
||||
targetSdk 34
|
||||
versionCode 1
|
||||
versionName '0.1.0'
|
||||
ndk { abiFilters 'arm64-v8a' }
|
||||
externalNativeBuild {
|
||||
cmake { arguments '-DANDROID_STL=c++_static' }
|
||||
}
|
||||
}
|
||||
buildFeatures { prefab true }
|
||||
packagingOptions { jniLibs { useLegacyPackaging = true } }
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
path 'src/main/cpp/CMakeLists.txt'
|
||||
version '3.22.1'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'org.khronos.openxr:openxr_loader_for_android:1.1.49'
|
||||
}
|
||||
Loaded 100 of 164 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user