mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-01 18:45:42 +00:00
Compare commits
10
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0157a727bb | ||
|
|
2d13d0770a | ||
|
|
9dfbc05933 | ||
|
|
8ec6e646d9 | ||
|
|
41412450fd | ||
|
|
bf772b7c55 | ||
|
|
29b04b66eb | ||
|
|
044c8ee475 | ||
|
|
ca499115ac | ||
|
|
d7898360e3 |
No files matched your search
@@ -4130,13 +4130,20 @@ EXPORT ssize_t read(int fd, void *buf, size_t count) {
|
||||
return read_input(fd, buf, count);
|
||||
}
|
||||
|
||||
// glibc's fortify failure; bionic (DroidDeck-Bionic preloads this library into its Wine processes) has no
|
||||
// __chk_fail, and a library naming it there cannot be loaded, which stops every Wine program from starting.
|
||||
#if defined(__BIONIC__)
|
||||
[[noreturn]] static void fakeinput_chk_fail(void) { abort(); }
|
||||
#else
|
||||
extern "C" [[noreturn]] void __chk_fail(void);
|
||||
[[noreturn]] static void fakeinput_chk_fail(void) { __chk_fail(); }
|
||||
#endif
|
||||
|
||||
/* Programs built with _FORTIFY_SOURCE (Flatpak runtimes among them) call these instead of read, poll
|
||||
* and ppoll, and glibc's versions go straight to the kernel. */
|
||||
EXPORT ssize_t __read_chk(int fd, void *buf, size_t count, size_t buflen) {
|
||||
static auto next_read_chk = reinterpret_cast<ssize_t (*)(int, void *, size_t, size_t)>(dlsym(RTLD_NEXT, "__read_chk"));
|
||||
if (count > buflen) __chk_fail();
|
||||
if (count > buflen) fakeinput_chk_fail();
|
||||
if (next_read_chk && !is_fake_input_fd(fd)) return next_read_chk(fd, buf, count, buflen);
|
||||
return read_input(fd, buf, count);
|
||||
}
|
||||
@@ -4390,13 +4397,13 @@ EXPORT int ppoll(struct pollfd *fds, nfds_t nfds,
|
||||
}
|
||||
|
||||
EXPORT int __poll_chk(struct pollfd *fds, nfds_t nfds, int timeout, size_t fdslen) {
|
||||
if (fdslen / sizeof(*fds) < nfds) __chk_fail();
|
||||
if (fdslen / sizeof(*fds) < nfds) fakeinput_chk_fail();
|
||||
return poll(fds, nfds, timeout);
|
||||
}
|
||||
|
||||
EXPORT int __ppoll_chk(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout,
|
||||
const sigset_t *sigmask, size_t fdslen) {
|
||||
if (fdslen / sizeof(*fds) < nfds) __chk_fail();
|
||||
if (fdslen / sizeof(*fds) < nfds) fakeinput_chk_fail();
|
||||
return ppoll(fds, nfds, timeout, sigmask);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
// - Same push constants as cas.frag: ndc, input size, sharpness [0..1].
|
||||
// CasSetup's const1.x = -1 / lerp(8, 5, sharpness) is computed here.
|
||||
// - The input is the effect chain's previous target at the same size, so the
|
||||
// output pixel reads the input pixel 1:1 (texelFetch, edges clamped).
|
||||
// output pixel reads the input pixel 1:1 (texel centres, edges clamped).
|
||||
// =============================================================================
|
||||
|
||||
// DD_HALF is set for the *_half_frag.h build (gen_shaders.sh): colour and
|
||||
@@ -64,8 +64,8 @@ layout(location = 0) in highp vec2 fragTexCoord;
|
||||
layout(location = 0) out vec4 outColor;
|
||||
|
||||
vec3 CasLoad(ivec2 p) {
|
||||
ivec2 sz = textureSize(InputTexture, 0);
|
||||
return texelFetch(InputTexture, clamp(p, ivec2(0), sz - ivec2(1)), 0).rgb;
|
||||
highp vec2 uv = (vec2(p) + 0.5) / pc.resolution;
|
||||
return textureLod(InputTexture, uv, 0.0).rgb;
|
||||
}
|
||||
|
||||
float AMin3F1(float x, float y, float z) { return min(x, min(y, z)); }
|
||||
|
||||
@@ -1,214 +1,213 @@
|
||||
// 1116.2.0
|
||||
// 1115.1.0
|
||||
#pragma once
|
||||
const uint32_t cas_ffx_half_code[] = {
|
||||
0x07230203,0x00010000,0x0008000b,0x000000d7,0x00000000,0x00020011,0x00000001,0x00020011,
|
||||
0x00000032,0x0006000b,0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,
|
||||
0x00000000,0x00000001,0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x00000043,
|
||||
0x000000d1,0x00030010,0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,
|
||||
0x00000004,0x6e69616d,0x00000000,0x00060005,0x0000000d,0x4c736143,0x2864616f,0x3b326976,
|
||||
0x00000000,0x00030005,0x0000000c,0x00000070,0x00070005,0x00000014,0x6e694d41,0x28314633,
|
||||
0x663b3166,0x31663b31,0x0000003b,0x00030005,0x00000011,0x00000078,0x00030005,0x00000012,
|
||||
0x00000079,0x00030005,0x00000013,0x0000007a,0x00070005,0x00000019,0x78614d41,0x28314633,
|
||||
0x663b3166,0x31663b31,0x0000003b,0x00030005,0x00000016,0x00000078,0x00030005,0x00000017,
|
||||
0x00000079,0x00030005,0x00000018,0x0000007a,0x00030005,0x0000001b,0x00007a73,0x00060005,
|
||||
0x0000001f,0x75706e49,0x78655474,0x65727574,0x00000000,0x00030005,0x00000040,0x00007073,
|
||||
0x00060005,0x00000043,0x67617266,0x43786554,0x64726f6f,0x00000000,0x00030005,0x00000045,
|
||||
0x00004350,0x00040006,0x00000045,0x00000000,0x0063646e,0x00060006,0x00000045,0x00000001,
|
||||
0x6f736572,0x6974756c,0x00006e6f,0x00060006,0x00000045,0x00000002,0x72616873,0x73656e70,
|
||||
0x00000073,0x00030005,0x00000047,0x00006370,0x00040005,0x0000004d,0x6b616570,0x00000000,
|
||||
0x00030005,0x0000005b,0x00000062,0x00040005,0x00000060,0x61726170,0x0000006d,0x00030005,
|
||||
0x00000062,0x00000064,0x00040005,0x00000066,0x61726170,0x0000006d,0x00030005,0x00000068,
|
||||
0x00000065,0x00040005,0x00000069,0x61726170,0x0000006d,0x00030005,0x0000006c,0x00000066,
|
||||
0x00040005,0x00000070,0x61726170,0x0000006d,0x00030005,0x00000072,0x00000068,0x00040005,
|
||||
0x00000076,0x61726170,0x0000006d,0x00030005,0x00000078,0x00476e6d,0x00040005,0x00000079,
|
||||
0x61726170,0x0000006d,0x00040005,0x0000007e,0x61726170,0x0000006d,0x00040005,0x00000081,
|
||||
0x61726170,0x0000006d,0x00040005,0x00000085,0x61726170,0x0000006d,0x00040005,0x00000086,
|
||||
0x61726170,0x0000006d,0x00040005,0x00000089,0x61726170,0x0000006d,0x00030005,0x0000008d,
|
||||
0x0047786d,0x00040005,0x0000008e,0x61726170,0x0000006d,0x00040005,0x00000091,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000094,0x61726170,0x0000006d,0x00040005,0x00000098,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000099,0x61726170,0x0000006d,0x00040005,0x0000009c,0x61726170,
|
||||
0x0000006d,0x00040005,0x000000a0,0x4d706372,0x00000047,0x00040005,0x000000a5,0x47706d61,
|
||||
0x00000000,0x00030005,0x000000af,0x00004777,0x00050005,0x000000b3,0x57706372,0x68676965,
|
||||
0x00000074,0x00030005,0x000000b9,0x00786970,0x00050005,0x000000d1,0x4374756f,0x726f6c6f,
|
||||
0x00000000,0x00030047,0x0000000d,0x00000000,0x00030047,0x00000011,0x00000000,0x00030047,
|
||||
0x00000012,0x00000000,0x00030047,0x00000013,0x00000000,0x00030047,0x00000014,0x00000000,
|
||||
0x00030047,0x00000016,0x00000000,0x00030047,0x00000017,0x00000000,0x00030047,0x00000018,
|
||||
0x00000000,0x00030047,0x00000019,0x00000000,0x00030047,0x0000001f,0x00000000,0x00040047,
|
||||
0x0000001f,0x00000021,0x00000000,0x00040047,0x0000001f,0x00000022,0x00000000,0x00030047,
|
||||
0x00000020,0x00000000,0x00030047,0x00000024,0x00000000,0x00030047,0x0000002e,0x00000000,
|
||||
0x00030047,0x0000002f,0x00000000,0x00030047,0x00000032,0x00000000,0x00030047,0x00000033,
|
||||
0x00000000,0x00030047,0x00000034,0x00000000,0x00030047,0x00000035,0x00000000,0x00030047,
|
||||
0x00000036,0x00000000,0x00030047,0x00000039,0x00000000,0x00030047,0x0000003a,0x00000000,
|
||||
0x00030047,0x0000003b,0x00000000,0x00030047,0x0000003c,0x00000000,0x00030047,0x0000003d,
|
||||
0x00000000,0x00040047,0x00000043,0x0000001e,0x00000000,0x00030047,0x00000045,0x00000002,
|
||||
0x00050048,0x00000045,0x00000000,0x00000023,0x00000000,0x00050048,0x00000045,0x00000001,
|
||||
0x00000023,0x00000010,0x00040048,0x00000045,0x00000002,0x00000000,0x00050048,0x00000045,
|
||||
0x00000002,0x00000023,0x00000018,0x00030047,0x0000004d,0x00000000,0x00030047,0x00000054,
|
||||
0x00000000,0x00030047,0x00000057,0x00000000,0x00030047,0x00000058,0x00000000,0x00030047,
|
||||
0x00000059,0x00000000,0x00030047,0x0000005b,0x00000000,0x00030047,0x00000061,0x00000000,
|
||||
0x00030047,0x00000062,0x00000000,0x00030047,0x00000067,0x00000000,0x00030047,0x00000068,
|
||||
0x00000000,0x00030047,0x0000006b,0x00000000,0x00030047,0x0000006c,0x00000000,0x00030047,
|
||||
0x00000071,0x00000000,0x00030047,0x00000072,0x00000000,0x00030047,0x00000077,0x00000000,
|
||||
0x00030047,0x00000078,0x00000000,0x00030047,0x00000079,0x00000000,0x00030047,0x0000007d,
|
||||
0x00000000,0x00030047,0x0000007e,0x00000000,0x00030047,0x00000080,0x00000000,0x00030047,
|
||||
0x00000081,0x00000000,0x00030047,0x00000083,0x00000000,0x00030047,0x00000084,0x00000000,
|
||||
0x00030047,0x00000085,0x00000000,0x00030047,0x00000086,0x00000000,0x00030047,0x00000088,
|
||||
0x00000000,0x00030047,0x00000089,0x00000000,0x00030047,0x0000008b,0x00000000,0x00030047,
|
||||
0x0000008c,0x00000000,0x00030047,0x0000008d,0x00000000,0x00030047,0x0000008e,0x00000000,
|
||||
0x00030047,0x00000090,0x00000000,0x00030047,0x00000091,0x00000000,0x00030047,0x00000093,
|
||||
0x00000000,0x00030047,0x00000094,0x00000000,0x00030047,0x00000096,0x00000000,0x00030047,
|
||||
0x00000097,0x00000000,0x00030047,0x00000098,0x00000000,0x00030047,0x00000099,0x00000000,
|
||||
0x00030047,0x0000009b,0x00000000,0x00030047,0x0000009c,0x00000000,0x00030047,0x0000009e,
|
||||
0x00000000,0x00030047,0x0000009f,0x00000000,0x00030047,0x000000a0,0x00000000,0x00030047,
|
||||
0x000000a1,0x00000000,0x00030047,0x000000a3,0x00000000,0x00030047,0x000000a4,0x00000000,
|
||||
0x00030047,0x000000a5,0x00000000,0x00030047,0x000000a6,0x00000000,0x00030047,0x000000a7,
|
||||
0x00000000,0x00030047,0x000000a8,0x00000000,0x00030047,0x000000a9,0x00000000,0x00030047,
|
||||
0x000000aa,0x00000000,0x00030047,0x000000ab,0x00000000,0x00030047,0x000000ac,0x00000000,
|
||||
0x00030047,0x000000ad,0x00000000,0x00030047,0x000000ae,0x00000000,0x00030047,0x000000af,
|
||||
0x00000000,0x00030047,0x000000b0,0x00000000,0x00030047,0x000000b1,0x00000000,0x00030047,
|
||||
0x000000b2,0x00000000,0x00030047,0x000000b3,0x00000000,0x00030047,0x000000b5,0x00000000,
|
||||
0x00030047,0x000000b6,0x00000000,0x00030047,0x000000b7,0x00000000,0x00030047,0x000000b8,
|
||||
0x00000000,0x00030047,0x000000b9,0x00000000,0x00030047,0x000000ba,0x00000000,0x00030047,
|
||||
0x000000bb,0x00000000,0x00030047,0x000000bc,0x00000000,0x00030047,0x000000bd,0x00000000,
|
||||
0x00030047,0x000000be,0x00000000,0x00030047,0x000000bf,0x00000000,0x00030047,0x000000c0,
|
||||
0x00000000,0x00030047,0x000000c1,0x00000000,0x00030047,0x000000c2,0x00000000,0x00030047,
|
||||
0x000000c3,0x00000000,0x00030047,0x000000c4,0x00000000,0x00030047,0x000000c5,0x00000000,
|
||||
0x00030047,0x000000c6,0x00000000,0x00030047,0x000000c7,0x00000000,0x00030047,0x000000c8,
|
||||
0x00000000,0x00030047,0x000000c9,0x00000000,0x00030047,0x000000ca,0x00000000,0x00030047,
|
||||
0x000000cb,0x00000000,0x00030047,0x000000cc,0x00000000,0x00030047,0x000000cd,0x00000000,
|
||||
0x00030047,0x000000ce,0x00000000,0x00030047,0x000000cf,0x00000000,0x00030047,0x000000d1,
|
||||
0x00000000,0x00040047,0x000000d1,0x0000001e,0x00000000,0x00030047,0x000000d2,0x00000000,
|
||||
0x00030047,0x000000d3,0x00000000,0x00030047,0x000000d4,0x00000000,0x00030047,0x000000d5,
|
||||
0x00000000,0x00030047,0x000000d6,0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,
|
||||
0x00000002,0x00040015,0x00000006,0x00000020,0x00000001,0x00040017,0x00000007,0x00000006,
|
||||
0x00000002,0x00040020,0x00000008,0x00000007,0x00000007,0x00030016,0x00000009,0x00000020,
|
||||
0x00040017,0x0000000a,0x00000009,0x00000003,0x00040021,0x0000000b,0x0000000a,0x00000008,
|
||||
0x00040020,0x0000000f,0x00000007,0x00000009,0x00060021,0x00000010,0x00000009,0x0000000f,
|
||||
0x0000000f,0x0000000f,0x00090019,0x0000001c,0x00000009,0x00000001,0x00000000,0x00000000,
|
||||
0x00000000,0x00000001,0x00000000,0x0003001b,0x0000001d,0x0000001c,0x00040020,0x0000001e,
|
||||
0x00000000,0x0000001d,0x0004003b,0x0000001e,0x0000001f,0x00000000,0x0004002b,0x00000006,
|
||||
0x00000021,0x00000000,0x0005002c,0x00000007,0x00000026,0x00000021,0x00000021,0x0004002b,
|
||||
0x00000006,0x00000028,0x00000001,0x0005002c,0x00000007,0x00000029,0x00000028,0x00000028,
|
||||
0x00040017,0x0000002d,0x00000009,0x00000004,0x00040017,0x00000041,0x00000009,0x00000002,
|
||||
0x00040020,0x00000042,0x00000001,0x00000041,0x0004003b,0x00000042,0x00000043,0x00000001,
|
||||
0x0005001e,0x00000045,0x0000002d,0x00000041,0x00000009,0x00040020,0x00000046,0x00000009,
|
||||
0x00000045,0x0004003b,0x00000046,0x00000047,0x00000009,0x00040020,0x00000048,0x00000009,
|
||||
0x00000041,0x0004002b,0x00000009,0x0000004e,0xbf800000,0x0004002b,0x00000009,0x0000004f,
|
||||
0x41000000,0x0004002b,0x00000009,0x00000050,0x40a00000,0x0004002b,0x00000006,0x00000051,
|
||||
0x00000002,0x00040020,0x00000052,0x00000009,0x00000009,0x0004002b,0x00000009,0x00000055,
|
||||
0x00000000,0x0004002b,0x00000009,0x00000056,0x3f800000,0x00040020,0x0000005a,0x00000007,
|
||||
0x0000000a,0x0004002b,0x00000006,0x0000005d,0xffffffff,0x0005002c,0x00000007,0x0000005e,
|
||||
0x00000021,0x0000005d,0x0005002c,0x00000007,0x00000064,0x0000005d,0x00000021,0x0005002c,
|
||||
0x00000007,0x0000006e,0x00000028,0x00000021,0x0005002c,0x00000007,0x00000074,0x00000021,
|
||||
0x00000028,0x00040015,0x0000007a,0x00000020,0x00000000,0x0004002b,0x0000007a,0x0000007b,
|
||||
0x00000001,0x0004002b,0x00000009,0x000000a2,0x3a800000,0x0004002b,0x00000009,0x000000b4,
|
||||
0x40800000,0x00040020,0x000000d0,0x00000003,0x0000002d,0x0004003b,0x000000d0,0x000000d1,
|
||||
0x00000003,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,
|
||||
0x0004003b,0x00000008,0x00000040,0x00000007,0x0004003b,0x0000000f,0x0000004d,0x00000007,
|
||||
0x0004003b,0x0000005a,0x0000005b,0x00000007,0x0004003b,0x00000008,0x00000060,0x00000007,
|
||||
0x0004003b,0x0000005a,0x00000062,0x00000007,0x0004003b,0x00000008,0x00000066,0x00000007,
|
||||
0x0004003b,0x0000005a,0x00000068,0x00000007,0x0004003b,0x00000008,0x00000069,0x00000007,
|
||||
0x0004003b,0x0000005a,0x0000006c,0x00000007,0x0004003b,0x00000008,0x00000070,0x00000007,
|
||||
0x0004003b,0x0000005a,0x00000072,0x00000007,0x0004003b,0x00000008,0x00000076,0x00000007,
|
||||
0x0004003b,0x0000000f,0x00000078,0x00000007,0x0004003b,0x0000000f,0x00000079,0x00000007,
|
||||
0x0004003b,0x0000000f,0x0000007e,0x00000007,0x0004003b,0x0000000f,0x00000081,0x00000007,
|
||||
0x0004003b,0x0000000f,0x00000085,0x00000007,0x0004003b,0x0000000f,0x00000086,0x00000007,
|
||||
0x0004003b,0x0000000f,0x00000089,0x00000007,0x0004003b,0x0000000f,0x0000008d,0x00000007,
|
||||
0x0004003b,0x0000000f,0x0000008e,0x00000007,0x0004003b,0x0000000f,0x00000091,0x00000007,
|
||||
0x0004003b,0x0000000f,0x00000094,0x00000007,0x0004003b,0x0000000f,0x00000098,0x00000007,
|
||||
0x0004003b,0x0000000f,0x00000099,0x00000007,0x0004003b,0x0000000f,0x0000009c,0x00000007,
|
||||
0x0004003b,0x0000000f,0x000000a0,0x00000007,0x0004003b,0x0000000f,0x000000a5,0x00000007,
|
||||
0x0004003b,0x0000000f,0x000000af,0x00000007,0x0004003b,0x0000000f,0x000000b3,0x00000007,
|
||||
0x0004003b,0x0000005a,0x000000b9,0x00000007,0x0004003d,0x00000041,0x00000044,0x00000043,
|
||||
0x00050041,0x00000048,0x00000049,0x00000047,0x00000028,0x0004003d,0x00000041,0x0000004a,
|
||||
0x00000049,0x00050085,0x00000041,0x0000004b,0x00000044,0x0000004a,0x0004006e,0x00000007,
|
||||
0x0000004c,0x0000004b,0x0003003e,0x00000040,0x0000004c,0x00050041,0x00000052,0x00000053,
|
||||
0x00000047,0x00000051,0x0004003d,0x00000009,0x00000054,0x00000053,0x0008000c,0x00000009,
|
||||
0x00000057,0x00000001,0x0000002b,0x00000054,0x00000055,0x00000056,0x0008000c,0x00000009,
|
||||
0x00000058,0x00000001,0x0000002e,0x0000004f,0x00000050,0x00000057,0x00050088,0x00000009,
|
||||
0x00000059,0x0000004e,0x00000058,0x0003003e,0x0000004d,0x00000059,0x0004003d,0x00000007,
|
||||
0x0000005c,0x00000040,0x00050080,0x00000007,0x0000005f,0x0000005c,0x0000005e,0x0003003e,
|
||||
0x00000060,0x0000005f,0x00050039,0x0000000a,0x00000061,0x0000000d,0x00000060,0x0003003e,
|
||||
0x0000005b,0x00000061,0x0004003d,0x00000007,0x00000063,0x00000040,0x00050080,0x00000007,
|
||||
0x00000065,0x00000063,0x00000064,0x0003003e,0x00000066,0x00000065,0x00050039,0x0000000a,
|
||||
0x00000067,0x0000000d,0x00000066,0x0003003e,0x00000062,0x00000067,0x0004003d,0x00000007,
|
||||
0x0000006a,0x00000040,0x0003003e,0x00000069,0x0000006a,0x00050039,0x0000000a,0x0000006b,
|
||||
0x0000000d,0x00000069,0x0003003e,0x00000068,0x0000006b,0x0004003d,0x00000007,0x0000006d,
|
||||
0x00000040,0x00050080,0x00000007,0x0000006f,0x0000006d,0x0000006e,0x0003003e,0x00000070,
|
||||
0x0000006f,0x00050039,0x0000000a,0x00000071,0x0000000d,0x00000070,0x0003003e,0x0000006c,
|
||||
0x00000071,0x0004003d,0x00000007,0x00000073,0x00000040,0x00050080,0x00000007,0x00000075,
|
||||
0x00000073,0x00000074,0x0003003e,0x00000076,0x00000075,0x00050039,0x0000000a,0x00000077,
|
||||
0x0000000d,0x00000076,0x0003003e,0x00000072,0x00000077,0x00050041,0x0000000f,0x0000007c,
|
||||
0x00000062,0x0000007b,0x0004003d,0x00000009,0x0000007d,0x0000007c,0x0003003e,0x00000079,
|
||||
0x0000007d,0x00050041,0x0000000f,0x0000007f,0x00000068,0x0000007b,0x0004003d,0x00000009,
|
||||
0x00000080,0x0000007f,0x0003003e,0x0000007e,0x00000080,0x00050041,0x0000000f,0x00000082,
|
||||
0x0000006c,0x0000007b,0x0004003d,0x00000009,0x00000083,0x00000082,0x0003003e,0x00000081,
|
||||
0x00000083,0x00070039,0x00000009,0x00000084,0x00000014,0x00000079,0x0000007e,0x00000081,
|
||||
0x0003003e,0x00000085,0x00000084,0x00050041,0x0000000f,0x00000087,0x0000005b,0x0000007b,
|
||||
0x0004003d,0x00000009,0x00000088,0x00000087,0x0003003e,0x00000086,0x00000088,0x00050041,
|
||||
0x0000000f,0x0000008a,0x00000072,0x0000007b,0x0004003d,0x00000009,0x0000008b,0x0000008a,
|
||||
0x0003003e,0x00000089,0x0000008b,0x00070039,0x00000009,0x0000008c,0x00000014,0x00000085,
|
||||
0x00000086,0x00000089,0x0003003e,0x00000078,0x0000008c,0x00050041,0x0000000f,0x0000008f,
|
||||
0x00000062,0x0000007b,0x0004003d,0x00000009,0x00000090,0x0000008f,0x0003003e,0x0000008e,
|
||||
0x00000090,0x00050041,0x0000000f,0x00000092,0x00000068,0x0000007b,0x0004003d,0x00000009,
|
||||
0x00000093,0x00000092,0x0003003e,0x00000091,0x00000093,0x00050041,0x0000000f,0x00000095,
|
||||
0x0000006c,0x0000007b,0x0004003d,0x00000009,0x00000096,0x00000095,0x0003003e,0x00000094,
|
||||
0x00000096,0x00070039,0x00000009,0x00000097,0x00000019,0x0000008e,0x00000091,0x00000094,
|
||||
0x0003003e,0x00000098,0x00000097,0x00050041,0x0000000f,0x0000009a,0x0000005b,0x0000007b,
|
||||
0x0004003d,0x00000009,0x0000009b,0x0000009a,0x0003003e,0x00000099,0x0000009b,0x00050041,
|
||||
0x0000000f,0x0000009d,0x00000072,0x0000007b,0x0004003d,0x00000009,0x0000009e,0x0000009d,
|
||||
0x0003003e,0x0000009c,0x0000009e,0x00070039,0x00000009,0x0000009f,0x00000019,0x00000098,
|
||||
0x00000099,0x0000009c,0x0003003e,0x0000008d,0x0000009f,0x0004003d,0x00000009,0x000000a1,
|
||||
0x0000008d,0x0007000c,0x00000009,0x000000a3,0x00000001,0x00000028,0x000000a1,0x000000a2,
|
||||
0x00050088,0x00000009,0x000000a4,0x00000056,0x000000a3,0x0003003e,0x000000a0,0x000000a4,
|
||||
0x0004003d,0x00000009,0x000000a6,0x00000078,0x0004003d,0x00000009,0x000000a7,0x0000008d,
|
||||
0x00050083,0x00000009,0x000000a8,0x00000056,0x000000a7,0x0007000c,0x00000009,0x000000a9,
|
||||
0x00000001,0x00000025,0x000000a6,0x000000a8,0x0004003d,0x00000009,0x000000aa,0x000000a0,
|
||||
0x00050085,0x00000009,0x000000ab,0x000000a9,0x000000aa,0x0008000c,0x00000009,0x000000ac,
|
||||
0x00000001,0x0000002b,0x000000ab,0x00000055,0x00000056,0x0003003e,0x000000a5,0x000000ac,
|
||||
0x0004003d,0x00000009,0x000000ad,0x000000a5,0x0006000c,0x00000009,0x000000ae,0x00000001,
|
||||
0x0000001f,0x000000ad,0x0003003e,0x000000a5,0x000000ae,0x0004003d,0x00000009,0x000000b0,
|
||||
0x000000a5,0x0004003d,0x00000009,0x000000b1,0x0000004d,0x00050085,0x00000009,0x000000b2,
|
||||
0x000000b0,0x000000b1,0x0003003e,0x000000af,0x000000b2,0x0004003d,0x00000009,0x000000b5,
|
||||
0x000000af,0x00050085,0x00000009,0x000000b6,0x000000b4,0x000000b5,0x00050081,0x00000009,
|
||||
0x000000b7,0x00000056,0x000000b6,0x00050088,0x00000009,0x000000b8,0x00000056,0x000000b7,
|
||||
0x0003003e,0x000000b3,0x000000b8,0x0004003d,0x0000000a,0x000000ba,0x0000005b,0x0004003d,
|
||||
0x00000009,0x000000bb,0x000000af,0x0005008e,0x0000000a,0x000000bc,0x000000ba,0x000000bb,
|
||||
0x0004003d,0x0000000a,0x000000bd,0x00000062,0x0004003d,0x00000009,0x000000be,0x000000af,
|
||||
0x0005008e,0x0000000a,0x000000bf,0x000000bd,0x000000be,0x00050081,0x0000000a,0x000000c0,
|
||||
0x000000bc,0x000000bf,0x0004003d,0x0000000a,0x000000c1,0x0000006c,0x0004003d,0x00000009,
|
||||
0x000000c2,0x000000af,0x0005008e,0x0000000a,0x000000c3,0x000000c1,0x000000c2,0x00050081,
|
||||
0x0000000a,0x000000c4,0x000000c0,0x000000c3,0x0004003d,0x0000000a,0x000000c5,0x00000072,
|
||||
0x0004003d,0x00000009,0x000000c6,0x000000af,0x0005008e,0x0000000a,0x000000c7,0x000000c5,
|
||||
0x000000c6,0x00050081,0x0000000a,0x000000c8,0x000000c4,0x000000c7,0x0004003d,0x0000000a,
|
||||
0x000000c9,0x00000068,0x00050081,0x0000000a,0x000000ca,0x000000c8,0x000000c9,0x0004003d,
|
||||
0x00000009,0x000000cb,0x000000b3,0x0005008e,0x0000000a,0x000000cc,0x000000ca,0x000000cb,
|
||||
0x00060050,0x0000000a,0x000000cd,0x00000055,0x00000055,0x00000055,0x00060050,0x0000000a,
|
||||
0x000000ce,0x00000056,0x00000056,0x00000056,0x0008000c,0x0000000a,0x000000cf,0x00000001,
|
||||
0x0000002b,0x000000cc,0x000000cd,0x000000ce,0x0003003e,0x000000b9,0x000000cf,0x0004003d,
|
||||
0x0000000a,0x000000d2,0x000000b9,0x00050051,0x00000009,0x000000d3,0x000000d2,0x00000000,
|
||||
0x00050051,0x00000009,0x000000d4,0x000000d2,0x00000001,0x00050051,0x00000009,0x000000d5,
|
||||
0x000000d2,0x00000002,0x00070050,0x0000002d,0x000000d6,0x000000d3,0x000000d4,0x000000d5,
|
||||
0x00000056,0x0003003e,0x000000d1,0x000000d6,0x000100fd,0x00010038,0x00050036,0x0000000a,
|
||||
0x0000000d,0x00000000,0x0000000b,0x00030037,0x00000008,0x0000000c,0x000200f8,0x0000000e,
|
||||
0x0004003b,0x00000008,0x0000001b,0x00000007,0x0004003d,0x0000001d,0x00000020,0x0000001f,
|
||||
0x00040064,0x0000001c,0x00000022,0x00000020,0x00050067,0x00000007,0x00000023,0x00000022,
|
||||
0x00000021,0x0003003e,0x0000001b,0x00000023,0x0004003d,0x0000001d,0x00000024,0x0000001f,
|
||||
0x0004003d,0x00000007,0x00000025,0x0000000c,0x0004003d,0x00000007,0x00000027,0x0000001b,
|
||||
0x00050082,0x00000007,0x0000002a,0x00000027,0x00000029,0x0008000c,0x00000007,0x0000002b,
|
||||
0x00000001,0x0000002d,0x00000025,0x00000026,0x0000002a,0x00040064,0x0000001c,0x0000002c,
|
||||
0x00000024,0x0007005f,0x0000002d,0x0000002e,0x0000002c,0x0000002b,0x00000002,0x00000021,
|
||||
0x0008004f,0x0000000a,0x0000002f,0x0000002e,0x0000002e,0x00000000,0x00000001,0x00000002,
|
||||
0x000200fe,0x0000002f,0x00010038,0x00050036,0x00000009,0x00000014,0x00000000,0x00000010,
|
||||
0x00030037,0x0000000f,0x00000011,0x00030037,0x0000000f,0x00000012,0x00030037,0x0000000f,
|
||||
0x00000013,0x000200f8,0x00000015,0x0004003d,0x00000009,0x00000032,0x00000011,0x0004003d,
|
||||
0x00000009,0x00000033,0x00000012,0x0004003d,0x00000009,0x00000034,0x00000013,0x0007000c,
|
||||
0x00000009,0x00000035,0x00000001,0x00000025,0x00000033,0x00000034,0x0007000c,0x00000009,
|
||||
0x00000036,0x00000001,0x00000025,0x00000032,0x00000035,0x000200fe,0x00000036,0x00010038,
|
||||
0x00050036,0x00000009,0x00000019,0x00000000,0x00000010,0x00030037,0x0000000f,0x00000016,
|
||||
0x00030037,0x0000000f,0x00000017,0x00030037,0x0000000f,0x00000018,0x000200f8,0x0000001a,
|
||||
0x0004003d,0x00000009,0x00000039,0x00000016,0x0004003d,0x00000009,0x0000003a,0x00000017,
|
||||
0x0004003d,0x00000009,0x0000003b,0x00000018,0x0007000c,0x00000009,0x0000003c,0x00000001,
|
||||
0x00000028,0x0000003a,0x0000003b,0x0007000c,0x00000009,0x0000003d,0x00000001,0x00000028,
|
||||
0x00000039,0x0000003c,0x000200fe,0x0000003d,0x00010038
|
||||
0x07230203,0x00010000,0x0008000b,0x000000d7,0x00000000,0x00020011,0x00000001,0x0006000b,
|
||||
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
|
||||
0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x00000047,0x000000d1,0x00030010,
|
||||
0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,
|
||||
0x00000000,0x00060005,0x0000000d,0x4c736143,0x2864616f,0x3b326976,0x00000000,0x00030005,
|
||||
0x0000000c,0x00000070,0x00070005,0x00000014,0x6e694d41,0x28314633,0x663b3166,0x31663b31,
|
||||
0x0000003b,0x00030005,0x00000011,0x00000078,0x00030005,0x00000012,0x00000079,0x00030005,
|
||||
0x00000013,0x0000007a,0x00070005,0x00000019,0x78614d41,0x28314633,0x663b3166,0x31663b31,
|
||||
0x0000003b,0x00030005,0x00000016,0x00000078,0x00030005,0x00000017,0x00000079,0x00030005,
|
||||
0x00000018,0x0000007a,0x00030005,0x0000001d,0x00007675,0x00030005,0x00000024,0x00004350,
|
||||
0x00040006,0x00000024,0x00000000,0x0063646e,0x00060006,0x00000024,0x00000001,0x6f736572,
|
||||
0x6974756c,0x00006e6f,0x00060006,0x00000024,0x00000002,0x72616873,0x73656e70,0x00000073,
|
||||
0x00030005,0x00000026,0x00006370,0x00060005,0x0000002f,0x75706e49,0x78655474,0x65727574,
|
||||
0x00000000,0x00030005,0x00000045,0x00007073,0x00060005,0x00000047,0x67617266,0x43786554,
|
||||
0x64726f6f,0x00000000,0x00040005,0x0000004d,0x6b616570,0x00000000,0x00030005,0x0000005a,
|
||||
0x00000062,0x00040005,0x00000060,0x61726170,0x0000006d,0x00030005,0x00000062,0x00000064,
|
||||
0x00040005,0x00000066,0x61726170,0x0000006d,0x00030005,0x00000068,0x00000065,0x00040005,
|
||||
0x00000069,0x61726170,0x0000006d,0x00030005,0x0000006c,0x00000066,0x00040005,0x00000070,
|
||||
0x61726170,0x0000006d,0x00030005,0x00000072,0x00000068,0x00040005,0x00000076,0x61726170,
|
||||
0x0000006d,0x00030005,0x00000078,0x00476e6d,0x00040005,0x00000079,0x61726170,0x0000006d,
|
||||
0x00040005,0x0000007e,0x61726170,0x0000006d,0x00040005,0x00000081,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000085,0x61726170,0x0000006d,0x00040005,0x00000086,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000089,0x61726170,0x0000006d,0x00030005,0x0000008d,0x0047786d,0x00040005,
|
||||
0x0000008e,0x61726170,0x0000006d,0x00040005,0x00000091,0x61726170,0x0000006d,0x00040005,
|
||||
0x00000094,0x61726170,0x0000006d,0x00040005,0x00000098,0x61726170,0x0000006d,0x00040005,
|
||||
0x00000099,0x61726170,0x0000006d,0x00040005,0x0000009c,0x61726170,0x0000006d,0x00040005,
|
||||
0x000000a0,0x4d706372,0x00000047,0x00040005,0x000000a5,0x47706d61,0x00000000,0x00030005,
|
||||
0x000000af,0x00004777,0x00050005,0x000000b3,0x57706372,0x68676965,0x00000074,0x00030005,
|
||||
0x000000b9,0x00786970,0x00050005,0x000000d1,0x4374756f,0x726f6c6f,0x00000000,0x00030047,
|
||||
0x0000000d,0x00000000,0x00030047,0x00000011,0x00000000,0x00030047,0x00000012,0x00000000,
|
||||
0x00030047,0x00000013,0x00000000,0x00030047,0x00000014,0x00000000,0x00030047,0x00000016,
|
||||
0x00000000,0x00030047,0x00000017,0x00000000,0x00030047,0x00000018,0x00000000,0x00030047,
|
||||
0x00000019,0x00000000,0x00030047,0x00000024,0x00000002,0x00050048,0x00000024,0x00000000,
|
||||
0x00000023,0x00000000,0x00050048,0x00000024,0x00000001,0x00000023,0x00000010,0x00040048,
|
||||
0x00000024,0x00000002,0x00000000,0x00050048,0x00000024,0x00000002,0x00000023,0x00000018,
|
||||
0x00030047,0x0000002f,0x00000000,0x00040047,0x0000002f,0x00000021,0x00000000,0x00040047,
|
||||
0x0000002f,0x00000022,0x00000000,0x00030047,0x00000030,0x00000000,0x00030047,0x00000033,
|
||||
0x00000000,0x00030047,0x00000034,0x00000000,0x00030047,0x00000037,0x00000000,0x00030047,
|
||||
0x00000038,0x00000000,0x00030047,0x00000039,0x00000000,0x00030047,0x0000003a,0x00000000,
|
||||
0x00030047,0x0000003b,0x00000000,0x00030047,0x0000003e,0x00000000,0x00030047,0x0000003f,
|
||||
0x00000000,0x00030047,0x00000040,0x00000000,0x00030047,0x00000041,0x00000000,0x00030047,
|
||||
0x00000042,0x00000000,0x00040047,0x00000047,0x0000001e,0x00000000,0x00030047,0x0000004d,
|
||||
0x00000000,0x00030047,0x00000054,0x00000000,0x00030047,0x00000056,0x00000000,0x00030047,
|
||||
0x00000057,0x00000000,0x00030047,0x00000058,0x00000000,0x00030047,0x0000005a,0x00000000,
|
||||
0x00030047,0x00000061,0x00000000,0x00030047,0x00000062,0x00000000,0x00030047,0x00000067,
|
||||
0x00000000,0x00030047,0x00000068,0x00000000,0x00030047,0x0000006b,0x00000000,0x00030047,
|
||||
0x0000006c,0x00000000,0x00030047,0x00000071,0x00000000,0x00030047,0x00000072,0x00000000,
|
||||
0x00030047,0x00000077,0x00000000,0x00030047,0x00000078,0x00000000,0x00030047,0x00000079,
|
||||
0x00000000,0x00030047,0x0000007d,0x00000000,0x00030047,0x0000007e,0x00000000,0x00030047,
|
||||
0x00000080,0x00000000,0x00030047,0x00000081,0x00000000,0x00030047,0x00000083,0x00000000,
|
||||
0x00030047,0x00000084,0x00000000,0x00030047,0x00000085,0x00000000,0x00030047,0x00000086,
|
||||
0x00000000,0x00030047,0x00000088,0x00000000,0x00030047,0x00000089,0x00000000,0x00030047,
|
||||
0x0000008b,0x00000000,0x00030047,0x0000008c,0x00000000,0x00030047,0x0000008d,0x00000000,
|
||||
0x00030047,0x0000008e,0x00000000,0x00030047,0x00000090,0x00000000,0x00030047,0x00000091,
|
||||
0x00000000,0x00030047,0x00000093,0x00000000,0x00030047,0x00000094,0x00000000,0x00030047,
|
||||
0x00000096,0x00000000,0x00030047,0x00000097,0x00000000,0x00030047,0x00000098,0x00000000,
|
||||
0x00030047,0x00000099,0x00000000,0x00030047,0x0000009b,0x00000000,0x00030047,0x0000009c,
|
||||
0x00000000,0x00030047,0x0000009e,0x00000000,0x00030047,0x0000009f,0x00000000,0x00030047,
|
||||
0x000000a0,0x00000000,0x00030047,0x000000a1,0x00000000,0x00030047,0x000000a3,0x00000000,
|
||||
0x00030047,0x000000a4,0x00000000,0x00030047,0x000000a5,0x00000000,0x00030047,0x000000a6,
|
||||
0x00000000,0x00030047,0x000000a7,0x00000000,0x00030047,0x000000a8,0x00000000,0x00030047,
|
||||
0x000000a9,0x00000000,0x00030047,0x000000aa,0x00000000,0x00030047,0x000000ab,0x00000000,
|
||||
0x00030047,0x000000ac,0x00000000,0x00030047,0x000000ad,0x00000000,0x00030047,0x000000ae,
|
||||
0x00000000,0x00030047,0x000000af,0x00000000,0x00030047,0x000000b0,0x00000000,0x00030047,
|
||||
0x000000b1,0x00000000,0x00030047,0x000000b2,0x00000000,0x00030047,0x000000b3,0x00000000,
|
||||
0x00030047,0x000000b5,0x00000000,0x00030047,0x000000b6,0x00000000,0x00030047,0x000000b7,
|
||||
0x00000000,0x00030047,0x000000b8,0x00000000,0x00030047,0x000000b9,0x00000000,0x00030047,
|
||||
0x000000ba,0x00000000,0x00030047,0x000000bb,0x00000000,0x00030047,0x000000bc,0x00000000,
|
||||
0x00030047,0x000000bd,0x00000000,0x00030047,0x000000be,0x00000000,0x00030047,0x000000bf,
|
||||
0x00000000,0x00030047,0x000000c0,0x00000000,0x00030047,0x000000c1,0x00000000,0x00030047,
|
||||
0x000000c2,0x00000000,0x00030047,0x000000c3,0x00000000,0x00030047,0x000000c4,0x00000000,
|
||||
0x00030047,0x000000c5,0x00000000,0x00030047,0x000000c6,0x00000000,0x00030047,0x000000c7,
|
||||
0x00000000,0x00030047,0x000000c8,0x00000000,0x00030047,0x000000c9,0x00000000,0x00030047,
|
||||
0x000000ca,0x00000000,0x00030047,0x000000cb,0x00000000,0x00030047,0x000000cc,0x00000000,
|
||||
0x00030047,0x000000cd,0x00000000,0x00030047,0x000000ce,0x00000000,0x00030047,0x000000cf,
|
||||
0x00000000,0x00030047,0x000000d1,0x00000000,0x00040047,0x000000d1,0x0000001e,0x00000000,
|
||||
0x00030047,0x000000d2,0x00000000,0x00030047,0x000000d3,0x00000000,0x00030047,0x000000d4,
|
||||
0x00000000,0x00030047,0x000000d5,0x00000000,0x00030047,0x000000d6,0x00000000,0x00020013,
|
||||
0x00000002,0x00030021,0x00000003,0x00000002,0x00040015,0x00000006,0x00000020,0x00000001,
|
||||
0x00040017,0x00000007,0x00000006,0x00000002,0x00040020,0x00000008,0x00000007,0x00000007,
|
||||
0x00030016,0x00000009,0x00000020,0x00040017,0x0000000a,0x00000009,0x00000003,0x00040021,
|
||||
0x0000000b,0x0000000a,0x00000008,0x00040020,0x0000000f,0x00000007,0x00000009,0x00060021,
|
||||
0x00000010,0x00000009,0x0000000f,0x0000000f,0x0000000f,0x00040017,0x0000001b,0x00000009,
|
||||
0x00000002,0x00040020,0x0000001c,0x00000007,0x0000001b,0x0004002b,0x00000009,0x00000020,
|
||||
0x3f000000,0x00040017,0x00000023,0x00000009,0x00000004,0x0005001e,0x00000024,0x00000023,
|
||||
0x0000001b,0x00000009,0x00040020,0x00000025,0x00000009,0x00000024,0x0004003b,0x00000025,
|
||||
0x00000026,0x00000009,0x0004002b,0x00000006,0x00000027,0x00000001,0x00040020,0x00000028,
|
||||
0x00000009,0x0000001b,0x00090019,0x0000002c,0x00000009,0x00000001,0x00000000,0x00000000,
|
||||
0x00000000,0x00000001,0x00000000,0x0003001b,0x0000002d,0x0000002c,0x00040020,0x0000002e,
|
||||
0x00000000,0x0000002d,0x0004003b,0x0000002e,0x0000002f,0x00000000,0x0004002b,0x00000009,
|
||||
0x00000032,0x00000000,0x00040020,0x00000046,0x00000001,0x0000001b,0x0004003b,0x00000046,
|
||||
0x00000047,0x00000001,0x0004002b,0x00000009,0x0000004e,0xbf800000,0x0004002b,0x00000009,
|
||||
0x0000004f,0x41000000,0x0004002b,0x00000009,0x00000050,0x40a00000,0x0004002b,0x00000006,
|
||||
0x00000051,0x00000002,0x00040020,0x00000052,0x00000009,0x00000009,0x0004002b,0x00000009,
|
||||
0x00000055,0x3f800000,0x00040020,0x00000059,0x00000007,0x0000000a,0x0004002b,0x00000006,
|
||||
0x0000005c,0x00000000,0x0004002b,0x00000006,0x0000005d,0xffffffff,0x0005002c,0x00000007,
|
||||
0x0000005e,0x0000005c,0x0000005d,0x0005002c,0x00000007,0x00000064,0x0000005d,0x0000005c,
|
||||
0x0005002c,0x00000007,0x0000006e,0x00000027,0x0000005c,0x0005002c,0x00000007,0x00000074,
|
||||
0x0000005c,0x00000027,0x00040015,0x0000007a,0x00000020,0x00000000,0x0004002b,0x0000007a,
|
||||
0x0000007b,0x00000001,0x0004002b,0x00000009,0x000000a2,0x3a800000,0x0004002b,0x00000009,
|
||||
0x000000b4,0x40800000,0x00040020,0x000000d0,0x00000003,0x00000023,0x0004003b,0x000000d0,
|
||||
0x000000d1,0x00000003,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,
|
||||
0x00000005,0x0004003b,0x00000008,0x00000045,0x00000007,0x0004003b,0x0000000f,0x0000004d,
|
||||
0x00000007,0x0004003b,0x00000059,0x0000005a,0x00000007,0x0004003b,0x00000008,0x00000060,
|
||||
0x00000007,0x0004003b,0x00000059,0x00000062,0x00000007,0x0004003b,0x00000008,0x00000066,
|
||||
0x00000007,0x0004003b,0x00000059,0x00000068,0x00000007,0x0004003b,0x00000008,0x00000069,
|
||||
0x00000007,0x0004003b,0x00000059,0x0000006c,0x00000007,0x0004003b,0x00000008,0x00000070,
|
||||
0x00000007,0x0004003b,0x00000059,0x00000072,0x00000007,0x0004003b,0x00000008,0x00000076,
|
||||
0x00000007,0x0004003b,0x0000000f,0x00000078,0x00000007,0x0004003b,0x0000000f,0x00000079,
|
||||
0x00000007,0x0004003b,0x0000000f,0x0000007e,0x00000007,0x0004003b,0x0000000f,0x00000081,
|
||||
0x00000007,0x0004003b,0x0000000f,0x00000085,0x00000007,0x0004003b,0x0000000f,0x00000086,
|
||||
0x00000007,0x0004003b,0x0000000f,0x00000089,0x00000007,0x0004003b,0x0000000f,0x0000008d,
|
||||
0x00000007,0x0004003b,0x0000000f,0x0000008e,0x00000007,0x0004003b,0x0000000f,0x00000091,
|
||||
0x00000007,0x0004003b,0x0000000f,0x00000094,0x00000007,0x0004003b,0x0000000f,0x00000098,
|
||||
0x00000007,0x0004003b,0x0000000f,0x00000099,0x00000007,0x0004003b,0x0000000f,0x0000009c,
|
||||
0x00000007,0x0004003b,0x0000000f,0x000000a0,0x00000007,0x0004003b,0x0000000f,0x000000a5,
|
||||
0x00000007,0x0004003b,0x0000000f,0x000000af,0x00000007,0x0004003b,0x0000000f,0x000000b3,
|
||||
0x00000007,0x0004003b,0x00000059,0x000000b9,0x00000007,0x0004003d,0x0000001b,0x00000048,
|
||||
0x00000047,0x00050041,0x00000028,0x00000049,0x00000026,0x00000027,0x0004003d,0x0000001b,
|
||||
0x0000004a,0x00000049,0x00050085,0x0000001b,0x0000004b,0x00000048,0x0000004a,0x0004006e,
|
||||
0x00000007,0x0000004c,0x0000004b,0x0003003e,0x00000045,0x0000004c,0x00050041,0x00000052,
|
||||
0x00000053,0x00000026,0x00000051,0x0004003d,0x00000009,0x00000054,0x00000053,0x0008000c,
|
||||
0x00000009,0x00000056,0x00000001,0x0000002b,0x00000054,0x00000032,0x00000055,0x0008000c,
|
||||
0x00000009,0x00000057,0x00000001,0x0000002e,0x0000004f,0x00000050,0x00000056,0x00050088,
|
||||
0x00000009,0x00000058,0x0000004e,0x00000057,0x0003003e,0x0000004d,0x00000058,0x0004003d,
|
||||
0x00000007,0x0000005b,0x00000045,0x00050080,0x00000007,0x0000005f,0x0000005b,0x0000005e,
|
||||
0x0003003e,0x00000060,0x0000005f,0x00050039,0x0000000a,0x00000061,0x0000000d,0x00000060,
|
||||
0x0003003e,0x0000005a,0x00000061,0x0004003d,0x00000007,0x00000063,0x00000045,0x00050080,
|
||||
0x00000007,0x00000065,0x00000063,0x00000064,0x0003003e,0x00000066,0x00000065,0x00050039,
|
||||
0x0000000a,0x00000067,0x0000000d,0x00000066,0x0003003e,0x00000062,0x00000067,0x0004003d,
|
||||
0x00000007,0x0000006a,0x00000045,0x0003003e,0x00000069,0x0000006a,0x00050039,0x0000000a,
|
||||
0x0000006b,0x0000000d,0x00000069,0x0003003e,0x00000068,0x0000006b,0x0004003d,0x00000007,
|
||||
0x0000006d,0x00000045,0x00050080,0x00000007,0x0000006f,0x0000006d,0x0000006e,0x0003003e,
|
||||
0x00000070,0x0000006f,0x00050039,0x0000000a,0x00000071,0x0000000d,0x00000070,0x0003003e,
|
||||
0x0000006c,0x00000071,0x0004003d,0x00000007,0x00000073,0x00000045,0x00050080,0x00000007,
|
||||
0x00000075,0x00000073,0x00000074,0x0003003e,0x00000076,0x00000075,0x00050039,0x0000000a,
|
||||
0x00000077,0x0000000d,0x00000076,0x0003003e,0x00000072,0x00000077,0x00050041,0x0000000f,
|
||||
0x0000007c,0x00000062,0x0000007b,0x0004003d,0x00000009,0x0000007d,0x0000007c,0x0003003e,
|
||||
0x00000079,0x0000007d,0x00050041,0x0000000f,0x0000007f,0x00000068,0x0000007b,0x0004003d,
|
||||
0x00000009,0x00000080,0x0000007f,0x0003003e,0x0000007e,0x00000080,0x00050041,0x0000000f,
|
||||
0x00000082,0x0000006c,0x0000007b,0x0004003d,0x00000009,0x00000083,0x00000082,0x0003003e,
|
||||
0x00000081,0x00000083,0x00070039,0x00000009,0x00000084,0x00000014,0x00000079,0x0000007e,
|
||||
0x00000081,0x0003003e,0x00000085,0x00000084,0x00050041,0x0000000f,0x00000087,0x0000005a,
|
||||
0x0000007b,0x0004003d,0x00000009,0x00000088,0x00000087,0x0003003e,0x00000086,0x00000088,
|
||||
0x00050041,0x0000000f,0x0000008a,0x00000072,0x0000007b,0x0004003d,0x00000009,0x0000008b,
|
||||
0x0000008a,0x0003003e,0x00000089,0x0000008b,0x00070039,0x00000009,0x0000008c,0x00000014,
|
||||
0x00000085,0x00000086,0x00000089,0x0003003e,0x00000078,0x0000008c,0x00050041,0x0000000f,
|
||||
0x0000008f,0x00000062,0x0000007b,0x0004003d,0x00000009,0x00000090,0x0000008f,0x0003003e,
|
||||
0x0000008e,0x00000090,0x00050041,0x0000000f,0x00000092,0x00000068,0x0000007b,0x0004003d,
|
||||
0x00000009,0x00000093,0x00000092,0x0003003e,0x00000091,0x00000093,0x00050041,0x0000000f,
|
||||
0x00000095,0x0000006c,0x0000007b,0x0004003d,0x00000009,0x00000096,0x00000095,0x0003003e,
|
||||
0x00000094,0x00000096,0x00070039,0x00000009,0x00000097,0x00000019,0x0000008e,0x00000091,
|
||||
0x00000094,0x0003003e,0x00000098,0x00000097,0x00050041,0x0000000f,0x0000009a,0x0000005a,
|
||||
0x0000007b,0x0004003d,0x00000009,0x0000009b,0x0000009a,0x0003003e,0x00000099,0x0000009b,
|
||||
0x00050041,0x0000000f,0x0000009d,0x00000072,0x0000007b,0x0004003d,0x00000009,0x0000009e,
|
||||
0x0000009d,0x0003003e,0x0000009c,0x0000009e,0x00070039,0x00000009,0x0000009f,0x00000019,
|
||||
0x00000098,0x00000099,0x0000009c,0x0003003e,0x0000008d,0x0000009f,0x0004003d,0x00000009,
|
||||
0x000000a1,0x0000008d,0x0007000c,0x00000009,0x000000a3,0x00000001,0x00000028,0x000000a1,
|
||||
0x000000a2,0x00050088,0x00000009,0x000000a4,0x00000055,0x000000a3,0x0003003e,0x000000a0,
|
||||
0x000000a4,0x0004003d,0x00000009,0x000000a6,0x00000078,0x0004003d,0x00000009,0x000000a7,
|
||||
0x0000008d,0x00050083,0x00000009,0x000000a8,0x00000055,0x000000a7,0x0007000c,0x00000009,
|
||||
0x000000a9,0x00000001,0x00000025,0x000000a6,0x000000a8,0x0004003d,0x00000009,0x000000aa,
|
||||
0x000000a0,0x00050085,0x00000009,0x000000ab,0x000000a9,0x000000aa,0x0008000c,0x00000009,
|
||||
0x000000ac,0x00000001,0x0000002b,0x000000ab,0x00000032,0x00000055,0x0003003e,0x000000a5,
|
||||
0x000000ac,0x0004003d,0x00000009,0x000000ad,0x000000a5,0x0006000c,0x00000009,0x000000ae,
|
||||
0x00000001,0x0000001f,0x000000ad,0x0003003e,0x000000a5,0x000000ae,0x0004003d,0x00000009,
|
||||
0x000000b0,0x000000a5,0x0004003d,0x00000009,0x000000b1,0x0000004d,0x00050085,0x00000009,
|
||||
0x000000b2,0x000000b0,0x000000b1,0x0003003e,0x000000af,0x000000b2,0x0004003d,0x00000009,
|
||||
0x000000b5,0x000000af,0x00050085,0x00000009,0x000000b6,0x000000b4,0x000000b5,0x00050081,
|
||||
0x00000009,0x000000b7,0x00000055,0x000000b6,0x00050088,0x00000009,0x000000b8,0x00000055,
|
||||
0x000000b7,0x0003003e,0x000000b3,0x000000b8,0x0004003d,0x0000000a,0x000000ba,0x0000005a,
|
||||
0x0004003d,0x00000009,0x000000bb,0x000000af,0x0005008e,0x0000000a,0x000000bc,0x000000ba,
|
||||
0x000000bb,0x0004003d,0x0000000a,0x000000bd,0x00000062,0x0004003d,0x00000009,0x000000be,
|
||||
0x000000af,0x0005008e,0x0000000a,0x000000bf,0x000000bd,0x000000be,0x00050081,0x0000000a,
|
||||
0x000000c0,0x000000bc,0x000000bf,0x0004003d,0x0000000a,0x000000c1,0x0000006c,0x0004003d,
|
||||
0x00000009,0x000000c2,0x000000af,0x0005008e,0x0000000a,0x000000c3,0x000000c1,0x000000c2,
|
||||
0x00050081,0x0000000a,0x000000c4,0x000000c0,0x000000c3,0x0004003d,0x0000000a,0x000000c5,
|
||||
0x00000072,0x0004003d,0x00000009,0x000000c6,0x000000af,0x0005008e,0x0000000a,0x000000c7,
|
||||
0x000000c5,0x000000c6,0x00050081,0x0000000a,0x000000c8,0x000000c4,0x000000c7,0x0004003d,
|
||||
0x0000000a,0x000000c9,0x00000068,0x00050081,0x0000000a,0x000000ca,0x000000c8,0x000000c9,
|
||||
0x0004003d,0x00000009,0x000000cb,0x000000b3,0x0005008e,0x0000000a,0x000000cc,0x000000ca,
|
||||
0x000000cb,0x00060050,0x0000000a,0x000000cd,0x00000032,0x00000032,0x00000032,0x00060050,
|
||||
0x0000000a,0x000000ce,0x00000055,0x00000055,0x00000055,0x0008000c,0x0000000a,0x000000cf,
|
||||
0x00000001,0x0000002b,0x000000cc,0x000000cd,0x000000ce,0x0003003e,0x000000b9,0x000000cf,
|
||||
0x0004003d,0x0000000a,0x000000d2,0x000000b9,0x00050051,0x00000009,0x000000d3,0x000000d2,
|
||||
0x00000000,0x00050051,0x00000009,0x000000d4,0x000000d2,0x00000001,0x00050051,0x00000009,
|
||||
0x000000d5,0x000000d2,0x00000002,0x00070050,0x00000023,0x000000d6,0x000000d3,0x000000d4,
|
||||
0x000000d5,0x00000055,0x0003003e,0x000000d1,0x000000d6,0x000100fd,0x00010038,0x00050036,
|
||||
0x0000000a,0x0000000d,0x00000000,0x0000000b,0x00030037,0x00000008,0x0000000c,0x000200f8,
|
||||
0x0000000e,0x0004003b,0x0000001c,0x0000001d,0x00000007,0x0004003d,0x00000007,0x0000001e,
|
||||
0x0000000c,0x0004006f,0x0000001b,0x0000001f,0x0000001e,0x00050050,0x0000001b,0x00000021,
|
||||
0x00000020,0x00000020,0x00050081,0x0000001b,0x00000022,0x0000001f,0x00000021,0x00050041,
|
||||
0x00000028,0x00000029,0x00000026,0x00000027,0x0004003d,0x0000001b,0x0000002a,0x00000029,
|
||||
0x00050088,0x0000001b,0x0000002b,0x00000022,0x0000002a,0x0003003e,0x0000001d,0x0000002b,
|
||||
0x0004003d,0x0000002d,0x00000030,0x0000002f,0x0004003d,0x0000001b,0x00000031,0x0000001d,
|
||||
0x00070058,0x00000023,0x00000033,0x00000030,0x00000031,0x00000002,0x00000032,0x0008004f,
|
||||
0x0000000a,0x00000034,0x00000033,0x00000033,0x00000000,0x00000001,0x00000002,0x000200fe,
|
||||
0x00000034,0x00010038,0x00050036,0x00000009,0x00000014,0x00000000,0x00000010,0x00030037,
|
||||
0x0000000f,0x00000011,0x00030037,0x0000000f,0x00000012,0x00030037,0x0000000f,0x00000013,
|
||||
0x000200f8,0x00000015,0x0004003d,0x00000009,0x00000037,0x00000011,0x0004003d,0x00000009,
|
||||
0x00000038,0x00000012,0x0004003d,0x00000009,0x00000039,0x00000013,0x0007000c,0x00000009,
|
||||
0x0000003a,0x00000001,0x00000025,0x00000038,0x00000039,0x0007000c,0x00000009,0x0000003b,
|
||||
0x00000001,0x00000025,0x00000037,0x0000003a,0x000200fe,0x0000003b,0x00010038,0x00050036,
|
||||
0x00000009,0x00000019,0x00000000,0x00000010,0x00030037,0x0000000f,0x00000016,0x00030037,
|
||||
0x0000000f,0x00000017,0x00030037,0x0000000f,0x00000018,0x000200f8,0x0000001a,0x0004003d,
|
||||
0x00000009,0x0000003e,0x00000016,0x0004003d,0x00000009,0x0000003f,0x00000017,0x0004003d,
|
||||
0x00000009,0x00000040,0x00000018,0x0007000c,0x00000009,0x00000041,0x00000001,0x00000028,
|
||||
0x0000003f,0x00000040,0x0007000c,0x00000009,0x00000042,0x00000001,0x00000028,0x0000003e,
|
||||
0x00000041,0x000200fe,0x00000042,0x00010038
|
||||
};
|
||||
@@ -7,6 +7,7 @@
|
||||
#include "droiddeck-ahb-v1-server-protocol.h"
|
||||
#include <android/hardware_buffer.h>
|
||||
#include <errno.h>
|
||||
#include <linux/sync_file.h>
|
||||
#include <fcntl.h>
|
||||
#include <poll.h>
|
||||
#include <pthread.h>
|
||||
@@ -145,6 +146,12 @@ static void handle_released(uint64_t id, int fd) {
|
||||
if (poll(&p, 1, 0) > 0) {
|
||||
close(fd);
|
||||
} else {
|
||||
if (ab->fence_src) {
|
||||
struct sync_merge_data m = {.name = "droiddeck-release", .fd2 = fd};
|
||||
if (ioctl(ab->fence_fd, SYNC_IOC_MERGE, &m) == 0) { close(fd); fd = m.fence; }
|
||||
wl_event_source_remove(ab->fence_src);
|
||||
close(ab->fence_fd);
|
||||
}
|
||||
ab->fence_fd = fd;
|
||||
ab->fence_src = wl_event_loop_add_fd(g_loop, fd, WL_EVENT_READABLE, on_fence_readable, ab);
|
||||
if (!ab->fence_src) { close(fd); ab->fence_fd = -1; }
|
||||
@@ -152,6 +159,7 @@ static void handle_released(uint64_t id, int fd) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ab->fence_src) return;
|
||||
send_deferred_release(ab);
|
||||
maybe_free(ab);
|
||||
}
|
||||
|
||||
@@ -701,6 +701,7 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
private var bridgeFellBackMemory by mutableStateOf(false)
|
||||
private var clearCachedApps by mutableStateOf(false)
|
||||
private var adbPaired by mutableStateOf(false)
|
||||
private var memoryHud by mutableStateOf(SessionPrefs.MEMORY_HUD_OFF)
|
||||
private var backgroundAppLimit by mutableStateOf(com.droiddeck.launcher.core.BackgroundAppLimit.OFF)
|
||||
private var showRoms by mutableStateOf(false)
|
||||
private var homeAppSelected by mutableStateOf(false)
|
||||
@@ -1430,7 +1431,7 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
vacDiagnostics = vacDiagnostics, agentCommands = agentCommands,
|
||||
graphicsLogs = graphicsLogs, steamGpuDrawing = steamGpuDrawing, bridgeFellBack = bridgeFellBack, bridgeFellBackMemory = bridgeFellBackMemory,
|
||||
buildWatermark = buildWatermark,
|
||||
clearCachedApps = clearCachedApps, adbPaired = adbPaired, backgroundAppLimit = backgroundAppLimit,
|
||||
clearCachedApps = clearCachedApps, adbPaired = adbPaired, memoryHud = memoryHud, backgroundAppLimit = backgroundAppLimit,
|
||||
tpUbwcMode = drivers.tpUbwcModeForDevice(), tpUbwcRestartRequired = drivers.tpUbwcRestartRequired(), canRestartApp = !runtimeChangesBlocked(),
|
||||
steamGames = steamGames, steamGamesX64 = steamGamesX64, emulators = emulatorList, running = runningLabel,
|
||||
frameGen = FrameGen.mode(this),
|
||||
@@ -1701,6 +1702,7 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
agentCommands = com.droiddeck.launcher.agent.AgentAccess.commandsEnabled(this)
|
||||
},
|
||||
onClearCachedApps = { on -> SessionPrefs.setClearCachedApps(this, on); clearCachedApps = on },
|
||||
onMemoryHud = { value -> SessionPrefs.setMemoryHud(this, value); memoryHud = value },
|
||||
onTpUbwcMode = { drivers.chooseTpUbwcMode(it) },
|
||||
onRestartApp = { drivers.restartApp() },
|
||||
onBackgroundAppLimit = { limit ->
|
||||
@@ -3457,6 +3459,7 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
bridgeFellBackMemory = SessionPrefs.bridgeFellBackForMemory(this)
|
||||
clearCachedApps = SessionPrefs.clearCachedApps(this)
|
||||
adbPaired = WirelessAdbFix.hasSavedPairing(this)
|
||||
memoryHud = SessionPrefs.memoryHud(this)
|
||||
backgroundAppLimit = SessionPrefs.backgroundAppLimit(this)
|
||||
runningLabel = if (SessionState.running) when (SessionState.mode) {
|
||||
SessionService.MODE_DESKTOP -> getString(R.string.rail_desktop)
|
||||
|
||||
@@ -137,6 +137,7 @@ import com.droiddeck.launcher.session.WinComponents
|
||||
import com.droiddeck.launcher.ui.CursorOverlay
|
||||
import androidx.compose.ui.graphics.asImageBitmap
|
||||
import com.droiddeck.launcher.ui.DrawerActions
|
||||
import com.droiddeck.launcher.ui.HudText
|
||||
import com.droiddeck.launcher.ui.LoadingOverlay
|
||||
import com.droiddeck.launcher.ui.SessionDrawer
|
||||
import com.droiddeck.launcher.ui.SessionPausedOverlay
|
||||
@@ -285,6 +286,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
private lateinit var sessionOverlay: ComposeView
|
||||
private lateinit var loading: LoadingState
|
||||
private lateinit var hud: DroidDeckHudHost
|
||||
private lateinit var memoryHud: com.droiddeck.launcher.session.MemoryHud
|
||||
private var padBridge: PadBridge? = null
|
||||
private val physicalShortcuts = PhysicalShortcutRouter()
|
||||
private var joyConVr: com.droiddeck.launcher.input.JoyConVr? = null
|
||||
@@ -634,6 +636,8 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
private var hudOn by mutableStateOf(true)
|
||||
private var gpuClockPin by mutableStateOf(false)
|
||||
private var hudConfig by mutableStateOf<Map<String, String>>(emptyMap())
|
||||
private var hudColor by mutableStateOf(SessionPrefs.HUD_COLOR_MINT)
|
||||
private var hudOpacity by mutableStateOf(SessionPrefs.HUD_OPACITY_DEFAULT)
|
||||
private var upscaler by mutableStateOf(0)
|
||||
private var upscaleSharpness by mutableStateOf(75)
|
||||
private var effects by mutableStateOf(ScreenEffects.OFF)
|
||||
@@ -1056,12 +1060,14 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
hud.onConfigChanged = { hudConfig = DroidDeckHudConfig.load(this) }
|
||||
hud.passesTouchAt = ::controlTakesTouchAt
|
||||
hud.attach(root, root.childCount)
|
||||
memoryHud = com.droiddeck.launcher.session.MemoryHud(this)
|
||||
hud.onPresentingWindowChanged = {
|
||||
CompositorHost.rearmFrameGen { applyFrameGen(force = true) }
|
||||
}
|
||||
if (SessionState.running && SessionState.firstFrameSeen) {
|
||||
loading.visible = false
|
||||
hud.start()
|
||||
memoryHud.start()
|
||||
}
|
||||
readPrefs()
|
||||
|
||||
@@ -1238,6 +1244,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
resources.displayMetrics.density,
|
||||
cursorImage, cursorHotX, cursorHotY, cursorImageScale)
|
||||
|
||||
if (memoryHud.text.isNotEmpty()) HudText(memoryHud.text, hudColor, hudOpacity)
|
||||
if (bottomOutputActive && !loading.visible) SwappedTopPanel()
|
||||
val phonePanel = glassesOutputActive && !loading.visible && !drawerOpen && !pcKeyboardOpen
|
||||
if (phonePanel) GlassesPhonePanel(glasses, steamVrStatus == SteamVr.Status.RUNNING, headTracking)
|
||||
@@ -2671,6 +2678,8 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
hdrWanted = SessionPrefs.hdr(this, hdrPrefMode())
|
||||
hdrAvailable = HdrSupport.probe(this, glassesScreen?.display).reason == null
|
||||
hudConfig = DroidDeckHudConfig.load(this)
|
||||
hudColor = SessionPrefs.hudColor(this)
|
||||
hudOpacity = SessionPrefs.hudOpacity(this)
|
||||
upscaler = SessionPrefs.screenEffectsUpscaler(this, screenEffectsProfileIdForTarget(screenEffectsTarget))
|
||||
upscaleSharpness = SessionPrefs.upscaleSharpness(this)
|
||||
effects = SessionPrefs.screenEffects(this, screenEffectsProfileIdForTarget(screenEffectsTarget))
|
||||
@@ -6369,6 +6378,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
if (!SessionState.suspended) pausedFrame = null
|
||||
com.droiddeck.launcher.ui.Motion.refresh(this)
|
||||
refreshHomeApp()
|
||||
if (::memoryHud.isInitialized && SessionState.running && SessionState.firstFrameSeen) memoryHud.refresh()
|
||||
if (intent?.action == SessionService.ACTION_RESUME) {
|
||||
intent.action = null
|
||||
SessionService.resume(this)
|
||||
@@ -7104,6 +7114,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
if (isFinishing || isDestroyed) return@runOnUiThread
|
||||
loading.visible = false
|
||||
hud.start()
|
||||
memoryHud.start()
|
||||
if (started) {
|
||||
settleDualScreenControls()
|
||||
openDualScreenControls()
|
||||
@@ -7142,6 +7153,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
bottomGame?.let { screen -> bottomGame = null; runCatching { screen.dismiss() } }
|
||||
headTracker?.stop()
|
||||
if (::hud.isInitialized) hud.stop()
|
||||
if (::memoryHud.isInitialized) memoryHud.stop()
|
||||
joyConVr?.close()
|
||||
joyConVr = null
|
||||
handCamera?.stop()
|
||||
|
||||
@@ -1,6 +1,14 @@
|
||||
package com.droiddeck.launcher.session
|
||||
|
||||
import android.content.Context
|
||||
import android.os.Handler
|
||||
import android.os.Looper
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.setValue
|
||||
import com.droiddeck.launcher.R
|
||||
import java.io.File
|
||||
import java.util.Locale
|
||||
|
||||
internal object MemoryReadout {
|
||||
data class Device(val totalKb: Long, val availableKb: Long, val swapTotalKb: Long, val swapFreeKb: Long) {
|
||||
@@ -37,6 +45,8 @@ internal object MemoryReadout {
|
||||
fun androidKb(device: Device, split: Split): Long =
|
||||
(device.usedKb - split.gameKb - split.droiddeckKb - (split.gpuKb ?: 0)).coerceAtLeast(0)
|
||||
|
||||
fun gb(kb: Long): String = String.format(Locale.US, "%.1f", kb / (1024.0 * 1024.0))
|
||||
|
||||
fun availableMb(): Long? = runCatching { parseMeminfo(File("/proc/meminfo").readText())?.availableKb?.div(1024) }.getOrNull()
|
||||
|
||||
fun device(): Device? = runCatching { parseMeminfo(File("/proc/meminfo").readText()) }.getOrNull()
|
||||
@@ -106,3 +116,60 @@ object MemoryLog {
|
||||
thread = null
|
||||
}
|
||||
}
|
||||
|
||||
class MemoryHud(context: Context) {
|
||||
var text by mutableStateOf("")
|
||||
private set
|
||||
|
||||
private val context = context.applicationContext
|
||||
private val handler = Handler(Looper.getMainLooper())
|
||||
@Volatile private var running = false
|
||||
@Volatile private var generation = 0
|
||||
private var thread: Thread? = null
|
||||
|
||||
fun refresh() {
|
||||
if (SessionPrefs.memoryHud(context) == SessionPrefs.MEMORY_HUD_OFF) stop() else start()
|
||||
}
|
||||
|
||||
fun start() {
|
||||
if (running || SessionPrefs.memoryHud(context) == SessionPrefs.MEMORY_HUD_OFF) return
|
||||
running = true
|
||||
val token = ++generation
|
||||
thread = Thread({
|
||||
while (running && generation == token) {
|
||||
val line = runCatching { sample() }.getOrDefault("")
|
||||
handler.post { if (running && generation == token) text = line }
|
||||
try { Thread.sleep(PERIOD_MS) } catch (e: InterruptedException) { break }
|
||||
}
|
||||
}, "memory-hud").apply { isDaemon = true; start() }
|
||||
}
|
||||
|
||||
fun stop() {
|
||||
running = false
|
||||
generation++
|
||||
thread?.interrupt()
|
||||
thread = null
|
||||
text = ""
|
||||
}
|
||||
|
||||
private fun sample(): String {
|
||||
val device = MemoryReadout.device() ?: return ""
|
||||
val memory = context.getString(
|
||||
R.string.memory_hud_simple,
|
||||
MemoryReadout.gb(device.usedKb), MemoryReadout.gb(device.totalKb),
|
||||
MemoryReadout.gb(device.swapUsedKb), MemoryReadout.gb(device.swapTotalKb),
|
||||
)
|
||||
if (SessionPrefs.memoryHud(context) != SessionPrefs.MEMORY_HUD_ADVANCED) return memory
|
||||
val split = MemoryReadout.split()
|
||||
val parts = context.getString(
|
||||
R.string.memory_hud_split,
|
||||
MemoryReadout.gb(split.gameKb), MemoryReadout.gb(split.droiddeckKb), MemoryReadout.gb(MemoryReadout.androidKb(device, split)),
|
||||
)
|
||||
val gpu = split.gpuKb?.let { context.getString(R.string.memory_hud_gpu, MemoryReadout.gb(it)) }
|
||||
return listOfNotNull(memory, parts, gpu).joinToString("\n")
|
||||
}
|
||||
|
||||
private companion object {
|
||||
const val PERIOD_MS = 2000L
|
||||
}
|
||||
}
|
||||
@@ -587,6 +587,13 @@ object SessionPrefs {
|
||||
prefs(context).edit().putBoolean("hudGraph", on).apply()
|
||||
}
|
||||
|
||||
fun hudColor(context: Context): String =
|
||||
prefs(context).getString("hudColor", HUD_COLOR_MINT)?.takeIf { it in HUD_COLORS } ?: HUD_COLOR_MINT
|
||||
|
||||
fun setHudColor(context: Context, color: String) {
|
||||
if (color in HUD_COLORS) prefs(context).edit().putString("hudColor", color).apply()
|
||||
}
|
||||
|
||||
fun hudOpacity(context: Context): Int =
|
||||
prefs(context).getInt("hudOpacity", HUD_OPACITY_DEFAULT).takeIf { it in HUD_OPACITY_RANGE } ?: HUD_OPACITY_DEFAULT
|
||||
|
||||
@@ -643,6 +650,8 @@ object SessionPrefs {
|
||||
prefs(context).edit().putString("__KEEP_droidDeckHudPos__", "$x,$y").apply()
|
||||
}
|
||||
|
||||
const val HUD_COLOR_MINT = "mint"
|
||||
val HUD_COLORS = listOf(HUD_COLOR_MINT, "white", "sky", "amber", "violet")
|
||||
val HUD_OPACITY_RANGE = 30..100
|
||||
const val HUD_OPACITY_DEFAULT = 70
|
||||
|
||||
@@ -1374,6 +1383,18 @@ object SessionPrefs {
|
||||
prefs(context).edit().putInt("backgroundAppLimit", limit).apply()
|
||||
}
|
||||
|
||||
const val MEMORY_HUD_OFF = "off"
|
||||
const val MEMORY_HUD_SIMPLE = "simple"
|
||||
const val MEMORY_HUD_ADVANCED = "advanced"
|
||||
|
||||
fun memoryHud(context: Context): String =
|
||||
prefs(context).getString("memoryHud", MEMORY_HUD_OFF)
|
||||
?.takeIf { it == MEMORY_HUD_SIMPLE || it == MEMORY_HUD_ADVANCED } ?: MEMORY_HUD_OFF
|
||||
fun setMemoryHud(context: Context, value: String) {
|
||||
require(value == MEMORY_HUD_OFF || value == MEMORY_HUD_SIMPLE || value == MEMORY_HUD_ADVANCED)
|
||||
prefs(context).edit().putString("memoryHud", value).apply()
|
||||
}
|
||||
|
||||
fun storageDiagnosticsEnabled(context: Context): Boolean =
|
||||
prefs(context).getBoolean("storageDiagnostics", false)
|
||||
|
||||
|
||||
@@ -10,9 +10,23 @@ import java.io.File
|
||||
// browser view placed outside the Big Picture window, composition capped at "notification" so gamescope keeps the game
|
||||
// focused, and gamepad focus on the main UI. The hold is a lease the app renews, so Steam recovers if the app goes away.
|
||||
object SteamQam {
|
||||
data class Target(val port: Int, val path: String)
|
||||
/** [mainPath] is Steam's main menu page, shown beside the quick access menu in the split layout. */
|
||||
data class Target(val port: Int, val path: String, val mainPath: String? = null)
|
||||
|
||||
const val MAIN_MENU = 1
|
||||
const val QUICK_ACCESS = 2
|
||||
|
||||
/** Height in CSS pixels both menus are laid out at in the split layout, so they show at one scale. */
|
||||
const val SPLIT_CSS_HEIGHT = 480
|
||||
|
||||
/** Steam's own width for the main menu; quick access takes the rest of the panel. */
|
||||
const val MAIN_CSS_WIDTH = 240
|
||||
|
||||
/** Holds the parked main menu in place and spreads its item rows (not dividers) over the full height, at most 80 px each. */
|
||||
private const val MAIN_PARKED_CSS =
|
||||
".BasicUI > .Panel { transform: none !important; width: 100% !important; height: 100% !important; margin: 0 !important; } " +
|
||||
".BasicUI > .Panel > :has(> .Focusable) { flex: 1 1 0 !important; height: auto !important; max-height: 80px; } " +
|
||||
".BasicUI > .Panel > :has(> .Focusable) > .Panel { height: 100% !important; }"
|
||||
const val LEASE_MS = 5_000
|
||||
private const val TAG = "SteamQam"
|
||||
private const val EVAL_MS = 6_000L
|
||||
@@ -26,21 +40,54 @@ object SteamQam {
|
||||
* Takes or renews the lease for [owner], or releases it. A live lease held by a newer panel is never taken back by an
|
||||
* older one, so a late request from a panel being torn down cannot end its replacement's lease or change its layout.
|
||||
*/
|
||||
internal fun leaseScript(on: Boolean, owner: Long, aspect: Float = 0f): String =
|
||||
internal fun leaseScript(on: Boolean, owner: Long, aspect: Float = 0f, split: Boolean = false): String =
|
||||
if (on) "if (!(g.__ddQamUntil > Date.now()) || !(g.__ddQamOwner > $owner)) { g.__ddQamOwner = $owner; g.__ddQamUntil = Date.now() + $LEASE_MS;" +
|
||||
(if (aspect > 0f) " g.__ddQamAspect = $aspect;" else "") + " }"
|
||||
(if (aspect > 0f) " g.__ddQamAspect = $aspect;" else "") + " g.__ddQamSplit = $split; }"
|
||||
else "if (g.__ddQamOwner === $owner) g.__ddQamUntil = 0;"
|
||||
|
||||
/** [aspect] is the panel's width over height: the menu is laid out at that shape so every tab shows at one scale. */
|
||||
internal fun script(on: Boolean, aspect: Float = 0f, owner: Long = 0): String = """(() => {
|
||||
const g = globalThis, QAM = 2;
|
||||
/**
|
||||
* [aspect] is the panel's width over height: the menu is laid out at that shape so every tab shows at one scale. With
|
||||
* [split], Steam's main menu is kept rendered at its own width beside the quick access menu, which gets the rest.
|
||||
*/
|
||||
internal fun script(on: Boolean, aspect: Float = 0f, owner: Long = 0, split: Boolean = false): String = """(() => {
|
||||
const g = globalThis, QAM = 2, MAIN = 1;
|
||||
const W = SteamUIStore.WindowStore.SteamUIWindows[0];
|
||||
const m = W.MenuStore, c = W.m_CompositionStateStore;
|
||||
const nav = W.m_FocusNavContext;
|
||||
const popup = g_PopupManager.GetExistingPopup("SP BPM_uid0");
|
||||
const held = () => g.__ddQamUntil > Date.now();
|
||||
const ours = () => held() && m.m_eOpenSideMenu === QAM && !g.__ddQamTop;
|
||||
const split = () => held() && g.__ddQamSplit === true;
|
||||
// Steam's views carry no names: the main menu's is the one Steam focuses while the main menu is open. Until Steam
|
||||
// has shown it, the main menu is opened once with its view parked like the quick access menu's.
|
||||
const probing = () => g.__ddMainProbe > Date.now();
|
||||
const ours = () => held() && !g.__ddQamTop && (m.m_eOpenSideMenu === QAM || (probing() && m.m_eOpenSideMenu === MAIN));
|
||||
const width = (h) => g.__ddQamAspect > 0 ? Math.round(h * g.__ddQamAspect) : 0;
|
||||
const parkX = () => popup.m_popup.innerWidth + 64;
|
||||
const mainSize = () => [$MAIN_CSS_WIDTH, $SPLIT_CSS_HEIGHT];
|
||||
const qamSplitSize = () => [Math.max(Math.round($SPLIT_CSS_HEIGHT * (g.__ddQamAspect > 0 ? g.__ddQamAspect : 1)) - $MAIN_CSS_WIDTH, 320), $SPLIT_CSS_HEIGHT];
|
||||
const size = (w, h) => split() ? qamSplitSize() : [width(h) || w, h];
|
||||
const mainView = () => views().find(v => v.__ddMain);
|
||||
// Only the quick access view is parked: the one Steam focuses while quick access is open. Before Steam has
|
||||
// focused it, any view but the main menu's and the header's web page (Store and other pages) may be it.
|
||||
const headerView = () => W.m_HeaderStore?.m_currentBrowserAndBackstack?.m_browserView;
|
||||
const isQam = (v) => !v.__ddMain && v !== headerView() &&
|
||||
(!!v.__ddQamView || !views().some(o => o.__ddQamView) || (probing() && m.m_eOpenSideMenu === MAIN));
|
||||
const mainParked = () => split() && (m.m_eOpenSideMenu !== MAIN || probing());
|
||||
const mainDoc = () => {
|
||||
for (const s of SteamUIStore.m_GamepadNavigationManager?.m_rgGamepadInputSources || []) {
|
||||
try { const d = s.m_targetWindow?.document; if (d?.title?.startsWith("MainMenu")) return d; } catch (e) {}
|
||||
}
|
||||
return null;
|
||||
};
|
||||
// Steam slides the main menu out whenever it is not the open side menu; parked, it stays in place and fills its view.
|
||||
const mainStyle = (on) => {
|
||||
const d = mainDoc();
|
||||
let s = d?.getElementById("dd-main-split");
|
||||
if (!on) { s?.remove(); return; }
|
||||
if (!d?.head) return;
|
||||
if (!s) { s = d.createElement("style"); s.id = "dd-main-split"; d.head.appendChild(s); }
|
||||
if (s.textContent !== "$MAIN_PARKED_CSS") s.textContent = "$MAIN_PARKED_CSS";
|
||||
};
|
||||
if (!c.__ddQam) {
|
||||
c.__ddQam = c.ComputeOverallMinimumRequestedComposition;
|
||||
m.__ddQam = m.OnMenuDeactivated;
|
||||
@@ -59,6 +106,18 @@ object SteamQam {
|
||||
return without >= 2 ? v : 1;
|
||||
};
|
||||
}
|
||||
// Steam frosts its Store page while a side menu is open; a parked menu is not over it.
|
||||
const inst = m.m_Instance;
|
||||
if (inst?.SetStoreBrowserGlass && !inst.__ddQamGlass) {
|
||||
inst.__ddQamGlass = inst.SetStoreBrowserGlass;
|
||||
inst.SetStoreBrowserGlass = function (e) { return inst.__ddQamGlass.call(this, ours() ? 0 : e); };
|
||||
}
|
||||
const glass = () => {
|
||||
const on = !ours() && m.m_eOpenSideMenu !== 0;
|
||||
if (g.__ddQamGlassOn === on) return;
|
||||
g.__ddQamGlassOn = on;
|
||||
inst?.SetStoreBrowserGlass?.(m.m_eOpenSideMenu);
|
||||
};
|
||||
const views = () => popup?.m_rgChildBrowserViews || [];
|
||||
const backdrop = (hide) => {
|
||||
const doc = popup?.m_popup?.document;
|
||||
@@ -75,16 +134,61 @@ object SteamQam {
|
||||
};
|
||||
const keep = () => {
|
||||
for (const v of views()) {
|
||||
if (v.__ddQam) continue;
|
||||
v.__ddQam = v.SetBounds;
|
||||
if (!v.__ddQam) v.__ddQam = v.SetBounds;
|
||||
if (v.__ddQamW === 4) continue;
|
||||
v.__ddQamW = 4;
|
||||
v.__ddQamVis = v.__ddQamVis || v.SetVisible;
|
||||
v.__ddQamFocus = v.__ddQamFocus || v.SetFocus;
|
||||
v.SetBounds = function (x, y, w, h, ...r) {
|
||||
if (v.__ddMain && mainParked()) {
|
||||
if (w > 0) v.__ddMainAsked = [x, y, w, h];
|
||||
[w, h] = mainSize();
|
||||
v.__ddMainOn = true; v.__ddMainW = w; v.__ddMainH = h;
|
||||
return v.__ddQam.call(this, parkX(), 0, w, h, ...r);
|
||||
}
|
||||
if (v.__ddMain && w > 0) mainStyle(false);
|
||||
v.__ddAsked = [x, y, w, h];
|
||||
if (w > 0 && ours()) { x = popup.m_popup.innerWidth + 64; w = width(h) || w; }
|
||||
if (w > 0 && ours() && isQam(v)) { x = parkX(); [w, h] = size(w, h); }
|
||||
v.__ddAt = x;
|
||||
v.__ddW = w;
|
||||
v.__ddH = h;
|
||||
return v.__ddQam.call(this, x, y, w, h, ...r);
|
||||
};
|
||||
v.SetVisible = function (on, ...r) {
|
||||
return v.__ddQamVis.call(this, on || (!!v.__ddMain && mainParked()), ...r);
|
||||
};
|
||||
v.SetFocus = function (on, ...r) {
|
||||
if (on && m.m_eOpenSideMenu === MAIN && v !== headerView()) {
|
||||
for (const o of views()) if (o !== v) delete o.__ddMain;
|
||||
v.__ddMain = true;
|
||||
delete v.__ddQamView;
|
||||
}
|
||||
if (on && m.m_eOpenSideMenu === QAM && !v.__ddMain && v !== headerView()) {
|
||||
for (const o of views()) if (o !== v) delete o.__ddQamView;
|
||||
v.__ddQamView = true;
|
||||
}
|
||||
return v.__ddQamFocus.call(this, on, ...r);
|
||||
};
|
||||
}
|
||||
if (g.__ddMainProbe && !probing()) { g.__ddMainProbe = 0; g.__ddMainProbed = true; }
|
||||
if (probing() && mainView()) { g.__ddMainProbe = 0; g.__ddMainProbed = true; }
|
||||
const mv = mainView();
|
||||
if (mv && !probing()) {
|
||||
if (mainParked()) {
|
||||
const [w, h] = mainSize();
|
||||
if (!mv.__ddMainOn || mv.__ddMainW !== w || mv.__ddMainH !== h) {
|
||||
mv.__ddQam.call(mv, parkX(), 0, w, h);
|
||||
mv.__ddQamVis.call(mv, true);
|
||||
mv.__ddMainOn = true; mv.__ddMainW = w; mv.__ddMainH = h;
|
||||
}
|
||||
} else if (mv.__ddMainOn) {
|
||||
mv.__ddMainOn = false;
|
||||
if (m.m_eOpenSideMenu !== MAIN) { mv.__ddQamVis.call(mv, false); mv.__ddQam.call(mv, 0, 0, 0, 0); }
|
||||
else if (mv.__ddMainAsked) mv.__ddQam.call(mv, ...mv.__ddMainAsked);
|
||||
}
|
||||
}
|
||||
mainStyle(!!mv && mainParked() && !probing());
|
||||
glass();
|
||||
if (!held()) {
|
||||
const parked = !g.__ddQamTop;
|
||||
g.__ddQamTop = false;
|
||||
@@ -124,6 +228,25 @@ object SteamQam {
|
||||
}
|
||||
g.__ddQamTop = false;
|
||||
}
|
||||
// Each Split activation gets a fresh probe budget, and a spent one refills after a backoff, so a Steam that was
|
||||
// still loading does not leave the main menu undiscovered for good.
|
||||
if (split() !== !!g.__ddQamSplitOn) { g.__ddQamSplitOn = split(); if (split()) g.__ddMainProbes = 0; }
|
||||
if (split() && !mv) {
|
||||
if (probing()) return;
|
||||
if ((g.__ddMainProbes || 0) >= 3 && Date.now() - (g.__ddMainProbeLast || 0) > 30000) g.__ddMainProbes = 0;
|
||||
if ((g.__ddMainProbes || 0) < 3 && m.m_eOpenSideMenu !== MAIN) {
|
||||
g.__ddMainProbes = (g.__ddMainProbes || 0) + 1;
|
||||
g.__ddMainProbeLast = Date.now();
|
||||
g.__ddMainProbe = Date.now() + 1500;
|
||||
m.OpenMainMenu();
|
||||
c.EnsureCorrectComposition?.();
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (g.__ddMainProbed) {
|
||||
g.__ddMainProbed = false;
|
||||
if (m.m_eOpenSideMenu === MAIN) m.OpenQuickAccessMenu(g.__ddQamTab ?? undefined);
|
||||
}
|
||||
const decky = !!g.DeckyPluginLoader?.tabsHook?.qamBrowserViewPatch;
|
||||
// Decky hooks the menu after Steam starts; the menu has to unmount for its tab to appear, so reopen on the next tick.
|
||||
if (m.m_eOpenSideMenu === QAM && decky && !g.__ddQamDecky) { g.__ddQamDecky = true; m.CloseSideMenus(); return; }
|
||||
@@ -136,18 +259,26 @@ object SteamQam {
|
||||
if (m.m_eQuickAccessTab != null) g.__ddQamTab = m.m_eQuickAccessTab;
|
||||
if (!g.__ddQamOn) { g.__ddQamOn = true; c.EnsureCorrectComposition?.(); }
|
||||
for (const v of views()) {
|
||||
if (v.__ddMain) continue;
|
||||
if (!isQam(v)) {
|
||||
// A view parked before the quick access view was known goes back where Steam asked for it.
|
||||
const a = v.__ddAsked;
|
||||
if (a?.[2] > 0 && v.__ddAt >= popup.m_popup.innerWidth) { v.__ddQam.call(v, ...a); v.__ddAt = a[0]; v.__ddW = a[2]; v.__ddH = a[3]; }
|
||||
continue;
|
||||
}
|
||||
if (!v.__ddAsked) {
|
||||
const b = v.GetBounds?.();
|
||||
if (b && b.width > 0) { v.__ddAsked = [b.x, b.y, b.width, b.height]; v.__ddAt = b.x; v.__ddW = b.width; }
|
||||
if (b && b.width > 0) { v.__ddAsked = [b.x, b.y, b.width, b.height]; v.__ddAt = b.x; v.__ddW = b.width; v.__ddH = b.height; }
|
||||
}
|
||||
const a = v.__ddAsked;
|
||||
if (a?.[2] > 0 && (v.__ddAt < popup.m_popup.innerWidth || (width(a[3]) && v.__ddW !== width(a[3])))) v.SetBounds(...a);
|
||||
const [w, h] = a?.[2] > 0 ? size(a[2], a[3]) : [0, 0];
|
||||
if (a?.[2] > 0 && (v.__ddAt < popup.m_popup.innerWidth || v.__ddW !== w || v.__ddH !== h)) v.SetBounds(...a);
|
||||
}
|
||||
const main = nav?.m_rgGamepadNavigationTrees?.find(t => t.m_ID === "GamepadUI_Full_Root");
|
||||
if (main && nav.m_LastActiveNavTree?.m_ID?.startsWith("QuickAccess")) nav.SetActiveNavTree(main);
|
||||
if (main && /^(QuickAccess|MainMenu)/.test(nav.m_LastActiveNavTree?.m_ID ?? "")) nav.SetActiveNavTree(main);
|
||||
backdrop(true);
|
||||
};
|
||||
${leaseScript(on, owner, aspect)}
|
||||
${leaseScript(on, owner, aspect, split)}
|
||||
keep();
|
||||
if (held() && !g.__ddQamTimer) {
|
||||
g.__ddQamTimer = setInterval(() => {
|
||||
@@ -161,7 +292,8 @@ object SteamQam {
|
||||
/** [open] is Steam's open side menu; [top] is true while the menu is shown on the top screen. */
|
||||
data class Hold(val open: Int, val top: Boolean)
|
||||
|
||||
fun hold(context: Context, aspect: Float, owner: Long): Hold? = eval(context, script(true, aspect, owner))?.let(::parseHold)
|
||||
fun hold(context: Context, aspect: Float, owner: Long, split: Boolean = false): Hold? =
|
||||
eval(context, script(true, aspect, owner, split))?.let(::parseHold)
|
||||
|
||||
internal fun parseHold(text: String): Hold? = runCatching {
|
||||
val a = JSONArray(text)
|
||||
@@ -181,7 +313,9 @@ object SteamQam {
|
||||
fun target(context: Context): Target? = runCatching {
|
||||
val devtools = File(AgentGuest.dir(context), "cdp-port").readText().trim().toInt()
|
||||
val (relay, secret) = parseRelay(helper(context, "start", devtools.toString())) ?: return null
|
||||
val found = runCatching { parseTarget(relay, get(relay, "/$secret/json"))?.let { it.copy(path = "/$secret${it.path}") } }
|
||||
val found = runCatching {
|
||||
parseTarget(relay, get(relay, "/$secret/json"))?.let { t -> t.copy(path = "/$secret${t.path}", mainPath = t.mainPath?.let { "/$secret$it" }) }
|
||||
}
|
||||
if (found.getOrNull() == null) helper(context, "stop", relay.toString())
|
||||
found.getOrThrow()
|
||||
}.onFailure { android.util.Log.e(TAG, "no quick access target: $it") }.getOrNull()
|
||||
@@ -232,14 +366,16 @@ object SteamQam {
|
||||
|
||||
internal fun parseTarget(port: Int, json: String): Target? {
|
||||
val list = JSONArray(json)
|
||||
for (i in 0 until list.length()) {
|
||||
val t = list.optJSONObject(i) ?: continue
|
||||
if (!t.optString("title").startsWith("QuickAccess")) continue
|
||||
val ws = t.optString("webSocketDebuggerUrl")
|
||||
val path = Regex("^ws://[^/]+(/devtools/page/[A-Za-z0-9-]+)$").find(ws)?.groupValues?.get(1) ?: continue
|
||||
return Target(port, path)
|
||||
fun page(prefix: String): String? {
|
||||
for (i in 0 until list.length()) {
|
||||
val t = list.optJSONObject(i) ?: continue
|
||||
if (!t.optString("title").startsWith(prefix)) continue
|
||||
val ws = t.optString("webSocketDebuggerUrl")
|
||||
Regex("^ws://[^/]+(/devtools/page/[A-Za-z0-9-]+)$").find(ws)?.groupValues?.get(1)?.let { return it }
|
||||
}
|
||||
return null
|
||||
}
|
||||
return null
|
||||
return page("QuickAccess")?.let { Target(port, it, page("MainMenu")) }
|
||||
}
|
||||
|
||||
private fun eval(context: Context, expression: String): String? = runCatching {
|
||||
|
||||
@@ -8,11 +8,14 @@ import androidx.compose.foundation.Canvas
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.BoxWithConstraints
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.fillMaxHeight
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.outlined.AlignHorizontalCenter
|
||||
import androidx.compose.material.icons.outlined.AlignHorizontalLeft
|
||||
import androidx.compose.material.icons.outlined.AlignHorizontalRight
|
||||
import androidx.compose.material.icons.outlined.VerticalSplit
|
||||
import androidx.compose.material.icons.outlined.WidthFull
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.LaunchedEffect
|
||||
@@ -72,7 +75,8 @@ internal enum class QamFit(val id: String, @StringRes val label: Int, val icon:
|
||||
FULL("full", R.string.bottom_qam_layout_full, Icons.Outlined.WidthFull, 0),
|
||||
LEFT("left", R.string.bottom_qam_layout_left, Icons.Outlined.AlignHorizontalLeft, -1),
|
||||
CENTER("center", R.string.bottom_qam_layout_center, Icons.Outlined.AlignHorizontalCenter, 0),
|
||||
RIGHT("right", R.string.bottom_qam_layout_right, Icons.Outlined.AlignHorizontalRight, 1);
|
||||
RIGHT("right", R.string.bottom_qam_layout_right, Icons.Outlined.AlignHorizontalRight, 1),
|
||||
SPLIT("split", R.string.bottom_qam_layout_split, Icons.Outlined.VerticalSplit, 0);
|
||||
|
||||
val next: QamFit get() = entries[(ordinal + 1) % entries.size]
|
||||
|
||||
@@ -92,6 +96,7 @@ internal enum class QamFit(val id: String, @StringRes val label: Int, val icon:
|
||||
|
||||
internal object QamLayout {
|
||||
private const val WIDE_CSS = "div.BasicUI { width: 100% !important; } div[class*=\\\"tab_\\\"] { max-width: none !important; }"
|
||||
private const val PARKED_CSS = " #Footer { display: none !important; }"
|
||||
|
||||
/** Scale and left edge of the menu in a box; [align] -1, 0 or 1 places a narrower menu left, centred or right. */
|
||||
fun fit(boxWidth: Float, boxHeight: Float, contentRight: Float, cssHeight: Float, align: Int = 0): Pair<Float, Float> {
|
||||
@@ -102,10 +107,13 @@ internal object QamLayout {
|
||||
fun toCss(x: Float, y: Float, scale: Float, left: Float): Pair<Float, Float> = (x - left) / scale to y / scale
|
||||
|
||||
/** Makes the menu follow the panel-shaped view (Steam sizes it once, on open) and lifts each tab's 300 px cap, then measures where the content ends. */
|
||||
/** [wide] is false while the menu is shown on the top screen, where it keeps Steam's own layout. */
|
||||
fun contentScript(wide: Boolean): String = "(() => { let s = document.getElementById('dd-qam-wide'); " +
|
||||
/**
|
||||
* [wide] is false while the menu is shown on the top screen, where it keeps Steam's own layout. [parked] hides the
|
||||
* button-hint footer Steam draws in a game, which stays an empty black strip while the controller is not on the menu.
|
||||
*/
|
||||
fun contentScript(wide: Boolean, parked: Boolean = wide): String = "(() => { let s = document.getElementById('dd-qam-wide'); " +
|
||||
"if (!s) { s = document.createElement('style'); s.id = 'dd-qam-wide'; document.head.appendChild(s); } " +
|
||||
"const css = '${if (wide) WIDE_CSS else ""}'; " +
|
||||
"const css = '${(if (wide) WIDE_CSS else "") + (if (parked) PARKED_CSS else "")}'; " +
|
||||
"if (s.textContent !== css) s.textContent = css; if (document.scrollingElement.scrollLeft) document.scrollingElement.scrollLeft = 0; " +
|
||||
"const w = innerWidth; let right = 0; for (const e of document.body.querySelectorAll('*')) { " +
|
||||
"const r = e.getBoundingClientRect(); const tab = /(^| )tab_/.test(String(e.className)); " +
|
||||
@@ -117,17 +125,90 @@ private const val TICK_MS = 1_000L
|
||||
private const val FAST_TICK_MS = 150L
|
||||
private const val MAX_RETRY_MS = 4_000L
|
||||
|
||||
/** The last frame shown, so returning to the panel shows the menu at once while the live stream reconnects. */
|
||||
/** One of Steam's menu pages streamed to the panel; the last frame is kept so returning to the panel shows it at once. */
|
||||
internal class MenuStream {
|
||||
@Volatile var page: CdpPage? = null
|
||||
val live = java.util.concurrent.atomic.AtomicBoolean(false)
|
||||
val image = mutableStateOf<ImageBitmap?>(null)
|
||||
val shape = mutableStateOf<FloatArray?>(null)
|
||||
|
||||
fun show(frame: ImageBitmap) {
|
||||
image.value = frame
|
||||
live.set(true)
|
||||
}
|
||||
|
||||
/** Connects to [path] and starts its screencast; false when the page cannot be reached. */
|
||||
fun connect(port: Int, path: String): Boolean {
|
||||
page?.close()
|
||||
page = null
|
||||
live.set(false)
|
||||
val p = runCatching {
|
||||
CdpPage(port, path) { method, params ->
|
||||
if (method == "Page.screencastFrame") {
|
||||
page?.send("Page.screencastFrameAck", JSONObject().put("sessionId", params.optInt("sessionId")))
|
||||
decodeFrame(params.optString("data"))?.let(::show)
|
||||
}
|
||||
}
|
||||
}.onFailure { android.util.Log.w("SteamQam", "devtools connect: $it") }.getOrNull() ?: return false
|
||||
page = p
|
||||
p.send("Page.enable")
|
||||
val started = p.call("Page.startScreencast", JSONObject().put("format", "jpeg").put("quality", 85)
|
||||
.put("maxWidth", 1920).put("maxHeight", 1440))
|
||||
if (started == null || started.has("error") || !started.has("result")) {
|
||||
p.close()
|
||||
page = null
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
/** Runs [script], which returns the page's [width, height, pixel ratio, content right], and refreshes a still page. */
|
||||
fun refresh(script: String) {
|
||||
val p = page ?: return
|
||||
// The screencast sends frames only when the menu repaints, so a still menu needs one screenshot.
|
||||
if (!live.get()) {
|
||||
p.call("Page.captureScreenshot", JSONObject().put("format", "jpeg").put("quality", 85))
|
||||
?.optJSONObject("result")?.optString("data")?.let(::decodeFrame)?.let(::show)
|
||||
}
|
||||
(p.evaluate(script) as? String)?.let { text ->
|
||||
runCatching {
|
||||
val a = JSONArray(text)
|
||||
val layout = FloatArray(4) { a.getDouble(it).toFloat() }
|
||||
if (!layout.contentEquals(shape.value)) shape.value = layout
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** Stops the stream and runs [restore] on the page, which outlives this connection. */
|
||||
fun stop(restore: String) {
|
||||
val p = page ?: return
|
||||
page = null
|
||||
runCatching { p.send("Page.stopScreencast") }
|
||||
runCatching { p.evaluate(restore) }
|
||||
p.close()
|
||||
}
|
||||
|
||||
fun frame(): QamFrame? {
|
||||
val img = image.value
|
||||
val l = shape.value
|
||||
return if (img != null && l != null && l[0] > 0f) QamFrame(img, l[0], l[1], l[3].coerceIn(l[0] * 0.25f, l[0])) else null
|
||||
}
|
||||
}
|
||||
|
||||
/** Steam's main menu beside the quick access menu; Steam's side of the hold keeps it in place and filling its view. */
|
||||
internal object MainMenuLayout {
|
||||
const val CONTENT_SCRIPT = "JSON.stringify([innerWidth, innerHeight, devicePixelRatio, innerWidth])"
|
||||
}
|
||||
|
||||
/** Panel streams kept across visits to the panel. */
|
||||
private object QamCache {
|
||||
@Volatile var image: ImageBitmap? = null
|
||||
@Volatile var shape: FloatArray? = null
|
||||
val qam = MenuStream()
|
||||
val main = MenuStream()
|
||||
}
|
||||
|
||||
@Composable
|
||||
internal fun SteamQamPanel() {
|
||||
val context = LocalContext.current.applicationContext
|
||||
var image by remember { mutableStateOf(QamCache.image) }
|
||||
var shape by remember { mutableStateOf(QamCache.shape) }
|
||||
var failed by remember { mutableStateOf(false) }
|
||||
var slow by remember { mutableStateOf(false) }
|
||||
LaunchedEffect(Unit) {
|
||||
@@ -135,78 +216,67 @@ internal fun SteamQamPanel() {
|
||||
slow = true
|
||||
}
|
||||
val fit = QamFit.current(context)
|
||||
val holder = remember { arrayOfNulls<CdpPage>(1) }
|
||||
val qam = QamCache.qam
|
||||
val mainMenu = QamCache.main
|
||||
val owner = remember { SteamQam.newOwner() }
|
||||
val relay = remember { intArrayOf(0) }
|
||||
val live = remember { java.util.concurrent.atomic.AtomicBoolean(false) }
|
||||
val mainPath = remember { arrayOfNulls<String>(1) }
|
||||
val aspect = remember { floatArrayOf(0f) }
|
||||
val measure = Modifier.fillMaxSize().onSizeChanged { if (it.height > 0) aspect[0] = it.width.toFloat() / it.height }
|
||||
val show = { frame: ImageBitmap -> image = frame; QamCache.image = frame; live.set(true) }
|
||||
LaunchedEffect(Unit) {
|
||||
withContext(Dispatchers.IO) {
|
||||
var misses = 0
|
||||
// The main menu page backs off on its own, so Quick Access stays available while its neighbour cannot connect.
|
||||
var mainMisses = 0
|
||||
var mainRetryAt = 0L
|
||||
fun split() = QamFit.current(context) == QamFit.SPLIT
|
||||
// The lease is renewed on its own, so slow discovery or a retry backoff never lets the held menu lapse.
|
||||
val renew = launch {
|
||||
while (isActive) {
|
||||
if (SessionState.phase == SessionPhase.READY && aspect[0] > 0f) SteamQam.hold(context, aspect[0], owner)
|
||||
if (SessionState.phase == SessionPhase.READY && aspect[0] > 0f) SteamQam.hold(context, aspect[0], owner, split())
|
||||
delay(TICK_MS)
|
||||
}
|
||||
}
|
||||
try {
|
||||
while (isActive) {
|
||||
// Holding the menu before Steam's first frame keeps gamescope from presenting it.
|
||||
if (SessionState.phase != SessionPhase.READY) {
|
||||
if (SessionState.phase != SessionPhase.READY || aspect[0] == 0f) {
|
||||
delay(FAST_TICK_MS)
|
||||
continue
|
||||
}
|
||||
if (aspect[0] == 0f) {
|
||||
delay(FAST_TICK_MS)
|
||||
continue
|
||||
}
|
||||
val held = SteamQam.hold(context, aspect[0], owner)
|
||||
val split = split()
|
||||
val held = SteamQam.hold(context, aspect[0], owner, split)
|
||||
ensureActive()
|
||||
var reached = held != null
|
||||
if (held?.open == SteamQam.QUICK_ACCESS) {
|
||||
var page = holder[0]
|
||||
if (page == null || page.closed) {
|
||||
page?.close()
|
||||
live.set(false)
|
||||
page = SteamQam.target(context)?.let { t ->
|
||||
if (qam.page?.closed != false) {
|
||||
val t = SteamQam.target(context)
|
||||
if (t != null) {
|
||||
if (relay[0] != 0 && relay[0] != t.port) SteamQam.stopRelay(context, relay[0])
|
||||
relay[0] = t.port
|
||||
runCatching {
|
||||
CdpPage(t.port, t.path) { method, params ->
|
||||
if (method == "Page.screencastFrame") {
|
||||
holder[0]?.send("Page.screencastFrameAck", JSONObject().put("sessionId", params.optInt("sessionId")))
|
||||
decodeFrame(params.optString("data"))?.let(show)
|
||||
}
|
||||
}
|
||||
}.onFailure { android.util.Log.w("SteamQam", "devtools connect: $it") }.getOrNull()
|
||||
mainPath[0] = t.mainPath
|
||||
qam.connect(t.port, t.path)
|
||||
mainMenu.stop(MainMenuLayout.CONTENT_SCRIPT)
|
||||
}
|
||||
holder[0] = page
|
||||
ensureActive()
|
||||
page?.send("Page.enable")
|
||||
val started = page?.call("Page.startScreencast", JSONObject().put("format", "jpeg").put("quality", 85)
|
||||
.put("maxWidth", 1920).put("maxHeight", 1440))
|
||||
if (page != null && (started == null || started.has("error") || !started.has("result"))) {
|
||||
page.close()
|
||||
page = null
|
||||
holder[0] = null
|
||||
}
|
||||
}
|
||||
// The screencast sends frames only when the menu repaints, so a still menu needs one screenshot.
|
||||
if (!live.get()) {
|
||||
page?.call("Page.captureScreenshot", JSONObject().put("format", "jpeg").put("quality", 85))
|
||||
?.optJSONObject("result")?.optString("data")?.let(::decodeFrame)?.let(show)
|
||||
}
|
||||
reached = page != null
|
||||
val wide = !held.top && QamFit.current(context) == QamFit.FULL
|
||||
(page?.evaluate(QamLayout.contentScript(wide)) as? String)?.let { text ->
|
||||
runCatching {
|
||||
val a = JSONArray(text)
|
||||
val layout = floatArrayOf(a.getDouble(0).toFloat(), a.getDouble(1).toFloat(), a.getDouble(2).toFloat(), a.getDouble(3).toFloat())
|
||||
if (!layout.contentEquals(shape)) { shape = layout; QamCache.shape = layout }
|
||||
reached = qam.page?.closed == false
|
||||
val wide = !held.top && (QamFit.current(context) == QamFit.FULL || split)
|
||||
qam.refresh(QamLayout.contentScript(wide, parked = !held.top))
|
||||
val path = mainPath[0]
|
||||
if (split && path != null) {
|
||||
val now = android.os.SystemClock.elapsedRealtime()
|
||||
if (mainMenu.page?.closed != false && now >= mainRetryAt) {
|
||||
if (mainMenu.connect(relay[0], path)) {
|
||||
mainMisses = 0
|
||||
} else {
|
||||
mainMisses++
|
||||
mainRetryAt = now + minOf(TICK_MS shl minOf(mainMisses - 1, 2), MAX_RETRY_MS)
|
||||
}
|
||||
}
|
||||
mainMenu.refresh(MainMenuLayout.CONTENT_SCRIPT)
|
||||
} else if (!split) {
|
||||
mainMenu.stop(MainMenuLayout.CONTENT_SCRIPT)
|
||||
}
|
||||
}
|
||||
failed = !reached
|
||||
@@ -214,7 +284,7 @@ internal fun SteamQamPanel() {
|
||||
misses = if (reached) 0 else misses + 1
|
||||
val wait = when {
|
||||
!reached -> minOf(TICK_MS shl minOf(misses - 1, 2), MAX_RETRY_MS)
|
||||
live.get() -> TICK_MS
|
||||
qam.live.get() && (!split || mainMenu.live.get() || mainMenu.page?.closed != false) -> TICK_MS
|
||||
else -> FAST_TICK_MS
|
||||
}
|
||||
val used = QamFit.current(context)
|
||||
@@ -225,35 +295,46 @@ internal fun SteamQamPanel() {
|
||||
} finally {
|
||||
withContext(NonCancellable) {
|
||||
renew.cancelAndJoin()
|
||||
val page = holder[0]
|
||||
holder[0] = null
|
||||
runCatching { page?.send("Page.stopScreencast") }
|
||||
// The page outlives this connection, so the widened layout would otherwise stay on the top screen.
|
||||
runCatching { page?.evaluate(QamLayout.contentScript(wide = false)) }
|
||||
page?.close()
|
||||
// The pages outlive these connections, so the widened layouts would otherwise stay on the top screen.
|
||||
qam.stop(QamLayout.contentScript(wide = false))
|
||||
mainMenu.stop(MainMenuLayout.CONTENT_SCRIPT)
|
||||
SteamQam.release(context, relay[0], owner)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
val img = image
|
||||
val l = shape
|
||||
val f = remember(img, l) {
|
||||
if (img != null && l != null && l[0] > 0f) QamFrame(img, l[0], l[1], l[3].coerceIn(l[0] * 0.25f, l[0])) else null
|
||||
}
|
||||
if (f == null) {
|
||||
val qamFrame = qam.frame()
|
||||
if (qamFrame == null) {
|
||||
Box(measure) {
|
||||
if (slow) PanelNote(stringResource(if (failed) R.string.bottom_qam_unavailable else R.string.achievements_reading))
|
||||
}
|
||||
return
|
||||
}
|
||||
BoxWithConstraints(measure.background(f.fill)) {
|
||||
if (fit != QamFit.SPLIT) {
|
||||
MenuCanvas(qamFrame, fit.align, measure) { qam.page }
|
||||
return
|
||||
}
|
||||
// Each side is as wide as its menu at the shared scale, so neither is shrunk nor padded with empty space.
|
||||
val mainFrame = mainMenu.frame()
|
||||
val mainWidth = mainFrame?.cssWidth ?: SteamQam.MAIN_CSS_WIDTH.toFloat()
|
||||
Row(measure) {
|
||||
val left = Modifier.weight(mainWidth).fillMaxHeight()
|
||||
if (mainFrame != null) MenuCanvas(mainFrame, -1, left) { mainMenu.page }
|
||||
else Box(left.background(qamFrame.fill))
|
||||
MenuCanvas(qamFrame, -1, Modifier.weight(qamFrame.cssWidth).fillMaxHeight()) { qam.page }
|
||||
}
|
||||
}
|
||||
|
||||
/** Draws [f] scaled into the box, placed by [align], and forwards touches on it to [page]. */
|
||||
@Composable
|
||||
private fun MenuCanvas(f: QamFrame, align: Int, modifier: Modifier, page: () -> CdpPage?) {
|
||||
BoxWithConstraints(modifier.background(f.fill)) {
|
||||
val density = LocalDensity.current
|
||||
val boxW = with(density) { maxWidth.toPx() }
|
||||
val boxH = with(density) { maxHeight.toPx() }
|
||||
val (scale, left) = QamLayout.fit(boxW, boxH, f.contentRight, f.cssHeight, fit.align)
|
||||
val (scale, left) = QamLayout.fit(boxW, boxH, f.contentRight, f.cssHeight, align)
|
||||
Canvas(
|
||||
Modifier.fillMaxSize().pointerInput(f.cssWidth, f.contentRight, boxW, boxH, fit) {
|
||||
Modifier.fillMaxSize().pointerInput(f.cssWidth, f.contentRight, boxW, boxH, align) {
|
||||
var touching = false
|
||||
var target: CdpPage? = null
|
||||
try {
|
||||
@@ -268,7 +349,7 @@ internal fun SteamQamPanel() {
|
||||
PointerEventType.Release -> "touchEnd"
|
||||
else -> null
|
||||
}?.takeIf { it == "touchStart" || touching } ?: continue
|
||||
if (type == "touchStart") target = holder[0]
|
||||
if (type == "touchStart") target = page()
|
||||
touching = type != "touchEnd"
|
||||
val points = if (type == "touchEnd") JSONArray()
|
||||
else JSONArray().put(JSONObject().put("x", x.toDouble()).put("y", y.toDouble()))
|
||||
|
||||
@@ -120,6 +120,7 @@ class FrontEndState(
|
||||
val clearCachedApps: Boolean = false,
|
||||
val adbPaired: Boolean = false,
|
||||
val backgroundAppLimit: Int = -1,
|
||||
val memoryHud: String = "off",
|
||||
val tpUbwcMode: String? = null,
|
||||
val tpUbwcRestartRequired: Boolean = false,
|
||||
val canRestartApp: Boolean = false,
|
||||
@@ -262,6 +263,7 @@ class FrontEndActions(
|
||||
val onBuildWatermark: () -> Unit = {},
|
||||
val onSteamGpuDrawing: () -> Unit = {},
|
||||
val onClearCachedApps: (Boolean) -> Unit = {},
|
||||
val onMemoryHud: (String) -> Unit = {},
|
||||
val onTpUbwcMode: (String) -> Unit = {},
|
||||
val onRestartApp: () -> Unit = {},
|
||||
val onBackgroundAppLimit: (Int) -> Unit = {},
|
||||
|
||||
@@ -736,6 +736,15 @@ private fun MemoryGroup(s: FrontEndState, a: FrontEndActions, host: MenuHost, on
|
||||
s.backgroundAppLimit, enabled = s.adbPaired || s.backgroundAppLimit != com.droiddeck.launcher.core.BackgroundAppLimit.OFF,
|
||||
onPick = a.onBackgroundAppLimit,
|
||||
)
|
||||
ChoiceRow(
|
||||
host, "memory-hud", stringResource(R.string.setup_memory_hud), stringResource(R.string.setup_memory_hud_hint),
|
||||
listOf(
|
||||
com.droiddeck.launcher.session.SessionPrefs.MEMORY_HUD_OFF to stringResource(R.string.game_env_off),
|
||||
com.droiddeck.launcher.session.SessionPrefs.MEMORY_HUD_SIMPLE to stringResource(R.string.setup_memory_hud_simple),
|
||||
com.droiddeck.launcher.session.SessionPrefs.MEMORY_HUD_ADVANCED to stringResource(R.string.setup_memory_hud_advanced),
|
||||
),
|
||||
s.memoryHud, onPick = a.onMemoryHud,
|
||||
)
|
||||
if (!s.adbPaired) ActionRow(
|
||||
stringResource(R.string.setup_adb_pair), stringResource(R.string.setup_adb_pair_hint),
|
||||
stringResource(R.string.setup_adb_pair_button), onPairWirelessDebugging,
|
||||
|
||||
@@ -79,6 +79,48 @@ import androidx.compose.ui.text.style.LineHeightStyle
|
||||
import androidx.compose.ui.text.style.TextOverflow
|
||||
import androidx.compose.ui.platform.testTag
|
||||
|
||||
|
||||
@Composable
|
||||
fun HudText(text: String, color: String = "mint", opacity: Int = 70) {
|
||||
if (text.isEmpty()) return
|
||||
val accent = hudInk(color)
|
||||
val wash = (opacity.coerceIn(30, 100) / 100f)
|
||||
val ink = accent.copy(alpha = (0.5f + wash * 0.5f).coerceIn(0.62f, 1f))
|
||||
Box(modifier = Modifier.fillMaxSize(), contentAlignment = Alignment.TopEnd) {
|
||||
Column(
|
||||
horizontalAlignment = Alignment.End,
|
||||
modifier = Modifier
|
||||
.padding(12.dp)
|
||||
.background(
|
||||
Brush.verticalGradient(
|
||||
listOf(accent.copy(alpha = wash * 0.28f), Color.Black.copy(alpha = wash * 0.72f)),
|
||||
),
|
||||
RoundedCornerShape(8.dp),
|
||||
)
|
||||
.padding(horizontal = 8.dp, vertical = 5.dp),
|
||||
) {
|
||||
Text(
|
||||
text,
|
||||
fontFamily = FontFamily.Monospace,
|
||||
fontSize = 12.sp,
|
||||
color = ink,
|
||||
textAlign = TextAlign.End,
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun hudInk(color: String): Color = Color(
|
||||
when (color) {
|
||||
"white" -> 0xFFF2F5F8
|
||||
"sky" -> 0xFF66C0F4
|
||||
"amber" -> 0xFFFFB74D
|
||||
"violet" -> 0xFFD0A2FF
|
||||
else -> 0xFF3DDC84
|
||||
}.toInt(),
|
||||
)
|
||||
|
||||
|
||||
private class LoadStage(@androidx.annotation.StringRes val label: Int, @androidx.annotation.StringRes val detail: Int)
|
||||
|
||||
private fun loadStages(steam: Boolean): List<LoadStage> = if (steam) listOf(
|
||||
|
||||
@@ -78,6 +78,7 @@ internal object SettingsIndex {
|
||||
s(SettingsSection.PERFORMANCE, R.string.perf_gpuclock, "gpu", "clock", "max"),
|
||||
s(SettingsSection.PERFORMANCE, R.string.setup_clear_cached, "memory", "ram", "crash", "sleep", "killed"),
|
||||
s(SettingsSection.PERFORMANCE, R.string.setup_bg_limit, "memory", "ram", "background apps"),
|
||||
s(SettingsSection.PERFORMANCE, R.string.setup_memory_hud, "memory", "ram", "overlay"),
|
||||
s(SettingsSection.PERFORMANCE, R.string.perf_sysmem),
|
||||
s(SettingsSection.PERFORMANCE, R.string.perf_xalia),
|
||||
s(SettingsSection.PERFORMANCE, R.string.perf_esync, "esync", "sync", "wine"),
|
||||
|
||||
@@ -2236,6 +2236,7 @@
|
||||
<string name="bottom_qam_layout_left">يسار</string>
|
||||
<string name="bottom_qam_layout_center">وسط</string>
|
||||
<string name="bottom_qam_layout_right">يمين</string>
|
||||
<string name="bottom_qam_layout_split">مقسّم</string>
|
||||
<string name="bottom_qam_unavailable">قائمة الوصول السريع في Steam غير متاحة بعد.</string>
|
||||
<string name="bottom_page_telemetry">إحصاءات داخل اللعبة</string>
|
||||
<string name="bottom_hud_group">مؤشرات الشاشة السفلية</string>
|
||||
@@ -3962,6 +3963,13 @@
|
||||
<string name="setup_clear_cached">إغلاق التطبيقات المخزّنة مؤقتًا قبل الجلسة</string>
|
||||
<string name="setup_clear_cached_hint">عند بدء الجلسة، يُغلق DroidDeck التطبيقات التي يُبقيها Android في الخلفية، لتحصل اللعبة على ذاكرة أكبر. يجب تفعيل تصحيح الأخطاء اللاسلكي.</string>
|
||||
<string name="setup_clear_cached_unpaired">يتطلّب إقران DroidDeck بتصحيح الأخطاء اللاسلكي (إقران، أدناه).</string>
|
||||
<string name="setup_memory_hud">مؤشر الذاكرة</string>
|
||||
<string name="setup_memory_hud_hint">الذاكرة وswap المستخدمة، على شاشة الجلسة. يقسّمها الوضع المتقدّم بين اللعبة وDroidDeck وAndroid وGPU.</string>
|
||||
<string name="setup_memory_hud_simple">بسيط</string>
|
||||
<string name="setup_memory_hud_advanced">متقدّم</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">اللعبة %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">التطبيقات في الخلفية أثناء الجلسة</string>
|
||||
<string name="setup_bg_limit_hint">أثناء تشغيل الجلسة، يُبقي Android هذا العدد من التطبيقات كحد أقصى في الذاكرة المؤقتة ويُغلق الباقي، لتحصل اللعبة على ذاكرتها. يُعيد DroidDeck الحد إلى ما كان عليه عند انتهاء الجلسة. يجب تفعيل تصحيح الأخطاء اللاسلكي.</string>
|
||||
<string name="setup_bg_limit_4">4 كحد أقصى</string>
|
||||
|
||||
@@ -2231,6 +2231,7 @@
|
||||
<string name="bottom_qam_layout_left">Izquierda</string>
|
||||
<string name="bottom_qam_layout_center">Centro</string>
|
||||
<string name="bottom_qam_layout_right">Derecha</string>
|
||||
<string name="bottom_qam_layout_split">Dividido</string>
|
||||
<string name="bottom_qam_unavailable">El menú de acceso rápido de Steam aún no está disponible.</string>
|
||||
<string name="bottom_page_telemetry">Estadísticas del juego</string>
|
||||
<string name="bottom_hud_group">HUD de la pantalla inferior</string>
|
||||
@@ -3845,6 +3846,13 @@
|
||||
<string name="setup_clear_cached">Cerrar apps en caché antes de una sesión</string>
|
||||
<string name="setup_clear_cached_hint">Al iniciar una sesión, DroidDeck cierra las apps que Android mantiene en segundo plano para que el juego tenga más memoria. La Depuración inalámbrica debe estar activada.</string>
|
||||
<string name="setup_clear_cached_unpaired">DroidDeck debe estar vinculado con la Depuración inalámbrica (Vincular, abajo).</string>
|
||||
<string name="setup_memory_hud">Indicador de memoria</string>
|
||||
<string name="setup_memory_hud_hint">Memoria y swap en uso, en la pantalla de la sesión. Avanzado lo divide entre el juego, DroidDeck, Android y la GPU.</string>
|
||||
<string name="setup_memory_hud_simple">Simple</string>
|
||||
<string name="setup_memory_hud_advanced">Avanzado</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">juego %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">Apps en segundo plano durante una sesión</string>
|
||||
<string name="setup_bg_limit_hint">Mientras una sesión está en curso, Android mantiene en caché como máximo esta cantidad de apps y cierra las demás para que el juego use su memoria. DroidDeck restablece el límite anterior cuando termina la sesión. La Depuración inalámbrica debe estar activada.</string>
|
||||
<string name="setup_bg_limit_4">Como máximo 4</string>
|
||||
|
||||
@@ -2136,6 +2136,7 @@
|
||||
<string name="bottom_qam_layout_left">Вляво</string>
|
||||
<string name="bottom_qam_layout_center">В центъра</string>
|
||||
<string name="bottom_qam_layout_right">Вдясно</string>
|
||||
<string name="bottom_qam_layout_split">Разделено</string>
|
||||
<string name="bottom_qam_unavailable">Менюто за бърз достъп на Steam още не е налично.</string>
|
||||
<string name="bottom_page_telemetry">Статистика в играта</string>
|
||||
<string name="bottom_hud_group">HUD на долния екран</string>
|
||||
@@ -3806,6 +3807,13 @@
|
||||
<string name="setup_clear_cached">Затваряне на кешираните приложения преди сесия</string>
|
||||
<string name="setup_clear_cached_hint">При стартиране на сесия DroidDeck затваря приложенията, които Android държи във фонов режим, за да има играта повече памет. Безжичното отстраняване на грешки трябва да е включено.</string>
|
||||
<string name="setup_clear_cached_unpaired">Изисква DroidDeck да е сдвоен чрез безжично отстраняване на грешки (Сдвояване, по-долу).</string>
|
||||
<string name="setup_memory_hud">Показател за паметта</string>
|
||||
<string name="setup_memory_hud_hint">Използвана памет и swap на екрана на сесията. Разширеният режим я разделя между играта, DroidDeck, Android и GPU.</string>
|
||||
<string name="setup_memory_hud_simple">Опростен</string>
|
||||
<string name="setup_memory_hud_advanced">Разширен</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">игра %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">Фонови приложения по време на сесия</string>
|
||||
<string name="setup_bg_limit_hint">Докато сесията работи, Android държи в кеша най-много толкова приложения и затваря останалите, за да получи играта тяхната памет. DroidDeck връща предишното ограничение, когато сесията приключи. Безжичното отстраняване на грешки трябва да е включено.</string>
|
||||
<string name="setup_bg_limit_4">Най-много 4</string>
|
||||
|
||||
@@ -2186,6 +2186,7 @@
|
||||
<string name="bottom_qam_layout_left">Vlevo</string>
|
||||
<string name="bottom_qam_layout_center">Na střed</string>
|
||||
<string name="bottom_qam_layout_right">Vpravo</string>
|
||||
<string name="bottom_qam_layout_split">Rozděleno</string>
|
||||
<string name="bottom_qam_unavailable">Nabídka rychlého přístupu Steamu zatím není k dispozici.</string>
|
||||
<string name="bottom_page_telemetry">Statistiky ve hře</string>
|
||||
<string name="bottom_hud_group">HUD na spodní obrazovce</string>
|
||||
@@ -3884,6 +3885,13 @@
|
||||
<string name="setup_clear_cached">Zavřít aplikace v mezipaměti před relací</string>
|
||||
<string name="setup_clear_cached_hint">Při spuštění relace DroidDeck zavře aplikace, které Android drží na pozadí, aby hra měla více paměti. Musí být zapnuté Bezdrátové ladění.</string>
|
||||
<string name="setup_clear_cached_unpaired">Vyžaduje DroidDeck spárovaný přes Bezdrátové ladění (Spárovat, níže).</string>
|
||||
<string name="setup_memory_hud">Ukazatel paměti</string>
|
||||
<string name="setup_memory_hud_hint">Využitá paměť a swap na obrazovce relace. Pokročilé zobrazení ji rozdělí na hru, DroidDeck, Android a GPU.</string>
|
||||
<string name="setup_memory_hud_simple">Jednoduché</string>
|
||||
<string name="setup_memory_hud_advanced">Pokročilé</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">hra %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">Aplikace na pozadí během relace</string>
|
||||
<string name="setup_bg_limit_hint">Během relace Android ponechá v mezipaměti nejvýše tolik aplikací a ostatní zavře, aby hra dostala jejich paměť. Po skončení relace DroidDeck vrátí limit na původní hodnotu. Musí být zapnuté Bezdrátové ladění.</string>
|
||||
<string name="setup_bg_limit_4">Nejvýše 4</string>
|
||||
|
||||
@@ -2136,6 +2136,7 @@
|
||||
<string name="bottom_qam_layout_left">Venstre</string>
|
||||
<string name="bottom_qam_layout_center">Midte</string>
|
||||
<string name="bottom_qam_layout_right">Højre</string>
|
||||
<string name="bottom_qam_layout_split">Delt</string>
|
||||
<string name="bottom_qam_unavailable">Steams menu til hurtig adgang er ikke tilgængelig endnu.</string>
|
||||
<string name="bottom_page_telemetry">Statistik i spillet</string>
|
||||
<string name="bottom_hud_group">HUD på nederste skærm</string>
|
||||
@@ -3806,6 +3807,13 @@
|
||||
<string name="setup_clear_cached">Luk cachelagrede apps før en session</string>
|
||||
<string name="setup_clear_cached_hint">Når en session starter, lukker DroidDeck de apps, Android holder parkeret i baggrunden, så spillet får mere hukommelse. Trådløs fejlretning skal være slået til.</string>
|
||||
<string name="setup_clear_cached_unpaired">Kræver, at DroidDeck er parret med Trådløs fejlretning (Par, nedenfor).</string>
|
||||
<string name="setup_memory_hud">Hukommelsesvisning</string>
|
||||
<string name="setup_memory_hud_hint">Hukommelse og swap i brug på sessionsskærmen. Avanceret fordeler det på spillet, DroidDeck, Android og GPU\'en.</string>
|
||||
<string name="setup_memory_hud_simple">Enkel</string>
|
||||
<string name="setup_memory_hud_advanced">Avanceret</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">spil %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">Baggrundsapps under en session</string>
|
||||
<string name="setup_bg_limit_hint">Mens en session kører, holder Android højst så mange apps i cache og lukker resten, så spillet får deres hukommelse. DroidDeck sætter grænsen tilbage, som den var, når sessionen slutter. Trådløs fejlretning skal være slået til.</string>
|
||||
<string name="setup_bg_limit_4">Højst 4</string>
|
||||
|
||||
@@ -2128,6 +2128,7 @@
|
||||
<string name="bottom_qam_layout_left">Links</string>
|
||||
<string name="bottom_qam_layout_center">Mitte</string>
|
||||
<string name="bottom_qam_layout_right">Rechts</string>
|
||||
<string name="bottom_qam_layout_split">Geteilt</string>
|
||||
<string name="bottom_qam_unavailable">Das Schnellzugriffsmenü von Steam ist noch nicht verfügbar.</string>
|
||||
<string name="bottom_page_telemetry">Spielstatistiken</string>
|
||||
<string name="bottom_hud_group">HUD für den unteren Bildschirm</string>
|
||||
@@ -3806,6 +3807,13 @@
|
||||
<string name="setup_clear_cached">Apps im Cache vor einer Sitzung schließen</string>
|
||||
<string name="setup_clear_cached_hint">Beim Start einer Sitzung schließt DroidDeck die Apps, die Android im Hintergrund vorhält, damit das Spiel mehr Arbeitsspeicher hat. „Debugging über WLAN“ muss aktiviert sein.</string>
|
||||
<string name="setup_clear_cached_unpaired">DroidDeck muss über „Debugging über WLAN“ gekoppelt sein (Koppeln, unten).</string>
|
||||
<string name="setup_memory_hud">Speicheranzeige</string>
|
||||
<string name="setup_memory_hud_hint">Belegter Arbeitsspeicher und Swap auf dem Sitzungsbildschirm. „Erweitert“ schlüsselt ihn nach Spiel, DroidDeck, Android und GPU auf.</string>
|
||||
<string name="setup_memory_hud_simple">Einfach</string>
|
||||
<string name="setup_memory_hud_advanced">Erweitert</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · Swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">Spiel %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">Hintergrund-Apps während einer Sitzung</string>
|
||||
<string name="setup_bg_limit_hint">Während eine Sitzung läuft, hält Android höchstens so viele Apps im Cache und schließt die übrigen, damit das Spiel deren Speicher bekommt. DroidDeck stellt das vorherige Limit wieder her, wenn die Sitzung endet. „Debugging über WLAN“ muss aktiviert sein.</string>
|
||||
<string name="setup_bg_limit_4">Höchstens 4</string>
|
||||
|
||||
@@ -2136,6 +2136,7 @@
|
||||
<string name="bottom_qam_layout_left">Αριστερά</string>
|
||||
<string name="bottom_qam_layout_center">Κέντρο</string>
|
||||
<string name="bottom_qam_layout_right">Δεξιά</string>
|
||||
<string name="bottom_qam_layout_split">Διαιρεμένο</string>
|
||||
<string name="bottom_qam_unavailable">Το μενού γρήγορης πρόσβασης του Steam δεν είναι ακόμη διαθέσιμο.</string>
|
||||
<string name="bottom_page_telemetry">Στατιστικά παιχνιδιού</string>
|
||||
<string name="bottom_hud_group">HUD κάτω οθόνης</string>
|
||||
@@ -3806,6 +3807,13 @@
|
||||
<string name="setup_clear_cached">Κλείσιμο εφαρμογών στην προσωρινή μνήμη πριν από τη συνεδρία</string>
|
||||
<string name="setup_clear_cached_hint">Όταν ξεκινά μια συνεδρία, το DroidDeck κλείνει τις εφαρμογές που το Android κρατά στο παρασκήνιο, ώστε το παιχνίδι να έχει περισσότερη μνήμη. Ο Ασύρματος εντοπισμός σφαλμάτων πρέπει να είναι ενεργός.</string>
|
||||
<string name="setup_clear_cached_unpaired">Απαιτεί σύζευξη του DroidDeck με τον Ασύρματο εντοπισμό σφαλμάτων (Σύζευξη, παρακάτω).</string>
|
||||
<string name="setup_memory_hud">Ένδειξη μνήμης</string>
|
||||
<string name="setup_memory_hud_hint">Μνήμη και swap σε χρήση, στην οθόνη της συνεδρίας. Με την επιλογή «Για προχωρημένους» χωρίζεται σε παιχνίδι, DroidDeck, Android και GPU.</string>
|
||||
<string name="setup_memory_hud_simple">Απλή</string>
|
||||
<string name="setup_memory_hud_advanced">Για προχωρημένους</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">παιχνίδι %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">Εφαρμογές παρασκηνίου κατά τη συνεδρία</string>
|
||||
<string name="setup_bg_limit_hint">Όσο εκτελείται μια συνεδρία, το Android κρατά στην προσωρινή μνήμη το πολύ τόσες εφαρμογές και κλείνει τις υπόλοιπες, ώστε το παιχνίδι να πάρει τη μνήμη τους. Το DroidDeck επαναφέρει το όριο όπως ήταν όταν τελειώσει η συνεδρία. Ο Ασύρματος εντοπισμός σφαλμάτων πρέπει να είναι ενεργός.</string>
|
||||
<string name="setup_bg_limit_4">Το πολύ 4</string>
|
||||
|
||||
@@ -2161,6 +2161,7 @@
|
||||
<string name="bottom_qam_layout_left">Izquierda</string>
|
||||
<string name="bottom_qam_layout_center">Centro</string>
|
||||
<string name="bottom_qam_layout_right">Derecha</string>
|
||||
<string name="bottom_qam_layout_split">Dividido</string>
|
||||
<string name="bottom_qam_unavailable">El menú de acceso rápido de Steam aún no está disponible.</string>
|
||||
<string name="bottom_page_telemetry">Estadísticas del juego</string>
|
||||
<string name="bottom_hud_group">HUD de la pantalla inferior</string>
|
||||
@@ -3845,6 +3846,13 @@
|
||||
<string name="setup_clear_cached">Cerrar apps en caché antes de una sesión</string>
|
||||
<string name="setup_clear_cached_hint">Al empezar una sesión, cierra las apps que Android mantiene en segundo plano para que el juego tenga más memoria. La depuración inalámbrica debe estar activada.</string>
|
||||
<string name="setup_clear_cached_unpaired">DroidDeck debe estar vinculado con la depuración inalámbrica (Vincular, abajo).</string>
|
||||
<string name="setup_memory_hud">Indicador de memoria</string>
|
||||
<string name="setup_memory_hud_hint">Memoria y swap en uso, en la pantalla de la sesión. Avanzado lo divide entre el juego, DroidDeck, Android y la GPU.</string>
|
||||
<string name="setup_memory_hud_simple">Simple</string>
|
||||
<string name="setup_memory_hud_advanced">Avanzado</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">juego %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">Apps en segundo plano durante una sesión</string>
|
||||
<string name="setup_bg_limit_hint">Mientras una sesión está en marcha, Android mantiene en caché como máximo este número de apps y cierra las demás, para que el juego tenga su memoria. Se restablece al terminar la sesión. La depuración inalámbrica debe estar activada.</string>
|
||||
<string name="setup_bg_limit_4">Como máximo 4</string>
|
||||
|
||||
@@ -2136,6 +2136,7 @@
|
||||
<string name="bottom_qam_layout_left">Vasen</string>
|
||||
<string name="bottom_qam_layout_center">Keskellä</string>
|
||||
<string name="bottom_qam_layout_right">Oikea</string>
|
||||
<string name="bottom_qam_layout_split">Jaettu</string>
|
||||
<string name="bottom_qam_unavailable">Steamin pikavalikko ei ole vielä käytettävissä.</string>
|
||||
<string name="bottom_page_telemetry">Pelinsisäiset tilastot</string>
|
||||
<string name="bottom_hud_group">Alanäytön HUD</string>
|
||||
@@ -3806,6 +3807,13 @@
|
||||
<string name="setup_clear_cached">Sulje välimuistissa olevat sovellukset ennen istuntoa</string>
|
||||
<string name="setup_clear_cached_hint">Kun istunto alkaa, DroidDeck sulkee sovellukset, joita Android pitää taustalla, jotta pelillä on enemmän muistia. Langattoman virheenkorjauksen on oltava päällä.</string>
|
||||
<string name="setup_clear_cached_unpaired">Vaatii, että DroidDeck on pariutettu Langattoman virheenkorjauksen kautta (Pariuta, alla).</string>
|
||||
<string name="setup_memory_hud">Muistinäyttö</string>
|
||||
<string name="setup_memory_hud_hint">Käytössä oleva muisti ja swap istuntonäytöllä. Laajennettu näyttää erikseen pelin, DroidDeckin, Androidin ja GPU:n osuuden.</string>
|
||||
<string name="setup_memory_hud_simple">Yksinkertainen</string>
|
||||
<string name="setup_memory_hud_advanced">Laajennettu</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">peli %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">Taustasovellukset istunnon aikana</string>
|
||||
<string name="setup_bg_limit_hint">Istunnon aikana Android pitää välimuistissa enintään näin monta sovellusta ja sulkee loput, jotta peli saa niiden muistin. DroidDeck palauttaa rajan ennalleen, kun istunto päättyy. Langattoman virheenkorjauksen on oltava päällä.</string>
|
||||
<string name="setup_bg_limit_4">Enintään 4</string>
|
||||
|
||||
@@ -2160,6 +2160,7 @@
|
||||
<string name="bottom_qam_layout_left">Gauche</string>
|
||||
<string name="bottom_qam_layout_center">Centre</string>
|
||||
<string name="bottom_qam_layout_right">Droite</string>
|
||||
<string name="bottom_qam_layout_split">Partagé</string>
|
||||
<string name="bottom_qam_unavailable">Le menu d’accès rapide de Steam n’est pas encore disponible.</string>
|
||||
<string name="bottom_page_telemetry">Statistiques en jeu</string>
|
||||
<string name="bottom_hud_group">HUD de l\'écran du bas</string>
|
||||
@@ -3844,6 +3845,13 @@
|
||||
<string name="setup_clear_cached">Fermer les applis en cache avant une session</string>
|
||||
<string name="setup_clear_cached_hint">Au début d\'une session, ferme les applis qu\'Android garde en arrière-plan, pour laisser plus de mémoire au jeu. Le débogage sans fil doit être activé.</string>
|
||||
<string name="setup_clear_cached_unpaired">DroidDeck doit être associé au débogage sans fil (Associer, ci-dessous).</string>
|
||||
<string name="setup_memory_hud">Indicateur de mémoire</string>
|
||||
<string name="setup_memory_hud_hint">Mémoire et swap utilisés, sur l\'écran de la session. Avancé détaille le jeu, DroidDeck, Android et le GPU.</string>
|
||||
<string name="setup_memory_hud_simple">Simple</string>
|
||||
<string name="setup_memory_hud_advanced">Avancé</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s Go · swap %3$s/%4$s Go</string>
|
||||
<string name="memory_hud_split">jeu %1$s · DroidDeck %2$s · Android %3$s Go</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s Go</string>
|
||||
<string name="setup_bg_limit">Applis en arrière-plan pendant une session</string>
|
||||
<string name="setup_bg_limit_hint">Pendant une session, Android garde au plus ce nombre d\'applis en cache et ferme les autres, pour laisser leur mémoire au jeu. Rétabli à la fin de la session. Le débogage sans fil doit être activé.</string>
|
||||
<string name="setup_bg_limit_4">4 au maximum</string>
|
||||
|
||||
@@ -2136,6 +2136,7 @@
|
||||
<string name="bottom_qam_layout_left">बाएँ</string>
|
||||
<string name="bottom_qam_layout_center">बीच में</string>
|
||||
<string name="bottom_qam_layout_right">दाएँ</string>
|
||||
<string name="bottom_qam_layout_split">विभाजित</string>
|
||||
<string name="bottom_qam_unavailable">Steam का क्विक एक्सेस मेनू अभी उपलब्ध नहीं है।</string>
|
||||
<string name="bottom_page_telemetry">इन-गेम आंकड़े</string>
|
||||
<string name="bottom_hud_group">निचली स्क्रीन HUD</string>
|
||||
@@ -3806,6 +3807,13 @@
|
||||
<string name="setup_clear_cached">सेशन से पहले कैश्ड ऐप बंद करें</string>
|
||||
<string name="setup_clear_cached_hint">सेशन शुरू होने पर DroidDeck उन ऐप को बंद कर देता है जिन्हें Android बैकग्राउंड में रखता है, ताकि गेम को ज़्यादा मेमोरी मिले। वायरलेस डीबगिंग चालू होनी चाहिए।</string>
|
||||
<string name="setup_clear_cached_unpaired">DroidDeck को वायरलेस डीबगिंग से पेयर करना ज़रूरी है (नीचे, पेयर करें)।</string>
|
||||
<string name="setup_memory_hud">मेमोरी रीडआउट</string>
|
||||
<string name="setup_memory_hud_hint">सेशन स्क्रीन पर इस्तेमाल हो रही मेमोरी और swap। एडवांस्ड इसे गेम, DroidDeck, Android और GPU में बांटकर दिखाता है।</string>
|
||||
<string name="setup_memory_hud_simple">सिंपल</string>
|
||||
<string name="setup_memory_hud_advanced">एडवांस्ड</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">गेम %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">सेशन के दौरान बैकग्राउंड ऐप</string>
|
||||
<string name="setup_bg_limit_hint">सेशन चलते समय Android ज़्यादा से ज़्यादा इतने ऐप कैश में रखता है और बाकी बंद कर देता है, ताकि गेम को उनकी मेमोरी मिले। सेशन खत्म होने पर DroidDeck सीमा को पहले जैसा कर देता है। वायरलेस डीबगिंग चालू होनी चाहिए।</string>
|
||||
<string name="setup_bg_limit_4">ज़्यादा से ज़्यादा 4</string>
|
||||
|
||||
@@ -2136,6 +2136,7 @@
|
||||
<string name="bottom_qam_layout_left">Balra</string>
|
||||
<string name="bottom_qam_layout_center">Középen</string>
|
||||
<string name="bottom_qam_layout_right">Jobbra</string>
|
||||
<string name="bottom_qam_layout_split">Osztott</string>
|
||||
<string name="bottom_qam_unavailable">A Steam gyorselérési menüje még nem érhető el.</string>
|
||||
<string name="bottom_page_telemetry">Játékon belüli statisztikák</string>
|
||||
<string name="bottom_hud_group">HUD az alsó képernyőn</string>
|
||||
@@ -3804,6 +3805,13 @@
|
||||
<string name="setup_clear_cached">Gyorsítótárazott alkalmazások bezárása munkamenet előtt</string>
|
||||
<string name="setup_clear_cached_hint">Munkamenet indításakor a DroidDeck bezárja azokat az alkalmazásokat, amelyeket az Android a háttérben tart, így a játéknak több memória jut. A vezeték nélküli hibakeresésnek bekapcsolva kell lennie.</string>
|
||||
<string name="setup_clear_cached_unpaired">A DroidDecket párosítani kell a vezeték nélküli hibakereséssel (Párosítás, lent).</string>
|
||||
<string name="setup_memory_hud">Memóriakijelzés</string>
|
||||
<string name="setup_memory_hud_hint">A használt memória és swap a munkamenet képernyőjén. A Speciális nézet szétbontja a játék, a DroidDeck, az Android és a GPU között.</string>
|
||||
<string name="setup_memory_hud_simple">Egyszerű</string>
|
||||
<string name="setup_memory_hud_advanced">Speciális</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">játék %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">Háttéralkalmazások munkamenet közben</string>
|
||||
<string name="setup_bg_limit_hint">Munkamenet közben az Android legfeljebb ennyi alkalmazást tart a gyorsítótárban, a többit bezárja, így azok memóriája a játéké lesz. A munkamenet végén a DroidDeck visszaállítja a korábbi korlátot. A vezeték nélküli hibakeresésnek bekapcsolva kell lennie.</string>
|
||||
<string name="setup_bg_limit_4">Legfeljebb 4</string>
|
||||
|
||||
@@ -2112,6 +2112,7 @@
|
||||
<string name="bottom_qam_layout_left">Kiri</string>
|
||||
<string name="bottom_qam_layout_center">Tengah</string>
|
||||
<string name="bottom_qam_layout_right">Kanan</string>
|
||||
<string name="bottom_qam_layout_split">Terbagi</string>
|
||||
<string name="bottom_qam_unavailable">Menu Akses Cepat Steam belum tersedia.</string>
|
||||
<string name="bottom_page_telemetry">Statistik dalam gim</string>
|
||||
<string name="bottom_hud_group">HUD layar bawah</string>
|
||||
@@ -3777,6 +3778,13 @@
|
||||
<string name="setup_clear_cached">Tutup aplikasi dalam cache sebelum sesi</string>
|
||||
<string name="setup_clear_cached_hint">Saat sesi dimulai, DroidDeck menutup aplikasi yang disimpan Android di latar belakang agar gim mendapat lebih banyak memori. Debugging nirkabel harus aktif.</string>
|
||||
<string name="setup_clear_cached_unpaired">DroidDeck harus disandingkan dengan Debugging nirkabel (Pasangkan, di bawah).</string>
|
||||
<string name="setup_memory_hud">Tampilan memori</string>
|
||||
<string name="setup_memory_hud_hint">Memori dan swap yang digunakan, di layar sesi. Lanjutan merincinya menjadi gim, DroidDeck, Android, dan GPU.</string>
|
||||
<string name="setup_memory_hud_simple">Sederhana</string>
|
||||
<string name="setup_memory_hud_advanced">Lanjutan</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">gim %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">Aplikasi latar belakang selama sesi</string>
|
||||
<string name="setup_bg_limit_hint">Selama sesi berjalan, Android menyimpan paling banyak sejumlah ini aplikasi di cache dan menutup sisanya agar gim mendapat memorinya. DroidDeck mengembalikan batas seperti semula saat sesi berakhir. Debugging nirkabel harus aktif.</string>
|
||||
<string name="setup_bg_limit_4">Paling banyak 4</string>
|
||||
|
||||
@@ -2152,6 +2152,7 @@
|
||||
<string name="bottom_qam_layout_left">Sinistra</string>
|
||||
<string name="bottom_qam_layout_center">Centro</string>
|
||||
<string name="bottom_qam_layout_right">Destra</string>
|
||||
<string name="bottom_qam_layout_split">Diviso</string>
|
||||
<string name="bottom_qam_unavailable">Il menu di accesso rapido di Steam non è ancora disponibile.</string>
|
||||
<string name="bottom_page_telemetry">Statistiche di gioco</string>
|
||||
<string name="bottom_hud_group">HUD dello schermo inferiore</string>
|
||||
@@ -3842,6 +3843,13 @@
|
||||
<string name="setup_clear_cached">Chiudi le app in cache prima di una sessione</string>
|
||||
<string name="setup_clear_cached_hint">All\'avvio di una sessione, DroidDeck chiude le app che Android tiene parcheggiate in background, così il gioco ha più memoria. Il Debug wireless deve essere attivo.</string>
|
||||
<string name="setup_clear_cached_unpaired">Richiede DroidDeck accoppiato con il Debug wireless (Accoppia, qui sotto).</string>
|
||||
<string name="setup_memory_hud">Indicatore della memoria</string>
|
||||
<string name="setup_memory_hud_hint">Memoria e swap in uso, nella schermata della sessione. Avanzato la suddivide tra gioco, DroidDeck, Android e GPU.</string>
|
||||
<string name="setup_memory_hud_simple">Semplice</string>
|
||||
<string name="setup_memory_hud_advanced">Avanzato</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">gioco %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">App in background durante una sessione</string>
|
||||
<string name="setup_bg_limit_hint">Durante una sessione, Android tiene in cache al massimo questo numero di app e chiude le altre, così il gioco ha la loro memoria. Al termine della sessione DroidDeck ripristina il limite precedente. Il Debug wireless deve essere attivo.</string>
|
||||
<string name="setup_bg_limit_4">Al massimo 4</string>
|
||||
|
||||
@@ -2112,6 +2112,7 @@
|
||||
<string name="bottom_qam_layout_left">左</string>
|
||||
<string name="bottom_qam_layout_center">中央</string>
|
||||
<string name="bottom_qam_layout_right">右</string>
|
||||
<string name="bottom_qam_layout_split">分割</string>
|
||||
<string name="bottom_qam_unavailable">Steam のクイックアクセスメニューはまだ使えません。</string>
|
||||
<string name="bottom_page_telemetry">ゲーム内統計</string>
|
||||
<string name="bottom_hud_group">下部画面の HUD</string>
|
||||
@@ -3777,6 +3778,13 @@
|
||||
<string name="setup_clear_cached">セッション前にキャッシュ済みアプリを閉じる</string>
|
||||
<string name="setup_clear_cached_hint">セッションの開始時に、Android がバックグラウンドに保持しているアプリを閉じ、ゲームに使えるメモリを増やします。ワイヤレスデバッグをオンにする必要があります。</string>
|
||||
<string name="setup_clear_cached_unpaired">DroidDeck をワイヤレスデバッグとペア設定する必要があります(下の「ペア設定」)。</string>
|
||||
<string name="setup_memory_hud">メモリ表示</string>
|
||||
<string name="setup_memory_hud_hint">使用中のメモリとスワップをセッション画面に表示します。詳細設定では、ゲーム、DroidDeck、Android、GPU に分けて表示します。</string>
|
||||
<string name="setup_memory_hud_simple">シンプル</string>
|
||||
<string name="setup_memory_hud_advanced">詳細設定</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · スワップ %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">ゲーム %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">セッション中のバックグラウンドアプリ</string>
|
||||
<string name="setup_bg_limit_hint">セッション中、Android がキャッシュに保持するアプリをこの数までに抑え、残りを閉じてゲームにメモリを回します。セッション終了時に元に戻します。ワイヤレスデバッグをオンにする必要があります。</string>
|
||||
<string name="setup_bg_limit_4">最大 4 個</string>
|
||||
|
||||
@@ -2112,6 +2112,7 @@
|
||||
<string name="bottom_qam_layout_left">왼쪽</string>
|
||||
<string name="bottom_qam_layout_center">가운데</string>
|
||||
<string name="bottom_qam_layout_right">오른쪽</string>
|
||||
<string name="bottom_qam_layout_split">분할</string>
|
||||
<string name="bottom_qam_unavailable">Steam 빠른 메뉴를 아직 사용할 수 없습니다.</string>
|
||||
<string name="bottom_page_telemetry">게임 내 통계</string>
|
||||
<string name="bottom_hud_group">하단 화면 HUD</string>
|
||||
@@ -3777,6 +3778,13 @@
|
||||
<string name="setup_clear_cached">세션 전에 캐시된 앱 닫기</string>
|
||||
<string name="setup_clear_cached_hint">세션이 시작될 때 Android가 백그라운드에 보관 중인 앱을 닫아 게임이 메모리를 더 쓸 수 있게 합니다. 무선 디버깅이 켜져 있어야 합니다.</string>
|
||||
<string name="setup_clear_cached_unpaired">DroidDeck을 무선 디버깅과 페어링해야 합니다(아래 페어링).</string>
|
||||
<string name="setup_memory_hud">메모리 표시</string>
|
||||
<string name="setup_memory_hud_hint">사용 중인 메모리와 스왑을 세션 화면에 표시합니다. 고급에서는 게임, DroidDeck, Android, GPU로 나눠 보여 줍니다.</string>
|
||||
<string name="setup_memory_hud_simple">간단</string>
|
||||
<string name="setup_memory_hud_advanced">고급</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · 스왑 %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">게임 %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">세션 중 백그라운드 앱</string>
|
||||
<string name="setup_bg_limit_hint">세션이 실행되는 동안 Android가 캐시에 두는 앱을 이 개수까지로 제한하고 나머지는 닫아 게임이 그 메모리를 쓰게 합니다. 세션이 끝나면 원래대로 돌아갑니다. 무선 디버깅이 켜져 있어야 합니다.</string>
|
||||
<string name="setup_bg_limit_4">최대 4개</string>
|
||||
|
||||
@@ -2112,6 +2112,7 @@
|
||||
<string name="bottom_qam_layout_left">Kiri</string>
|
||||
<string name="bottom_qam_layout_center">Tengah</string>
|
||||
<string name="bottom_qam_layout_right">Kanan</string>
|
||||
<string name="bottom_qam_layout_split">Terbahagi</string>
|
||||
<string name="bottom_qam_unavailable">Menu Akses Pantas Steam belum tersedia.</string>
|
||||
<string name="bottom_page_telemetry">Statistik dalam permainan</string>
|
||||
<string name="bottom_hud_group">HUD skrin bawah</string>
|
||||
@@ -3775,6 +3776,13 @@
|
||||
<string name="setup_clear_cached">Tutup apl dalam cache sebelum sesi</string>
|
||||
<string name="setup_clear_cached_hint">Apabila sesi bermula, DroidDeck menutup apl yang disimpan Android di latar belakang supaya permainan mendapat lebih banyak memori. Debugging Wayarles mesti dihidupkan.</string>
|
||||
<string name="setup_clear_cached_unpaired">Memerlukan DroidDeck digandingkan dengan Debugging Wayarles (Gandingkan, di bawah).</string>
|
||||
<string name="setup_memory_hud">Paparan memori</string>
|
||||
<string name="setup_memory_hud_hint">Memori dan swap yang digunakan, pada skrin sesi. Lanjutan memecahkannya kepada permainan, DroidDeck, Android dan GPU.</string>
|
||||
<string name="setup_memory_hud_simple">Ringkas</string>
|
||||
<string name="setup_memory_hud_advanced">Lanjutan</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">permainan %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">Apl latar belakang semasa sesi</string>
|
||||
<string name="setup_bg_limit_hint">Semasa sesi berjalan, Android menyimpan paling banyak bilangan apl ini dalam cache dan menutup selebihnya, supaya permainan mendapat memori apl tersebut. DroidDeck memulihkan had seperti asal apabila sesi tamat. Debugging Wayarles mesti dihidupkan.</string>
|
||||
<string name="setup_bg_limit_4">Paling banyak 4</string>
|
||||
|
||||
@@ -2136,6 +2136,7 @@
|
||||
<string name="bottom_qam_layout_left">Venstre</string>
|
||||
<string name="bottom_qam_layout_center">Midten</string>
|
||||
<string name="bottom_qam_layout_right">Høyre</string>
|
||||
<string name="bottom_qam_layout_split">Delt</string>
|
||||
<string name="bottom_qam_unavailable">Steams hurtigtilgangsmeny er ikke tilgjengelig ennå.</string>
|
||||
<string name="bottom_page_telemetry">Statistikk i spillet</string>
|
||||
<string name="bottom_hud_group">HUD på bunnskjermen</string>
|
||||
@@ -3806,6 +3807,13 @@
|
||||
<string name="setup_clear_cached">Lukk bufrede apper før en sesjon</string>
|
||||
<string name="setup_clear_cached_hint">Når en sesjon starter, lukker DroidDeck appene Android holder parkert i bakgrunnen, slik at spillet får mer minne. Trådløs feilsøking må være på.</string>
|
||||
<string name="setup_clear_cached_unpaired">Krever at DroidDeck er paret med trådløs feilsøking (Koble sammen, nedenfor).</string>
|
||||
<string name="setup_memory_hud">Minnevisning</string>
|
||||
<string name="setup_memory_hud_hint">Minne og swap i bruk, på sesjonsskjermen. Avansert fordeler det på spillet, DroidDeck, Android og GPU-en.</string>
|
||||
<string name="setup_memory_hud_simple">Enkel</string>
|
||||
<string name="setup_memory_hud_advanced">Avansert</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">spill %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">Bakgrunnsapper under en sesjon</string>
|
||||
<string name="setup_bg_limit_hint">Mens en sesjon kjører, holder Android høyst så mange apper i hurtiglageret og lukker resten, slik at spillet får minnet deres. DroidDeck setter grensen tilbake slik den var når sesjonen avsluttes. Trådløs feilsøking må være på.</string>
|
||||
<string name="setup_bg_limit_4">Høyst 4</string>
|
||||
|
||||
@@ -2136,6 +2136,7 @@
|
||||
<string name="bottom_qam_layout_left">Links</string>
|
||||
<string name="bottom_qam_layout_center">Midden</string>
|
||||
<string name="bottom_qam_layout_right">Rechts</string>
|
||||
<string name="bottom_qam_layout_split">Gesplitst</string>
|
||||
<string name="bottom_qam_unavailable">Het menu Snelle toegang van Steam is nog niet beschikbaar.</string>
|
||||
<string name="bottom_page_telemetry">In-game statistieken</string>
|
||||
<string name="bottom_hud_group">HUD op het onderste scherm</string>
|
||||
@@ -3804,6 +3805,13 @@
|
||||
<string name="setup_clear_cached">Gecachete apps sluiten voor een sessie</string>
|
||||
<string name="setup_clear_cached_hint">Als een sessie start, sluit DroidDeck de apps die Android op de achtergrond geparkeerd houdt, zodat de game meer geheugen heeft. Draadloos debuggen moet aanstaan.</string>
|
||||
<string name="setup_clear_cached_unpaired">DroidDeck moet gekoppeld zijn met Draadloos debuggen (Koppelen, hieronder).</string>
|
||||
<string name="setup_memory_hud">Geheugenweergave</string>
|
||||
<string name="setup_memory_hud_hint">Gebruikt geheugen en swap, op het sessiescherm. Geavanceerd verdeelt het over de game, DroidDeck, Android en de GPU.</string>
|
||||
<string name="setup_memory_hud_simple">Eenvoudig</string>
|
||||
<string name="setup_memory_hud_advanced">Geavanceerd</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">game %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">Achtergrond-apps tijdens een sessie</string>
|
||||
<string name="setup_bg_limit_hint">Tijdens een sessie houdt Android maximaal dit aantal apps in de cache en sluit de rest, zodat de game hun geheugen krijgt. DroidDeck zet de limiet terug zoals hij was als de sessie eindigt. Draadloos debuggen moet aanstaan.</string>
|
||||
<string name="setup_bg_limit_4">Maximaal 4</string>
|
||||
|
||||
@@ -2186,6 +2186,7 @@
|
||||
<string name="bottom_qam_layout_left">Do lewej</string>
|
||||
<string name="bottom_qam_layout_center">Na środku</string>
|
||||
<string name="bottom_qam_layout_right">Do prawej</string>
|
||||
<string name="bottom_qam_layout_split">Podzielony</string>
|
||||
<string name="bottom_qam_unavailable">Menu szybkiego dostępu Steam nie jest jeszcze dostępne.</string>
|
||||
<string name="bottom_page_telemetry">Statystyki w grze</string>
|
||||
<string name="bottom_hud_group">HUD dolnego ekranu</string>
|
||||
@@ -3880,6 +3881,13 @@
|
||||
<string name="setup_clear_cached">Zamykaj aplikacje z pamięci podręcznej przed sesją</string>
|
||||
<string name="setup_clear_cached_hint">Na początku sesji DroidDeck zamyka aplikacje, które Android trzyma w tle, aby gra miała więcej pamięci. Debugowanie bezprzewodowe musi być włączone.</string>
|
||||
<string name="setup_clear_cached_unpaired">Wymaga sparowania DroidDeck przez Debugowanie bezprzewodowe (Sparuj, poniżej).</string>
|
||||
<string name="setup_memory_hud">Wskaźnik pamięci</string>
|
||||
<string name="setup_memory_hud_hint">Używana pamięć i swap na ekranie sesji. Tryb Zaawansowany dzieli ją na grę, DroidDeck, Androida i GPU.</string>
|
||||
<string name="setup_memory_hud_simple">Prosty</string>
|
||||
<string name="setup_memory_hud_advanced">Zaawansowany</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">gra %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">Aplikacje w tle podczas sesji</string>
|
||||
<string name="setup_bg_limit_hint">W trakcie sesji Android trzyma w pamięci podręcznej najwyżej tyle aplikacji, a resztę zamyka, aby gra dostała ich pamięć. Po zakończeniu sesji DroidDeck przywraca poprzedni limit. Debugowanie bezprzewodowe musi być włączone.</string>
|
||||
<string name="setup_bg_limit_4">Najwyżej 4</string>
|
||||
|
||||
@@ -2167,6 +2167,7 @@
|
||||
<string name="bottom_qam_layout_left">Esquerda</string>
|
||||
<string name="bottom_qam_layout_center">Centro</string>
|
||||
<string name="bottom_qam_layout_right">Direita</string>
|
||||
<string name="bottom_qam_layout_split">Dividido</string>
|
||||
<string name="bottom_qam_unavailable">O menu de acesso rápido do Steam ainda não está disponível.</string>
|
||||
<string name="bottom_page_telemetry">Estatísticas no jogo</string>
|
||||
<string name="bottom_hud_group">HUD do ecrã inferior</string>
|
||||
@@ -3858,6 +3859,13 @@
|
||||
<string name="setup_clear_cached">Fechar apps em cache antes de uma sessão</string>
|
||||
<string name="setup_clear_cached_hint">Quando uma sessão começa, o DroidDeck fecha as apps que o Android mantém em segundo plano, para que o jogo tenha mais memória. A Depuração sem fios tem de estar ativada.</string>
|
||||
<string name="setup_clear_cached_unpaired">É necessário sincronizar o DroidDeck com a Depuração sem fios (Sincronizar, abaixo).</string>
|
||||
<string name="setup_memory_hud">Indicador de memória</string>
|
||||
<string name="setup_memory_hud_hint">Memória e swap em uso, no ecrã da sessão. O modo Avançado divide-a entre o jogo, o DroidDeck, o Android e a GPU.</string>
|
||||
<string name="setup_memory_hud_simple">Simples</string>
|
||||
<string name="setup_memory_hud_advanced">Avançado</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">jogo %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">Apps em segundo plano durante uma sessão</string>
|
||||
<string name="setup_bg_limit_hint">Enquanto uma sessão decorre, o Android mantém em cache no máximo este número de apps e fecha as restantes, para que o jogo fique com a memória delas. O DroidDeck repõe o limite anterior quando a sessão termina. A Depuração sem fios tem de estar ativada.</string>
|
||||
<string name="setup_bg_limit_4">No máximo 4</string>
|
||||
|
||||
@@ -2175,6 +2175,7 @@
|
||||
<string name="bottom_qam_layout_left">Esquerda</string>
|
||||
<string name="bottom_qam_layout_center">Centro</string>
|
||||
<string name="bottom_qam_layout_right">Direita</string>
|
||||
<string name="bottom_qam_layout_split">Dividido</string>
|
||||
<string name="bottom_qam_unavailable">O menu de acesso rápido do Steam ainda não está disponível.</string>
|
||||
<string name="bottom_page_telemetry">Estatísticas no jogo</string>
|
||||
<string name="bottom_hud_group">HUD da tela inferior</string>
|
||||
@@ -3868,6 +3869,13 @@
|
||||
<string name="setup_clear_cached">Fechar apps em cache antes de uma sessão</string>
|
||||
<string name="setup_clear_cached_hint">Quando uma sessão começa, o DroidDeck fecha os apps que o Android mantém em segundo plano, para que o jogo tenha mais memória. A Depuração por Wi-Fi precisa estar ativada.</string>
|
||||
<string name="setup_clear_cached_unpaired">O DroidDeck precisa estar pareado com a Depuração por Wi-Fi (Parear, abaixo).</string>
|
||||
<string name="setup_memory_hud">Indicador de memória</string>
|
||||
<string name="setup_memory_hud_hint">Memória e swap em uso, na tela da sessão. O modo Avançado divide entre o jogo, o DroidDeck, o Android e a GPU.</string>
|
||||
<string name="setup_memory_hud_simple">Simples</string>
|
||||
<string name="setup_memory_hud_advanced">Avançado</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">jogo %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">Apps em segundo plano durante uma sessão</string>
|
||||
<string name="setup_bg_limit_hint">Enquanto uma sessão está em andamento, o Android mantém no máximo esse número de apps em cache e fecha o restante, para que o jogo fique com a memória deles. O DroidDeck restaura o limite anterior quando a sessão termina. A Depuração por Wi-Fi precisa estar ativada.</string>
|
||||
<string name="setup_bg_limit_4">No máximo 4</string>
|
||||
|
||||
@@ -2161,6 +2161,7 @@
|
||||
<string name="bottom_qam_layout_left">Stânga</string>
|
||||
<string name="bottom_qam_layout_center">Centru</string>
|
||||
<string name="bottom_qam_layout_right">Dreapta</string>
|
||||
<string name="bottom_qam_layout_split">Împărțit</string>
|
||||
<string name="bottom_qam_unavailable">Meniul de acces rapid Steam nu este încă disponibil.</string>
|
||||
<string name="bottom_page_telemetry">Statistici în joc</string>
|
||||
<string name="bottom_hud_group">HUD pe ecranul de jos</string>
|
||||
@@ -3845,6 +3846,13 @@
|
||||
<string name="setup_clear_cached">Închide aplicațiile din cache înainte de o sesiune</string>
|
||||
<string name="setup_clear_cached_hint">La pornirea unei sesiuni, DroidDeck închide aplicațiile pe care Android le ține în fundal, ca jocul să aibă mai multă memorie. Depanarea wireless trebuie să fie activată.</string>
|
||||
<string name="setup_clear_cached_unpaired">DroidDeck trebuie asociat prin Depanarea wireless (Asociază, mai jos).</string>
|
||||
<string name="setup_memory_hud">Indicator de memorie</string>
|
||||
<string name="setup_memory_hud_hint">Memoria și swap-ul folosite, pe ecranul sesiunii. Avansat le împarte între joc, DroidDeck, Android și GPU.</string>
|
||||
<string name="setup_memory_hud_simple">Simplu</string>
|
||||
<string name="setup_memory_hud_advanced">Avansat</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">joc %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">Aplicații în fundal în timpul unei sesiuni</string>
|
||||
<string name="setup_bg_limit_hint">Cât timp rulează o sesiune, Android păstrează în cache cel mult atâtea aplicații și le închide pe celelalte, ca jocul să primească memoria lor. DroidDeck readuce limita la valoarea anterioară când se termină sesiunea. Depanarea wireless trebuie să fie activată.</string>
|
||||
<string name="setup_bg_limit_4">Cel mult 4</string>
|
||||
|
||||
@@ -2187,6 +2187,7 @@
|
||||
<string name="bottom_qam_layout_left">Слева</string>
|
||||
<string name="bottom_qam_layout_center">По центру</string>
|
||||
<string name="bottom_qam_layout_right">Справа</string>
|
||||
<string name="bottom_qam_layout_split">Разделённый</string>
|
||||
<string name="bottom_qam_unavailable">Меню быстрого доступа Steam пока недоступно.</string>
|
||||
<string name="bottom_page_telemetry">Игровая статистика</string>
|
||||
<string name="bottom_hud_group">HUD нижнего экрана</string>
|
||||
@@ -3885,6 +3886,13 @@
|
||||
<string name="setup_clear_cached">Закрывать фоновые приложения перед сеансом</string>
|
||||
<string name="setup_clear_cached_hint">При запуске сеанса закрывает приложения, которые Android держит в фоне, чтобы игре досталось больше памяти. Отладка по Wi-Fi должна быть включена.</string>
|
||||
<string name="setup_clear_cached_unpaired">DroidDeck должен быть сопряжён через отладку по Wi-Fi (кнопка «Сопрячь» ниже).</string>
|
||||
<string name="setup_memory_hud">Индикатор памяти</string>
|
||||
<string name="setup_memory_hud_hint">Используемая память и подкачка на экране сеанса. «Дополнительно» показывает отдельно игру, DroidDeck, Android и GPU.</string>
|
||||
<string name="setup_memory_hud_simple">Простой</string>
|
||||
<string name="setup_memory_hud_advanced">Дополнительно</string>
|
||||
<string name="memory_hud_simple">ОЗУ %1$s/%2$s ГБ · подкачка %3$s/%4$s ГБ</string>
|
||||
<string name="memory_hud_split">игра %1$s · DroidDeck %2$s · Android %3$s ГБ</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s ГБ</string>
|
||||
<string name="setup_bg_limit">Фоновые приложения во время сеанса</string>
|
||||
<string name="setup_bg_limit_hint">Пока идёт сеанс, Android хранит в кэше не больше этого числа приложений и закрывает остальные, чтобы их память досталась игре. После сеанса всё возвращается как было. Отладка по Wi-Fi должна быть включена.</string>
|
||||
<string name="setup_bg_limit_4">Не больше 4</string>
|
||||
|
||||
@@ -2136,6 +2136,7 @@
|
||||
<string name="bottom_qam_layout_left">Vänster</string>
|
||||
<string name="bottom_qam_layout_center">Mitten</string>
|
||||
<string name="bottom_qam_layout_right">Höger</string>
|
||||
<string name="bottom_qam_layout_split">Delad</string>
|
||||
<string name="bottom_qam_unavailable">Steams snabbåtkomstmeny är inte tillgänglig än.</string>
|
||||
<string name="bottom_page_telemetry">Statistik i spelet</string>
|
||||
<string name="bottom_hud_group">HUD på nedre skärmen</string>
|
||||
@@ -3805,6 +3806,13 @@
|
||||
<string name="setup_clear_cached">Stäng cachade appar före en session</string>
|
||||
<string name="setup_clear_cached_hint">När en session startar stänger DroidDeck apparna som Android håller parkerade i bakgrunden, så att spelet får mer minne. Trådlös felsökning måste vara på.</string>
|
||||
<string name="setup_clear_cached_unpaired">Kräver att DroidDeck är ihopparat via Trådlös felsökning (Para ihop, nedan).</string>
|
||||
<string name="setup_memory_hud">Minnesvisning</string>
|
||||
<string name="setup_memory_hud_hint">Minne och swap som används, på sessionsskärmen. Avancerat delar upp det på spelet, DroidDeck, Android och GPU:n.</string>
|
||||
<string name="setup_memory_hud_simple">Enkel</string>
|
||||
<string name="setup_memory_hud_advanced">Avancerat</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">spel %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">Bakgrundsappar under en session</string>
|
||||
<string name="setup_bg_limit_hint">Medan en session pågår håller Android högst så här många appar cachade och stänger resten, så att spelet får deras minne. DroidDeck återställer gränsen som den var när sessionen slutar. Trådlös felsökning måste vara på.</string>
|
||||
<string name="setup_bg_limit_4">Högst 4</string>
|
||||
|
||||
@@ -2112,6 +2112,7 @@
|
||||
<string name="bottom_qam_layout_left">ซ้าย</string>
|
||||
<string name="bottom_qam_layout_center">กึ่งกลาง</string>
|
||||
<string name="bottom_qam_layout_right">ขวา</string>
|
||||
<string name="bottom_qam_layout_split">แบ่งหน้าจอ</string>
|
||||
<string name="bottom_qam_unavailable">เมนูเข้าถึงด่วนของ Steam ยังไม่พร้อมใช้งาน</string>
|
||||
<string name="bottom_page_telemetry">สถิติในเกม</string>
|
||||
<string name="bottom_hud_group">HUD หน้าจอล่าง</string>
|
||||
@@ -3776,6 +3777,13 @@
|
||||
<string name="setup_clear_cached">ปิดแอปที่แคชไว้ก่อนเริ่มเซสชัน</string>
|
||||
<string name="setup_clear_cached_hint">เมื่อเซสชันเริ่ม DroidDeck จะปิดแอปที่ Android พักไว้ในพื้นหลัง เพื่อให้เกมมีหน่วยความจำมากขึ้น ต้องเปิด Wireless debugging ไว้</string>
|
||||
<string name="setup_clear_cached_unpaired">ต้องจับคู่ DroidDeck กับ Wireless debugging ก่อน (จับคู่ ด้านล่าง)</string>
|
||||
<string name="setup_memory_hud">การแสดงหน่วยความจำ</string>
|
||||
<string name="setup_memory_hud_hint">หน่วยความจำและ swap ที่ใช้อยู่ บนหน้าจอเซสชัน โหมดขั้นสูงจะแยกเป็นเกม, DroidDeck, Android และ GPU</string>
|
||||
<string name="setup_memory_hud_simple">แบบง่าย</string>
|
||||
<string name="setup_memory_hud_advanced">ขั้นสูง</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">เกม %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">แอปพื้นหลังระหว่างเซสชัน</string>
|
||||
<string name="setup_bg_limit_hint">ระหว่างที่เซสชันทำงาน Android จะเก็บแอปไว้ในแคชไม่เกินจำนวนนี้และปิดแอปที่เหลือ เพื่อให้เกมได้หน่วยความจำของแอปเหล่านั้น DroidDeck จะคืนค่าขีดจำกัดเดิมเมื่อเซสชันสิ้นสุด ต้องเปิด Wireless debugging ไว้</string>
|
||||
<string name="setup_bg_limit_4">ไม่เกิน 4</string>
|
||||
|
||||
@@ -2128,6 +2128,7 @@
|
||||
<string name="bottom_qam_layout_left">Sol</string>
|
||||
<string name="bottom_qam_layout_center">Orta</string>
|
||||
<string name="bottom_qam_layout_right">Sağ</string>
|
||||
<string name="bottom_qam_layout_split">Bölünmüş</string>
|
||||
<string name="bottom_qam_unavailable">Steam Hızlı Erişim menüsü henüz kullanılamıyor.</string>
|
||||
<string name="bottom_page_telemetry">Oyun içi istatistikler</string>
|
||||
<string name="bottom_hud_group">Alt ekrandaki HUD</string>
|
||||
@@ -3803,6 +3804,13 @@
|
||||
<string name="setup_clear_cached">Oturumdan önce önbellekteki uygulamaları kapat</string>
|
||||
<string name="setup_clear_cached_hint">Bir oturum başladığında DroidDeck, Android\'in arka planda tuttuğu uygulamaları kapatır; böylece oyuna daha fazla bellek kalır. Kablosuz hata ayıklama açık olmalıdır.</string>
|
||||
<string name="setup_clear_cached_unpaired">DroidDeck\'in Kablosuz hata ayıklama ile eşlenmesi gerekir (Eşle, aşağıda).</string>
|
||||
<string name="setup_memory_hud">Bellek göstergesi</string>
|
||||
<string name="setup_memory_hud_hint">Oturum ekranında kullanılan bellek ve swap. Gelişmiş, bunu oyun, DroidDeck, Android ve GPU olarak ayırır.</string>
|
||||
<string name="setup_memory_hud_simple">Basit</string>
|
||||
<string name="setup_memory_hud_advanced">Gelişmiş</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">oyun %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">Oturum sırasında arka plan uygulamaları</string>
|
||||
<string name="setup_bg_limit_hint">Oturum sürerken Android önbellekte en fazla bu kadar uygulama tutar ve gerisini kapatır; böylece onların belleği oyuna kalır. Oturum bittiğinde DroidDeck sınırı eski haline getirir. Kablosuz hata ayıklama açık olmalıdır.</string>
|
||||
<string name="setup_bg_limit_4">En fazla 4</string>
|
||||
|
||||
@@ -2186,6 +2186,7 @@
|
||||
<string name="bottom_qam_layout_left">Ліворуч</string>
|
||||
<string name="bottom_qam_layout_center">По центру</string>
|
||||
<string name="bottom_qam_layout_right">Праворуч</string>
|
||||
<string name="bottom_qam_layout_split">Розділений</string>
|
||||
<string name="bottom_qam_unavailable">Меню швидкого доступу Steam ще недоступне.</string>
|
||||
<string name="bottom_page_telemetry">Ігрова статистика</string>
|
||||
<string name="bottom_hud_group">HUD на нижньому екрані</string>
|
||||
@@ -3883,6 +3884,13 @@
|
||||
<string name="setup_clear_cached">Закривати кешовані додатки перед сеансом</string>
|
||||
<string name="setup_clear_cached_hint">Коли починається сеанс, DroidDeck закриває додатки, які Android тримає у фоні, щоб грі дісталося більше пам\'яті. Бездротове налагодження має бути ввімкнене.</string>
|
||||
<string name="setup_clear_cached_unpaired">Потрібно поєднати DroidDeck через бездротове налагодження («Поєднати», нижче).</string>
|
||||
<string name="setup_memory_hud">Показник пам\'яті</string>
|
||||
<string name="setup_memory_hud_hint">Використана пам\'ять і swap на екрані сеансу. «Розширений» розподіляє її між грою, DroidDeck, Android і GPU.</string>
|
||||
<string name="setup_memory_hud_simple">Простий</string>
|
||||
<string name="setup_memory_hud_advanced">Розширений</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">гра %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">Фонові додатки під час сеансу</string>
|
||||
<string name="setup_bg_limit_hint">Під час сеансу Android тримає в кеші не більше ніж стільки додатків і закриває решту, щоб гра отримала їхню пам\'ять. Коли сеанс завершується, DroidDeck повертає попереднє обмеження. Бездротове налагодження має бути ввімкнене.</string>
|
||||
<string name="setup_bg_limit_4">Не більше 4</string>
|
||||
|
||||
@@ -2112,6 +2112,7 @@
|
||||
<string name="bottom_qam_layout_left">Trái</string>
|
||||
<string name="bottom_qam_layout_center">Giữa</string>
|
||||
<string name="bottom_qam_layout_right">Phải</string>
|
||||
<string name="bottom_qam_layout_split">Chia màn hình</string>
|
||||
<string name="bottom_qam_unavailable">Menu Truy cập nhanh của Steam chưa sẵn sàng.</string>
|
||||
<string name="bottom_page_telemetry">Thông số trong game</string>
|
||||
<string name="bottom_hud_group">HUD màn hình dưới</string>
|
||||
@@ -3776,6 +3777,13 @@
|
||||
<string name="setup_clear_cached">Đóng ứng dụng đã lưu đệm trước phiên</string>
|
||||
<string name="setup_clear_cached_hint">Khi phiên bắt đầu, DroidDeck đóng các ứng dụng mà Android giữ ở nền để game có thêm bộ nhớ. Phải bật Gỡ lỗi qua mạng không dây.</string>
|
||||
<string name="setup_clear_cached_unpaired">Cần ghép nối DroidDeck với Gỡ lỗi qua mạng không dây (Ghép nối, bên dưới).</string>
|
||||
<string name="setup_memory_hud">Chỉ báo bộ nhớ</string>
|
||||
<string name="setup_memory_hud_hint">Bộ nhớ và swap đang dùng, trên màn hình phiên. Nâng cao chia theo game, DroidDeck, Android và GPU.</string>
|
||||
<string name="setup_memory_hud_simple">Đơn giản</string>
|
||||
<string name="setup_memory_hud_advanced">Nâng cao</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">game %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">Ứng dụng nền trong phiên</string>
|
||||
<string name="setup_bg_limit_hint">Trong khi phiên chạy, Android chỉ giữ tối đa chừng này ứng dụng trong bộ nhớ đệm và đóng phần còn lại để game có bộ nhớ của chúng. DroidDeck đặt lại giới hạn như cũ khi phiên kết thúc. Phải bật Gỡ lỗi qua mạng không dây.</string>
|
||||
<string name="setup_bg_limit_4">Tối đa 4</string>
|
||||
|
||||
@@ -2189,6 +2189,7 @@
|
||||
<string name="bottom_qam_layout_left">左侧</string>
|
||||
<string name="bottom_qam_layout_center">居中</string>
|
||||
<string name="bottom_qam_layout_right">右侧</string>
|
||||
<string name="bottom_qam_layout_split">分屏</string>
|
||||
<string name="bottom_qam_unavailable">Steam 快速访问菜单暂不可用。</string>
|
||||
<string name="bottom_page_telemetry">游戏内数据</string>
|
||||
<string name="bottom_hud_group">下屏 HUD</string>
|
||||
@@ -3777,6 +3778,13 @@
|
||||
<string name="setup_clear_cached">会话前关闭缓存的应用</string>
|
||||
<string name="setup_clear_cached_hint">会话开始时关闭 Android 留在后台的应用,让游戏有更多内存可用。需要开启无线调试。</string>
|
||||
<string name="setup_clear_cached_unpaired">需要先将 DroidDeck 与无线调试配对(见下方“配对”)。</string>
|
||||
<string name="setup_memory_hud">内存读数</string>
|
||||
<string name="setup_memory_hud_hint">在会话画面上显示已用内存和交换空间。高级模式会分别显示游戏、DroidDeck、Android 和 GPU。</string>
|
||||
<string name="setup_memory_hud_simple">简单</string>
|
||||
<string name="setup_memory_hud_advanced">高级</string>
|
||||
<string name="memory_hud_simple">内存 %1$s/%2$s GB · 交换 %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">游戏 %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">会话期间的后台应用</string>
|
||||
<string name="setup_bg_limit_hint">会话运行期间,Android 最多缓存这么多个应用并关闭其余应用,让游戏使用它们的内存。会话结束后恢复原状。需要开启无线调试。</string>
|
||||
<string name="setup_bg_limit_4">最多 4 个</string>
|
||||
|
||||
@@ -2111,6 +2111,7 @@
|
||||
<string name="bottom_qam_layout_left">左側</string>
|
||||
<string name="bottom_qam_layout_center">置中</string>
|
||||
<string name="bottom_qam_layout_right">右側</string>
|
||||
<string name="bottom_qam_layout_split">分割</string>
|
||||
<string name="bottom_qam_unavailable">Steam 快速存取選單暫時無法使用。</string>
|
||||
<string name="bottom_page_telemetry">遊戲內數據</string>
|
||||
<string name="bottom_hud_group">下方螢幕 HUD</string>
|
||||
@@ -3774,6 +3775,13 @@
|
||||
<string name="setup_clear_cached">工作階段前關閉快取的應用程式</string>
|
||||
<string name="setup_clear_cached_hint">工作階段開始時關閉 Android 留在背景的應用程式,讓遊戲有更多記憶體可用。需要開啟無線偵錯。</string>
|
||||
<string name="setup_clear_cached_unpaired">需要先將 DroidDeck 與無線偵錯配對(見下方「配對」)。</string>
|
||||
<string name="setup_memory_hud">記憶體讀數</string>
|
||||
<string name="setup_memory_hud_hint">在工作階段畫面上顯示已用記憶體和交換空間。進階模式會分別顯示遊戲、DroidDeck、Android 和 GPU。</string>
|
||||
<string name="setup_memory_hud_simple">簡單</string>
|
||||
<string name="setup_memory_hud_advanced">進階</string>
|
||||
<string name="memory_hud_simple">記憶體 %1$s/%2$s GB · 交換 %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">遊戲 %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">工作階段期間的背景應用程式</string>
|
||||
<string name="setup_bg_limit_hint">工作階段執行期間,Android 最多快取這麼多個應用程式並關閉其餘的,讓遊戲使用它們的記憶體。工作階段結束後還原。需要開啟無線偵錯。</string>
|
||||
<string name="setup_bg_limit_4">最多 4 個</string>
|
||||
|
||||
@@ -2111,6 +2111,7 @@
|
||||
<string name="bottom_qam_layout_left">左側</string>
|
||||
<string name="bottom_qam_layout_center">置中</string>
|
||||
<string name="bottom_qam_layout_right">右側</string>
|
||||
<string name="bottom_qam_layout_split">分割</string>
|
||||
<string name="bottom_qam_unavailable">Steam 快速存取選單暫時無法使用。</string>
|
||||
<string name="bottom_page_telemetry">遊戲內數據</string>
|
||||
<string name="bottom_hud_group">下螢幕 HUD</string>
|
||||
@@ -3774,6 +3775,13 @@
|
||||
<string name="setup_clear_cached">工作階段前關閉快取的應用程式</string>
|
||||
<string name="setup_clear_cached_hint">工作階段開始時關閉 Android 留在背景的應用程式,讓遊戲有更多記憶體可用。需要開啟無線偵錯。</string>
|
||||
<string name="setup_clear_cached_unpaired">需要先將 DroidDeck 與無線偵錯配對(見下方「配對」)。</string>
|
||||
<string name="setup_memory_hud">記憶體讀數</string>
|
||||
<string name="setup_memory_hud_hint">在工作階段畫面上顯示已用記憶體和交換空間。進階模式會分別顯示遊戲、DroidDeck、Android 和 GPU。</string>
|
||||
<string name="setup_memory_hud_simple">簡單</string>
|
||||
<string name="setup_memory_hud_advanced">進階</string>
|
||||
<string name="memory_hud_simple">記憶體 %1$s/%2$s GB · 交換 %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">遊戲 %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">工作階段期間的背景應用程式</string>
|
||||
<string name="setup_bg_limit_hint">工作階段執行期間,Android 最多快取這麼多個應用程式並關閉其餘的,讓遊戲使用它們的記憶體。工作階段結束後還原。需要開啟無線偵錯。</string>
|
||||
<string name="setup_bg_limit_4">最多 4 個</string>
|
||||
|
||||
@@ -2419,6 +2419,7 @@
|
||||
<string name="bottom_qam_layout_left">Left</string>
|
||||
<string name="bottom_qam_layout_center">Center</string>
|
||||
<string name="bottom_qam_layout_right">Right</string>
|
||||
<string name="bottom_qam_layout_split">Split</string>
|
||||
<string name="bottom_qam_unavailable">Steam\'s Quick Access menu is not available yet.</string>
|
||||
<string name="bottom_page_telemetry">In-game stats</string>
|
||||
<string name="bottom_hud_group">Bottom screen HUD</string>
|
||||
@@ -4114,6 +4115,13 @@
|
||||
<string name="setup_clear_cached">Clear cached apps before a session</string>
|
||||
<string name="setup_clear_cached_hint">When a session starts, DroidDeck closes the apps Android keeps parked in the background, so the game has more memory. Wireless debugging must be on.</string>
|
||||
<string name="setup_clear_cached_unpaired">Needs DroidDeck paired with Wireless debugging (Pair, below).</string>
|
||||
<string name="setup_memory_hud">Memory readout</string>
|
||||
<string name="setup_memory_hud_hint">Memory and swap in use, on the session screen. Advanced splits it into the game, DroidDeck, Android and the GPU.</string>
|
||||
<string name="setup_memory_hud_simple">Simple</string>
|
||||
<string name="setup_memory_hud_advanced">Advanced</string>
|
||||
<string name="memory_hud_simple">RAM %1$s/%2$s GB · swap %3$s/%4$s GB</string>
|
||||
<string name="memory_hud_split">game %1$s · DroidDeck %2$s · Android %3$s GB</string>
|
||||
<string name="memory_hud_gpu">GPU %1$s GB</string>
|
||||
<string name="setup_bg_limit">Background apps during a session</string>
|
||||
<string name="setup_bg_limit_hint">While a session runs, Android keeps at most this many apps cached and closes the rest, so the game has their memory. DroidDeck puts the limit back as it was when the session ends. Wireless debugging must be on.</string>
|
||||
<string name="setup_bg_limit_4">At most 4</string>
|
||||
|
||||
@@ -20,6 +20,8 @@ class MemoryReadoutTest {
|
||||
val device = MemoryReadout.parseMeminfo(meminfo)!!
|
||||
assertEquals(11379920L - 3235768L, device.usedKb)
|
||||
assertEquals(16777212L - 10358080L, device.swapUsedKb)
|
||||
assertEquals("7.8", MemoryReadout.gb(device.usedKb))
|
||||
assertEquals("10.9", MemoryReadout.gb(device.totalKb))
|
||||
assertEquals(0L, MemoryReadout.parseMeminfo("MemTotal: 100 kB\nMemAvailable: 40 kB\n")!!.swapUsedKb)
|
||||
assertNull(MemoryReadout.parseMeminfo("MemTotal: 100 kB\n"))
|
||||
}
|
||||
|
||||
@@ -48,6 +48,7 @@ class SettingsResetTest {
|
||||
SessionPrefs.setHudShowFps(app, false)
|
||||
SessionPrefs.setHudShowBattery(app, false)
|
||||
SessionPrefs.setHudShowGraph(app, false)
|
||||
SessionPrefs.setHudColor(app, "amber")
|
||||
SessionPrefs.setHudOpacity(app, 40)
|
||||
SessionPrefs.setDroidDeckHudConfig(app, "hudSize=mega,showFPSGraph=0")
|
||||
SessionPrefs.setDroidDeckHudPosition(app, 120f, 40f)
|
||||
@@ -76,6 +77,7 @@ class SettingsResetTest {
|
||||
assertTrue(SessionPrefs.hudShowFps(app))
|
||||
assertTrue(SessionPrefs.hudShowBattery(app))
|
||||
assertTrue(SessionPrefs.hudShowGraph(app))
|
||||
assertEquals(SessionPrefs.HUD_COLOR_MINT, SessionPrefs.hudColor(app))
|
||||
assertEquals(SessionPrefs.HUD_OPACITY_DEFAULT, SessionPrefs.hudOpacity(app))
|
||||
assertNull(SessionPrefs.droidDeckHudConfig(app))
|
||||
assertNull(SessionPrefs.droidDeckHudPosition(app))
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.droiddeck.launcher.session
|
||||
|
||||
import com.droiddeck.launcher.ui.MainMenuLayout
|
||||
import com.droiddeck.launcher.ui.QamFit
|
||||
import com.droiddeck.launcher.ui.QamLayout
|
||||
import org.junit.Assert.assertEquals
|
||||
@@ -51,6 +52,7 @@ class SteamQamTest {
|
||||
val program = "const g = {};\n" + steps.joinToString("\n") { step ->
|
||||
when (step) {
|
||||
is Triple<*, *, *> -> SteamQam.leaseScript(step.first as Boolean, step.second as Long, step.third as Float)
|
||||
is SplitStep -> SteamQam.leaseScript(true, step.owner, 0.5f, step.split)
|
||||
is Pair<*, *> -> if (step.second == EXPIRE) "g.__ddQamUntil = Date.now() - 1;" else SteamQam.leaseScript(step.first as Boolean, step.second as Long)
|
||||
else -> error("unknown step $step")
|
||||
}
|
||||
@@ -85,14 +87,17 @@ class SteamQamTest {
|
||||
|
||||
@Test fun theQuickAccessButtonTogglesTheTopScreenAndTheWideLayoutFollows() {
|
||||
val script = SteamQam.script(true)
|
||||
assertTrue(script.contains("const ours = () => held() && m.m_eOpenSideMenu === QAM && !g.__ddQamTop;"))
|
||||
assertTrue(script.contains("const ours = () => held() && !g.__ddQamTop && (m.m_eOpenSideMenu === QAM || (probing() && m.m_eOpenSideMenu === MAIN));"))
|
||||
assertTrue(script.contains("if (press !== g.__ddQamPress) {"))
|
||||
assertTrue(QamLayout.contentScript(true).contains("max-width: none !important"))
|
||||
assertFalse(QamLayout.contentScript(false).contains("max-width: none"))
|
||||
// The empty in-game button-hint footer is hidden only while the menu is parked, in every layout.
|
||||
assertTrue(QamLayout.contentScript(false, parked = true).contains("#Footer { display: none !important; }"))
|
||||
assertFalse(QamLayout.contentScript(false).contains("#Footer"))
|
||||
}
|
||||
|
||||
@Test fun theMenuIsLaidOutAtThePanelsShapeOnlyWhileHeld() {
|
||||
assertTrue(SteamQam.script(true, 1.5f, owner = 3).contains("g.__ddQamOwner = 3; g.__ddQamUntil = Date.now() + ${SteamQam.LEASE_MS}; g.__ddQamAspect = 1.5; }"))
|
||||
assertTrue(SteamQam.script(true, 1.5f, owner = 3).contains("g.__ddQamOwner = 3; g.__ddQamUntil = Date.now() + ${SteamQam.LEASE_MS}; g.__ddQamAspect = 1.5; g.__ddQamSplit = false; }"))
|
||||
assertFalse(SteamQam.script(true).contains("g.__ddQamAspect ="))
|
||||
assertFalse(SteamQam.script(false, 1.5f).contains("g.__ddQamAspect ="))
|
||||
}
|
||||
@@ -114,8 +119,8 @@ class SteamQamTest {
|
||||
@Test fun whileHeldTheMenuStaysOffTheTopScreenAndOutOfTheGamesWay() {
|
||||
val script = SteamQam.script(true)
|
||||
assertTrue(script.contains("return without >= 2 ? v : 1;"))
|
||||
assertTrue(script.contains("if (w > 0 && ours()) { x = popup.m_popup.innerWidth + 64; w = width(h) || w; }"))
|
||||
assertTrue(script.contains("nav.m_LastActiveNavTree?.m_ID?.startsWith(\"QuickAccess\")"))
|
||||
assertTrue(script.contains("if (w > 0 && ours() && isQam(v)) { x = parkX(); [w, h] = size(w, h); }"))
|
||||
assertTrue(script.contains("/^(QuickAccess|MainMenu)/.test(nav.m_LastActiveNavTree?.m_ID ?? \"\")"))
|
||||
assertTrue(script.contains("if (m.m_eOpenSideMenu === QAM) m.CloseSideMenus();"))
|
||||
}
|
||||
|
||||
@@ -134,8 +139,9 @@ class SteamQamTest {
|
||||
assertEquals(0f, QamLayout.fit(1280f, 832f, 1280f, 640f, 1).second, 0.001f)
|
||||
}
|
||||
|
||||
@Test fun theLayoutButtonCyclesFullLeftCenterRight() {
|
||||
assertEquals(listOf(QamFit.LEFT, QamFit.CENTER, QamFit.RIGHT, QamFit.FULL), QamFit.entries.map { it.next })
|
||||
@Test fun theLayoutButtonCyclesFullLeftCenterRightSplit() {
|
||||
assertEquals(listOf(QamFit.LEFT, QamFit.CENTER, QamFit.RIGHT, QamFit.SPLIT, QamFit.FULL), QamFit.entries.map { it.next })
|
||||
assertEquals(QamFit.SPLIT, QamFit.from("split"))
|
||||
assertEquals(QamFit.FULL, QamFit.from(null))
|
||||
assertEquals(QamFit.RIGHT, QamFit.from("right"))
|
||||
assertEquals(QamFit.FULL, QamFit.from("sideways"))
|
||||
@@ -147,6 +153,61 @@ class SteamQamTest {
|
||||
assertEquals(0f, left, 0.001f)
|
||||
}
|
||||
|
||||
@Test fun findsTheMainMenuPageBesideQuickAccess() {
|
||||
val json = """[
|
||||
{"title":"MainMenu_uid2","webSocketDebuggerUrl":"ws://127.0.0.1:8080/devtools/page/M41N"},
|
||||
{"title":"QuickAccess_uid2","webSocketDebuggerUrl":"ws://127.0.0.1:8080/devtools/page/0F3A-b9"}
|
||||
]"""
|
||||
assertEquals(SteamQam.Target(4321, "/devtools/page/0F3A-b9", "/devtools/page/M41N"), SteamQam.parseTarget(4321, json))
|
||||
assertNull(SteamQam.parseTarget(1, """[{"title":"MainMenu_uid2","webSocketDebuggerUrl":"ws://127.0.0.1:1/devtools/page/A"}]"""))
|
||||
}
|
||||
|
||||
@Test fun theSplitLayoutIsPartOfTheLease() {
|
||||
assertEquals("true", runLease(listOf(SplitStep(1L, true)), "g.__ddQamSplit"))
|
||||
// A rejected hold from an older panel leaves the newer panel's split choice alone.
|
||||
assertEquals("true", runLease(listOf(SplitStep(2L, true), SplitStep(1L, false)), "g.__ddQamSplit"))
|
||||
assertTrue(SteamQam.script(true, 0.5f, owner = 3, split = true).contains("g.__ddQamSplit = true; }"))
|
||||
}
|
||||
|
||||
@Test fun onlyTheQuickAccessViewIsParked() {
|
||||
val script = SteamQam.script(true, 1.3f, owner = 3)
|
||||
// Store and other web pages live in the header's view, which keeps the bounds Steam gives it.
|
||||
assertTrue(script.contains("const isQam = (v) => !v.__ddMain && v !== headerView() &&"))
|
||||
assertTrue(script.contains("if (on && m.m_eOpenSideMenu === QAM && !v.__ddMain && v !== headerView()) {"))
|
||||
assertTrue(script.contains("if (!isQam(v)) {"))
|
||||
// A parked menu leaves the Store page unfrosted.
|
||||
assertTrue(script.contains("inst.__ddQamGlass.call(this, ours() ? 0 : e)"))
|
||||
}
|
||||
|
||||
@Test fun mainMenuDiscoveryRecoversAfterFailedProbes() {
|
||||
val script = SteamQam.script(true, 1.3f, owner = 3, split = true)
|
||||
assertTrue(script.contains("if (split() !== !!g.__ddQamSplitOn) { g.__ddQamSplitOn = split(); if (split()) g.__ddMainProbes = 0; }"))
|
||||
assertTrue(script.contains("if ((g.__ddMainProbes || 0) >= 3 && Date.now() - (g.__ddMainProbeLast || 0) > 30000) g.__ddMainProbes = 0;"))
|
||||
}
|
||||
|
||||
@Test fun theMainMenuStaysInPlaceOnlyWhileParked() {
|
||||
val script = SteamQam.script(true, 0.5f, owner = 3, split = true)
|
||||
assertTrue(script.contains("transform: none !important"))
|
||||
assertTrue(script.contains("mainStyle(!!mv && mainParked() && !probing());"))
|
||||
// Steam sizing the main menu for the top screen drops the parked style at once.
|
||||
assertTrue(script.contains("if (v.__ddMain && w > 0) mainStyle(false);"))
|
||||
}
|
||||
|
||||
@Test fun theScriptsParse() {
|
||||
val node = runCatching { ProcessBuilder("node", "--version").start().waitFor() == 0 }.getOrDefault(false)
|
||||
org.junit.Assume.assumeTrue("node is not installed", node)
|
||||
val scripts = listOf(SteamQam.script(true, 0.5f, 3, split = true), SteamQam.script(false, owner = 3),
|
||||
QamLayout.contentScript(true), MainMenuLayout.CONTENT_SCRIPT)
|
||||
val program = scripts.joinToString(";") { "new Function(" + org.json.JSONObject.quote(it) + ")" }
|
||||
// Passed on stdin: Windows argument quoting would mangle the quotes in the scripts.
|
||||
val p = ProcessBuilder("node").redirectErrorStream(true).start()
|
||||
p.outputStream.use { it.write(program.toByteArray()) }
|
||||
val out = p.inputStream.bufferedReader().readText()
|
||||
assertEquals(out, 0, p.waitFor())
|
||||
}
|
||||
|
||||
private data class SplitStep(val owner: Long, val split: Boolean)
|
||||
|
||||
private companion object {
|
||||
/** A lease step that lets the current lease run out. */
|
||||
const val EXPIRE = -1L
|
||||
|
||||
@@ -258,8 +258,10 @@ and `--rate` (120 samples a second); `--pressure` and tilt take `FROM:TO` ranges
|
||||
`--tilt-x=-30:30` when they start negative. A gesture lasts at most 30 s. `UINPUT_UNAVAILABLE`
|
||||
means the shell has no `uinput` or cannot write `/dev/uinput`, `NO_VIEWPORT` that there is no
|
||||
internal display or it is off, and `UINPUT_FAILED` that `uinput` stopped early; all three exit 3.
|
||||
It needs Android 14 QPR2 or later: the `uinput` of Android 12 to 14 QPR1 takes only numeric codes
|
||||
and the USB or Bluetooth bus, so there the pen ends with `UINPUT_FAILED`.
|
||||
The `uinput` of Android 12 to 14 QPR1 takes only numeric codes, the USB or Bluetooth bus and no
|
||||
`sync` command. Below SDK 34 the pen and the gamepad send that form, with the pen on the USB bus,
|
||||
and success is a clean exit. On SDK 34, which spans both sides of QPR2, the named form goes first
|
||||
and is resent in that form when `uinput` rejects it before registering the device.
|
||||
|
||||
## State (schema 2)
|
||||
|
||||
|
||||
@@ -181,8 +181,10 @@ Plugin loaders expose Steam's CEF DevTools so the menu can be viewed in a deskto
|
||||
- The menu's browser view is placed just outside the Big Picture window through its own `SetBounds`, so it keeps rendering but never shows on top, including while Steam slides it wider for Friends and chat. The view is also given the panel's shape (about 712 × 463 instead of Steam's 856 × 463), so every tab shows at one scale. In Full width, a style on the menu page also lifts Steam's 300 px cap on each tab, so every tab fills the panel and Friends shows its list and chat side by side.
|
||||
- A timer inside Steam keeps this state every 250 ms, so the menu comes back, on the tab it was showing, as soon as Steam's main menu or a full-screen page such as Decky's store closes. It runs on a 5 s lease that the panel renews each second: if the app stops, Steam returns to normal by itself.
|
||||
- The hold starts only once the session is ready: holding the menu before Steam's first frame kept gamescope from presenting anything.
|
||||
- `droiddeck-qam-relay` relays the app to the DevTools port, which only answers clients inside the guest. The panel streams the menu with `Page.startScreencast`, scales its content to the panel and fills the rest with the menu's own background, and forwards touches on the menu with `Input.dispatchTouchEvent`. A layout button in the panel's bar cycles Full width (every tab stretched to the panel), Left, Center and Right (Steam's own narrow tabs, placed on that side); the choice is kept. Returning to the panel shows the last frame at once while the stream reconnects, and the first frame after a cold start takes about 1.4 s.
|
||||
- `droiddeck-qam-relay` relays the app to the DevTools port, which only answers clients inside the guest. The panel streams the menu with `Page.startScreencast`, scales its content to the panel and fills the rest with the menu's own background, and forwards touches on the menu with `Input.dispatchTouchEvent`. A layout button in the panel's bar cycles Full width (every tab stretched to the panel), Left, Center and Right (Steam's own narrow tabs, placed on that side) and Split (below); the choice is kept. Returning to the panel shows the last frame at once while the stream reconnects, and the first frame after a cold start takes about 1.4 s.
|
||||
- The Quick Access button still shows the menu on the top screen, in Steam's own layout and with the controller; closing it there (B or the button again) returns it to the bottom screen on the same tab.
|
||||
- The Split layout puts Steam's main menu (the Steam button's menu) on the left and Quick Access on the right. Both are laid out 480 CSS pixels tall so they show at one scale: the main menu at Steam's own 240 px width with its rows spread over the full height, Quick Access across the rest. Steam keeps one side menu open at a time and slides the other out, so the main menu's view is kept visible, parked beside Quick Access's, and a style on its page holds it in place. Steam's views carry no names: the main menu's is the one Steam focuses while the main menu is open, so after Steam starts the panel opens it once, parked before it is drawn. Taps on either half go to that menu; in a game, the running game's card at the top of the main menu returns to it. The Steam button still shows the main menu on the top screen in Steam's own layout, and closing it returns both menus to the bottom. Checked on the AYN Thor in Big Picture and in Bomb Rush Cyberfunk, with the game keeping focus.
|
||||
- Only Quick Access's own view is parked: the one Steam focuses while Quick Access is open. Store and other web pages live in another view, which keeps the bounds Steam gives it, and Steam's frosted glass over the Store page is left off while the menu is parked rather than over it.
|
||||
- Leaving the panel closes the menu and turns the patches off; the Steam button and the normal Quick Access button then work as before. Opening Steam's main menu replaces the Quick Access menu for as long as it is open, as on a Deck.
|
||||
|
||||
Checked with Decky Loader 3.3.1 enabled: its tab renders and takes touch, and its store opens full screen on top with the controller, then returns to the Decky tab below. Decky hooks the menu after Steam starts, so the panel reopens it once when that happens.
|
||||
@@ -201,6 +203,10 @@ Limits: it relies on Steam's minified UI stores and method names, so a client up
|
||||
| --- | --- |
|
||||
|  |  |
|
||||
|
||||
| Layout: Split | Split, in a game |
|
||||
| --- | --- |
|
||||
|  |  |
|
||||
|
||||
The top screen during that game, with the menu open on the bottom: 
|
||||
|
||||
## Related fixes
|
||||
|
||||
@@ -172,7 +172,7 @@ Register + launch: droiddeck-ubisoft (guest, like droiddeck-battlenet)
|
||||
| U2 | Can the app-side LSX server on 127.0.0.1:3216 be reached from proot + Wine, and do games connect with our registry keys (Maxima #71)? | Spike with a Steam EA title already in the library | EA launch, Steam EA titles |
|
||||
| U3 | What does EA's CDN serve for a current title: one ZIP, multiple, or delta? How do language selection and `installerdata.xml` work? | Maxima `content/` + `downloadUrl.gql`, one real download through the Rust engine | EA install |
|
||||
| U4 | Does Connect accept a tree we downloaded once the `Installs` registry key is written, or does it re-verify or re-download? Does `connect-seed` work under FEX on a phone? | Spike with a small owned title (ubi-cli-mvp used Splinter Cell / product 109). #1445's registry work is the start | Ubisoft stage 2 |
|
||||
| U5 | Does Ubisoft Connect (Qt + CEF) run acceptably under FEX in our prefix? How much RAM does it hold while a game runs? | Install it like Battle.net; measure with the performance HUD's Memory reading | Ubisoft stage 1 |
|
||||
| U5 | Does Ubisoft Connect (Qt + CEF) run acceptably under FEX in our prefix? How much RAM does it hold while a game runs? | Install it like Battle.net; measure with the Memory readout from #979 | Ubisoft stage 1 |
|
||||
| U6 | Ubisoft's WebAuth page in an Android WebView: captcha, 2FA, `Ubi-Challenge` | Real sign-in on device | Ubisoft sign-in |
|
||||
| U7 | Demux over TLS from Android (certificate pinning, patch-version negotiation drift) | Rust spike against `dmx.upc.ubisoft.com` | Ubisoft library and downloads |
|
||||
| U8 | Ubisoft+ subscription entitlements in Demux ownership | Account with Ubisoft+ | Library completeness |
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 288 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 397 KiB |
@@ -21,6 +21,7 @@ Links of the form `droiddeck://settings/<section>` open a Settings section direc
|
||||
| Hold the GPU at its top clock | Settings › Performance (`droiddeck://settings/performance`) | gpu, clock, max |
|
||||
| Clear cached apps before a session | Settings › Performance (`droiddeck://settings/performance`) | memory, ram, crash, sleep, killed |
|
||||
| Background apps during a session | Settings › Performance (`droiddeck://settings/performance`) | memory, ram, background apps |
|
||||
| Memory readout | Settings › Performance (`droiddeck://settings/performance`) | memory, ram, overlay |
|
||||
| Turnip: sysmem rendering | Settings › Performance (`droiddeck://settings/performance`) | |
|
||||
| Skip Steam's xalia helper | Settings › Performance (`droiddeck://settings/performance`) | |
|
||||
| droiddeck-esync | Settings › Performance (`droiddeck://settings/performance`) | esync, sync, wine |
|
||||
|
||||
@@ -71,7 +71,7 @@ both build jobs verify the Arch Linux ARM signature and pinned SHA-256 as for ev
|
||||
The desktop workflow replaces the same-version `kwin_wayland` executable and `libkwin.so`; the rest
|
||||
comes from the signature-checked Arch packages. `desktop-kde.kwin.txt` records the source, patch,
|
||||
executable, library and build package hashes. Corresponding source is
|
||||
https://download.kde.org/stable/plasma/6.8.2/kwin-6.8.2.tar.xz plus the patch in this repository.
|
||||
https://download.kde.org/stable/plasma/6.8.3/kwin-6.8.3.tar.xz plus the patch in this repository.
|
||||
|
||||
The inventories use `.gzip` rather than `.gz`: Android's asset packer expands `.gz` and strips
|
||||
its suffix. The shared local/CI runtime payload check verifies the exact APK names and bytes.
|
||||
|
||||
@@ -6,7 +6,7 @@ here=$(cd "$(dirname "$0")" && pwd)
|
||||
source "$here/kwin.env"
|
||||
source "$here/mesa.env"
|
||||
version=$DESKTOP_KWIN_VERSION
|
||||
source_sha=ea5e68d957c7d70abed97222a592d4445fda29129e20942658badd224ee138b4
|
||||
source_sha=fd5cb783f220ea4526a9afee2f72b582c3e87ef7f91b19bc5c7a6662ffe7fbdc
|
||||
mirror=https://fl.us.mirror.archlinuxarm.org/aarch64
|
||||
builder=68B3537F39A313B3E574D06777193F152BDBE6A6
|
||||
work=$(mktemp -d)
|
||||
|
||||
@@ -1 +1 @@
|
||||
DESKTOP_KWIN_VERSION=6.8.2
|
||||
DESKTOP_KWIN_VERSION=6.8.3
|
||||
@@ -8,8 +8,8 @@ Third-party files in DroidDeck's KDE desktop package (tools/desktop-kde/overlay)
|
||||
- steam.svg: Papirus icon theme (https://github.com/PapirusDevelopmentTeam/papirus-icon-theme),
|
||||
GPL-3.0.
|
||||
|
||||
- kwin_wayland: KWin 6.8.2, GPL-2.0-or-later. Built with DroidDeck's nested desktop scale patch.
|
||||
Corresponding source: https://download.kde.org/stable/plasma/6.8.2/kwin-6.8.2.tar.xz and
|
||||
- kwin_wayland: KWin 6.8.3, GPL-2.0-or-later. Built with DroidDeck's nested desktop scale patch.
|
||||
Corresponding source: https://download.kde.org/stable/plasma/6.8.3/kwin-6.8.3.tar.xz and
|
||||
https://github.com/Droid-Deck/DroidDeck/tree/fix/kde-desktop-followups/tools/desktop-kde/patches
|
||||
(the source and patch hashes are recorded in desktop-kde.kwin.txt beside the package).
|
||||
|
||||
|
||||
+83
-17
@@ -750,13 +750,16 @@ def uinput_commands(samples: list[dict], tool: str, viewport: dict) -> list[dict
|
||||
return {"code": code, "info": {"value": 0, "minimum": low, "maximum": high, "fuzz": 0, "flat": 0, "resolution": 0}}
|
||||
|
||||
commands = [
|
||||
{"id": 1, "command": "register", "name": "DroidDeck agent pen", "bus": "virtual", "configuration": [
|
||||
# The bus comes after the codes: a `uinput` without the virtual bus fails on it with no "Error reading in
|
||||
# object", while symbolic codes read first produce that message and send the script round again as numbers.
|
||||
{"id": 1, "command": "register", "name": "DroidDeck agent pen", "configuration": [
|
||||
{"type": "UI_SET_EVBIT", "data": ["EV_KEY", "EV_ABS"]},
|
||||
{"type": "UI_SET_KEYBIT", "data": ["BTN_TOOL_PEN", "BTN_TOOL_RUBBER", "BTN_TOUCH", "BTN_STYLUS", "BTN_STYLUS2"]},
|
||||
{"type": "UI_SET_ABSBIT", "data": ["ABS_X", "ABS_Y", "ABS_PRESSURE", "ABS_DISTANCE", "ABS_TILT_X", "ABS_TILT_Y"]},
|
||||
{"type": "UI_SET_PROPBIT", "data": ["INPUT_PROP_DIRECT"]},
|
||||
], "abs_info": [axis("ABS_X", 0, width - 1), axis("ABS_Y", 0, height - 1), axis("ABS_PRESSURE", 0, UINPUT_PRESSURE),
|
||||
axis("ABS_DISTANCE", 0, UINPUT_DISTANCE), axis("ABS_TILT_X", -90, 90), axis("ABS_TILT_Y", -90, 90)]},
|
||||
axis("ABS_DISTANCE", 0, UINPUT_DISTANCE), axis("ABS_TILT_X", -90, 90), axis("ABS_TILT_Y", -90, 90)],
|
||||
"bus": "virtual"},
|
||||
{"id": 1, "command": "delay", "duration": UINPUT_REGISTER_MS},
|
||||
]
|
||||
sent = {tool_key: 0, "BTN_TOUCH": 0, "BTN_STYLUS": 0, "BTN_STYLUS2": 0}
|
||||
@@ -792,27 +795,91 @@ def uinput_commands(samples: list[dict], tool: str, viewport: dict) -> list[dict
|
||||
{"id": 1, "command": "sync", "syncToken": UINPUT_SYNC}]
|
||||
|
||||
|
||||
def uinput_check(adb: str, serial: str) -> None:
|
||||
def uinput_check(adb: str, serial: str) -> int:
|
||||
"""Checks the device can inject through `uinput` and returns its SDK level."""
|
||||
probe = run_adb(adb, serial, "shell",
|
||||
"command -v uinput >/dev/null 2>&1 || echo no-uinput; [ -w /dev/uinput ] || echo no-dev-uinput")
|
||||
"command -v uinput >/dev/null 2>&1 || echo no-uinput; [ -w /dev/uinput ] || echo no-dev-uinput; "
|
||||
"echo sdk=$(getprop ro.build.version.sdk)")
|
||||
if probe.returncode != 0:
|
||||
raise ControlError((probe.stdout + probe.stderr).decode(errors="replace").strip() or "adb shell failed", "ADB_FAILED")
|
||||
missing = probe.stdout.decode(errors="replace").split()
|
||||
if "no-uinput" in missing:
|
||||
words = probe.stdout.decode(errors="replace").split()
|
||||
if "no-uinput" in words:
|
||||
raise ControlError("This device's shell has no `uinput` command", "UINPUT_UNAVAILABLE")
|
||||
if "no-dev-uinput" in missing:
|
||||
if "no-dev-uinput" in words:
|
||||
raise ControlError("The ADB shell cannot write /dev/uinput on this device", "UINPUT_UNAVAILABLE")
|
||||
sdk = next((w[4:] for w in words if w.startswith("sdk=")), "")
|
||||
return int(sdk) if sdk.isdigit() else UINPUT_NAMED_SDK
|
||||
|
||||
|
||||
# Android 14 QPR2 taught `uinput` symbolic event names, the `sync` command and the virtual bus. Earlier versions stop at
|
||||
# the register line with "Error reading in object" before any device exists, so their scripts carry Linux's numeric
|
||||
# codes, register on the USB bus and end without `sync`. SDK 34 covers both sides of QPR2, so it is tried named first.
|
||||
UINPUT_NAMED_SDK = 34
|
||||
UINPUT_REJECTED = "Error reading in object"
|
||||
UINPUT_CODES = {
|
||||
"EV_SYN": 0, "EV_KEY": 1, "EV_ABS": 3, "SYN_REPORT": 0, "INPUT_PROP_DIRECT": 1,
|
||||
"BTN_SOUTH": 304, "BTN_EAST": 305, "BTN_NORTH": 307, "BTN_WEST": 308, "BTN_TL": 310, "BTN_TR": 311,
|
||||
"BTN_SELECT": 314, "BTN_START": 315, "BTN_MODE": 316, "BTN_THUMBL": 317, "BTN_THUMBR": 318,
|
||||
"BTN_TOOL_PEN": 320, "BTN_TOOL_RUBBER": 321, "BTN_TOUCH": 330, "BTN_STYLUS": 331, "BTN_STYLUS2": 332,
|
||||
"ABS_X": 0, "ABS_Y": 1, "ABS_RX": 3, "ABS_RY": 4, "ABS_HAT0X": 16, "ABS_HAT0Y": 17,
|
||||
"ABS_PRESSURE": 24, "ABS_DISTANCE": 25, "ABS_TILT_X": 26, "ABS_TILT_Y": 27,
|
||||
}
|
||||
UINPUT_CONFIG_CODES = {"UI_SET_EVBIT": 100, "UI_SET_KEYBIT": 101, "UI_SET_ABSBIT": 103, "UI_SET_PROPBIT": 110}
|
||||
|
||||
|
||||
def uinput_script(commands: list[dict], legacy: bool) -> str:
|
||||
"""The `uinput -` input: as written, or for [legacy] `uinput` numeric, on the USB bus and without `sync`."""
|
||||
if legacy:
|
||||
def code(value):
|
||||
return UINPUT_CODES[value] if isinstance(value, str) else value
|
||||
|
||||
numeric = []
|
||||
for command in commands:
|
||||
if command["command"] == "sync":
|
||||
continue
|
||||
command = dict(command)
|
||||
if command["command"] == "register":
|
||||
if command.get("bus") == "virtual":
|
||||
command["bus"] = "usb"
|
||||
command["configuration"] = [{"type": UINPUT_CONFIG_CODES[c["type"]], "data": [code(d) for d in c["data"]]}
|
||||
for c in command["configuration"]]
|
||||
command["abs_info"] = [dict(a, code=code(a["code"])) for a in command.get("abs_info", [])]
|
||||
elif command["command"] == "inject":
|
||||
command["events"] = [code(e) for e in command["events"]]
|
||||
numeric.append(command)
|
||||
commands = numeric
|
||||
return "".join(json.dumps(command) + "\n" for command in commands)
|
||||
|
||||
|
||||
def uinput_finished(result: subprocess.CompletedProcess, token: str, legacy: bool) -> bool:
|
||||
"""Whether `uinput` ran the whole script: by its sync token, or for [legacy] `uinput` by a clean exit."""
|
||||
out = result.stdout.decode(errors="replace")
|
||||
if not legacy:
|
||||
return token in out
|
||||
text = out + (result.stderr or b"").decode(errors="replace")
|
||||
return result.returncode == 0 and "Error" not in text and "Exception" not in text
|
||||
|
||||
|
||||
def uinput_run(adb: str, serial: str, sdk: int, commands: list[dict], token: str,
|
||||
timeout: float) -> tuple[subprocess.CompletedProcess, bool]:
|
||||
"""Runs [commands] through `uinput -` in the form the device reads; returns the result and whether it finished."""
|
||||
legacy = sdk < UINPUT_NAMED_SDK
|
||||
result = run_adb(adb, serial, "shell", "uinput", "-", stdin=uinput_script(commands, legacy).encode(), timeout=timeout)
|
||||
out = result.stdout.decode(errors="replace")
|
||||
if not legacy and UINPUT_REJECTED in out and token not in out:
|
||||
legacy = True
|
||||
result = run_adb(adb, serial, "shell", "uinput", "-", stdin=uinput_script(commands, legacy).encode(), timeout=timeout)
|
||||
return result, uinput_finished(result, token, legacy)
|
||||
|
||||
|
||||
def pen_uinput(adb: str, serial: str, samples: list[dict], tool: str) -> dict:
|
||||
uinput_check(adb, serial)
|
||||
sdk = uinput_check(adb, serial)
|
||||
viewport = input_viewport(run_adb(adb, serial, "shell", "dumpsys", "input").stdout.decode(errors="replace"))
|
||||
script = "".join(json.dumps(command) + "\n" for command in uinput_commands(samples, tool, viewport))
|
||||
started = time.monotonic()
|
||||
result = run_adb(adb, serial, "shell", "uinput", "-", stdin=script.encode(),
|
||||
timeout=(UINPUT_REGISTER_MS + samples[-1]["t"] + UINPUT_TAIL_MS) / 1000 + 30)
|
||||
result, finished = uinput_run(adb, serial, sdk, uinput_commands(samples, tool, viewport), UINPUT_SYNC,
|
||||
(UINPUT_REGISTER_MS + samples[-1]["t"] + UINPUT_TAIL_MS) / 1000 + 30)
|
||||
elapsed = round((time.monotonic() - started) * 1000)
|
||||
if UINPUT_SYNC not in result.stdout.decode(errors="replace"):
|
||||
if not finished:
|
||||
detail = (result.stderr or result.stdout).decode(errors="replace").strip()[-400:]
|
||||
raise ControlError(f"uinput stopped before the end of the gesture (exit {result.returncode})"
|
||||
+ (f": {detail}" if detail else "") + "; `adb logcat -s UINPUT UinputDevice` tells why",
|
||||
@@ -869,13 +936,12 @@ def gamepad_commands(buttons: list[str], hold: int, gap: int) -> list[dict]:
|
||||
|
||||
def gamepad_uinput(adb: str, serial: str, buttons: list[str], hold: int, gap: int) -> dict:
|
||||
commands = gamepad_commands(buttons, hold, gap)
|
||||
uinput_check(adb, serial)
|
||||
script = "".join(json.dumps(command) + "\n" for command in commands)
|
||||
sdk = uinput_check(adb, serial)
|
||||
started = time.monotonic()
|
||||
result = run_adb(adb, serial, "shell", "uinput", "-", stdin=script.encode(),
|
||||
timeout=(UINPUT_REGISTER_MS + len(buttons) * (hold + gap) + UINPUT_TAIL_MS) / 1000 + 30)
|
||||
result, finished = uinput_run(adb, serial, sdk, commands, GAMEPAD_SYNC,
|
||||
(UINPUT_REGISTER_MS + len(buttons) * (hold + gap) + UINPUT_TAIL_MS) / 1000 + 30)
|
||||
elapsed = round((time.monotonic() - started) * 1000)
|
||||
if GAMEPAD_SYNC not in result.stdout.decode(errors="replace"):
|
||||
if not finished:
|
||||
detail = (result.stderr or result.stdout).decode(errors="replace").strip()[-400:]
|
||||
raise ControlError(f"uinput stopped before the last button (exit {result.returncode})"
|
||||
+ (f": {detail}" if detail else "") + "; `adb logcat -s UINPUT UinputDevice` tells why",
|
||||
|
||||
@@ -21,9 +21,10 @@ library list, before anything is published.
|
||||
trip to Xwayland on the paint thread; with no image, wlserver's position is used as upstream does.
|
||||
- `0101-nested-wayland-cursor-routing.patch` - this app: `gamescope_cursor_composite=2` lets the
|
||||
nested Wayland session paint its cursor in the output using the real X pointer position; client
|
||||
cursor surfaces are cleared to prevent a duplicate at the host pointer, while Gamescope's original
|
||||
default host-cursor fallback is preserved when its no-keyboard-focus policy selects it. Empty
|
||||
client cursor images and Gamescope's hidden flag still suppress the painted cursor.
|
||||
cursor surfaces are cleared to prevent a duplicate at the host pointer, and so is Gamescope's
|
||||
default host-cursor fallback, which would otherwise show a second arrow until Gamescope gets
|
||||
keyboard focus. Empty client cursor images and Gamescope's hidden flag still suppress the
|
||||
painted cursor.
|
||||
- `0110-wayland-backend-touch.patch` - this app: the nested Wayland backend bound only the host's
|
||||
pointer and keyboard, so a finger on the phone's screen never reached Steam. It now binds
|
||||
`wl_touch` too and hands each finger to wlserver's touch path (`wlserver_touchdown` / `motion` /
|
||||
@@ -484,3 +485,14 @@ not wait on fences attached to a dma-buf, so the composite now checks each outpu
|
||||
It picks the next image that is neither held by the host nor still being scanned out. Only when every free image is
|
||||
still on the display does it wait for one, up to 100 ms. On kernels that cannot attach the fence, the host keeps
|
||||
waiting itself and nothing changes. `tools/gamescope/tests/nested-swapchain.cpp` covers the choice and the busy check.
|
||||
|
||||
## 0147 Wayland backend: a forwarded client buffer goes back to its client only after scanout
|
||||
|
||||
When no composite is needed, gamescope hands a client's own buffer to the host compositor as a plane. The host now
|
||||
releases a buffer as soon as the display latches the next one and leaves its release fence on the buffer's dma-buf.
|
||||
gamescope returned the buffer to the client on that release, and a client whose Vulkan driver does not wait on
|
||||
fences attached to a dma-buf then drew into it while the display was still scanning it out, which showed as black
|
||||
tiles in compressed buffers. A forwarded client buffer now stays held until `poll(POLLOUT)` on its dma-buf reports
|
||||
that the display has finished with it, on a waiter thread so nothing else blocks. A release that arrives after the
|
||||
buffer was shown again is dropped, so the later release decides. Composite output images keep the 0146 path, and a
|
||||
host that waits for the fence itself releases buffers that are already idle, so nothing changes there.
|
||||
@@ -74,7 +74,7 @@ index 0000000..d7c21da
|
||||
+
|
||||
+ constexpr bool CursorShouldBeForwardedToHost( int cursorCompositeMode, bool useHostCursorFallback )
|
||||
+ {
|
||||
+ return cursorCompositeMode != 2 || useHostCursorFallback;
|
||||
+ return cursorCompositeMode != 2;
|
||||
+ }
|
||||
+
|
||||
+ constexpr bool CursorImageShouldBePainted( bool imageEmpty, bool cursorHidden )
|
||||
@@ -176,10 +176,10 @@ index 0000000..9c622db
|
||||
+ REQUIRE( CursorShouldBeComposited( 2, false, false, true, false ) );
|
||||
+}
|
||||
+
|
||||
+TEST_CASE("manual composition retains only the no-focus default cursor fallback", "[cursor_routing]")
|
||||
+TEST_CASE("manual composition never forwards a cursor to the host", "[cursor_routing]")
|
||||
+{
|
||||
+ REQUIRE_FALSE( CursorShouldBeForwardedToHost( 2, false ) );
|
||||
+ REQUIRE( CursorShouldBeForwardedToHost( 2, true ) );
|
||||
+ REQUIRE_FALSE( CursorShouldBeForwardedToHost( 2, true ) );
|
||||
+ REQUIRE( CursorShouldBeForwardedToHost( 1, false ) );
|
||||
+ REQUIRE( CursorShouldBeForwardedToHost( 0, false ) );
|
||||
+}
|
||||
|
||||
@@ -0,0 +1,351 @@
|
||||
diff --git a/src/Backends/WaylandBackend.cpp b/src/Backends/WaylandBackend.cpp
|
||||
index 12f0f50..a0fedd4 100644
|
||||
--- a/src/Backends/WaylandBackend.cpp
|
||||
+++ b/src/Backends/WaylandBackend.cpp
|
||||
@@ -3,24 +3,28 @@
|
||||
#include "wlserver.hpp"
|
||||
#include "vblankmanager.hpp"
|
||||
#include "steamcompmgr.hpp"
|
||||
#include "edid.h"
|
||||
#include "Utils/Defer.h"
|
||||
#include "Utils/Algorithm.h"
|
||||
#include "convar.h"
|
||||
#include "refresh_rate.h"
|
||||
#include "waitable.h"
|
||||
#include "Utils/TempFiles.h"
|
||||
#include "Utils/CursorRouting.h"
|
||||
#include "Utils/WaylandScaling.h"
|
||||
+#include "output_image_pick.hpp"
|
||||
+
|
||||
+#include <fcntl.h>
|
||||
+#include <mutex>
|
||||
|
||||
#include <cstring>
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
#include <csignal>
|
||||
#include <sys/mman.h>
|
||||
#include <poll.h>
|
||||
#include <linux/input-event-codes.h>
|
||||
#include <xkbcommon/xkbcommon.h>
|
||||
#include <libdecor.h>
|
||||
|
||||
#include "wlr_begin.hpp"
|
||||
@@ -485,44 +489,82 @@ namespace gamescope
|
||||
|
||||
// One backing plane plus every layer steamcompmgr can hand us.
|
||||
CWaylandPlane m_Planes[k_nMaxLayers + 1];
|
||||
bool m_bVisible = true;
|
||||
std::atomic<bool> m_bDesiredFullscreenState = { false };
|
||||
|
||||
bool m_bHostCompositorIsCurrentlyVRR = false;
|
||||
};
|
||||
|
||||
class CWaylandFb final : public CBaseBackendFb
|
||||
{
|
||||
public:
|
||||
- CWaylandFb( CWaylandBackend *pBackend, wl_buffer *pHostBuffer );
|
||||
+ CWaylandFb( CWaylandBackend *pBackend, wl_buffer *pHostBuffer, int nDmabufFd = -1 );
|
||||
~CWaylandFb();
|
||||
|
||||
void OnCompositorAcquire();
|
||||
void OnCompositorRelease();
|
||||
+ void OnScanoutDone( uint64_t ulAcquireSerial );
|
||||
|
||||
wl_buffer *GetHostBuffer() const { return m_pHostBuffer; }
|
||||
wlr_buffer *GetClientBuffer() const { return m_pClientBuffer; }
|
||||
|
||||
bool HeldByHost() const override { return m_bCompositorAcquired; }
|
||||
|
||||
void Wayland_Buffer_Release( wl_buffer *pBuffer );
|
||||
static const wl_buffer_listener s_BufferListener;
|
||||
|
||||
private:
|
||||
CWaylandBackend *m_pBackend = nullptr;
|
||||
wl_buffer *m_pHostBuffer = nullptr;
|
||||
wlr_buffer *m_pClientBuffer = nullptr;
|
||||
+ int m_nDmabufFd = -1;
|
||||
+ std::mutex m_AcquireMutex;
|
||||
+ uint64_t m_ulAcquireSerial = 0;
|
||||
bool m_bCompositorAcquired = false;
|
||||
};
|
||||
+
|
||||
+ class CWaylandScanoutRelease final : public IWaitable
|
||||
+ {
|
||||
+ public:
|
||||
+ CWaylandScanoutRelease( CWaylandFb *pFb, int nFd, uint64_t ulAcquireSerial )
|
||||
+ : m_pFb{ pFb }
|
||||
+ , m_nFd{ nFd }
|
||||
+ , m_ulAcquireSerial{ ulAcquireSerial }
|
||||
+ {
|
||||
+ }
|
||||
+
|
||||
+ int GetFD() override { return m_nFd; }
|
||||
+ void OnPollOut() override { Finish(); }
|
||||
+ void OnPollHangUp() override { Finish(); }
|
||||
+
|
||||
+ static CAsyncWaiter<> &Waiter()
|
||||
+ {
|
||||
+ static CAsyncWaiter<> s_Waiter{ "gamescope-scanout" };
|
||||
+ return s_Waiter;
|
||||
+ }
|
||||
+
|
||||
+ private:
|
||||
+ void Finish()
|
||||
+ {
|
||||
+ Waiter().RemoveWaitable( this );
|
||||
+ m_pFb->OnScanoutDone( m_ulAcquireSerial );
|
||||
+ close( m_nFd );
|
||||
+ delete this;
|
||||
+ }
|
||||
+
|
||||
+ CWaylandFb *m_pFb;
|
||||
+ int m_nFd;
|
||||
+ uint64_t m_ulAcquireSerial;
|
||||
+ };
|
||||
const wl_buffer_listener CWaylandFb::s_BufferListener =
|
||||
{
|
||||
.release = WAYLAND_USERDATA_TO_THIS( CWaylandFb, Wayland_Buffer_Release ),
|
||||
};
|
||||
|
||||
class CWaylandInputThread
|
||||
{
|
||||
public:
|
||||
CWaylandInputThread();
|
||||
~CWaylandInputThread();
|
||||
|
||||
bool Init( CWaylandBackend *pBackend );
|
||||
@@ -969,73 +1011,108 @@ namespace gamescope
|
||||
.action = WAYLAND_NULL(),
|
||||
};
|
||||
const zwp_primary_selection_source_v1_listener CWaylandBackend::s_PrimarySelectionSourceListener =
|
||||
{
|
||||
.send = WAYLAND_USERDATA_TO_THIS( CWaylandBackend, Wayland_PrimarySelectionSource_Send ),
|
||||
.cancelled = WAYLAND_USERDATA_TO_THIS( CWaylandBackend, Wayland_PrimarySelectionSource_Cancelled ),
|
||||
};
|
||||
|
||||
//////////////////
|
||||
// CWaylandFb
|
||||
//////////////////
|
||||
|
||||
- CWaylandFb::CWaylandFb( CWaylandBackend *pBackend, wl_buffer *pHostBuffer )
|
||||
+ CWaylandFb::CWaylandFb( CWaylandBackend *pBackend, wl_buffer *pHostBuffer, int nDmabufFd )
|
||||
: CBaseBackendFb()
|
||||
, m_pBackend { pBackend }
|
||||
, m_pHostBuffer { pHostBuffer }
|
||||
+ , m_nDmabufFd { nDmabufFd }
|
||||
{
|
||||
wl_buffer_add_listener( pHostBuffer, &s_BufferListener, this );
|
||||
}
|
||||
|
||||
CWaylandFb::~CWaylandFb()
|
||||
{
|
||||
// I own the pHostBuffer.
|
||||
wl_buffer_destroy( m_pHostBuffer );
|
||||
m_pHostBuffer = nullptr;
|
||||
+ if ( m_nDmabufFd >= 0 )
|
||||
+ close( m_nDmabufFd );
|
||||
}
|
||||
|
||||
void CWaylandFb::OnCompositorAcquire()
|
||||
{
|
||||
- // If the compositor has acquired us, track that
|
||||
- // and increment the ref count.
|
||||
- if ( !m_bCompositorAcquired )
|
||||
+ bool bTakeRef = false;
|
||||
{
|
||||
+ std::scoped_lock lock( m_AcquireMutex );
|
||||
+ m_ulAcquireSerial++;
|
||||
+ bTakeRef = !m_bCompositorAcquired;
|
||||
m_bCompositorAcquired = true;
|
||||
- IncRef();
|
||||
}
|
||||
+
|
||||
+ if ( bTakeRef )
|
||||
+ IncRef();
|
||||
}
|
||||
|
||||
void CWaylandFb::OnCompositorRelease()
|
||||
{
|
||||
- // Compositor has released us, decrement rc.
|
||||
- //assert( m_bCompositorAcquired );
|
||||
+ uint64_t ulSerial;
|
||||
+ {
|
||||
+ std::scoped_lock lock( m_AcquireMutex );
|
||||
+ ulSerial = m_ulAcquireSerial;
|
||||
+ }
|
||||
+ OnScanoutDone( ulSerial );
|
||||
+ }
|
||||
|
||||
- if ( m_bCompositorAcquired )
|
||||
+ void CWaylandFb::OnScanoutDone( uint64_t ulAcquireSerial )
|
||||
+ {
|
||||
+ bool bDropRef = false;
|
||||
{
|
||||
+ std::scoped_lock lock( m_AcquireMutex );
|
||||
+ if ( ulAcquireSerial != m_ulAcquireSerial )
|
||||
+ return;
|
||||
+ bDropRef = m_bCompositorAcquired;
|
||||
m_bCompositorAcquired = false;
|
||||
- DecRef();
|
||||
}
|
||||
+
|
||||
+ if ( bDropRef )
|
||||
+ DecRef();
|
||||
else
|
||||
- {
|
||||
xdg_log.errorf( "Compositor released us but we were not acquired. Oh no." );
|
||||
- }
|
||||
}
|
||||
|
||||
void CWaylandFb::Wayland_Buffer_Release( wl_buffer *pBuffer )
|
||||
{
|
||||
assert( m_pHostBuffer );
|
||||
assert( m_pHostBuffer == pBuffer );
|
||||
|
||||
xdg_log.debugf( "buffer_release: %p", pBuffer );
|
||||
|
||||
+ if ( ShowsClientBuffer() && gamescope::DmabufScanoutPending( m_nDmabufFd ) )
|
||||
+ {
|
||||
+ int nFd = fcntl( m_nDmabufFd, F_DUPFD_CLOEXEC, 0 );
|
||||
+ if ( nFd >= 0 )
|
||||
+ {
|
||||
+ uint64_t ulSerial;
|
||||
+ {
|
||||
+ std::scoped_lock lock( m_AcquireMutex );
|
||||
+ ulSerial = m_ulAcquireSerial;
|
||||
+ }
|
||||
+ auto *pWait = new CWaylandScanoutRelease( this, nFd, ulSerial );
|
||||
+ if ( CWaylandScanoutRelease::Waiter().AddWaitable( pWait, EPOLLOUT | EPOLLHUP | EPOLLONESHOT ) )
|
||||
+ return;
|
||||
+ delete pWait;
|
||||
+ close( nFd );
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
OnCompositorRelease();
|
||||
}
|
||||
|
||||
//////////////////
|
||||
// CWaylandConnector
|
||||
//////////////////
|
||||
|
||||
CWaylandConnector::CWaylandConnector( CWaylandBackend *pBackend, uint64_t ulVirtualConnectorKey )
|
||||
: CBaseBackendConnector{ ulVirtualConnectorKey }
|
||||
, m_pBackend( pBackend )
|
||||
, m_Planes{ this, this, this, this, this, this, this, this, this }
|
||||
{
|
||||
@@ -2349,25 +2426,26 @@ namespace gamescope
|
||||
pDmaBuf->format,
|
||||
0u );
|
||||
|
||||
if ( !pImportedBuffer )
|
||||
{
|
||||
xdg_log.errorf( "Failed to import dmabuf" );
|
||||
zwp_linux_buffer_params_v1_destroy( pBufferParams );
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
zwp_linux_buffer_params_v1_destroy( pBufferParams );
|
||||
|
||||
- return new CWaylandFb{ this, pImportedBuffer };
|
||||
+ int nDmabufFd = pDmaBuf->n_planes > 0 ? fcntl( pDmaBuf->fd[0], F_DUPFD_CLOEXEC, 0 ) : -1;
|
||||
+ return new CWaylandFb{ this, pImportedBuffer, nDmabufFd };
|
||||
}
|
||||
|
||||
bool CWaylandBackend::UsesModifiers() const
|
||||
{
|
||||
if ( !cv_wayland_use_modifiers )
|
||||
return false;
|
||||
|
||||
return m_bCanUseModifiers;
|
||||
}
|
||||
std::span<const uint64_t> CWaylandBackend::GetSupportedModifiers( uint32_t uDrmFormat ) const
|
||||
{
|
||||
auto iter = m_FormatModifiers.find( uDrmFormat );
|
||||
diff --git a/src/backend.cpp b/src/backend.cpp
|
||||
index cc91853..ec59c8b 100644
|
||||
--- a/src/backend.cpp
|
||||
+++ b/src/backend.cpp
|
||||
@@ -109,41 +109,47 @@ namespace gamescope
|
||||
wlserver_unlock();
|
||||
}
|
||||
|
||||
// Potentially release now!
|
||||
DecRefPrivate();
|
||||
}
|
||||
|
||||
return uRefCount;
|
||||
}
|
||||
|
||||
void CBaseBackendFb::SetBuffer( wlr_buffer *pClientBuffer )
|
||||
{
|
||||
+ if ( pClientBuffer )
|
||||
+ m_bShowsClientBuffer = true;
|
||||
+
|
||||
if ( m_pClientBuffer == pClientBuffer )
|
||||
return;
|
||||
|
||||
assert( m_pClientBuffer == nullptr );
|
||||
m_pClientBuffer = pClientBuffer;
|
||||
if ( GetRefCount() )
|
||||
{
|
||||
wlserver_lock();
|
||||
wlr_buffer_lock( m_pClientBuffer );
|
||||
wlserver_unlock( false );
|
||||
}
|
||||
|
||||
m_pReleasePoint = nullptr;
|
||||
}
|
||||
|
||||
void CBaseBackendFb::SetReleasePoint( std::shared_ptr<CReleaseTimelinePoint> pReleasePoint )
|
||||
{
|
||||
+ if ( pReleasePoint )
|
||||
+ m_bShowsClientBuffer = true;
|
||||
+
|
||||
if ( m_pReleasePoint == pReleasePoint )
|
||||
return;
|
||||
|
||||
m_pReleasePoint = pReleasePoint;
|
||||
|
||||
if ( m_pClientBuffer && GetRefCount() )
|
||||
{
|
||||
wlserver_lock();
|
||||
wlr_buffer_unlock( m_pClientBuffer );
|
||||
wlserver_unlock();
|
||||
m_pClientBuffer = nullptr;
|
||||
}
|
||||
diff --git a/src/backend.h b/src/backend.h
|
||||
index 30b42ca..9a27711 100644
|
||||
--- a/src/backend.h
|
||||
+++ b/src/backend.h
|
||||
@@ -303,26 +303,29 @@ namespace gamescope
|
||||
public:
|
||||
CBaseBackendFb();
|
||||
virtual ~CBaseBackendFb();
|
||||
|
||||
uint32_t IncRef() override;
|
||||
uint32_t DecRef() override;
|
||||
|
||||
void SetBuffer( wlr_buffer *pClientBuffer ) override;
|
||||
void SetReleasePoint( std::shared_ptr<CReleaseTimelinePoint> pReleasePoint ) override;
|
||||
|
||||
virtual IBackendFb *EnsureImported() override { return this; };
|
||||
|
||||
+ bool ShowsClientBuffer() const { return m_bShowsClientBuffer; }
|
||||
+
|
||||
private:
|
||||
wlr_buffer *m_pClientBuffer = nullptr;
|
||||
+ std::atomic<bool> m_bShowsClientBuffer = { false };
|
||||
std::shared_ptr<CReleaseTimelinePoint> m_pReleasePoint;
|
||||
};
|
||||
|
||||
class IBackend
|
||||
{
|
||||
public:
|
||||
virtual ~IBackend() {}
|
||||
|
||||
virtual bool Init() = 0;
|
||||
virtual bool PostInit() = 0;
|
||||
virtual std::span<const char *const> GetInstanceExtensions() const = 0;
|
||||
virtual std::span<const char *const> GetDeviceExtensions( VkPhysicalDevice pVkPhysicalDevice ) const = 0;
|
||||
@@ -1,3 +1,3 @@
|
||||
GAMESCOPE_REPO=Droid-Deck/DroidDeck-Components
|
||||
GAMESCOPE_TAG=gamescope-3.16.29-f3a45b31
|
||||
GAMESCOPE_SHA256=3908af87b2ee8a328e9780fc805c6a7bddd11d7405b9992d717b94e16c019313
|
||||
GAMESCOPE_TAG=gamescope-3.16.29-cb9c4861
|
||||
GAMESCOPE_SHA256=89a3d70124a13bb5de0b4c67ff75d748a5d7ba6f29590194621754e3550b1f31
|
||||
@@ -984,10 +984,15 @@ def valve_picks(steam_root):
|
||||
return sorted(picks, key=int)
|
||||
|
||||
|
||||
def launch_platforms(entry):
|
||||
return {part.strip() for option in entry.get("launch_options", ())
|
||||
for part in option["oslist"].split(",") if part.strip()}
|
||||
|
||||
|
||||
def tool_platforms(steam_root):
|
||||
entries = appinfo_entries(os.path.join(steam_root, "appcache", "appinfo.vdf"))
|
||||
return {app: entry["oslist"] for app, entry in entries.items()
|
||||
if entry["type"] == "tool" and entry["oslist"] & {"linux", "windows"}}
|
||||
platforms = {app: entry["oslist"] | launch_platforms(entry) for app, entry in entries.items() if entry["type"] == "tool"}
|
||||
return {app: found for app, found in platforms.items() if found & {"linux", "windows"}}
|
||||
|
||||
|
||||
def native_targets(steam_root, apps):
|
||||
@@ -1227,8 +1232,16 @@ def plan_mapping(current, installed, runnable, default, auto, native=None, picks
|
||||
changes["0"] = default
|
||||
for app in sorted((set(current) | installed | picks | set(auto) | set(overrides) | native_choices | set(tools)) - {"0"}, key=app_order):
|
||||
name = current.get(app, "")
|
||||
if app in tools and "linux" in tools[app] and "windows" not in tools[app]:
|
||||
if name and (name.lower() in runnable or "proton" in name.lower()):
|
||||
if app in tools and "linux" in tools[app]:
|
||||
if "windows" not in tools[app]:
|
||||
if name and (name.lower() in runnable or "proton" in name.lower()):
|
||||
changes[app] = None
|
||||
continue
|
||||
if app in overrides:
|
||||
target = overrides[app]
|
||||
if target is not DEFERRED_GAME_TOOL and (target or None) != (name or None):
|
||||
changes[app] = target or None
|
||||
elif name and (name == auto.get(app) or unrunnable(name, runnable) or name.lower() in removed):
|
||||
changes[app] = None
|
||||
continue
|
||||
if app in overrides:
|
||||
|
||||
@@ -59,7 +59,10 @@ FAKE_ADB = textwrap.dedent('''\
|
||||
print(config.get("dumpsys_input", ""))
|
||||
elif args[:3] == ["shell", "uinput", "-"]:
|
||||
entry["stdin"] = sys.stdin.read()
|
||||
if "uinput_stdout" in config:
|
||||
if config.get("uinput_numeric_only") and '"UI_SET_EVBIT"' in entry["stdin"]:
|
||||
print("Error reading in object, ignoring.")
|
||||
entry["denied"] = True
|
||||
elif "uinput_stdout" in config:
|
||||
print(config["uinput_stdout"])
|
||||
else:
|
||||
for line in entry["stdin"].splitlines():
|
||||
|
||||
@@ -86,6 +86,46 @@ class GamepadTest(FakeAdbTest):
|
||||
code, out = self.gamepad("a")
|
||||
self.assertEqual((3, "UINPUT_FAILED"), (code, out["error"]["code"]))
|
||||
|
||||
def test_android_13_gets_numeric_codes_and_no_sync(self):
|
||||
self.configure({}, uinput_probe="sdk=33")
|
||||
code, out = self.gamepad("guide", "down", "--hold", "50", "--gap", "100")
|
||||
self.assertEqual((0, True), (code, out["ok"]))
|
||||
commands = self.script()
|
||||
register = commands[0]
|
||||
bits = {c["type"]: c["data"] for c in register["configuration"]}
|
||||
self.assertEqual([1, 3], bits[100])
|
||||
self.assertIn(316, bits[101])
|
||||
self.assertEqual({0, 1, 3, 4, 16, 17}, set(bits[103]))
|
||||
self.assertEqual(set(bits[103]), {a["code"] for a in register["abs_info"]})
|
||||
injected = [c["events"] for c in commands if c["command"] == "inject"]
|
||||
self.assertEqual([[1, 316, 1, 0, 0, 0], [1, 316, 0, 0, 0, 0], [3, 17, 1, 0, 0, 0], [3, 17, 0, 0, 0, 0]], injected)
|
||||
self.assertEqual([], [c for c in commands if c["command"] == "sync"])
|
||||
self.assertFalse(any(isinstance(v, str) for c in commands for v in c.get("events", [])))
|
||||
|
||||
def test_android_13_uinput_that_rejects_the_script_fails(self):
|
||||
self.configure({}, uinput_probe="sdk=33", uinput_stdout="Error reading in object, ignoring.")
|
||||
code, out = self.gamepad("a")
|
||||
self.assertEqual((3, "UINPUT_FAILED"), (code, out["error"]["code"]))
|
||||
self.assertIn("Error reading in object", out["error"]["message"])
|
||||
|
||||
def test_android_14_before_qpr2_is_retried_with_numeric_codes(self):
|
||||
self.configure({}, uinput_probe="sdk=34", uinput_numeric_only=True)
|
||||
code, out = self.gamepad("guide")
|
||||
self.assertEqual((0, True), (code, out["ok"]))
|
||||
named, numeric = [c for c in self.calls() if c["args"][:3] == ["shell", "uinput", "-"]]
|
||||
self.assertIn('"UI_SET_EVBIT"', named["stdin"])
|
||||
commands = [json.loads(line) for line in numeric["stdin"].splitlines()]
|
||||
self.assertEqual(100, commands[0]["configuration"][0]["type"])
|
||||
self.assertEqual([], [c for c in commands if c["command"] == "sync"])
|
||||
|
||||
def test_android_14_keeps_named_codes_and_sync(self):
|
||||
self.configure({}, uinput_probe="sdk=34")
|
||||
code, _ = self.gamepad("a")
|
||||
self.assertEqual(0, code)
|
||||
commands = self.script()
|
||||
self.assertEqual("UI_SET_EVBIT", commands[0]["configuration"][0]["type"])
|
||||
self.assertEqual("sync", commands[-1]["command"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
@@ -225,6 +225,30 @@ class PenUinputTest(FakeAdbTest):
|
||||
self.assertIn(message, out["error"]["message"])
|
||||
self.assertFalse([c for c in self.calls() if c["args"][:2] == ["shell", "uinput"]])
|
||||
|
||||
def test_android_13_gets_numeric_codes_and_no_sync(self):
|
||||
self.configure({}, dumpsys_input=dumpsys_input(), uinput_probe="sdk=33")
|
||||
code, out = self.pen("tap", "0.5", "0.5")
|
||||
self.assertEqual((0, True), (code, out["ok"]))
|
||||
commands = self.script()
|
||||
bits = {c["type"]: c["data"] for c in commands[0]["configuration"]}
|
||||
# Android 13 has no virtual bus.
|
||||
self.assertEqual("usb", commands[0]["bus"])
|
||||
self.assertEqual({100: [1, 3], 101: [320, 321, 330, 331, 332], 103: [0, 1, 24, 25, 26, 27], 110: [1]}, bits)
|
||||
self.assertEqual({0, 1, 24, 25, 26, 27}, {a["code"] for a in commands[0]["abs_info"]})
|
||||
self.assertEqual([], [c for c in commands if c["command"] == "sync"])
|
||||
self.assertFalse(any(isinstance(v, str) for c in commands for v in c.get("events", [])))
|
||||
|
||||
def test_android_14_before_qpr2_is_retried_with_numeric_codes_on_the_usb_bus(self):
|
||||
self.configure({}, dumpsys_input=dumpsys_input(), uinput_probe="sdk=34", uinput_numeric_only=True)
|
||||
code, out = self.pen("tap", "0.5", "0.5")
|
||||
self.assertEqual((0, True), (code, out["ok"]))
|
||||
named, numeric = [c for c in self.calls() if c["args"][:3] == ["shell", "uinput", "-"]]
|
||||
register = named["stdin"].splitlines()[0]
|
||||
# Its codes are read before the virtual bus, which an older `uinput` rejects without the retry message.
|
||||
self.assertLess(register.index('"configuration"'), register.index('"bus": "virtual"'))
|
||||
commands = [json.loads(line) for line in numeric["stdin"].splitlines()]
|
||||
self.assertEqual(("usb", 100), (commands[0]["bus"], commands[0]["configuration"][0]["type"]))
|
||||
|
||||
def test_uinput_that_stops_early_fails(self):
|
||||
self.configure({}, dumpsys_input=dumpsys_input(), uinput_stdout="")
|
||||
code, out = self.pen("tap", "0.5", "0.5")
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
from pathlib import Path
|
||||
import re
|
||||
import unittest
|
||||
|
||||
SOURCE = Path(__file__).resolve().parents[2] / "app/src/main/cpp/fakeinput_steam.cpp"
|
||||
|
||||
|
||||
def code_only(text):
|
||||
"""The source without its comments and string literals."""
|
||||
text = re.sub(r"/\*.*?\*/", " ", text, flags=re.S)
|
||||
text = re.sub(r"//[^\n]*", " ", text)
|
||||
return re.sub(r'"(?:\\.|[^"\\\n])*"', '""', text)
|
||||
|
||||
|
||||
class FakeinputBionicTest(unittest.TestCase):
|
||||
# DroidDeck-Bionic preloads this library into its Wine processes (tools/bionic-runtime/build.sh). bionic
|
||||
# exports no __chk_fail: a library that names it there cannot be loaded, so no Wine program starts
|
||||
# ("cannot locate symbol "__chk_fail"").
|
||||
def test_glibcs_fortify_failure_is_named_only_off_bionic(self):
|
||||
code = code_only(SOURCE.read_text())
|
||||
guarded = re.compile(r"#if defined\(__BIONIC__\)\n(?P<bionic>.*?)#else\n(?P<glibc>.*?)#endif\n", re.S)
|
||||
blocks = [m for m in guarded.finditer(code) if "__chk_fail" in m.group("glibc")]
|
||||
self.assertTrue(blocks, "the glibc-only __chk_fail is behind #if defined(__BIONIC__) ... #else")
|
||||
for block in blocks:
|
||||
self.assertNotIn("__chk_fail", block.group("bionic"))
|
||||
self.assertNotIn("__chk_fail", guarded.sub("", code))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
@@ -0,0 +1,222 @@
|
||||
from pathlib import Path
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
PATCHES = ROOT / "tools/gamescope/patches"
|
||||
PICK = PATCHES / "0146-composite-waits-for-scanout.patch"
|
||||
FORWARD = PATCHES / "0147-forwarded-buffers-wait-for-scanout.patch"
|
||||
|
||||
|
||||
def post_image(patch, name):
|
||||
out, current = [], None
|
||||
for line in patch.read_text().splitlines():
|
||||
if line.startswith("+++ "):
|
||||
current = line[6:] if line.startswith("+++ b/") else line[4:]
|
||||
continue
|
||||
if current != name or line.startswith("--- ") or line.startswith("@@"):
|
||||
continue
|
||||
if line.startswith("+") or line.startswith(" "):
|
||||
out.append(line[1:])
|
||||
elif line == "":
|
||||
out.append("")
|
||||
return "\n".join(out)
|
||||
|
||||
|
||||
def block(text, start, end="\n }\n"):
|
||||
begin = text.index(start)
|
||||
return text[begin:text.index(end, begin) + len(end)]
|
||||
|
||||
|
||||
PREAMBLE = r'''
|
||||
#include <atomic>
|
||||
#include <cassert>
|
||||
#include <cerrno>
|
||||
#include <cstdint>
|
||||
#include <cstdio>
|
||||
#include <fcntl.h>
|
||||
#include <mutex>
|
||||
#include <poll.h>
|
||||
#include <sys/epoll.h>
|
||||
#include <unistd.h>
|
||||
#include <vector>
|
||||
|
||||
struct wl_buffer {};
|
||||
static struct { void debugf(const char *, ...) {} void errorf(const char *, ...) { ++oh_no; } int oh_no = 0; } xdg_log;
|
||||
namespace droiddeck::frame_trace { enum class Event { OutputRelease }; inline void Record(Event) {} }
|
||||
|
||||
namespace gamescope
|
||||
{
|
||||
PICK
|
||||
|
||||
class IWaitable
|
||||
{
|
||||
public:
|
||||
virtual ~IWaitable() {}
|
||||
virtual int GetFD() { return -1; }
|
||||
virtual void OnPollOut() {}
|
||||
virtual void OnPollHangUp() {}
|
||||
};
|
||||
|
||||
template <typename T = int>
|
||||
class CAsyncWaiter
|
||||
{
|
||||
public:
|
||||
CAsyncWaiter( const char * ) {}
|
||||
bool AddWaitable( IWaitable *p, uint32_t ) { waiting.push_back( p ); return true; }
|
||||
void RemoveWaitable( IWaitable *p ) { std::erase( waiting, p ); }
|
||||
std::vector<IWaitable *> waiting;
|
||||
};
|
||||
|
||||
class CWaylandBackend;
|
||||
|
||||
class CBaseBackendFb
|
||||
{
|
||||
public:
|
||||
uint32_t IncRef() { return refs++; }
|
||||
uint32_t DecRef() { return --refs; }
|
||||
bool ShowsClientBuffer() const { return client; }
|
||||
uint32_t refs = 1;
|
||||
bool client = false;
|
||||
};
|
||||
|
||||
class CWaylandFb final : public CBaseBackendFb
|
||||
{
|
||||
public:
|
||||
CWaylandFb( int nDmabufFd ) : m_pHostBuffer{ &m_Buffer }, m_nDmabufFd{ nDmabufFd } {}
|
||||
void OnCompositorAcquire();
|
||||
void OnCompositorRelease();
|
||||
void OnScanoutDone( uint64_t ulAcquireSerial );
|
||||
void Wayland_Buffer_Release( wl_buffer *pBuffer );
|
||||
wl_buffer m_Buffer;
|
||||
wl_buffer *m_pHostBuffer;
|
||||
int m_nDmabufFd = -1;
|
||||
std::mutex m_AcquireMutex;
|
||||
uint64_t m_ulAcquireSerial = 0;
|
||||
bool m_bCompositorAcquired = false;
|
||||
};
|
||||
|
||||
SCANOUT
|
||||
|
||||
METHODS
|
||||
}
|
||||
'''
|
||||
|
||||
MAIN = r'''
|
||||
using namespace gamescope;
|
||||
|
||||
static CAsyncWaiter<> &waiter() { return CWaylandScanoutRelease::Waiter(); }
|
||||
|
||||
struct Display {
|
||||
int fds[2];
|
||||
Display() { assert( pipe2( fds, O_NONBLOCK ) == 0 ); }
|
||||
~Display() { close( fds[0] ); close( fds[1] ); }
|
||||
void scanning() { char b[4096] = {}; while ( write( fds[1], b, sizeof( b ) ) > 0 ) {} }
|
||||
void done() { char b[4096]; while ( read( fds[0], b, sizeof( b ) ) > 0 ) {} }
|
||||
int fd() { return fds[1]; }
|
||||
};
|
||||
|
||||
static void fire() {
|
||||
assert( waiter().waiting.size() == 1 );
|
||||
waiter().waiting.front()->OnPollOut();
|
||||
assert( waiter().waiting.empty() );
|
||||
}
|
||||
|
||||
int main( int argc, char **argv ) {
|
||||
std::string which = argv[1];
|
||||
Display d;
|
||||
CWaylandFb fb{ fcntl( d.fd(), F_DUPFD_CLOEXEC, 0 ) };
|
||||
if ( which == "client-scanning" ) {
|
||||
fb.client = true;
|
||||
fb.OnCompositorAcquire();
|
||||
assert( fb.refs == 2 );
|
||||
d.scanning();
|
||||
fb.Wayland_Buffer_Release( fb.m_pHostBuffer );
|
||||
assert( fb.refs == 2 && fb.m_bCompositorAcquired );
|
||||
d.done();
|
||||
fire();
|
||||
assert( fb.refs == 1 && !fb.m_bCompositorAcquired && xdg_log.oh_no == 0 );
|
||||
} else if ( which == "client-idle" ) {
|
||||
fb.client = true;
|
||||
fb.OnCompositorAcquire();
|
||||
fb.Wayland_Buffer_Release( fb.m_pHostBuffer );
|
||||
assert( fb.refs == 1 && waiter().waiting.empty() );
|
||||
} else if ( which == "composite-scanning" ) {
|
||||
fb.OnCompositorAcquire();
|
||||
d.scanning();
|
||||
fb.Wayland_Buffer_Release( fb.m_pHostBuffer );
|
||||
assert( fb.refs == 1 && waiter().waiting.empty() );
|
||||
} else if ( which == "shown-again" ) {
|
||||
fb.client = true;
|
||||
fb.OnCompositorAcquire();
|
||||
d.scanning();
|
||||
fb.Wayland_Buffer_Release( fb.m_pHostBuffer );
|
||||
fb.OnCompositorAcquire();
|
||||
d.done();
|
||||
fire();
|
||||
assert( fb.refs == 2 && fb.m_bCompositorAcquired );
|
||||
fb.Wayland_Buffer_Release( fb.m_pHostBuffer );
|
||||
assert( fb.refs == 1 && !fb.m_bCompositorAcquired && xdg_log.oh_no == 0 );
|
||||
} else if ( which == "no-dmabuf" ) {
|
||||
CWaylandFb plain{ -1 };
|
||||
plain.client = true;
|
||||
plain.OnCompositorAcquire();
|
||||
plain.Wayland_Buffer_Release( plain.m_pHostBuffer );
|
||||
assert( plain.refs == 1 && waiter().waiting.empty() );
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
'''
|
||||
|
||||
|
||||
class ForwardedBufferScanoutTest(unittest.TestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
cxx = shutil.which(os.environ.get("CXX", "c++"))
|
||||
if not cxx:
|
||||
raise AssertionError("C++ compiler required")
|
||||
pick = post_image(PICK, "src/output_image_pick.hpp")
|
||||
pick = pick[pick.index("struct OutputImagePick"):pick.rindex("}")]
|
||||
wayland = post_image(FORWARD, "src/Backends/WaylandBackend.cpp")
|
||||
scanout = block(wayland, " class CWaylandScanoutRelease", "\n };\n")
|
||||
methods = "\n".join(block(wayland, " void CWaylandFb::" + name) for name in
|
||||
("OnCompositorAcquire()", "OnCompositorRelease()", "OnScanoutDone(", "Wayland_Buffer_Release("))
|
||||
source = PREAMBLE.replace("PICK", pick).replace("SCANOUT", scanout).replace("METHODS", methods) + MAIN
|
||||
cls.tmp = tempfile.TemporaryDirectory(prefix="droiddeck-forwarded-scanout-")
|
||||
cls.addClassCleanup(cls.tmp.cleanup)
|
||||
probe = Path(cls.tmp.name) / "probe.cpp"
|
||||
probe.write_text(source)
|
||||
cls.binary = probe.with_suffix("")
|
||||
built = subprocess.run([cxx, "-std=c++20", "-Wall", "-Wextra", "-Werror", "-Wno-unused-parameter", "-UNDEBUG",
|
||||
"-include", "string", str(probe), "-o", str(cls.binary)], capture_output=True, text=True)
|
||||
if built.returncode:
|
||||
raise AssertionError(built.stdout + built.stderr)
|
||||
|
||||
def scenario(self, name):
|
||||
result = subprocess.run([str(self.binary), name], capture_output=True, text=True, timeout=10)
|
||||
self.assertEqual(result.returncode, 0, result.stdout + result.stderr)
|
||||
|
||||
def test_forwarded_buffer_is_held_until_scanout_ends(self):
|
||||
self.scenario("client-scanning")
|
||||
|
||||
def test_idle_forwarded_buffer_is_released_at_once(self):
|
||||
self.scenario("client-idle")
|
||||
|
||||
def test_composite_output_image_keeps_the_release_at_latch(self):
|
||||
self.scenario("composite-scanning")
|
||||
|
||||
def test_buffer_shown_again_waits_for_its_next_release(self):
|
||||
self.scenario("shown-again")
|
||||
|
||||
def test_buffer_without_dmabuf_is_released_at_once(self):
|
||||
self.scenario("no-dmabuf")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
@@ -73,6 +73,56 @@ class ToolPlatformsTest(unittest.TestCase):
|
||||
self.assertEqual(auto["900001"], TOOL)
|
||||
self.assertEqual(auto["976730"], TOOL)
|
||||
|
||||
def add_launch_only_linux_tool(self):
|
||||
self.entries[900007] = {"common": {"type": "Tool", "oslist": "windows"}, "config": {"launch": {
|
||||
"0": {"executable": "bin\\win64\\start.exe", "config": {"oslist": "windows"}},
|
||||
"1": {"executable": "bin\\start.sh", "config": {"oslist": "linux", "osarch": "64"}},
|
||||
}}}
|
||||
self.write_appinfo()
|
||||
|
||||
def test_linux_launch_entry_counts_as_a_linux_platform(self):
|
||||
self.add_launch_only_linux_tool()
|
||||
self.assertEqual(self.platforms()["900007"], {"windows", "linux"})
|
||||
self.assertEqual(self.platforms()["900001"], {"windows"})
|
||||
|
||||
def test_tool_with_a_linux_build_is_not_given_proton_before_install(self):
|
||||
self.add_launch_only_linux_tool()
|
||||
changes, auto = self.plan({"0": TOOL})
|
||||
self.assertNotIn("900007", changes)
|
||||
self.assertNotIn("900007", auto)
|
||||
self.assertEqual(changes["900001"], TOOL)
|
||||
|
||||
def test_own_proton_mapping_on_a_tool_with_a_linux_build_is_cleared(self):
|
||||
self.add_launch_only_linux_tool()
|
||||
changes, auto = self.plan({"0": TOOL, "900007": TOOL}, {"900007": TOOL})
|
||||
self.assertIsNone(changes["900007"])
|
||||
self.assertNotIn("900007", auto)
|
||||
|
||||
def test_user_selection_on_a_tool_with_a_linux_build_survives(self):
|
||||
self.add_launch_only_linux_tool()
|
||||
for name in (TOOL, "custom-windows"):
|
||||
with self.subTest(name=name):
|
||||
changes, auto = self.plan({"0": TOOL, "900007": name}, {"976730": TOOL})
|
||||
self.assertNotIn("900007", changes)
|
||||
|
||||
def test_stale_tool_on_a_tool_with_a_linux_build_is_cleared(self):
|
||||
self.add_launch_only_linux_tool()
|
||||
for name, removed in (("GE-Proton11-7", ("GE-Proton11-7",)), ("proton_9", ())):
|
||||
with self.subTest(name=name):
|
||||
changes, auto = self.plan({"0": TOOL, "900007": name}, removed=removed)
|
||||
self.assertIsNone(changes["900007"])
|
||||
self.assertNotIn("900007", auto)
|
||||
|
||||
def test_explicit_request_on_a_tool_with_a_linux_build_is_applied(self):
|
||||
self.add_launch_only_linux_tool()
|
||||
changes, auto = self.plan({"0": TOOL}, overrides={"900007": TOOL})
|
||||
self.assertEqual(changes["900007"], TOOL)
|
||||
changes, auto = self.plan({"0": TOOL, "900007": TOOL}, overrides={"900007": None})
|
||||
self.assertIsNone(changes["900007"])
|
||||
changes, auto = self.plan({"0": TOOL, "900007": TOOL}, overrides={"900007": TOOL})
|
||||
self.assertNotIn("900007", changes)
|
||||
self.assertNotIn("900007", auto)
|
||||
|
||||
def test_removed_ge_proton_is_cleared_with_or_without_saved_ownership(self):
|
||||
for saved in ({}, {"1826330": "GE-Proton11-7"}):
|
||||
with self.subTest(saved=saved):
|
||||
|
||||
@@ -35,13 +35,21 @@ STRUCT
|
||||
static struct wl_list g_bufs;
|
||||
static struct wl_event_loop *g_loop;
|
||||
static int g_import_failed_logged;
|
||||
static int import_ok, imports, imported_flags, deferred_releases, frees, sources;
|
||||
static struct wl_event_source g_source;
|
||||
static int import_ok, imports, imported_flags, deferred_releases, frees, sources, removes, merge_ok, merges;
|
||||
static struct wl_event_source g_sources[4];
|
||||
static struct wl_event_source *g_removed;
|
||||
void wl_list_init(struct wl_list *l) { l->prev = l; l->next = l; }
|
||||
void wl_list_insert(struct wl_list *l, struct wl_list *e) {
|
||||
e->next = l->next; e->prev = l; l->next->prev = e; l->next = e;
|
||||
}
|
||||
static int fake_ioctl(int fd, unsigned long req, void *arg) {
|
||||
if (req == SYNC_IOC_MERGE) {
|
||||
struct sync_merge_data *m = arg;
|
||||
assert(fd >= 0 && m->fd2 >= 0 && fd != m->fd2);
|
||||
++merges;
|
||||
if (!merge_ok) { errno = ENOTTY; return -1; }
|
||||
m->fence = dup(m->fd2); return 0;
|
||||
}
|
||||
struct droiddeck_dma_buf_sync_file *f = arg;
|
||||
(void)fd;
|
||||
assert(req == DROIDDECK_DMA_BUF_IOCTL_IMPORT_SYNC_FILE);
|
||||
@@ -54,13 +62,17 @@ static int droiddeck_dmabuf_fd(struct dmabuf_buffer *b) { return b->fd; }
|
||||
static void droiddeck_log(const char *tag, const char *fmt, ...) { (void)tag; (void)fmt; }
|
||||
static struct wl_event_source *wl_event_loop_add_fd(struct wl_event_loop *l, int fd, uint32_t m,
|
||||
int (*cb)(int, uint32_t, void *), void *d) {
|
||||
(void)l; (void)fd; (void)m; (void)cb; (void)d; ++sources; return &g_source;
|
||||
(void)l; (void)fd; (void)m; (void)cb; (void)d; return &g_sources[sources++];
|
||||
}
|
||||
static void wl_event_source_remove(struct wl_event_source *s) { assert(s); ++removes; g_removed = s; }
|
||||
static int on_fence_readable(int fd, uint32_t mask, void *data) { (void)fd; (void)mask; (void)data; return 0; }
|
||||
static void send_deferred_release(struct ahb_buf *ab) { ++deferred_releases; ab->release_pending = 0; }
|
||||
static void maybe_free(struct ahb_buf *ab) { (void)ab; ++frees; }
|
||||
FUNCTIONS
|
||||
static void reset(void) { import_ok = imports = imported_flags = deferred_releases = frees = sources = 0; }
|
||||
static void reset(void) {
|
||||
import_ok = imports = imported_flags = deferred_releases = frees = sources = removes = merge_ok = merges = 0;
|
||||
g_removed = NULL;
|
||||
}
|
||||
static void run(int display, int can_import, int fence_signalled) {
|
||||
reset();
|
||||
wl_list_init(&g_bufs);
|
||||
@@ -78,12 +90,48 @@ static void run(int display, int can_import, int fence_signalled) {
|
||||
assert(deferred_releases == 1 && frees == 1 && !ab.fence_src && ab.fence_fd == -1);
|
||||
errno = 0; assert(fcntl(fds[0], F_GETFD) == -1 && errno == EBADF);
|
||||
} else {
|
||||
assert(deferred_releases == 0 && sources == 1 && ab.fence_src == &g_source && ab.fence_fd == fds[0]);
|
||||
assert(deferred_releases == 0 && sources == 1 && ab.fence_src == &g_sources[0] && ab.fence_fd == fds[0]);
|
||||
close(fds[0]);
|
||||
}
|
||||
close(fds[1]);
|
||||
}
|
||||
static int closed(int fd) { errno = 0; return fcntl(fd, F_GETFD) == -1 && errno == EBADF; }
|
||||
static void rerelease(int can_merge, int second_import, int second_signalled) {
|
||||
reset();
|
||||
wl_list_init(&g_bufs);
|
||||
struct dmabuf_buffer b = {.fd = 7};
|
||||
struct ahb_buf ab;
|
||||
memset(&ab, 0, sizeof(ab));
|
||||
ab.id = 42; ab.b = &b; ab.on_layer = 1; ab.release_pending = 1; ab.fence_fd = -1;
|
||||
wl_list_insert(&g_bufs, &ab.link);
|
||||
int first[2], second[2];
|
||||
assert(pipe(first) == 0 && pipe(second) == 0);
|
||||
handle_released(42, first[0]);
|
||||
assert(ab.fence_src == &g_sources[0] && ab.fence_fd == first[0] && deferred_releases == 0);
|
||||
ab.on_layer = 1;
|
||||
if (second_signalled) assert(write(second[1], "x", 1) == 1);
|
||||
import_ok = second_import; merge_ok = can_merge;
|
||||
handle_released(42, second[0]);
|
||||
assert(!ab.on_layer && deferred_releases == 0 && frees == 0);
|
||||
if (second_import || second_signalled) {
|
||||
assert(removes == 0 && merges == 0 && sources == 1 && ab.fence_src == &g_sources[0] && ab.fence_fd == first[0]);
|
||||
assert(closed(second[0]));
|
||||
close(first[0]);
|
||||
} else {
|
||||
assert(merges == 1 && removes == 1 && g_removed == &g_sources[0]);
|
||||
assert(sources == 2 && ab.fence_src == &g_sources[1] && ab.fence_fd >= 0);
|
||||
assert(closed(first[0]));
|
||||
if (can_merge) assert(closed(second[0]) && ab.fence_fd != second[0]);
|
||||
else assert(ab.fence_fd == second[0]);
|
||||
close(ab.fence_fd);
|
||||
}
|
||||
close(first[1]); close(second[1]);
|
||||
}
|
||||
int main(int argc, char **argv) {
|
||||
if (argc == 5 && !strcmp(argv[1], "rerelease")) {
|
||||
rerelease(atoi(argv[2]), atoi(argv[3]), atoi(argv[4]));
|
||||
return 0;
|
||||
}
|
||||
assert(argc == 4);
|
||||
run(atoi(argv[1]), atoi(argv[2]), atoi(argv[3]));
|
||||
return 0;
|
||||
@@ -103,7 +151,7 @@ class ZeroCopyReleaseAtLatchTest(unittest.TestCase):
|
||||
ahb, re.M))
|
||||
struct = re.search(r'struct ahb_buf \{.*?\n\};', ahb, re.S).group()
|
||||
functions = '\n'.join(function(ahb, n) for n in ('find_buf', 'handle_released'))
|
||||
source = HARNESS.replace('DEFINES', '#include <fcntl.h>\n#include <sys/ioctl.h>\n' + defines)
|
||||
source = HARNESS.replace('DEFINES', '#include <fcntl.h>\n#include <linux/sync_file.h>\n#include <sys/ioctl.h>\n' + defines)
|
||||
source = source.replace('STRUCT', struct).replace('FUNCTIONS', functions)
|
||||
cls.tmp = tempfile.TemporaryDirectory(prefix='droiddeck-release-latch-')
|
||||
cls.addClassCleanup(cls.tmp.cleanup)
|
||||
@@ -136,6 +184,23 @@ class ZeroCopyReleaseAtLatchTest(unittest.TestCase):
|
||||
def test_signalled_fence_releases_without_waiting(self):
|
||||
self.scenario(1, 0, 1)
|
||||
|
||||
def rerelease(self, can_merge, second_import, second_signalled):
|
||||
result = subprocess.run([str(self.binary), 'rerelease', str(can_merge), str(second_import), str(second_signalled)],
|
||||
capture_output=True, text=True, timeout=10)
|
||||
self.assertEqual(result.returncode, 0, result.stdout + result.stderr)
|
||||
|
||||
def test_second_unsignalled_fence_merges_into_the_pending_wait(self):
|
||||
self.rerelease(1, 0, 0)
|
||||
|
||||
def test_second_unsignalled_fence_replaces_the_wait_when_merge_fails(self):
|
||||
self.rerelease(0, 0, 0)
|
||||
|
||||
def test_second_imported_fence_keeps_the_pending_wait(self):
|
||||
self.rerelease(1, 1, 0)
|
||||
|
||||
def test_second_signalled_fence_keeps_the_pending_wait(self):
|
||||
self.rerelease(1, 0, 1)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user