mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 20:45:43 +00:00
Compare commits
26
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b49901be34 | ||
|
|
caae385924 | ||
|
|
c54cadacde | ||
|
|
6da10cf986 | ||
|
|
b37bc316bb | ||
|
|
eaa64597e0 | ||
|
|
9d7821f120 | ||
|
|
c72316f5a7 | ||
|
|
b0f459607d | ||
|
|
374aa6d68c | ||
|
|
68940c862b | ||
|
|
6a6bab812f | ||
|
|
0b7d7aa634 | ||
|
|
b63a72affb | ||
|
|
b9f149b3c9 | ||
|
|
8d34be4b0d | ||
|
|
e595792dd7 | ||
|
|
8a27ea841c | ||
|
|
872c5e1834 | ||
|
|
2d25fb91c5 | ||
|
|
56213d74b3 | ||
|
|
9c6fafec4c | ||
|
|
f06c37e279 | ||
|
|
b072cedd16 | ||
|
|
77fffa7592 | ||
|
|
de3ed8b986 |
No files matched your search
@@ -68,6 +68,7 @@ DroidDeck is [GPL-3.0](LICENSE). Steam and Proton belong to Valve Corporation. V
|
||||
- Runtime, shim, input and controller work build on WinNative and Bannerlator by maxjivi05.
|
||||
- mmap ring buffer controller input by ribbit384 ([WinNative #345](https://github.com/WinNative-Emu/WinNative/pull/345)).
|
||||
- [FEX](https://github.com/FEX-Emu/FEX) (MIT) runs x86 code. DroidDeck's build puts the platform name under `AT_PLATFORM` so [sharun](https://github.com/VHSgunzo/sharun) AppImages by VHSgunzo (MIT) start through its [userland-execve](https://crates.io/crates/userland-execve) loader (MIT), and its GL thunk hands X errors to the program's own error handler. FEX's code disk cache was checked in its source. The fix for host stack left behind when a program leaves a signal handler without returning follows the approach suggested in [FEX-Emu/FEX#2487](https://github.com/FEX-Emu/FEX/issues/2487). The host stack fix for system calls that end a block is a backport of Ryan Houdek's [FEX-Emu/FEX#6122](https://github.com/FEX-Emu/FEX/pull/6122).
|
||||
- Anti-cheat support under FEX is the work of [StonkGuy](https://github.com/StonkGuy): the x86-64 ptrace, seccomp and `/proc` emulation from his [FEX fork](https://github.com/StonkGuy/FEX) (`eac-2611` branch, MIT) is carried as build patch 0021 with his authorship, patches 0022 to 0029 build on it, and his `eac-tests` regression suite verifies them.
|
||||
- x86-64 programs on Wayland reach the GPU through FEX's Wayland client, wayland-egl and EGL thunks. The guest `wl_list` and `wl_array` helpers follow [libwayland](https://gitlab.freedesktop.org/wayland/wayland)'s `src/wayland-util.c` (MIT). The EGL extension table comes from the [Khronos EGL registry](https://github.com/KhronosGroup/EGL-Registry) (Apache-2.0) and Mesa's `egl_other.xml` (MIT).
|
||||
- x86 AppImages, and arm64 ones whose runtime can't unpack on Android, are unpacked with [uruntime](https://github.com/VHSgunzo/uruntime) by VHSgunzo (MIT), shipped unmodified with its licence.
|
||||
- DwarFS AppImages are unpacked without proot by `dwarfsextract` from [DwarFS](https://github.com/mhx/dwarfs) by Marcus Holland-Moritz (MIT), the release binary uruntime embeds, taken out of its self-extracting wrapper and shipped with its licence.
|
||||
|
||||
@@ -40,6 +40,8 @@
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||||
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
|
||||
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
|
||||
<uses-permission android:name="android.permission.READ_MEDIA_VISUAL_USER_SELECTED" />
|
||||
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||
<uses-permission android:name="android.permission.HIGH_SAMPLING_RATE_SENSORS" />
|
||||
|
||||
@@ -329,16 +329,28 @@ static constexpr int kWatchedFds = 1 << 16;
|
||||
static constexpr int kWatchedBits = sizeof(unsigned long) * 8;
|
||||
static std::atomic<unsigned long> watched_fds[kWatchedFds / kWatchedBits];
|
||||
static std::atomic<bool> watched_beyond{false};
|
||||
static std::atomic<int> watched_count{0};
|
||||
|
||||
static void watch_fd(int fd) {
|
||||
if (fd < 0) return;
|
||||
if (fd >= kWatchedFds) watched_beyond.store(true, std::memory_order_release);
|
||||
else watched_fds[fd / kWatchedBits].fetch_or(1UL << (fd % kWatchedBits), std::memory_order_release);
|
||||
if (fd >= kWatchedFds) {
|
||||
watched_beyond.store(true, std::memory_order_release);
|
||||
return;
|
||||
}
|
||||
const unsigned long bit = 1UL << (fd % kWatchedBits);
|
||||
if (!(watched_fds[fd / kWatchedBits].fetch_or(bit, std::memory_order_acq_rel) & bit))
|
||||
watched_count.fetch_add(1, std::memory_order_acq_rel);
|
||||
}
|
||||
|
||||
static void unwatch_fd(int fd) {
|
||||
if (fd >= 0 && fd < kWatchedFds)
|
||||
watched_fds[fd / kWatchedBits].fetch_and(~(1UL << (fd % kWatchedBits)), std::memory_order_release);
|
||||
if (fd < 0 || fd >= kWatchedFds) return;
|
||||
const unsigned long bit = 1UL << (fd % kWatchedBits);
|
||||
if (watched_fds[fd / kWatchedBits].fetch_and(~bit, std::memory_order_acq_rel) & bit)
|
||||
watched_count.fetch_sub(1, std::memory_order_acq_rel);
|
||||
}
|
||||
|
||||
static bool any_watched() {
|
||||
return watched_count.load(std::memory_order_acquire) > 0 || watched_beyond.load(std::memory_order_acquire);
|
||||
}
|
||||
|
||||
static bool watched(int fd) {
|
||||
@@ -4269,7 +4281,7 @@ static int poll_fake(struct pollfd *fds, nfds_t nfds, int timeout,
|
||||
const auto my_poll = next_symbol<decltype(&::poll)>(Next::poll);
|
||||
const auto my_ppoll = next_symbol<decltype(&::ppoll)>(Next::ppoll);
|
||||
|
||||
nfds_t first = 0;
|
||||
nfds_t first = any_watched() ? 0 : nfds;
|
||||
while (first < nfds && !watched(fds[first].fd)) first++;
|
||||
bool has_fake_fds = false;
|
||||
std::vector<struct pollfd> real_fds;
|
||||
@@ -4372,12 +4384,12 @@ EXPORT int poll(struct pollfd *fds, nfds_t nfds, int timeout) {
|
||||
EXPORT int ppoll(struct pollfd *fds, nfds_t nfds,
|
||||
const struct timespec *timeout, const sigset_t *sigmask) {
|
||||
const auto my_ppoll = next_symbol<decltype(&::ppoll)>(Next::ppoll);
|
||||
if (timeout && (timeout->tv_sec < 0 || timeout->tv_nsec < 0 || timeout->tv_nsec >= 1000000000L)) {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
for (nfds_t i = 0; i < nfds; ++i) {
|
||||
for (nfds_t i = 0; any_watched() && i < nfds; ++i) {
|
||||
if (!is_fake_input_fd(fds[i].fd)) continue;
|
||||
if (timeout && (timeout->tv_sec < 0 || timeout->tv_nsec < 0 || timeout->tv_nsec >= 1000000000L)) {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
if (!sigmask)
|
||||
return poll_fake(fds, nfds, static_cast<int>(timespec_to_ms(timeout)), nullptr);
|
||||
sigset_t all_signals, original_mask;
|
||||
@@ -4410,6 +4422,8 @@ EXPORT int __ppoll_chk(struct pollfd *fds, nfds_t nfds, const struct timespec *t
|
||||
EXPORT int select(int nfds, fd_set *readfds, fd_set *writefds,
|
||||
fd_set *exceptfds, struct timeval *timeout) {
|
||||
const auto my_select = next_symbol<decltype(&::select)>(Next::select);
|
||||
if (!any_watched())
|
||||
return my_select ? my_select(nfds, readfds, writefds, exceptfds, timeout) : -1;
|
||||
|
||||
fd_set original_readfds;
|
||||
fd_set original_writefds;
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -124,3 +124,33 @@ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
SMAA (Enhanced Subpixel Morphological Antialiasing)
|
||||
---------------------------------------------------
|
||||
SMAA.hlsl and the lookup tables in smaa_tables.h are from the authors' reference
|
||||
implementation (github.com/iryoku/smaa).
|
||||
|
||||
Copyright (C) 2013 Jorge Jimenez (jorge@iryoku.com)
|
||||
Copyright (C) 2013 Jose I. Echevarria (joseignacioechevarria@gmail.com)
|
||||
Copyright (C) 2013 Belen Masia (bmasia@unizar.es)
|
||||
Copyright (C) 2013 Fernando Navarro (fernandn@microsoft.com)
|
||||
Copyright (C) 2013 Diego Gutierrez (diegog@unizar.es)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software. As clarification, there is no
|
||||
requirement that the copyright notice and permission be included in binary
|
||||
distributions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
@@ -1,4 +1,5 @@
|
||||
#version 450
|
||||
#extension GL_GOOGLE_include_directive : require
|
||||
|
||||
layout(location = 0) in vec2 fragTexCoord;
|
||||
layout(location = 0) out vec4 outColor;
|
||||
@@ -6,25 +7,16 @@ layout(set = 0, binding = 0) uniform sampler2D InputTexture;
|
||||
layout(set = 1, binding = 0) uniform sampler2D WeightTexture;
|
||||
layout(push_constant) uniform Constants {
|
||||
vec4 ndc;
|
||||
vec2 resolution;
|
||||
float extra;
|
||||
float pad;
|
||||
vec4 metrics; // 1/width, 1/height, width, height
|
||||
} pc;
|
||||
|
||||
#define SMAA_RT_METRICS pc.metrics
|
||||
#define SMAA_GLSL_4
|
||||
#define SMAA_PRESET_HIGH
|
||||
#include "SMAA.hlsl"
|
||||
|
||||
void main() {
|
||||
vec2 px = 1.0 / max(pc.resolution, vec2(1.0));
|
||||
vec2 uv = clamp(fragTexCoord, px * 0.5, vec2(1.0) - px * 0.5);
|
||||
vec4 center = texture(InputTexture, uv);
|
||||
vec4 weights = texture(WeightTexture, uv);
|
||||
float weight = clamp(weights.r, 0.0, 0.42);
|
||||
|
||||
if (weight <= 0.001) {
|
||||
outColor = center;
|
||||
return;
|
||||
}
|
||||
|
||||
vec2 normal = weights.gb * 2.0 - 1.0;
|
||||
vec2 acrossUv = clamp(uv + normal * px, px * 0.5, vec2(1.0) - px * 0.5);
|
||||
vec3 across = texture(InputTexture, acrossUv).rgb;
|
||||
outColor = vec4(mix(center.rgb, across, weight), center.a);
|
||||
vec4 offset;
|
||||
SMAANeighborhoodBlendingVS(fragTexCoord, offset);
|
||||
outColor = SMAANeighborhoodBlendingPS(fragTexCoord, offset, InputTexture, WeightTexture);
|
||||
}
|
||||
@@ -1,88 +1,204 @@
|
||||
// 1116.3.0
|
||||
// 1116.6.0
|
||||
#pragma once
|
||||
const uint32_t smaa_blend_code[] = {
|
||||
0x07230203,0x00010000,0x0008000b,0x0000006b,0x00000000,0x00020011,0x00000001,0x0006000b,
|
||||
0x07230203,0x00010000,0x0008000b,0x000000f8,0x00000000,0x00020011,0x00000001,0x0006000b,
|
||||
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
|
||||
0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x0000001a,0x00000041,0x00030010,
|
||||
0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,
|
||||
0x00000000,0x00030005,0x00000009,0x00007870,0x00050005,0x0000000c,0x736e6f43,0x746e6174,
|
||||
0x00000073,0x00040006,0x0000000c,0x00000000,0x0063646e,0x00060006,0x0000000c,0x00000001,
|
||||
0x6f736572,0x6974756c,0x00006e6f,0x00050006,0x0000000c,0x00000002,0x72747865,0x00000061,
|
||||
0x00040006,0x0000000c,0x00000003,0x00646170,0x00030005,0x0000000e,0x00006370,0x00030005,
|
||||
0x00000018,0x00007675,0x00060005,0x0000001a,0x67617266,0x43786554,0x64726f6f,0x00000000,
|
||||
0x00040005,0x00000024,0x746e6563,0x00007265,0x00060005,0x00000028,0x75706e49,0x78655474,
|
||||
0x65727574,0x00000000,0x00040005,0x0000002c,0x67696577,0x00737468,0x00060005,0x0000002d,
|
||||
0x67696557,0x65547468,0x72757478,0x00000065,0x00040005,0x00000032,0x67696577,0x00007468,
|
||||
0x00050005,0x00000041,0x4374756f,0x726f6c6f,0x00000000,0x00040005,0x00000044,0x6d726f6e,
|
||||
0x00006c61,0x00050005,0x0000004b,0x6f726361,0x76557373,0x00000000,0x00040005,0x00000059,
|
||||
0x6f726361,0x00007373,0x00030047,0x0000000c,0x00000002,0x00050048,0x0000000c,0x00000000,
|
||||
0x00000023,0x00000000,0x00050048,0x0000000c,0x00000001,0x00000023,0x00000010,0x00050048,
|
||||
0x0000000c,0x00000002,0x00000023,0x00000018,0x00050048,0x0000000c,0x00000003,0x00000023,
|
||||
0x0000001c,0x00040047,0x0000001a,0x0000001e,0x00000000,0x00040047,0x00000028,0x00000021,
|
||||
0x00000000,0x00040047,0x00000028,0x00000022,0x00000000,0x00040047,0x0000002d,0x00000021,
|
||||
0x00000000,0x00040047,0x0000002d,0x00000022,0x00000001,0x00040047,0x00000041,0x0000001e,
|
||||
0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,0x00000006,
|
||||
0x00000020,0x00040017,0x00000007,0x00000006,0x00000002,0x00040020,0x00000008,0x00000007,
|
||||
0x00000007,0x0004002b,0x00000006,0x0000000a,0x3f800000,0x00040017,0x0000000b,0x00000006,
|
||||
0x00000004,0x0006001e,0x0000000c,0x0000000b,0x00000007,0x00000006,0x00000006,0x00040020,
|
||||
0x0000000d,0x00000009,0x0000000c,0x0004003b,0x0000000d,0x0000000e,0x00000009,0x00040015,
|
||||
0x0000000f,0x00000020,0x00000001,0x0004002b,0x0000000f,0x00000010,0x00000001,0x00040020,
|
||||
0x00000011,0x00000009,0x00000007,0x0005002c,0x00000007,0x00000014,0x0000000a,0x0000000a,
|
||||
0x00040020,0x00000019,0x00000001,0x00000007,0x0004003b,0x00000019,0x0000001a,0x00000001,
|
||||
0x0004002b,0x00000006,0x0000001d,0x3f000000,0x00040020,0x00000023,0x00000007,0x0000000b,
|
||||
0x00090019,0x00000025,0x00000006,0x00000001,0x00000000,0x00000000,0x00000000,0x00000001,
|
||||
0x00000000,0x0003001b,0x00000026,0x00000025,0x00040020,0x00000027,0x00000000,0x00000026,
|
||||
0x0004003b,0x00000027,0x00000028,0x00000000,0x0004003b,0x00000027,0x0000002d,0x00000000,
|
||||
0x00040020,0x00000031,0x00000007,0x00000006,0x00040015,0x00000033,0x00000020,0x00000000,
|
||||
0x0004002b,0x00000033,0x00000034,0x00000000,0x0004002b,0x00000006,0x00000037,0x00000000,
|
||||
0x0004002b,0x00000006,0x00000038,0x3ed70a3d,0x0004002b,0x00000006,0x0000003b,0x3a83126f,
|
||||
0x00020014,0x0000003c,0x00040020,0x00000040,0x00000003,0x0000000b,0x0004003b,0x00000040,
|
||||
0x00000041,0x00000003,0x0004002b,0x00000006,0x00000047,0x40000000,0x00040017,0x00000057,
|
||||
0x00000006,0x00000003,0x00040020,0x00000058,0x00000007,0x00000057,0x0004002b,0x00000033,
|
||||
0x00000064,0x00000003,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,
|
||||
0x00000005,0x0004003b,0x00000008,0x00000009,0x00000007,0x0004003b,0x00000008,0x00000018,
|
||||
0x00000007,0x0004003b,0x00000023,0x00000024,0x00000007,0x0004003b,0x00000023,0x0000002c,
|
||||
0x00000007,0x0004003b,0x00000031,0x00000032,0x00000007,0x0004003b,0x00000008,0x00000044,
|
||||
0x00000007,0x0004003b,0x00000008,0x0000004b,0x00000007,0x0004003b,0x00000058,0x00000059,
|
||||
0x00000007,0x00050041,0x00000011,0x00000012,0x0000000e,0x00000010,0x0004003d,0x00000007,
|
||||
0x00000013,0x00000012,0x0007000c,0x00000007,0x00000015,0x00000001,0x00000028,0x00000013,
|
||||
0x00000014,0x00050050,0x00000007,0x00000016,0x0000000a,0x0000000a,0x00050088,0x00000007,
|
||||
0x00000017,0x00000016,0x00000015,0x0003003e,0x00000009,0x00000017,0x0004003d,0x00000007,
|
||||
0x0000001b,0x0000001a,0x0004003d,0x00000007,0x0000001c,0x00000009,0x0005008e,0x00000007,
|
||||
0x0000001e,0x0000001c,0x0000001d,0x0004003d,0x00000007,0x0000001f,0x00000009,0x0005008e,
|
||||
0x00000007,0x00000020,0x0000001f,0x0000001d,0x00050083,0x00000007,0x00000021,0x00000014,
|
||||
0x00000020,0x0008000c,0x00000007,0x00000022,0x00000001,0x0000002b,0x0000001b,0x0000001e,
|
||||
0x00000021,0x0003003e,0x00000018,0x00000022,0x0004003d,0x00000026,0x00000029,0x00000028,
|
||||
0x0004003d,0x00000007,0x0000002a,0x00000018,0x00050057,0x0000000b,0x0000002b,0x00000029,
|
||||
0x0000002a,0x0003003e,0x00000024,0x0000002b,0x0004003d,0x00000026,0x0000002e,0x0000002d,
|
||||
0x0004003d,0x00000007,0x0000002f,0x00000018,0x00050057,0x0000000b,0x00000030,0x0000002e,
|
||||
0x0000002f,0x0003003e,0x0000002c,0x00000030,0x00050041,0x00000031,0x00000035,0x0000002c,
|
||||
0x00000034,0x0004003d,0x00000006,0x00000036,0x00000035,0x0008000c,0x00000006,0x00000039,
|
||||
0x00000001,0x0000002b,0x00000036,0x00000037,0x00000038,0x0003003e,0x00000032,0x00000039,
|
||||
0x0004003d,0x00000006,0x0000003a,0x00000032,0x000500bc,0x0000003c,0x0000003d,0x0000003a,
|
||||
0x0000003b,0x000300f7,0x0000003f,0x00000000,0x000400fa,0x0000003d,0x0000003e,0x0000003f,
|
||||
0x000200f8,0x0000003e,0x0004003d,0x0000000b,0x00000042,0x00000024,0x0003003e,0x00000041,
|
||||
0x00000042,0x000100fd,0x000200f8,0x0000003f,0x0004003d,0x0000000b,0x00000045,0x0000002c,
|
||||
0x0007004f,0x00000007,0x00000046,0x00000045,0x00000045,0x00000001,0x00000002,0x0005008e,
|
||||
0x00000007,0x00000048,0x00000046,0x00000047,0x00050050,0x00000007,0x00000049,0x0000000a,
|
||||
0x0000000a,0x00050083,0x00000007,0x0000004a,0x00000048,0x00000049,0x0003003e,0x00000044,
|
||||
0x0000004a,0x0004003d,0x00000007,0x0000004c,0x00000018,0x0004003d,0x00000007,0x0000004d,
|
||||
0x00000044,0x0004003d,0x00000007,0x0000004e,0x00000009,0x00050085,0x00000007,0x0000004f,
|
||||
0x0000004d,0x0000004e,0x00050081,0x00000007,0x00000050,0x0000004c,0x0000004f,0x0004003d,
|
||||
0x00000007,0x00000051,0x00000009,0x0005008e,0x00000007,0x00000052,0x00000051,0x0000001d,
|
||||
0x0004003d,0x00000007,0x00000053,0x00000009,0x0005008e,0x00000007,0x00000054,0x00000053,
|
||||
0x0000001d,0x00050083,0x00000007,0x00000055,0x00000014,0x00000054,0x0008000c,0x00000007,
|
||||
0x00000056,0x00000001,0x0000002b,0x00000050,0x00000052,0x00000055,0x0003003e,0x0000004b,
|
||||
0x00000056,0x0004003d,0x00000026,0x0000005a,0x00000028,0x0004003d,0x00000007,0x0000005b,
|
||||
0x0000004b,0x00050057,0x0000000b,0x0000005c,0x0000005a,0x0000005b,0x0008004f,0x00000057,
|
||||
0x0000005d,0x0000005c,0x0000005c,0x00000000,0x00000001,0x00000002,0x0003003e,0x00000059,
|
||||
0x0000005d,0x0004003d,0x0000000b,0x0000005e,0x00000024,0x0008004f,0x00000057,0x0000005f,
|
||||
0x0000005e,0x0000005e,0x00000000,0x00000001,0x00000002,0x0004003d,0x00000057,0x00000060,
|
||||
0x00000059,0x0004003d,0x00000006,0x00000061,0x00000032,0x00060050,0x00000057,0x00000062,
|
||||
0x00000061,0x00000061,0x00000061,0x0008000c,0x00000057,0x00000063,0x00000001,0x0000002e,
|
||||
0x0000005f,0x00000060,0x00000062,0x00050041,0x00000031,0x00000065,0x00000024,0x00000064,
|
||||
0x0004003d,0x00000006,0x00000066,0x00000065,0x00050051,0x00000006,0x00000067,0x00000063,
|
||||
0x00000000,0x00050051,0x00000006,0x00000068,0x00000063,0x00000001,0x00050051,0x00000006,
|
||||
0x00000069,0x00000063,0x00000002,0x00070050,0x0000000b,0x0000006a,0x00000067,0x00000068,
|
||||
0x00000069,0x00000066,0x0003003e,0x00000041,0x0000006a,0x000100fd,0x00010038
|
||||
0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x000000e8,0x000000f0,0x00030010,
|
||||
0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x000a0004,0x475f4c47,0x4c474f4f,
|
||||
0x70635f45,0x74735f70,0x5f656c79,0x656e696c,0x7269645f,0x69746365,0x00006576,0x00080004,
|
||||
0x475f4c47,0x4c474f4f,0x6e695f45,0x64756c63,0x69645f65,0x74636572,0x00657669,0x00040005,
|
||||
0x00000004,0x6e69616d,0x00000000,0x00080005,0x00000010,0x41414d53,0x63766f4d,0x32627628,
|
||||
0x3266763b,0x3266763b,0x0000003b,0x00040005,0x0000000d,0x646e6f63,0x00000000,0x00050005,
|
||||
0x0000000e,0x69726176,0x656c6261,0x00000000,0x00040005,0x0000000f,0x756c6176,0x00000065,
|
||||
0x00080005,0x0000001a,0x41414d53,0x63766f4d,0x34627628,0x3466763b,0x3466763b,0x0000003b,
|
||||
0x00040005,0x00000017,0x646e6f63,0x00000000,0x00050005,0x00000018,0x69726176,0x656c6261,
|
||||
0x00000000,0x00040005,0x00000019,0x756c6176,0x00000065,0x000b0005,0x0000001f,0x41414d53,
|
||||
0x6769654e,0x726f6268,0x646f6f68,0x6e656c42,0x676e6964,0x76285356,0x763b3266,0x003b3466,
|
||||
0x00050005,0x0000001d,0x63786574,0x64726f6f,0x00000000,0x00040005,0x0000001e,0x7366666f,
|
||||
0x00007465,0x000d0005,0x00000029,0x41414d53,0x6769654e,0x726f6268,0x646f6f68,0x6e656c42,
|
||||
0x676e6964,0x76285350,0x763b3266,0x733b3466,0x733b3132,0x003b3132,0x00050005,0x00000025,
|
||||
0x63786574,0x64726f6f,0x00000000,0x00040005,0x00000026,0x7366666f,0x00007465,0x00050005,
|
||||
0x00000027,0x6f6c6f63,0x78655472,0x00000000,0x00050005,0x00000028,0x6e656c62,0x78655464,
|
||||
0x00000000,0x00040005,0x0000003e,0x61726170,0x0000006d,0x00040005,0x00000041,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000044,0x61726170,0x0000006d,0x00040005,0x0000004d,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000050,0x61726170,0x0000006d,0x00040005,0x00000053,0x61726170,
|
||||
0x0000006d,0x00050005,0x0000005e,0x736e6f43,0x746e6174,0x00000073,0x00040006,0x0000005e,
|
||||
0x00000000,0x0063646e,0x00050006,0x0000005e,0x00000001,0x7274656d,0x00736369,0x00030005,
|
||||
0x00000060,0x00006370,0x00030005,0x0000006d,0x00000061,0x00040005,0x00000089,0x6f6c6f63,
|
||||
0x00000072,0x00030005,0x00000090,0x00000068,0x00060005,0x0000009c,0x6e656c62,0x676e6964,
|
||||
0x7366664f,0x00007465,0x00060005,0x000000a2,0x6e656c62,0x676e6964,0x67696557,0x00007468,
|
||||
0x00040005,0x000000ac,0x61726170,0x0000006d,0x00040005,0x000000ad,0x61726170,0x0000006d,
|
||||
0x00040005,0x000000af,0x61726170,0x0000006d,0x00040005,0x000000b4,0x61726170,0x0000006d,
|
||||
0x00040005,0x000000b5,0x61726170,0x0000006d,0x00040005,0x000000b7,0x61726170,0x0000006d,
|
||||
0x00060005,0x000000c2,0x6e656c62,0x676e6964,0x726f6f43,0x00000064,0x00040005,0x000000d3,
|
||||
0x6f6c6f63,0x00000072,0x00060005,0x000000e8,0x67617266,0x43786554,0x64726f6f,0x00000000,
|
||||
0x00040005,0x000000e9,0x7366666f,0x00007465,0x00040005,0x000000ea,0x61726170,0x0000006d,
|
||||
0x00040005,0x000000ec,0x61726170,0x0000006d,0x00050005,0x000000f0,0x4374756f,0x726f6c6f,
|
||||
0x00000000,0x00060005,0x000000f1,0x75706e49,0x78655474,0x65727574,0x00000000,0x00060005,
|
||||
0x000000f2,0x67696557,0x65547468,0x72757478,0x00000065,0x00040005,0x000000f3,0x61726170,
|
||||
0x0000006d,0x00040005,0x000000f5,0x61726170,0x0000006d,0x00030047,0x0000005e,0x00000002,
|
||||
0x00050048,0x0000005e,0x00000000,0x00000023,0x00000000,0x00050048,0x0000005e,0x00000001,
|
||||
0x00000023,0x00000010,0x00040047,0x000000e8,0x0000001e,0x00000000,0x00040047,0x000000f0,
|
||||
0x0000001e,0x00000000,0x00040047,0x000000f1,0x00000021,0x00000000,0x00040047,0x000000f1,
|
||||
0x00000022,0x00000000,0x00040047,0x000000f2,0x00000021,0x00000000,0x00040047,0x000000f2,
|
||||
0x00000022,0x00000001,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00020014,
|
||||
0x00000006,0x00040017,0x00000007,0x00000006,0x00000002,0x00040020,0x00000008,0x00000007,
|
||||
0x00000007,0x00030016,0x00000009,0x00000020,0x00040017,0x0000000a,0x00000009,0x00000002,
|
||||
0x00040020,0x0000000b,0x00000007,0x0000000a,0x00060021,0x0000000c,0x00000002,0x00000008,
|
||||
0x0000000b,0x0000000b,0x00040017,0x00000012,0x00000006,0x00000004,0x00040020,0x00000013,
|
||||
0x00000007,0x00000012,0x00040017,0x00000014,0x00000009,0x00000004,0x00040020,0x00000015,
|
||||
0x00000007,0x00000014,0x00060021,0x00000016,0x00000002,0x00000013,0x00000015,0x00000015,
|
||||
0x00050021,0x0000001c,0x00000002,0x0000000b,0x00000015,0x00090019,0x00000021,0x00000009,
|
||||
0x00000001,0x00000000,0x00000000,0x00000000,0x00000001,0x00000000,0x0003001b,0x00000022,
|
||||
0x00000021,0x00040020,0x00000023,0x00000000,0x00000022,0x00070021,0x00000024,0x00000014,
|
||||
0x0000000b,0x00000015,0x00000023,0x00000023,0x00040015,0x0000002b,0x00000020,0x00000000,
|
||||
0x0004002b,0x0000002b,0x0000002c,0x00000000,0x00040020,0x0000002d,0x00000007,0x00000006,
|
||||
0x00040020,0x00000032,0x00000007,0x00000009,0x0004002b,0x0000002b,0x00000036,0x00000001,
|
||||
0x0004002b,0x0000002b,0x00000058,0x00000002,0x0004002b,0x0000002b,0x0000005b,0x00000003,
|
||||
0x0004001e,0x0000005e,0x00000014,0x00000014,0x00040020,0x0000005f,0x00000009,0x0000005e,
|
||||
0x0004003b,0x0000005f,0x00000060,0x00000009,0x00040015,0x00000061,0x00000020,0x00000001,
|
||||
0x0004002b,0x00000061,0x00000062,0x00000001,0x00040020,0x00000063,0x00000009,0x00000014,
|
||||
0x0004002b,0x00000009,0x00000067,0x3f800000,0x0004002b,0x00000009,0x00000068,0x00000000,
|
||||
0x0007002c,0x00000014,0x00000069,0x00000067,0x00000068,0x00000068,0x00000067,0x0007002c,
|
||||
0x00000014,0x00000083,0x00000067,0x00000067,0x00000067,0x00000067,0x0004002b,0x00000009,
|
||||
0x00000085,0x3727c5ac,0x0005002c,0x0000000a,0x000000bd,0x00000067,0x00000067,0x00040020,
|
||||
0x000000e7,0x00000001,0x0000000a,0x0004003b,0x000000e7,0x000000e8,0x00000001,0x00040020,
|
||||
0x000000ef,0x00000003,0x00000014,0x0004003b,0x000000ef,0x000000f0,0x00000003,0x0004003b,
|
||||
0x00000023,0x000000f1,0x00000000,0x0004003b,0x00000023,0x000000f2,0x00000000,0x00050036,
|
||||
0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,0x00000015,
|
||||
0x000000e9,0x00000007,0x0004003b,0x0000000b,0x000000ea,0x00000007,0x0004003b,0x00000015,
|
||||
0x000000ec,0x00000007,0x0004003b,0x0000000b,0x000000f3,0x00000007,0x0004003b,0x00000015,
|
||||
0x000000f5,0x00000007,0x0004003d,0x0000000a,0x000000eb,0x000000e8,0x0003003e,0x000000ea,
|
||||
0x000000eb,0x00060039,0x00000002,0x000000ed,0x0000001f,0x000000ea,0x000000ec,0x0004003d,
|
||||
0x00000014,0x000000ee,0x000000ec,0x0003003e,0x000000e9,0x000000ee,0x0004003d,0x0000000a,
|
||||
0x000000f4,0x000000e8,0x0003003e,0x000000f3,0x000000f4,0x0004003d,0x00000014,0x000000f6,
|
||||
0x000000e9,0x0003003e,0x000000f5,0x000000f6,0x00080039,0x00000014,0x000000f7,0x00000029,
|
||||
0x000000f3,0x000000f5,0x000000f1,0x000000f2,0x0003003e,0x000000f0,0x000000f7,0x000100fd,
|
||||
0x00010038,0x00050036,0x00000002,0x00000010,0x00000000,0x0000000c,0x00030037,0x00000008,
|
||||
0x0000000d,0x00030037,0x0000000b,0x0000000e,0x00030037,0x0000000b,0x0000000f,0x000200f8,
|
||||
0x00000011,0x00050041,0x0000002d,0x0000002e,0x0000000d,0x0000002c,0x0004003d,0x00000006,
|
||||
0x0000002f,0x0000002e,0x000300f7,0x00000031,0x00000000,0x000400fa,0x0000002f,0x00000030,
|
||||
0x00000031,0x000200f8,0x00000030,0x00050041,0x00000032,0x00000033,0x0000000f,0x0000002c,
|
||||
0x0004003d,0x00000009,0x00000034,0x00000033,0x00050041,0x00000032,0x00000035,0x0000000e,
|
||||
0x0000002c,0x0003003e,0x00000035,0x00000034,0x000200f9,0x00000031,0x000200f8,0x00000031,
|
||||
0x00050041,0x0000002d,0x00000037,0x0000000d,0x00000036,0x0004003d,0x00000006,0x00000038,
|
||||
0x00000037,0x000300f7,0x0000003a,0x00000000,0x000400fa,0x00000038,0x00000039,0x0000003a,
|
||||
0x000200f8,0x00000039,0x00050041,0x00000032,0x0000003b,0x0000000f,0x00000036,0x0004003d,
|
||||
0x00000009,0x0000003c,0x0000003b,0x00050041,0x00000032,0x0000003d,0x0000000e,0x00000036,
|
||||
0x0003003e,0x0000003d,0x0000003c,0x000200f9,0x0000003a,0x000200f8,0x0000003a,0x000100fd,
|
||||
0x00010038,0x00050036,0x00000002,0x0000001a,0x00000000,0x00000016,0x00030037,0x00000013,
|
||||
0x00000017,0x00030037,0x00000015,0x00000018,0x00030037,0x00000015,0x00000019,0x000200f8,
|
||||
0x0000001b,0x0004003b,0x00000008,0x0000003e,0x00000007,0x0004003b,0x0000000b,0x00000041,
|
||||
0x00000007,0x0004003b,0x0000000b,0x00000044,0x00000007,0x0004003b,0x00000008,0x0000004d,
|
||||
0x00000007,0x0004003b,0x0000000b,0x00000050,0x00000007,0x0004003b,0x0000000b,0x00000053,
|
||||
0x00000007,0x0004003d,0x00000012,0x0000003f,0x00000017,0x0007004f,0x00000007,0x00000040,
|
||||
0x0000003f,0x0000003f,0x00000000,0x00000001,0x0003003e,0x0000003e,0x00000040,0x0004003d,
|
||||
0x00000014,0x00000042,0x00000018,0x0007004f,0x0000000a,0x00000043,0x00000042,0x00000042,
|
||||
0x00000000,0x00000001,0x0003003e,0x00000041,0x00000043,0x0004003d,0x00000014,0x00000045,
|
||||
0x00000019,0x0007004f,0x0000000a,0x00000046,0x00000045,0x00000045,0x00000000,0x00000001,
|
||||
0x0003003e,0x00000044,0x00000046,0x00070039,0x00000002,0x00000047,0x00000010,0x0000003e,
|
||||
0x00000041,0x00000044,0x0004003d,0x0000000a,0x00000048,0x00000041,0x00050041,0x00000032,
|
||||
0x00000049,0x00000018,0x0000002c,0x00050051,0x00000009,0x0000004a,0x00000048,0x00000000,
|
||||
0x0003003e,0x00000049,0x0000004a,0x00050041,0x00000032,0x0000004b,0x00000018,0x00000036,
|
||||
0x00050051,0x00000009,0x0000004c,0x00000048,0x00000001,0x0003003e,0x0000004b,0x0000004c,
|
||||
0x0004003d,0x00000012,0x0000004e,0x00000017,0x0007004f,0x00000007,0x0000004f,0x0000004e,
|
||||
0x0000004e,0x00000002,0x00000003,0x0003003e,0x0000004d,0x0000004f,0x0004003d,0x00000014,
|
||||
0x00000051,0x00000018,0x0007004f,0x0000000a,0x00000052,0x00000051,0x00000051,0x00000002,
|
||||
0x00000003,0x0003003e,0x00000050,0x00000052,0x0004003d,0x00000014,0x00000054,0x00000019,
|
||||
0x0007004f,0x0000000a,0x00000055,0x00000054,0x00000054,0x00000002,0x00000003,0x0003003e,
|
||||
0x00000053,0x00000055,0x00070039,0x00000002,0x00000056,0x00000010,0x0000004d,0x00000050,
|
||||
0x00000053,0x0004003d,0x0000000a,0x00000057,0x00000050,0x00050041,0x00000032,0x00000059,
|
||||
0x00000018,0x00000058,0x00050051,0x00000009,0x0000005a,0x00000057,0x00000000,0x0003003e,
|
||||
0x00000059,0x0000005a,0x00050041,0x00000032,0x0000005c,0x00000018,0x0000005b,0x00050051,
|
||||
0x00000009,0x0000005d,0x00000057,0x00000001,0x0003003e,0x0000005c,0x0000005d,0x000100fd,
|
||||
0x00010038,0x00050036,0x00000002,0x0000001f,0x00000000,0x0000001c,0x00030037,0x0000000b,
|
||||
0x0000001d,0x00030037,0x00000015,0x0000001e,0x000200f8,0x00000020,0x00050041,0x00000063,
|
||||
0x00000064,0x00000060,0x00000062,0x0004003d,0x00000014,0x00000065,0x00000064,0x0009004f,
|
||||
0x00000014,0x00000066,0x00000065,0x00000065,0x00000000,0x00000001,0x00000000,0x00000001,
|
||||
0x0004003d,0x0000000a,0x0000006a,0x0000001d,0x0009004f,0x00000014,0x0000006b,0x0000006a,
|
||||
0x0000006a,0x00000000,0x00000001,0x00000000,0x00000001,0x0008000c,0x00000014,0x0000006c,
|
||||
0x00000001,0x00000032,0x00000066,0x00000069,0x0000006b,0x0003003e,0x0000001e,0x0000006c,
|
||||
0x000100fd,0x00010038,0x00050036,0x00000014,0x00000029,0x00000000,0x00000024,0x00030037,
|
||||
0x0000000b,0x00000025,0x00030037,0x00000015,0x00000026,0x00030037,0x00000023,0x00000027,
|
||||
0x00030037,0x00000023,0x00000028,0x000200f8,0x0000002a,0x0004003b,0x00000015,0x0000006d,
|
||||
0x00000007,0x0004003b,0x00000015,0x00000089,0x00000007,0x0004003b,0x0000002d,0x00000090,
|
||||
0x00000007,0x0004003b,0x00000015,0x0000009c,0x00000007,0x0004003b,0x0000000b,0x000000a2,
|
||||
0x00000007,0x0004003b,0x00000013,0x000000ac,0x00000007,0x0004003b,0x00000015,0x000000ad,
|
||||
0x00000007,0x0004003b,0x00000015,0x000000af,0x00000007,0x0004003b,0x00000008,0x000000b4,
|
||||
0x00000007,0x0004003b,0x0000000b,0x000000b5,0x00000007,0x0004003b,0x0000000b,0x000000b7,
|
||||
0x00000007,0x0004003b,0x00000015,0x000000c2,0x00000007,0x0004003b,0x00000015,0x000000d3,
|
||||
0x00000007,0x0004003d,0x00000022,0x0000006e,0x00000028,0x0004003d,0x00000014,0x0000006f,
|
||||
0x00000026,0x0007004f,0x0000000a,0x00000070,0x0000006f,0x0000006f,0x00000000,0x00000001,
|
||||
0x00050057,0x00000014,0x00000071,0x0000006e,0x00000070,0x00050051,0x00000009,0x00000072,
|
||||
0x00000071,0x00000003,0x00050041,0x00000032,0x00000073,0x0000006d,0x0000002c,0x0003003e,
|
||||
0x00000073,0x00000072,0x0004003d,0x00000022,0x00000074,0x00000028,0x0004003d,0x00000014,
|
||||
0x00000075,0x00000026,0x0007004f,0x0000000a,0x00000076,0x00000075,0x00000075,0x00000002,
|
||||
0x00000003,0x00050057,0x00000014,0x00000077,0x00000074,0x00000076,0x00050051,0x00000009,
|
||||
0x00000078,0x00000077,0x00000001,0x00050041,0x00000032,0x00000079,0x0000006d,0x00000036,
|
||||
0x0003003e,0x00000079,0x00000078,0x0004003d,0x00000022,0x0000007a,0x00000028,0x0004003d,
|
||||
0x0000000a,0x0000007b,0x00000025,0x00050057,0x00000014,0x0000007c,0x0000007a,0x0000007b,
|
||||
0x0007004f,0x0000000a,0x0000007d,0x0000007c,0x0000007c,0x00000000,0x00000002,0x00050041,
|
||||
0x00000032,0x0000007e,0x0000006d,0x0000005b,0x00050051,0x00000009,0x0000007f,0x0000007d,
|
||||
0x00000000,0x0003003e,0x0000007e,0x0000007f,0x00050041,0x00000032,0x00000080,0x0000006d,
|
||||
0x00000058,0x00050051,0x00000009,0x00000081,0x0000007d,0x00000001,0x0003003e,0x00000080,
|
||||
0x00000081,0x0004003d,0x00000014,0x00000082,0x0000006d,0x00050094,0x00000009,0x00000084,
|
||||
0x00000082,0x00000083,0x000500b8,0x00000006,0x00000086,0x00000084,0x00000085,0x000300f7,
|
||||
0x00000088,0x00000000,0x000400fa,0x00000086,0x00000087,0x0000008f,0x000200f8,0x00000087,
|
||||
0x0004003d,0x00000022,0x0000008a,0x00000027,0x0004003d,0x0000000a,0x0000008b,0x00000025,
|
||||
0x00070058,0x00000014,0x0000008c,0x0000008a,0x0000008b,0x00000002,0x00000068,0x0003003e,
|
||||
0x00000089,0x0000008c,0x0004003d,0x00000014,0x0000008d,0x00000089,0x000200fe,0x0000008d,
|
||||
0x000200f8,0x0000008f,0x00050041,0x00000032,0x00000091,0x0000006d,0x0000002c,0x0004003d,
|
||||
0x00000009,0x00000092,0x00000091,0x00050041,0x00000032,0x00000093,0x0000006d,0x00000058,
|
||||
0x0004003d,0x00000009,0x00000094,0x00000093,0x0007000c,0x00000009,0x00000095,0x00000001,
|
||||
0x00000028,0x00000092,0x00000094,0x00050041,0x00000032,0x00000096,0x0000006d,0x00000036,
|
||||
0x0004003d,0x00000009,0x00000097,0x00000096,0x00050041,0x00000032,0x00000098,0x0000006d,
|
||||
0x0000005b,0x0004003d,0x00000009,0x00000099,0x00000098,0x0007000c,0x00000009,0x0000009a,
|
||||
0x00000001,0x00000028,0x00000097,0x00000099,0x000500ba,0x00000006,0x0000009b,0x00000095,
|
||||
0x0000009a,0x0003003e,0x00000090,0x0000009b,0x00050041,0x00000032,0x0000009d,0x0000006d,
|
||||
0x00000036,0x0004003d,0x00000009,0x0000009e,0x0000009d,0x00050041,0x00000032,0x0000009f,
|
||||
0x0000006d,0x0000005b,0x0004003d,0x00000009,0x000000a0,0x0000009f,0x00070050,0x00000014,
|
||||
0x000000a1,0x00000068,0x0000009e,0x00000068,0x000000a0,0x0003003e,0x0000009c,0x000000a1,
|
||||
0x0004003d,0x00000014,0x000000a3,0x0000006d,0x0007004f,0x0000000a,0x000000a4,0x000000a3,
|
||||
0x000000a3,0x00000001,0x00000003,0x0003003e,0x000000a2,0x000000a4,0x0004003d,0x00000006,
|
||||
0x000000a5,0x00000090,0x00070050,0x00000012,0x000000a6,0x000000a5,0x000000a5,0x000000a5,
|
||||
0x000000a5,0x00050041,0x00000032,0x000000a7,0x0000006d,0x0000002c,0x0004003d,0x00000009,
|
||||
0x000000a8,0x000000a7,0x00050041,0x00000032,0x000000a9,0x0000006d,0x00000058,0x0004003d,
|
||||
0x00000009,0x000000aa,0x000000a9,0x00070050,0x00000014,0x000000ab,0x000000a8,0x00000068,
|
||||
0x000000aa,0x00000068,0x0003003e,0x000000ac,0x000000a6,0x0004003d,0x00000014,0x000000ae,
|
||||
0x0000009c,0x0003003e,0x000000ad,0x000000ae,0x0003003e,0x000000af,0x000000ab,0x00070039,
|
||||
0x00000002,0x000000b0,0x0000001a,0x000000ac,0x000000ad,0x000000af,0x0004003d,0x00000014,
|
||||
0x000000b1,0x000000ad,0x0003003e,0x0000009c,0x000000b1,0x0004003d,0x00000006,0x000000b2,
|
||||
0x00000090,0x00050050,0x00000007,0x000000b3,0x000000b2,0x000000b2,0x0003003e,0x000000b4,
|
||||
0x000000b3,0x0004003d,0x0000000a,0x000000b6,0x000000a2,0x0003003e,0x000000b5,0x000000b6,
|
||||
0x0004003d,0x00000014,0x000000b8,0x0000006d,0x0007004f,0x0000000a,0x000000b9,0x000000b8,
|
||||
0x000000b8,0x00000000,0x00000002,0x0003003e,0x000000b7,0x000000b9,0x00070039,0x00000002,
|
||||
0x000000ba,0x00000010,0x000000b4,0x000000b5,0x000000b7,0x0004003d,0x0000000a,0x000000bb,
|
||||
0x000000b5,0x0003003e,0x000000a2,0x000000bb,0x0004003d,0x0000000a,0x000000bc,0x000000a2,
|
||||
0x00050094,0x00000009,0x000000be,0x000000bc,0x000000bd,0x0004003d,0x0000000a,0x000000bf,
|
||||
0x000000a2,0x00050050,0x0000000a,0x000000c0,0x000000be,0x000000be,0x00050088,0x0000000a,
|
||||
0x000000c1,0x000000bf,0x000000c0,0x0003003e,0x000000a2,0x000000c1,0x0004003d,0x00000014,
|
||||
0x000000c3,0x0000009c,0x00050041,0x00000063,0x000000c4,0x00000060,0x00000062,0x0004003d,
|
||||
0x00000014,0x000000c5,0x000000c4,0x0007004f,0x0000000a,0x000000c6,0x000000c5,0x000000c5,
|
||||
0x00000000,0x00000001,0x00050041,0x00000063,0x000000c7,0x00000060,0x00000062,0x0004003d,
|
||||
0x00000014,0x000000c8,0x000000c7,0x0007004f,0x0000000a,0x000000c9,0x000000c8,0x000000c8,
|
||||
0x00000000,0x00000001,0x0004007f,0x0000000a,0x000000ca,0x000000c9,0x00050051,0x00000009,
|
||||
0x000000cb,0x000000c6,0x00000000,0x00050051,0x00000009,0x000000cc,0x000000c6,0x00000001,
|
||||
0x00050051,0x00000009,0x000000cd,0x000000ca,0x00000000,0x00050051,0x00000009,0x000000ce,
|
||||
0x000000ca,0x00000001,0x00070050,0x00000014,0x000000cf,0x000000cb,0x000000cc,0x000000cd,
|
||||
0x000000ce,0x0004003d,0x0000000a,0x000000d0,0x00000025,0x0009004f,0x00000014,0x000000d1,
|
||||
0x000000d0,0x000000d0,0x00000000,0x00000001,0x00000000,0x00000001,0x0008000c,0x00000014,
|
||||
0x000000d2,0x00000001,0x00000032,0x000000c3,0x000000cf,0x000000d1,0x0003003e,0x000000c2,
|
||||
0x000000d2,0x00050041,0x00000032,0x000000d4,0x000000a2,0x0000002c,0x0004003d,0x00000009,
|
||||
0x000000d5,0x000000d4,0x0004003d,0x00000022,0x000000d6,0x00000027,0x0004003d,0x00000014,
|
||||
0x000000d7,0x000000c2,0x0007004f,0x0000000a,0x000000d8,0x000000d7,0x000000d7,0x00000000,
|
||||
0x00000001,0x00070058,0x00000014,0x000000d9,0x000000d6,0x000000d8,0x00000002,0x00000068,
|
||||
0x0005008e,0x00000014,0x000000da,0x000000d9,0x000000d5,0x0003003e,0x000000d3,0x000000da,
|
||||
0x00050041,0x00000032,0x000000db,0x000000a2,0x00000036,0x0004003d,0x00000009,0x000000dc,
|
||||
0x000000db,0x0004003d,0x00000022,0x000000dd,0x00000027,0x0004003d,0x00000014,0x000000de,
|
||||
0x000000c2,0x0007004f,0x0000000a,0x000000df,0x000000de,0x000000de,0x00000002,0x00000003,
|
||||
0x00070058,0x00000014,0x000000e0,0x000000dd,0x000000df,0x00000002,0x00000068,0x0005008e,
|
||||
0x00000014,0x000000e1,0x000000e0,0x000000dc,0x0004003d,0x00000014,0x000000e2,0x000000d3,
|
||||
0x00050081,0x00000014,0x000000e3,0x000000e2,0x000000e1,0x0003003e,0x000000d3,0x000000e3,
|
||||
0x0004003d,0x00000014,0x000000e4,0x000000d3,0x000200fe,0x000000e4,0x000200f8,0x00000088,
|
||||
0x000100ff,0x00010038
|
||||
};
|
||||
@@ -1,29 +1,21 @@
|
||||
#version 450
|
||||
#extension GL_GOOGLE_include_directive : require
|
||||
|
||||
layout(location = 0) in vec2 fragTexCoord;
|
||||
layout(location = 0) out vec4 outColor;
|
||||
layout(set = 0, binding = 0) uniform sampler2D InputTexture;
|
||||
layout(push_constant) uniform Constants {
|
||||
vec4 ndc;
|
||||
vec2 resolution;
|
||||
float extra;
|
||||
float pad;
|
||||
vec4 metrics; // 1/width, 1/height, width, height
|
||||
} pc;
|
||||
|
||||
float luma(vec3 c) {
|
||||
return dot(c, vec3(0.2126, 0.7152, 0.0722));
|
||||
}
|
||||
#define SMAA_RT_METRICS pc.metrics
|
||||
#define SMAA_GLSL_4
|
||||
#define SMAA_PRESET_HIGH
|
||||
#include "SMAA.hlsl"
|
||||
|
||||
void main() {
|
||||
vec2 px = 1.0 / max(pc.resolution, vec2(1.0));
|
||||
vec2 uv = clamp(fragTexCoord, px * 0.5, vec2(1.0) - px * 0.5);
|
||||
float center = luma(texture(InputTexture, uv).rgb);
|
||||
float left = luma(texture(InputTexture, uv - vec2(px.x, 0.0)).rgb);
|
||||
float right = luma(texture(InputTexture, uv + vec2(px.x, 0.0)).rgb);
|
||||
float up = luma(texture(InputTexture, uv - vec2(0.0, px.y)).rgb);
|
||||
float down = luma(texture(InputTexture, uv + vec2(0.0, px.y)).rgb);
|
||||
|
||||
// Store directional edge strengths for the weight pass.
|
||||
outColor = vec4(abs(center - left), abs(center - right),
|
||||
abs(center - up), abs(center - down));
|
||||
vec4 offset[3];
|
||||
SMAAEdgeDetectionVS(fragTexCoord, offset);
|
||||
outColor = vec4(SMAALumaEdgeDetectionPS(fragTexCoord, offset, InputTexture), 0.0, 0.0);
|
||||
}
|
||||
@@ -1,102 +1,185 @@
|
||||
// 1116.3.0
|
||||
// 1116.6.0
|
||||
#pragma once
|
||||
const uint32_t smaa_edge_code[] = {
|
||||
0x07230203,0x00010000,0x0008000b,0x00000080,0x00000000,0x00020011,0x00000001,0x0006000b,
|
||||
0x07230203,0x00010000,0x0008000b,0x000000eb,0x00000000,0x00020011,0x00000001,0x0006000b,
|
||||
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
|
||||
0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x00000028,0x0000006e,0x00030010,
|
||||
0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,
|
||||
0x00000000,0x00050005,0x0000000b,0x616d756c,0x33667628,0x0000003b,0x00030005,0x0000000a,
|
||||
0x00000063,0x00030005,0x00000017,0x00007870,0x00050005,0x0000001a,0x736e6f43,0x746e6174,
|
||||
0x00000073,0x00040006,0x0000001a,0x00000000,0x0063646e,0x00060006,0x0000001a,0x00000001,
|
||||
0x6f736572,0x6974756c,0x00006e6f,0x00050006,0x0000001a,0x00000002,0x72747865,0x00000061,
|
||||
0x00040006,0x0000001a,0x00000003,0x00646170,0x00030005,0x0000001c,0x00006370,0x00030005,
|
||||
0x00000026,0x00007675,0x00060005,0x00000028,0x67617266,0x43786554,0x64726f6f,0x00000000,
|
||||
0x00040005,0x00000032,0x746e6563,0x00007265,0x00060005,0x00000036,0x75706e49,0x78655474,
|
||||
0x65727574,0x00000000,0x00040005,0x0000003a,0x61726170,0x0000006d,0x00040005,0x0000003d,
|
||||
0x7466656c,0x00000000,0x00040005,0x00000048,0x61726170,0x0000006d,0x00040005,0x0000004b,
|
||||
0x68676972,0x00000074,0x00040005,0x00000053,0x61726170,0x0000006d,0x00030005,0x00000056,
|
||||
0x00007075,0x00040005,0x0000005f,0x61726170,0x0000006d,0x00040005,0x00000062,0x6e776f64,
|
||||
0x00000000,0x00040005,0x0000006a,0x61726170,0x0000006d,0x00050005,0x0000006e,0x4374756f,
|
||||
0x726f6c6f,0x00000000,0x00030047,0x0000001a,0x00000002,0x00050048,0x0000001a,0x00000000,
|
||||
0x00000023,0x00000000,0x00050048,0x0000001a,0x00000001,0x00000023,0x00000010,0x00050048,
|
||||
0x0000001a,0x00000002,0x00000023,0x00000018,0x00050048,0x0000001a,0x00000003,0x00000023,
|
||||
0x0000001c,0x00040047,0x00000028,0x0000001e,0x00000000,0x00040047,0x00000036,0x00000021,
|
||||
0x00000000,0x00040047,0x00000036,0x00000022,0x00000000,0x00040047,0x0000006e,0x0000001e,
|
||||
0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,0x00000006,
|
||||
0x00000020,0x00040017,0x00000007,0x00000006,0x00000003,0x00040020,0x00000008,0x00000007,
|
||||
0x00000007,0x00040021,0x00000009,0x00000006,0x00000008,0x0004002b,0x00000006,0x0000000e,
|
||||
0x3e59b3d0,0x0004002b,0x00000006,0x0000000f,0x3f371759,0x0004002b,0x00000006,0x00000010,
|
||||
0x3d93dd98,0x0006002c,0x00000007,0x00000011,0x0000000e,0x0000000f,0x00000010,0x00040017,
|
||||
0x00000015,0x00000006,0x00000002,0x00040020,0x00000016,0x00000007,0x00000015,0x0004002b,
|
||||
0x00000006,0x00000018,0x3f800000,0x00040017,0x00000019,0x00000006,0x00000004,0x0006001e,
|
||||
0x0000001a,0x00000019,0x00000015,0x00000006,0x00000006,0x00040020,0x0000001b,0x00000009,
|
||||
0x0000001a,0x0004003b,0x0000001b,0x0000001c,0x00000009,0x00040015,0x0000001d,0x00000020,
|
||||
0x00000001,0x0004002b,0x0000001d,0x0000001e,0x00000001,0x00040020,0x0000001f,0x00000009,
|
||||
0x00000015,0x0005002c,0x00000015,0x00000022,0x00000018,0x00000018,0x00040020,0x00000027,
|
||||
0x00000001,0x00000015,0x0004003b,0x00000027,0x00000028,0x00000001,0x0004002b,0x00000006,
|
||||
0x0000002b,0x3f000000,0x00040020,0x00000031,0x00000007,0x00000006,0x00090019,0x00000033,
|
||||
0x00000006,0x00000001,0x00000000,0x00000000,0x00000000,0x00000001,0x00000000,0x0003001b,
|
||||
0x00000034,0x00000033,0x00040020,0x00000035,0x00000000,0x00000034,0x0004003b,0x00000035,
|
||||
0x00000036,0x00000000,0x00040015,0x00000040,0x00000020,0x00000000,0x0004002b,0x00000040,
|
||||
0x00000041,0x00000000,0x0004002b,0x00000006,0x00000044,0x00000000,0x0004002b,0x00000040,
|
||||
0x00000059,0x00000001,0x00040020,0x0000006d,0x00000003,0x00000019,0x0004003b,0x0000006d,
|
||||
0x0000006e,0x00000003,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,
|
||||
0x00000005,0x0004003b,0x00000016,0x00000017,0x00000007,0x0004003b,0x00000016,0x00000026,
|
||||
0x00000007,0x0004003b,0x00000031,0x00000032,0x00000007,0x0004003b,0x00000008,0x0000003a,
|
||||
0x00000007,0x0004003b,0x00000031,0x0000003d,0x00000007,0x0004003b,0x00000008,0x00000048,
|
||||
0x00000007,0x0004003b,0x00000031,0x0000004b,0x00000007,0x0004003b,0x00000008,0x00000053,
|
||||
0x00000007,0x0004003b,0x00000031,0x00000056,0x00000007,0x0004003b,0x00000008,0x0000005f,
|
||||
0x00000007,0x0004003b,0x00000031,0x00000062,0x00000007,0x0004003b,0x00000008,0x0000006a,
|
||||
0x00000007,0x00050041,0x0000001f,0x00000020,0x0000001c,0x0000001e,0x0004003d,0x00000015,
|
||||
0x00000021,0x00000020,0x0007000c,0x00000015,0x00000023,0x00000001,0x00000028,0x00000021,
|
||||
0x00000022,0x00050050,0x00000015,0x00000024,0x00000018,0x00000018,0x00050088,0x00000015,
|
||||
0x00000025,0x00000024,0x00000023,0x0003003e,0x00000017,0x00000025,0x0004003d,0x00000015,
|
||||
0x00000029,0x00000028,0x0004003d,0x00000015,0x0000002a,0x00000017,0x0005008e,0x00000015,
|
||||
0x0000002c,0x0000002a,0x0000002b,0x0004003d,0x00000015,0x0000002d,0x00000017,0x0005008e,
|
||||
0x00000015,0x0000002e,0x0000002d,0x0000002b,0x00050083,0x00000015,0x0000002f,0x00000022,
|
||||
0x0000002e,0x0008000c,0x00000015,0x00000030,0x00000001,0x0000002b,0x00000029,0x0000002c,
|
||||
0x0000002f,0x0003003e,0x00000026,0x00000030,0x0004003d,0x00000034,0x00000037,0x00000036,
|
||||
0x0004003d,0x00000015,0x00000038,0x00000026,0x00050057,0x00000019,0x00000039,0x00000037,
|
||||
0x00000038,0x0008004f,0x00000007,0x0000003b,0x00000039,0x00000039,0x00000000,0x00000001,
|
||||
0x00000002,0x0003003e,0x0000003a,0x0000003b,0x00050039,0x00000006,0x0000003c,0x0000000b,
|
||||
0x0000003a,0x0003003e,0x00000032,0x0000003c,0x0004003d,0x00000034,0x0000003e,0x00000036,
|
||||
0x0004003d,0x00000015,0x0000003f,0x00000026,0x00050041,0x00000031,0x00000042,0x00000017,
|
||||
0x00000041,0x0004003d,0x00000006,0x00000043,0x00000042,0x00050050,0x00000015,0x00000045,
|
||||
0x00000043,0x00000044,0x00050083,0x00000015,0x00000046,0x0000003f,0x00000045,0x00050057,
|
||||
0x00000019,0x00000047,0x0000003e,0x00000046,0x0008004f,0x00000007,0x00000049,0x00000047,
|
||||
0x00000047,0x00000000,0x00000001,0x00000002,0x0003003e,0x00000048,0x00000049,0x00050039,
|
||||
0x00000006,0x0000004a,0x0000000b,0x00000048,0x0003003e,0x0000003d,0x0000004a,0x0004003d,
|
||||
0x00000034,0x0000004c,0x00000036,0x0004003d,0x00000015,0x0000004d,0x00000026,0x00050041,
|
||||
0x00000031,0x0000004e,0x00000017,0x00000041,0x0004003d,0x00000006,0x0000004f,0x0000004e,
|
||||
0x00050050,0x00000015,0x00000050,0x0000004f,0x00000044,0x00050081,0x00000015,0x00000051,
|
||||
0x0000004d,0x00000050,0x00050057,0x00000019,0x00000052,0x0000004c,0x00000051,0x0008004f,
|
||||
0x00000007,0x00000054,0x00000052,0x00000052,0x00000000,0x00000001,0x00000002,0x0003003e,
|
||||
0x00000053,0x00000054,0x00050039,0x00000006,0x00000055,0x0000000b,0x00000053,0x0003003e,
|
||||
0x0000004b,0x00000055,0x0004003d,0x00000034,0x00000057,0x00000036,0x0004003d,0x00000015,
|
||||
0x00000058,0x00000026,0x00050041,0x00000031,0x0000005a,0x00000017,0x00000059,0x0004003d,
|
||||
0x00000006,0x0000005b,0x0000005a,0x00050050,0x00000015,0x0000005c,0x00000044,0x0000005b,
|
||||
0x00050083,0x00000015,0x0000005d,0x00000058,0x0000005c,0x00050057,0x00000019,0x0000005e,
|
||||
0x00000057,0x0000005d,0x0008004f,0x00000007,0x00000060,0x0000005e,0x0000005e,0x00000000,
|
||||
0x00000001,0x00000002,0x0003003e,0x0000005f,0x00000060,0x00050039,0x00000006,0x00000061,
|
||||
0x0000000b,0x0000005f,0x0003003e,0x00000056,0x00000061,0x0004003d,0x00000034,0x00000063,
|
||||
0x00000036,0x0004003d,0x00000015,0x00000064,0x00000026,0x00050041,0x00000031,0x00000065,
|
||||
0x00000017,0x00000059,0x0004003d,0x00000006,0x00000066,0x00000065,0x00050050,0x00000015,
|
||||
0x00000067,0x00000044,0x00000066,0x00050081,0x00000015,0x00000068,0x00000064,0x00000067,
|
||||
0x00050057,0x00000019,0x00000069,0x00000063,0x00000068,0x0008004f,0x00000007,0x0000006b,
|
||||
0x00000069,0x00000069,0x00000000,0x00000001,0x00000002,0x0003003e,0x0000006a,0x0000006b,
|
||||
0x00050039,0x00000006,0x0000006c,0x0000000b,0x0000006a,0x0003003e,0x00000062,0x0000006c,
|
||||
0x0004003d,0x00000006,0x0000006f,0x00000032,0x0004003d,0x00000006,0x00000070,0x0000003d,
|
||||
0x00050083,0x00000006,0x00000071,0x0000006f,0x00000070,0x0006000c,0x00000006,0x00000072,
|
||||
0x00000001,0x00000004,0x00000071,0x0004003d,0x00000006,0x00000073,0x00000032,0x0004003d,
|
||||
0x00000006,0x00000074,0x0000004b,0x00050083,0x00000006,0x00000075,0x00000073,0x00000074,
|
||||
0x0006000c,0x00000006,0x00000076,0x00000001,0x00000004,0x00000075,0x0004003d,0x00000006,
|
||||
0x00000077,0x00000032,0x0004003d,0x00000006,0x00000078,0x00000056,0x00050083,0x00000006,
|
||||
0x00000079,0x00000077,0x00000078,0x0006000c,0x00000006,0x0000007a,0x00000001,0x00000004,
|
||||
0x00000079,0x0004003d,0x00000006,0x0000007b,0x00000032,0x0004003d,0x00000006,0x0000007c,
|
||||
0x00000062,0x00050083,0x00000006,0x0000007d,0x0000007b,0x0000007c,0x0006000c,0x00000006,
|
||||
0x0000007e,0x00000001,0x00000004,0x0000007d,0x00070050,0x00000019,0x0000007f,0x00000072,
|
||||
0x00000076,0x0000007a,0x0000007e,0x0003003e,0x0000006e,0x0000007f,0x000100fd,0x00010038,
|
||||
0x00050036,0x00000006,0x0000000b,0x00000000,0x00000009,0x00030037,0x00000008,0x0000000a,
|
||||
0x000200f8,0x0000000c,0x0004003d,0x00000007,0x0000000d,0x0000000a,0x00050094,0x00000006,
|
||||
0x00000012,0x0000000d,0x00000011,0x000200fe,0x00000012,0x00010038
|
||||
0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x000000d9,0x000000e1,0x00030010,
|
||||
0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x000a0004,0x475f4c47,0x4c474f4f,
|
||||
0x70635f45,0x74735f70,0x5f656c79,0x656e696c,0x7269645f,0x69746365,0x00006576,0x00080004,
|
||||
0x475f4c47,0x4c474f4f,0x6e695f45,0x64756c63,0x69645f65,0x74636572,0x00657669,0x00040005,
|
||||
0x00000004,0x6e69616d,0x00000000,0x000a0005,0x00000011,0x41414d53,0x65676445,0x65746544,
|
||||
0x6f697463,0x2853566e,0x3b326676,0x5b346676,0x003b5d33,0x00050005,0x0000000f,0x63786574,
|
||||
0x64726f6f,0x00000000,0x00040005,0x00000010,0x7366666f,0x00007465,0x000c0005,0x0000001a,
|
||||
0x41414d53,0x616d754c,0x65676445,0x65746544,0x6f697463,0x2853506e,0x3b326676,0x5b346676,
|
||||
0x733b5d33,0x003b3132,0x00050005,0x00000017,0x63786574,0x64726f6f,0x00000000,0x00040005,
|
||||
0x00000018,0x7366666f,0x00007465,0x00050005,0x00000019,0x6f6c6f63,0x78655472,0x00000000,
|
||||
0x00050005,0x0000001e,0x736e6f43,0x746e6174,0x00000073,0x00040006,0x0000001e,0x00000000,
|
||||
0x0063646e,0x00050006,0x0000001e,0x00000001,0x7274656d,0x00736369,0x00030005,0x00000020,
|
||||
0x00006370,0x00050005,0x00000041,0x65726874,0x6c6f6873,0x00000064,0x00040005,0x00000046,
|
||||
0x67696577,0x00737468,0x00030005,0x0000004c,0x0000004c,0x00040005,0x00000053,0x66656c4c,
|
||||
0x00000074,0x00040005,0x0000005c,0x706f744c,0x00000000,0x00040005,0x00000065,0x746c6564,
|
||||
0x00000061,0x00040005,0x00000073,0x65676465,0x00000073,0x00040005,0x00000080,0x6769724c,
|
||||
0x00007468,0x00040005,0x00000089,0x746f624c,0x006d6f74,0x00050005,0x0000009e,0x4478616d,
|
||||
0x61746c65,0x00000000,0x00050005,0x000000a4,0x66656c4c,0x66656c74,0x00000074,0x00040005,
|
||||
0x000000ad,0x706f744c,0x00706f74,0x00050005,0x000000c6,0x616e6966,0x6c65446c,0x00006174,
|
||||
0x00060005,0x000000d9,0x67617266,0x43786554,0x64726f6f,0x00000000,0x00040005,0x000000da,
|
||||
0x7366666f,0x00007465,0x00040005,0x000000db,0x61726170,0x0000006d,0x00040005,0x000000dd,
|
||||
0x61726170,0x0000006d,0x00050005,0x000000e1,0x4374756f,0x726f6c6f,0x00000000,0x00060005,
|
||||
0x000000e2,0x75706e49,0x78655474,0x65727574,0x00000000,0x00040005,0x000000e3,0x61726170,
|
||||
0x0000006d,0x00040005,0x000000e5,0x61726170,0x0000006d,0x00030047,0x0000001e,0x00000002,
|
||||
0x00050048,0x0000001e,0x00000000,0x00000023,0x00000000,0x00050048,0x0000001e,0x00000001,
|
||||
0x00000023,0x00000010,0x00040047,0x000000d9,0x0000001e,0x00000000,0x00040047,0x000000e1,
|
||||
0x0000001e,0x00000000,0x00040047,0x000000e2,0x00000021,0x00000000,0x00040047,0x000000e2,
|
||||
0x00000022,0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,
|
||||
0x00000006,0x00000020,0x00040017,0x00000007,0x00000006,0x00000002,0x00040020,0x00000008,
|
||||
0x00000007,0x00000007,0x00040017,0x00000009,0x00000006,0x00000004,0x00040015,0x0000000a,
|
||||
0x00000020,0x00000000,0x0004002b,0x0000000a,0x0000000b,0x00000003,0x0004001c,0x0000000c,
|
||||
0x00000009,0x0000000b,0x00040020,0x0000000d,0x00000007,0x0000000c,0x00050021,0x0000000e,
|
||||
0x00000002,0x00000008,0x0000000d,0x00090019,0x00000013,0x00000006,0x00000001,0x00000000,
|
||||
0x00000000,0x00000000,0x00000001,0x00000000,0x0003001b,0x00000014,0x00000013,0x00040020,
|
||||
0x00000015,0x00000000,0x00000014,0x00060021,0x00000016,0x00000007,0x00000008,0x0000000d,
|
||||
0x00000015,0x00040015,0x0000001c,0x00000020,0x00000001,0x0004002b,0x0000001c,0x0000001d,
|
||||
0x00000000,0x0004001e,0x0000001e,0x00000009,0x00000009,0x00040020,0x0000001f,0x00000009,
|
||||
0x0000001e,0x0004003b,0x0000001f,0x00000020,0x00000009,0x0004002b,0x0000001c,0x00000021,
|
||||
0x00000001,0x00040020,0x00000022,0x00000009,0x00000009,0x0004002b,0x00000006,0x00000026,
|
||||
0xbf800000,0x0004002b,0x00000006,0x00000027,0x00000000,0x0007002c,0x00000009,0x00000028,
|
||||
0x00000026,0x00000027,0x00000027,0x00000026,0x00040020,0x0000002c,0x00000007,0x00000009,
|
||||
0x0004002b,0x00000006,0x00000031,0x3f800000,0x0007002c,0x00000009,0x00000032,0x00000031,
|
||||
0x00000027,0x00000027,0x00000031,0x0004002b,0x0000001c,0x00000037,0x00000002,0x0004002b,
|
||||
0x00000006,0x0000003b,0xc0000000,0x0007002c,0x00000009,0x0000003c,0x0000003b,0x00000027,
|
||||
0x00000027,0x0000003b,0x0004002b,0x00000006,0x00000042,0x3dcccccd,0x0005002c,0x00000007,
|
||||
0x00000043,0x00000042,0x00000042,0x00040017,0x00000044,0x00000006,0x00000003,0x00040020,
|
||||
0x00000045,0x00000007,0x00000044,0x0004002b,0x00000006,0x00000047,0x3e59b3d0,0x0004002b,
|
||||
0x00000006,0x00000048,0x3f371759,0x0004002b,0x00000006,0x00000049,0x3d93dd98,0x0006002c,
|
||||
0x00000044,0x0000004a,0x00000047,0x00000048,0x00000049,0x00040020,0x0000004b,0x00000007,
|
||||
0x00000006,0x0004002b,0x0000000a,0x0000006d,0x00000000,0x0004002b,0x0000000a,0x00000070,
|
||||
0x00000001,0x0005002c,0x00000007,0x00000079,0x00000031,0x00000031,0x00020014,0x0000007b,
|
||||
0x0004002b,0x0000000a,0x00000099,0x00000002,0x0004002b,0x00000006,0x000000cd,0x40000000,
|
||||
0x00040020,0x000000d8,0x00000001,0x00000007,0x0004003b,0x000000d8,0x000000d9,0x00000001,
|
||||
0x00040020,0x000000e0,0x00000003,0x00000009,0x0004003b,0x000000e0,0x000000e1,0x00000003,
|
||||
0x0004003b,0x00000015,0x000000e2,0x00000000,0x00050036,0x00000002,0x00000004,0x00000000,
|
||||
0x00000003,0x000200f8,0x00000005,0x0004003b,0x0000000d,0x000000da,0x00000007,0x0004003b,
|
||||
0x00000008,0x000000db,0x00000007,0x0004003b,0x0000000d,0x000000dd,0x00000007,0x0004003b,
|
||||
0x00000008,0x000000e3,0x00000007,0x0004003b,0x0000000d,0x000000e5,0x00000007,0x0004003d,
|
||||
0x00000007,0x000000dc,0x000000d9,0x0003003e,0x000000db,0x000000dc,0x00060039,0x00000002,
|
||||
0x000000de,0x00000011,0x000000db,0x000000dd,0x0004003d,0x0000000c,0x000000df,0x000000dd,
|
||||
0x0003003e,0x000000da,0x000000df,0x0004003d,0x00000007,0x000000e4,0x000000d9,0x0003003e,
|
||||
0x000000e3,0x000000e4,0x0004003d,0x0000000c,0x000000e6,0x000000da,0x0003003e,0x000000e5,
|
||||
0x000000e6,0x00070039,0x00000007,0x000000e7,0x0000001a,0x000000e3,0x000000e5,0x000000e2,
|
||||
0x00050051,0x00000006,0x000000e8,0x000000e7,0x00000000,0x00050051,0x00000006,0x000000e9,
|
||||
0x000000e7,0x00000001,0x00070050,0x00000009,0x000000ea,0x000000e8,0x000000e9,0x00000027,
|
||||
0x00000027,0x0003003e,0x000000e1,0x000000ea,0x000100fd,0x00010038,0x00050036,0x00000002,
|
||||
0x00000011,0x00000000,0x0000000e,0x00030037,0x00000008,0x0000000f,0x00030037,0x0000000d,
|
||||
0x00000010,0x000200f8,0x00000012,0x00050041,0x00000022,0x00000023,0x00000020,0x00000021,
|
||||
0x0004003d,0x00000009,0x00000024,0x00000023,0x0009004f,0x00000009,0x00000025,0x00000024,
|
||||
0x00000024,0x00000000,0x00000001,0x00000000,0x00000001,0x0004003d,0x00000007,0x00000029,
|
||||
0x0000000f,0x0009004f,0x00000009,0x0000002a,0x00000029,0x00000029,0x00000000,0x00000001,
|
||||
0x00000000,0x00000001,0x0008000c,0x00000009,0x0000002b,0x00000001,0x00000032,0x00000025,
|
||||
0x00000028,0x0000002a,0x00050041,0x0000002c,0x0000002d,0x00000010,0x0000001d,0x0003003e,
|
||||
0x0000002d,0x0000002b,0x00050041,0x00000022,0x0000002e,0x00000020,0x00000021,0x0004003d,
|
||||
0x00000009,0x0000002f,0x0000002e,0x0009004f,0x00000009,0x00000030,0x0000002f,0x0000002f,
|
||||
0x00000000,0x00000001,0x00000000,0x00000001,0x0004003d,0x00000007,0x00000033,0x0000000f,
|
||||
0x0009004f,0x00000009,0x00000034,0x00000033,0x00000033,0x00000000,0x00000001,0x00000000,
|
||||
0x00000001,0x0008000c,0x00000009,0x00000035,0x00000001,0x00000032,0x00000030,0x00000032,
|
||||
0x00000034,0x00050041,0x0000002c,0x00000036,0x00000010,0x00000021,0x0003003e,0x00000036,
|
||||
0x00000035,0x00050041,0x00000022,0x00000038,0x00000020,0x00000021,0x0004003d,0x00000009,
|
||||
0x00000039,0x00000038,0x0009004f,0x00000009,0x0000003a,0x00000039,0x00000039,0x00000000,
|
||||
0x00000001,0x00000000,0x00000001,0x0004003d,0x00000007,0x0000003d,0x0000000f,0x0009004f,
|
||||
0x00000009,0x0000003e,0x0000003d,0x0000003d,0x00000000,0x00000001,0x00000000,0x00000001,
|
||||
0x0008000c,0x00000009,0x0000003f,0x00000001,0x00000032,0x0000003a,0x0000003c,0x0000003e,
|
||||
0x00050041,0x0000002c,0x00000040,0x00000010,0x00000037,0x0003003e,0x00000040,0x0000003f,
|
||||
0x000100fd,0x00010038,0x00050036,0x00000007,0x0000001a,0x00000000,0x00000016,0x00030037,
|
||||
0x00000008,0x00000017,0x00030037,0x0000000d,0x00000018,0x00030037,0x00000015,0x00000019,
|
||||
0x000200f8,0x0000001b,0x0004003b,0x00000008,0x00000041,0x00000007,0x0004003b,0x00000045,
|
||||
0x00000046,0x00000007,0x0004003b,0x0000004b,0x0000004c,0x00000007,0x0004003b,0x0000004b,
|
||||
0x00000053,0x00000007,0x0004003b,0x0000004b,0x0000005c,0x00000007,0x0004003b,0x0000002c,
|
||||
0x00000065,0x00000007,0x0004003b,0x00000008,0x00000073,0x00000007,0x0004003b,0x0000004b,
|
||||
0x00000080,0x00000007,0x0004003b,0x0000004b,0x00000089,0x00000007,0x0004003b,0x00000008,
|
||||
0x0000009e,0x00000007,0x0004003b,0x0000004b,0x000000a4,0x00000007,0x0004003b,0x0000004b,
|
||||
0x000000ad,0x00000007,0x0004003b,0x0000004b,0x000000c6,0x00000007,0x0003003e,0x00000041,
|
||||
0x00000043,0x0003003e,0x00000046,0x0000004a,0x0004003d,0x00000014,0x0000004d,0x00000019,
|
||||
0x0004003d,0x00000007,0x0000004e,0x00000017,0x00050057,0x00000009,0x0000004f,0x0000004d,
|
||||
0x0000004e,0x0008004f,0x00000044,0x00000050,0x0000004f,0x0000004f,0x00000000,0x00000001,
|
||||
0x00000002,0x0004003d,0x00000044,0x00000051,0x00000046,0x00050094,0x00000006,0x00000052,
|
||||
0x00000050,0x00000051,0x0003003e,0x0000004c,0x00000052,0x0004003d,0x00000014,0x00000054,
|
||||
0x00000019,0x00050041,0x0000002c,0x00000055,0x00000018,0x0000001d,0x0004003d,0x00000009,
|
||||
0x00000056,0x00000055,0x0007004f,0x00000007,0x00000057,0x00000056,0x00000056,0x00000000,
|
||||
0x00000001,0x00050057,0x00000009,0x00000058,0x00000054,0x00000057,0x0008004f,0x00000044,
|
||||
0x00000059,0x00000058,0x00000058,0x00000000,0x00000001,0x00000002,0x0004003d,0x00000044,
|
||||
0x0000005a,0x00000046,0x00050094,0x00000006,0x0000005b,0x00000059,0x0000005a,0x0003003e,
|
||||
0x00000053,0x0000005b,0x0004003d,0x00000014,0x0000005d,0x00000019,0x00050041,0x0000002c,
|
||||
0x0000005e,0x00000018,0x0000001d,0x0004003d,0x00000009,0x0000005f,0x0000005e,0x0007004f,
|
||||
0x00000007,0x00000060,0x0000005f,0x0000005f,0x00000002,0x00000003,0x00050057,0x00000009,
|
||||
0x00000061,0x0000005d,0x00000060,0x0008004f,0x00000044,0x00000062,0x00000061,0x00000061,
|
||||
0x00000000,0x00000001,0x00000002,0x0004003d,0x00000044,0x00000063,0x00000046,0x00050094,
|
||||
0x00000006,0x00000064,0x00000062,0x00000063,0x0003003e,0x0000005c,0x00000064,0x0004003d,
|
||||
0x00000006,0x00000066,0x0000004c,0x0004003d,0x00000006,0x00000067,0x00000053,0x0004003d,
|
||||
0x00000006,0x00000068,0x0000005c,0x00050050,0x00000007,0x00000069,0x00000067,0x00000068,
|
||||
0x00050050,0x00000007,0x0000006a,0x00000066,0x00000066,0x00050083,0x00000007,0x0000006b,
|
||||
0x0000006a,0x00000069,0x0006000c,0x00000007,0x0000006c,0x00000001,0x00000004,0x0000006b,
|
||||
0x00050041,0x0000004b,0x0000006e,0x00000065,0x0000006d,0x00050051,0x00000006,0x0000006f,
|
||||
0x0000006c,0x00000000,0x0003003e,0x0000006e,0x0000006f,0x00050041,0x0000004b,0x00000071,
|
||||
0x00000065,0x00000070,0x00050051,0x00000006,0x00000072,0x0000006c,0x00000001,0x0003003e,
|
||||
0x00000071,0x00000072,0x0004003d,0x00000007,0x00000074,0x00000041,0x0004003d,0x00000009,
|
||||
0x00000075,0x00000065,0x0007004f,0x00000007,0x00000076,0x00000075,0x00000075,0x00000000,
|
||||
0x00000001,0x0007000c,0x00000007,0x00000077,0x00000001,0x00000030,0x00000074,0x00000076,
|
||||
0x0003003e,0x00000073,0x00000077,0x0004003d,0x00000007,0x00000078,0x00000073,0x00050094,
|
||||
0x00000006,0x0000007a,0x00000078,0x00000079,0x000500b4,0x0000007b,0x0000007c,0x0000007a,
|
||||
0x00000027,0x000300f7,0x0000007e,0x00000000,0x000400fa,0x0000007c,0x0000007d,0x0000007e,
|
||||
0x000200f8,0x0000007d,0x000100fc,0x000200f8,0x0000007e,0x0004003d,0x00000014,0x00000081,
|
||||
0x00000019,0x00050041,0x0000002c,0x00000082,0x00000018,0x00000021,0x0004003d,0x00000009,
|
||||
0x00000083,0x00000082,0x0007004f,0x00000007,0x00000084,0x00000083,0x00000083,0x00000000,
|
||||
0x00000001,0x00050057,0x00000009,0x00000085,0x00000081,0x00000084,0x0008004f,0x00000044,
|
||||
0x00000086,0x00000085,0x00000085,0x00000000,0x00000001,0x00000002,0x0004003d,0x00000044,
|
||||
0x00000087,0x00000046,0x00050094,0x00000006,0x00000088,0x00000086,0x00000087,0x0003003e,
|
||||
0x00000080,0x00000088,0x0004003d,0x00000014,0x0000008a,0x00000019,0x00050041,0x0000002c,
|
||||
0x0000008b,0x00000018,0x00000021,0x0004003d,0x00000009,0x0000008c,0x0000008b,0x0007004f,
|
||||
0x00000007,0x0000008d,0x0000008c,0x0000008c,0x00000002,0x00000003,0x00050057,0x00000009,
|
||||
0x0000008e,0x0000008a,0x0000008d,0x0008004f,0x00000044,0x0000008f,0x0000008e,0x0000008e,
|
||||
0x00000000,0x00000001,0x00000002,0x0004003d,0x00000044,0x00000090,0x00000046,0x00050094,
|
||||
0x00000006,0x00000091,0x0000008f,0x00000090,0x0003003e,0x00000089,0x00000091,0x0004003d,
|
||||
0x00000006,0x00000092,0x0000004c,0x0004003d,0x00000006,0x00000093,0x00000080,0x0004003d,
|
||||
0x00000006,0x00000094,0x00000089,0x00050050,0x00000007,0x00000095,0x00000093,0x00000094,
|
||||
0x00050050,0x00000007,0x00000096,0x00000092,0x00000092,0x00050083,0x00000007,0x00000097,
|
||||
0x00000096,0x00000095,0x0006000c,0x00000007,0x00000098,0x00000001,0x00000004,0x00000097,
|
||||
0x00050041,0x0000004b,0x0000009a,0x00000065,0x00000099,0x00050051,0x00000006,0x0000009b,
|
||||
0x00000098,0x00000000,0x0003003e,0x0000009a,0x0000009b,0x00050041,0x0000004b,0x0000009c,
|
||||
0x00000065,0x0000000b,0x00050051,0x00000006,0x0000009d,0x00000098,0x00000001,0x0003003e,
|
||||
0x0000009c,0x0000009d,0x0004003d,0x00000009,0x0000009f,0x00000065,0x0007004f,0x00000007,
|
||||
0x000000a0,0x0000009f,0x0000009f,0x00000000,0x00000001,0x0004003d,0x00000009,0x000000a1,
|
||||
0x00000065,0x0007004f,0x00000007,0x000000a2,0x000000a1,0x000000a1,0x00000002,0x00000003,
|
||||
0x0007000c,0x00000007,0x000000a3,0x00000001,0x00000028,0x000000a0,0x000000a2,0x0003003e,
|
||||
0x0000009e,0x000000a3,0x0004003d,0x00000014,0x000000a5,0x00000019,0x00050041,0x0000002c,
|
||||
0x000000a6,0x00000018,0x00000037,0x0004003d,0x00000009,0x000000a7,0x000000a6,0x0007004f,
|
||||
0x00000007,0x000000a8,0x000000a7,0x000000a7,0x00000000,0x00000001,0x00050057,0x00000009,
|
||||
0x000000a9,0x000000a5,0x000000a8,0x0008004f,0x00000044,0x000000aa,0x000000a9,0x000000a9,
|
||||
0x00000000,0x00000001,0x00000002,0x0004003d,0x00000044,0x000000ab,0x00000046,0x00050094,
|
||||
0x00000006,0x000000ac,0x000000aa,0x000000ab,0x0003003e,0x000000a4,0x000000ac,0x0004003d,
|
||||
0x00000014,0x000000ae,0x00000019,0x00050041,0x0000002c,0x000000af,0x00000018,0x00000037,
|
||||
0x0004003d,0x00000009,0x000000b0,0x000000af,0x0007004f,0x00000007,0x000000b1,0x000000b0,
|
||||
0x000000b0,0x00000002,0x00000003,0x00050057,0x00000009,0x000000b2,0x000000ae,0x000000b1,
|
||||
0x0008004f,0x00000044,0x000000b3,0x000000b2,0x000000b2,0x00000000,0x00000001,0x00000002,
|
||||
0x0004003d,0x00000044,0x000000b4,0x00000046,0x00050094,0x00000006,0x000000b5,0x000000b3,
|
||||
0x000000b4,0x0003003e,0x000000ad,0x000000b5,0x0004003d,0x00000006,0x000000b6,0x00000053,
|
||||
0x0004003d,0x00000006,0x000000b7,0x0000005c,0x00050050,0x00000007,0x000000b8,0x000000b6,
|
||||
0x000000b7,0x0004003d,0x00000006,0x000000b9,0x000000a4,0x0004003d,0x00000006,0x000000ba,
|
||||
0x000000ad,0x00050050,0x00000007,0x000000bb,0x000000b9,0x000000ba,0x00050083,0x00000007,
|
||||
0x000000bc,0x000000b8,0x000000bb,0x0006000c,0x00000007,0x000000bd,0x00000001,0x00000004,
|
||||
0x000000bc,0x00050041,0x0000004b,0x000000be,0x00000065,0x00000099,0x00050051,0x00000006,
|
||||
0x000000bf,0x000000bd,0x00000000,0x0003003e,0x000000be,0x000000bf,0x00050041,0x0000004b,
|
||||
0x000000c0,0x00000065,0x0000000b,0x00050051,0x00000006,0x000000c1,0x000000bd,0x00000001,
|
||||
0x0003003e,0x000000c0,0x000000c1,0x0004003d,0x00000007,0x000000c2,0x0000009e,0x0004003d,
|
||||
0x00000009,0x000000c3,0x00000065,0x0007004f,0x00000007,0x000000c4,0x000000c3,0x000000c3,
|
||||
0x00000002,0x00000003,0x0007000c,0x00000007,0x000000c5,0x00000001,0x00000028,0x000000c2,
|
||||
0x000000c4,0x0003003e,0x0000009e,0x000000c5,0x00050041,0x0000004b,0x000000c7,0x0000009e,
|
||||
0x0000006d,0x0004003d,0x00000006,0x000000c8,0x000000c7,0x00050041,0x0000004b,0x000000c9,
|
||||
0x0000009e,0x00000070,0x0004003d,0x00000006,0x000000ca,0x000000c9,0x0007000c,0x00000006,
|
||||
0x000000cb,0x00000001,0x00000028,0x000000c8,0x000000ca,0x0003003e,0x000000c6,0x000000cb,
|
||||
0x0004003d,0x00000006,0x000000cc,0x000000c6,0x0004003d,0x00000009,0x000000ce,0x00000065,
|
||||
0x0007004f,0x00000007,0x000000cf,0x000000ce,0x000000ce,0x00000000,0x00000001,0x0005008e,
|
||||
0x00000007,0x000000d0,0x000000cf,0x000000cd,0x00050050,0x00000007,0x000000d1,0x000000cc,
|
||||
0x000000cc,0x0007000c,0x00000007,0x000000d2,0x00000001,0x00000030,0x000000d1,0x000000d0,
|
||||
0x0004003d,0x00000007,0x000000d3,0x00000073,0x00050085,0x00000007,0x000000d4,0x000000d3,
|
||||
0x000000d2,0x0003003e,0x00000073,0x000000d4,0x0004003d,0x00000007,0x000000d5,0x00000073,
|
||||
0x000200fe,0x000000d5,0x00010038
|
||||
};
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,153 +1,25 @@
|
||||
#version 450
|
||||
#extension GL_GOOGLE_include_directive : require
|
||||
|
||||
layout(location = 0) in vec2 fragTexCoord;
|
||||
layout(location = 0) out vec4 outColor;
|
||||
layout(set = 0, binding = 0) uniform sampler2D EdgeTexture;
|
||||
layout(set = 1, binding = 0) uniform sampler2D AreaTexture;
|
||||
layout(set = 2, binding = 0) uniform sampler2D SearchTexture;
|
||||
layout(push_constant) uniform Constants {
|
||||
vec4 ndc;
|
||||
vec2 resolution;
|
||||
float extra;
|
||||
float pad;
|
||||
vec4 metrics; // 1/width, 1/height, width, height
|
||||
} pc;
|
||||
|
||||
vec4 edgeAt(vec2 uv, vec2 px) {
|
||||
vec2 edgeUV = clamp(uv, px * 0.5, vec2(1.0) - px * 0.5);
|
||||
vec4 e = textureLod(EdgeTexture, edgeUV, 0.0);
|
||||
e.a = edgeUV.y >= 1.0 - px.y ? 0.0 : e.a;
|
||||
return e;
|
||||
}
|
||||
|
||||
float verticalEdge(vec2 uv, vec2 px) {
|
||||
vec4 e = edgeAt(uv, px);
|
||||
return max(e.r, e.g);
|
||||
}
|
||||
|
||||
float horizontalEdge(vec2 uv, vec2 px) {
|
||||
vec4 e = edgeAt(uv, px);
|
||||
return max(e.b, e.a);
|
||||
}
|
||||
|
||||
float measureRun(vec2 origin, vec2 texel, vec2 tangent,
|
||||
bool verticalLine, float limit, bool positive) {
|
||||
float run = 0.0;
|
||||
for (int i = 1; i <= 6; ++i) {
|
||||
vec2 probe = origin + tangent * float(i) * (positive ? 1.0 : -1.0);
|
||||
ivec2 index = ivec2(floor(probe * pc.resolution));
|
||||
ivec2 size = ivec2(pc.resolution);
|
||||
if (any(lessThan(index, ivec2(0))) ||
|
||||
any(greaterThanEqual(index, size))) {
|
||||
break;
|
||||
}
|
||||
float edge = verticalLine
|
||||
? verticalEdge(probe, texel)
|
||||
: horizontalEdge(probe, texel);
|
||||
if (edge <= limit * 0.65) {
|
||||
break;
|
||||
}
|
||||
run = float(i);
|
||||
}
|
||||
return run;
|
||||
}
|
||||
#define SMAA_RT_METRICS pc.metrics
|
||||
#define SMAA_GLSL_4
|
||||
#define SMAA_PRESET_HIGH
|
||||
#include "SMAA.hlsl"
|
||||
|
||||
void main() {
|
||||
vec2 px = 1.0 / max(pc.resolution, vec2(1.0));
|
||||
vec2 uv = clamp(fragTexCoord, px * 0.5, vec2(1.0) - px * 0.5);
|
||||
vec4 e = edgeAt(uv, px);
|
||||
|
||||
float dL = e.r;
|
||||
float dR = e.g;
|
||||
float dU = e.b;
|
||||
float dD = e.a;
|
||||
float vertical = max(dL, dR);
|
||||
float horizontal = max(dU, dD);
|
||||
float strongest = max(vertical, horizontal);
|
||||
float threshold = max(0.045, strongest * 0.12);
|
||||
|
||||
if (strongest <= threshold) {
|
||||
outColor = vec4(0.0, 0.5, 0.5, 0.0);
|
||||
return;
|
||||
}
|
||||
|
||||
bool verticalLine;
|
||||
float negativeRun = 0.0;
|
||||
float positiveRun = 0.0;
|
||||
bool runsMeasured = false;
|
||||
|
||||
if (vertical > horizontal) {
|
||||
verticalLine = true;
|
||||
} else if (horizontal > vertical) {
|
||||
verticalLine = false;
|
||||
} else {
|
||||
float vNeg = measureRun(uv, px, vec2(0.0, px.y), true, threshold, false);
|
||||
float vPos = measureRun(uv, px, vec2(0.0, px.y), true, threshold, true);
|
||||
float hNeg = measureRun(uv, px, vec2(px.x, 0.0), false, threshold, false);
|
||||
float hPos = measureRun(uv, px, vec2(px.x, 0.0), false, threshold, true);
|
||||
verticalLine = (vNeg + vPos) >= (hNeg + hPos);
|
||||
negativeRun = verticalLine ? vNeg : hNeg;
|
||||
positiveRun = verticalLine ? vPos : hPos;
|
||||
runsMeasured = true;
|
||||
}
|
||||
|
||||
vec2 tangent = verticalLine ? vec2(0.0, px.y) : vec2(px.x, 0.0);
|
||||
vec2 normal = verticalLine
|
||||
? vec2(dL >= dR ? -1.0 : 1.0, 0.0)
|
||||
: vec2(0.0, dU >= dD ? -1.0 : 1.0);
|
||||
|
||||
if (!runsMeasured) {
|
||||
negativeRun = measureRun(uv, px, tangent, verticalLine, threshold, false);
|
||||
positiveRun = measureRun(uv, px, tangent, verticalLine, threshold, true);
|
||||
}
|
||||
|
||||
float span = negativeRun + positiveRun;
|
||||
float edgeConfidence = smoothstep(threshold, threshold * 2.5, strongest);
|
||||
|
||||
vec4 nw = edgeAt(uv + vec2(-px.x, -px.y), px);
|
||||
vec4 ne = edgeAt(uv + vec2(px.x, -px.y), px);
|
||||
vec4 sw = edgeAt(uv + vec2(-px.x, px.y), px);
|
||||
vec4 se = edgeAt(uv + vec2(px.x, px.y), px);
|
||||
|
||||
float runEndpointPattern = clamp(
|
||||
abs(negativeRun - positiveRun) / max(span, 1.0), 0.0, 1.0);
|
||||
float crossingA = verticalLine
|
||||
? abs(nw.a - ne.a)
|
||||
: abs(nw.g - sw.g);
|
||||
float crossingB = verticalLine
|
||||
? abs(sw.b - se.b)
|
||||
: abs(ne.r - se.r);
|
||||
float crossingContrast = abs(crossingA - crossingB);
|
||||
float crossingPattern = smoothstep(threshold, threshold * 2.5, crossingContrast);
|
||||
vec4 edgeMin = min(min(nw, ne), min(sw, se));
|
||||
vec4 edgeMax = max(max(nw, ne), max(sw, se));
|
||||
float edgeVariation = max(
|
||||
max(edgeMax.r - edgeMin.r, edgeMax.g - edgeMin.g),
|
||||
max(edgeMax.b - edgeMin.b, edgeMax.a - edgeMin.a));
|
||||
float balancedCrossing = edgeVariation > 0.01
|
||||
? smoothstep(threshold, threshold * 2.5, min(crossingA, crossingB))
|
||||
: 0.0;
|
||||
float endpointPattern = runEndpointPattern > 0.01
|
||||
? max(runEndpointPattern, balancedCrossing)
|
||||
: runEndpointPattern;
|
||||
float endpointArea = endpointPattern / (1.0 + span * 0.055);
|
||||
float areaWeight = 0.38 * crossingPattern * clamp(span / 4.0, 0.0, 1.0);
|
||||
float diagonalContrast = max(
|
||||
max(max(abs(nw.r - se.r), abs(nw.g - se.g)),
|
||||
max(abs(nw.b - se.b), abs(nw.a - se.a))),
|
||||
max(max(abs(ne.r - sw.r), abs(ne.g - sw.g)),
|
||||
max(abs(ne.b - sw.b), abs(ne.a - sw.a))));
|
||||
float cornerFactor = 1.0 - 0.35 * smoothstep(threshold, threshold * 3.0, diagonalContrast);
|
||||
float baseWeight = areaWeight * endpointArea * edgeConfidence * cornerFactor;
|
||||
|
||||
float diagonalStrength = min(vertical, horizontal);
|
||||
float diagonalPattern = smoothstep(threshold, threshold * 2.5, diagonalStrength);
|
||||
float diagonalContinuity = smoothstep(1.0, 3.0, span);
|
||||
float shortDiagonalFallback =
|
||||
(span > 0.0 && span <= 1.0 && crossingContrast <= threshold && diagonalStrength > threshold)
|
||||
? 1.0 : 0.0;
|
||||
float diagonalFallback = 0.16 * diagonalPattern * edgeConfidence
|
||||
* cornerFactor * max(
|
||||
diagonalContinuity * max(crossingPattern, balancedCrossing),
|
||||
shortDiagonalFallback);
|
||||
|
||||
float weight = clamp(max(baseWeight, diagonalFallback), 0.0, 0.42);
|
||||
outColor = vec4(weight, normal.x * 0.5 + 0.5, normal.y * 0.5 + 0.5, 1.0);
|
||||
vec2 pixcoord;
|
||||
vec4 offset[3];
|
||||
SMAABlendingWeightCalculationVS(fragTexCoord, pixcoord, offset);
|
||||
outColor = SMAABlendingWeightCalculationPS(fragTexCoord, pixcoord, offset, EdgeTexture,
|
||||
AreaTexture, SearchTexture, vec4(0.0));
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -343,6 +343,7 @@ volatile int g_hide_shell;
|
||||
|
||||
volatile int g_zero_copy;
|
||||
static int g_zero_copy_paused;
|
||||
static int g_mirror_capture;
|
||||
extern volatile int g_display_buffer_driver;
|
||||
extern void droiddeck_on_overlay_planes(int planes);
|
||||
static int g_overlay_planes_told = -1;
|
||||
@@ -2961,7 +2962,7 @@ static void hdr_note_route(int route, const struct hdr_scene *hs) {
|
||||
static int said = -1, said_tm = -1;
|
||||
static const char *said_why;
|
||||
const int tm = route != 0 && !droiddeck_color_output();
|
||||
if (route == said && tm == said_tm && (route != 1 || hs->why == said_why)) return;
|
||||
if (route == said && tm == said_tm && (route < 1 || route > 2 || hs->why == said_why)) return;
|
||||
int was = said;
|
||||
said = route; said_why = hs->why; said_tm = tm;
|
||||
char name[160] = "the HDR game";
|
||||
@@ -2978,6 +2979,10 @@ static void hdr_note_route(int route, const struct hdr_scene *hs) {
|
||||
"BT2020_PQ", name, hs->why ? hs->why : "?", droiddeck_color_sdr_white());
|
||||
break;
|
||||
case 2:
|
||||
if (g_mirror_capture) {
|
||||
droiddeck_log("color", "Mirror: %s is composed through the screen swapchain", name);
|
||||
break;
|
||||
}
|
||||
if (tm)
|
||||
droiddeck_log("color", "HDR with frame generation for %s, HDR output switched off: the scene is tone-mapped to "
|
||||
"SDR and presented through an SDR screen swapchain", name);
|
||||
@@ -3198,6 +3203,11 @@ static void render_scene(void) {
|
||||
const int cardboard = vkp_cardboard_active();
|
||||
struct hdr_scene hs;
|
||||
int hdr_route = hdr_plan(&dl, w, h, fx_on, framegen, &hs);
|
||||
/* Mirror's PixelCopy cannot see the separate game layer. Keep unimportable frames visible on top. */
|
||||
if (g_mirror_capture && hdr_route != 3 && hs.n_hdr > 0) {
|
||||
hdr_route = 2;
|
||||
hs.why = "Mirror needs the screen swapchain";
|
||||
}
|
||||
const char *hdr_copy = NULL;
|
||||
if (droiddeck_color_hdr_open()) {
|
||||
hdr_note_route(hdr_route, &hs);
|
||||
@@ -3263,16 +3273,16 @@ static void render_scene(void) {
|
||||
else if (rendered && how == 2) droiddeck_color_frame_shown(hs.color, DROIDDECK_HDR_TONEMAPPED, 0);
|
||||
else if (rendered) hdr_copy = "the HDR composition pass is unavailable on this driver";
|
||||
}
|
||||
if (hdr_route == 0 && vkp_quest_layer_presentation() && !framegen && !cardboard && !cursor_on &&
|
||||
if (hdr_route == 0 && !g_mirror_capture && vkp_quest_layer_presentation() && !framegen && !cardboard && !cursor_on &&
|
||||
!ahb_only) {
|
||||
settle_unwaited();
|
||||
rendered = vkp_render(w, h, dl.d, dl.n) == 0;
|
||||
} else if (hdr_route == 0 || hdr_route == 3) {
|
||||
const int pass_on = fx_on || framegen;
|
||||
tell_overlay_planes();
|
||||
const int fg_layer = framegen && hdr_route == 0 && framegen_fits_layer();
|
||||
const int fg_layer = framegen && !g_mirror_capture && hdr_route == 0 && framegen_fits_layer();
|
||||
g_framegen_layer = fg_layer;
|
||||
int li = (g_zero_copy && (!framegen || fg_layer) && !bfi && !cardboard && !cursor_on) ? layer_candidate(&dl, w, h) : -1;
|
||||
int li = (g_zero_copy && !g_mirror_capture && (!framegen || fg_layer) && !bfi && !cardboard && !cursor_on) ? layer_candidate(&dl, w, h) : -1;
|
||||
int over = li >= 0 ? dl.n - 1 - li : 0;
|
||||
const int fx_blocks = (li >= 0 && fx_on && over > 0);
|
||||
if (fx_blocks) { li = -1; over = 0; }
|
||||
@@ -5002,6 +5012,12 @@ const char *droiddeck_client_name(struct wl_client *client) { return client_name
|
||||
struct wl_display *droiddeck_get_display(void) { return g_display; }
|
||||
void droiddeck_request_redraw(void) { schedule_render(); }
|
||||
|
||||
void droiddeck_set_mirror_capture(int on) {
|
||||
if (g_mirror_capture == on) return;
|
||||
g_mirror_capture = on;
|
||||
schedule_render();
|
||||
}
|
||||
|
||||
struct wl_resource *droiddeck_ime_target(void) {
|
||||
struct surface *s;
|
||||
if (g_ime_click && g_ime_click->mapped) return g_ime_click->resource;
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "ahb_swapchain.h"
|
||||
#include "droiddeck_color.h"
|
||||
|
||||
enum host_kind { HOST_CLIPBOARD = 1, HOST_TEXT_COMMIT, HOST_TEXT_PREEDIT, HOST_TEXT_DELETE, HOST_ZERO_COPY, HOST_HDR_OUTPUT, HOST_KEY, HOST_SELECT_GAME_FIELD };
|
||||
enum host_kind { HOST_CLIPBOARD = 1, HOST_TEXT_COMMIT, HOST_TEXT_PREEDIT, HOST_TEXT_DELETE, HOST_ZERO_COPY, HOST_HDR_OUTPUT, HOST_KEY, HOST_SELECT_GAME_FIELD, HOST_MIRROR_CAPTURE };
|
||||
|
||||
struct host_msg {
|
||||
enum host_kind kind;
|
||||
@@ -91,6 +91,9 @@ void droiddeck_host_text_delete(int before, int after) {
|
||||
void droiddeck_host_zero_copy(int on, int live) {
|
||||
host_post(HOST_ZERO_COPY, NULL, 0, on, live);
|
||||
}
|
||||
void droiddeck_host_mirror_capture(int on) {
|
||||
host_post(HOST_MIRROR_CAPTURE, NULL, 0, on, 0);
|
||||
}
|
||||
void droiddeck_host_hdr_output(int on) {
|
||||
host_post(HOST_HDR_OUTPUT, NULL, 0, on, 0);
|
||||
}
|
||||
@@ -271,6 +274,9 @@ static int on_wake(int fd, uint32_t mask, void *data) {
|
||||
case HOST_ZERO_COPY:
|
||||
ahb_swapchain_set_mode(m->a, m->b);
|
||||
break;
|
||||
case HOST_MIRROR_CAPTURE:
|
||||
droiddeck_set_mirror_capture(m->a);
|
||||
break;
|
||||
case HOST_HDR_OUTPUT:
|
||||
droiddeck_color_set_output(m->a);
|
||||
break;
|
||||
|
||||
@@ -29,6 +29,8 @@ void droiddeck_host_text_commit_and_submit(const char *utf8, int len);
|
||||
void droiddeck_host_text_preedit(const char *utf8, int len, int cursor_begin, int cursor_end);
|
||||
void droiddeck_host_text_delete(int before, int after);
|
||||
void droiddeck_host_zero_copy(int on, int live);
|
||||
void droiddeck_host_mirror_capture(int on);
|
||||
void droiddeck_set_mirror_capture(int on);
|
||||
void droiddeck_host_hdr_output(int on);
|
||||
void droiddeck_host_key(int evdev, int state);
|
||||
void droiddeck_host_select_game_field(int copy);
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "smaa_edge_frag.h"
|
||||
#include "smaa_weights_frag.h"
|
||||
#include "smaa_blend_frag.h"
|
||||
#include "smaa_tables.h"
|
||||
#include "toon_frag.h"
|
||||
#include "toon_color_frag.h"
|
||||
#include "hdr_frag.h"
|
||||
@@ -196,6 +197,7 @@ struct pc_sgsr { float ndc[4]; float vp[4]; float edge; };
|
||||
struct pc_easu { float ndc[4]; uint32_t con0[4], con1[4], con2[4], con3[4]; float outW, outH; };
|
||||
struct pc_rcas { float ndc[4]; uint32_t con[4]; float outW, outH; };
|
||||
struct pc_res { float ndc[4]; float res[2]; float extra; float pad; };
|
||||
struct pc_smaa { float ndc[4]; float metrics[4]; };
|
||||
struct pc_color { float ndc[4]; float b, c, g, s; };
|
||||
struct pc_toon_color {
|
||||
float ndc[4]; float res[2]; float b, c, g, s;
|
||||
@@ -230,7 +232,7 @@ static VkDevice g_dev;
|
||||
static VkPhysicalDevice g_pd;
|
||||
static VkPhysicalDeviceMemoryProperties g_mp;
|
||||
static int g_ready;
|
||||
static VkRenderPass g_rp, g_smaa_rp;
|
||||
static VkRenderPass g_rp, g_smaa_edge_rp, g_smaa_weights_rp;
|
||||
static VkDescriptorSetLayout g_dsl;
|
||||
static VkPipelineLayout g_pl;
|
||||
static VkDescriptorPool g_dpool;
|
||||
@@ -247,7 +249,9 @@ static int g_context;
|
||||
#define g_t (g_contexts[g_context].targets)
|
||||
#define g_mid (g_contexts[g_context].mid)
|
||||
#define g_nissrc (g_contexts[g_context].nissrc)
|
||||
static struct fx_target g_smaa_edges, g_smaa_weights;
|
||||
static struct fx_target g_smaa_edges, g_smaa_weights, g_smaa_area, g_smaa_search;
|
||||
static VkBuffer g_smaa_buf;
|
||||
static VkDeviceMemory g_smaa_mem;
|
||||
/* Half set: NIS = nis_luma prepass (scene rgb + luma in alpha, scene size) into g_nissrc, then
|
||||
* nis3 gathers its luma from that alpha, its coefficient banks (nis_coef.h) in a uniform buffer
|
||||
* at descriptor set 1 (g_pl_nis = {g_dsl, g_coef_dsl}, same push-constant range as g_pl).
|
||||
@@ -311,6 +315,7 @@ static void target_destroy(struct fx_target *t) {
|
||||
#define FX_TARGET_USAGE (VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_SAMPLED_BIT | \
|
||||
VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT)
|
||||
#define FX_SCRATCH_USAGE (VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_SAMPLED_BIT)
|
||||
#define SMAA_EDGE_FORMAT VK_FORMAT_R8G8_UNORM
|
||||
|
||||
static int target_ensure_format(struct fx_target *t, int w, int h,
|
||||
VkImageUsageFlags usage, const char *what,
|
||||
@@ -318,8 +323,9 @@ static int target_ensure_format(struct fx_target *t, int w, int h,
|
||||
if (t->img && t->w == w && t->h == h) return 0;
|
||||
target_destroy(t);
|
||||
VkImageCreateInfo ii = {.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO,
|
||||
.flags = VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT, .imageType = VK_IMAGE_TYPE_2D,
|
||||
.format = format, .extent = {(uint32_t)w, (uint32_t)h, 1}, .mipLevels = 1,
|
||||
/* SMAA's own images need no views in other formats, and the GPU is faster without the flag. */
|
||||
.flags = render_pass == g_rp ? VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT : 0,
|
||||
.imageType = VK_IMAGE_TYPE_2D, .format = format, .extent = {(uint32_t)w, (uint32_t)h, 1}, .mipLevels = 1,
|
||||
.arrayLayers = 1, .samples = VK_SAMPLE_COUNT_1_BIT, .tiling = VK_IMAGE_TILING_OPTIMAL,
|
||||
.usage = usage,
|
||||
.sharingMode = VK_SHARING_MODE_EXCLUSIVE, .initialLayout = VK_IMAGE_LAYOUT_UNDEFINED};
|
||||
@@ -337,12 +343,16 @@ static int target_ensure_format(struct fx_target *t, int w, int h,
|
||||
(unsigned long long)req.size, (int)r);
|
||||
target_destroy(t); return -1;
|
||||
}
|
||||
g_vk.BindImageMemory(g_dev, t->img, t->mem, 0);
|
||||
r = g_vk.BindImageMemory(g_dev, t->img, t->mem, 0);
|
||||
if (r != VK_SUCCESS) {
|
||||
droiddeck_log("error", "effects: %s image %dx%d: vkBindImageMemory %d", what, w, h, (int)r);
|
||||
target_destroy(t); return -1;
|
||||
}
|
||||
if (!(t->view = make_view(t->img, format))) { target_destroy(t); return -1; }
|
||||
VkFramebufferCreateInfo fi = {.sType = VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO, .renderPass = render_pass,
|
||||
.attachmentCount = 1, .pAttachments = &t->view, .width = (uint32_t)w,
|
||||
.height = (uint32_t)h, .layers = 1};
|
||||
if (g_vk.CreateFramebuffer(g_dev, &fi, NULL, &t->fb) != VK_SUCCESS) { target_destroy(t); return -1; }
|
||||
if (render_pass && g_vk.CreateFramebuffer(g_dev, &fi, NULL, &t->fb) != VK_SUCCESS) { target_destroy(t); return -1; }
|
||||
if (!(t->ds = alloc_ds(t->view))) { target_destroy(t); return -1; }
|
||||
t->w = w; t->h = h;
|
||||
return 0;
|
||||
@@ -461,6 +471,22 @@ static VkPipeline post_pipeline_for_renderpass(VkShaderModule vert,
|
||||
return p;
|
||||
}
|
||||
|
||||
/* The mapped memory of a new host-visible buffer. On failure: NULL, and the caller frees what there is. */
|
||||
static void *host_buffer(VkDeviceSize size, VkBufferUsageFlags usage, VkBuffer *buf, VkDeviceMemory *mem) {
|
||||
VkBufferCreateInfo bci = {.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO, .size = size,
|
||||
.usage = usage, .sharingMode = VK_SHARING_MODE_EXCLUSIVE};
|
||||
if (g_vk.CreateBuffer(g_dev, &bci, NULL, buf) != VK_SUCCESS) return NULL;
|
||||
VkMemoryRequirements req;
|
||||
g_vk.GetBufferMemoryRequirements(g_dev, *buf, &req);
|
||||
int idx = memtype(req.memoryTypeBits, VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT);
|
||||
if (idx < 0) return NULL;
|
||||
VkMemoryAllocateInfo mai = {.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO, .allocationSize = req.size, .memoryTypeIndex = (uint32_t)idx};
|
||||
if (g_vk.AllocateMemory(g_dev, &mai, NULL, mem) != VK_SUCCESS) return NULL;
|
||||
if (g_vk.BindBufferMemory(g_dev, *buf, *mem, 0) != VK_SUCCESS) return NULL;
|
||||
void *p = NULL;
|
||||
return g_vk.MapMemory(g_dev, *mem, 0, size, 0, &p) == VK_SUCCESS ? p : NULL;
|
||||
}
|
||||
|
||||
static void coef_destroy(void) {
|
||||
if (g_coef_pool) g_vk.DestroyDescriptorPool(g_dev, g_coef_pool, NULL); /* frees g_coef_ds */
|
||||
if (g_coef_buf) g_vk.DestroyBuffer(g_dev, g_coef_buf, NULL);
|
||||
@@ -482,18 +508,8 @@ static int coef_create(void) {
|
||||
VkPipelineLayoutCreateInfo pli = {.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO, .setLayoutCount = 2, .pSetLayouts = sets,
|
||||
.pushConstantRangeCount = 1, .pPushConstantRanges = &pcr};
|
||||
if (g_vk.CreatePipelineLayout(g_dev, &pli, NULL, &g_pl_nis) != VK_SUCCESS) goto fail;
|
||||
VkBufferCreateInfo bci = {.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO, .size = 4096,
|
||||
.usage = VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT, .sharingMode = VK_SHARING_MODE_EXCLUSIVE};
|
||||
if (g_vk.CreateBuffer(g_dev, &bci, NULL, &g_coef_buf) != VK_SUCCESS) goto fail;
|
||||
VkMemoryRequirements req;
|
||||
g_vk.GetBufferMemoryRequirements(g_dev, g_coef_buf, &req);
|
||||
int idx = memtype(req.memoryTypeBits, VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT);
|
||||
if (idx < 0) goto fail;
|
||||
VkMemoryAllocateInfo mai = {.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO, .allocationSize = req.size, .memoryTypeIndex = (uint32_t)idx};
|
||||
if (g_vk.AllocateMemory(g_dev, &mai, NULL, &g_coef_mem) != VK_SUCCESS) goto fail;
|
||||
if (g_vk.BindBufferMemory(g_dev, g_coef_buf, g_coef_mem, 0) != VK_SUCCESS) goto fail;
|
||||
void *p = NULL;
|
||||
if (g_vk.MapMemory(g_dev, g_coef_mem, 0, 4096, 0, &p) != VK_SUCCESS || !p) goto fail;
|
||||
void *p = host_buffer(4096, VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT, &g_coef_buf, &g_coef_mem);
|
||||
if (!p) goto fail;
|
||||
memcpy(p, kNisCoefScale, sizeof(kNisCoefScale));
|
||||
memcpy((char *)p + sizeof(kNisCoefScale), kNisCoefUsm, sizeof(kNisCoefUsm));
|
||||
g_vk.UnmapMemory(g_dev, g_coef_mem);
|
||||
@@ -513,6 +529,29 @@ fail:
|
||||
return -1;
|
||||
}
|
||||
|
||||
static void smaa_tables_destroy(void) {
|
||||
target_destroy(&g_smaa_area); target_destroy(&g_smaa_search);
|
||||
if (g_smaa_buf) g_vk.DestroyBuffer(g_dev, g_smaa_buf, NULL);
|
||||
if (g_smaa_mem) g_vk.FreeMemory(g_dev, g_smaa_mem, NULL);
|
||||
g_smaa_buf = VK_NULL_HANDLE; g_smaa_mem = VK_NULL_HANDLE;
|
||||
}
|
||||
|
||||
static int smaa_tables_ensure(void) {
|
||||
if (g_smaa_buf) return 0;
|
||||
const VkImageUsageFlags usage = VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT;
|
||||
unsigned char *p = NULL;
|
||||
if (target_ensure_format(&g_smaa_area, SMAA_AREA_W, SMAA_AREA_H, usage, "SMAA area table",
|
||||
VK_FORMAT_R8G8_UNORM, VK_NULL_HANDLE) == 0 &&
|
||||
target_ensure_format(&g_smaa_search, SMAA_SEARCH_W, SMAA_SEARCH_H, usage, "SMAA search table",
|
||||
VK_FORMAT_R8_UNORM, VK_NULL_HANDLE) == 0)
|
||||
p = host_buffer(sizeof(kSmaaArea) + sizeof(kSmaaSearch), VK_BUFFER_USAGE_TRANSFER_SRC_BIT, &g_smaa_buf, &g_smaa_mem);
|
||||
if (!p) { smaa_tables_destroy(); return -1; }
|
||||
memcpy(p, kSmaaArea, sizeof(kSmaaArea));
|
||||
memcpy(p + sizeof(kSmaaArea), kSmaaSearch, sizeof(kSmaaSearch));
|
||||
g_vk.UnmapMemory(g_dev, g_smaa_mem);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* nis_luma keeps luma in the target's alpha: only formats with at least 8 alpha bits (not the
|
||||
* 2-bit alpha of the 10-bit HDR composition format) can hold it. */
|
||||
static int fx_alpha_holds_luma(VkFormat f) {
|
||||
@@ -540,16 +579,19 @@ static void objects_destroy(void) {
|
||||
}
|
||||
g_context = saved;
|
||||
target_destroy(&g_smaa_edges); target_destroy(&g_smaa_weights);
|
||||
smaa_tables_destroy();
|
||||
for (int i = 0; i < P_COUNT; i++) { if (g_pipe[i]) g_vk.DestroyPipeline(g_dev, g_pipe[i], NULL); g_pipe[i] = VK_NULL_HANDLE; }
|
||||
if (g_dpool) g_vk.DestroyDescriptorPool(g_dev, g_dpool, NULL);
|
||||
if (g_pl) g_vk.DestroyPipelineLayout(g_dev, g_pl, NULL);
|
||||
coef_destroy();
|
||||
if (g_dsl) g_vk.DestroyDescriptorSetLayout(g_dev, g_dsl, NULL);
|
||||
if (g_sampler) g_vk.DestroySampler(g_dev, g_sampler, NULL);
|
||||
if (g_smaa_rp) g_vk.DestroyRenderPass(g_dev, g_smaa_rp, NULL);
|
||||
if (g_smaa_edge_rp) g_vk.DestroyRenderPass(g_dev, g_smaa_edge_rp, NULL);
|
||||
if (g_smaa_weights_rp) g_vk.DestroyRenderPass(g_dev, g_smaa_weights_rp, NULL);
|
||||
if (g_rp) g_vk.DestroyRenderPass(g_dev, g_rp, NULL);
|
||||
g_dpool = VK_NULL_HANDLE; g_pl = VK_NULL_HANDLE; g_dsl = VK_NULL_HANDLE;
|
||||
g_sampler = VK_NULL_HANDLE; g_rp = VK_NULL_HANDLE; g_smaa_rp = VK_NULL_HANDLE;
|
||||
g_sampler = VK_NULL_HANDLE; g_rp = VK_NULL_HANDLE;
|
||||
g_smaa_edge_rp = VK_NULL_HANDLE; g_smaa_weights_rp = VK_NULL_HANDLE;
|
||||
g_nis_fast = 0; g_nis_attempted = 0; g_upscale_half = 0;
|
||||
g_ready = 0;
|
||||
}
|
||||
@@ -603,9 +645,12 @@ static int objects_ensure(void) {
|
||||
|
||||
VkAttachmentDescription smaa_att = att;
|
||||
smaa_att.format = FX_FORMAT;
|
||||
smaa_att.loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR; /* SMAA.hlsl discards pixels without an edge */
|
||||
VkRenderPassCreateInfo smaa_rci = rci;
|
||||
smaa_rci.pAttachments = &smaa_att;
|
||||
if (g_vk.CreateRenderPass(g_dev, &smaa_rci, NULL, &g_smaa_rp) != VK_SUCCESS) goto fail;
|
||||
if (g_vk.CreateRenderPass(g_dev, &smaa_rci, NULL, &g_smaa_weights_rp) != VK_SUCCESS) goto fail;
|
||||
smaa_att.format = SMAA_EDGE_FORMAT;
|
||||
if (g_vk.CreateRenderPass(g_dev, &smaa_rci, NULL, &g_smaa_edge_rp) != VK_SUCCESS) goto fail;
|
||||
|
||||
VkSamplerCreateInfo sci = {.sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO, .magFilter = VK_FILTER_LINEAR,
|
||||
.minFilter = VK_FILTER_LINEAR, .mipmapMode = VK_SAMPLER_MIPMAP_MODE_NEAREST,
|
||||
@@ -619,13 +664,13 @@ static int objects_ensure(void) {
|
||||
VkDescriptorSetLayoutCreateInfo dli = {.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO, .bindingCount = 1, .pBindings = &b};
|
||||
if (g_vk.CreateDescriptorSetLayout(g_dev, &dli, NULL, &g_dsl) != VK_SUCCESS) goto fail;
|
||||
VkPushConstantRange pcr = {.stageFlags = VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT, .offset = 0, .size = PC_MAX_SIZE};
|
||||
VkDescriptorSetLayout set_layouts[2] = {g_dsl, g_dsl};
|
||||
VkPipelineLayoutCreateInfo pli = {.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO, .setLayoutCount = 2, .pSetLayouts = set_layouts,
|
||||
VkDescriptorSetLayout set_layouts[3] = {g_dsl, g_dsl, g_dsl};
|
||||
VkPipelineLayoutCreateInfo pli = {.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO, .setLayoutCount = 3, .pSetLayouts = set_layouts,
|
||||
.pushConstantRangeCount = 1, .pPushConstantRanges = &pcr};
|
||||
if (g_vk.CreatePipelineLayout(g_dev, &pli, NULL, &g_pl) != VK_SUCCESS) goto fail;
|
||||
VkDescriptorPoolSize ps = {VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, FX_CONTEXTS * 5 + 2};
|
||||
VkDescriptorPoolSize ps = {VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, FX_CONTEXTS * 5 + 4};
|
||||
VkDescriptorPoolCreateInfo dpi = {.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO,
|
||||
.flags = VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, .maxSets = FX_CONTEXTS * 5 + 2,
|
||||
.flags = VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, .maxSets = FX_CONTEXTS * 5 + 4,
|
||||
.poolSizeCount = 1, .pPoolSizes = &ps};
|
||||
if (g_vk.CreateDescriptorPool(g_dev, &dpi, NULL, &g_dpool) != VK_SUCCESS) goto fail;
|
||||
|
||||
@@ -712,8 +757,8 @@ static int pipelines_ensure(int spatial, const struct fx_settings *s) {
|
||||
if (s->color_on && !(s->toon && g_fx_fmt == FX_FORMAT)) MK(1, P_COLOR, color_code, "color");
|
||||
if (s->aa_mode == 1 || s->aa_mode == 2) MK(1, P_FXAA, fxaa_code, "fxaa");
|
||||
if (s->aa_mode == 2) {
|
||||
MKL(1, P_SMAA_EDGE, smaa_edge_code, "smaa_edge", g_smaa_rp, g_pl);
|
||||
MKL(1, P_SMAA_WEIGHTS, smaa_weights_code, "smaa_weights", g_smaa_rp, g_pl);
|
||||
MKL(1, P_SMAA_EDGE, smaa_edge_code, "smaa_edge", g_smaa_edge_rp, g_pl);
|
||||
MKL(1, P_SMAA_WEIGHTS, smaa_weights_code, "smaa_weights", g_smaa_weights_rp, g_pl);
|
||||
MK(1, P_SMAA_BLEND, smaa_blend_code, "smaa_blend");
|
||||
}
|
||||
if (s->toon && s->color_on && g_fx_fmt == FX_FORMAT) MK(1, P_TOON_COLOR, toon_color_code, "toon_color");
|
||||
@@ -742,14 +787,32 @@ static void barrier(VkCommandBuffer cmd, VkImage img, VkImageLayout from, VkImag
|
||||
g_vk.CmdPipelineBarrier(cmd, src_stage, dst_stage, 0, 0, NULL, 0, NULL, 1, &b);
|
||||
}
|
||||
|
||||
static void pass_renderpass(VkCommandBuffer cmd, VkRenderPass render_pass,
|
||||
VkPipeline p, struct fx_target *dst, VkDescriptorSet src,
|
||||
const void *pc, uint32_t pcsz) {
|
||||
/* The tables are copied into place in every frame: a recorded frame can be dropped before it is submitted. */
|
||||
static void smaa_tables_copy(VkCommandBuffer cmd) {
|
||||
const VkBufferImageCopy area = {.imageSubresource = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 0, 1},
|
||||
.imageExtent = {SMAA_AREA_W, SMAA_AREA_ROWS, 1}};
|
||||
const VkBufferImageCopy search = {.bufferOffset = sizeof(kSmaaArea), .imageSubresource = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 0, 1},
|
||||
.imageExtent = {SMAA_SEARCH_W, SMAA_SEARCH_H, 1}};
|
||||
const struct { VkImage img; const VkBufferImageCopy *copy; } t[2] = {{g_smaa_area.img, &area}, {g_smaa_search.img, &search}};
|
||||
for (int i = 0; i < 2; i++) {
|
||||
barrier(cmd, t[i].img, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL,
|
||||
VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, 0, VK_PIPELINE_STAGE_TRANSFER_BIT, VK_ACCESS_TRANSFER_WRITE_BIT);
|
||||
g_vk.CmdCopyBufferToImage(cmd, g_smaa_buf, t[i].img, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, 1, t[i].copy);
|
||||
barrier(cmd, t[i].img, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL,
|
||||
VK_PIPELINE_STAGE_TRANSFER_BIT, VK_ACCESS_TRANSFER_WRITE_BIT,
|
||||
VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, VK_ACCESS_SHADER_READ_BIT);
|
||||
}
|
||||
}
|
||||
|
||||
static void pass_sets(VkCommandBuffer cmd, VkRenderPass render_pass, VkPipeline p, struct fx_target *dst,
|
||||
const VkDescriptorSet *src, uint32_t count, const void *pc, uint32_t pcsz) {
|
||||
const VkClearValue clear = {0};
|
||||
VkRenderPassBeginInfo rpi = {.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO, .renderPass = render_pass, .framebuffer = dst->fb,
|
||||
.renderArea = {{0, 0}, {(uint32_t)dst->w, (uint32_t)dst->h}}};
|
||||
.renderArea = {{0, 0}, {(uint32_t)dst->w, (uint32_t)dst->h}},
|
||||
.clearValueCount = 1, .pClearValues = &clear};
|
||||
g_vk.CmdBeginRenderPass(cmd, &rpi, VK_SUBPASS_CONTENTS_INLINE);
|
||||
g_vk.CmdBindPipeline(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, p);
|
||||
g_vk.CmdBindDescriptorSets(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, g_pl, 0, 1, &src, 0, NULL);
|
||||
g_vk.CmdBindDescriptorSets(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, g_pl, 0, count, src, 0, NULL);
|
||||
if (g_nis_fast && p == g_pipe[P_NIS] && g_coef_ds) /* nis3: coefficient banks at set 1 */
|
||||
g_vk.CmdBindDescriptorSets(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, g_pl_nis, 1, 1, &g_coef_ds, 0, NULL);
|
||||
g_vk.CmdPushConstants(cmd, g_pl, VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT, 0, pcsz, pc);
|
||||
@@ -759,21 +822,7 @@ static void pass_renderpass(VkCommandBuffer cmd, VkRenderPass render_pass,
|
||||
|
||||
static void pass(VkCommandBuffer cmd, VkPipeline p, struct fx_target *dst,
|
||||
VkDescriptorSet src, const void *pc, uint32_t pcsz) {
|
||||
pass_renderpass(cmd, g_rp, p, dst, src, pc, pcsz);
|
||||
}
|
||||
|
||||
static void pass_dual(VkCommandBuffer cmd, VkPipeline p, struct fx_target *dst,
|
||||
VkDescriptorSet src, VkDescriptorSet second,
|
||||
const void *pc, uint32_t pcsz) {
|
||||
VkRenderPassBeginInfo rpi = {.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO, .renderPass = g_rp, .framebuffer = dst->fb,
|
||||
.renderArea = {{0, 0}, {(uint32_t)dst->w, (uint32_t)dst->h}}};
|
||||
VkDescriptorSet sets[2] = {src, second};
|
||||
g_vk.CmdBeginRenderPass(cmd, &rpi, VK_SUBPASS_CONTENTS_INLINE);
|
||||
g_vk.CmdBindPipeline(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, p);
|
||||
g_vk.CmdBindDescriptorSets(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, g_pl, 0, 2, sets, 0, NULL);
|
||||
g_vk.CmdPushConstants(cmd, g_pl, VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT, 0, pcsz, pc);
|
||||
g_vk.CmdDraw(cmd, 4, 1, 0, 0);
|
||||
g_vk.CmdEndRenderPass(cmd);
|
||||
pass_sets(cmd, g_rp, p, dst, &src, 1, pc, pcsz);
|
||||
}
|
||||
|
||||
static const float FULL_NDC[4] = {-1.0f, -1.0f, 1.0f, 1.0f};
|
||||
@@ -785,6 +834,12 @@ struct fx_source_state {
|
||||
VkAccessFlags access;
|
||||
};
|
||||
|
||||
/* NIS here is the SDR implementation and is documented for <=2x upscales: other outputs run FSR instead. */
|
||||
static int nis_falls_back(int scene_w, int scene_h, int cw, int ch) {
|
||||
return g_scene_is_pq || cw < scene_w || ch < scene_h || (double)cw > (double)scene_w * 2.0 ||
|
||||
(double)ch > (double)scene_h * 2.0;
|
||||
}
|
||||
|
||||
static VkImage effects_run(VkCommandBuffer cmd, VkImage scene, int scene_w, int scene_h,
|
||||
int out_w, int out_h, int *res_w, int *res_h,
|
||||
VkImageLayout input_layout, const struct fx_settings *frozen,
|
||||
@@ -810,11 +865,7 @@ static VkImage effects_run(VkCommandBuffer cmd, VkImage scene, int scene_w, int
|
||||
const int upscaling = cw > scene_w || ch > scene_h;
|
||||
int spatial = 0;
|
||||
if (spatial_mode(s->scaling) && (s->scaling == 6 || upscaling)) spatial = s->scaling;
|
||||
/* NIS here is the SDR implementation and is documented for <=2x upscales. */
|
||||
const int nis_fallback = spatial == 7 &&
|
||||
(g_scene_is_pq || cw < scene_w || ch < scene_h ||
|
||||
(double)cw > (double)scene_w * 2.0 ||
|
||||
(double)ch > (double)scene_h * 2.0);
|
||||
const int nis_fallback = spatial == 7 && nis_falls_back(scene_w, scene_h, cw, ch);
|
||||
static int last_nis_fallback = 0;
|
||||
const int was_nis_fallback =
|
||||
__atomic_exchange_n(&last_nis_fallback, nis_fallback, __ATOMIC_RELAXED);
|
||||
@@ -839,9 +890,10 @@ static VkImage effects_run(VkCommandBuffer cmd, VkImage scene, int scene_w, int
|
||||
target_ensure(&g_mid, cw, ch, FX_SCRATCH_USAGE, "EASU") == 0)) {
|
||||
if (s->aa_mode == 2 &&
|
||||
(target_ensure_format(&g_smaa_edges, cw, ch, FX_SCRATCH_USAGE,
|
||||
"SMAA edges", FX_FORMAT, g_smaa_rp) != 0 ||
|
||||
"SMAA edges", SMAA_EDGE_FORMAT, g_smaa_edge_rp) != 0 ||
|
||||
target_ensure_format(&g_smaa_weights, cw, ch, FX_SCRATCH_USAGE,
|
||||
"SMAA weights", FX_FORMAT, g_smaa_rp) != 0)) {
|
||||
"SMAA weights", FX_FORMAT, g_smaa_weights_rp) != 0 ||
|
||||
smaa_tables_ensure() != 0)) {
|
||||
droiddeck_log("error", "effects: SMAA scratch allocation failed; falling back to FXAA");
|
||||
snapshot.aa_mode = 1;
|
||||
s = &snapshot;
|
||||
@@ -969,14 +1021,17 @@ static VkImage effects_run(VkCommandBuffer cmd, VkImage scene, int scene_w, int
|
||||
switch (order[i]) {
|
||||
case FX_FXAA: pass(cmd, g_pipe[P_FXAA], dst, cur_ds, &pr, sizeof(pr)); break;
|
||||
case FX_FXAA_TOON: pass(cmd, g_pipe[P_FXAA_TOON], dst, cur_ds, &pr, sizeof(pr)); break;
|
||||
case FX_SMAA:
|
||||
pass_renderpass(cmd, g_smaa_rp, g_pipe[P_SMAA_EDGE],
|
||||
&g_smaa_edges, cur_ds, &pr, sizeof(pr));
|
||||
pass_renderpass(cmd, g_smaa_rp, g_pipe[P_SMAA_WEIGHTS],
|
||||
&g_smaa_weights, g_smaa_edges.ds, &pr, sizeof(pr));
|
||||
pass_dual(cmd, g_pipe[P_SMAA_BLEND], dst, cur_ds,
|
||||
g_smaa_weights.ds, &pr, sizeof(pr));
|
||||
case FX_SMAA: {
|
||||
struct pc_smaa pc = {.metrics = {1.0f / (float)cw, 1.0f / (float)ch, (float)cw, (float)ch}};
|
||||
const VkDescriptorSet weigh[3] = {g_smaa_edges.ds, g_smaa_area.ds, g_smaa_search.ds};
|
||||
const VkDescriptorSet blend[2] = {cur_ds, g_smaa_weights.ds};
|
||||
SET_NDC(pc);
|
||||
smaa_tables_copy(cmd);
|
||||
pass_sets(cmd, g_smaa_edge_rp, g_pipe[P_SMAA_EDGE], &g_smaa_edges, &cur_ds, 1, &pc, sizeof(pc));
|
||||
pass_sets(cmd, g_smaa_weights_rp, g_pipe[P_SMAA_WEIGHTS], &g_smaa_weights, weigh, 3, &pc, sizeof(pc));
|
||||
pass_sets(cmd, g_rp, g_pipe[P_SMAA_BLEND], dst, blend, 2, &pc, sizeof(pc));
|
||||
break;
|
||||
}
|
||||
case FX_TOON: pass(cmd, g_pipe[P_TOON], dst, cur_ds, &pr, sizeof(pr)); break;
|
||||
case FX_TOON_COLOR: {
|
||||
struct pc_toon_color pc = {0};
|
||||
@@ -1037,13 +1092,23 @@ VkImage vkp_effects_run(VkCommandBuffer cmd, VkImage scene, int scene_w, int sce
|
||||
VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, NULL, NULL);
|
||||
}
|
||||
|
||||
int vkp_effects_prepare_generated(void) {
|
||||
int vkp_effects_prepare_generated(int in_w, int in_h, int out_w, int out_h) {
|
||||
vkp_effects_sync();
|
||||
pthread_mutex_lock(&g_lock);
|
||||
g_generated_settings = g_cur;
|
||||
pthread_mutex_unlock(&g_lock);
|
||||
return spatial_mode(g_generated_settings.scaling) && g_generated_settings.scaling != 6 &&
|
||||
effect_count(&g_generated_settings) == 0;
|
||||
int spatial = g_generated_settings.scaling;
|
||||
if (!spatial_mode(spatial) || spatial == 6 || effect_count(&g_generated_settings) != 0) return 0;
|
||||
/* Build the spatial filter's pipelines now, before frame generation records commands that sample the
|
||||
* chain's views: one failing later in the same pass would tear the chain down (chain_failed) under a
|
||||
* recorded command buffer. Build only what effects_run will use for this output, as it decides it:
|
||||
* NIS on an output it hands to FSR builds FSR, so a NIS that cannot build here costs nothing. */
|
||||
int cw = out_w > FX_MAX_DIM ? FX_MAX_DIM : out_w < 1 ? 1 : out_w;
|
||||
int ch = out_h > FX_MAX_DIM ? FX_MAX_DIM : out_h < 1 ? 1 : out_h;
|
||||
if (cw <= in_w && ch <= in_h) return 1; /* clamped, it no longer upscales: effects_run builds no filter */
|
||||
if (spatial == 7 && nis_falls_back(in_w, in_h, cw, ch)) spatial = 4;
|
||||
if (objects_ensure() != 0 || pipelines_ensure(spatial, &g_generated_settings) != 0) return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
VkImage vkp_effects_run_before_generated(VkCommandBuffer cmd, VkImage scene, int w, int h,
|
||||
|
||||
@@ -18,7 +18,7 @@ VkFilter vkp_effects_blit_filter(void);
|
||||
|
||||
VkImage vkp_effects_run(VkCommandBuffer cmd, VkImage scene, int scene_w, int scene_h,
|
||||
int out_w, int out_h, int *res_w, int *res_h);
|
||||
int vkp_effects_prepare_generated(void);
|
||||
int vkp_effects_prepare_generated(int in_w, int in_h, int out_w, int out_h);
|
||||
void vkp_effects_release_generated_sources(void);
|
||||
VkImage vkp_effects_run_before_generated(VkCommandBuffer cmd, VkImage scene, int w, int h,
|
||||
int *res_w, int *res_h);
|
||||
|
||||
@@ -113,6 +113,7 @@ static int g_layer_path;
|
||||
static int g_out_gens;
|
||||
static int64_t g_out_planned[VKP_FG_MAX_GENERATIONS + 1];
|
||||
static int64_t g_completion_issue;
|
||||
static int g_paced_route = 1;
|
||||
|
||||
void vkp_framegen_set_pacer(int on) {
|
||||
if (atomic_exchange(&g_pacer_on, on ? 1 : 0) != (on ? 1 : 0)) {
|
||||
@@ -178,6 +179,17 @@ void vkp_framegen_set_layer_timing(int layer) {
|
||||
fge_set_layer_timing(layer);
|
||||
}
|
||||
|
||||
void vkp_framegen_set_paced_route(int composed) {
|
||||
composed = composed != 0;
|
||||
if (composed == g_paced_route) return;
|
||||
g_paced_route = composed;
|
||||
if (atomic_load(&g_pacer_on)) {
|
||||
fge_pacer_reset();
|
||||
FGLOG("ZeroPacer %s", composed ? "times the layer's frames again (composed route)"
|
||||
: "waits: the direct route presents the real frame on its own timing");
|
||||
}
|
||||
}
|
||||
|
||||
void vkp_framegen_set_tuning(float flow_scale, float refresh_hz) {
|
||||
if (flow_scale < 0.25f) flow_scale = 0.25f;
|
||||
if (flow_scale > 1.0f) flow_scale = 1.0f;
|
||||
@@ -517,7 +529,7 @@ int vkp_framegen_run(VkCommandBuffer cmd, VkImage scene, VkImageView scene_view,
|
||||
}
|
||||
}
|
||||
fge_set_phases(NULL, 0);
|
||||
if (kind == VKP_FG_ENGINE_ZEROFG && pacer_wanted() && g_layer_path) {
|
||||
if (kind == VKP_FG_ENGINE_ZEROFG && pacer_wanted() && g_layer_path && g_paced_route) {
|
||||
int64_t vsync = 0, period = 0;
|
||||
sc_layer_timeline(&vsync, &period);
|
||||
int64_t planned[VKP_FG_MAX_GENERATIONS + 1];
|
||||
|
||||
@@ -30,6 +30,9 @@ int vkp_framegen_extra_images(void);
|
||||
void vkp_framegen_set_layer_timing(int layer);
|
||||
/* ZeroFG's pacer (include/zerofg/inline_pacer.h) times the layer's frames instead of the layer's own spacing. */
|
||||
void vkp_framegen_set_pacer(int on);
|
||||
/* 1 when the layer pass presents the real frame itself after its generated frames (the composed route): only
|
||||
* then can the pacer time the whole group. The direct route keeps the layer's own timing. */
|
||||
void vkp_framegen_set_paced_route(int composed);
|
||||
/* Reset pacing history when a planned real-frame pair is aborted before presentation. */
|
||||
void vkp_framegen_pacer_abort(void);
|
||||
/* Refresh planned for output k of the last run (k == gens: its real frame; 0: use layer timing). */
|
||||
|
||||
@@ -55,6 +55,15 @@ VkImage g_current = VK_NULL_HANDLE;
|
||||
VkImageView g_current_view = VK_NULL_HANDLE;
|
||||
uint64_t g_current_sequence = 0;
|
||||
bool g_pair_pending = false;
|
||||
// The interpolator keeps per-pair work and the prepared Real by sequence. A pass dropped after recording
|
||||
// Interpolate never ran on the GPU, so the next pair's A gets a fresh identity no record has seen: nothing the
|
||||
// dropped pass would have prepared is reused, nor its flow start. The identity is stable for the whole pair, so
|
||||
// its phases still share their work (and ReallyZero sees one pair, not a first picture per phase).
|
||||
bool g_interpolate_uncommitted = false;
|
||||
bool g_record_stale = false;
|
||||
uint64_t g_pair_anonymous = 0; // the recovery pair's A identity, 0 for an ordinary pair
|
||||
uint64_t g_anonymous_count = 0;
|
||||
constexpr uint64_t kAnonymousSequence = 1ull << 63; // above any frame sequence the compositor hands out
|
||||
|
||||
// Pacing. The compositor presents a pair's generated frames and its real frame back to back in FIFO,
|
||||
// so they reach the panel on consecutive refreshes right after the tick that drew them.
|
||||
@@ -475,6 +484,9 @@ int zfg_prepare(uint32_t width, uint32_t height, VkFormat format) {
|
||||
return 0;
|
||||
}
|
||||
if (g_width == width && g_height == height && g_format == format && g_history) return 1;
|
||||
// ReallyZero's Resize accepts 64..16384 per side: refuse this frame only, before touching the
|
||||
// engine's state, so a supported size later still generates.
|
||||
if (width < 64 || height < 64 || width > 16384 || height > 16384) return 0;
|
||||
if (g_DeviceWaitIdle) g_DeviceWaitIdle(g_device);
|
||||
destroy_history();
|
||||
const zerofg::Status resized = g_interpolator->Resize(width, height, format, format);
|
||||
@@ -540,6 +552,8 @@ void zfg_process(VkCommandBuffer cmd, VkImage source, VkImageView source_view,
|
||||
g_current_view = source_view;
|
||||
g_current_sequence = sequence;
|
||||
g_pair_pending = true;
|
||||
g_pair_anonymous = g_record_stale ? (kAnonymousSequence | ++g_anonymous_count) : 0;
|
||||
g_record_stale = false;
|
||||
}
|
||||
|
||||
void zfg_generate(VkCommandBuffer cmd, uint32_t index, uint32_t count,
|
||||
@@ -564,6 +578,8 @@ void zfg_generate(VkCommandBuffer cmd, uint32_t index, uint32_t count,
|
||||
result.width = width; result.height = height;
|
||||
result.usage = VK_IMAGE_USAGE_STORAGE_BIT | VK_IMAGE_USAGE_SAMPLED_BIT |
|
||||
VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT;
|
||||
if (g_pair_anonymous) previous.sequence = g_pair_anonymous;
|
||||
g_interpolate_uncommitted = true;
|
||||
|
||||
const zerofg::Status status =
|
||||
g_interpolator->Interpolate(cmd, index, previous, current, phase, result);
|
||||
@@ -579,6 +595,7 @@ void zfg_generate(VkCommandBuffer cmd, uint32_t index, uint32_t count,
|
||||
}
|
||||
|
||||
void zfg_commit_history_update(void) {
|
||||
g_interpolate_uncommitted = false;
|
||||
if (!g_history_recorded_pending) return;
|
||||
g_history_layout_defined = true;
|
||||
g_history_valid = true;
|
||||
@@ -589,10 +606,15 @@ void zfg_commit_history_update(void) {
|
||||
void zfg_discard_history_update(void) {
|
||||
g_history_recorded_pending = false;
|
||||
g_history_recorded_sequence = 0;
|
||||
if (g_interpolate_uncommitted) g_record_stale = true;
|
||||
g_interpolate_uncommitted = false;
|
||||
g_pair_pending = false;
|
||||
}
|
||||
|
||||
void zfg_forget_targets(void) {
|
||||
g_pair_pending = false;
|
||||
if (g_interpolate_uncommitted) g_record_stale = true;
|
||||
g_interpolate_uncommitted = false;
|
||||
g_history_recorded_pending = false;
|
||||
g_history_recorded_sequence = 0;
|
||||
g_history_valid = false;
|
||||
|
||||
@@ -1138,6 +1138,7 @@ int sc_layer_present_generated(const struct vkp_draw *draws, int n_draws, const
|
||||
if (vkp_update_map(scene_w, scene_h) != 0) return -1;
|
||||
const int deep = hf && !hf->tonemap;
|
||||
if (hf) composed = 1;
|
||||
vkp_framegen_set_paced_route(composed);
|
||||
if (hf && hf->tonemap) color = NULL;
|
||||
int n = vkp_pass_begin_generate(scene_w, scene_h, draws, n_draws, hf, &rw, &rh);
|
||||
if (n < 0) return -1;
|
||||
|
||||
@@ -2769,8 +2769,8 @@ static int render_impl(int scene_w, int scene_h, const struct vkp_draw *draws, i
|
||||
const int upscale_w = (int)(scene_w * g_map.kx + 0.5f);
|
||||
const int upscale_h = (int)(scene_h * g_map.ky + 0.5f);
|
||||
const int post_upscale = fx && fg && !hf && !cb && vkp_effects_upscaling() &&
|
||||
vkp_effects_prepare_generated() &&
|
||||
(upscale_w > input_w || upscale_h > input_h);
|
||||
(upscale_w > input_w || upscale_h > input_h) &&
|
||||
vkp_effects_prepare_generated(input_w, input_h, upscale_w, upscale_h);
|
||||
if (post_upscale) {
|
||||
static int last_input_w, last_input_h, last_output_w, last_output_h;
|
||||
if (input_w != last_input_w || input_h != last_input_h ||
|
||||
@@ -3545,7 +3545,8 @@ static int pass_begin_impl(int scene_w, int scene_h, const struct vkp_draw *draw
|
||||
|
||||
int mapped_w = (int)(scene_w * g_map.kx + 0.5f), mapped_h = (int)(scene_h * g_map.ky + 0.5f);
|
||||
g_pass.post_upscale = generate && !hf && vkp_effects_active() && vkp_effects_upscaling() &&
|
||||
vkp_effects_prepare_generated() && (mapped_w > input_w || mapped_h > input_h);
|
||||
(mapped_w > input_w || mapped_h > input_h) &&
|
||||
vkp_effects_prepare_generated(input_w, input_h, mapped_w, mapped_h);
|
||||
if (g_pass.post_upscale) {
|
||||
static int last_input_w, last_input_h, last_output_w, last_output_h;
|
||||
if (input_w != last_input_w || input_h != last_input_h || mapped_w != last_output_w || mapped_h != last_output_h) {
|
||||
|
||||
@@ -461,6 +461,11 @@ Java_com_droiddeck_launcher_wayland_WaylandCompositor_nativeSetZeroCopy(JNIEnv *
|
||||
__android_log_print(ANDROID_LOG_INFO, TAG, "zero-copy layer mode %s%s", on ? "on" : "off", live ? " (live)" : "");
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_com_droiddeck_launcher_wayland_WaylandCompositor_nativeSetMirrorCapture(JNIEnv *env, jclass clazz, jboolean on) {
|
||||
droiddeck_host_mirror_capture(on ? 1 : 0);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_com_droiddeck_launcher_wayland_WaylandCompositor_nativeSetDisplayBufferDriver(JNIEnv *env, jclass clazz, jboolean on) {
|
||||
g_display_buffer_driver = on ? 1 : 0;
|
||||
|
||||
@@ -52,6 +52,7 @@ import com.droiddeck.launcher.ui.ComponentsPage
|
||||
import com.droiddeck.launcher.session.GameSaves
|
||||
import com.droiddeck.launcher.session.SessionLogShare
|
||||
import com.droiddeck.launcher.session.SessionPaths
|
||||
import com.droiddeck.launcher.session.FullscreenMode
|
||||
import com.droiddeck.launcher.session.SessionPrefs
|
||||
import com.droiddeck.launcher.session.SteamRepair
|
||||
import com.droiddeck.launcher.session.LaunchCoordinator
|
||||
@@ -208,7 +209,8 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
private var orientation by mutableStateOf(android.content.pm.ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE)
|
||||
private var launcherOrientation by mutableStateOf(android.content.pm.ActivityInfo.SCREEN_ORIENTATION_USER)
|
||||
private var homePage by mutableStateOf(com.droiddeck.launcher.core.AppUiPrefs.HOME_PAGE_STEAM)
|
||||
private var launcherFullscreen by mutableStateOf(true)
|
||||
private var launcherFullscreenMode by mutableStateOf(FullscreenMode.ALWAYS)
|
||||
private var sessionFullscreenMode by mutableStateOf(FullscreenMode.ALWAYS)
|
||||
private var launcherFrost by mutableStateOf(false)
|
||||
private var frostWallpaper by mutableStateOf(true)
|
||||
private var frostCards by mutableStateOf(true)
|
||||
@@ -1366,8 +1368,12 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
orientation = SessionPrefs.orientation(this)
|
||||
launcherOrientation = com.droiddeck.launcher.core.AppUiPrefs.orientation(this)
|
||||
requestedOrientation = launcherOrientation
|
||||
launcherFullscreenMode = SessionPrefs.launcherFullscreenMode(this)
|
||||
sessionFullscreenMode = SessionPrefs.sessionFullscreenMode(this)
|
||||
applyLauncherFullscreen()
|
||||
homePage = com.droiddeck.launcher.core.AppUiPrefs.homePage(this)
|
||||
launcherFullscreen = SessionPrefs.launcherFullscreen(this)
|
||||
launcherFullscreenMode = SessionPrefs.launcherFullscreenMode(this)
|
||||
sessionFullscreenMode = SessionPrefs.sessionFullscreenMode(this)
|
||||
launcherFrost = SessionPrefs.launcherFrost(this)
|
||||
frostWallpaper = SessionPrefs.frostWallpaper(this)
|
||||
frostCards = SessionPrefs.frostCards(this)
|
||||
@@ -1482,7 +1488,8 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
orientation = orientation,
|
||||
launcherOrientation = launcherOrientation,
|
||||
homePage = homePage,
|
||||
launcherFullscreen = launcherFullscreen,
|
||||
launcherFullscreenMode = launcherFullscreenMode,
|
||||
sessionFullscreenMode = sessionFullscreenMode,
|
||||
launcherFrost = launcherFrost,
|
||||
frostWallpaper = frostWallpaper,
|
||||
frostCards = frostCards,
|
||||
@@ -1816,11 +1823,15 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
homePage = value
|
||||
},
|
||||
onControllerHaptics = { on -> SessionPrefs.setControllerHaptics(this, on); controllerHaptics = on },
|
||||
onLauncherFullscreen = { on ->
|
||||
SessionPrefs.setLauncherFullscreen(this, on)
|
||||
launcherFullscreen = on
|
||||
onLauncherFullscreenMode = { mode ->
|
||||
SessionPrefs.setLauncherFullscreenMode(this, mode)
|
||||
launcherFullscreenMode = mode
|
||||
applyLauncherFullscreen()
|
||||
},
|
||||
onSessionFullscreenMode = { mode ->
|
||||
SessionPrefs.setSessionFullscreenMode(this, mode)
|
||||
sessionFullscreenMode = mode
|
||||
},
|
||||
onLauncherFrost = { on ->
|
||||
SessionPrefs.setLauncherFrost(this, on)
|
||||
launcherFrost = on
|
||||
@@ -2152,7 +2163,13 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
private fun frostShown(): Boolean =
|
||||
launcherFrost && frostWallpaper && frost.prepared && frost.available && theme != com.droiddeck.launcher.ui.Themes.TRUE_BLACK
|
||||
|
||||
private fun applyLauncherFullscreen() {
|
||||
override fun onConfigurationChanged(newConfig: android.content.res.Configuration) {
|
||||
super.onConfigurationChanged(newConfig)
|
||||
applyLauncherFullscreen(newConfig)
|
||||
}
|
||||
|
||||
private fun applyLauncherFullscreen(config: android.content.res.Configuration = resources.configuration) {
|
||||
val launcherFullscreen = launcherFullscreenMode.hidesSystemBars(config.orientation)
|
||||
@Suppress("DEPRECATION")
|
||||
window.decorView.systemUiVisibility = if (launcherFullscreen) {
|
||||
(View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
|
||||
|
||||
@@ -45,6 +45,7 @@ internal class ProtonMenu(
|
||||
var experimentalReleases by Operation.experimentalReleases
|
||||
companion object {
|
||||
const val EXPERIMENTAL = "experimental"
|
||||
private val REMEMBERED = setOf(ProtonExtras.OWN, ProtonExtras.ANTICHEAT)
|
||||
}
|
||||
@VisibleForTesting internal var latestCheck: (Boolean) -> Boolean = { force -> ProtonExtras.checkLatest(activity, force) }
|
||||
@VisibleForTesting internal var experimentalRefresh: () -> List<ExperimentalProtons.Release>? = { ExperimentalProtons.refresh(activity) }
|
||||
@@ -66,7 +67,7 @@ internal class ProtonMenu(
|
||||
ui.post { protonStage = label; protonPercent = value }
|
||||
}
|
||||
}.getOrElse { it.message ?: it.javaClass.simpleName }
|
||||
if (problem == null && !automatic && tool.id == ProtonExtras.OWN) ProtonExtras.setDeclined(activity, false)
|
||||
if (problem == null && !automatic && tool.id in REMEMBERED) ProtonExtras.setDeclined(activity, false, tool.id)
|
||||
if (tool.id == ProtonExtras.OWN) {
|
||||
if (problem == null) Onboarding.finish(Onboarding.Step.PROTON) else Onboarding.fail(Onboarding.Step.PROTON, problem)
|
||||
Onboarding.recheck(activity)
|
||||
@@ -96,7 +97,7 @@ internal class ProtonMenu(
|
||||
protonPercent = -1
|
||||
Thread({
|
||||
if (older) ProtonExtras.removeOlder(activity, tool) else ProtonExtras.remove(activity, tool, dir)
|
||||
if (tool.id == ProtonExtras.OWN && ProtonExtras.installedAll(activity, tool).isEmpty()) ProtonExtras.setDeclined(activity, true)
|
||||
if (tool.id in REMEMBERED && ProtonExtras.installedAll(activity, tool).isEmpty()) ProtonExtras.setDeclined(activity, true, tool.id)
|
||||
ui.post {
|
||||
protonBusyId = null
|
||||
protonStage = null
|
||||
@@ -158,7 +159,7 @@ internal class ProtonMenu(
|
||||
refreshExperimental()
|
||||
protonRows = ProtonExtras.offered(activity).map {
|
||||
val all = ProtonExtras.installedAll(activity, it)
|
||||
ProtonRow(it.id, it.name, all.lastOrNull(), ProtonExtras.queued(activity, it), all, ProtonExtras.update(activity, it))
|
||||
ProtonRow(it.id, if (it.label != 0) activity.getString(it.label) else it.name, all.lastOrNull(), ProtonExtras.queued(activity, it), all, ProtonExtras.update(activity, it))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -100,6 +100,12 @@ import com.droiddeck.launcher.input.SteamControllerBle
|
||||
import com.droiddeck.launcher.input.DirectTouchHold
|
||||
import com.droiddeck.launcher.input.GestureTouchStreamGate
|
||||
import com.droiddeck.launcher.input.PenRouter
|
||||
import com.droiddeck.launcher.input.AirTrigger
|
||||
import com.droiddeck.launcher.input.AirTriggerButtons
|
||||
import com.droiddeck.launcher.input.AirTriggerInput
|
||||
import com.droiddeck.launcher.input.AirTriggerPrefs
|
||||
import com.droiddeck.launcher.input.AirTriggerSetup
|
||||
import com.droiddeck.launcher.input.RedMagicAirTriggers
|
||||
import com.droiddeck.launcher.input.PenStream
|
||||
import com.droiddeck.launcher.input.PointerGestures
|
||||
import com.droiddeck.launcher.input.PointerSpace
|
||||
@@ -122,6 +128,7 @@ import com.droiddeck.launcher.session.GpuClockPin
|
||||
import com.droiddeck.launcher.session.GameProfileFollowState
|
||||
import com.droiddeck.launcher.session.GameProfileInventoryCache
|
||||
import com.droiddeck.launcher.session.GameProfileRefreshState
|
||||
import com.droiddeck.launcher.session.FullscreenMode
|
||||
import com.droiddeck.launcher.session.SessionPrefs
|
||||
import com.droiddeck.launcher.session.SessionEvents
|
||||
import com.droiddeck.launcher.session.SessionArtifacts
|
||||
@@ -241,6 +248,10 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
private lateinit var sessionRoot: FrameLayout
|
||||
private var inputRouter: InputRouter? = null
|
||||
private var physicalInputBindings: com.droiddeck.launcher.input.PhysicalInputBindings? = null
|
||||
private var airTriggerInput: AirTriggerInput? = null
|
||||
private var airTriggersOpen = false
|
||||
private var airTriggerMenu by mutableStateOf<com.droiddeck.launcher.ui.AirTriggerMenu?>(null)
|
||||
private var airTriggerGlow: com.droiddeck.launcher.ui.AirTriggerGlow? = null
|
||||
private var inputSettingsOpen by mutableStateOf(false)
|
||||
@Volatile private var inputUsesLocalActions = false
|
||||
private var inputUsesPointer = false
|
||||
@@ -633,6 +644,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
private var drawerControllerActive by mutableStateOf(false)
|
||||
private var backHold by mutableStateOf(true)
|
||||
private var dockedMenuController by mutableStateOf(false)
|
||||
private var sessionFullscreenMode by mutableStateOf(FullscreenMode.ALWAYS)
|
||||
private var sessionOrientation by mutableStateOf(android.content.pm.ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE)
|
||||
private var dualScreenSessionMode by mutableStateOf(com.droiddeck.launcher.input.DualScreen.MODE_AUTO)
|
||||
private var backActionsInverted by mutableStateOf(false)
|
||||
@@ -661,6 +673,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
private var effects by mutableStateOf(ScreenEffects.OFF)
|
||||
private var observedScreenEffectsProfileId by mutableStateOf<String?>(null)
|
||||
private var screenEffectsTarget by mutableStateOf(SCREEN_EFFECTS_TARGET_AUTO)
|
||||
private var screenEffectsProfileRevision by mutableIntStateOf(0)
|
||||
private var cardboard by mutableStateOf(Cardboard.OFF)
|
||||
private var headTracker: HeadTracker? = null
|
||||
private var steamVrStatus by mutableStateOf<SteamVr.Status?>(null)
|
||||
@@ -929,7 +942,8 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
}
|
||||
applyFollowChoice()
|
||||
applyFollowOrientation(resources.configuration)
|
||||
goFullscreen()
|
||||
sessionFullscreenMode = SessionPrefs.sessionFullscreenMode(this)
|
||||
applySessionFullscreen()
|
||||
volumeControlStream = android.media.AudioManager.STREAM_MUSIC
|
||||
displayManager = getSystemService(DISPLAY_SERVICE) as DisplayManager
|
||||
refreshSecondScreenDisplays()
|
||||
@@ -973,6 +987,10 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
bridge.setBuiltinPad(SessionState.mode != SessionService.MODE_STEAM || SessionPrefs.builtinPad(this))
|
||||
padBridge = bridge
|
||||
inputRouter = InputRouter(inputOutput).also { bridge.setInputRouter(it); DeckControls.setRouter(it); physicalInputBindings = com.droiddeck.launcher.input.PhysicalInputBindings(it) }
|
||||
if (RedMagicAirTriggers.supported(this)) {
|
||||
airTriggerInput = AirTriggerInput(bridge, ::holdOnScreen, ::airTriggerTouched)
|
||||
RedMagicAirTriggers.restore(this)
|
||||
}
|
||||
refreshInputProfile()
|
||||
bridge.setOnChordInput(backQamInput::onChordInput)
|
||||
SessionState.padBridge = bridge
|
||||
@@ -1098,6 +1116,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
override fun onResolvePointerIcon(event: MotionEvent, pointerIndex: Int): android.view.PointerIcon? =
|
||||
if (platformPointerShown == true) super.onResolvePointerIcon(event, pointerIndex) else null
|
||||
}.apply { addView(sessionOverlay) })
|
||||
if (airTriggerInput != null) airTriggerGlow = com.droiddeck.launcher.ui.AirTriggerGlow(this).also { root.addView(it) }
|
||||
setContentView(root)
|
||||
glassesScope.launch { Glasses.state.collect {
|
||||
glasses = it
|
||||
@@ -1382,6 +1401,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
}
|
||||
LaunchedEffect(drawerOpen, menuOwnsController, pcKeyboardOpen, achievementsOpen, gestureSettingsOpen, inputSettingsOpen, pipUi, SessionState.suspended, resumed, appTextFocus) {
|
||||
updateOnScreenControls()
|
||||
refreshAirTriggers()
|
||||
padBridge?.setInputEnabled(resumed && !menuOwnsController && !pcKeyboardOpen && !achievementsOpen && !gestureSettingsOpen && !inputSettingsOpen && !pipUi && !appTextFocus && !SessionState.suspended)
|
||||
if (!drawerOpen && backTapOpenedDrawer) {
|
||||
backTaps.cancel()
|
||||
@@ -1641,8 +1661,11 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
effects = effects,
|
||||
screenEffectsTarget = screenEffectsTarget,
|
||||
screenEffectsTargets = screenEffectsTargetOptions(),
|
||||
screenEffectsCanDelete = screenEffectsProfileIdForTarget(screenEffectsTarget)?.let {
|
||||
SessionPrefs.hasScreenEffectsOverride(this@SessionActivity, it)
|
||||
screenEffectsCanDelete = screenEffectsProfileRevision.let {
|
||||
screenEffectsProfileIdForTarget(screenEffectsTarget)?.let {
|
||||
SessionPrefs.hasScreenEffectsOverride(this@SessionActivity, it) ||
|
||||
SessionPrefs.hasScreenEffectsUpscalerOverride(this@SessionActivity, it)
|
||||
}
|
||||
} == true,
|
||||
cardboard = cardboard,
|
||||
cardboardSensor = hasRotationSensor,
|
||||
@@ -1748,6 +1771,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
} else {
|
||||
val profileId = screenEffectsProfileIdForTarget(target)
|
||||
SessionPrefs.setScreenEffectsUpscaler(this@SessionActivity, profileId, m)
|
||||
screenEffectsProfileRevision++
|
||||
|
||||
if (target == screenEffectsTarget) {
|
||||
upscaler = m
|
||||
@@ -1783,6 +1807,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
} else {
|
||||
val profileId = screenEffectsProfileIdForTarget(target)
|
||||
SessionPrefs.setScreenEffectsUpscaler(this@SessionActivity, profileId, m)
|
||||
screenEffectsProfileRevision++
|
||||
if (target == screenEffectsTarget) {
|
||||
upscaler = m
|
||||
if (screenEffectsUpscalerTargetAppliesToLiveOutput(target)) {
|
||||
@@ -1829,7 +1854,22 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
val profileId = screenEffectsProfileIdForTarget(editorTarget)
|
||||
SessionPrefs.setScreenEffects(this@SessionActivity, profileId, e)
|
||||
effects = e
|
||||
if (screenEffectsTargetAppliesToLiveOutput(editorTarget)) e.push(upscaler)
|
||||
if (screenEffectsTargetAppliesToLiveOutput(editorTarget)) {
|
||||
val upscalerAppliesToLiveOutput =
|
||||
screenEffectsUpscalerTargetAppliesToLiveOutput(editorTarget)
|
||||
val liveUpscaler = if (upscalerAppliesToLiveOutput) {
|
||||
SessionPrefs.screenEffectsUpscaler(
|
||||
this@SessionActivity,
|
||||
screenEffectsProfileIdForTarget(editorTarget)
|
||||
)
|
||||
} else {
|
||||
SessionPrefs.screenEffectsUpscaler(
|
||||
this@SessionActivity,
|
||||
currentScreenEffectsProfileId()
|
||||
)
|
||||
}
|
||||
e.push(liveUpscaler)
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1886,7 +1926,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
onBlackFrameInsertion = { on ->
|
||||
SessionPrefs.setBlackFrameInsertion(this@SessionActivity, on)
|
||||
blackFrameInsertion = on
|
||||
CompositorHost.setBlackFrameInsertion(on, refreshHz(), compositorFpsLimit())
|
||||
CompositorHost.setBlackFrameInsertion(on, refreshHz(), compositorFpsLimit(), outputFpsLimit())
|
||||
},
|
||||
hdr = hdrWanted,
|
||||
hdrAvailable = hdrAvailable,
|
||||
@@ -1915,6 +1955,27 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
wowChat = wowChat.remembered,
|
||||
onWowChat = wowChat::choose,
|
||||
controller = controllerSettings,
|
||||
airTriggers = airTriggerMenu,
|
||||
onAirTriggers = { on -> AirTriggerPrefs.setEnabled(this@SessionActivity, on); refreshAirTriggers() },
|
||||
onAirTriggerButton = { trigger, id ->
|
||||
AirTriggerPrefs.setButton(this@SessionActivity, primaryInputLayout?.id.orEmpty(), trigger, id)
|
||||
refreshAirTriggers()
|
||||
},
|
||||
onAirTriggerAction = { trigger, action ->
|
||||
AirTriggerPrefs.setAction(this@SessionActivity, primaryInputLayout?.id.orEmpty(), trigger, action)
|
||||
refreshAirTriggers()
|
||||
},
|
||||
onAirTriggerRate = { trigger, rate ->
|
||||
AirTriggerPrefs.setRate(this@SessionActivity, primaryInputLayout?.id.orEmpty(), trigger, rate)
|
||||
refreshAirTriggers()
|
||||
},
|
||||
onAirTriggerVibration = { on -> AirTriggerPrefs.setVibration(this@SessionActivity, on); refreshAirTriggers() },
|
||||
onAirTriggerScreenLight = { on -> AirTriggerPrefs.setScreenLight(this@SessionActivity, on); refreshAirTriggers() },
|
||||
onAirTriggerLed = { led ->
|
||||
AirTriggerPrefs.setLed(this@SessionActivity, led)
|
||||
if (airTriggersOpen) RedMagicAirTriggers.open(this@SessionActivity)
|
||||
refreshAirTriggers()
|
||||
},
|
||||
onControllerSize = { percent -> updateControllerPrefs { ControllerPrefs.setSize(this@SessionActivity, percent) } },
|
||||
onControllerOpacity = { percent ->
|
||||
ControllerPrefs.setOnScreenOpacity(this@SessionActivity, percent)
|
||||
@@ -2045,6 +2106,12 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
onPause = ::pauseNow,
|
||||
paused = SessionState.suspended || SessionState.manualPause,
|
||||
onResume = { SessionService.resume(this@SessionActivity) },
|
||||
fullscreenMode = sessionFullscreenMode,
|
||||
onFullscreenMode = { mode ->
|
||||
SessionPrefs.setSessionFullscreenMode(this@SessionActivity, mode)
|
||||
sessionFullscreenMode = mode
|
||||
applySessionFullscreen()
|
||||
},
|
||||
orientation = sessionOrientation,
|
||||
onOrientation = { value ->
|
||||
when (SessionState.mode) {
|
||||
@@ -2648,10 +2715,21 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
val targetUpscaler = SessionPrefs.screenEffectsUpscaler(this, profileId)
|
||||
effects = targetEffects
|
||||
upscaler = targetUpscaler
|
||||
val upscalerAppliesToLiveOutput = screenEffectsUpscalerTargetAppliesToLiveOutput(target)
|
||||
val liveUpscaler = if (upscalerAppliesToLiveOutput) {
|
||||
targetUpscaler
|
||||
} else {
|
||||
SessionPrefs.screenEffectsUpscaler(this, currentScreenEffectsProfileId())
|
||||
}
|
||||
if (upscalerAppliesToLiveOutput) {
|
||||
WaylandCompositor.nativeSetUpscaler(liveUpscaler)
|
||||
}
|
||||
if (screenEffectsTargetAppliesToLiveOutput(target)) {
|
||||
WaylandCompositor.nativeSetUpscaler(targetUpscaler)
|
||||
WaylandCompositor.nativeSetLookName(ScreenEffectLooks.match(targetEffects, targetUpscaler)?.name)
|
||||
targetEffects.push(targetUpscaler)
|
||||
WaylandCompositor.nativeSetLookName(ScreenEffectLooks.match(targetEffects, liveUpscaler)?.name)
|
||||
targetEffects.push(liveUpscaler)
|
||||
} else if (upscalerAppliesToLiveOutput) {
|
||||
val liveEffects = SessionPrefs.screenEffects(this, currentScreenEffectsProfileId())
|
||||
WaylandCompositor.nativeSetLookName(ScreenEffectLooks.match(liveEffects, liveUpscaler)?.name)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2664,6 +2742,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
private fun resetScreenEffectsTarget(target: String) {
|
||||
if (target != screenEffectsTarget) return
|
||||
SessionPrefs.resetScreenEffectsProfile(this, screenEffectsProfileIdForTarget(target))
|
||||
screenEffectsProfileRevision++
|
||||
syncScreenEffectsTarget(target)
|
||||
}
|
||||
|
||||
@@ -2671,6 +2750,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
if (target != screenEffectsTarget) return
|
||||
val profileId = screenEffectsProfileIdForTarget(target) ?: return
|
||||
SessionPrefs.deleteScreenEffectsProfile(this, profileId)
|
||||
screenEffectsProfileRevision++
|
||||
syncScreenEffectsTarget(target)
|
||||
}
|
||||
|
||||
@@ -3123,7 +3203,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
CompositorHost.startOrAttach(
|
||||
this, holder.surface, runtimeDir.path,
|
||||
driverId?.let { turnip.driverPath(it) }, driverId?.let { turnip.libraryName(it) },
|
||||
applicationInfo.nativeLibraryDir, size.first, size.second, refreshHz(holder), compositorFpsLimit(),
|
||||
applicationInfo.nativeLibraryDir, size.first, size.second, refreshHz(holder), compositorFpsLimit(), outputFpsLimit(),
|
||||
)
|
||||
onOutputAttached(holder)
|
||||
if (SessionState.running && size != previous) {
|
||||
@@ -3238,6 +3318,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
|
||||
override fun onConfigurationChanged(newConfig: android.content.res.Configuration) {
|
||||
super.onConfigurationChanged(newConfig)
|
||||
if (!pipUi && !isInPictureInPictureMode) applySessionFullscreen(newConfig)
|
||||
picturePosition = SessionPrefs.picturePosition(this, picturePortrait(newConfig))
|
||||
if (refreshActivityDisplayId() && started) {
|
||||
SessionService.setActivityDisplay(this, sessionActivityDisplayId)
|
||||
@@ -3398,7 +3479,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
)
|
||||
val hz = refreshHz()
|
||||
val changed = kotlin.math.abs(SessionState.refreshHz - hz) > 0.1f
|
||||
CompositorHost.updatePacing(hz, compositorFpsLimit())
|
||||
CompositorHost.updatePacing(hz, compositorFpsLimit(), outputFpsLimit())
|
||||
pushCardboard(activeCardboard)
|
||||
if (changed && ::surfaceView.isInitialized) applyFrameGen()
|
||||
}
|
||||
@@ -3646,6 +3727,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
|
||||
private fun onSessionEnded(status: Int) {
|
||||
ended = true
|
||||
runOnUiThread { refreshAirTriggers() }
|
||||
++steamVrRequestGeneration
|
||||
if (isInPictureInPictureMode) {
|
||||
runOnUiThread { finish() }
|
||||
@@ -3703,6 +3785,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
private fun releasePads(keepBackTap: Boolean = false) {
|
||||
inputMotion.stop()
|
||||
physicalInputBindings?.release()
|
||||
airTriggerInput?.release()
|
||||
com.droiddeck.launcher.input.HomeButtonShortcuts.cancel(this)
|
||||
backQamInput.cancel(keepTap = keepBackTap)
|
||||
padBridge?.releaseAll()
|
||||
@@ -3835,6 +3918,9 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
return dispatchSessionKeyEvent(normalized, orderedImeKey)
|
||||
}
|
||||
|
||||
private fun physicalInputAccepted() = resumed && !menuOwnsController && !pcKeyboardOpen && !achievementsOpen &&
|
||||
!inputSettingsOpen && !gestureSettingsOpen && !SessionState.suspended && !loading.visible
|
||||
|
||||
private fun dispatchSessionKeyEvent(event: KeyEvent, orderedImeKey: Boolean): Boolean {
|
||||
if (com.droiddeck.launcher.ui.AgentPet.handleBack(this, event)) return true
|
||||
when (event.keyCode) {
|
||||
@@ -3854,10 +3940,10 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
}
|
||||
}
|
||||
if (penStream.holdsKey(event) || (penSettings.mode != SessionPrefs.PEN_TOUCH && PenStream.isPenKey(event))) return penStream.onKey(event)
|
||||
if (airTriggerInput?.onKey(event) { physicalInputAccepted() && !pipUi && !appTextFocus } == true) return true
|
||||
if (appTextFocus) return super.dispatchKeyEvent(event)
|
||||
if (!pipUi) {
|
||||
if (physicalInputBindings?.onKey(event, resumed && !menuOwnsController && !pcKeyboardOpen && !achievementsOpen &&
|
||||
!inputSettingsOpen && !gestureSettingsOpen && !SessionState.suspended && !loading.visible) == true) return true
|
||||
if (physicalInputBindings?.onKey(event, physicalInputAccepted()) == true) return true
|
||||
if (physicalShortcuts.onKey(
|
||||
event,
|
||||
enabled = resumed && SessionState.running && !SessionState.suspended &&
|
||||
@@ -5082,6 +5168,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
|| inputProfile.keys.any { it.action is InputAction.MouseButton }
|
||||
physicalInputBindings?.configure(inputProfile.keys)
|
||||
padBridge?.setInputProfile(inputProfile)
|
||||
refreshAirTriggers()
|
||||
DeckControls.refresh()
|
||||
onScreenControls?.updateLayout(primaryInputLayout)
|
||||
bottomInputControls?.updateLayout(primaryInputLayout)
|
||||
@@ -5092,6 +5179,32 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
secondScreenPresentation?.refreshControls()
|
||||
}
|
||||
|
||||
private fun refreshAirTriggers() {
|
||||
val input = airTriggerInput ?: return
|
||||
val layout = primaryInputLayout
|
||||
val layoutId = layout?.id.orEmpty()
|
||||
val enabled = AirTriggerPrefs.enabled(this)
|
||||
val chosen = AirTrigger.entries.associateWith {
|
||||
AirTriggerSetup(AirTriggerButtons.resolve(layout, it, AirTriggerPrefs.button(this, layoutId, it)),
|
||||
AirTriggerPrefs.action(this, layoutId, it), AirTriggerPrefs.rate(this, layoutId, it))
|
||||
}
|
||||
val active = enabled && resumed && !ended && !SessionState.suspended
|
||||
input.configure(if (active) chosen else emptyMap())
|
||||
if (active != airTriggersOpen) {
|
||||
airTriggersOpen = active
|
||||
if (active) RedMagicAirTriggers.open(this) else RedMagicAirTriggers.restore(this)
|
||||
}
|
||||
airTriggerMenu = com.droiddeck.launcher.ui.AirTriggerMenu(enabled, chosen.mapValues { it.value.element.id },
|
||||
AirTriggerButtons.options(layout).map { it.id to it.name }, AirTriggerPrefs.vibration(this), AirTriggerPrefs.screenLight(this),
|
||||
AirTriggerPrefs.led(this), chosen.mapValues { it.value.action }, chosen.mapValues { it.value.rate })
|
||||
}
|
||||
|
||||
private fun airTriggerTouched(trigger: AirTrigger, down: Boolean) {
|
||||
RedMagicAirTriggers.light(if (down) trigger.pressLight else trigger.releaseLight)
|
||||
if (down && AirTriggerPrefs.vibration(this)) com.droiddeck.launcher.ui.ControllerHaptics.click(this)
|
||||
airTriggerGlow?.show(trigger, down && AirTriggerPrefs.screenLight(this))
|
||||
}
|
||||
|
||||
private fun tapQam() {
|
||||
if (SessionState.mode == SessionService.MODE_STEAM) padBridge?.triggerQam()
|
||||
}
|
||||
@@ -5548,10 +5661,20 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
private var sessionTouchDown = false
|
||||
private var screenTapsClick = true
|
||||
|
||||
private fun onScreenLeftMouseButtonShown(): Boolean = listOfNotNull(
|
||||
private fun inputSurfaces() = listOfNotNull(
|
||||
onScreenControls?.inputSurface, bottomInputControls?.inputSurface, unfoldedPanel?.inputSurface, unfoldedDeckSurface,
|
||||
secondScreenPresentation?.controlsView, swappedInputSurface,
|
||||
).any { it.isShown && inputProfile.showsLeftMouseButton(it.inputRole, it.shownElements, stockInputProfile) }
|
||||
)
|
||||
|
||||
private fun onScreenLeftMouseButtonShown(): Boolean =
|
||||
inputSurfaces().any { it.isShown && inputProfile.showsLeftMouseButton(it.inputRole, it.shownElements, stockInputProfile) }
|
||||
|
||||
private fun holdOnScreen(elementId: String, trigger: AirTrigger, held: Boolean, cancelled: Boolean): Boolean {
|
||||
val surfaces = inputSurfaces().filter { it.inputRole == InputRole.PRIMARY }
|
||||
if (held) return surfaces.any { it.isShown && it.hold(elementId, trigger.ordinal, true) }
|
||||
surfaces.forEach { it.hold(elementId, trigger.ordinal, false, cancelled) }
|
||||
return true
|
||||
}
|
||||
|
||||
override fun onTouchEvent(event: MotionEvent): Boolean = inSurfaceSpace(event) { handleTouch(event) }
|
||||
|
||||
@@ -6348,7 +6471,12 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
}
|
||||
|
||||
private fun holdComposedOutput(hold: Boolean) {
|
||||
val wasHeld = composedHolds > 0
|
||||
composedHolds = (composedHolds + if (hold) 1 else -1).coerceAtLeast(0)
|
||||
val held = composedHolds > 0
|
||||
if (held == wasHeld) return
|
||||
WaylandCompositor.nativeSetMirrorCapture(held)
|
||||
// Importable HDR is redirected by the compositor hold. Keep its layer-only fallback available.
|
||||
if (zeroCopyActive()) WaylandCompositor.nativeSetZeroCopy(composedOutputFree())
|
||||
}
|
||||
|
||||
@@ -6551,6 +6679,8 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
uiHandler.removeCallbacks(questSteamVrRequest)
|
||||
if (com.droiddeck.launcher.session.QuestExperimental.isSupported()) uiHandler.post(questSteamVrRequest)
|
||||
if (runtimeRemovalBlocked) return
|
||||
sessionFullscreenMode = SessionPrefs.sessionFullscreenMode(this)
|
||||
if (!pipUi && !isInPictureInPictureMode) applySessionFullscreen()
|
||||
if (!SessionState.suspended) pausedFrame = null
|
||||
com.droiddeck.launcher.ui.Motion.refresh(this)
|
||||
refreshHomeApp()
|
||||
@@ -6664,6 +6794,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
if (::scrollTouch.isInitialized) scrollTouch.cancel()
|
||||
if (::padMouse.isInitialized) padMouse.reset()
|
||||
resumed = false
|
||||
refreshAirTriggers()
|
||||
boostGpuClock(false)
|
||||
updateKeyboardRoute()
|
||||
updatePointerCapture()
|
||||
@@ -7257,10 +7388,13 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
if (!hasFocus) {
|
||||
cancelTouchGestures()
|
||||
releaseHeldGuestInput()
|
||||
airTriggerInput?.release()
|
||||
}
|
||||
// Game Space clears the distribute state when the launcher or Game Space itself comes to the front.
|
||||
if (hasFocus && airTriggersOpen) RedMagicAirTriggers.open(this)
|
||||
if (hasFocus && !pipUi) {
|
||||
retryFieldKeyboard(true)
|
||||
goFullscreen()
|
||||
applySessionFullscreen()
|
||||
refreshClipboard()
|
||||
}
|
||||
updatePointerCapture()
|
||||
@@ -7270,19 +7404,24 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
if (resumed) sessionClipboard.refresh()
|
||||
}
|
||||
|
||||
private fun goFullscreen() {
|
||||
private fun applySessionFullscreen(config: android.content.res.Configuration = resources.configuration) {
|
||||
val fullscreen = sessionFullscreenMode.hidesSystemBars(config.orientation)
|
||||
if (fullscreen) window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN)
|
||||
else window.clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN)
|
||||
@Suppress("DEPRECATION")
|
||||
window.decorView.systemUiVisibility = (View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
|
||||
window.decorView.systemUiVisibility = if (fullscreen) (View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
|
||||
or View.SYSTEM_UI_FLAG_FULLSCREEN
|
||||
or View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
|
||||
or View.SYSTEM_UI_FLAG_LAYOUT_STABLE
|
||||
or View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
|
||||
or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION)
|
||||
or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION) else View.SYSTEM_UI_FLAG_LAYOUT_STABLE
|
||||
if (Build.VERSION.SDK_INT >= 28) {
|
||||
window.attributes = window.attributes.apply {
|
||||
layoutInDisplayCutoutMode = if (Build.VERSION.SDK_INT >= 30)
|
||||
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS
|
||||
else WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
|
||||
layoutInDisplayCutoutMode = when {
|
||||
!fullscreen -> WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_DEFAULT
|
||||
Build.VERSION.SDK_INT >= 30 -> WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS
|
||||
else -> WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7345,6 +7484,9 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
inputMotion.stop()
|
||||
padBridge?.setInputEnabled(false)
|
||||
physicalInputBindings?.close()
|
||||
airTriggerInput?.close()
|
||||
airTriggerInput = null
|
||||
if (airTriggersOpen) RedMagicAirTriggers.restore(this)
|
||||
padBridge?.stop()
|
||||
DeckControls.clearRouter(inputRouter)
|
||||
inputRouter = null
|
||||
|
||||
@@ -22,6 +22,12 @@ object AgentAttachments {
|
||||
/** True while the file picker is open over a session: it answers the drawer's agent page, so the drawer must stay. */
|
||||
@Volatile var picking = false
|
||||
|
||||
/** Launches a system screen that answers the agent page, keeping the drawer for it; the result callback clears [picking]. */
|
||||
fun pick(launch: () -> Unit) {
|
||||
picking = true
|
||||
if (runCatching(launch).isFailure) picking = false
|
||||
}
|
||||
|
||||
private const val NEW = "new"
|
||||
private const val GUEST_DIR = "/root/.cache/droiddeck/attachments"
|
||||
private val IMAGE = setOf("png", "jpg", "jpeg", "webp", "gif", "bmp")
|
||||
@@ -38,14 +44,17 @@ object AgentAttachments {
|
||||
val folder = chat ?: NEW
|
||||
val dir = File(hostDir(app), folder).apply { mkdirs() }
|
||||
return uris.mapNotNull { uri ->
|
||||
var target: File? = null
|
||||
runCatching {
|
||||
val name = displayName(app, uri).replace(Regex("[^A-Za-z0-9._-]"), "_").ifEmpty { "file" }
|
||||
var target = File(dir, name)
|
||||
var candidate = File(dir, name)
|
||||
var n = 1
|
||||
while (target.exists()) target = File(dir, "${name.substringBeforeLast('.')}-${n++}${name.substringAfterLast('.', "").let { if (it.isEmpty()) "" else ".$it" }}")
|
||||
app.contentResolver.openInputStream(uri)!!.use { input -> target.outputStream().use { input.copyTo(it) } }
|
||||
"$GUEST_DIR/$folder/${target.name}"
|
||||
}.getOrNull()
|
||||
// Created atomically, so copies running side by side never pick the same name.
|
||||
while (!candidate.createNewFile()) candidate = File(dir, "${name.substringBeforeLast('.')}-${n++}${name.substringAfterLast('.', "").let { if (it.isEmpty()) "" else ".$it" }}")
|
||||
target = candidate
|
||||
app.contentResolver.openInputStream(uri)!!.use { input -> candidate.outputStream().use { input.copyTo(it) } }
|
||||
"$GUEST_DIR/$folder/${candidate.name}"
|
||||
}.onFailure { target?.delete() }.getOrNull()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ import java.io.File
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Date
|
||||
import java.util.Locale
|
||||
import java.util.TimeZone
|
||||
|
||||
object DeviceReport {
|
||||
private const val TAG = "DeviceReport"
|
||||
@@ -36,6 +37,10 @@ object DeviceReport {
|
||||
.map { it.substringAfter(':').trim().split(Regex("\\s+")).filter(String::isNotEmpty).joinToString(" ") }
|
||||
.filter(String::isNotEmpty).distinct().joinToString(" | ").ifEmpty { "not reported" }
|
||||
|
||||
internal fun buildDate(millis: Long): String? = millis.takeIf { it > 0 }?.let {
|
||||
SimpleDateFormat("yyyy-MM-dd HH:mm 'UTC'", Locale.US).apply { timeZone = TimeZone.getTimeZone("UTC") }.format(Date(it))
|
||||
}
|
||||
|
||||
fun write(context: Context, target: File, mode: String) {
|
||||
try {
|
||||
target.writeText(build(context, mode))
|
||||
@@ -129,6 +134,7 @@ object DeviceReport {
|
||||
k("Android", "${Build.VERSION.RELEASE} (API ${Build.VERSION.SDK_INT})")
|
||||
k("Security patch", Build.VERSION.SECURITY_PATCH)
|
||||
k("Build", Build.DISPLAY)
|
||||
k("Build date", buildDate(Build.TIME))
|
||||
k("Fingerprint", Build.FINGERPRINT)
|
||||
k("Kernel", System.getProperty("os.version"))
|
||||
k("ABIs", Build.SUPPORTED_ABIS.joinToString(", "))
|
||||
|
||||
@@ -0,0 +1,324 @@
|
||||
package com.droiddeck.launcher.input
|
||||
|
||||
import android.content.Context
|
||||
import android.content.SharedPreferences
|
||||
import android.net.Uri
|
||||
import android.os.Build
|
||||
import android.os.Handler
|
||||
import android.os.IBinder
|
||||
import android.os.Looper
|
||||
import android.os.Parcel
|
||||
import android.provider.Settings
|
||||
import android.util.Log
|
||||
import android.view.InputDevice
|
||||
import android.view.KeyEvent
|
||||
import java.util.EnumMap
|
||||
import java.util.EnumSet
|
||||
import java.util.concurrent.Executor
|
||||
import java.util.concurrent.LinkedBlockingQueue
|
||||
import java.util.concurrent.ThreadPoolExecutor
|
||||
import java.util.concurrent.TimeUnit
|
||||
import org.json.JSONObject
|
||||
|
||||
enum class AirTrigger(val keyCode: Int, val control: InputControl, val pressLight: Int, val releaseLight: Int) {
|
||||
LEFT(KeyEvent.KEYCODE_F7, InputControl.LT, 106, 107), RIGHT(KeyEvent.KEYCODE_F8, InputControl.RT, 108, 109);
|
||||
|
||||
companion object {
|
||||
private const val DEVICE_PREFIX = "nubia_tgk"
|
||||
|
||||
internal fun isTriggerDevice(device: InputDevice?): Boolean {
|
||||
if (device == null) return false
|
||||
if (device.name.startsWith(DEVICE_PREFIX)) return true
|
||||
// Some RedMagic firmware merges the trigger sensors with an unnamed built-in keyboard.
|
||||
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q &&
|
||||
device.name.isEmpty() && !device.isVirtual && !device.isExternal &&
|
||||
device.supportsSource(InputDevice.SOURCE_KEYBOARD) &&
|
||||
device.hasKeys(LEFT.keyCode, RIGHT.keyCode).all { it }
|
||||
}
|
||||
|
||||
internal fun of(keyCode: Int, device: InputDevice?): AirTrigger? =
|
||||
entries.firstOrNull { it.keyCode == keyCode }?.takeIf { isTriggerDevice(device) }
|
||||
}
|
||||
}
|
||||
|
||||
/** Game Space's single tap holds the button while the trigger is touched; its long press latches it until the next touch. */
|
||||
enum class AirTriggerAction { TAP, LATCH, RAPID }
|
||||
|
||||
/** Game Space's rapid fire counts for its low, normal and high click frequency. */
|
||||
enum class RapidFireRate(val clicksPerSecond: Int) { LOW(2), NORMAL(5), HIGH(10) }
|
||||
|
||||
/** Game Space's touch atmosphere lamp cases, by their name in RedMagic's shoulder light settings. */
|
||||
enum class AirTriggerLed(val effect: String, val fallback: String) {
|
||||
OFF("close", "02000000"), STEADY("steady", "02101000"), PULSE("pulse", "02102000")
|
||||
}
|
||||
|
||||
data class AirTriggerSetup(
|
||||
val element: InputSurfaceElement,
|
||||
val action: AirTriggerAction = AirTriggerAction.TAP,
|
||||
val rate: RapidFireRate = RapidFireRate.NORMAL,
|
||||
) {
|
||||
/** Long press and rapid fire decide when the button is let go, so they press a toggle button as a plain one. */
|
||||
internal val target get() = if (action != AirTriggerAction.TAP && element.toggle) element.copy(toggle = false) else element
|
||||
}
|
||||
|
||||
object AirTriggerButtons {
|
||||
fun options(layout: SavedInputLayout?): List<InputSurfaceElement> {
|
||||
val placed = layout?.let { (it.elements + it.rotated).distinctBy { element -> element.id } }.orEmpty()
|
||||
.filter { it.kind == InputElementKind.BUTTON || it.kind == InputElementKind.TRIGGER }
|
||||
return placed + AirTrigger.entries.filter { trigger -> placed.none { it.control == trigger.control } }
|
||||
.map { InputSurfaceElement(it.control, 0f, 0f, 0f, 0f) }
|
||||
}
|
||||
|
||||
fun resolve(layout: SavedInputLayout?, trigger: AirTrigger, chosen: String?): InputSurfaceElement {
|
||||
val options = options(layout)
|
||||
return chosen?.let { id -> options.firstOrNull { it.id == id } } ?: options.first { it.control == trigger.control }
|
||||
}
|
||||
}
|
||||
|
||||
object AirTriggerPrefs {
|
||||
private const val FILE = "redmagic-air-triggers"
|
||||
private const val ENABLED = "enabled"
|
||||
private const val VIBRATION = "vibration"
|
||||
private const val SCREEN_LIGHT = "screen-light"
|
||||
private const val LED = "led"
|
||||
internal const val OWNED = "distribute-owned"
|
||||
|
||||
fun prefs(context: Context): SharedPreferences = context.getSharedPreferences(FILE, Context.MODE_PRIVATE)
|
||||
fun enabled(context: Context) = prefs(context).getBoolean(ENABLED, false)
|
||||
fun setEnabled(context: Context, on: Boolean) = prefs(context).edit().putBoolean(ENABLED, on).apply()
|
||||
fun button(context: Context, layoutId: String, trigger: AirTrigger): String? = prefs(context).getString(key(layoutId, trigger), null)
|
||||
fun setButton(context: Context, layoutId: String, trigger: AirTrigger, elementId: String) =
|
||||
prefs(context).edit().putString(key(layoutId, trigger), elementId).apply()
|
||||
fun action(context: Context, layoutId: String, trigger: AirTrigger) = read(context, key(layoutId, trigger, "action"), AirTriggerAction.TAP)
|
||||
fun setAction(context: Context, layoutId: String, trigger: AirTrigger, action: AirTriggerAction) =
|
||||
prefs(context).edit().putString(key(layoutId, trigger, "action"), action.name).apply()
|
||||
fun rate(context: Context, layoutId: String, trigger: AirTrigger) = read(context, key(layoutId, trigger, "rate"), RapidFireRate.NORMAL)
|
||||
fun setRate(context: Context, layoutId: String, trigger: AirTrigger, rate: RapidFireRate) =
|
||||
prefs(context).edit().putString(key(layoutId, trigger, "rate"), rate.name).apply()
|
||||
fun vibration(context: Context) = prefs(context).getBoolean(VIBRATION, false)
|
||||
fun setVibration(context: Context, on: Boolean) = prefs(context).edit().putBoolean(VIBRATION, on).apply()
|
||||
fun screenLight(context: Context) = prefs(context).getBoolean(SCREEN_LIGHT, false)
|
||||
fun setScreenLight(context: Context, on: Boolean) = prefs(context).edit().putBoolean(SCREEN_LIGHT, on).apply()
|
||||
fun led(context: Context) = read(context, LED, AirTriggerLed.STEADY)
|
||||
fun setLed(context: Context, led: AirTriggerLed) = prefs(context).edit().putString(LED, led.name).apply()
|
||||
|
||||
private inline fun <reified E : Enum<E>> read(context: Context, key: String, default: E): E =
|
||||
prefs(context).getString(key, null)?.let { name -> enumValues<E>().firstOrNull { it.name == name } } ?: default
|
||||
|
||||
private fun key(layoutId: String, trigger: AirTrigger, setting: String? = null) =
|
||||
listOfNotNull(trigger.name.lowercase(), setting).joinToString("-") + ".$layoutId"
|
||||
}
|
||||
|
||||
/** Game Space's exported provider switches the triggers to plain F7/F8 keys without its panel, and needs no permission. */
|
||||
object RedMagicAirTriggers {
|
||||
private const val TAG = "AirTriggers"
|
||||
private const val AUTHORITY = "cn.nubia.tgk.data.TgkDataProvider"
|
||||
private val URI = Uri.parse("content://$AUTHORITY")
|
||||
private const val OPEN = "openTouchGameKeyDistribute"
|
||||
private const val CLOSE = "closeTouchGameKeyDistribute"
|
||||
private const val SHOULDER_LIGHT_ON = 110
|
||||
private const val SHOULDER_LIGHT_OFF = 111
|
||||
private const val SHOULDER_SETTINGS = "lighting_shoulder_config_json"
|
||||
private val REAPPLY_MS = longArrayOf(1_000, 5_000)
|
||||
internal var worker: Executor = ThreadPoolExecutor(0, 1, 10, TimeUnit.SECONDS, LinkedBlockingQueue()) { Thread(it, "air-triggers") }
|
||||
internal var lights: TriggerLights = ColorfulLights
|
||||
private val main = Handler(Looper.getMainLooper())
|
||||
private var reapply: Runnable? = null
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
fun supported(context: Context) = context.packageManager.resolveContentProvider(AUTHORITY, 0) != null &&
|
||||
InputDevice.getDeviceIds().any { AirTrigger.isTriggerDevice(InputDevice.getDevice(it)) }
|
||||
|
||||
/** Call on the main thread. */
|
||||
fun open(context: Context) {
|
||||
val app = context.applicationContext
|
||||
cancelReapply()
|
||||
worker.execute { apply(app) }
|
||||
// Game Space runs its own trigger setup for the app that comes to the front, which switches the trigger keys and lights off again.
|
||||
val again = Runnable { worker.execute { apply(app) } }
|
||||
reapply = again
|
||||
REAPPLY_MS.forEach { main.postDelayed(again, it) }
|
||||
}
|
||||
|
||||
private fun apply(app: Context) {
|
||||
val prefs = AirTriggerPrefs.prefs(app)
|
||||
if (!prefs.getBoolean(AirTriggerPrefs.OWNED, false) && Settings.Global.getInt(app.contentResolver, OPEN, 0) != 1)
|
||||
prefs.edit().putBoolean(AirTriggerPrefs.OWNED, true).commit()
|
||||
call(app, OPEN)
|
||||
if (!prefs.getBoolean(AirTriggerPrefs.OWNED, false)) return
|
||||
lights.request(SHOULDER_LIGHT_ON)
|
||||
// The light service drops every trigger light until an effect is set, which Game Space only does from its own view.
|
||||
lights.setEffect(shoulderEffect(Settings.Global.getString(app.contentResolver, SHOULDER_SETTINGS), AirTriggerPrefs.led(app)))
|
||||
// Entering the scene turns the lights off; the release actions show the idle light picked in RedMagic's lighting settings.
|
||||
AirTrigger.entries.forEach { lights.request(it.releaseLight) }
|
||||
}
|
||||
|
||||
/** The code RedMagic's shoulder light settings give the effect, such as "02101000" for steady. */
|
||||
internal fun shoulderEffect(settings: String?, led: AirTriggerLed): String = settings
|
||||
?.let { runCatching { JSONObject(it).optJSONObject("shoulder_effects")?.optString(led.effect) }.getOrNull() }
|
||||
?.takeIf { it.length == 8 } ?: led.fallback
|
||||
|
||||
/** Closes only what this app opened, so a distribute another app turned on stays on. Call on the main thread. */
|
||||
fun restore(context: Context) {
|
||||
val app = context.applicationContext
|
||||
cancelReapply()
|
||||
worker.execute {
|
||||
val prefs = AirTriggerPrefs.prefs(app)
|
||||
if (!prefs.getBoolean(AirTriggerPrefs.OWNED, false)) return@execute
|
||||
lights.request(SHOULDER_LIGHT_OFF)
|
||||
if (call(app, CLOSE)) prefs.edit().remove(AirTriggerPrefs.OWNED).commit()
|
||||
}
|
||||
}
|
||||
|
||||
fun light(code: Int) = worker.execute { lights.request(code) }
|
||||
|
||||
private fun cancelReapply() {
|
||||
reapply?.let(main::removeCallbacks)
|
||||
reapply = null
|
||||
}
|
||||
|
||||
private fun call(context: Context, method: String) = runCatching { context.contentResolver.call(URI, method, null, null) != null }
|
||||
.onFailure { Log.w(TAG, "$method failed", it) }.getOrDefault(false)
|
||||
}
|
||||
|
||||
internal interface TriggerLights {
|
||||
fun request(action: Int)
|
||||
fun setEffect(effect: String)
|
||||
}
|
||||
|
||||
private object ColorfulLights : TriggerLights {
|
||||
private const val TAG = "AirTriggers"
|
||||
private const val SERVICE = "ColorfulLightService"
|
||||
private const val INTERFACE = "com.zte.hardware.IColorfulLightManager"
|
||||
// IColorfulLightManager transaction codes; its ColorfulLightManager wrapper is a blocked hidden API.
|
||||
private const val REQUEST_LIGHT = IBinder.FIRST_CALL_TRANSACTION
|
||||
private const val SET_SHOULDER_EFFECT = IBinder.FIRST_CALL_TRANSACTION + 2
|
||||
private val binder: IBinder? by lazy {
|
||||
runCatching { Class.forName("android.os.ServiceManager").getMethod("getService", String::class.java).invoke(null, SERVICE) as IBinder? }
|
||||
.getOrNull()?.takeIf { runCatching { it.interfaceDescriptor }.getOrNull() == INTERFACE }
|
||||
}
|
||||
|
||||
override fun request(action: Int) = transact(REQUEST_LIGHT) { writeInt(action) }
|
||||
override fun setEffect(effect: String) = transact(SET_SHOULDER_EFFECT) { writeString(effect) }
|
||||
|
||||
private fun transact(code: Int, write: Parcel.() -> Unit) {
|
||||
val binder = binder ?: return
|
||||
val data = Parcel.obtain()
|
||||
val reply = Parcel.obtain()
|
||||
try {
|
||||
data.writeInterfaceToken(INTERFACE)
|
||||
data.write()
|
||||
binder.transact(code, data, reply, 0)
|
||||
reply.readException()
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "light call $code failed", e)
|
||||
} finally {
|
||||
data.recycle()
|
||||
reply.recycle()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** Presses the chosen button on screen when it is shown, so it animates and keeps one toggle state; otherwise uses a source of its own. */
|
||||
class AirTriggerInput(
|
||||
private val pad: PadBridge,
|
||||
private val onScreen: (elementId: String, trigger: AirTrigger, held: Boolean, cancelled: Boolean) -> Boolean = { _, _, _, _ -> false },
|
||||
private val touched: (AirTrigger, Boolean) -> Unit = { _, _ -> },
|
||||
private val handler: Handler = Handler(Looper.getMainLooper()),
|
||||
) {
|
||||
private val sources = EnumMap<AirTrigger, InputSurfaceSource>(AirTrigger::class.java)
|
||||
private val setups = EnumMap<AirTrigger, AirTriggerSetup>(AirTrigger::class.java)
|
||||
private val held = EnumSet.noneOf(AirTrigger::class.java)
|
||||
private val pressed = EnumSet.noneOf(AirTrigger::class.java)
|
||||
private val heldOnScreen = EnumMap<AirTrigger, String>(AirTrigger::class.java)
|
||||
private val timers = EnumMap<AirTrigger, Runnable>(AirTrigger::class.java)
|
||||
|
||||
fun configure(setups: Map<AirTrigger, AirTriggerSetup>) {
|
||||
for (trigger in AirTrigger.entries) {
|
||||
val setup = setups[trigger]
|
||||
if (this.setups[trigger] == setup) continue
|
||||
stop(trigger)
|
||||
if (sources[trigger]?.element != setup?.target) {
|
||||
pressed.remove(trigger)
|
||||
heldOnScreen.remove(trigger)?.let { onScreen(it, trigger, false, true) }
|
||||
sources.remove(trigger)?.close()
|
||||
if (setup != null) sources[trigger] = InputSurfaceSource(pad, InputRole.PRIMARY, setup.target)
|
||||
} else if (trigger in pressed) unpress(trigger, cancelled = true)
|
||||
if (setup != null) this.setups[trigger] = setup else this.setups.remove(trigger)
|
||||
}
|
||||
}
|
||||
|
||||
fun onKey(event: KeyEvent, enabled: () -> Boolean): Boolean {
|
||||
if (event.keyCode != AirTrigger.LEFT.keyCode && event.keyCode != AirTrigger.RIGHT.keyCode) return false
|
||||
val trigger = AirTrigger.of(event.keyCode, event.device) ?: return false
|
||||
return onKey(trigger, event.action, event.repeatCount, event.action == KeyEvent.ACTION_DOWN && enabled())
|
||||
}
|
||||
|
||||
fun onKey(trigger: AirTrigger, action: Int, repeatCount: Int, enabled: Boolean): Boolean {
|
||||
val source = sources[trigger]
|
||||
when (action) {
|
||||
KeyEvent.ACTION_DOWN -> if (source != null && enabled && repeatCount == 0 && held.add(trigger)) {
|
||||
touched(trigger, true)
|
||||
val setup = setups[trigger]
|
||||
if (setup?.action == AirTriggerAction.LATCH && trigger in pressed) unpress(trigger, cancelled = false)
|
||||
else if (trigger !in pressed) {
|
||||
press(trigger, source)
|
||||
if (setup?.action == AirTriggerAction.RAPID) rapid(trigger, 500L / setup.rate.clicksPerSecond)
|
||||
}
|
||||
}
|
||||
KeyEvent.ACTION_UP -> if (held.remove(trigger)) {
|
||||
touched(trigger, false)
|
||||
if (setups[trigger]?.action != AirTriggerAction.LATCH) {
|
||||
stop(trigger)
|
||||
if (trigger in pressed) unpress(trigger, cancelled = false)
|
||||
}
|
||||
return true
|
||||
}
|
||||
}
|
||||
return source != null
|
||||
}
|
||||
|
||||
private fun rapid(trigger: AirTrigger, halfPeriod: Long) {
|
||||
val tick = object : Runnable {
|
||||
override fun run() {
|
||||
if (trigger in pressed) unpress(trigger, cancelled = false) else sources[trigger]?.let { press(trigger, it) }
|
||||
handler.postDelayed(this, halfPeriod)
|
||||
}
|
||||
}
|
||||
timers[trigger] = tick
|
||||
handler.postDelayed(tick, halfPeriod)
|
||||
}
|
||||
|
||||
private fun stop(trigger: AirTrigger) {
|
||||
timers.remove(trigger)?.let(handler::removeCallbacks)
|
||||
}
|
||||
|
||||
private fun press(trigger: AirTrigger, source: InputSurfaceSource) {
|
||||
pressed += trigger
|
||||
if (source.element == setups[trigger]?.element && onScreen(source.element.id, trigger, true, false)) {
|
||||
heldOnScreen[trigger] = source.element.id
|
||||
// The router counts held keys, so a toggle latched while its button was hidden is released before the button takes over.
|
||||
if (source.latched) source.release()
|
||||
} else source.update(1f)
|
||||
}
|
||||
|
||||
private fun unpress(trigger: AirTrigger, cancelled: Boolean) {
|
||||
pressed -= trigger
|
||||
heldOnScreen.remove(trigger)?.let { onScreen(it, trigger, false, cancelled) }
|
||||
?: sources[trigger]?.let { if (cancelled) it.cancel() else it.update(0f) }
|
||||
}
|
||||
|
||||
fun release() {
|
||||
AirTrigger.entries.forEach(::stop)
|
||||
held.toList().forEach { held.remove(it); touched(it, false) }
|
||||
pressed.toList().forEach { unpress(it, cancelled = true) }
|
||||
sources.values.forEach { it.release() }
|
||||
}
|
||||
|
||||
fun close() {
|
||||
release()
|
||||
sources.values.forEach { it.close() }
|
||||
sources.clear()
|
||||
setups.clear()
|
||||
}
|
||||
}
|
||||
@@ -268,7 +268,7 @@ internal object EnhancedSessionLogShare {
|
||||
val out = outputDirectory.apply { deleteRecursively(); mkdirs() }
|
||||
val redactionLearningComplete = LogRedactor.learnFromRuntime(LinuxRuntime.rootDir(context))
|
||||
val discovery = collect(context, folder, limits.maxDiscoveredFiles, legacy = true)
|
||||
val candidates = discovery.candidates.filter { it.linePrefix == null }
|
||||
val candidates = discovery.candidates.filter { it.linePrefix == null }.sortedBy(::sharePriority)
|
||||
if (candidates.isEmpty()) {
|
||||
out.deleteRecursively()
|
||||
return null
|
||||
@@ -697,15 +697,6 @@ internal object EnhancedSessionLogShare {
|
||||
Category.GAMES, "DROIDDECK_DIAGNOSTICS event=game_",
|
||||
)
|
||||
}
|
||||
if (SessionPaths.current()?.canonicalFile == folder.canonicalFile && !File(folder, "steam").exists()) {
|
||||
val steam = File(SessionPrefs.activeSteamRoot(context), "logs")
|
||||
val scan = directFiles(steam, remaining(maxFiles, out.size))
|
||||
truncated = truncated || scan.truncated
|
||||
partial = partial || scan.partial
|
||||
scan.files.forEach {
|
||||
add(it, steam, "${folder.name}/steam/${it.name}", "live-steam")
|
||||
}
|
||||
}
|
||||
val logs = LinuxRuntime.logDir(context)
|
||||
for ((name, root) in listOf(SessionLogShare.STORES_DIR to File(logs, SessionLogShare.STORES_DIR), SessionPaths.TOOLS_DIR to File(logs, SessionPaths.TOOLS_DIR))) {
|
||||
val scan = directFiles(root, STORE_LOG_SCAN)
|
||||
@@ -742,9 +733,24 @@ internal object EnhancedSessionLogShare {
|
||||
if (relative == EnhancedDiagnostics.MANIFEST_FILE) return@forEach
|
||||
add(file, folder, "${folder.name}/$relative", "session")
|
||||
}
|
||||
if (SessionPaths.current()?.canonicalFile == folder.canonicalFile && !File(folder, "steam").exists()) {
|
||||
val steam = File(SessionPrefs.activeSteamRoot(context), "logs")
|
||||
val scan = directFiles(steam, remaining(maxFiles, out.size))
|
||||
truncated = truncated || scan.truncated
|
||||
partial = partial || scan.partial
|
||||
scan.files.forEach {
|
||||
add(it, steam, "${folder.name}/steam/${it.name}", "live-steam")
|
||||
}
|
||||
}
|
||||
return CollectionResult(out.values.toList(), truncated, partial)
|
||||
}
|
||||
|
||||
private fun sharePriority(candidate: Candidate): Int = when {
|
||||
candidate.origin == "session-critical" -> 0
|
||||
candidate.origin == "session" && candidate.category == Category.GAMES -> 1
|
||||
else -> 2
|
||||
}
|
||||
|
||||
private fun remaining(maxFiles: Int, found: Int): Int = (maxFiles - found + 1).coerceAtLeast(0)
|
||||
|
||||
private fun walk(root: File, limit: Int): ScanResult {
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.droiddeck.launcher.session
|
||||
|
||||
import android.content.res.Configuration
|
||||
import androidx.annotation.StringRes
|
||||
import com.droiddeck.launcher.R
|
||||
|
||||
enum class FullscreenMode(@StringRes val label: Int) {
|
||||
ALWAYS(R.string.widgets_on),
|
||||
LANDSCAPE_ONLY(R.string.setup_fullscreen_landscape_only),
|
||||
OFF(R.string.widgets_off);
|
||||
|
||||
fun hidesSystemBars(orientation: Int): Boolean =
|
||||
this == ALWAYS || (this == LANDSCAPE_ONLY && orientation == Configuration.ORIENTATION_LANDSCAPE)
|
||||
|
||||
companion object {
|
||||
fun fromStored(value: String?): FullscreenMode? = entries.firstOrNull { it.name == value }
|
||||
}
|
||||
}
|
||||
@@ -9,6 +9,8 @@ import com.droiddeck.launcher.core.Downloader
|
||||
import com.droiddeck.launcher.core.FileUtils
|
||||
import com.droiddeck.launcher.runtime.LinuxRuntime
|
||||
import com.droiddeck.launcher.runtime.NativeGuest
|
||||
import com.droiddeck.launcher.storage.SteamStorage
|
||||
import com.droiddeck.launcher.stores.steam.SteamClient
|
||||
import java.io.File
|
||||
import java.util.Locale
|
||||
import org.json.JSONArray
|
||||
@@ -34,7 +36,9 @@ object ProtonExtras {
|
||||
private var replacing = false
|
||||
|
||||
class Tool(val id: String, val name: String, val prefix: String, val repo: String, val assetPattern: Regex,
|
||||
val prereleases: Boolean = false)
|
||||
val prereleases: Boolean = false, val x86_64: Boolean = false, val label: Int = 0) {
|
||||
val arch: String get() = if (x86_64) "x86-64" else "ARM64"
|
||||
}
|
||||
|
||||
internal data class Asset(val tag: String, val name: String, val url: String, val sha512: String?, val size: Long,
|
||||
val sha256: String? = null, val releaseName: String = tag)
|
||||
@@ -42,11 +46,13 @@ object ProtonExtras {
|
||||
|
||||
const val OWN = "droiddeck"
|
||||
const val BIONIC = "bionic"
|
||||
const val ANTICHEAT = "anticheat"
|
||||
|
||||
val tools = listOf(
|
||||
Tool("ge", "GE-Proton", "GE-Proton", "GloriousEggroll/proton-ge-custom", Regex("aarch64\\.tar\\.(gz|xz)$")),
|
||||
Tool("cachyos", "proton-cachyos", "proton-cachyos", "CachyOS/proton-cachyos", Regex("arm64\\.tar\\.(gz|xz)$")),
|
||||
Tool("droiddeck", "DroidDeck-Proton", "DroidDeck-Proton", "Droid-Deck/DroidDeck-Proton", Regex("^DroidDeck-Proton-.*aarch64\\.tar\\.(gz|xz)$")),
|
||||
Tool(ANTICHEAT, "DroidDeck-Proton x86-64", "DroidDeck-Proton", "Droid-Deck/DroidDeck-Proton", Regex("^DroidDeck-Proton-.*x86_64\\.tar\\.(gz|xz)$"), x86_64 = true, label = R.string.pextra_anticheat),
|
||||
// Bionic (Android libc) Proton started outside the Linux userland; test builds are prereleases. No-proot only.
|
||||
Tool(BIONIC, "DroidDeck-Bionic", "DroidDeck-Bionic", "Droid-Deck/DroidDeck-Proton", Regex("^DroidDeck-Bionic-.*aarch64\\.tar\\.(gz|xz)$"), prereleases = true),
|
||||
)
|
||||
@@ -66,11 +72,14 @@ object ProtonExtras {
|
||||
|
||||
internal fun installedIn(dir: File, tool: Tool): List<String> =
|
||||
dir.listFiles()
|
||||
?.filter { it.isDirectory && it.name.startsWith(tool.prefix) && usable(it) }
|
||||
?.filter { it.isDirectory && it.name.startsWith(tool.prefix) && x86_64Build(it) == tool.x86_64 && usable(it) }
|
||||
?.map { it.name }
|
||||
?.sortedWith { a, b -> compareVersions(a, b) }
|
||||
?: emptyList()
|
||||
|
||||
internal fun x86_64Build(dir: File): Boolean =
|
||||
File(dir, "files/lib/wine/x86_64-unix").isDirectory && !File(dir, "files/bin-arm64").isDirectory
|
||||
|
||||
private fun usable(dir: File): Boolean {
|
||||
val manifest = runCatching { File(dir, "toolmanifest.vdf").readText() }.getOrNull() ?: return false
|
||||
val command = Regex("\\\"commandline\\\"\\s+\\\"/?([^\\\" ]+)").find(manifest)?.groupValues?.getOrNull(1) ?: return false
|
||||
@@ -108,15 +117,31 @@ object ProtonExtras {
|
||||
|
||||
fun update(context: Context, tool: Tool): String? = updateFor(installedTags(context, tool), cachedLatest(context, tool))
|
||||
|
||||
fun missing(context: Context, tool: Tool): String? =
|
||||
if (tool.id == OWN && !declined(context) && installedAll(context, tool).isEmpty()) cachedLatest(context, tool) else null
|
||||
fun missing(context: Context, tool: Tool): String? = missing(context, tool) { antiCheatRuntimeInstalled(context) }
|
||||
|
||||
internal fun missing(context: Context, tool: Tool, antiCheat: () -> Boolean): String? = when {
|
||||
declined(context, tool.id) || installedAll(context, tool).isNotEmpty() -> null
|
||||
tool.id == OWN || tool.id == ANTICHEAT && antiCheat() -> cachedLatest(context, tool)
|
||||
else -> null
|
||||
}
|
||||
|
||||
private fun antiCheatRuntimeInstalled(context: Context): Boolean =
|
||||
antiCheatRuntimeIn(listOf("arm64", SteamClient.X86_64).flatMap { arch ->
|
||||
runCatching { SteamClient.libraries(context, arch).map { it.host } }.getOrDefault(emptyList())
|
||||
} + listOfNotNull(GameStorage.effective(context)?.let { File(it.path) }, GameStorage.x64CardLibrary(context)))
|
||||
|
||||
internal fun antiCheatRuntimeIn(libraries: List<File>): Boolean = libraries.any { library ->
|
||||
ANTICHEAT_RUNTIMES.any { File(library, "steamapps/appmanifest_$it.acf").isFile }
|
||||
}
|
||||
|
||||
private val ANTICHEAT_RUNTIMES = listOf(SteamStorage.EAC_RUNTIME, SteamStorage.BATTLEYE_RUNTIME)
|
||||
|
||||
private fun choices(context: Context) = context.getSharedPreferences("proton-auto-updates", Context.MODE_PRIVATE)
|
||||
|
||||
fun declined(context: Context): Boolean = choices(context).getBoolean("$OWN.declined", false)
|
||||
fun declined(context: Context, id: String = OWN): Boolean = choices(context).getBoolean("$id.declined", false)
|
||||
|
||||
fun setDeclined(context: Context, declined: Boolean) {
|
||||
choices(context).edit().putBoolean("$OWN.declined", declined).apply()
|
||||
fun setDeclined(context: Context, declined: Boolean, id: String = OWN) {
|
||||
choices(context).edit().putBoolean("$id.declined", declined).apply()
|
||||
}
|
||||
|
||||
fun cachedLatest(context: Context, tool: Tool): String? =
|
||||
@@ -220,8 +245,8 @@ object ProtonExtras {
|
||||
if (runCatching { ComponentsManager.carryOver(context, old, newest) }.onFailure { Log.w(TAG, "components of $old", it) }.isFailure) continue
|
||||
if (runCatching { keepUserSettings(context, old, newest) }.onFailure { Log.w(TAG, "user settings of $old", it) }.isFailure) continue
|
||||
if (runCatching { ProtonDefault.moveGames(context, setOf(old), newest) }.onFailure { Log.w(TAG, "per-game picks of $old", it) }.isFailure) continue
|
||||
// DroidDeck-Bionic only: the guest finds no default for a deleted Bionic build and falls back to DroidDeck-Proton
|
||||
if (tool.id == BIONIC && runCatching { ProtonDefault.moveDefault(context, setOf(old), newest) }.onFailure { Log.w(TAG, "default pick of $old", it) }.isFailure) continue
|
||||
// DroidDeck-Bionic and the x86-64 build: the guest finds no default for a deleted build and falls back to DroidDeck-Proton
|
||||
if ((tool.id == BIONIC || tool.id == ANTICHEAT) && runCatching { ProtonDefault.moveDefault(context, setOf(old), newest) }.onFailure { Log.w(TAG, "default pick of $old", it) }.isFailure) continue
|
||||
if (deleteTool(context, old)) ComponentsManager.forgetProton(context, old)
|
||||
else Log.w(TAG, "could not remove $old")
|
||||
}
|
||||
@@ -288,7 +313,7 @@ object ProtonExtras {
|
||||
}
|
||||
|
||||
private fun prefetchNow(context: Context, tool: Tool, onProgress: (String, Int) -> Unit): String? {
|
||||
val asset = releases(tool)?.let { pickAsset(tool, it) } ?: return context.getString(R.string.pextra_no_release, tool.name)
|
||||
val asset = releases(tool)?.let { pickAsset(tool, it) } ?: return context.getString(R.string.pextra_no_release, tool.name, tool.arch)
|
||||
val downloads = File(context.filesDir, "proton-downloads").apply { mkdirs() }
|
||||
val archive = File(downloads, "${tool.id}-${asset.name}")
|
||||
if (asset.size > 0 && archive.length() > asset.size) archive.delete()
|
||||
@@ -305,7 +330,7 @@ object ProtonExtras {
|
||||
if (SessionState.running) return context.getString(R.string.pextra_stop_session)
|
||||
if (!LinuxRuntime.isInstalled(context)) return context.getString(R.string.user_apps_runtime_required)
|
||||
|
||||
val asset = releases(tool)?.let { pickAsset(tool, it) } ?: return context.getString(R.string.pextra_no_release, tool.name)
|
||||
val asset = releases(tool)?.let { pickAsset(tool, it) } ?: return context.getString(R.string.pextra_no_release, tool.name, tool.arch)
|
||||
val downloads = File(context.filesDir, "proton-downloads").apply { mkdirs() }
|
||||
val archive = File(downloads, "${tool.id}-${asset.name}")
|
||||
if (asset.size > 0 && archive.length() > asset.size) archive.delete()
|
||||
@@ -374,7 +399,7 @@ object ProtonExtras {
|
||||
archive.delete()
|
||||
unqueue(context, tool)
|
||||
record(context, tool, placed, asset.tag)
|
||||
if (tool.id == OWN || tool.id == BIONIC) replaceOlder(context, tool)
|
||||
if (tool.id == OWN || tool.id == BIONIC || tool.id == ANTICHEAT) replaceOlder(context, tool)
|
||||
if (EsyncPacks.enabled(context)) {
|
||||
onProgress(context.getString(R.string.esync_fetching), -1)
|
||||
try {
|
||||
|
||||
@@ -112,10 +112,21 @@ object SessionPrefs {
|
||||
else -> false
|
||||
}
|
||||
|
||||
fun launcherFullscreen(context: Context): Boolean = prefs(context).getBoolean("launcherFullscreen", true)
|
||||
fun launcherFullscreenMode(context: Context): FullscreenMode {
|
||||
val preferences = prefs(context)
|
||||
return FullscreenMode.fromStored(preferences.getString("launcherFullscreenMode", null))
|
||||
?: if (preferences.getBoolean("launcherFullscreen", true)) FullscreenMode.ALWAYS else FullscreenMode.OFF
|
||||
}
|
||||
|
||||
fun setLauncherFullscreen(context: Context, on: Boolean) {
|
||||
prefs(context).edit().putBoolean("launcherFullscreen", on).apply()
|
||||
fun setLauncherFullscreenMode(context: Context, mode: FullscreenMode) {
|
||||
prefs(context).edit().putString("launcherFullscreenMode", mode.name).apply()
|
||||
}
|
||||
|
||||
fun sessionFullscreenMode(context: Context): FullscreenMode =
|
||||
FullscreenMode.fromStored(prefs(context).getString("sessionFullscreenMode", null)) ?: FullscreenMode.ALWAYS
|
||||
|
||||
fun setSessionFullscreenMode(context: Context, mode: FullscreenMode) {
|
||||
prefs(context).edit().putString("sessionFullscreenMode", mode.name).apply()
|
||||
}
|
||||
|
||||
fun launcherFrost(context: Context): Boolean = prefs(context).getBoolean("launcherFrost", false)
|
||||
@@ -1912,6 +1923,9 @@ object SessionPrefs {
|
||||
return if (pip && mirrorRefreshLimit <= 0 && (limit <= 0 || limit > PIP_FPS)) PIP_FPS else limit
|
||||
}
|
||||
|
||||
fun layerFrameRate(ownLimit: Int, refreshHz: Float, blackFrameInsertion: Boolean): Float =
|
||||
if (ownLimit > 0 && !blackFrameInsertion) ownLimit.toFloat() else refreshHz
|
||||
|
||||
/** The per-app rate Android holds this window to (Game Mode's FPS override), or 0 when the panel's rate applies. */
|
||||
fun hostFrameCap(overrideHz: Float, panelHz: Float): Int =
|
||||
if (overrideHz > 1f && panelHz - overrideHz > 1f) Math.round(overrideHz) else 0
|
||||
@@ -2011,24 +2025,84 @@ object SessionPrefs {
|
||||
sessionPrefs.edit().putString(SCREEN_EFFECTS_PROFILES_KEY, profiles.toString()).apply()
|
||||
}
|
||||
|
||||
private const val GAME_UPSCALER_OVERRIDES_KEY = "upscaler.gameOverrides"
|
||||
|
||||
private fun gameUpscalerOverrides(context: Context): JSONObject = runCatching {
|
||||
JSONObject(prefs(context).getString(GAME_UPSCALER_OVERRIDES_KEY, null) ?: "{}")
|
||||
}.getOrDefault(JSONObject())
|
||||
|
||||
private fun legacyScreenEffectsUpscaler(context: Context, profileId: String): Int? =
|
||||
runCatching {
|
||||
val profiles = JSONObject(prefs(context).getString(SCREEN_EFFECTS_PROFILES_KEY, null) ?: "{}")
|
||||
val profile = profiles.optJSONObject(profileId)
|
||||
if (profile?.has(SCREEN_EFFECTS_PROFILE_UPSCALER_KEY) == true) {
|
||||
profile.optInt(SCREEN_EFFECTS_PROFILE_UPSCALER_KEY, -1).takeIf { it >= 0 }
|
||||
} else null
|
||||
}.getOrNull()?.let(::canonicalUpscaler)
|
||||
|
||||
private fun clearLegacyScreenEffectsUpscaler(context: Context, profileId: String) {
|
||||
val sessionPrefs = prefs(context)
|
||||
val profiles = runCatching {
|
||||
JSONObject(sessionPrefs.getString(SCREEN_EFFECTS_PROFILES_KEY, null) ?: "{}")
|
||||
}.getOrNull() ?: return
|
||||
val profile = profiles.optJSONObject(profileId) ?: return
|
||||
if (!profile.has(SCREEN_EFFECTS_PROFILE_UPSCALER_KEY)) return
|
||||
profile.remove(SCREEN_EFFECTS_PROFILE_UPSCALER_KEY)
|
||||
if (profile.length() == 0) profiles.remove(profileId)
|
||||
sessionPrefs.edit().apply {
|
||||
if (profiles.length() == 0) remove(SCREEN_EFFECTS_PROFILES_KEY)
|
||||
else putString(SCREEN_EFFECTS_PROFILES_KEY, profiles.toString())
|
||||
}.apply()
|
||||
}
|
||||
|
||||
fun hasGameUpscalerOverride(context: Context, gameId: String): Boolean {
|
||||
if (gameId.isBlank()) return false
|
||||
val stored = gameUpscalerOverrides(context)
|
||||
return (stored.has(gameId) && stored.optInt(gameId, -1) >= 0) ||
|
||||
legacyScreenEffectsUpscaler(context, "game:$gameId") != null
|
||||
}
|
||||
|
||||
fun setGameUpscaler(context: Context, gameId: String, mode: Int) {
|
||||
if (gameId.isBlank()) return
|
||||
val overrides = gameUpscalerOverrides(context)
|
||||
overrides.put(gameId, canonicalUpscaler(mode))
|
||||
prefs(context).edit().putString(GAME_UPSCALER_OVERRIDES_KEY, overrides.toString()).apply()
|
||||
clearLegacyScreenEffectsUpscaler(context, "game:$gameId")
|
||||
}
|
||||
|
||||
fun clearGameUpscaler(context: Context, gameId: String) {
|
||||
if (gameId.isBlank()) return
|
||||
val sessionPrefs = prefs(context)
|
||||
val overrides = gameUpscalerOverrides(context)
|
||||
if (overrides.has(gameId)) {
|
||||
overrides.remove(gameId)
|
||||
sessionPrefs.edit().apply {
|
||||
if (overrides.length() == 0) remove(GAME_UPSCALER_OVERRIDES_KEY)
|
||||
else putString(GAME_UPSCALER_OVERRIDES_KEY, overrides.toString())
|
||||
}.apply()
|
||||
}
|
||||
clearLegacyScreenEffectsUpscaler(context, "game:$gameId")
|
||||
}
|
||||
|
||||
fun hasScreenEffectsUpscalerOverride(context: Context, profileId: String?): Boolean {
|
||||
if (profileId.isNullOrBlank()) return false
|
||||
return runCatching {
|
||||
val profiles = JSONObject(prefs(context).getString(SCREEN_EFFECTS_PROFILES_KEY, null) ?: "{}")
|
||||
profiles.optJSONObject(profileId)?.has(SCREEN_EFFECTS_PROFILE_UPSCALER_KEY) == true
|
||||
}.getOrDefault(false)
|
||||
if (profileId.startsWith("game:")) {
|
||||
return hasGameUpscalerOverride(context, profileId.removePrefix("game:"))
|
||||
}
|
||||
return legacyScreenEffectsUpscaler(context, profileId) != null
|
||||
}
|
||||
|
||||
fun screenEffectsUpscaler(context: Context, profileId: String?): Int {
|
||||
if (profileId.isNullOrBlank()) return upscaler(context)
|
||||
val stored = runCatching {
|
||||
val profiles = JSONObject(prefs(context).getString(SCREEN_EFFECTS_PROFILES_KEY, null) ?: "{}")
|
||||
val profile = profiles.optJSONObject(profileId)
|
||||
if (profile?.has(SCREEN_EFFECTS_PROFILE_UPSCALER_KEY) == true) {
|
||||
profile.optInt(SCREEN_EFFECTS_PROFILE_UPSCALER_KEY, -1)
|
||||
} else -1
|
||||
}.getOrDefault(-1)
|
||||
return if (stored >= 0) canonicalUpscaler(stored) else upscaler(context)
|
||||
if (profileId.startsWith("game:")) {
|
||||
val gameId = profileId.removePrefix("game:")
|
||||
val overrides = gameUpscalerOverrides(context)
|
||||
if (overrides.has(gameId)) {
|
||||
val stored = overrides.optInt(gameId, -1)
|
||||
if (stored >= 0) return canonicalUpscaler(stored)
|
||||
}
|
||||
}
|
||||
return legacyScreenEffectsUpscaler(context, profileId) ?: upscaler(context)
|
||||
}
|
||||
|
||||
fun setScreenEffectsUpscaler(context: Context, profileId: String?, mode: Int) {
|
||||
@@ -2036,6 +2110,10 @@ object SessionPrefs {
|
||||
setUpscaler(context, mode)
|
||||
return
|
||||
}
|
||||
if (profileId.startsWith("game:")) {
|
||||
setGameUpscaler(context, profileId.removePrefix("game:"), mode)
|
||||
return
|
||||
}
|
||||
val sessionPrefs = prefs(context)
|
||||
val profiles = runCatching {
|
||||
JSONObject(sessionPrefs.getString(SCREEN_EFFECTS_PROFILES_KEY, null) ?: "{}")
|
||||
@@ -2072,6 +2150,7 @@ object SessionPrefs {
|
||||
val profiles = runCatching {
|
||||
JSONObject(sessionPrefs.getString(SCREEN_EFFECTS_PROFILES_KEY, null) ?: "{}")
|
||||
}.getOrElse { JSONObject() }
|
||||
if (profileId.startsWith("game:")) clearGameUpscaler(context, profileId.removePrefix("game:"))
|
||||
if (!profiles.has(profileId)) return
|
||||
profiles.remove(profileId)
|
||||
sessionPrefs.edit().apply {
|
||||
|
||||
@@ -12,7 +12,7 @@ object SettingsReset {
|
||||
private const val TAG = "SettingsReset"
|
||||
|
||||
internal val SESSION_KEYS = setOf(
|
||||
"orientation", "launcherFullscreen", "launcherFrost", "frostWallpaper", "frostCards", "frostTransparency", "frostCardTransparency", "controllerHaptics", "animations", "lowStorageWarning", "theme", "runSteamAtStartup", "startupSession", "addedGamesArt",
|
||||
"orientation", "launcherFullscreen", "launcherFullscreenMode", "sessionFullscreenMode", "launcherFrost", "frostWallpaper", "frostCards", "frostTransparency", "frostCardTransparency", "controllerHaptics", "animations", "lowStorageWarning", "theme", "runSteamAtStartup", "startupSession", "addedGamesArt",
|
||||
"drawerWidthDp", "dualScreenMode", "dualScreenSessionMode", "dualScreenLauncher", "dualScreenSessionControls", "androidTextFieldKeyboard",
|
||||
"soundtracksIngame", "gameStoresSpeedTier", "gameStoresParallel", "storesOpenTab", "storesShowMature",
|
||||
"storesInstallLanguage",
|
||||
|
||||
@@ -5,7 +5,9 @@ import android.content.ContextWrapper
|
||||
import android.os.Build
|
||||
import android.view.KeyEvent
|
||||
import android.view.WindowManager
|
||||
import androidx.activity.compose.BackHandler
|
||||
import androidx.activity.compose.LocalActivityResultRegistryOwner
|
||||
import androidx.activity.compose.LocalOnBackPressedDispatcherOwner
|
||||
import androidx.activity.compose.rememberLauncherForActivityResult
|
||||
import androidx.activity.result.contract.ActivityResultContracts
|
||||
import androidx.compose.animation.expandVertically
|
||||
@@ -50,12 +52,12 @@ import androidx.compose.foundation.text.KeyboardOptions
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.automirrored.outlined.Send
|
||||
import androidx.compose.material.icons.outlined.Extension
|
||||
import androidx.compose.material.icons.outlined.PhotoCamera
|
||||
import androidx.compose.material.icons.outlined.MicOff
|
||||
import androidx.compose.material.icons.outlined.Mic
|
||||
import androidx.compose.material.icons.outlined.Add
|
||||
import androidx.compose.material.icons.outlined.ArrowDownward
|
||||
import androidx.compose.material.icons.outlined.AttachFile
|
||||
import androidx.compose.material.icons.outlined.Keyboard
|
||||
import androidx.compose.material.icons.outlined.Terminal
|
||||
import androidx.compose.material.icons.outlined.Build
|
||||
import androidx.compose.material.icons.outlined.Close
|
||||
@@ -79,6 +81,7 @@ import androidx.compose.runtime.MutableState
|
||||
import androidx.compose.runtime.Stable
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.mutableIntStateOf
|
||||
import androidx.compose.runtime.mutableStateMapOf
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.runtime.rememberCoroutineScope
|
||||
@@ -108,6 +111,7 @@ import androidx.compose.ui.input.pointer.pointerInput
|
||||
import androidx.compose.ui.layout.onGloballyPositioned
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.platform.LocalDensity
|
||||
import androidx.compose.ui.platform.LocalConfiguration
|
||||
import androidx.compose.ui.platform.LocalFocusManager
|
||||
import androidx.compose.ui.platform.LocalView
|
||||
import androidx.compose.ui.platform.testTag
|
||||
@@ -301,7 +305,7 @@ private fun AgentPageContent(
|
||||
readingBack = false
|
||||
scope.launch { list.scrollToItem(maxOf(0, list.layoutInfo.totalItemsCount - 1), Int.MAX_VALUE / 2) }
|
||||
}
|
||||
val hidden = !composer.focused && !composer.hasUnconsumedFocusRequest() && readingBack && AgentHost.entries.isNotEmpty() &&
|
||||
val hidden = !composer.focused && !composer.tray && !composer.hasUnconsumedFocusRequest() && readingBack && AgentHost.entries.isNotEmpty() &&
|
||||
AgentHost.approvals.isEmpty()
|
||||
var listHeight by remember { mutableIntStateOf(0) }
|
||||
Box(
|
||||
@@ -319,6 +323,7 @@ private fun AgentPageContent(
|
||||
awaitEachGesture {
|
||||
awaitFirstDown(requireUnconsumed = false, pass = PointerEventPass.Initial)
|
||||
if (panel == AgentPanel.MODEL || panel == AgentPanel.USAGE) panel = AgentPanel.NONE
|
||||
composer.tray = false
|
||||
// Forced: the unforced path walks the focus chain and throws ("ActiveParent with no focused child") when a tap lands while focus is moving.
|
||||
if (composer.focused) focusManager.clearFocus(force = true)
|
||||
}
|
||||
@@ -344,6 +349,12 @@ private fun AgentPageContent(
|
||||
@Stable
|
||||
private class ComposerState {
|
||||
var focused by mutableStateOf(false)
|
||||
/** The photo tray stands in for the keyboard, at the height the keyboard last had. */
|
||||
var tray by mutableStateOf(false)
|
||||
var keyboardHeight by mutableStateOf(0.dp)
|
||||
/** Tray photos copied, or being copied, for this conversation, so reopening the tray keeps their marks and copies nothing twice. */
|
||||
val photoCopies = mutableStateMapOf<android.net.Uri, String>()
|
||||
val photosCopying = mutableStateMapOf<android.net.Uri, Any>()
|
||||
var focusRequests by mutableIntStateOf(0)
|
||||
private set
|
||||
private var consumedFocusRequests by mutableIntStateOf(0)
|
||||
@@ -390,7 +401,7 @@ private fun ModelChip(panel: AgentPanel, onPanel: (AgentPanel) -> Unit, firstCon
|
||||
.clickable { onPanel(AgentPanel.MODEL) }.padding(horizontal = 8.dp).testTag("agent-model"),
|
||||
) {
|
||||
val mode = AgentHost.harness.permissions.drop(1).firstOrNull { it.id == AgentHost.permission }?.let { stringResource(it.label) }
|
||||
val parts = if (compact) listOfNotNull(mode ?: model)
|
||||
val parts = if (compact) listOf(model)
|
||||
else listOfNotNull(
|
||||
AgentHost.harness.name, model, AgentHost.effort, mode,
|
||||
stringResource(R.string.agent_plan_short).takeIf { AgentHost.plan && AgentHost.harness.plans },
|
||||
@@ -748,6 +759,8 @@ private fun AgentComposer(
|
||||
if (text.isEmpty() && AgentAttachments.pending.isEmpty()) return@send
|
||||
AgentHost.send(context, text, AgentAttachments.pending.toList())
|
||||
AgentAttachments.pending.clear()
|
||||
composer.photosCopying.clear()
|
||||
composer.tray = false
|
||||
onSent()
|
||||
}
|
||||
}
|
||||
@@ -813,7 +826,34 @@ private fun AgentEditor(composer: ComposerState, draftState: MutableState<String
|
||||
var focused by remember { mutableStateOf(false) }
|
||||
val field = remember { FocusRequester() }
|
||||
LaunchedEffect(composer.focusRequests) { if (composer.hasUnconsumedFocusRequest()) runCatching { field.requestFocus() } }
|
||||
val attach = LocalActivityResultRegistryOwner.current != null
|
||||
val picks = LocalActivityResultRegistryOwner.current != null
|
||||
val density = LocalDensity.current
|
||||
val imeHeight = WindowInsets.ime.getBottom(density)
|
||||
LaunchedEffect(imeHeight) {
|
||||
val height = with(density) { imeHeight.toDp() }
|
||||
if (height > composer.keyboardHeight) composer.keyboardHeight = height
|
||||
}
|
||||
LaunchedEffect(hideAttach) { if (hideAttach) composer.tray = false }
|
||||
LaunchedEffect(AgentHost.chat) {
|
||||
composer.photoCopies.clear()
|
||||
composer.photosCopying.clear()
|
||||
}
|
||||
// BackHandler throws where the host provides no back dispatcher: the front end and the floating pet.
|
||||
if (LocalOnBackPressedDispatcherOwner.current != null) BackHandler(composer.tray) { composer.tray = false }
|
||||
val focusManager = LocalFocusManager.current
|
||||
val files = if (picks) rememberLauncherForActivityResult(ActivityResultContracts.OpenMultipleDocuments()) {
|
||||
AgentAttachments.picking = false
|
||||
attachUris(context, it)
|
||||
} else null
|
||||
val toggleTray = {
|
||||
if (composer.tray) {
|
||||
composer.tray = false
|
||||
composer.open()
|
||||
} else {
|
||||
focusManager.clearFocus(force = true)
|
||||
composer.tray = true
|
||||
}
|
||||
}
|
||||
BoxWithConstraints(
|
||||
Modifier.fillMaxWidth().padding(top = 8.dp).clip(Shape16).background(colors.surface)
|
||||
.border(if (focused) 2.dp else 1.dp, if (focused) pal.primary else pal.line, Shape16).padding(6.dp),
|
||||
@@ -841,6 +881,7 @@ private fun AgentEditor(composer: ComposerState, draftState: MutableState<String
|
||||
Modifier.fillMaxWidth().focusRequester(field).onFocusChanged {
|
||||
focused = it.isFocused
|
||||
composer.focused = it.isFocused
|
||||
if (it.isFocused) composer.tray = false
|
||||
if (it.isFocused) composer.consumeFocusRequest()
|
||||
}.testTag("agent-input"),
|
||||
textStyle = TextStyle(fontSize = 16.sp, color = colors.onSurface),
|
||||
@@ -866,19 +907,22 @@ private fun AgentEditor(composer: ComposerState, draftState: MutableState<String
|
||||
if (stacked) Column {
|
||||
text(Modifier.fillMaxWidth())
|
||||
Row(verticalAlignment = Alignment.CenterVertically, modifier = Modifier.fillMaxWidth()) {
|
||||
AnimatedVisibility(attach && !hideAttach, enter = expandHorizontally() + fadeIn(), exit = shrinkHorizontally() + fadeOut()) { AttachButton() }
|
||||
AnimatedVisibility(AgentAttachments.gameFrame != null && !hideAttach, enter = expandHorizontally() + fadeIn(), exit = shrinkHorizontally() + fadeOut()) { GameFrameButton() }
|
||||
AnimatedVisibility(!hideAttach, enter = expandHorizontally() + fadeIn(), exit = shrinkHorizontally() + fadeOut()) { AttachButton(composer.tray, toggleTray) }
|
||||
Row(verticalAlignment = Alignment.CenterVertically, modifier = Modifier.weight(1f).height(42.dp).horizontalScroll(rememberScrollState(), reverseScrolling = true)) { if (controls != null && !focused) controls() }
|
||||
actions()
|
||||
}
|
||||
} else Row(verticalAlignment = Alignment.Bottom) {
|
||||
AnimatedVisibility(attach && !hideAttach, enter = expandHorizontally() + fadeIn(), exit = shrinkHorizontally() + fadeOut()) { AttachButton() }
|
||||
AnimatedVisibility(AgentAttachments.gameFrame != null && !hideAttach, enter = expandHorizontally() + fadeIn(), exit = shrinkHorizontally() + fadeOut()) { GameFrameButton() }
|
||||
AnimatedVisibility(!hideAttach, enter = expandHorizontally() + fadeIn(), exit = shrinkHorizontally() + fadeOut()) { AttachButton(composer.tray, toggleTray) }
|
||||
text(Modifier.weight(1f))
|
||||
if (controls != null && !focused) Row(verticalAlignment = Alignment.CenterVertically, modifier = Modifier.height(42.dp)) { controls() }
|
||||
actions()
|
||||
}
|
||||
}
|
||||
AnimatedVisibility(composer.tray, enter = expandVertically() + fadeIn(), exit = shrinkVertically() + fadeOut()) {
|
||||
val most = LocalConfiguration.current.screenHeightDp.dp * 0.45f
|
||||
val height = (if (composer.keyboardHeight > 0.dp) composer.keyboardHeight else 280.dp).coerceAtLeast(160.dp).coerceAtMost(most)
|
||||
AgentPhotoTray(height, composer.photoCopies, composer.photosCopying, files?.let { { AgentAttachments.pick { it.launch(arrayOf("*/*")) } } })
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -974,53 +1018,15 @@ private fun VoiceButton(voice: AgentVoice, onStart: () -> Unit, onSend: () -> Un
|
||||
}
|
||||
}
|
||||
|
||||
/** Attaches what the running game shows, taken from its own surface so nothing drawn over it is in the picture. */
|
||||
/** Opens the photo tray in place of the keyboard; while it is open, brings the keyboard back. */
|
||||
@Composable
|
||||
private fun GameFrameButton() {
|
||||
val context = LocalContext.current
|
||||
private fun AttachButton(trayOpen: Boolean, onClick: () -> Unit) {
|
||||
val pal = LocalPalette.current
|
||||
RoundButton(Icons.Outlined.PhotoCamera, stringResource(R.string.agent_attach_game), pal.surfaceVariant, pal.onBackground, "agent-game-frame") {
|
||||
val grab = AgentAttachments.gameFrame ?: return@RoundButton
|
||||
val chat = AgentHost.chat
|
||||
grab frame@{ frame ->
|
||||
if (frame == null) {
|
||||
android.widget.Toast.makeText(context, R.string.agent_attach_game_failed, android.widget.Toast.LENGTH_SHORT).show()
|
||||
return@frame
|
||||
}
|
||||
Thread({
|
||||
val path = AgentAttachments.saveFrame(context, chat, frame)
|
||||
frame.recycle()
|
||||
android.os.Handler(android.os.Looper.getMainLooper()).post {
|
||||
when {
|
||||
path == null -> android.widget.Toast.makeText(context, R.string.agent_attach_game_failed, android.widget.Toast.LENGTH_SHORT).show()
|
||||
AgentHost.chat == chat -> AgentAttachments.pending.add(path)
|
||||
else -> AgentAttachments.discard(context, listOf(path))
|
||||
}
|
||||
}
|
||||
}, "agent-game-frame").start()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun AttachButton() {
|
||||
val context = LocalContext.current
|
||||
val pal = LocalPalette.current
|
||||
val picker = rememberLauncherForActivityResult(ActivityResultContracts.OpenMultipleDocuments()) { uris ->
|
||||
AgentAttachments.picking = false
|
||||
if (uris.isEmpty()) return@rememberLauncherForActivityResult
|
||||
val chat = AgentHost.chat
|
||||
Thread({
|
||||
val paths = AgentAttachments.copy(context, chat, uris)
|
||||
android.os.Handler(android.os.Looper.getMainLooper()).post {
|
||||
if (AgentHost.chat == chat) AgentAttachments.pending.addAll(paths) else AgentAttachments.discard(context, paths)
|
||||
}
|
||||
}, "agent-attach").start()
|
||||
}
|
||||
RoundButton(Icons.Outlined.AttachFile, stringResource(R.string.agent_attach), pal.surfaceVariant, pal.onBackground, "agent-attach") {
|
||||
AgentAttachments.picking = true
|
||||
if (runCatching { picker.launch(arrayOf("*/*")) }.isFailure) AgentAttachments.picking = false
|
||||
}
|
||||
RoundButton(
|
||||
if (trayOpen) Icons.Outlined.Keyboard else Icons.Outlined.AttachFile,
|
||||
stringResource(if (trayOpen) R.string.agent_keyboard else R.string.agent_attach),
|
||||
if (trayOpen) pal.primary else pal.surfaceVariant, if (trayOpen) pal.onPrimary else pal.onBackground, "agent-attach", onClick = onClick,
|
||||
)
|
||||
}
|
||||
|
||||
@Composable
|
||||
|
||||
@@ -0,0 +1,280 @@
|
||||
package com.droiddeck.launcher.ui
|
||||
|
||||
import android.Manifest
|
||||
import android.content.ContentUris
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.content.pm.PackageManager
|
||||
import android.net.Uri
|
||||
import android.os.Build
|
||||
import android.os.Environment
|
||||
import android.provider.MediaStore
|
||||
import android.provider.Settings
|
||||
import android.widget.Toast
|
||||
import androidx.activity.compose.LocalActivityResultRegistryOwner
|
||||
import androidx.activity.compose.rememberLauncherForActivityResult
|
||||
import androidx.activity.result.contract.ActivityResultContracts
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.border
|
||||
import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.aspectRatio
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.height
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.size
|
||||
import androidx.compose.foundation.lazy.grid.GridCells
|
||||
import androidx.compose.foundation.lazy.grid.GridItemSpan
|
||||
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
|
||||
import androidx.compose.foundation.lazy.grid.items
|
||||
import androidx.compose.foundation.shape.CircleShape
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.outlined.Check
|
||||
import androidx.compose.material.icons.outlined.FolderOpen
|
||||
import androidx.compose.material.icons.outlined.PhotoCamera
|
||||
import androidx.compose.material.icons.outlined.PhotoLibrary
|
||||
import androidx.compose.material3.Icon
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.DisposableEffect
|
||||
import androidx.compose.runtime.LaunchedEffect
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.runtime.setValue
|
||||
import androidx.compose.runtime.snapshots.SnapshotStateMap
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.draw.clip
|
||||
import androidx.compose.ui.graphics.vector.ImageVector
|
||||
import androidx.compose.ui.layout.ContentScale
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.platform.LocalLifecycleOwner
|
||||
import androidx.compose.ui.platform.testTag
|
||||
import androidx.compose.ui.semantics.contentDescription
|
||||
import androidx.compose.ui.semantics.selected
|
||||
import androidx.compose.ui.semantics.semantics
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.text.style.TextAlign
|
||||
import androidx.compose.ui.text.style.TextOverflow
|
||||
import androidx.compose.ui.unit.Dp
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.unit.sp
|
||||
import androidx.lifecycle.Lifecycle
|
||||
import androidx.lifecycle.LifecycleEventObserver
|
||||
import coil.compose.AsyncImage
|
||||
import coil.request.ImageRequest
|
||||
import com.droiddeck.launcher.R
|
||||
import com.droiddeck.launcher.agent.AgentAttachments
|
||||
import com.droiddeck.launcher.agent.AgentHost
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.withContext
|
||||
|
||||
/** The device's photos, newest first, as MediaStore lets the app see them. */
|
||||
internal object AgentPhotos {
|
||||
enum class Access { NONE, SELECTED, ALL }
|
||||
|
||||
/** Android stops showing the request after repeated denials and answers it at once, so a denied request sends later ones to Settings. */
|
||||
var refused = false
|
||||
|
||||
fun permissions(sdk: Int = Build.VERSION.SDK_INT): Array<String> = when {
|
||||
sdk >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE -> arrayOf(Manifest.permission.READ_MEDIA_IMAGES, Manifest.permission.READ_MEDIA_VISUAL_USER_SELECTED)
|
||||
sdk >= Build.VERSION_CODES.TIRAMISU -> arrayOf(Manifest.permission.READ_MEDIA_IMAGES)
|
||||
else -> arrayOf(Manifest.permission.READ_EXTERNAL_STORAGE)
|
||||
}
|
||||
|
||||
fun access(context: Context): Access {
|
||||
fun granted(permission: String) = context.checkSelfPermission(permission) == PackageManager.PERMISSION_GRANTED
|
||||
val all = permissions().first()
|
||||
return when {
|
||||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.R && Environment.isExternalStorageManager() -> Access.ALL
|
||||
granted(all) -> Access.ALL
|
||||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE && granted(Manifest.permission.READ_MEDIA_VISUAL_USER_SELECTED) -> Access.SELECTED
|
||||
else -> Access.NONE
|
||||
}
|
||||
}
|
||||
|
||||
class Photo(val uri: Uri, val name: String)
|
||||
|
||||
fun recent(context: Context, limit: Int = 300): List<Photo> = runCatching {
|
||||
val images = MediaStore.Images.Media.EXTERNAL_CONTENT_URI
|
||||
context.contentResolver.query(
|
||||
images, arrayOf(MediaStore.Images.Media._ID, MediaStore.Images.Media.DISPLAY_NAME), null, null, "${MediaStore.Images.Media.DATE_ADDED} DESC",
|
||||
)?.use { c ->
|
||||
buildList {
|
||||
while (size < limit && c.moveToNext()) add(Photo(ContentUris.withAppendedId(images, c.getLong(0)), c.getString(1).orEmpty()))
|
||||
}
|
||||
}.orEmpty()
|
||||
}.getOrDefault(emptyList())
|
||||
}
|
||||
|
||||
/**
|
||||
* Copies [uris] into the conversation's attachments off the main thread, then hands [onCopied] what was attached: nothing if the
|
||||
* conversation changed meanwhile or [current] says the copy was superseded.
|
||||
*/
|
||||
internal fun attachUris(context: Context, uris: List<Uri>, current: () -> Boolean = { true }, onCopied: (List<Pair<Uri, String>>) -> Unit = {}) {
|
||||
if (uris.isEmpty()) return
|
||||
val chat = AgentHost.chat
|
||||
Thread({
|
||||
val copied = uris.mapNotNull { uri -> AgentAttachments.copy(context, chat, listOf(uri)).firstOrNull()?.let { uri to it } }
|
||||
android.os.Handler(android.os.Looper.getMainLooper()).post {
|
||||
val paths = copied.map { it.second }
|
||||
if (AgentHost.chat == chat && current()) {
|
||||
AgentAttachments.pending.addAll(paths)
|
||||
onCopied(copied)
|
||||
} else {
|
||||
AgentAttachments.discard(context, paths)
|
||||
onCopied(emptyList())
|
||||
}
|
||||
}
|
||||
}, "agent-attach").start()
|
||||
}
|
||||
|
||||
/** Attaches what the running game shows, taken from its own surface so nothing drawn over it is in the picture. */
|
||||
private fun attachGameFrame(context: Context) {
|
||||
val grab = AgentAttachments.gameFrame ?: return
|
||||
val chat = AgentHost.chat
|
||||
grab frame@{ frame ->
|
||||
if (frame == null) {
|
||||
Toast.makeText(context, R.string.agent_attach_game_failed, Toast.LENGTH_SHORT).show()
|
||||
return@frame
|
||||
}
|
||||
Thread({
|
||||
val path = AgentAttachments.saveFrame(context, chat, frame)
|
||||
frame.recycle()
|
||||
android.os.Handler(android.os.Looper.getMainLooper()).post {
|
||||
when {
|
||||
path == null -> Toast.makeText(context, R.string.agent_attach_game_failed, Toast.LENGTH_SHORT).show()
|
||||
AgentHost.chat == chat -> AgentAttachments.pending.add(path)
|
||||
else -> AgentAttachments.discard(context, listOf(path))
|
||||
}
|
||||
}
|
||||
}, "agent-game-frame").start()
|
||||
}
|
||||
}
|
||||
|
||||
/** Shown in place of the keyboard: recent photos to tap onto the message, and the system picker for anything else. */
|
||||
@Composable
|
||||
internal fun AgentPhotoTray(height: Dp, copies: SnapshotStateMap<Uri, String>, copying: SnapshotStateMap<Uri, Any>, onFiles: (() -> Unit)?) {
|
||||
val context = LocalContext.current
|
||||
val pal = LocalPalette.current
|
||||
var access by remember { mutableStateOf(AgentPhotos.access(context)) }
|
||||
var photos by remember { mutableStateOf<List<AgentPhotos.Photo>?>(null) }
|
||||
var reloads by remember { mutableStateOf(0) }
|
||||
// A window no activity owns (the floating pet's chat) cannot ask for a permission, so it sends the user to the app's settings.
|
||||
val launcher = if (LocalActivityResultRegistryOwner.current != null) {
|
||||
rememberLauncherForActivityResult(ActivityResultContracts.RequestMultiplePermissions()) {
|
||||
AgentAttachments.picking = false
|
||||
access = AgentPhotos.access(context)
|
||||
if (access == AgentPhotos.Access.NONE) AgentPhotos.refused = true
|
||||
reloads++
|
||||
}
|
||||
} else null
|
||||
val request = {
|
||||
if (launcher != null && !AgentPhotos.refused) {
|
||||
AgentAttachments.pick { launcher.launch(AgentPhotos.permissions()) }
|
||||
} else {
|
||||
val details = Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS, Uri.parse("package:" + context.packageName)).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||
runCatching { context.startActivity(details) }
|
||||
}
|
||||
Unit
|
||||
}
|
||||
// Access can change in Settings, and new pictures arrive, while the app is in the background.
|
||||
val lifecycle = LocalLifecycleOwner.current.lifecycle
|
||||
DisposableEffect(lifecycle) {
|
||||
val observer = LifecycleEventObserver { _, event ->
|
||||
if (event == Lifecycle.Event.ON_RESUME) {
|
||||
access = AgentPhotos.access(context)
|
||||
reloads++
|
||||
}
|
||||
}
|
||||
lifecycle.addObserver(observer)
|
||||
onDispose { lifecycle.removeObserver(observer) }
|
||||
}
|
||||
LaunchedEffect(access, reloads) {
|
||||
photos = if (access == AgentPhotos.Access.NONE) emptyList() else withContext(Dispatchers.IO) { AgentPhotos.recent(context) }
|
||||
}
|
||||
LazyVerticalGrid(
|
||||
GridCells.Adaptive(96.dp),
|
||||
Modifier.fillMaxWidth().height(height).padding(top = 8.dp).testTag("agent-photo-tray"),
|
||||
horizontalArrangement = Arrangement.spacedBy(4.dp),
|
||||
verticalArrangement = Arrangement.spacedBy(4.dp),
|
||||
) {
|
||||
if (AgentAttachments.gameFrame != null) item {
|
||||
TrayTile(Icons.Outlined.PhotoCamera, stringResource(R.string.agent_attach_game), "agent-game-frame") { attachGameFrame(context) }
|
||||
}
|
||||
if (onFiles != null) item { TrayTile(Icons.Outlined.FolderOpen, stringResource(R.string.agent_attach_files), "agent-attach-files", onFiles) }
|
||||
if (access != AgentPhotos.Access.ALL) item {
|
||||
TrayTile(
|
||||
Icons.Outlined.PhotoLibrary,
|
||||
stringResource(if (access == AgentPhotos.Access.NONE) R.string.agent_photos_allow else R.string.agent_photos_more),
|
||||
"agent-photos-allow",
|
||||
onClick = request,
|
||||
)
|
||||
}
|
||||
val list = photos
|
||||
if (list != null && list.isEmpty() && access != AgentPhotos.Access.NONE) item(span = { GridItemSpan(maxLineSpan) }) {
|
||||
Text(
|
||||
stringResource(R.string.agent_photos_empty), fontSize = 13.sp, color = pal.onSurfaceVariant, textAlign = TextAlign.Center,
|
||||
modifier = Modifier.fillMaxWidth().padding(16.dp),
|
||||
)
|
||||
}
|
||||
items(list.orEmpty(), key = { it.uri.toString() }) { photo ->
|
||||
val uri = photo.uri
|
||||
val path = copies[uri]
|
||||
val selected = path != null && path in AgentAttachments.pending
|
||||
Box(
|
||||
Modifier.aspectRatio(1f).clip(Shape12).background(pal.surfaceVariant)
|
||||
.then(if (selected) Modifier.border(3.dp, pal.primary, Shape12) else Modifier)
|
||||
.clickable {
|
||||
when {
|
||||
selected -> AgentAttachments.pending.remove(path)
|
||||
path != null && AgentAttachments.host(context, path).exists() -> AgentAttachments.pending.add(path)
|
||||
uri in copying -> Unit
|
||||
else -> {
|
||||
// Leaving the conversation clears the markers, so a copy started before that is no longer current even back in it.
|
||||
val copy = Any()
|
||||
copying[uri] = copy
|
||||
attachUris(context, listOf(uri), current = { copying[uri] === copy }) { copied ->
|
||||
copied.forEach { (u, p) -> copies[u] = p }
|
||||
if (copying[uri] === copy) copying.remove(uri)
|
||||
}
|
||||
}
|
||||
}
|
||||
}.semantics {
|
||||
contentDescription = photo.name
|
||||
this.selected = selected
|
||||
}.testTag("agent-photo"),
|
||||
) {
|
||||
AsyncImage(
|
||||
model = ImageRequest.Builder(context).data(uri).size(320).build(), contentDescription = null,
|
||||
contentScale = ContentScale.Crop, modifier = Modifier.fillMaxSize(),
|
||||
)
|
||||
if (selected) Box(
|
||||
contentAlignment = Alignment.Center,
|
||||
modifier = Modifier.align(Alignment.TopEnd).padding(6.dp).size(22.dp).clip(CircleShape).background(pal.primary),
|
||||
) {
|
||||
Icon(Icons.Outlined.Check, null, tint = pal.onPrimary, modifier = Modifier.size(16.dp))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun TrayTile(icon: ImageVector, label: String, tag: String, onClick: () -> Unit) {
|
||||
val pal = LocalPalette.current
|
||||
Column(
|
||||
horizontalAlignment = Alignment.CenterHorizontally, verticalArrangement = Arrangement.Center,
|
||||
modifier = Modifier.aspectRatio(1f).clip(Shape12).background(pal.surfaceVariant).clickable(onClick = onClick).padding(8.dp).testTag(tag),
|
||||
) {
|
||||
Icon(icon, null, tint = pal.onBackground, modifier = Modifier.size(26.dp))
|
||||
Text(
|
||||
label, fontSize = 12.sp, color = pal.onBackground, textAlign = TextAlign.Center, maxLines = 3, overflow = TextOverflow.Ellipsis,
|
||||
modifier = Modifier.padding(top = 6.dp),
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.droiddeck.launcher.ui
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.Context
|
||||
import android.graphics.Canvas
|
||||
import android.graphics.Color
|
||||
import android.graphics.LinearGradient
|
||||
import android.graphics.Paint
|
||||
import android.graphics.Shader
|
||||
import android.view.View
|
||||
import android.widget.FrameLayout
|
||||
import com.droiddeck.launcher.input.AirTrigger
|
||||
import java.util.EnumMap
|
||||
import java.util.EnumSet
|
||||
|
||||
@SuppressLint("ViewConstructor")
|
||||
class AirTriggerGlow(context: Context) : View(context) {
|
||||
private val lit = EnumSet.noneOf(AirTrigger::class.java)
|
||||
private val density = resources.displayMetrics.density
|
||||
private val paints = EnumMap<AirTrigger, Paint>(AirTrigger::class.java)
|
||||
|
||||
init {
|
||||
isClickable = false
|
||||
isFocusable = false
|
||||
importantForAccessibility = IMPORTANT_FOR_ACCESSIBILITY_NO
|
||||
layoutParams = FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.MATCH_PARENT)
|
||||
val top = TOP_DP * density
|
||||
for ((trigger, look) in mapOf(AirTrigger.LEFT to LEFT, AirTrigger.RIGHT to RIGHT)) {
|
||||
val (color, fade) = look
|
||||
paints[trigger] = Paint().apply {
|
||||
shader = LinearGradient(0f, top, 0f, top + HEIGHT_DP * density,
|
||||
fade.map { Color.argb(it, Color.red(color), Color.green(color), Color.blue(color)) }.toIntArray(),
|
||||
STOPS, Shader.TileMode.CLAMP)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun show(trigger: AirTrigger, on: Boolean) {
|
||||
if (if (on) lit.add(trigger) else lit.remove(trigger)) invalidate()
|
||||
}
|
||||
|
||||
override fun onDraw(canvas: Canvas) {
|
||||
val width = WIDTH_DP * density
|
||||
val margin = SIDE_DP * density
|
||||
val top = TOP_DP * density
|
||||
for (trigger in lit) {
|
||||
val left = if (trigger == AirTrigger.LEFT) margin else this.width - margin - width
|
||||
canvas.drawRect(left, top, left + width, top + HEIGHT_DP * density, paints.getValue(trigger))
|
||||
}
|
||||
}
|
||||
|
||||
private companion object {
|
||||
// Game Space's tgk_*_top_pressed images and their landscape placement on a 2688 x 1216 RedMagic screen.
|
||||
const val WIDTH_DP = 78f
|
||||
const val HEIGHT_DP = 33f
|
||||
const val SIDE_DP = 37f
|
||||
const val TOP_DP = 2f
|
||||
val STOPS = floatArrayOf(0f, 0.04f, 0.05f, 0.2f, 0.4f, 0.6f, 0.8f, 1f)
|
||||
val LEFT = Color.rgb(230, 23, 57) to listOf(255, 255, 150, 102, 55, 36, 18, 0)
|
||||
val RIGHT = Color.rgb(23, 91, 230) to listOf(255, 255, 151, 94, 41, 27, 14, 0)
|
||||
}
|
||||
}
|
||||
@@ -24,7 +24,11 @@ object ControllerHaptics {
|
||||
tick(context)
|
||||
}
|
||||
|
||||
fun tick(context: Context) {
|
||||
fun tick(context: Context) = vibrate(context, VibrationEffect.EFFECT_TICK, 10)
|
||||
|
||||
fun click(context: Context) = vibrate(context, VibrationEffect.EFFECT_CLICK, 20)
|
||||
|
||||
private fun vibrate(context: Context, predefined: Int, fallbackMs: Long) {
|
||||
val vibrator = if (Build.VERSION.SDK_INT >= 31) {
|
||||
context.getSystemService(VibratorManager::class.java)?.defaultVibrator
|
||||
} else {
|
||||
@@ -32,11 +36,11 @@ object ControllerHaptics {
|
||||
} ?: return
|
||||
if (!vibrator.hasVibrator()) return
|
||||
if (Build.VERSION.SDK_INT >= 29) {
|
||||
vibrator.vibrate(VibrationEffect.createPredefined(VibrationEffect.EFFECT_TICK))
|
||||
vibrator.vibrate(VibrationEffect.createPredefined(predefined))
|
||||
} else if (Build.VERSION.SDK_INT >= 26) {
|
||||
vibrator.vibrate(VibrationEffect.createOneShot(10, VibrationEffect.DEFAULT_AMPLITUDE))
|
||||
vibrator.vibrate(VibrationEffect.createOneShot(fallbackMs, VibrationEffect.DEFAULT_AMPLITUDE))
|
||||
} else {
|
||||
@Suppress("DEPRECATION") vibrator.vibrate(10)
|
||||
@Suppress("DEPRECATION") vibrator.vibrate(fallbackMs)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -88,6 +88,7 @@ import com.droiddeck.launcher.input.SecondScreenDisplay
|
||||
import com.droiddeck.launcher.core.DownloadSource
|
||||
import com.droiddeck.launcher.core.PhantomProcessLimit
|
||||
import com.droiddeck.launcher.core.PhantomProcessStatus
|
||||
import com.droiddeck.launcher.session.FullscreenMode
|
||||
import com.droiddeck.launcher.session.SessionPrefs
|
||||
import kotlin.math.roundToInt
|
||||
import kotlinx.coroutines.withTimeoutOrNull
|
||||
@@ -176,7 +177,8 @@ class FrontEndState(
|
||||
val orientation: Int = android.content.pm.ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE,
|
||||
val launcherOrientation: Int = android.content.pm.ActivityInfo.SCREEN_ORIENTATION_USER,
|
||||
val homePage: String = com.droiddeck.launcher.core.AppUiPrefs.HOME_PAGE_STEAM,
|
||||
val launcherFullscreen: Boolean = true,
|
||||
val launcherFullscreenMode: FullscreenMode = FullscreenMode.ALWAYS,
|
||||
val sessionFullscreenMode: FullscreenMode = FullscreenMode.ALWAYS,
|
||||
val launcherFrost: Boolean = false,
|
||||
val frostWallpaper: Boolean = true,
|
||||
val frostCards: Boolean = true,
|
||||
@@ -288,7 +290,8 @@ class FrontEndActions(
|
||||
val onOrientation: (Int) -> Unit = {},
|
||||
val onLauncherOrientation: (Int) -> Unit = {},
|
||||
val onHomePage: (String) -> Unit = {},
|
||||
val onLauncherFullscreen: (Boolean) -> Unit = {},
|
||||
val onLauncherFullscreenMode: (FullscreenMode) -> Unit = {},
|
||||
val onSessionFullscreenMode: (FullscreenMode) -> Unit = {},
|
||||
val onLauncherFrost: (Boolean) -> Unit = {},
|
||||
val onFrostWallpaper: (Boolean) -> Unit = {},
|
||||
val onFrostCards: (Boolean) -> Unit = {},
|
||||
@@ -711,9 +714,12 @@ private fun FrontEndScreenBody(s: FrontEndState, a: FrontEndActions, page: (@Com
|
||||
if (anyFocused) return
|
||||
}
|
||||
}
|
||||
val launcherFullscreen = s.launcherFullscreenMode.hidesSystemBars(
|
||||
androidx.compose.ui.platform.LocalConfiguration.current.orientation,
|
||||
)
|
||||
androidx.compose.foundation.layout.BoxWithConstraints(
|
||||
modifier = Modifier.fillMaxSize().background(if (LocalFrost.current != null) Color.Transparent else colors.background)
|
||||
.windowInsetsPadding(if (s.launcherFullscreen) WindowInsets.displayCutout else WindowInsets.systemBars)
|
||||
.windowInsetsPadding(if (launcherFullscreen) WindowInsets.displayCutout else WindowInsets.systemBars)
|
||||
.onFocusChanged { anyFocused = it.hasFocus },
|
||||
) {
|
||||
val bottomNavigation = maxHeight > maxWidth
|
||||
|
||||
@@ -85,6 +85,7 @@ import com.droiddeck.launcher.core.DeviceSupport
|
||||
import com.droiddeck.launcher.core.DownloadSource
|
||||
import com.droiddeck.launcher.core.PhantomProcessLimit
|
||||
import com.droiddeck.launcher.core.PhantomProcessStatus
|
||||
import com.droiddeck.launcher.session.FullscreenMode
|
||||
import com.droiddeck.launcher.session.SessionPrefs
|
||||
import com.droiddeck.launcher.stores.download.StoreDownloadTier
|
||||
import com.droiddeck.launcher.R
|
||||
@@ -586,11 +587,17 @@ internal fun SetupPanel(
|
||||
SessionPrefs.setOrientation(ctx, "desktop", value)
|
||||
},
|
||||
)
|
||||
ToggleRow(
|
||||
host, "launcher-fullscreen", stringResource(R.string.setup_fullscreen),
|
||||
if (s.launcherFullscreen) stringResource(R.string.setup_fullscreen_on) else stringResource(R.string.setup_fullscreen_off),
|
||||
s.launcherFullscreen,
|
||||
) { a.onLauncherFullscreen(it) }
|
||||
val fullscreenModes = FullscreenMode.entries.map { it to stringResource(it.label) }
|
||||
ChoiceRow(
|
||||
host, "launcher-fullscreen", stringResource(R.string.setup_launcher_fullscreen),
|
||||
stringResource(R.string.setup_fullscreen_on),
|
||||
fullscreenModes, s.launcherFullscreenMode, onPick = a.onLauncherFullscreenMode,
|
||||
)
|
||||
ChoiceRow(
|
||||
host, "session-fullscreen", stringResource(R.string.setup_session_fullscreen),
|
||||
stringResource(R.string.setup_fullscreen_on),
|
||||
fullscreenModes, s.sessionFullscreenMode, onPick = a.onSessionFullscreenMode,
|
||||
)
|
||||
ToggleRow(
|
||||
host, "page-swipe", stringResource(R.string.setup_page_swipe),
|
||||
stringResource(R.string.setup_page_swipe_hint), PageSwipe.on,
|
||||
@@ -881,6 +888,28 @@ internal fun LaunchSettings(s: FrontEndState, a: FrontEndActions, host: MenuHost
|
||||
com.droiddeck.launcher.gpu.FrameGen.hasGameOverride(context, it)
|
||||
} ?: false)
|
||||
}
|
||||
val scalingFilterChoices = SessionPrefs.upscalerChoices(context)
|
||||
var gameUpscaler by remember(frameGenProfileKey) {
|
||||
mutableStateOf(frameGenProfileKey?.let {
|
||||
SessionPrefs.screenEffectsUpscaler(context, "game:$it")
|
||||
} ?: SessionPrefs.upscaler(context))
|
||||
}
|
||||
var gameUpscalerOverride by remember(frameGenProfileKey) {
|
||||
mutableStateOf(frameGenProfileKey?.let { SessionPrefs.hasGameUpscalerOverride(context, it) } ?: false)
|
||||
}
|
||||
val lifecycleOwner = LocalLifecycleOwner.current
|
||||
DisposableEffect(lifecycleOwner, frameGenProfileKey) {
|
||||
val observer = LifecycleEventObserver { _, event ->
|
||||
if (event == Lifecycle.Event.ON_RESUME) {
|
||||
frameGenProfileKey?.let { key ->
|
||||
gameUpscaler = SessionPrefs.screenEffectsUpscaler(context, "game:$key")
|
||||
gameUpscalerOverride = SessionPrefs.hasGameUpscalerOverride(context, key)
|
||||
}
|
||||
}
|
||||
}
|
||||
lifecycleOwner.lifecycle.addObserver(observer)
|
||||
onDispose { lifecycleOwner.lifecycle.removeObserver(observer) }
|
||||
}
|
||||
var wincompOpen by remember(wincompKey) { mutableStateOf<Boolean?>(null) }
|
||||
val wincompPicks = remember(wincompKey, wincompOpen) { wincompKey?.let { com.droiddeck.launcher.session.WinComponents.picks(context, it) }.orEmpty() }
|
||||
val steamScope = game?.let { com.droiddeck.launcher.session.NoSteamLaunch.scope(it) }
|
||||
@@ -914,6 +943,25 @@ internal fun LaunchSettings(s: FrontEndState, a: FrontEndActions, host: MenuHost
|
||||
},
|
||||
)
|
||||
}
|
||||
val scalingFilterMenuContent: @Composable () -> Unit = {
|
||||
val key = frameGenProfileKey
|
||||
if (key != null) ScalingFilterMenu(
|
||||
mode = gameUpscaler,
|
||||
options = scalingFilterChoices,
|
||||
hasGameOverride = gameUpscalerOverride,
|
||||
onPick = { mode ->
|
||||
SessionPrefs.setGameUpscaler(context, key, mode)
|
||||
gameUpscaler = SessionPrefs.screenEffectsUpscaler(context, "game:$key")
|
||||
gameUpscalerOverride = SessionPrefs.hasGameUpscalerOverride(context, key)
|
||||
},
|
||||
onResetGame = {
|
||||
SessionPrefs.clearGameUpscaler(context, key)
|
||||
gameUpscaler = SessionPrefs.upscaler(context)
|
||||
gameUpscalerOverride = false
|
||||
},
|
||||
gameName = game?.name,
|
||||
)
|
||||
}
|
||||
val cards = if (game?.library == com.droiddeck.launcher.frontend.Library.EPIC_LAUNCHER) listOfNotNull(steamCard) else buildList<@Composable (Modifier) -> Unit> {
|
||||
add { m ->
|
||||
val back = stringResource(R.string.hop_from_games)
|
||||
@@ -938,6 +986,17 @@ internal fun LaunchSettings(s: FrontEndState, a: FrontEndActions, host: MenuHost
|
||||
|
||||
}
|
||||
}
|
||||
if (frameGenProfileKey != null) add { m ->
|
||||
Box(m) {
|
||||
SettingCard(
|
||||
stringResource(R.string.display_filter),
|
||||
scalingFilterChoices.firstOrNull { it.first == gameUpscaler }?.second ?: scalingFilterChoices.first().second,
|
||||
"card:scaling-filter", Modifier.fillMaxSize(),
|
||||
) {
|
||||
host.open = if (host.open == "scaling-filter") null else "scaling-filter"
|
||||
}
|
||||
}
|
||||
}
|
||||
if (controller != null) add { m -> SettingCard(stringResource(R.string.setup_card_controls), stringResource(R.string.setup_card_controls_hint), "card:controls", m, controller.onMapping) }
|
||||
if (steamCard != null) add(steamCard)
|
||||
val cardStore = com.droiddeck.launcher.stores.Store.byId(game?.source.orEmpty())?.takeIf { it == com.droiddeck.launcher.stores.Store.EPIC || it == com.droiddeck.launcher.stores.Store.GOG }
|
||||
@@ -972,6 +1031,11 @@ internal fun LaunchSettings(s: FrontEndState, a: FrontEndActions, host: MenuHost
|
||||
frameGenMenuContent()
|
||||
}
|
||||
}
|
||||
if (host.open == "scaling-filter") {
|
||||
Box(Modifier.fillMaxWidth().padding(top = 4.dp)) {
|
||||
scalingFilterMenuContent()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -137,7 +137,7 @@ class InputSurfaceView(
|
||||
val views = owners.values.distinct()
|
||||
owners.clear()
|
||||
for (view in views) {
|
||||
if (view is HoldButton) { view.cancel(); continue }
|
||||
if (view is HoldButton) { view.cancelTouches(); continue }
|
||||
val cancel = MotionEvent.obtain(event.downTime, event.eventTime, MotionEvent.ACTION_CANCEL, 0f, 0f, 0)
|
||||
try { view.dispatchTouchEvent(cancel) } finally { cancel.recycle() }
|
||||
}
|
||||
@@ -176,10 +176,23 @@ class InputSurfaceView(
|
||||
val now = android.os.SystemClock.uptimeMillis()
|
||||
val cancel = MotionEvent.obtain(now, now, MotionEvent.ACTION_CANCEL, 0f, 0f, 0)
|
||||
try { cancelOwners(cancel) } finally { cancel.recycle() }
|
||||
customCanvas?.let { canvas -> for (i in 0 until canvas.childCount) (canvas.getChildAt(i) as? HoldButton)?.cancel() }
|
||||
forwardedPointers = 0
|
||||
elementSources.forEach { it.release() }
|
||||
}
|
||||
|
||||
/** Presses a button as a finger would, for input from outside the screen; [holder] tells holds apart. */
|
||||
fun hold(elementId: String, holder: Int, held: Boolean, cancelled: Boolean = false): Boolean {
|
||||
val canvas = customCanvas ?: return false
|
||||
for (i in 0 until canvas.childCount) {
|
||||
val button = canvas.getChildAt(i) as? HoldButton ?: continue
|
||||
if ((button.tag as? InputSurfaceElement)?.id != elementId) continue
|
||||
button.press(-1 - holder, held, cancelled)
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
override fun onVisibilityChanged(changedView: View, visibility: Int) {
|
||||
super.onVisibilityChanged(changedView, visibility)
|
||||
if (visibility != VISIBLE) releaseInputs()
|
||||
@@ -482,17 +495,22 @@ class InputSurfaceView(
|
||||
|
||||
fun press(pointer: Int, pressed: Boolean, cancelled: Boolean = false) {
|
||||
if (pressed) pointers.add(pointer) else pointers.remove(pointer)
|
||||
set(pointers.isNotEmpty(), cancelled)
|
||||
set(pointers.isNotEmpty(), cancelled, touch = pointer >= 0)
|
||||
}
|
||||
|
||||
fun cancel() { pointers.clear(); set(false, cancelled = true); source?.release() }
|
||||
|
||||
fun cancelTouches() {
|
||||
pointers.removeAll { it >= 0 }
|
||||
if (pointers.isEmpty()) cancel()
|
||||
}
|
||||
|
||||
override fun onDetachedFromWindow() { cancel(); super.onDetachedFromWindow() }
|
||||
|
||||
private fun set(pressed: Boolean, cancelled: Boolean = false) {
|
||||
private fun set(pressed: Boolean, cancelled: Boolean = false, touch: Boolean = true) {
|
||||
if (down == pressed) return
|
||||
down = pressed
|
||||
if (pressed) feedback(this, HapticFeedbackConstants.VIRTUAL_KEY)
|
||||
if (pressed && touch) feedback(this, HapticFeedbackConstants.VIRTUAL_KEY)
|
||||
if (!pressed && cancelled) source?.cancel() else source?.update(if (pressed) 1f else 0f)
|
||||
invalidate()
|
||||
if (artwork != null && this in artworkDpad) customCanvas?.invalidate()
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
package com.droiddeck.launcher.ui
|
||||
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.PaddingValues
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.material3.ButtonDefaults
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.OutlinedButton
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.unit.dp
|
||||
import com.droiddeck.launcher.R
|
||||
|
||||
@Composable
|
||||
internal fun ScalingFilterMenu(
|
||||
mode: Int,
|
||||
options: List<Pair<Int, String>>,
|
||||
hasGameOverride: Boolean,
|
||||
onPick: (Int) -> Unit,
|
||||
onResetGame: () -> Unit,
|
||||
gameName: String? = null,
|
||||
) {
|
||||
val colors = MaterialTheme.colorScheme
|
||||
Column(Modifier.fillMaxWidth().padding(start = 10.dp, end = 10.dp, bottom = 8.dp)) {
|
||||
val selectedLabel = options.firstOrNull { it.first == mode }?.second ?: mode.toString()
|
||||
Text(
|
||||
stringResource(
|
||||
if (hasGameOverride) R.string.display_filter_game_profile else R.string.display_filter_default_profile,
|
||||
if (hasGameOverride) gameName.orEmpty() else selectedLabel,
|
||||
selectedLabel,
|
||||
),
|
||||
color = colors.onSurfaceVariant,
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
modifier = Modifier.padding(bottom = 6.dp),
|
||||
)
|
||||
options.forEachIndexed { index, (option, label) ->
|
||||
val selected = mode == option
|
||||
val pick = { onPick(option) }
|
||||
OutlinedButton(
|
||||
onClick = pick,
|
||||
modifier = Modifier.fillMaxWidth()
|
||||
.padding(top = if (index == 0) 0.dp else 6.dp)
|
||||
.controllerConfirm(onClick = pick),
|
||||
contentPadding = PaddingValues(horizontal = 12.dp, vertical = 8.dp),
|
||||
colors = ButtonDefaults.outlinedButtonColors(
|
||||
containerColor = if (selected) colors.primary.copy(alpha = 0.16f) else colors.surface,
|
||||
contentColor = if (selected) colors.primary else colors.onSurface,
|
||||
),
|
||||
) { Text(label) }
|
||||
}
|
||||
Text(
|
||||
stringResource(R.string.display_filter_note),
|
||||
color = colors.onSurfaceVariant,
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
modifier = Modifier.padding(top = 6.dp),
|
||||
)
|
||||
OutlinedButton(
|
||||
onClick = onResetGame,
|
||||
modifier = Modifier.fillMaxWidth().padding(top = 6.dp)
|
||||
.controllerConfirm(onClick = onResetGame),
|
||||
contentPadding = PaddingValues(horizontal = 12.dp, vertical = 8.dp),
|
||||
) {
|
||||
Text(stringResource(R.string.comp_game_use_general) + if (hasGameOverride) "" else " ✓")
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -116,6 +116,10 @@ import androidx.compose.foundation.shape.CircleShape
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.unit.sp
|
||||
import com.droiddeck.launcher.HomeApp
|
||||
import com.droiddeck.launcher.input.AirTrigger
|
||||
import com.droiddeck.launcher.input.AirTriggerAction
|
||||
import com.droiddeck.launcher.input.AirTriggerLed
|
||||
import com.droiddeck.launcher.input.RapidFireRate
|
||||
import com.droiddeck.launcher.input.ControllerPrefs
|
||||
import androidx.compose.animation.AnimatedVisibility
|
||||
import androidx.compose.animation.animateColorAsState
|
||||
@@ -173,6 +177,7 @@ import com.droiddeck.launcher.gpu.ScreenEffectLooks
|
||||
import com.droiddeck.launcher.gpu.Cardboard
|
||||
import com.droiddeck.launcher.gpu.SteamVr
|
||||
import com.droiddeck.launcher.gpu.ScreenEffects
|
||||
import com.droiddeck.launcher.session.FullscreenMode
|
||||
import com.droiddeck.launcher.session.SessionPrefs
|
||||
import com.droiddeck.launcher.session.ComponentsManager
|
||||
import com.droiddeck.launcher.input.PC_KEY_GROUP_IDS
|
||||
@@ -238,6 +243,12 @@ private class DrawerFocus {
|
||||
fun forget(page: SessionDrawerPage) { last.remove(page) }
|
||||
}
|
||||
|
||||
data class AirTriggerMenu(
|
||||
val enabled: Boolean, val selected: Map<AirTrigger, String>, val buttons: List<Pair<String, String>>,
|
||||
val vibration: Boolean = false, val screenLight: Boolean = false, val led: AirTriggerLed = AirTriggerLed.STEADY,
|
||||
val actions: Map<AirTrigger, AirTriggerAction> = emptyMap(), val rates: Map<AirTrigger, RapidFireRate> = emptyMap(),
|
||||
)
|
||||
|
||||
class DrawerActions(
|
||||
val steam: Boolean,
|
||||
val desktop: Boolean,
|
||||
@@ -343,6 +354,14 @@ class DrawerActions(
|
||||
val onControllerSize: (Int) -> Unit = {},
|
||||
val onControllerOpacity: (Int) -> Unit = {},
|
||||
val onRumble: (Boolean) -> Unit = {},
|
||||
val airTriggers: AirTriggerMenu? = null,
|
||||
val onAirTriggers: (Boolean) -> Unit = {},
|
||||
val onAirTriggerButton: (AirTrigger, String) -> Unit = { _, _ -> },
|
||||
val onAirTriggerAction: (AirTrigger, AirTriggerAction) -> Unit = { _, _ -> },
|
||||
val onAirTriggerRate: (AirTrigger, RapidFireRate) -> Unit = { _, _ -> },
|
||||
val onAirTriggerVibration: (Boolean) -> Unit = {},
|
||||
val onAirTriggerScreenLight: (Boolean) -> Unit = {},
|
||||
val onAirTriggerLed: (AirTriggerLed) -> Unit = {},
|
||||
val onSuspendPolicy: (String) -> Unit,
|
||||
val onSteamDownloadsInBackground: (Boolean) -> Unit = {},
|
||||
val onBackActionsInverted: (Boolean) -> Unit,
|
||||
@@ -388,6 +407,8 @@ class DrawerActions(
|
||||
val paused: Boolean = false,
|
||||
val orientation: Int = android.content.pm.ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE,
|
||||
val onOrientation: (Int) -> Unit = {},
|
||||
val fullscreenMode: FullscreenMode = FullscreenMode.ALWAYS,
|
||||
val onFullscreenMode: (FullscreenMode) -> Unit = {},
|
||||
val onResume: () -> Unit = {},
|
||||
val onPipAutoEnter: (Boolean) -> Unit = {},
|
||||
val unfoldedControls: Boolean? = null,
|
||||
@@ -456,6 +477,7 @@ internal fun SessionDrawer(open: Boolean, requestedPage: SessionDrawerPage, cont
|
||||
remember { DrawerSectionState.load(drawerContext) }
|
||||
var appToChooseDisplay by remember { mutableStateOf<HomeApp.LaunchableApp?>(null) }
|
||||
var confirmStop by remember { mutableStateOf(false) }
|
||||
var airTriggersShown by remember { mutableStateOf(false) }
|
||||
var sheetCoords by remember { mutableStateOf<LayoutCoordinates?>(null) }
|
||||
val widthContext = LocalContext.current
|
||||
var savedWidth by remember { mutableStateOf(SessionPrefs.drawerWidthDp(widthContext)) }
|
||||
@@ -467,15 +489,17 @@ internal fun SessionDrawer(open: Boolean, requestedPage: SessionDrawerPage, cont
|
||||
val focusManager = LocalFocusManager.current
|
||||
// A page kept inside More is one step deeper than the strip: back returns to More before it closes the menu.
|
||||
val insideMore = page in pages.inMore()
|
||||
val airPanel = airTriggersShown && page == SessionDrawerPage.CONTROLLER && a.airTriggers != null
|
||||
BackHandler(enabled = open) {
|
||||
when {
|
||||
host.open != null -> host.open = null
|
||||
airPanel -> airTriggersShown = false
|
||||
insideMore -> onPageChange(SessionDrawerPage.MORE)
|
||||
else -> a.onClose()
|
||||
}
|
||||
}
|
||||
BackHandler(enabled = open && confirmStop) { confirmStop = false }
|
||||
val layerOpen = open && (host.open != null || appToChooseDisplay != null || confirmStop || insideMore)
|
||||
val layerOpen = open && (host.open != null || appToChooseDisplay != null || confirmStop || insideMore || airPanel)
|
||||
LaunchedEffect(layerOpen) { onLayerChange(layerOpen) }
|
||||
var seenBackRequest by remember { mutableStateOf(backRequest) }
|
||||
LaunchedEffect(backRequest) {
|
||||
@@ -485,10 +509,23 @@ internal fun SessionDrawer(open: Boolean, requestedPage: SessionDrawerPage, cont
|
||||
confirmStop -> confirmStop = false
|
||||
appToChooseDisplay != null -> appToChooseDisplay = null
|
||||
host.open != null -> host.open = null
|
||||
airPanel -> airTriggersShown = false
|
||||
insideMore -> onPageChange(SessionDrawerPage.MORE)
|
||||
}
|
||||
}
|
||||
LaunchedEffect(page) { host.open = null; appToChooseDisplay = null; managing = false }
|
||||
LaunchedEffect(page) { host.open = null; appToChooseDisplay = null; managing = false; airTriggersShown = false }
|
||||
var airPanelFocused by remember { mutableStateOf(airPanel) }
|
||||
LaunchedEffect(airPanel) {
|
||||
val moved = airPanel != airPanelFocused
|
||||
airPanelFocused = airPanel
|
||||
if (!moved || !open || !controllerActive) return@LaunchedEffect
|
||||
val target = if (airPanel) "air-triggers-toggle" else "air-triggers"
|
||||
repeat(24) {
|
||||
androidx.compose.runtime.withFrameNanos { }
|
||||
focus.request(target)
|
||||
if (focus.focused == target) return@LaunchedEffect
|
||||
}
|
||||
}
|
||||
LaunchedEffect(host.open) {
|
||||
if (host.open == "frame-generation") repeat(24) {
|
||||
androidx.compose.runtime.withFrameNanos { }
|
||||
@@ -574,6 +611,7 @@ internal fun SessionDrawer(open: Boolean, requestedPage: SessionDrawerPage, cont
|
||||
.controllerBack {
|
||||
when {
|
||||
host.open != null -> host.open = null
|
||||
airPanel -> airTriggersShown = false
|
||||
managing -> DrawerPages.heldFrom?.let { held ->
|
||||
DrawerPages.rearrange(drawerContext, held)
|
||||
releaseSignal++
|
||||
@@ -650,7 +688,9 @@ internal fun SessionDrawer(open: Boolean, requestedPage: SessionDrawerPage, cont
|
||||
host.open = null; onPageChange(pages.strip().step(pages.tabFor(page), 1))
|
||||
}
|
||||
}
|
||||
if (insideMore && !managing) DrawerMoreBack(stringResource(page.title), focus.track(page, "more-back")) { host.open = null; onPageChange(SessionDrawerPage.MORE) }
|
||||
if (insideMore && !managing && !airPanel) DrawerMoreBack(stringResource(page.title), focus.track(page, "more-back")) { host.open = null; onPageChange(SessionDrawerPage.MORE) }
|
||||
if (airPanel && !managing) DrawerMoreBack(stringResource(R.string.air_triggers_title), focus.track(page, "air-triggers-back"),
|
||||
parent = stringResource(page.title)) { host.open = null; airTriggersShown = false }
|
||||
if (managing) ManageDrawerPages(
|
||||
offeredDrawerPages(a.achievementsGame != null),
|
||||
Modifier.weight(1f).fillMaxWidth().padding(top = 8.dp, start = 14.dp, end = 14.dp),
|
||||
@@ -671,7 +711,11 @@ internal fun SessionDrawer(open: Boolean, requestedPage: SessionDrawerPage, cont
|
||||
CompositionLocalProvider(LocalChipMinWidth provides 96.dp, LocalCompactSettings provides true, LocalDrawerSections provides sections) {
|
||||
DrawerColumns(two = sheetWidth >= DRAWER_TWO_COLUMN_WIDTH && page.inColumns) {
|
||||
when (page) {
|
||||
SessionDrawerPage.CONTROLLER -> DrawerControllerPage(host, a, a.controllerConnected || controllerActive, track)
|
||||
SessionDrawerPage.CONTROLLER -> {
|
||||
val airTriggers = a.airTriggers
|
||||
if (airPanel && airTriggers != null) AirTriggersPanel(host, airTriggers, a, track)
|
||||
else DrawerControllerPage(host, a, a.controllerConnected || controllerActive, track) { host.open = null; airTriggersShown = true }
|
||||
}
|
||||
SessionDrawerPage.HUD -> DrawerPerformancePage(host, a, track)
|
||||
SessionDrawerPage.FRAMEGEN -> DrawerFrameGenPage(host, a, track)
|
||||
SessionDrawerPage.DISPLAY -> DrawerDisplayPage(host, a, track)
|
||||
@@ -731,7 +775,7 @@ internal fun SessionDrawer(open: Boolean, requestedPage: SessionDrawerPage, cont
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun DrawerControllerPage(host: MenuHost, a: DrawerActions, padConnected: Boolean, track: (String) -> Modifier) {
|
||||
private fun DrawerControllerPage(host: MenuHost, a: DrawerActions, padConnected: Boolean, track: (String) -> Modifier, onAirTriggers: () -> Unit) {
|
||||
val on = stringResource(R.string.widgets_on)
|
||||
val off = stringResource(R.string.widgets_off)
|
||||
val padTag = if (padConnected) stringResource(R.string.drawer_tag_controller) else null
|
||||
@@ -746,9 +790,12 @@ private fun DrawerControllerPage(host: MenuHost, a: DrawerActions, padConnected:
|
||||
SessionPrefs.CONTROLLER_DUALSENSE to stringResource(R.string.mode_controller_dualsense),
|
||||
SessionPrefs.CONTROLLER_XBOX360 to stringResource(R.string.mode_controller_x360))
|
||||
val rumbleLabel = stringResource(R.string.ctrl_rumble)
|
||||
if (a.padType != null || c != null) SettingsGroup(
|
||||
val airTriggers = a.airTriggers
|
||||
val airTriggersLabel = stringResource(R.string.air_triggers_title)
|
||||
if (a.padType != null || c != null || airTriggers != null) SettingsGroup(
|
||||
stringResource(R.string.input_device_settings), key = "controller-pad", tag = padTag,
|
||||
detail = summary(a.padType?.let { padTypes.labelOf(it) }, c?.let { "$rumbleLabel ${if (it.rumble) on else off}" }),
|
||||
detail = summary(a.padType?.let { padTypes.labelOf(it) }, c?.let { "$rumbleLabel ${if (it.rumble) on else off}" },
|
||||
airTriggers?.let { "$airTriggersLabel ${if (it.enabled) on else off}" }),
|
||||
) {
|
||||
a.padType?.let { type ->
|
||||
ChoiceRow(host, "pad-type", stringResource(R.string.input_virtual_controller), stringResource(R.string.input_virtual_controller_hint),
|
||||
@@ -757,6 +804,10 @@ private fun DrawerControllerPage(host: MenuHost, a: DrawerActions, padConnected:
|
||||
c?.let {
|
||||
ToggleRow(host, "rumble", rumbleLabel, null, it.rumble, chipModifier = track("rumble"), onChange = a.onRumble)
|
||||
}
|
||||
airTriggers?.let {
|
||||
ActionRow(airTriggersLabel, if (it.enabled) on else off, stringResource(R.string.air_triggers_open), onAirTriggers,
|
||||
modifier = track("air-triggers"))
|
||||
}
|
||||
}
|
||||
val oscChoices = if (a.steam) listOf(SessionPrefs.OSC_AUTO to stringResource(R.string.common_auto), SessionPrefs.OSC_ALWAYS to stringResource(R.string.common_always), SessionPrefs.OSC_STEAM_TOUCH to stringResource(R.string.osc_steam_touch), SessionPrefs.OSC_STEAM_QAM to stringResource(R.string.mode_osc_qam), SessionPrefs.OSC_NEVER to stringResource(R.string.common_never))
|
||||
else listOf(SessionPrefs.OSC_AUTO to stringResource(R.string.common_auto), SessionPrefs.OSC_ALWAYS to stringResource(R.string.common_always), SessionPrefs.OSC_NEVER to stringResource(R.string.common_never))
|
||||
@@ -961,6 +1012,10 @@ private fun DrawerDisplayPage(host: MenuHost, a: DrawerActions, track: (String)
|
||||
if (a.gameZoomAvailable) GameZoomRow(a.gameZoom, track, a.onGameZoom)
|
||||
ChoiceRow(host, "orientation", stringResource(R.string.setup_session_orientation), null,
|
||||
orientations, a.orientation, chipModifier = track("orientation"), onPick = a.onOrientation)
|
||||
ChoiceRow(host, "session-fullscreen", stringResource(R.string.setup_session_fullscreen),
|
||||
stringResource(R.string.setup_fullscreen_on),
|
||||
FullscreenMode.entries.map { it to stringResource(it.label) }, a.fullscreenMode,
|
||||
chipModifier = track("session-fullscreen"), onPick = a.onFullscreenMode)
|
||||
if (a.steam) PicturePositionRow(host, a.picturePosition, track("picture-position"), onPick = a.onPicturePosition)
|
||||
}
|
||||
val filters = SessionPrefs.upscalerChoices(LocalContext.current)
|
||||
@@ -1322,15 +1377,15 @@ private fun DrawerPageTabs(page: SessionDrawerPage, pages: List<SessionDrawerPag
|
||||
|
||||
private const val LOOK_CUSTOM = "custom"
|
||||
|
||||
/** The row above a page kept inside More that goes back to the More list. */
|
||||
/** The row above a page kept inside More, or a panel inside a page, that goes back to where it was opened from. */
|
||||
@Composable
|
||||
private fun DrawerMoreBack(title: String, modifier: Modifier, onBack: () -> Unit) {
|
||||
private fun DrawerMoreBack(title: String, modifier: Modifier, parent: String = stringResource(R.string.drawer_page_more), onBack: () -> Unit) {
|
||||
val colors = MaterialTheme.colorScheme
|
||||
val pal = LocalPalette.current
|
||||
val source = remember { MutableInteractionSource() }
|
||||
val hot = source.collectIsFocusedAsState().value || source.collectIsHoveredAsState().value
|
||||
val shape = RoundedCornerShape(12.dp)
|
||||
val label = stringResource(R.string.drawer_more_back, stringResource(R.string.drawer_page_more))
|
||||
val label = stringResource(R.string.drawer_more_back, parent)
|
||||
Row(
|
||||
verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(8.dp),
|
||||
modifier = modifier.padding(top = 8.dp, start = 14.dp, end = 14.dp).fillMaxWidth().heightIn(min = 44.dp).clip(shape)
|
||||
@@ -1344,12 +1399,105 @@ private fun DrawerMoreBack(title: String, modifier: Modifier, onBack: () -> Unit
|
||||
.padding(horizontal = 8.dp),
|
||||
) {
|
||||
Icon(Icons.AutoMirrored.Outlined.ArrowBack, null, tint = colors.onSurfaceVariant, modifier = Modifier.size(22.dp))
|
||||
Text(stringResource(R.string.drawer_page_more), fontSize = 13.sp, color = colors.onSurfaceVariant)
|
||||
Text(parent, fontSize = 13.sp, color = colors.onSurfaceVariant)
|
||||
Text("·", fontSize = 13.sp, color = colors.onSurfaceVariant)
|
||||
Text(title, fontSize = 15.sp, fontWeight = FontWeight.SemiBold, color = colors.onBackground, maxLines = 1)
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun AirTriggersPanel(host: MenuHost, t: AirTriggerMenu, a: DrawerActions, track: (String) -> Modifier) {
|
||||
CompositionLocalProvider(LocalDrawerSections provides null) { SettingsGroup(stringResource(R.string.air_triggers_title)) {
|
||||
ToggleRow(host, "air-triggers-toggle", stringResource(R.string.air_triggers_use), stringResource(R.string.air_triggers_use_hint), t.enabled,
|
||||
chipModifier = track("air-triggers-toggle"), onChange = a.onAirTriggers)
|
||||
ToggleRow(host, "air-triggers-vibration", stringResource(R.string.air_triggers_vibration), stringResource(R.string.air_triggers_vibration_hint),
|
||||
t.vibration, enabled = t.enabled, chipModifier = track("air-triggers-vibration"), onChange = a.onAirTriggerVibration)
|
||||
ToggleRow(host, "air-triggers-screen-light", stringResource(R.string.air_triggers_screen_light), stringResource(R.string.air_triggers_screen_light_hint),
|
||||
t.screenLight, enabled = t.enabled, chipModifier = track("air-triggers-screen-light"), onChange = a.onAirTriggerScreenLight)
|
||||
val leds = listOf(AirTriggerLed.OFF to R.string.air_triggers_led_off, AirTriggerLed.STEADY to R.string.air_triggers_led_steady,
|
||||
AirTriggerLed.PULSE to R.string.air_triggers_led_pulse).map { (led, text) -> led to stringResource(text) }
|
||||
ChoiceRow(host, "air-triggers-led", stringResource(R.string.air_triggers_led), null, leds, t.led,
|
||||
enabled = t.enabled, chipModifier = track("air-triggers-led"), onPick = a.onAirTriggerLed)
|
||||
for (trigger in AirTrigger.entries) {
|
||||
val key = "air-trigger-${trigger.name.lowercase()}"
|
||||
val left = trigger == AirTrigger.LEFT
|
||||
val label = stringResource(if (left) R.string.air_trigger_left else R.string.air_trigger_right)
|
||||
ChoiceRow(host, key, label, stringResource(R.string.air_trigger_button_hint), t.buttons, t.selected.getValue(trigger),
|
||||
enabled = t.enabled, chipModifier = track(key)) { a.onAirTriggerButton(trigger, it) }
|
||||
AirTriggerActionRow(host, "$key-action", stringResource(if (left) R.string.air_trigger_left_action else R.string.air_trigger_right_action),
|
||||
t.actions[trigger] ?: AirTriggerAction.TAP, t.rates[trigger] ?: RapidFireRate.NORMAL, t.enabled, track("$key-action"),
|
||||
onAction = { a.onAirTriggerAction(trigger, it) }, onRate = { a.onAirTriggerRate(trigger, it) })
|
||||
}
|
||||
} }
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun AirTriggerActionRow(
|
||||
host: MenuHost, key: String, label: String, action: AirTriggerAction, rate: RapidFireRate, enabled: Boolean, chipModifier: Modifier,
|
||||
onAction: (AirTriggerAction) -> Unit, onRate: (RapidFireRate) -> Unit,
|
||||
) {
|
||||
val open = host.open == key
|
||||
var rateOpen by remember { mutableStateOf(false) }
|
||||
LaunchedEffect(open) { if (!open) rateOpen = false }
|
||||
val actions = listOf(AirTriggerAction.TAP to R.string.air_trigger_action_tap, AirTriggerAction.LATCH to R.string.air_trigger_action_hold,
|
||||
AirTriggerAction.RAPID to R.string.air_trigger_action_rapid).map { (value, text) -> value to stringResource(text) }
|
||||
val rates = listOf(R.string.air_trigger_rate_low, R.string.air_trigger_rate_normal, R.string.air_trigger_rate_high).map { stringResource(it) }
|
||||
val rapidLabel = actions.last().second
|
||||
val frequency = stringResource(R.string.air_trigger_rapid_frequency)
|
||||
SettingsRow(label, null, highlighted = open) { Box {
|
||||
ValueChip(actions.first { it.first == action }.second, open, enabled, modifier = chipModifier.testTag("setting-$key")) {
|
||||
host.open = if (open) null else key
|
||||
}
|
||||
AnchoredMenu(open, onDismiss = { if (host.open == key) host.open = null }, title = if (rateOpen) null else label) { first ->
|
||||
val arrowFocus = remember { FocusRequester() }
|
||||
val keyboard = LocalInputModeManager.current.inputMode == InputMode.Keyboard
|
||||
var shown by remember { mutableStateOf(rateOpen) }
|
||||
LaunchedEffect(rateOpen) {
|
||||
if (shown == rateOpen) return@LaunchedEffect
|
||||
shown = rateOpen
|
||||
withFrameNanos { }
|
||||
if (keyboard) runCatching { (if (rateOpen) first else arrowFocus).requestFocus() }
|
||||
}
|
||||
if (rateOpen) {
|
||||
Row(verticalAlignment = Alignment.CenterVertically, modifier = Modifier.fillMaxWidth().padding(start = 10.dp)) {
|
||||
Text(rapidLabel.uppercase(), fontSize = 12.sp, fontWeight = FontWeight.SemiBold, letterSpacing = 1.5.sp,
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant, modifier = Modifier.weight(1f))
|
||||
MenuGlyphButton("✕", stringResource(R.string.common_close), Modifier.testTag("$key-rate-close")) { rateOpen = false }
|
||||
}
|
||||
ValueSlider(rate.ordinal, 0..RapidFireRate.entries.lastIndex, 1, true, frequency, { rates[it] },
|
||||
modifier = Modifier.focusRequester(first).testTag("$key-rate")) { if (it != rate.ordinal) onRate(RapidFireRate.entries[it]) }
|
||||
} else actions.forEachIndexed { index, (value, text) ->
|
||||
val pick = { onAction(value); host.open = null }
|
||||
if (value != AirTriggerAction.RAPID) MenuItem(text, checked = value == action, focusRequester = if (index == 0) first else null, onClick = pick)
|
||||
else Row(verticalAlignment = Alignment.CenterVertically) {
|
||||
MenuItem(text, checked = value == action, modifier = Modifier.weight(1f), onClick = pick)
|
||||
MenuGlyphButton("›", stringResource(R.string.air_trigger_rapid_settings),
|
||||
Modifier.focusRequester(arrowFocus).testTag("$key-rate-open")) { rateOpen = true }
|
||||
}
|
||||
}
|
||||
}
|
||||
} }
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun MenuGlyphButton(glyph: String, description: String, modifier: Modifier = Modifier, onClick: () -> Unit) {
|
||||
val pal = LocalPalette.current
|
||||
val src = remember { MutableInteractionSource() }
|
||||
val hot = src.collectIsFocusedAsState().value || src.collectIsHoveredAsState().value
|
||||
val shape = RoundedCornerShape(8.dp)
|
||||
Box(
|
||||
contentAlignment = Alignment.Center,
|
||||
modifier = modifier.size(40.dp).clip(shape)
|
||||
.background(if (hot) Color.White.copy(alpha = 0.07f) else Color.Transparent)
|
||||
.glideBorder(hot, shape, pal.signal)
|
||||
.hoverable(src).clickable(interactionSource = src, indication = LocalIndication.current, role = Role.Button, onClick = onClick)
|
||||
.controllerConfirm(onClick = onClick)
|
||||
.semantics { contentDescription = description },
|
||||
) {
|
||||
Text(glyph, fontSize = 18.sp, fontWeight = FontWeight.SemiBold, color = MaterialTheme.colorScheme.onBackground)
|
||||
}
|
||||
}
|
||||
|
||||
/** The pages kept inside More, and the way into arranging which pages sit on the strip and which here. */
|
||||
@Composable
|
||||
private fun DrawerMorePage(host: MenuHost, pages: List<SessionDrawerPage>, a: DrawerActions, onOpen: (SessionDrawerPage) -> Unit, onEdit: () -> Unit, track: (String) -> Modifier) {
|
||||
|
||||
@@ -116,7 +116,8 @@ internal object SettingsIndex {
|
||||
s(SettingsSection.LAUNCHER, R.string.setup_home, "home screen", "launcher"),
|
||||
s(SettingsSection.LAUNCHER, R.string.setup_launcher_orientation, "rotate", "portrait"),
|
||||
s(SettingsSection.LAUNCHER, R.string.setup_session_orientation, "rotate", "portrait"),
|
||||
s(SettingsSection.LAUNCHER, R.string.setup_fullscreen),
|
||||
s(SettingsSection.LAUNCHER, R.string.setup_launcher_fullscreen, "status bar", "navigation bar", "portrait"),
|
||||
s(SettingsSection.LAUNCHER, R.string.setup_session_fullscreen, "status bar", "navigation bar", "portrait"),
|
||||
s(SettingsSection.LAUNCHER, R.string.setup_page_swipe, "gesture"),
|
||||
s(SettingsSection.LAUNCHER, R.string.setup_controller_haptics, "vibration", "rumble"),
|
||||
s(SettingsSection.LAUNCHER, R.string.setup_dual_screen_launcher, "thor", "second screen", "bottom screen"),
|
||||
|
||||
@@ -456,12 +456,13 @@ fun MenuItem(
|
||||
.padding(horizontal = 10.dp, vertical = 9.dp),
|
||||
) {
|
||||
Text("✓", fontSize = 12.sp, color = pal.signal, modifier = Modifier.width(18.dp).alpha(if (checked) 1f else 0f).clearAndSetSemantics {})
|
||||
val ink = if (checked) pal.signal else colors.onBackground
|
||||
if (leading != null) {
|
||||
leading()
|
||||
androidx.compose.runtime.CompositionLocalProvider(androidx.compose.material3.LocalContentColor provides ink) { leading() }
|
||||
Spacer(Modifier.width(8.dp))
|
||||
}
|
||||
Column(modifier = Modifier.weight(1f)) {
|
||||
Text(label, fontSize = 13.5.sp, color = if (checked) pal.signal else colors.onBackground, maxLines = 2, overflow = TextOverflow.Ellipsis)
|
||||
Text(label, fontSize = 13.5.sp, color = ink, maxLines = 2, overflow = TextOverflow.Ellipsis)
|
||||
if (detail != null) Text(detail, fontSize = 12.sp, color = colors.onSurfaceVariant, maxLines = 2, overflow = TextOverflow.Ellipsis)
|
||||
}
|
||||
if (trailing != null) { Spacer(Modifier.width(8.dp)); trailing() }
|
||||
|
||||
@@ -88,7 +88,9 @@ internal fun TabMenu(
|
||||
.controllerConfirm(onClick = toggle)
|
||||
.padding(start = 14.dp, end = 10.dp),
|
||||
) {
|
||||
if (selected in labels.indices) leading?.invoke(selected, false)
|
||||
if (selected in labels.indices) androidx.compose.runtime.CompositionLocalProvider(androidx.compose.material3.LocalContentColor provides colors.onBackground) {
|
||||
leading?.invoke(selected, false)
|
||||
}
|
||||
Text(label, fontSize = 14.sp, fontWeight = FontWeight.Bold, color = colors.onBackground, maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis, modifier = Modifier.weight(1f, fill = false))
|
||||
Icon(if (open) Icons.Outlined.ExpandLess else Icons.Outlined.ExpandMore, contentDescription = null,
|
||||
|
||||
@@ -706,7 +706,8 @@ private fun TestList(tests: List<Release>, me: AppUpdates.Installed, u: UpdatesS
|
||||
val followed = u.follow.pr.takeIf { u.follow.channel == Channel.TEST }
|
||||
val rowShown = followed != null && (ready.any { it.pr == followed } || (oldShown && old.any { it.pr == followed }))
|
||||
Column(verticalArrangement = Arrangement.spacedBy(10.dp)) {
|
||||
if (!rowShown) status(false)
|
||||
// A followed test's row carries the status; browsing Tests while following Stable or Preview shows it only for an install running or failed.
|
||||
if (if (followed != null) !rowShown else u.stage != null || u.error != null) status(false)
|
||||
Column(Modifier.padding(start = 18.dp), verticalArrangement = Arrangement.spacedBy(6.dp)) {
|
||||
if (tests.size > 5 || query.isNotEmpty()) AdbTextField(
|
||||
value = query, onValueChange = { query = it }, label = stringResource(R.string.upd_tests_find),
|
||||
|
||||
@@ -67,13 +67,14 @@ object CompositorHost {
|
||||
outputHeight: Int,
|
||||
refreshHz: Float,
|
||||
fpsLimit: Int,
|
||||
layerFpsLimit: Int = fpsLimit,
|
||||
): Boolean {
|
||||
WaylandCompositor.nativeSetClockControl(java.io.File(context.filesDir, "${com.droiddeck.launcher.runtime.LinuxRuntime.DIR}/tmp/.dd-clock").path)
|
||||
ownVsyncThread = SessionPrefs.vsyncThread(context)
|
||||
WaylandCompositor.nativeSetRenderOnCommit(SessionPrefs.renderOnCommit(context))
|
||||
blackFrameInsertion = SessionPrefs.blackFrameInsertion(context)
|
||||
WaylandCompositor.nativeSetBlackFrameInsertion(blackFrameInsertion)
|
||||
pace(refreshHz, fpsLimit)
|
||||
pace(refreshHz, fpsLimit, layerFpsLimit)
|
||||
if (!SessionState.running) WaylandCompositor.nativeSetOutputSize(outputWidth, outputHeight)
|
||||
if (started) {
|
||||
attached = surface
|
||||
@@ -95,23 +96,23 @@ object CompositorHost {
|
||||
private var blackFrameInsertion = false
|
||||
private var pictureHolds = 0
|
||||
|
||||
private fun pace(refreshHz: Float, fpsLimit: Int) {
|
||||
private fun pace(refreshHz: Float, fpsLimit: Int, layerFpsLimit: Int) {
|
||||
WaylandCompositor.nativeSetFpsLimit(fpsLimit)
|
||||
WaylandCompositor.nativeSetLayerFrameRate(if (fpsLimit > 0 && !blackFrameInsertion) fpsLimit.toFloat() else refreshHz)
|
||||
WaylandCompositor.nativeSetLayerFrameRate(SessionPrefs.layerFrameRate(layerFpsLimit, refreshHz, blackFrameInsertion))
|
||||
WaylandCompositor.nativeSetOutputRefreshRate(refreshHz)
|
||||
SessionState.refreshHz = refreshHz
|
||||
}
|
||||
|
||||
@Synchronized
|
||||
fun updatePacing(refreshHz: Float, fpsLimit: Int) {
|
||||
if (started) pace(refreshHz, fpsLimit)
|
||||
fun updatePacing(refreshHz: Float, fpsLimit: Int, layerFpsLimit: Int = fpsLimit) {
|
||||
if (started) pace(refreshHz, fpsLimit, layerFpsLimit)
|
||||
}
|
||||
|
||||
@Synchronized
|
||||
fun setBlackFrameInsertion(on: Boolean, refreshHz: Float, fpsLimit: Int) {
|
||||
fun setBlackFrameInsertion(on: Boolean, refreshHz: Float, fpsLimit: Int, layerFpsLimit: Int = fpsLimit) {
|
||||
blackFrameInsertion = on
|
||||
WaylandCompositor.nativeSetBlackFrameInsertion(on)
|
||||
if (started) pace(refreshHz, fpsLimit)
|
||||
if (started) pace(refreshHz, fpsLimit, layerFpsLimit)
|
||||
}
|
||||
|
||||
/** Presents only pictures until the matching release; false when nothing is strobing. */
|
||||
|
||||
@@ -333,6 +333,8 @@ public final class WaylandCompositor {
|
||||
|
||||
public static native void nativeSetZeroCopy(boolean on);
|
||||
|
||||
public static native void nativeSetMirrorCapture(boolean on);
|
||||
|
||||
public static native void nativeSetDisplayBufferDriver(boolean on);
|
||||
|
||||
public static native int nativeZeroCopyFrames();
|
||||
|
||||
@@ -1180,6 +1180,11 @@
|
||||
<string name="agent_tools_missing">أدوات الوكيل غير مثبتة: %1$s</string>
|
||||
<string name="agent_unqueue">لا تُرسل</string>
|
||||
<string name="agent_attach">إرفاق</string>
|
||||
<string name="agent_attach_files">الملفات</string>
|
||||
<string name="agent_photos_allow">السماح بالوصول إلى الصور</string>
|
||||
<string name="agent_photos_more">اختيار المزيد من الصور</string>
|
||||
<string name="agent_photos_empty">لا توجد صور بعد</string>
|
||||
<string name="agent_keyboard">لوحة المفاتيح</string>
|
||||
<string name="agent_remove_attachment">إزالة</string>
|
||||
<string name="agent_model_default">الافتراضي</string>
|
||||
<string name="agent_effort">جهد الاستدلال</string>
|
||||
@@ -1332,6 +1337,31 @@
|
||||
<string name="ctrl_size">حجم الأزرار</string>
|
||||
<string name="ctrl_adaptive">عصي تكيّفية</string>
|
||||
<string name="ctrl_rumble">اهتزاز اللعبة</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">فتح</string>
|
||||
<string name="air_triggers_use">استخدام Air Triggers</string>
|
||||
<string name="air_triggers_use_hint">يشغّل أزرار الكتف دون لوحة الأزرار أو العلامات من RedMagic، وتضغط بدلاً من ذلك أزرار تخطيط اللمس.</string>
|
||||
<string name="air_trigger_left">Air Trigger الأيسر</string>
|
||||
<string name="air_trigger_right">Air Trigger الأيمن</string>
|
||||
<string name="air_trigger_button_hint">محفوظ لهذا التخطيط</string>
|
||||
<string name="air_triggers_vibration">الاهتزاز</string>
|
||||
<string name="air_triggers_vibration_hint">يهتز عند لمس Air Trigger</string>
|
||||
<string name="air_triggers_screen_light">تأثير الإضاءة على الشاشة</string>
|
||||
<string name="air_triggers_screen_light_hint">يضيء حافة الشاشة أسفل Air Trigger عند لمسه</string>
|
||||
<string name="air_triggers_led">تأثيرات إضاءة LED عند اللمس</string>
|
||||
<string name="air_triggers_led_off">إيقاف</string>
|
||||
<string name="air_triggers_led_steady">ثابت</string>
|
||||
<string name="air_triggers_led_pulse">نبض</string>
|
||||
<string name="air_trigger_left_action">إجراء Air Trigger الأيسر</string>
|
||||
<string name="air_trigger_right_action">إجراء Air Trigger الأيمن</string>
|
||||
<string name="air_trigger_action_tap">نقرة واحدة</string>
|
||||
<string name="air_trigger_action_hold">ضغط مطوّل</string>
|
||||
<string name="air_trigger_action_rapid">إطلاق سريع</string>
|
||||
<string name="air_trigger_rapid_settings">إعدادات الإطلاق السريع</string>
|
||||
<string name="air_trigger_rapid_frequency">معدل النقر</string>
|
||||
<string name="air_trigger_rate_low">منخفض</string>
|
||||
<string name="air_trigger_rate_normal">عادي</string>
|
||||
<string name="air_trigger_rate_high">مرتفع</string>
|
||||
<string name="ctrl_dead_zone">المنطقة الميتة لعصا التحكم</string>
|
||||
<string name="ctrl_steam_button">زر Steam</string>
|
||||
<string name="ctrl_qam_button">زر QAM</string>
|
||||
@@ -2416,7 +2446,8 @@
|
||||
<string name="loadstate_steam_client">جارٍ تنزيل عميل Steam · %1$s</string>
|
||||
<string name="pextra_busy">يوجد تثبيت لأداة توافق قيد التنفيذ بالفعل</string>
|
||||
<string name="pextra_stop_session">أوقِف الجلسة النشطة قبل تثبيت أدوات التوافق</string>
|
||||
<string name="pextra_no_release">تعذّر العثور على إصدار ARM64 لـ %1$s</string>
|
||||
<string name="pextra_no_release">تعذّر العثور على إصدار %2$s لـ %1$s</string>
|
||||
<string name="pextra_anticheat">مكافحة الغش</string>
|
||||
<string name="pextra_no_space">يلزم توفُّر 4 GB على الأقل بالإضافة إلى حجم التنزيل لتثبيت %1$s</string>
|
||||
<string name="pextra_downloading">جارٍ تنزيل %1$s %2$s</string>
|
||||
<string name="pextra_retrying">جارٍ إعادة محاولة التنزيل · المحاولة %1$d من %2$d</string>
|
||||
@@ -4325,4 +4356,6 @@
|
||||
<string name="glasses_shortcut_group">اختصار داخل اللعبة</string>
|
||||
<string name="glasses_show_shortcut">إظهار اختصار النظارات الذكية</string>
|
||||
<string name="glasses_show_shortcut_hint">إظهار زر النظارات الذكية العائم فوق اللعبة.</string>
|
||||
<string name="display_filter_game_profile">استخدام ملف تعريف %1$s: %2$s</string>
|
||||
<string name="display_filter_default_profile">استخدام الملف التعريفي الافتراضي: %1$s</string>
|
||||
</resources>
|
||||
@@ -1198,6 +1198,11 @@
|
||||
<string name="agent_tools_missing">Herramientas del agente sin instalar: %1$s</string>
|
||||
<string name="agent_unqueue">No enviar</string>
|
||||
<string name="agent_attach">Adjuntar</string>
|
||||
<string name="agent_attach_files">Archivos</string>
|
||||
<string name="agent_photos_allow">Permitir acceso a fotos</string>
|
||||
<string name="agent_photos_more">Elegir más fotos</string>
|
||||
<string name="agent_photos_empty">Aún no hay fotos</string>
|
||||
<string name="agent_keyboard">Teclado</string>
|
||||
<string name="agent_remove_attachment">Quitar</string>
|
||||
<string name="agent_model_default">Predeterminado</string>
|
||||
<string name="agent_effort">Esfuerzo de razonamiento</string>
|
||||
@@ -1338,6 +1343,31 @@
|
||||
<string name="ctrl_size">Tamaño de botones</string>
|
||||
<string name="ctrl_adaptive">Sticks adaptables</string>
|
||||
<string name="ctrl_rumble">Vibración en juegos</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">Abrir</string>
|
||||
<string name="air_triggers_use">Usar los Air Triggers</string>
|
||||
<string name="air_triggers_use_hint">Activa los gatillos de hombro sin el panel ni los marcadores de RedMagic. En su lugar, presionan botones de la disposición táctil.</string>
|
||||
<string name="air_trigger_left">Air Trigger izquierdo</string>
|
||||
<string name="air_trigger_right">Air Trigger derecho</string>
|
||||
<string name="air_trigger_button_hint">Se guarda para esta disposición</string>
|
||||
<string name="air_triggers_vibration">Vibración</string>
|
||||
<string name="air_triggers_vibration_hint">Vibra al tocar un Air Trigger</string>
|
||||
<string name="air_triggers_screen_light">Efecto de luz en pantalla</string>
|
||||
<string name="air_triggers_screen_light_hint">Ilumina el borde de la pantalla debajo de un Air Trigger al tocarlo</string>
|
||||
<string name="air_triggers_led">Efectos LED de ambiente al tocar</string>
|
||||
<string name="air_triggers_led_off">Apagado</string>
|
||||
<string name="air_triggers_led_steady">Fijo</string>
|
||||
<string name="air_triggers_led_pulse">Pulso</string>
|
||||
<string name="air_trigger_left_action">Acción del Air Trigger izquierdo</string>
|
||||
<string name="air_trigger_right_action">Acción del Air Trigger derecho</string>
|
||||
<string name="air_trigger_action_tap">Toque único</string>
|
||||
<string name="air_trigger_action_hold">Mantener presionado</string>
|
||||
<string name="air_trigger_action_rapid">Disparo rápido</string>
|
||||
<string name="air_trigger_rapid_settings">Configuración de disparo rápido</string>
|
||||
<string name="air_trigger_rapid_frequency">Frecuencia de clics</string>
|
||||
<string name="air_trigger_rate_low">Baja</string>
|
||||
<string name="air_trigger_rate_normal">Normal</string>
|
||||
<string name="air_trigger_rate_high">Alta</string>
|
||||
<string name="ctrl_dead_zone">Zona muerta de la palanca</string>
|
||||
<string name="ctrl_steam_button">Botón Steam</string>
|
||||
<string name="ctrl_qam_button">Botón QAM</string>
|
||||
@@ -2408,7 +2438,8 @@
|
||||
<string name="loadstate_steam_client">Descargando el cliente de Steam · %1$s</string>
|
||||
<string name="pextra_busy">Ya se está instalando una herramienta de compatibilidad</string>
|
||||
<string name="pextra_stop_session">Detén la sesión activa antes de instalar herramientas de compatibilidad</string>
|
||||
<string name="pextra_no_release">No se encontró una versión ARM64 de %1$s</string>
|
||||
<string name="pextra_no_release">No se encontró una versión %2$s de %1$s</string>
|
||||
<string name="pextra_anticheat">Antitrampas</string>
|
||||
<string name="pextra_no_space">Para instalar %1$s se necesitan al menos 4 GB libres más el tamaño de la descarga</string>
|
||||
<string name="pextra_downloading">Descargando %1$s %2$s</string>
|
||||
<string name="pextra_retrying">Reintentando la descarga · intento %1$d de %2$d</string>
|
||||
@@ -4203,4 +4234,6 @@
|
||||
<string name="glasses_shortcut_group">Acceso directo en el juego</string>
|
||||
<string name="glasses_show_shortcut">Mostrar acceso directo de Smart Glasses</string>
|
||||
<string name="glasses_show_shortcut_hint">Mostrar el botón flotante de Smart Glasses sobre el juego.</string>
|
||||
<string name="display_filter_game_profile">Usando el perfil %1$s: %2$s</string>
|
||||
<string name="display_filter_default_profile">Usando el perfil predeterminado: %1$s</string>
|
||||
</resources>
|
||||
@@ -1168,6 +1168,11 @@
|
||||
<string name="agent_tools_missing">Инструментите на агента не са инсталирани: %1$s</string>
|
||||
<string name="agent_unqueue">Не изпращай</string>
|
||||
<string name="agent_attach">Прикачи</string>
|
||||
<string name="agent_attach_files">Файлове</string>
|
||||
<string name="agent_photos_allow">Разрешаване на достъп до снимки</string>
|
||||
<string name="agent_photos_more">Избор на още снимки</string>
|
||||
<string name="agent_photos_empty">Все още няма снимки</string>
|
||||
<string name="agent_keyboard">Клавиатура</string>
|
||||
<string name="agent_remove_attachment">Премахни</string>
|
||||
<string name="agent_model_default">По подразбиране</string>
|
||||
<string name="agent_effort">Усилие за разсъждение</string>
|
||||
@@ -1304,6 +1309,31 @@
|
||||
<string name="ctrl_size">Размер на бутоните</string>
|
||||
<string name="ctrl_adaptive">Адаптивни стикове</string>
|
||||
<string name="ctrl_rumble">Вибрация от играта</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">Отвори</string>
|
||||
<string name="air_triggers_use">Използвай Air Triggers</string>
|
||||
<string name="air_triggers_use_hint">Включва раменните спусъци без панела и маркерите на RedMagic. Вместо това те натискат бутони от сензорното разположение.</string>
|
||||
<string name="air_trigger_left">Ляв Air Trigger</string>
|
||||
<string name="air_trigger_right">Десен Air Trigger</string>
|
||||
<string name="air_trigger_button_hint">Запазва се за това разположение</string>
|
||||
<string name="air_triggers_vibration">Вибрация</string>
|
||||
<string name="air_triggers_vibration_hint">Вибрира при докосване на Air Trigger</string>
|
||||
<string name="air_triggers_screen_light">Светлинен ефект на екрана</string>
|
||||
<string name="air_triggers_screen_light_hint">Осветява ръба на екрана под Air Trigger при докосване</string>
|
||||
<string name="air_triggers_led">LED ефекти на атмосферата при докосване</string>
|
||||
<string name="air_triggers_led_off">Изключено</string>
|
||||
<string name="air_triggers_led_steady">Постоянно</string>
|
||||
<string name="air_triggers_led_pulse">Пулсиране</string>
|
||||
<string name="air_trigger_left_action">Действие на левия Air Trigger</string>
|
||||
<string name="air_trigger_right_action">Действие на десния Air Trigger</string>
|
||||
<string name="air_trigger_action_tap">Еднократно докосване</string>
|
||||
<string name="air_trigger_action_hold">Продължително натискане</string>
|
||||
<string name="air_trigger_action_rapid">Бърза стрелба</string>
|
||||
<string name="air_trigger_rapid_settings">Настройки за бърза стрелба</string>
|
||||
<string name="air_trigger_rapid_frequency">Честота на щракване</string>
|
||||
<string name="air_trigger_rate_low">Ниска</string>
|
||||
<string name="air_trigger_rate_normal">Нормална</string>
|
||||
<string name="air_trigger_rate_high">Висока</string>
|
||||
<string name="ctrl_dead_zone">Мъртва зона на стика</string>
|
||||
<string name="ctrl_steam_button">Бутон Steam</string>
|
||||
<string name="ctrl_qam_button">Бутон QAM</string>
|
||||
@@ -2312,7 +2342,8 @@
|
||||
<string name="loadstate_steam_client">Изтегляне на клиента на Steam · %1$s</string>
|
||||
<string name="pextra_busy">Вече тече инсталация на инструмент за съвместимост</string>
|
||||
<string name="pextra_stop_session">Спри активната сесия, преди да инсталираш инструменти за съвместимост</string>
|
||||
<string name="pextra_no_release">Не беше намерена ARM64 версия на %1$s</string>
|
||||
<string name="pextra_no_release">Не беше намерена %2$s версия на %1$s</string>
|
||||
<string name="pextra_anticheat">Анти-чийт</string>
|
||||
<string name="pextra_no_space">За инсталирането на %1$s са необходими поне 4 GB свободно място плюс размера на изтеглянето</string>
|
||||
<string name="pextra_downloading">Изтегляне на %1$s %2$s</string>
|
||||
<string name="pextra_retrying">Повторен опит за изтегляне · опит %1$d от %2$d</string>
|
||||
@@ -4165,4 +4196,6 @@
|
||||
<string name="glasses_shortcut_group">Пряк път в играта</string>
|
||||
<string name="glasses_show_shortcut">Показване на прекия път за Smart Glasses</string>
|
||||
<string name="glasses_show_shortcut_hint">Показва плаващия бутон за Smart Glasses върху играта.</string>
|
||||
<string name="display_filter_game_profile">Използва се профил %1$s: %2$s</string>
|
||||
<string name="display_filter_default_profile">Използва се профилът по подразбиране: %1$s</string>
|
||||
</resources>
|
||||
@@ -1174,6 +1174,11 @@
|
||||
<string name="agent_tools_missing">Nástroje agenta nejsou nainstalované: %1$s</string>
|
||||
<string name="agent_unqueue">Neposílat</string>
|
||||
<string name="agent_attach">Přiložit</string>
|
||||
<string name="agent_attach_files">Soubory</string>
|
||||
<string name="agent_photos_allow">Povolit přístup k fotkám</string>
|
||||
<string name="agent_photos_more">Vybrat další fotky</string>
|
||||
<string name="agent_photos_empty">Zatím žádné fotky</string>
|
||||
<string name="agent_keyboard">Klávesnice</string>
|
||||
<string name="agent_remove_attachment">Odebrat</string>
|
||||
<string name="agent_model_default">Výchozí</string>
|
||||
<string name="agent_effort">Náročnost uvažování</string>
|
||||
@@ -1318,6 +1323,31 @@
|
||||
<string name="ctrl_size">Velikost tlačítek</string>
|
||||
<string name="ctrl_adaptive">Adaptivní páčky</string>
|
||||
<string name="ctrl_rumble">Vibrace ve hře</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">Otevřít</string>
|
||||
<string name="air_triggers_use">Používat Air Triggers</string>
|
||||
<string name="air_triggers_use_hint">Zapne ramenní triggery bez panelu a značek RedMagic. Místo toho mačkají tlačítka dotykového rozložení.</string>
|
||||
<string name="air_trigger_left">Levý Air Trigger</string>
|
||||
<string name="air_trigger_right">Pravý Air Trigger</string>
|
||||
<string name="air_trigger_button_hint">Uloženo pro toto rozložení</string>
|
||||
<string name="air_triggers_vibration">Vibrace</string>
|
||||
<string name="air_triggers_vibration_hint">Při dotyku Air Triggeru zavibruje</string>
|
||||
<string name="air_triggers_screen_light">Světelný efekt na obrazovce</string>
|
||||
<string name="air_triggers_screen_light_hint">Při dotyku rozsvítí okraj obrazovky pod Air Triggerem</string>
|
||||
<string name="air_triggers_led">LED efekty atmosféry při dotyku</string>
|
||||
<string name="air_triggers_led_off">Vypnuto</string>
|
||||
<string name="air_triggers_led_steady">Stálé</string>
|
||||
<string name="air_triggers_led_pulse">Pulzování</string>
|
||||
<string name="air_trigger_left_action">Akce levého Air Triggeru</string>
|
||||
<string name="air_trigger_right_action">Akce pravého Air Triggeru</string>
|
||||
<string name="air_trigger_action_tap">Jedno klepnutí</string>
|
||||
<string name="air_trigger_action_hold">Dlouhé stisknutí</string>
|
||||
<string name="air_trigger_action_rapid">Rychlá palba</string>
|
||||
<string name="air_trigger_rapid_settings">Nastavení rychlé palby</string>
|
||||
<string name="air_trigger_rapid_frequency">Frekvence kliknutí</string>
|
||||
<string name="air_trigger_rate_low">Nízká</string>
|
||||
<string name="air_trigger_rate_normal">Normální</string>
|
||||
<string name="air_trigger_rate_high">Vysoká</string>
|
||||
<string name="ctrl_dead_zone">Mrtvá zóna páčky</string>
|
||||
<string name="ctrl_steam_button">Tlačítko Steam</string>
|
||||
<string name="ctrl_qam_button">Tlačítko QAM</string>
|
||||
@@ -2364,7 +2394,8 @@
|
||||
<string name="loadstate_steam_client">Stahování klienta Steam · %1$s</string>
|
||||
<string name="pextra_busy">Instalace nástroje kompatibility už běží</string>
|
||||
<string name="pextra_stop_session">Před instalací nástrojů kompatibility zastavte aktivní relaci</string>
|
||||
<string name="pextra_no_release">Nepodařilo se najít vydání ARM64 pro %1$s</string>
|
||||
<string name="pextra_no_release">Nepodařilo se najít vydání %2$s pro %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</string>
|
||||
<string name="pextra_no_space">Pro instalaci %1$s je potřeba alespoň 4 GB volného místa navíc k velikosti stahování</string>
|
||||
<string name="pextra_downloading">Stahování %1$s %2$s</string>
|
||||
<string name="pextra_retrying">Opakování stahování · pokus %1$d z %2$d</string>
|
||||
@@ -4245,4 +4276,6 @@
|
||||
<string name="glasses_shortcut_group">Zkratka ve hře</string>
|
||||
<string name="glasses_show_shortcut">Zobrazit zkratku Smart Glasses</string>
|
||||
<string name="glasses_show_shortcut_hint">Zobrazit plovoucí tlačítko Smart Glasses nad hrou.</string>
|
||||
<string name="display_filter_game_profile">Používá se profil %1$s: %2$s</string>
|
||||
<string name="display_filter_default_profile">Používá se výchozí profil: %1$s</string>
|
||||
</resources>
|
||||
@@ -1168,6 +1168,11 @@
|
||||
<string name="agent_tools_missing">Agentens værktøjer er ikke installeret: %1$s</string>
|
||||
<string name="agent_unqueue">Send ikke</string>
|
||||
<string name="agent_attach">Vedhæft</string>
|
||||
<string name="agent_attach_files">Filer</string>
|
||||
<string name="agent_photos_allow">Tillad adgang til billeder</string>
|
||||
<string name="agent_photos_more">Vælg flere billeder</string>
|
||||
<string name="agent_photos_empty">Ingen billeder endnu</string>
|
||||
<string name="agent_keyboard">Tastatur</string>
|
||||
<string name="agent_remove_attachment">Fjern</string>
|
||||
<string name="agent_model_default">Standard</string>
|
||||
<string name="agent_effort">Ræsonneringsindsats</string>
|
||||
@@ -1304,6 +1309,31 @@
|
||||
<string name="ctrl_size">Knapstørrelse</string>
|
||||
<string name="ctrl_adaptive">Adaptive styrepinde</string>
|
||||
<string name="ctrl_rumble">Spilvibration</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">Åbn</string>
|
||||
<string name="air_triggers_use">Brug Air Triggers</string>
|
||||
<string name="air_triggers_use_hint">Tænder skuldertriggerne uden RedMagics triggerpanel eller markører. De trykker i stedet på knapper i touch-layoutet.</string>
|
||||
<string name="air_trigger_left">Venstre Air Trigger</string>
|
||||
<string name="air_trigger_right">Højre Air Trigger</string>
|
||||
<string name="air_trigger_button_hint">Gemt for dette layout</string>
|
||||
<string name="air_triggers_vibration">Vibration</string>
|
||||
<string name="air_triggers_vibration_hint">Vibrerer, når en Air Trigger berøres</string>
|
||||
<string name="air_triggers_screen_light">Lyseffekt på skærmen</string>
|
||||
<string name="air_triggers_screen_light_hint">Lyser skærmkanten op under en Air Trigger, når den berøres</string>
|
||||
<string name="air_triggers_led">LED-stemningseffekter ved berøring</string>
|
||||
<string name="air_triggers_led_off">Fra</string>
|
||||
<string name="air_triggers_led_steady">Konstant</string>
|
||||
<string name="air_triggers_led_pulse">Puls</string>
|
||||
<string name="air_trigger_left_action">Handling for venstre Air Trigger</string>
|
||||
<string name="air_trigger_right_action">Handling for højre Air Trigger</string>
|
||||
<string name="air_trigger_action_tap">Enkelt tryk</string>
|
||||
<string name="air_trigger_action_hold">Langt tryk</string>
|
||||
<string name="air_trigger_action_rapid">Hurtig affyring</string>
|
||||
<string name="air_trigger_rapid_settings">Indstillinger for hurtig affyring</string>
|
||||
<string name="air_trigger_rapid_frequency">Klikfrekvens</string>
|
||||
<string name="air_trigger_rate_low">Lav</string>
|
||||
<string name="air_trigger_rate_normal">Normal</string>
|
||||
<string name="air_trigger_rate_high">Høj</string>
|
||||
<string name="ctrl_dead_zone">Dødzone for styrepind</string>
|
||||
<string name="ctrl_steam_button">Steam-knap</string>
|
||||
<string name="ctrl_qam_button">QAM-knap</string>
|
||||
@@ -2312,7 +2342,8 @@
|
||||
<string name="loadstate_steam_client">Downloader Steam-klienten · %1$s</string>
|
||||
<string name="pextra_busy">En installation af et kompatibilitetsværktøj er allerede i gang</string>
|
||||
<string name="pextra_stop_session">Stop den aktive session, før du installerer kompatibilitetsværktøjer</string>
|
||||
<string name="pextra_no_release">Kunne ikke finde en ARM64-udgivelse af %1$s</string>
|
||||
<string name="pextra_no_release">Kunne ikke finde en %2$s-udgivelse af %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</string>
|
||||
<string name="pextra_no_space">Mindst 4 GB ledig plads plus downloadets størrelse er nødvendig for at installere %1$s</string>
|
||||
<string name="pextra_downloading">Downloader %1$s %2$s</string>
|
||||
<string name="pextra_retrying">Forsøger download igen · forsøg %1$d af %2$d</string>
|
||||
@@ -4165,4 +4196,6 @@
|
||||
<string name="glasses_shortcut_group">Genvej i spillet</string>
|
||||
<string name="glasses_show_shortcut">Vis Smart Glasses-genvej</string>
|
||||
<string name="glasses_show_shortcut_hint">Vis den flydende Smart Glasses-knap oven på spillet.</string>
|
||||
<string name="display_filter_game_profile">Bruger profilen %1$s: %2$s</string>
|
||||
<string name="display_filter_default_profile">Bruger standardprofilen: %1$s</string>
|
||||
</resources>
|
||||
@@ -1160,6 +1160,11 @@
|
||||
<string name="agent_tools_missing">Agent-Werkzeuge nicht installiert: %1$s</string>
|
||||
<string name="agent_unqueue">Nicht senden</string>
|
||||
<string name="agent_attach">Anhängen</string>
|
||||
<string name="agent_attach_files">Dateien</string>
|
||||
<string name="agent_photos_allow">Zugriff auf Fotos erlauben</string>
|
||||
<string name="agent_photos_more">Weitere Fotos auswählen</string>
|
||||
<string name="agent_photos_empty">Noch keine Fotos</string>
|
||||
<string name="agent_keyboard">Tastatur</string>
|
||||
<string name="agent_remove_attachment">Entfernen</string>
|
||||
<string name="agent_model_default">Standard</string>
|
||||
<string name="agent_effort">Denkaufwand</string>
|
||||
@@ -1296,6 +1301,31 @@
|
||||
<string name="ctrl_size">Tastengröße</string>
|
||||
<string name="ctrl_adaptive">Adaptive Sticks</string>
|
||||
<string name="ctrl_rumble">Spielvibration</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">Öffnen</string>
|
||||
<string name="air_triggers_use">Air Triggers verwenden</string>
|
||||
<string name="air_triggers_use_hint">Schaltet die Schultertrigger ohne das Trigger-Panel und die Markierungen von RedMagic ein. Sie drücken stattdessen Tasten des Touch-Layouts.</string>
|
||||
<string name="air_trigger_left">Linker Air Trigger</string>
|
||||
<string name="air_trigger_right">Rechter Air Trigger</string>
|
||||
<string name="air_trigger_button_hint">Für dieses Layout gespeichert</string>
|
||||
<string name="air_triggers_vibration">Vibration</string>
|
||||
<string name="air_triggers_vibration_hint">Vibriert, wenn ein Air Trigger berührt wird</string>
|
||||
<string name="air_triggers_screen_light">Lichteffekt auf dem Bildschirm</string>
|
||||
<string name="air_triggers_screen_light_hint">Lässt den Bildschirmrand unter einem Air Trigger aufleuchten, wenn er berührt wird</string>
|
||||
<string name="air_triggers_led">LED-Atmosphäreneffekte bei Berührung</string>
|
||||
<string name="air_triggers_led_off">Aus</string>
|
||||
<string name="air_triggers_led_steady">Dauerhaft</string>
|
||||
<string name="air_triggers_led_pulse">Pulsieren</string>
|
||||
<string name="air_trigger_left_action">Aktion des linken Air Triggers</string>
|
||||
<string name="air_trigger_right_action">Aktion des rechten Air Triggers</string>
|
||||
<string name="air_trigger_action_tap">Einmal tippen</string>
|
||||
<string name="air_trigger_action_hold">Lange drücken</string>
|
||||
<string name="air_trigger_action_rapid">Dauerfeuer</string>
|
||||
<string name="air_trigger_rapid_settings">Dauerfeuer-Einstellungen</string>
|
||||
<string name="air_trigger_rapid_frequency">Klickfrequenz</string>
|
||||
<string name="air_trigger_rate_low">Niedrig</string>
|
||||
<string name="air_trigger_rate_normal">Normal</string>
|
||||
<string name="air_trigger_rate_high">Hoch</string>
|
||||
<string name="ctrl_dead_zone">Stick-Totzone</string>
|
||||
<string name="ctrl_steam_button">Steam-Taste</string>
|
||||
<string name="ctrl_qam_button">QAM-Taste</string>
|
||||
@@ -2304,7 +2334,8 @@
|
||||
<string name="loadstate_steam_client">Steam-Client wird heruntergeladen · %1$s</string>
|
||||
<string name="pextra_busy">Es läuft bereits die Installation eines Kompatibilitätstools</string>
|
||||
<string name="pextra_stop_session">Beende die aktive Sitzung, bevor du Kompatibilitätstools installierst</string>
|
||||
<string name="pextra_no_release">Kein ARM64-Release für %1$s gefunden</string>
|
||||
<string name="pextra_no_release">Kein %2$s-Release für %1$s gefunden</string>
|
||||
<string name="pextra_anticheat">Anti-Cheat</string>
|
||||
<string name="pextra_no_space">Zum Installieren von %1$s werden mindestens 4 GB freier Speicherplatz plus die Downloadgröße benötigt</string>
|
||||
<string name="pextra_downloading">%1$s %2$s wird heruntergeladen</string>
|
||||
<string name="pextra_retrying">Download wird wiederholt · Versuch %1$d von %2$d</string>
|
||||
@@ -4165,4 +4196,6 @@
|
||||
<string name="glasses_shortcut_group">Ingame-Verknüpfung</string>
|
||||
<string name="glasses_show_shortcut">Smart-Glasses-Verknüpfung anzeigen</string>
|
||||
<string name="glasses_show_shortcut_hint">Die schwebende Smart-Glasses-Schaltfläche über dem Spiel anzeigen.</string>
|
||||
<string name="display_filter_game_profile">Profil %1$s wird verwendet: %2$s</string>
|
||||
<string name="display_filter_default_profile">Standardprofil wird verwendet: %1$s</string>
|
||||
</resources>
|
||||
@@ -1168,6 +1168,11 @@
|
||||
<string name="agent_tools_missing">Τα εργαλεία του πράκτορα δεν εγκαταστάθηκαν: %1$s</string>
|
||||
<string name="agent_unqueue">Να μην σταλεί</string>
|
||||
<string name="agent_attach">Επισύναψη</string>
|
||||
<string name="agent_attach_files">Αρχεία</string>
|
||||
<string name="agent_photos_allow">Να επιτρέπεται η πρόσβαση στις φωτογραφίες</string>
|
||||
<string name="agent_photos_more">Επιλογή περισσότερων φωτογραφιών</string>
|
||||
<string name="agent_photos_empty">Δεν υπάρχουν φωτογραφίες ακόμα</string>
|
||||
<string name="agent_keyboard">Πληκτρολόγιο</string>
|
||||
<string name="agent_remove_attachment">Αφαίρεση</string>
|
||||
<string name="agent_model_default">Προεπιλογή</string>
|
||||
<string name="agent_effort">Προσπάθεια συλλογισμού</string>
|
||||
@@ -1304,6 +1309,31 @@
|
||||
<string name="ctrl_size">Μέγεθος κουμπιών</string>
|
||||
<string name="ctrl_adaptive">Προσαρμοστικοί μοχλοί</string>
|
||||
<string name="ctrl_rumble">Κραδασμός παιχνιδιού</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">Άνοιγμα</string>
|
||||
<string name="air_triggers_use">Χρήση Air Triggers</string>
|
||||
<string name="air_triggers_use_hint">Ενεργοποιεί τις σκανδάλες ώμου χωρίς τον πίνακα ή τους δείκτες του RedMagic. Αντί γι\' αυτό πατούν κουμπιά της διάταξης αφής.</string>
|
||||
<string name="air_trigger_left">Αριστερό Air Trigger</string>
|
||||
<string name="air_trigger_right">Δεξί Air Trigger</string>
|
||||
<string name="air_trigger_button_hint">Αποθηκεύεται για αυτή τη διάταξη</string>
|
||||
<string name="air_triggers_vibration">Δόνηση</string>
|
||||
<string name="air_triggers_vibration_hint">Δονείται όταν αγγίζετε ένα Air Trigger</string>
|
||||
<string name="air_triggers_screen_light">Εφέ φωτισμού οθόνης</string>
|
||||
<string name="air_triggers_screen_light_hint">Φωτίζει την άκρη της οθόνης κάτω από ένα Air Trigger όταν το αγγίζετε</string>
|
||||
<string name="air_triggers_led">Εφέ ατμόσφαιρας LED με την αφή</string>
|
||||
<string name="air_triggers_led_off">Ανενεργό</string>
|
||||
<string name="air_triggers_led_steady">Σταθερό</string>
|
||||
<string name="air_triggers_led_pulse">Παλμός</string>
|
||||
<string name="air_trigger_left_action">Ενέργεια αριστερού Air Trigger</string>
|
||||
<string name="air_trigger_right_action">Ενέργεια δεξιού Air Trigger</string>
|
||||
<string name="air_trigger_action_tap">Μονό πάτημα</string>
|
||||
<string name="air_trigger_action_hold">Παρατεταμένο πάτημα</string>
|
||||
<string name="air_trigger_action_rapid">Ταχεία βολή</string>
|
||||
<string name="air_trigger_rapid_settings">Ρυθμίσεις ταχείας βολής</string>
|
||||
<string name="air_trigger_rapid_frequency">Συχνότητα κλικ</string>
|
||||
<string name="air_trigger_rate_low">Χαμηλή</string>
|
||||
<string name="air_trigger_rate_normal">Κανονική</string>
|
||||
<string name="air_trigger_rate_high">Υψηλή</string>
|
||||
<string name="ctrl_dead_zone">Νεκρή ζώνη μοχλού</string>
|
||||
<string name="ctrl_steam_button">Κουμπί Steam</string>
|
||||
<string name="ctrl_qam_button">Κουμπί QAM</string>
|
||||
@@ -2312,7 +2342,8 @@
|
||||
<string name="loadstate_steam_client">Λήψη του πελάτη Steam · %1$s</string>
|
||||
<string name="pextra_busy">Μια εγκατάσταση εργαλείου συμβατότητας εκτελείται ήδη</string>
|
||||
<string name="pextra_stop_session">Διακόψτε την ενεργή συνεδρία πριν εγκαταστήσετε εργαλεία συμβατότητας</string>
|
||||
<string name="pextra_no_release">Δεν βρέθηκε κυκλοφορία ARM64 για το %1$s</string>
|
||||
<string name="pextra_no_release">Δεν βρέθηκε κυκλοφορία %2$s για το %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</string>
|
||||
<string name="pextra_no_space">Απαιτούνται τουλάχιστον 4 GB ελεύθερα συν το μέγεθος της λήψης για να εγκατασταθεί το %1$s</string>
|
||||
<string name="pextra_downloading">Λήψη %1$s %2$s</string>
|
||||
<string name="pextra_retrying">Επανάληψη λήψης · προσπάθεια %1$d από %2$d</string>
|
||||
@@ -4165,4 +4196,6 @@
|
||||
<string name="glasses_shortcut_group">Συντόμευση μέσα στο παιχνίδι</string>
|
||||
<string name="glasses_show_shortcut">Εμφάνιση συντόμευσης Smart Glasses</string>
|
||||
<string name="glasses_show_shortcut_hint">Εμφάνιση του αιωρούμενου κουμπιού Smart Glasses πάνω από το παιχνίδι.</string>
|
||||
<string name="display_filter_game_profile">Χρήση προφίλ %1$s: %2$s</string>
|
||||
<string name="display_filter_default_profile">Χρήση προεπιλεγμένου προφίλ: %1$s</string>
|
||||
</resources>
|
||||
@@ -1171,6 +1171,11 @@
|
||||
<string name="agent_tools_missing">Herramientas del agente sin instalar: %1$s</string>
|
||||
<string name="agent_unqueue">No enviar</string>
|
||||
<string name="agent_attach">Adjuntar</string>
|
||||
<string name="agent_attach_files">Archivos</string>
|
||||
<string name="agent_photos_allow">Permitir acceso a las fotos</string>
|
||||
<string name="agent_photos_more">Elegir más fotos</string>
|
||||
<string name="agent_photos_empty">Aún no hay fotos</string>
|
||||
<string name="agent_keyboard">Teclado</string>
|
||||
<string name="agent_remove_attachment">Quitar</string>
|
||||
<string name="agent_model_default">Predeterminado</string>
|
||||
<string name="agent_effort">Esfuerzo de razonamiento</string>
|
||||
@@ -1311,6 +1316,31 @@
|
||||
<string name="ctrl_size">Tamaño de botones</string>
|
||||
<string name="ctrl_adaptive">Sticks adaptables</string>
|
||||
<string name="ctrl_rumble">Vibración en juegos</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">Abrir</string>
|
||||
<string name="air_triggers_use">Usar los Air Triggers</string>
|
||||
<string name="air_triggers_use_hint">Activa los gatillos de hombro sin el panel ni los marcadores de RedMagic. En su lugar, pulsan botones de la disposición táctil.</string>
|
||||
<string name="air_trigger_left">Air Trigger izquierdo</string>
|
||||
<string name="air_trigger_right">Air Trigger derecho</string>
|
||||
<string name="air_trigger_button_hint">Se guarda para esta disposición</string>
|
||||
<string name="air_triggers_vibration">Vibración</string>
|
||||
<string name="air_triggers_vibration_hint">Vibra al tocar un Air Trigger</string>
|
||||
<string name="air_triggers_screen_light">Efecto de luz en pantalla</string>
|
||||
<string name="air_triggers_screen_light_hint">Ilumina el borde de la pantalla debajo de un Air Trigger al tocarlo</string>
|
||||
<string name="air_triggers_led">Efectos LED de ambiente al tocar</string>
|
||||
<string name="air_triggers_led_off">Apagado</string>
|
||||
<string name="air_triggers_led_steady">Fijo</string>
|
||||
<string name="air_triggers_led_pulse">Pulso</string>
|
||||
<string name="air_trigger_left_action">Acción del Air Trigger izquierdo</string>
|
||||
<string name="air_trigger_right_action">Acción del Air Trigger derecho</string>
|
||||
<string name="air_trigger_action_tap">Toque único</string>
|
||||
<string name="air_trigger_action_hold">Mantener pulsado</string>
|
||||
<string name="air_trigger_action_rapid">Disparo rápido</string>
|
||||
<string name="air_trigger_rapid_settings">Ajustes de disparo rápido</string>
|
||||
<string name="air_trigger_rapid_frequency">Frecuencia de clics</string>
|
||||
<string name="air_trigger_rate_low">Baja</string>
|
||||
<string name="air_trigger_rate_normal">Normal</string>
|
||||
<string name="air_trigger_rate_high">Alta</string>
|
||||
<string name="ctrl_dead_zone">Zona muerta de la palanca</string>
|
||||
<string name="ctrl_steam_button">Botón Steam</string>
|
||||
<string name="ctrl_qam_button">Botón QAM</string>
|
||||
@@ -2338,7 +2368,8 @@
|
||||
<string name="loadstate_steam_client">Descargando el cliente de Steam · %1$s</string>
|
||||
<string name="pextra_busy">Ya se está instalando una herramienta de compatibilidad</string>
|
||||
<string name="pextra_stop_session">Detén la sesión activa antes de instalar herramientas de compatibilidad</string>
|
||||
<string name="pextra_no_release">No se encontró una versión ARM64 de %1$s</string>
|
||||
<string name="pextra_no_release">No se encontró una versión %2$s de %1$s</string>
|
||||
<string name="pextra_anticheat">Antitrampas</string>
|
||||
<string name="pextra_no_space">Para instalar %1$s se necesitan al menos 4 GB libres más el tamaño de la descarga</string>
|
||||
<string name="pextra_downloading">Descargando %1$s %2$s</string>
|
||||
<string name="pextra_retrying">Reintentando la descarga · intento %1$d de %2$d</string>
|
||||
@@ -4205,4 +4236,6 @@
|
||||
<string name="glasses_shortcut_group">Acceso directo en el juego</string>
|
||||
<string name="glasses_show_shortcut">Mostrar acceso directo de Smart Glasses</string>
|
||||
<string name="glasses_show_shortcut_hint">Mostrar el botón flotante de Smart Glasses sobre el juego.</string>
|
||||
<string name="display_filter_game_profile">Usando el perfil %1$s: %2$s</string>
|
||||
<string name="display_filter_default_profile">Usando el perfil predeterminado: %1$s</string>
|
||||
</resources>
|
||||
@@ -1168,6 +1168,11 @@
|
||||
<string name="agent_tools_missing">Agentin työkaluja ei ole asennettu: %1$s</string>
|
||||
<string name="agent_unqueue">Älä lähetä</string>
|
||||
<string name="agent_attach">Liitä</string>
|
||||
<string name="agent_attach_files">Tiedostot</string>
|
||||
<string name="agent_photos_allow">Salli kuvien käyttö</string>
|
||||
<string name="agent_photos_more">Valitse lisää kuvia</string>
|
||||
<string name="agent_photos_empty">Ei vielä kuvia</string>
|
||||
<string name="agent_keyboard">Näppäimistö</string>
|
||||
<string name="agent_remove_attachment">Poista</string>
|
||||
<string name="agent_model_default">Oletus</string>
|
||||
<string name="agent_effort">Päättelyteho</string>
|
||||
@@ -1304,6 +1309,31 @@
|
||||
<string name="ctrl_size">Painikkeiden koko</string>
|
||||
<string name="ctrl_adaptive">Mukautuvat sauvat</string>
|
||||
<string name="ctrl_rumble">Pelin tärinä</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">Avaa</string>
|
||||
<string name="air_triggers_use">Käytä Air Triggereitä</string>
|
||||
<string name="air_triggers_use_hint">Ottaa olkaliipaisimet käyttöön ilman RedMagicin liipaisinpaneelia tai merkkejä. Ne painavat sen sijaan kosketusasettelun painikkeita.</string>
|
||||
<string name="air_trigger_left">Vasen Air Trigger</string>
|
||||
<string name="air_trigger_right">Oikea Air Trigger</string>
|
||||
<string name="air_trigger_button_hint">Tallennetaan tälle asettelulle</string>
|
||||
<string name="air_triggers_vibration">Värinä</string>
|
||||
<string name="air_triggers_vibration_hint">Värisee, kun Air Triggeriä kosketetaan</string>
|
||||
<string name="air_triggers_screen_light">Näytön valoefekti</string>
|
||||
<string name="air_triggers_screen_light_hint">Valaisee näytön reunan Air Triggerin alla, kun sitä kosketetaan</string>
|
||||
<string name="air_triggers_led">Kosketuksen tunnelma-LED-efektit</string>
|
||||
<string name="air_triggers_led_off">Pois</string>
|
||||
<string name="air_triggers_led_steady">Tasainen</string>
|
||||
<string name="air_triggers_led_pulse">Sykkivä</string>
|
||||
<string name="air_trigger_left_action">Vasemman Air Triggerin toiminto</string>
|
||||
<string name="air_trigger_right_action">Oikean Air Triggerin toiminto</string>
|
||||
<string name="air_trigger_action_tap">Yksi napautus</string>
|
||||
<string name="air_trigger_action_hold">Pitkä painallus</string>
|
||||
<string name="air_trigger_action_rapid">Sarjatuli</string>
|
||||
<string name="air_trigger_rapid_settings">Sarjatulen asetukset</string>
|
||||
<string name="air_trigger_rapid_frequency">Napsautustiheys</string>
|
||||
<string name="air_trigger_rate_low">Matala</string>
|
||||
<string name="air_trigger_rate_normal">Normaali</string>
|
||||
<string name="air_trigger_rate_high">Korkea</string>
|
||||
<string name="ctrl_dead_zone">Ohjaussauvan kuollut alue</string>
|
||||
<string name="ctrl_steam_button">Steam-painike</string>
|
||||
<string name="ctrl_qam_button">QAM-painike</string>
|
||||
@@ -2312,7 +2342,8 @@
|
||||
<string name="loadstate_steam_client">Ladataan Steam-asiakasohjelmaa · %1$s</string>
|
||||
<string name="pextra_busy">Yhteensopivuustyökalun asennus on jo käynnissä</string>
|
||||
<string name="pextra_stop_session">Pysäytä käynnissä oleva istunto ennen yhteensopivuustyökalujen asentamista</string>
|
||||
<string name="pextra_no_release">ARM64-julkaisua kohteelle %1$s ei löytynyt</string>
|
||||
<string name="pextra_no_release">%2$s-julkaisua kohteelle %1$s ei löytynyt</string>
|
||||
<string name="pextra_anticheat">Huijauksenesto</string>
|
||||
<string name="pextra_no_space">Kohteen %1$s asentaminen vaatii vähintään 4 GB vapaata tilaa latauksen koon lisäksi</string>
|
||||
<string name="pextra_downloading">Ladataan %1$s %2$s</string>
|
||||
<string name="pextra_retrying">Yritetään latausta uudelleen · yritys %1$d/%2$d</string>
|
||||
@@ -4165,4 +4196,6 @@
|
||||
<string name="glasses_shortcut_group">Pelin aikainen pikakuvake</string>
|
||||
<string name="glasses_show_shortcut">Näytä Smart Glasses -pikakuvake</string>
|
||||
<string name="glasses_show_shortcut_hint">Näytä pelin päällä kelluva Smart Glasses -painike.</string>
|
||||
<string name="display_filter_game_profile">Käytössä profiili %1$s: %2$s</string>
|
||||
<string name="display_filter_default_profile">Käytössä oletusprofiili: %1$s</string>
|
||||
</resources>
|
||||
@@ -1171,6 +1171,11 @@
|
||||
<string name="agent_tools_missing">Outils de l’agent non installés : %1$s</string>
|
||||
<string name="agent_unqueue">Ne pas envoyer</string>
|
||||
<string name="agent_attach">Joindre</string>
|
||||
<string name="agent_attach_files">Fichiers</string>
|
||||
<string name="agent_photos_allow">Autoriser l\'accès aux photos</string>
|
||||
<string name="agent_photos_more">Choisir d\'autres photos</string>
|
||||
<string name="agent_photos_empty">Aucune photo pour l\'instant</string>
|
||||
<string name="agent_keyboard">Clavier</string>
|
||||
<string name="agent_remove_attachment">Supprimer</string>
|
||||
<string name="agent_model_default">Par défaut</string>
|
||||
<string name="agent_effort">Effort de raisonnement</string>
|
||||
@@ -1310,6 +1315,31 @@
|
||||
<string name="ctrl_size">Taille des boutons</string>
|
||||
<string name="ctrl_adaptive">Joystick adaptatif</string>
|
||||
<string name="ctrl_rumble">Vibration du jeu</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">Ouvrir</string>
|
||||
<string name="air_triggers_use">Utiliser les Air Triggers</string>
|
||||
<string name="air_triggers_use_hint">Active les gâchettes d\'épaule sans le panneau ni les repères de RedMagic. Elles appuient à la place sur des boutons de la disposition tactile.</string>
|
||||
<string name="air_trigger_left">Air Trigger gauche</string>
|
||||
<string name="air_trigger_right">Air Trigger droit</string>
|
||||
<string name="air_trigger_button_hint">Enregistré pour cette disposition</string>
|
||||
<string name="air_triggers_vibration">Vibration</string>
|
||||
<string name="air_triggers_vibration_hint">Vibre quand un Air Trigger est touché</string>
|
||||
<string name="air_triggers_screen_light">Effet lumineux à l\'écran</string>
|
||||
<string name="air_triggers_screen_light_hint">Illumine le bord de l\'écran sous un Air Trigger quand il est touché</string>
|
||||
<string name="air_triggers_led">Effets LED d\'ambiance au toucher</string>
|
||||
<string name="air_triggers_led_off">Désactivé</string>
|
||||
<string name="air_triggers_led_steady">Fixe</string>
|
||||
<string name="air_triggers_led_pulse">Pulsation</string>
|
||||
<string name="air_trigger_left_action">Action de l\'Air Trigger gauche</string>
|
||||
<string name="air_trigger_right_action">Action de l\'Air Trigger droit</string>
|
||||
<string name="air_trigger_action_tap">Appui simple</string>
|
||||
<string name="air_trigger_action_hold">Appui long</string>
|
||||
<string name="air_trigger_action_rapid">Tir rapide</string>
|
||||
<string name="air_trigger_rapid_settings">Réglages du tir rapide</string>
|
||||
<string name="air_trigger_rapid_frequency">Fréquence des clics</string>
|
||||
<string name="air_trigger_rate_low">Faible</string>
|
||||
<string name="air_trigger_rate_normal">Normale</string>
|
||||
<string name="air_trigger_rate_high">Élevée</string>
|
||||
<string name="ctrl_dead_zone">Zone morte du stick</string>
|
||||
<string name="ctrl_steam_button">Bouton Steam</string>
|
||||
<string name="ctrl_qam_button">Bouton QAM</string>
|
||||
@@ -2337,7 +2367,8 @@
|
||||
<string name="loadstate_steam_client">Téléchargement du client Steam · %1$s</string>
|
||||
<string name="pextra_busy">Une installation d\'outil de compatibilité est déjà en cours</string>
|
||||
<string name="pextra_stop_session">Arrêtez la session en cours avant d\'installer des outils de compatibilité</string>
|
||||
<string name="pextra_no_release">Aucune version ARM64 trouvée pour %1$s</string>
|
||||
<string name="pextra_no_release">Aucune version %2$s trouvée pour %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-triche</string>
|
||||
<string name="pextra_no_space">Au moins 4 Go libres, plus la taille du téléchargement, sont nécessaires pour installer %1$s</string>
|
||||
<string name="pextra_downloading">Téléchargement de %1$s %2$s</string>
|
||||
<string name="pextra_retrying">Nouvelle tentative de téléchargement · essai %1$d sur %2$d</string>
|
||||
@@ -4204,4 +4235,6 @@
|
||||
<string name="glasses_shortcut_group">Raccourci en jeu</string>
|
||||
<string name="glasses_show_shortcut">Afficher le raccourci Smart Glasses</string>
|
||||
<string name="glasses_show_shortcut_hint">Afficher le bouton flottant Smart Glasses par-dessus le jeu.</string>
|
||||
<string name="display_filter_game_profile">Profil %1$s utilisé : %2$s</string>
|
||||
<string name="display_filter_default_profile">Profil par défaut utilisé : %1$s</string>
|
||||
</resources>
|
||||
@@ -1168,6 +1168,11 @@
|
||||
<string name="agent_tools_missing">एजेंट टूल इंस्टॉल नहीं हुए: %1$s</string>
|
||||
<string name="agent_unqueue">न भेजें</string>
|
||||
<string name="agent_attach">संलग्न करें</string>
|
||||
<string name="agent_attach_files">फ़ाइलें</string>
|
||||
<string name="agent_photos_allow">फ़ोटो की अनुमति दें</string>
|
||||
<string name="agent_photos_more">और फ़ोटो चुनें</string>
|
||||
<string name="agent_photos_empty">अभी कोई फ़ोटो नहीं</string>
|
||||
<string name="agent_keyboard">कीबोर्ड</string>
|
||||
<string name="agent_remove_attachment">हटाएँ</string>
|
||||
<string name="agent_model_default">डिफ़ॉल्ट</string>
|
||||
<string name="agent_effort">सोचने का स्तर</string>
|
||||
@@ -1304,6 +1309,31 @@
|
||||
<string name="ctrl_size">बटन का आकार</string>
|
||||
<string name="ctrl_adaptive">एडैप्टिव स्टिक</string>
|
||||
<string name="ctrl_rumble">गेम वाइब्रेशन</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">खोलें</string>
|
||||
<string name="air_triggers_use">Air Triggers इस्तेमाल करें</string>
|
||||
<string name="air_triggers_use_hint">RedMagic के ट्रिगर पैनल या मार्कर के बिना शोल्डर ट्रिगर चालू करता है। इसके बजाय वे टच लेआउट के बटन दबाते हैं।</string>
|
||||
<string name="air_trigger_left">लेफ़्ट Air Trigger</string>
|
||||
<string name="air_trigger_right">राइट Air Trigger</string>
|
||||
<string name="air_trigger_button_hint">इस लेआउट के लिए सहेजा गया</string>
|
||||
<string name="air_triggers_vibration">वाइब्रेशन</string>
|
||||
<string name="air_triggers_vibration_hint">Air Trigger छूने पर वाइब्रेट करता है</string>
|
||||
<string name="air_triggers_screen_light">स्क्रीन लाइट इफ़ेक्ट</string>
|
||||
<string name="air_triggers_screen_light_hint">Air Trigger छूने पर उसके नीचे स्क्रीन का किनारा रोशन करता है</string>
|
||||
<string name="air_triggers_led">टच एटमॉस्फ़ियर LED इफ़ेक्ट</string>
|
||||
<string name="air_triggers_led_off">बंद</string>
|
||||
<string name="air_triggers_led_steady">स्थिर</string>
|
||||
<string name="air_triggers_led_pulse">पल्स</string>
|
||||
<string name="air_trigger_left_action">लेफ़्ट Air Trigger का ऐक्शन</string>
|
||||
<string name="air_trigger_right_action">राइट Air Trigger का ऐक्शन</string>
|
||||
<string name="air_trigger_action_tap">सिंगल टैप</string>
|
||||
<string name="air_trigger_action_hold">लॉन्ग प्रेस</string>
|
||||
<string name="air_trigger_action_rapid">रैपिड फ़ायर</string>
|
||||
<string name="air_trigger_rapid_settings">रैपिड फ़ायर सेटिंग</string>
|
||||
<string name="air_trigger_rapid_frequency">क्लिक फ़्रीक्वेंसी</string>
|
||||
<string name="air_trigger_rate_low">कम</string>
|
||||
<string name="air_trigger_rate_normal">सामान्य</string>
|
||||
<string name="air_trigger_rate_high">ज़्यादा</string>
|
||||
<string name="ctrl_dead_zone">स्टिक का डेड ज़ोन</string>
|
||||
<string name="ctrl_steam_button">Steam बटन</string>
|
||||
<string name="ctrl_qam_button">QAM बटन</string>
|
||||
@@ -2312,7 +2342,8 @@
|
||||
<string name="loadstate_steam_client">Steam क्लाइंट डाउनलोड हो रहा है · %1$s</string>
|
||||
<string name="pextra_busy">एक कम्पैटिबिलिटी टूल इंस्टॉल पहले से चल रहा है</string>
|
||||
<string name="pextra_stop_session">कम्पैटिबिलिटी टूल इंस्टॉल करने से पहले चल रहा सेशन बंद करें</string>
|
||||
<string name="pextra_no_release">%1$s के लिए कोई ARM64 रिलीज़ नहीं मिली</string>
|
||||
<string name="pextra_no_release">%1$s के लिए कोई %2$s रिलीज़ नहीं मिली</string>
|
||||
<string name="pextra_anticheat">एंटी-चीट</string>
|
||||
<string name="pextra_no_space">%1$s इंस्टॉल करने के लिए कम से कम 4 GB खाली जगह और डाउनलोड आकार चाहिए</string>
|
||||
<string name="pextra_downloading">%1$s %2$s डाउनलोड हो रहा है</string>
|
||||
<string name="pextra_retrying">डाउनलोड फिर से कोशिश हो रहा है · %2$d में से %1$d प्रयास</string>
|
||||
@@ -4165,4 +4196,6 @@
|
||||
<string name="glasses_shortcut_group">गेम में शॉर्टकट</string>
|
||||
<string name="glasses_show_shortcut">Smart Glasses शॉर्टकट दिखाएँ</string>
|
||||
<string name="glasses_show_shortcut_hint">गेम के ऊपर तैरता हुआ Smart Glasses बटन दिखाएँ।</string>
|
||||
<string name="display_filter_game_profile">%1$s प्रोफ़ाइल का उपयोग: %2$s</string>
|
||||
<string name="display_filter_default_profile">डिफ़ॉल्ट प्रोफ़ाइल का उपयोग: %1$s</string>
|
||||
</resources>
|
||||
@@ -1168,6 +1168,11 @@
|
||||
<string name="agent_tools_missing">Az ügynök eszközei nincsenek telepítve: %1$s</string>
|
||||
<string name="agent_unqueue">Ne küldd el</string>
|
||||
<string name="agent_attach">Csatolás</string>
|
||||
<string name="agent_attach_files">Fájlok</string>
|
||||
<string name="agent_photos_allow">Fotókhoz való hozzáférés engedélyezése</string>
|
||||
<string name="agent_photos_more">További fotók kiválasztása</string>
|
||||
<string name="agent_photos_empty">Még nincsenek fotók</string>
|
||||
<string name="agent_keyboard">Billentyűzet</string>
|
||||
<string name="agent_remove_attachment">Eltávolítás</string>
|
||||
<string name="agent_model_default">Alapértelmezett</string>
|
||||
<string name="agent_effort">Gondolkodási erőfeszítés</string>
|
||||
@@ -1304,6 +1309,31 @@
|
||||
<string name="ctrl_size">Gombméret</string>
|
||||
<string name="ctrl_adaptive">Adaptív karok</string>
|
||||
<string name="ctrl_rumble">Játékvibráció</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">Megnyitás</string>
|
||||
<string name="air_triggers_use">Air Triggers használata</string>
|
||||
<string name="air_triggers_use_hint">Bekapcsolja a vállravaszokat a RedMagic ravaszpanelje és jelölői nélkül. Helyettük az érintéses elrendezés gombjait nyomják meg.</string>
|
||||
<string name="air_trigger_left">Bal Air Trigger</string>
|
||||
<string name="air_trigger_right">Jobb Air Trigger</string>
|
||||
<string name="air_trigger_button_hint">Ehhez az elrendezéshez mentve</string>
|
||||
<string name="air_triggers_vibration">Rezgés</string>
|
||||
<string name="air_triggers_vibration_hint">Rezeg, amikor megérint egy Air Triggert</string>
|
||||
<string name="air_triggers_screen_light">Fényeffektus a képernyőn</string>
|
||||
<string name="air_triggers_screen_light_hint">Érintéskor megvilágítja a képernyő szélét az Air Trigger alatt</string>
|
||||
<string name="air_triggers_led">Érintési hangulat-LED-effektusok</string>
|
||||
<string name="air_triggers_led_off">Ki</string>
|
||||
<string name="air_triggers_led_steady">Folyamatos</string>
|
||||
<string name="air_triggers_led_pulse">Pulzálás</string>
|
||||
<string name="air_trigger_left_action">Bal Air Trigger művelete</string>
|
||||
<string name="air_trigger_right_action">Jobb Air Trigger művelete</string>
|
||||
<string name="air_trigger_action_tap">Egy koppintás</string>
|
||||
<string name="air_trigger_action_hold">Hosszú nyomás</string>
|
||||
<string name="air_trigger_action_rapid">Gyorstüzelés</string>
|
||||
<string name="air_trigger_rapid_settings">Gyorstüzelés beállításai</string>
|
||||
<string name="air_trigger_rapid_frequency">Kattintási gyakoriság</string>
|
||||
<string name="air_trigger_rate_low">Alacsony</string>
|
||||
<string name="air_trigger_rate_normal">Normál</string>
|
||||
<string name="air_trigger_rate_high">Magas</string>
|
||||
<string name="ctrl_dead_zone">Kar holtzónája</string>
|
||||
<string name="ctrl_steam_button">Steam gomb</string>
|
||||
<string name="ctrl_qam_button">QAM gomb</string>
|
||||
@@ -2312,7 +2342,8 @@
|
||||
<string name="loadstate_steam_client">A Steam-kliens letöltése · %1$s</string>
|
||||
<string name="pextra_busy">Már fut egy kompatibilitási eszköz telepítése</string>
|
||||
<string name="pextra_stop_session">Állítsa le az aktív munkamenetet a kompatibilitási eszközök telepítése előtt</string>
|
||||
<string name="pextra_no_release">Nem található ARM64-es kiadás a %1$s-hez</string>
|
||||
<string name="pextra_no_release">Nem található %2$s-es kiadás a %1$s-hez</string>
|
||||
<string name="pextra_anticheat">Csalás elleni védelem</string>
|
||||
<string name="pextra_no_space">Legalább 4 GB szabad hely, plusz a letöltés mérete szükséges a %1$s telepítéséhez</string>
|
||||
<string name="pextra_downloading">%1$s %2$s letöltése</string>
|
||||
<string name="pextra_retrying">A letöltés újrapróbálása · %1$d. próbálkozás a %2$d-ből</string>
|
||||
@@ -4165,4 +4196,6 @@
|
||||
<string name="glasses_shortcut_group">Játékon belüli parancsikon</string>
|
||||
<string name="glasses_show_shortcut">Smart Glasses parancsikon megjelenítése</string>
|
||||
<string name="glasses_show_shortcut_hint">A játék fölött lebegő Smart Glasses gomb megjelenítése.</string>
|
||||
<string name="display_filter_game_profile">Használt profil: %1$s – %2$s</string>
|
||||
<string name="display_filter_default_profile">Alapértelmezett profil használata: %1$s</string>
|
||||
</resources>
|
||||
@@ -1165,6 +1165,11 @@
|
||||
<string name="agent_tools_missing">Alat agen tidak terpasang: %1$s</string>
|
||||
<string name="agent_unqueue">Jangan kirim</string>
|
||||
<string name="agent_attach">Lampirkan</string>
|
||||
<string name="agent_attach_files">File</string>
|
||||
<string name="agent_photos_allow">Izinkan akses foto</string>
|
||||
<string name="agent_photos_more">Pilih foto lainnya</string>
|
||||
<string name="agent_photos_empty">Belum ada foto</string>
|
||||
<string name="agent_keyboard">Keyboard</string>
|
||||
<string name="agent_remove_attachment">Hapus</string>
|
||||
<string name="agent_model_default">Default</string>
|
||||
<string name="agent_effort">Upaya penalaran</string>
|
||||
@@ -1298,6 +1303,31 @@
|
||||
<string name="ctrl_size">Ukuran tombol</string>
|
||||
<string name="ctrl_adaptive">Stik adaptif</string>
|
||||
<string name="ctrl_rumble">Getaran gim</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">Buka</string>
|
||||
<string name="air_triggers_use">Gunakan Air Triggers</string>
|
||||
<string name="air_triggers_use_hint">Menyalakan trigger bahu tanpa panel atau penanda trigger RedMagic. Sebagai gantinya, trigger menekan tombol tata letak sentuh.</string>
|
||||
<string name="air_trigger_left">Air Trigger kiri</string>
|
||||
<string name="air_trigger_right">Air Trigger kanan</string>
|
||||
<string name="air_trigger_button_hint">Disimpan untuk tata letak ini</string>
|
||||
<string name="air_triggers_vibration">Getaran</string>
|
||||
<string name="air_triggers_vibration_hint">Bergetar saat Air Trigger disentuh</string>
|
||||
<string name="air_triggers_screen_light">Efek cahaya layar</string>
|
||||
<string name="air_triggers_screen_light_hint">Menerangi tepi layar di bawah Air Trigger saat disentuh</string>
|
||||
<string name="air_triggers_led">Efek LED suasana saat disentuh</string>
|
||||
<string name="air_triggers_led_off">Mati</string>
|
||||
<string name="air_triggers_led_steady">Tetap</string>
|
||||
<string name="air_triggers_led_pulse">Denyut</string>
|
||||
<string name="air_trigger_left_action">Aksi Air Trigger kiri</string>
|
||||
<string name="air_trigger_right_action">Aksi Air Trigger kanan</string>
|
||||
<string name="air_trigger_action_tap">Ketuk sekali</string>
|
||||
<string name="air_trigger_action_hold">Tekan lama</string>
|
||||
<string name="air_trigger_action_rapid">Tembak cepat</string>
|
||||
<string name="air_trigger_rapid_settings">Setelan tembak cepat</string>
|
||||
<string name="air_trigger_rapid_frequency">Frekuensi klik</string>
|
||||
<string name="air_trigger_rate_low">Rendah</string>
|
||||
<string name="air_trigger_rate_normal">Normal</string>
|
||||
<string name="air_trigger_rate_high">Tinggi</string>
|
||||
<string name="ctrl_dead_zone">Zona mati stik</string>
|
||||
<string name="ctrl_steam_button">Tombol Steam</string>
|
||||
<string name="ctrl_qam_button">Tombol QAM</string>
|
||||
@@ -2287,7 +2317,8 @@
|
||||
<string name="loadstate_steam_client">Mengunduh klien Steam · %1$s</string>
|
||||
<string name="pextra_busy">Instalasi alat kompatibilitas sedang berjalan</string>
|
||||
<string name="pextra_stop_session">Hentikan sesi aktif sebelum menginstal alat kompatibilitas</string>
|
||||
<string name="pextra_no_release">Tidak dapat menemukan rilis ARM64 untuk %1$s</string>
|
||||
<string name="pextra_no_release">Tidak dapat menemukan rilis %2$s untuk %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</string>
|
||||
<string name="pextra_no_space">Setidaknya 4 GB ruang kosong ditambah ukuran unduhan diperlukan untuk menginstal %1$s</string>
|
||||
<string name="pextra_downloading">Mengunduh %1$s %2$s</string>
|
||||
<string name="pextra_retrying">Mencoba lagi unduhan · percobaan %1$d dari %2$d</string>
|
||||
@@ -4135,4 +4166,6 @@
|
||||
<string name="glasses_shortcut_group">Pintasan dalam game</string>
|
||||
<string name="glasses_show_shortcut">Tampilkan pintasan Smart Glasses</string>
|
||||
<string name="glasses_show_shortcut_hint">Tampilkan tombol Smart Glasses mengambang di atas game.</string>
|
||||
<string name="display_filter_game_profile">Menggunakan profil %1$s: %2$s</string>
|
||||
<string name="display_filter_default_profile">Menggunakan profil default: %1$s</string>
|
||||
</resources>
|
||||
@@ -1163,6 +1163,11 @@
|
||||
<string name="agent_tools_missing">Strumenti dell’agente non installati: %1$s</string>
|
||||
<string name="agent_unqueue">Non inviare</string>
|
||||
<string name="agent_attach">Allega</string>
|
||||
<string name="agent_attach_files">File</string>
|
||||
<string name="agent_photos_allow">Consenti accesso alle foto</string>
|
||||
<string name="agent_photos_more">Scegli altre foto</string>
|
||||
<string name="agent_photos_empty">Ancora nessuna foto</string>
|
||||
<string name="agent_keyboard">Tastiera</string>
|
||||
<string name="agent_remove_attachment">Rimuovi</string>
|
||||
<string name="agent_model_default">Predefinito</string>
|
||||
<string name="agent_effort">Livello di ragionamento</string>
|
||||
@@ -1302,6 +1307,31 @@
|
||||
<string name="ctrl_size">Dimensione dei tasti</string>
|
||||
<string name="ctrl_adaptive">Levette adattive</string>
|
||||
<string name="ctrl_rumble">Vibrazione di gioco</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">Apri</string>
|
||||
<string name="air_triggers_use">Usa gli Air Triggers</string>
|
||||
<string name="air_triggers_use_hint">Attiva i grilletti dorsali senza il pannello né gli indicatori di RedMagic. Premono invece i pulsanti del layout touch.</string>
|
||||
<string name="air_trigger_left">Air Trigger sinistro</string>
|
||||
<string name="air_trigger_right">Air Trigger destro</string>
|
||||
<string name="air_trigger_button_hint">Salvato per questo layout</string>
|
||||
<string name="air_triggers_vibration">Vibrazione</string>
|
||||
<string name="air_triggers_vibration_hint">Vibra quando tocchi un Air Trigger</string>
|
||||
<string name="air_triggers_screen_light">Effetto luce sullo schermo</string>
|
||||
<string name="air_triggers_screen_light_hint">Illumina il bordo dello schermo sotto un Air Trigger quando lo tocchi</string>
|
||||
<string name="air_triggers_led">Effetti LED d\'atmosfera al tocco</string>
|
||||
<string name="air_triggers_led_off">Spento</string>
|
||||
<string name="air_triggers_led_steady">Fisso</string>
|
||||
<string name="air_triggers_led_pulse">Pulsante</string>
|
||||
<string name="air_trigger_left_action">Azione dell\'Air Trigger sinistro</string>
|
||||
<string name="air_trigger_right_action">Azione dell\'Air Trigger destro</string>
|
||||
<string name="air_trigger_action_tap">Tocco singolo</string>
|
||||
<string name="air_trigger_action_hold">Pressione prolungata</string>
|
||||
<string name="air_trigger_action_rapid">Fuoco rapido</string>
|
||||
<string name="air_trigger_rapid_settings">Impostazioni fuoco rapido</string>
|
||||
<string name="air_trigger_rapid_frequency">Frequenza dei clic</string>
|
||||
<string name="air_trigger_rate_low">Bassa</string>
|
||||
<string name="air_trigger_rate_normal">Normale</string>
|
||||
<string name="air_trigger_rate_high">Alta</string>
|
||||
<string name="ctrl_dead_zone">Zona morta dello stick</string>
|
||||
<string name="ctrl_steam_button">Tasto Steam</string>
|
||||
<string name="ctrl_qam_button">Tasto QAM</string>
|
||||
@@ -2329,7 +2359,8 @@
|
||||
<string name="loadstate_steam_client">Download del client Steam · %1$s</string>
|
||||
<string name="pextra_busy">È già in corso l\'installazione di uno strumento di compatibilità</string>
|
||||
<string name="pextra_stop_session">Interrompi la sessione attiva prima di installare strumenti di compatibilità</string>
|
||||
<string name="pextra_no_release">Impossibile trovare una release ARM64 per %1$s</string>
|
||||
<string name="pextra_no_release">Impossibile trovare una release %2$s per %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</string>
|
||||
<string name="pextra_no_space">Per installare %1$s servono almeno 4 GB liberi più la dimensione del download</string>
|
||||
<string name="pextra_downloading">Download di %1$s %2$s</string>
|
||||
<string name="pextra_retrying">Nuovo tentativo di download · tentativo %1$d di %2$d</string>
|
||||
@@ -4204,4 +4235,6 @@
|
||||
<string name="glasses_shortcut_group">Scorciatoia nel gioco</string>
|
||||
<string name="glasses_show_shortcut">Mostra scorciatoia Smart Glasses</string>
|
||||
<string name="glasses_show_shortcut_hint">Mostra il pulsante mobile Smart Glasses sopra il gioco.</string>
|
||||
<string name="display_filter_game_profile">Profilo %1$s in uso: %2$s</string>
|
||||
<string name="display_filter_default_profile">Profilo predefinito in uso: %1$s</string>
|
||||
</resources>
|
||||
@@ -1165,6 +1165,11 @@
|
||||
<string name="agent_tools_missing">エージェントのツールが未インストール: %1$s</string>
|
||||
<string name="agent_unqueue">送信しない</string>
|
||||
<string name="agent_attach">添付</string>
|
||||
<string name="agent_attach_files">ファイル</string>
|
||||
<string name="agent_photos_allow">写真へのアクセスを許可</string>
|
||||
<string name="agent_photos_more">写真をさらに選択</string>
|
||||
<string name="agent_photos_empty">まだ写真がありません</string>
|
||||
<string name="agent_keyboard">キーボード</string>
|
||||
<string name="agent_remove_attachment">削除</string>
|
||||
<string name="agent_model_default">デフォルト</string>
|
||||
<string name="agent_effort">推論レベル</string>
|
||||
@@ -1298,6 +1303,31 @@
|
||||
<string name="ctrl_size">ボタンのサイズ</string>
|
||||
<string name="ctrl_adaptive">アダプティブスティック</string>
|
||||
<string name="ctrl_rumble">ゲームの振動</string>
|
||||
<string name="air_triggers_title">Redmagic エアトリガー</string>
|
||||
<string name="air_triggers_open">開く</string>
|
||||
<string name="air_triggers_use">エアトリガーを使う</string>
|
||||
<string name="air_triggers_use_hint">RedMagic のトリガーパネルやマーカーを出さずにショルダートリガーをオンにし、タッチレイアウトのボタンを押します。</string>
|
||||
<string name="air_trigger_left">左エアトリガー</string>
|
||||
<string name="air_trigger_right">右エアトリガー</string>
|
||||
<string name="air_trigger_button_hint">このレイアウトに保存されます</string>
|
||||
<string name="air_triggers_vibration">バイブレーション</string>
|
||||
<string name="air_triggers_vibration_hint">エアトリガーに触れると振動します</string>
|
||||
<string name="air_triggers_screen_light">画面のライト効果</string>
|
||||
<string name="air_triggers_screen_light_hint">エアトリガーに触れると、その下の画面の端が光ります</string>
|
||||
<string name="air_triggers_led">タッチ時のアンビエントLED効果</string>
|
||||
<string name="air_triggers_led_off">オフ</string>
|
||||
<string name="air_triggers_led_steady">常時点灯</string>
|
||||
<string name="air_triggers_led_pulse">パルス</string>
|
||||
<string name="air_trigger_left_action">左エアトリガーの動作</string>
|
||||
<string name="air_trigger_right_action">右エアトリガーの動作</string>
|
||||
<string name="air_trigger_action_tap">シングルタップ</string>
|
||||
<string name="air_trigger_action_hold">長押し</string>
|
||||
<string name="air_trigger_action_rapid">連射</string>
|
||||
<string name="air_trigger_rapid_settings">連射の設定</string>
|
||||
<string name="air_trigger_rapid_frequency">クリック頻度</string>
|
||||
<string name="air_trigger_rate_low">低</string>
|
||||
<string name="air_trigger_rate_normal">標準</string>
|
||||
<string name="air_trigger_rate_high">高</string>
|
||||
<string name="ctrl_dead_zone">スティックのデッドゾーン</string>
|
||||
<string name="ctrl_steam_button">Steamボタン</string>
|
||||
<string name="ctrl_qam_button">QAMボタン</string>
|
||||
@@ -2287,7 +2317,8 @@
|
||||
<string name="loadstate_steam_client">Steamクライアントをダウンロード中 · %1$s</string>
|
||||
<string name="pextra_busy">互換性ツールのインストールはすでに実行中です</string>
|
||||
<string name="pextra_stop_session">互換性ツールをインストールする前に、実行中のセッションを停止してください</string>
|
||||
<string name="pextra_no_release">%1$sのARM64リリースが見つかりませんでした</string>
|
||||
<string name="pextra_no_release">%1$sの%2$sリリースが見つかりませんでした</string>
|
||||
<string name="pextra_anticheat">アンチチート</string>
|
||||
<string name="pextra_no_space">%1$sのインストールには、ダウンロードサイズに加えて4GB以上の空き容量が必要です</string>
|
||||
<string name="pextra_downloading">%1$s %2$sをダウンロード中</string>
|
||||
<string name="pextra_retrying">ダウンロードを再試行中 · %1$d / %2$d回目</string>
|
||||
@@ -4135,4 +4166,6 @@
|
||||
<string name="glasses_shortcut_group">ゲーム内ショートカット</string>
|
||||
<string name="glasses_show_shortcut">Smart Glasses のショートカットを表示</string>
|
||||
<string name="glasses_show_shortcut_hint">ゲーム画面上に Smart Glasses のフローティングボタンを表示します。</string>
|
||||
<string name="display_filter_game_profile">%1$s プロファイルを使用中: %2$s</string>
|
||||
<string name="display_filter_default_profile">デフォルトプロファイルを使用中: %1$s</string>
|
||||
</resources>
|
||||
@@ -1165,6 +1165,11 @@
|
||||
<string name="agent_tools_missing">에이전트 도구가 설치되지 않음: %1$s</string>
|
||||
<string name="agent_unqueue">보내지 않기</string>
|
||||
<string name="agent_attach">첨부</string>
|
||||
<string name="agent_attach_files">파일</string>
|
||||
<string name="agent_photos_allow">사진 접근 허용</string>
|
||||
<string name="agent_photos_more">사진 더 선택</string>
|
||||
<string name="agent_photos_empty">아직 사진이 없습니다</string>
|
||||
<string name="agent_keyboard">키보드</string>
|
||||
<string name="agent_remove_attachment">제거</string>
|
||||
<string name="agent_model_default">기본</string>
|
||||
<string name="agent_effort">추론 수준</string>
|
||||
@@ -1298,6 +1303,31 @@
|
||||
<string name="ctrl_size">버튼 크기</string>
|
||||
<string name="ctrl_adaptive">적응형 스틱</string>
|
||||
<string name="ctrl_rumble">게임 진동</string>
|
||||
<string name="air_triggers_title">Redmagic 에어 트리거</string>
|
||||
<string name="air_triggers_open">열기</string>
|
||||
<string name="air_triggers_use">에어 트리거 사용</string>
|
||||
<string name="air_triggers_use_hint">RedMagic 트리거 패널이나 표시 없이 숄더 트리거를 켜고, 대신 터치 레이아웃의 버튼을 누릅니다.</string>
|
||||
<string name="air_trigger_left">왼쪽 에어 트리거</string>
|
||||
<string name="air_trigger_right">오른쪽 에어 트리거</string>
|
||||
<string name="air_trigger_button_hint">이 레이아웃에 저장됨</string>
|
||||
<string name="air_triggers_vibration">진동</string>
|
||||
<string name="air_triggers_vibration_hint">에어 트리거를 터치하면 진동합니다</string>
|
||||
<string name="air_triggers_screen_light">화면 조명 효과</string>
|
||||
<string name="air_triggers_screen_light_hint">에어 트리거를 터치하면 그 아래 화면 가장자리가 밝아집니다</string>
|
||||
<string name="air_triggers_led">터치 분위기 LED 효과</string>
|
||||
<string name="air_triggers_led_off">끄기</string>
|
||||
<string name="air_triggers_led_steady">상시 점등</string>
|
||||
<string name="air_triggers_led_pulse">펄스</string>
|
||||
<string name="air_trigger_left_action">왼쪽 에어 트리거 동작</string>
|
||||
<string name="air_trigger_right_action">오른쪽 에어 트리거 동작</string>
|
||||
<string name="air_trigger_action_tap">한 번 탭</string>
|
||||
<string name="air_trigger_action_hold">길게 누르기</string>
|
||||
<string name="air_trigger_action_rapid">연사</string>
|
||||
<string name="air_trigger_rapid_settings">연사 설정</string>
|
||||
<string name="air_trigger_rapid_frequency">클릭 빈도</string>
|
||||
<string name="air_trigger_rate_low">낮음</string>
|
||||
<string name="air_trigger_rate_normal">보통</string>
|
||||
<string name="air_trigger_rate_high">높음</string>
|
||||
<string name="ctrl_dead_zone">스틱 데드존</string>
|
||||
<string name="ctrl_steam_button">Steam 버튼</string>
|
||||
<string name="ctrl_qam_button">QAM 버튼</string>
|
||||
@@ -2287,7 +2317,8 @@
|
||||
<string name="loadstate_steam_client">Steam 클라이언트 다운로드 중 · %1$s</string>
|
||||
<string name="pextra_busy">호환성 도구를 이미 설치하고 있습니다</string>
|
||||
<string name="pextra_stop_session">호환성 도구를 설치하기 전에 실행 중인 세션을 중지하세요</string>
|
||||
<string name="pextra_no_release">%1$s의 ARM64 릴리스를 찾을 수 없습니다</string>
|
||||
<string name="pextra_no_release">%1$s의 %2$s 릴리스를 찾을 수 없습니다</string>
|
||||
<string name="pextra_anticheat">안티 치트</string>
|
||||
<string name="pextra_no_space">%1$s을(를) 설치하려면 다운로드 크기에 더해 최소 4GB의 여유 공간이 필요합니다</string>
|
||||
<string name="pextra_downloading">%1$s %2$s 다운로드 중</string>
|
||||
<string name="pextra_retrying">다운로드 재시도 중 · %2$d회 중 %1$d번째</string>
|
||||
@@ -4135,4 +4166,6 @@
|
||||
<string name="glasses_shortcut_group">게임 내 바로가기</string>
|
||||
<string name="glasses_show_shortcut">Smart Glasses 바로가기 표시</string>
|
||||
<string name="glasses_show_shortcut_hint">게임 위에 떠 있는 Smart Glasses 버튼을 표시합니다.</string>
|
||||
<string name="display_filter_game_profile">%1$s 프로필 사용 중: %2$s</string>
|
||||
<string name="display_filter_default_profile">기본 프로필 사용 중: %1$s</string>
|
||||
</resources>
|
||||
@@ -1165,6 +1165,11 @@
|
||||
<string name="agent_tools_missing">Alat ejen tidak dipasang: %1$s</string>
|
||||
<string name="agent_unqueue">Jangan hantar</string>
|
||||
<string name="agent_attach">Lampirkan</string>
|
||||
<string name="agent_attach_files">Fail</string>
|
||||
<string name="agent_photos_allow">Benarkan akses foto</string>
|
||||
<string name="agent_photos_more">Pilih lebih banyak foto</string>
|
||||
<string name="agent_photos_empty">Belum ada foto</string>
|
||||
<string name="agent_keyboard">Papan kekunci</string>
|
||||
<string name="agent_remove_attachment">Alih keluar</string>
|
||||
<string name="agent_model_default">Lalai</string>
|
||||
<string name="agent_effort">Usaha penaakulan</string>
|
||||
@@ -1298,6 +1303,31 @@
|
||||
<string name="ctrl_size">Saiz butang</string>
|
||||
<string name="ctrl_adaptive">Stik adaptif</string>
|
||||
<string name="ctrl_rumble">Getaran permainan</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">Buka</string>
|
||||
<string name="air_triggers_use">Guna Air Triggers</string>
|
||||
<string name="air_triggers_use_hint">Menghidupkan pencetus bahu tanpa panel atau penanda pencetus RedMagic. Sebaliknya, ia menekan butang susun atur sentuh.</string>
|
||||
<string name="air_trigger_left">Air Trigger kiri</string>
|
||||
<string name="air_trigger_right">Air Trigger kanan</string>
|
||||
<string name="air_trigger_button_hint">Disimpan untuk susun atur ini</string>
|
||||
<string name="air_triggers_vibration">Getaran</string>
|
||||
<string name="air_triggers_vibration_hint">Bergetar apabila Air Trigger disentuh</string>
|
||||
<string name="air_triggers_screen_light">Kesan cahaya skrin</string>
|
||||
<string name="air_triggers_screen_light_hint">Menyalakan tepi skrin di bawah Air Trigger apabila ia disentuh</string>
|
||||
<string name="air_triggers_led">Kesan LED suasana sentuhan</string>
|
||||
<string name="air_triggers_led_off">Mati</string>
|
||||
<string name="air_triggers_led_steady">Tetap</string>
|
||||
<string name="air_triggers_led_pulse">Denyut</string>
|
||||
<string name="air_trigger_left_action">Tindakan Air Trigger kiri</string>
|
||||
<string name="air_trigger_right_action">Tindakan Air Trigger kanan</string>
|
||||
<string name="air_trigger_action_tap">Ketik sekali</string>
|
||||
<string name="air_trigger_action_hold">Tekan lama</string>
|
||||
<string name="air_trigger_action_rapid">Tembakan pantas</string>
|
||||
<string name="air_trigger_rapid_settings">Tetapan tembakan pantas</string>
|
||||
<string name="air_trigger_rapid_frequency">Kekerapan klik</string>
|
||||
<string name="air_trigger_rate_low">Rendah</string>
|
||||
<string name="air_trigger_rate_normal">Biasa</string>
|
||||
<string name="air_trigger_rate_high">Tinggi</string>
|
||||
<string name="ctrl_dead_zone">Zon mati kayu bedik</string>
|
||||
<string name="ctrl_steam_button">Butang Steam</string>
|
||||
<string name="ctrl_qam_button">Butang QAM</string>
|
||||
@@ -2287,7 +2317,8 @@
|
||||
<string name="loadstate_steam_client">Memuat turun klien Steam · %1$s</string>
|
||||
<string name="pextra_busy">Pemasangan alat keserasian sudah berjalan</string>
|
||||
<string name="pextra_stop_session">Hentikan sesi aktif sebelum memasang alat keserasian</string>
|
||||
<string name="pextra_no_release">Tidak dapat mencari keluaran ARM64 untuk %1$s</string>
|
||||
<string name="pextra_no_release">Tidak dapat mencari keluaran %2$s untuk %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</string>
|
||||
<string name="pextra_no_space">Sekurang-kurangnya 4 GB bebas tambah saiz muat turun diperlukan untuk memasang %1$s</string>
|
||||
<string name="pextra_downloading">Memuat turun %1$s %2$s</string>
|
||||
<string name="pextra_retrying">Mencuba semula muat turun · percubaan %1$d daripada %2$d</string>
|
||||
@@ -4135,4 +4166,6 @@
|
||||
<string name="glasses_shortcut_group">Pintasan dalam permainan</string>
|
||||
<string name="glasses_show_shortcut">Tunjukkan pintasan Smart Glasses</string>
|
||||
<string name="glasses_show_shortcut_hint">Tunjukkan butang Smart Glasses terapung di atas permainan.</string>
|
||||
<string name="display_filter_game_profile">Menggunakan profil %1$s: %2$s</string>
|
||||
<string name="display_filter_default_profile">Menggunakan profil lalai: %1$s</string>
|
||||
</resources>
|
||||
@@ -1168,6 +1168,11 @@
|
||||
<string name="agent_tools_missing">Agentverktøy er ikke installert: %1$s</string>
|
||||
<string name="agent_unqueue">Ikke send</string>
|
||||
<string name="agent_attach">Legg ved</string>
|
||||
<string name="agent_attach_files">Filer</string>
|
||||
<string name="agent_photos_allow">Tillat tilgang til bilder</string>
|
||||
<string name="agent_photos_more">Velg flere bilder</string>
|
||||
<string name="agent_photos_empty">Ingen bilder ennå</string>
|
||||
<string name="agent_keyboard">Tastatur</string>
|
||||
<string name="agent_remove_attachment">Fjern</string>
|
||||
<string name="agent_model_default">Standard</string>
|
||||
<string name="agent_effort">Resonneringsinnsats</string>
|
||||
@@ -1304,6 +1309,31 @@
|
||||
<string name="ctrl_size">Knappestørrelse</string>
|
||||
<string name="ctrl_adaptive">Adaptive stikker</string>
|
||||
<string name="ctrl_rumble">Spillvibrasjon</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">Åpne</string>
|
||||
<string name="air_triggers_use">Bruk Air Triggers</string>
|
||||
<string name="air_triggers_use_hint">Slår på skuldertriggerne uten RedMagics triggerpanel eller markører. De trykker i stedet på knapper i berøringsoppsettet.</string>
|
||||
<string name="air_trigger_left">Venstre Air Trigger</string>
|
||||
<string name="air_trigger_right">Høyre Air Trigger</string>
|
||||
<string name="air_trigger_button_hint">Lagret for dette oppsettet</string>
|
||||
<string name="air_triggers_vibration">Vibrering</string>
|
||||
<string name="air_triggers_vibration_hint">Vibrerer når en Air Trigger berøres</string>
|
||||
<string name="air_triggers_screen_light">Lyseffekt på skjermen</string>
|
||||
<string name="air_triggers_screen_light_hint">Lyser opp skjermkanten under en Air Trigger når den berøres</string>
|
||||
<string name="air_triggers_led">LED-stemningseffekter ved berøring</string>
|
||||
<string name="air_triggers_led_off">Av</string>
|
||||
<string name="air_triggers_led_steady">Konstant</string>
|
||||
<string name="air_triggers_led_pulse">Puls</string>
|
||||
<string name="air_trigger_left_action">Handling for venstre Air Trigger</string>
|
||||
<string name="air_trigger_right_action">Handling for høyre Air Trigger</string>
|
||||
<string name="air_trigger_action_tap">Enkelt trykk</string>
|
||||
<string name="air_trigger_action_hold">Langt trykk</string>
|
||||
<string name="air_trigger_action_rapid">Hurtigskyting</string>
|
||||
<string name="air_trigger_rapid_settings">Innstillinger for hurtigskyting</string>
|
||||
<string name="air_trigger_rapid_frequency">Klikkfrekvens</string>
|
||||
<string name="air_trigger_rate_low">Lav</string>
|
||||
<string name="air_trigger_rate_normal">Normal</string>
|
||||
<string name="air_trigger_rate_high">Høy</string>
|
||||
<string name="ctrl_dead_zone">Dødsone for styrespak</string>
|
||||
<string name="ctrl_steam_button">Steam-knapp</string>
|
||||
<string name="ctrl_qam_button">QAM-knapp</string>
|
||||
@@ -2312,7 +2342,8 @@
|
||||
<string name="loadstate_steam_client">Laster ned Steam-klienten · %1$s</string>
|
||||
<string name="pextra_busy">En installasjon av et kompatibilitetsverktøy kjører allerede</string>
|
||||
<string name="pextra_stop_session">Avslutt den aktive sesjonen før du installerer kompatibilitetsverktøy</string>
|
||||
<string name="pextra_no_release">Fant ingen ARM64-utgivelse for %1$s</string>
|
||||
<string name="pextra_no_release">Fant ingen %2$s-utgivelse for %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-juks</string>
|
||||
<string name="pextra_no_space">Minst 4 GB ledig pluss nedlastingens størrelse er nødvendig for å installere %1$s</string>
|
||||
<string name="pextra_downloading">Laster ned %1$s %2$s</string>
|
||||
<string name="pextra_retrying">Prøver nedlastingen igjen · forsøk %1$d av %2$d</string>
|
||||
@@ -4165,4 +4196,6 @@
|
||||
<string name="glasses_shortcut_group">Snarvei i spillet</string>
|
||||
<string name="glasses_show_shortcut">Vis Smart Glasses-snarvei</string>
|
||||
<string name="glasses_show_shortcut_hint">Vis den flytende Smart Glasses-knappen over spillet.</string>
|
||||
<string name="display_filter_game_profile">Bruker profilen %1$s: %2$s</string>
|
||||
<string name="display_filter_default_profile">Bruker standardprofilen: %1$s</string>
|
||||
</resources>
|
||||
@@ -1168,6 +1168,11 @@
|
||||
<string name="agent_tools_missing">Agenttools niet geïnstalleerd: %1$s</string>
|
||||
<string name="agent_unqueue">Niet verzenden</string>
|
||||
<string name="agent_attach">Bijvoegen</string>
|
||||
<string name="agent_attach_files">Bestanden</string>
|
||||
<string name="agent_photos_allow">Toegang tot foto\'s toestaan</string>
|
||||
<string name="agent_photos_more">Meer foto\'s kiezen</string>
|
||||
<string name="agent_photos_empty">Nog geen foto\'s</string>
|
||||
<string name="agent_keyboard">Toetsenbord</string>
|
||||
<string name="agent_remove_attachment">Verwijderen</string>
|
||||
<string name="agent_model_default">Standaard</string>
|
||||
<string name="agent_effort">Redeneerinspanning</string>
|
||||
@@ -1304,6 +1309,31 @@
|
||||
<string name="ctrl_size">Knopgrootte</string>
|
||||
<string name="ctrl_adaptive">Adaptieve sticks</string>
|
||||
<string name="ctrl_rumble">Trillen in games</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">Openen</string>
|
||||
<string name="air_triggers_use">Air Triggers gebruiken</string>
|
||||
<string name="air_triggers_use_hint">Zet de schoudertriggers aan zonder het triggerpaneel of de markeringen van RedMagic. Ze drukken in plaats daarvan knoppen van de aanraakindeling in.</string>
|
||||
<string name="air_trigger_left">Linker Air Trigger</string>
|
||||
<string name="air_trigger_right">Rechter Air Trigger</string>
|
||||
<string name="air_trigger_button_hint">Opgeslagen voor deze indeling</string>
|
||||
<string name="air_triggers_vibration">Trillen</string>
|
||||
<string name="air_triggers_vibration_hint">Trilt wanneer je een Air Trigger aanraakt</string>
|
||||
<string name="air_triggers_screen_light">Lichteffect op het scherm</string>
|
||||
<string name="air_triggers_screen_light_hint">Laat de schermrand onder een Air Trigger oplichten wanneer je die aanraakt</string>
|
||||
<string name="air_triggers_led">Sfeer-ledeffecten bij aanraken</string>
|
||||
<string name="air_triggers_led_off">Uit</string>
|
||||
<string name="air_triggers_led_steady">Constant</string>
|
||||
<string name="air_triggers_led_pulse">Pulseren</string>
|
||||
<string name="air_trigger_left_action">Actie van linker Air Trigger</string>
|
||||
<string name="air_trigger_right_action">Actie van rechter Air Trigger</string>
|
||||
<string name="air_trigger_action_tap">Eén keer tikken</string>
|
||||
<string name="air_trigger_action_hold">Lang indrukken</string>
|
||||
<string name="air_trigger_action_rapid">Snelvuur</string>
|
||||
<string name="air_trigger_rapid_settings">Instellingen voor snelvuur</string>
|
||||
<string name="air_trigger_rapid_frequency">Klikfrequentie</string>
|
||||
<string name="air_trigger_rate_low">Laag</string>
|
||||
<string name="air_trigger_rate_normal">Normaal</string>
|
||||
<string name="air_trigger_rate_high">Hoog</string>
|
||||
<string name="ctrl_dead_zone">Dode zone van stick</string>
|
||||
<string name="ctrl_steam_button">Steam-knop</string>
|
||||
<string name="ctrl_qam_button">QAM-knop</string>
|
||||
@@ -2312,7 +2342,8 @@
|
||||
<string name="loadstate_steam_client">Steam-client downloaden · %1$s</string>
|
||||
<string name="pextra_busy">Er wordt al een compatibiliteitstool geïnstalleerd</string>
|
||||
<string name="pextra_stop_session">Stop de actieve sessie voordat je compatibiliteitstools installeert</string>
|
||||
<string name="pextra_no_release">Kan geen ARM64-release vinden voor %1$s</string>
|
||||
<string name="pextra_no_release">Kan geen %2$s-release vinden voor %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</string>
|
||||
<string name="pextra_no_space">Om %1$s te installeren is minstens 4 GB vrije ruimte nodig, plus de downloadgrootte</string>
|
||||
<string name="pextra_downloading">%1$s %2$s downloaden</string>
|
||||
<string name="pextra_retrying">Download opnieuw proberen · poging %1$d van %2$d</string>
|
||||
@@ -4165,4 +4196,6 @@
|
||||
<string name="glasses_shortcut_group">Snelkoppeling in game</string>
|
||||
<string name="glasses_show_shortcut">Smart Glasses-snelkoppeling tonen</string>
|
||||
<string name="glasses_show_shortcut_hint">Toon de zwevende Smart Glasses-knop boven het spel.</string>
|
||||
<string name="display_filter_game_profile">Profiel %1$s in gebruik: %2$s</string>
|
||||
<string name="display_filter_default_profile">Standaardprofiel in gebruik: %1$s</string>
|
||||
</resources>
|
||||
@@ -1174,6 +1174,11 @@
|
||||
<string name="agent_tools_missing">Narzędzia agenta nie są zainstalowane: %1$s</string>
|
||||
<string name="agent_unqueue">Nie wysyłaj</string>
|
||||
<string name="agent_attach">Załącz</string>
|
||||
<string name="agent_attach_files">Pliki</string>
|
||||
<string name="agent_photos_allow">Zezwól na dostęp do zdjęć</string>
|
||||
<string name="agent_photos_more">Wybierz więcej zdjęć</string>
|
||||
<string name="agent_photos_empty">Brak zdjęć</string>
|
||||
<string name="agent_keyboard">Klawiatura</string>
|
||||
<string name="agent_remove_attachment">Usuń</string>
|
||||
<string name="agent_model_default">Domyślny</string>
|
||||
<string name="agent_effort">Poziom rozumowania</string>
|
||||
@@ -1318,6 +1323,31 @@
|
||||
<string name="ctrl_size">Rozmiar przycisków</string>
|
||||
<string name="ctrl_adaptive">Adaptacyjne gałki</string>
|
||||
<string name="ctrl_rumble">Wibracje gry</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">Otwórz</string>
|
||||
<string name="air_triggers_use">Używaj Air Triggers</string>
|
||||
<string name="air_triggers_use_hint">Włącza spusty naramienne bez panelu i znaczników RedMagic. Zamiast tego naciskają przyciski układu dotykowego.</string>
|
||||
<string name="air_trigger_left">Lewy Air Trigger</string>
|
||||
<string name="air_trigger_right">Prawy Air Trigger</string>
|
||||
<string name="air_trigger_button_hint">Zapisane dla tego układu</string>
|
||||
<string name="air_triggers_vibration">Wibracje</string>
|
||||
<string name="air_triggers_vibration_hint">Wibruje po dotknięciu Air Triggera</string>
|
||||
<string name="air_triggers_screen_light">Efekt świetlny na ekranie</string>
|
||||
<string name="air_triggers_screen_light_hint">Podświetla krawędź ekranu pod Air Triggerem po jego dotknięciu</string>
|
||||
<string name="air_triggers_led">Efekty LED nastroju przy dotyku</string>
|
||||
<string name="air_triggers_led_off">Wyłączone</string>
|
||||
<string name="air_triggers_led_steady">Stałe</string>
|
||||
<string name="air_triggers_led_pulse">Pulsowanie</string>
|
||||
<string name="air_trigger_left_action">Działanie lewego Air Triggera</string>
|
||||
<string name="air_trigger_right_action">Działanie prawego Air Triggera</string>
|
||||
<string name="air_trigger_action_tap">Pojedyncze dotknięcie</string>
|
||||
<string name="air_trigger_action_hold">Długie naciśnięcie</string>
|
||||
<string name="air_trigger_action_rapid">Szybki ogień</string>
|
||||
<string name="air_trigger_rapid_settings">Ustawienia szybkiego ognia</string>
|
||||
<string name="air_trigger_rapid_frequency">Częstotliwość kliknięć</string>
|
||||
<string name="air_trigger_rate_low">Niska</string>
|
||||
<string name="air_trigger_rate_normal">Normalna</string>
|
||||
<string name="air_trigger_rate_high">Wysoka</string>
|
||||
<string name="ctrl_dead_zone">Martwa strefa drążka</string>
|
||||
<string name="ctrl_steam_button">Przycisk Steam</string>
|
||||
<string name="ctrl_qam_button">Przycisk QAM</string>
|
||||
@@ -2364,7 +2394,8 @@
|
||||
<string name="loadstate_steam_client">Pobieranie klienta Steam · %1$s</string>
|
||||
<string name="pextra_busy">Instalacja narzędzia zgodności już trwa</string>
|
||||
<string name="pextra_stop_session">Zatrzymaj aktywną sesję przed instalacją narzędzi zgodności</string>
|
||||
<string name="pextra_no_release">Nie znaleziono wydania ARM64 dla %1$s</string>
|
||||
<string name="pextra_no_release">Nie znaleziono wydania %2$s dla %1$s</string>
|
||||
<string name="pextra_anticheat">Antycheat</string>
|
||||
<string name="pextra_no_space">Do instalacji %1$s potrzeba co najmniej 4 GB wolnego miejsca plus rozmiar pobierania</string>
|
||||
<string name="pextra_downloading">Pobieranie %1$s %2$s</string>
|
||||
<string name="pextra_retrying">Ponawianie pobierania · próba %1$d z %2$d</string>
|
||||
@@ -4245,4 +4276,6 @@
|
||||
<string name="glasses_shortcut_group">Skrót w grze</string>
|
||||
<string name="glasses_show_shortcut">Pokaż skrót Smart Glasses</string>
|
||||
<string name="glasses_show_shortcut_hint">Pokaż pływający przycisk Smart Glasses nad grą.</string>
|
||||
<string name="display_filter_game_profile">Używany profil %1$s: %2$s</string>
|
||||
<string name="display_filter_default_profile">Używany profil domyślny: %1$s</string>
|
||||
</resources>
|
||||
@@ -1163,6 +1163,11 @@
|
||||
<string name="agent_tools_missing">Ferramentas do agente não instaladas: %1$s</string>
|
||||
<string name="agent_unqueue">Não enviar</string>
|
||||
<string name="agent_attach">Anexar</string>
|
||||
<string name="agent_attach_files">Ficheiros</string>
|
||||
<string name="agent_photos_allow">Permitir acesso às fotos</string>
|
||||
<string name="agent_photos_more">Escolher mais fotos</string>
|
||||
<string name="agent_photos_empty">Ainda não há fotos</string>
|
||||
<string name="agent_keyboard">Teclado</string>
|
||||
<string name="agent_remove_attachment">Remover</string>
|
||||
<string name="agent_model_default">Predefinido</string>
|
||||
<string name="agent_effort">Esforço de raciocínio</string>
|
||||
@@ -1302,6 +1307,31 @@
|
||||
<string name="ctrl_size">Tamanho dos botões</string>
|
||||
<string name="ctrl_adaptive">Analógicos adaptáveis</string>
|
||||
<string name="ctrl_rumble">Vibração do jogo</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">Abrir</string>
|
||||
<string name="air_triggers_use">Utilizar os Air Triggers</string>
|
||||
<string name="air_triggers_use_hint">Liga os gatilhos de ombro sem o painel nem os marcadores da RedMagic. Em vez disso, premem botões do esquema tátil.</string>
|
||||
<string name="air_trigger_left">Air Trigger esquerdo</string>
|
||||
<string name="air_trigger_right">Air Trigger direito</string>
|
||||
<string name="air_trigger_button_hint">Guardado para este esquema</string>
|
||||
<string name="air_triggers_vibration">Vibração</string>
|
||||
<string name="air_triggers_vibration_hint">Vibra quando toca num Air Trigger</string>
|
||||
<string name="air_triggers_screen_light">Efeito de luz no ecrã</string>
|
||||
<string name="air_triggers_screen_light_hint">Ilumina a margem do ecrã por baixo de um Air Trigger quando é tocado</string>
|
||||
<string name="air_triggers_led">Efeitos LED de ambiente ao toque</string>
|
||||
<string name="air_triggers_led_off">Desligado</string>
|
||||
<string name="air_triggers_led_steady">Fixo</string>
|
||||
<string name="air_triggers_led_pulse">Pulsar</string>
|
||||
<string name="air_trigger_left_action">Ação do Air Trigger esquerdo</string>
|
||||
<string name="air_trigger_right_action">Ação do Air Trigger direito</string>
|
||||
<string name="air_trigger_action_tap">Toque único</string>
|
||||
<string name="air_trigger_action_hold">Premir prolongadamente</string>
|
||||
<string name="air_trigger_action_rapid">Disparo rápido</string>
|
||||
<string name="air_trigger_rapid_settings">Definições de disparo rápido</string>
|
||||
<string name="air_trigger_rapid_frequency">Frequência de cliques</string>
|
||||
<string name="air_trigger_rate_low">Baixa</string>
|
||||
<string name="air_trigger_rate_normal">Normal</string>
|
||||
<string name="air_trigger_rate_high">Alta</string>
|
||||
<string name="ctrl_dead_zone">Zona morta do manípulo</string>
|
||||
<string name="ctrl_steam_button">Botão Steam</string>
|
||||
<string name="ctrl_qam_button">Botão QAM</string>
|
||||
@@ -2344,7 +2374,8 @@
|
||||
<string name="loadstate_steam_client">A transferir o cliente Steam · %1$s</string>
|
||||
<string name="pextra_busy">Já está em curso a instalação de uma ferramenta de compatibilidade</string>
|
||||
<string name="pextra_stop_session">Pare a sessão ativa antes de instalar ferramentas de compatibilidade</string>
|
||||
<string name="pextra_no_release">Não foi possível encontrar uma versão ARM64 de %1$s</string>
|
||||
<string name="pextra_no_release">Não foi possível encontrar uma versão %2$s de %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</string>
|
||||
<string name="pextra_no_space">São necessários pelo menos 4 GB livres, mais o tamanho da transferência, para instalar %1$s</string>
|
||||
<string name="pextra_downloading">A transferir %1$s %2$s</string>
|
||||
<string name="pextra_retrying">A repetir a transferência · tentativa %1$d de %2$d</string>
|
||||
@@ -4204,4 +4235,6 @@
|
||||
<string name="glasses_shortcut_group">Atalho no jogo</string>
|
||||
<string name="glasses_show_shortcut">Mostrar atalho do Smart Glasses</string>
|
||||
<string name="glasses_show_shortcut_hint">Mostrar o botão flutuante do Smart Glasses sobre o jogo.</string>
|
||||
<string name="display_filter_game_profile">Perfil %1$s em utilização: %2$s</string>
|
||||
<string name="display_filter_default_profile">Perfil predefinido em utilização: %1$s</string>
|
||||
</resources>
|
||||
@@ -1170,6 +1170,11 @@
|
||||
<string name="agent_tools_missing">Ferramentas do agente não instaladas: %1$s</string>
|
||||
<string name="agent_unqueue">Não enviar</string>
|
||||
<string name="agent_attach">Anexar</string>
|
||||
<string name="agent_attach_files">Arquivos</string>
|
||||
<string name="agent_photos_allow">Permitir acesso às fotos</string>
|
||||
<string name="agent_photos_more">Escolher mais fotos</string>
|
||||
<string name="agent_photos_empty">Ainda não há fotos</string>
|
||||
<string name="agent_keyboard">Teclado</string>
|
||||
<string name="agent_remove_attachment">Remover</string>
|
||||
<string name="agent_model_default">Padrão</string>
|
||||
<string name="agent_effort">Esforço de raciocínio</string>
|
||||
@@ -1310,6 +1315,31 @@
|
||||
<string name="ctrl_size">Tamanho dos botões</string>
|
||||
<string name="ctrl_adaptive">Analógicos adaptáveis</string>
|
||||
<string name="ctrl_rumble">Vibração do jogo</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">Abrir</string>
|
||||
<string name="air_triggers_use">Usar os Air Triggers</string>
|
||||
<string name="air_triggers_use_hint">Liga os gatilhos de ombro sem o painel nem os marcadores da RedMagic. Em vez disso, eles apertam botões do layout de toque.</string>
|
||||
<string name="air_trigger_left">Air Trigger esquerdo</string>
|
||||
<string name="air_trigger_right">Air Trigger direito</string>
|
||||
<string name="air_trigger_button_hint">Salvo para este layout</string>
|
||||
<string name="air_triggers_vibration">Vibração</string>
|
||||
<string name="air_triggers_vibration_hint">Vibra quando um Air Trigger é tocado</string>
|
||||
<string name="air_triggers_screen_light">Efeito de luz na tela</string>
|
||||
<string name="air_triggers_screen_light_hint">Ilumina a borda da tela embaixo de um Air Trigger quando ele é tocado</string>
|
||||
<string name="air_triggers_led">Efeitos de LED de ambiente ao toque</string>
|
||||
<string name="air_triggers_led_off">Desligado</string>
|
||||
<string name="air_triggers_led_steady">Fixo</string>
|
||||
<string name="air_triggers_led_pulse">Pulsar</string>
|
||||
<string name="air_trigger_left_action">Ação do Air Trigger esquerdo</string>
|
||||
<string name="air_trigger_right_action">Ação do Air Trigger direito</string>
|
||||
<string name="air_trigger_action_tap">Toque único</string>
|
||||
<string name="air_trigger_action_hold">Toque longo</string>
|
||||
<string name="air_trigger_action_rapid">Disparo rápido</string>
|
||||
<string name="air_trigger_rapid_settings">Configurações de disparo rápido</string>
|
||||
<string name="air_trigger_rapid_frequency">Frequência de cliques</string>
|
||||
<string name="air_trigger_rate_low">Baixa</string>
|
||||
<string name="air_trigger_rate_normal">Normal</string>
|
||||
<string name="air_trigger_rate_high">Alta</string>
|
||||
<string name="ctrl_dead_zone">Zona morta do analógico</string>
|
||||
<string name="ctrl_steam_button">Botão Steam</string>
|
||||
<string name="ctrl_qam_button">Botão QAM</string>
|
||||
@@ -2352,7 +2382,8 @@
|
||||
<string name="loadstate_steam_client">Baixando o cliente Steam · %1$s</string>
|
||||
<string name="pextra_busy">Já há uma instalação de ferramenta de compatibilidade em andamento</string>
|
||||
<string name="pextra_stop_session">Pare a sessão ativa antes de instalar ferramentas de compatibilidade</string>
|
||||
<string name="pextra_no_release">Não foi possível encontrar uma versão ARM64 de %1$s</string>
|
||||
<string name="pextra_no_release">Não foi possível encontrar uma versão %2$s de %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</string>
|
||||
<string name="pextra_no_space">É preciso ter pelo menos 4 GB livres, além do tamanho do download, para instalar %1$s</string>
|
||||
<string name="pextra_downloading">Baixando %1$s %2$s</string>
|
||||
<string name="pextra_retrying">Tentando baixar de novo · tentativa %1$d de %2$d</string>
|
||||
@@ -4212,4 +4243,6 @@
|
||||
<string name="glasses_shortcut_group">Atalho durante o jogo</string>
|
||||
<string name="glasses_show_shortcut">Mostrar atalho do Smart Glasses</string>
|
||||
<string name="glasses_show_shortcut_hint">Mostrar o botão flutuante do Smart Glasses sobre o jogo.</string>
|
||||
<string name="display_filter_game_profile">Perfil %1$s em uso: %2$s</string>
|
||||
<string name="display_filter_default_profile">Perfil predefinido em uso: %1$s</string>
|
||||
</resources>
|
||||
@@ -1171,6 +1171,11 @@
|
||||
<string name="agent_tools_missing">Instrumentele agentului nu sunt instalate: %1$s</string>
|
||||
<string name="agent_unqueue">Nu trimite</string>
|
||||
<string name="agent_attach">Atașează</string>
|
||||
<string name="agent_attach_files">Fișiere</string>
|
||||
<string name="agent_photos_allow">Permite accesul la fotografii</string>
|
||||
<string name="agent_photos_more">Alege mai multe fotografii</string>
|
||||
<string name="agent_photos_empty">Încă nu există fotografii</string>
|
||||
<string name="agent_keyboard">Tastatură</string>
|
||||
<string name="agent_remove_attachment">Elimină</string>
|
||||
<string name="agent_model_default">Implicit</string>
|
||||
<string name="agent_effort">Efort de raționament</string>
|
||||
@@ -1311,6 +1316,31 @@
|
||||
<string name="ctrl_size">Dimensiunea butoanelor</string>
|
||||
<string name="ctrl_adaptive">Manșe adaptive</string>
|
||||
<string name="ctrl_rumble">Vibrații de joc</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">Deschide</string>
|
||||
<string name="air_triggers_use">Folosește Air Triggers</string>
|
||||
<string name="air_triggers_use_hint">Pornește triggerele de umăr fără panoul sau marcajele RedMagic. În schimb, ele apasă butoane din aranjamentul tactil.</string>
|
||||
<string name="air_trigger_left">Air Trigger stâng</string>
|
||||
<string name="air_trigger_right">Air Trigger drept</string>
|
||||
<string name="air_trigger_button_hint">Salvat pentru acest aranjament</string>
|
||||
<string name="air_triggers_vibration">Vibrație</string>
|
||||
<string name="air_triggers_vibration_hint">Vibrează când atingi un Air Trigger</string>
|
||||
<string name="air_triggers_screen_light">Efect de lumină pe ecran</string>
|
||||
<string name="air_triggers_screen_light_hint">Luminează marginea ecranului de sub un Air Trigger când îl atingi</string>
|
||||
<string name="air_triggers_led">Efecte LED de atmosferă la atingere</string>
|
||||
<string name="air_triggers_led_off">Oprit</string>
|
||||
<string name="air_triggers_led_steady">Constant</string>
|
||||
<string name="air_triggers_led_pulse">Puls</string>
|
||||
<string name="air_trigger_left_action">Acțiunea Air Trigger-ului stâng</string>
|
||||
<string name="air_trigger_right_action">Acțiunea Air Trigger-ului drept</string>
|
||||
<string name="air_trigger_action_tap">Atingere simplă</string>
|
||||
<string name="air_trigger_action_hold">Apăsare lungă</string>
|
||||
<string name="air_trigger_action_rapid">Foc rapid</string>
|
||||
<string name="air_trigger_rapid_settings">Setări foc rapid</string>
|
||||
<string name="air_trigger_rapid_frequency">Frecvența clicurilor</string>
|
||||
<string name="air_trigger_rate_low">Scăzută</string>
|
||||
<string name="air_trigger_rate_normal">Normală</string>
|
||||
<string name="air_trigger_rate_high">Ridicată</string>
|
||||
<string name="ctrl_dead_zone">Zonă moartă a manetei</string>
|
||||
<string name="ctrl_steam_button">Butonul Steam</string>
|
||||
<string name="ctrl_qam_button">Butonul QAM</string>
|
||||
@@ -2338,7 +2368,8 @@
|
||||
<string name="loadstate_steam_client">Se descarcă clientul Steam · %1$s</string>
|
||||
<string name="pextra_busy">O instalare a unui instrument de compatibilitate este deja în curs</string>
|
||||
<string name="pextra_stop_session">Oprește sesiunea activă înainte de a instala instrumente de compatibilitate</string>
|
||||
<string name="pextra_no_release">Nu s-a găsit o versiune ARM64 pentru %1$s</string>
|
||||
<string name="pextra_no_release">Nu s-a găsit o versiune %2$s pentru %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</string>
|
||||
<string name="pextra_no_space">Este necesar cel puțin 4 GB liber, plus dimensiunea descărcării, pentru a instala %1$s</string>
|
||||
<string name="pextra_downloading">Se descarcă %1$s %2$s</string>
|
||||
<string name="pextra_retrying">Se reîncearcă descărcarea · tentativa %1$d din %2$d</string>
|
||||
@@ -4205,4 +4236,6 @@
|
||||
<string name="glasses_shortcut_group">Comandă rapidă în joc</string>
|
||||
<string name="glasses_show_shortcut">Afișează comanda rapidă Smart Glasses</string>
|
||||
<string name="glasses_show_shortcut_hint">Afișează butonul plutitor Smart Glasses peste joc.</string>
|
||||
<string name="display_filter_game_profile">Se folosește profilul %1$s: %2$s</string>
|
||||
<string name="display_filter_default_profile">Se folosește profilul implicit: %1$s</string>
|
||||
</resources>
|
||||
@@ -1174,6 +1174,11 @@
|
||||
<string name="agent_tools_missing">Инструменты агента не установлены: %1$s</string>
|
||||
<string name="agent_unqueue">Не отправлять</string>
|
||||
<string name="agent_attach">Прикрепить</string>
|
||||
<string name="agent_attach_files">Файлы</string>
|
||||
<string name="agent_photos_allow">Разрешить доступ к фото</string>
|
||||
<string name="agent_photos_more">Выбрать ещё фото</string>
|
||||
<string name="agent_photos_empty">Пока нет фото</string>
|
||||
<string name="agent_keyboard">Клавиатура</string>
|
||||
<string name="agent_remove_attachment">Удалить</string>
|
||||
<string name="agent_model_default">По умолчанию</string>
|
||||
<string name="agent_effort">Уровень рассуждений</string>
|
||||
@@ -1318,6 +1323,31 @@
|
||||
<string name="ctrl_size">Размер кнопок</string>
|
||||
<string name="ctrl_adaptive">Адаптивные стики</string>
|
||||
<string name="ctrl_rumble">Вибрация в играх</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">Открыть</string>
|
||||
<string name="air_triggers_use">Использовать Air Triggers</string>
|
||||
<string name="air_triggers_use_hint">Включает плечевые триггеры без панели и меток RedMagic. Вместо этого они нажимают кнопки сенсорной раскладки.</string>
|
||||
<string name="air_trigger_left">Левый Air Trigger</string>
|
||||
<string name="air_trigger_right">Правый Air Trigger</string>
|
||||
<string name="air_trigger_button_hint">Сохраняется для этой раскладки</string>
|
||||
<string name="air_triggers_vibration">Вибрация</string>
|
||||
<string name="air_triggers_vibration_hint">Вибрирует при касании Air Trigger</string>
|
||||
<string name="air_triggers_screen_light">Световой эффект на экране</string>
|
||||
<string name="air_triggers_screen_light_hint">Подсвечивает край экрана под Air Trigger при касании</string>
|
||||
<string name="air_triggers_led">LED-эффекты атмосферы при касании</string>
|
||||
<string name="air_triggers_led_off">Выкл.</string>
|
||||
<string name="air_triggers_led_steady">Постоянный</string>
|
||||
<string name="air_triggers_led_pulse">Пульсация</string>
|
||||
<string name="air_trigger_left_action">Действие левого Air Trigger</string>
|
||||
<string name="air_trigger_right_action">Действие правого Air Trigger</string>
|
||||
<string name="air_trigger_action_tap">Одно нажатие</string>
|
||||
<string name="air_trigger_action_hold">Долгое нажатие</string>
|
||||
<string name="air_trigger_action_rapid">Быстрая стрельба</string>
|
||||
<string name="air_trigger_rapid_settings">Настройки быстрой стрельбы</string>
|
||||
<string name="air_trigger_rapid_frequency">Частота нажатий</string>
|
||||
<string name="air_trigger_rate_low">Низкая</string>
|
||||
<string name="air_trigger_rate_normal">Обычная</string>
|
||||
<string name="air_trigger_rate_high">Высокая</string>
|
||||
<string name="ctrl_dead_zone">Мёртвая зона стика</string>
|
||||
<string name="ctrl_steam_button">Кнопка Steam</string>
|
||||
<string name="ctrl_qam_button">Кнопка QAM</string>
|
||||
@@ -2365,7 +2395,8 @@
|
||||
<string name="loadstate_steam_client">Загрузка клиента Steam · %1$s</string>
|
||||
<string name="pextra_busy">Инструмент совместимости уже устанавливается</string>
|
||||
<string name="pextra_stop_session">Остановите текущую сессию перед установкой инструментов совместимости</string>
|
||||
<string name="pextra_no_release">Не найден выпуск %1$s для ARM64</string>
|
||||
<string name="pextra_no_release">Не найден выпуск %1$s для %2$s</string>
|
||||
<string name="pextra_anticheat">Античит</string>
|
||||
<string name="pextra_no_space">Для установки %1$s нужно не менее 4 ГБ свободного места плюс размер загрузки</string>
|
||||
<string name="pextra_downloading">Загрузка %1$s %2$s</string>
|
||||
<string name="pextra_retrying">Повторная загрузка · попытка %1$d из %2$d</string>
|
||||
@@ -4246,4 +4277,6 @@
|
||||
<string name="glasses_shortcut_group">Ярлык в игре</string>
|
||||
<string name="glasses_show_shortcut">Показывать ярлык Smart Glasses</string>
|
||||
<string name="glasses_show_shortcut_hint">Показывать плавающую кнопку Smart Glasses поверх игры.</string>
|
||||
<string name="display_filter_game_profile">Используется профиль %1$s: %2$s</string>
|
||||
<string name="display_filter_default_profile">Используется профиль по умолчанию: %1$s</string>
|
||||
</resources>
|
||||
@@ -1168,6 +1168,11 @@
|
||||
<string name="agent_tools_missing">Agentens verktyg är inte installerade: %1$s</string>
|
||||
<string name="agent_unqueue">Skicka inte</string>
|
||||
<string name="agent_attach">Bifoga</string>
|
||||
<string name="agent_attach_files">Filer</string>
|
||||
<string name="agent_photos_allow">Tillåt åtkomst till bilder</string>
|
||||
<string name="agent_photos_more">Välj fler bilder</string>
|
||||
<string name="agent_photos_empty">Inga bilder än</string>
|
||||
<string name="agent_keyboard">Tangentbord</string>
|
||||
<string name="agent_remove_attachment">Ta bort</string>
|
||||
<string name="agent_model_default">Standard</string>
|
||||
<string name="agent_effort">Resonemangsnivå</string>
|
||||
@@ -1304,6 +1309,31 @@
|
||||
<string name="ctrl_size">Knappstorlek</string>
|
||||
<string name="ctrl_adaptive">Adaptiva spakar</string>
|
||||
<string name="ctrl_rumble">Spelvibration</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">Öppna</string>
|
||||
<string name="air_triggers_use">Använd Air Triggers</string>
|
||||
<string name="air_triggers_use_hint">Slår på axelavtryckarna utan RedMagics avtryckarpanel eller markeringar. De trycker i stället på knappar i pekskärmslayouten.</string>
|
||||
<string name="air_trigger_left">Vänster Air Trigger</string>
|
||||
<string name="air_trigger_right">Höger Air Trigger</string>
|
||||
<string name="air_trigger_button_hint">Sparas för den här layouten</string>
|
||||
<string name="air_triggers_vibration">Vibration</string>
|
||||
<string name="air_triggers_vibration_hint">Vibrerar när en Air Trigger vidrörs</string>
|
||||
<string name="air_triggers_screen_light">Ljuseffekt på skärmen</string>
|
||||
<string name="air_triggers_screen_light_hint">Lyser upp skärmkanten under en Air Trigger när den vidrörs</string>
|
||||
<string name="air_triggers_led">LED-stämningseffekter vid beröring</string>
|
||||
<string name="air_triggers_led_off">Av</string>
|
||||
<string name="air_triggers_led_steady">Fast</string>
|
||||
<string name="air_triggers_led_pulse">Puls</string>
|
||||
<string name="air_trigger_left_action">Åtgärd för vänster Air Trigger</string>
|
||||
<string name="air_trigger_right_action">Åtgärd för höger Air Trigger</string>
|
||||
<string name="air_trigger_action_tap">Enkeltryck</string>
|
||||
<string name="air_trigger_action_hold">Långt tryck</string>
|
||||
<string name="air_trigger_action_rapid">Snabbeld</string>
|
||||
<string name="air_trigger_rapid_settings">Inställningar för snabbeld</string>
|
||||
<string name="air_trigger_rapid_frequency">Klickfrekvens</string>
|
||||
<string name="air_trigger_rate_low">Låg</string>
|
||||
<string name="air_trigger_rate_normal">Normal</string>
|
||||
<string name="air_trigger_rate_high">Hög</string>
|
||||
<string name="ctrl_dead_zone">Styrspakens dödzon</string>
|
||||
<string name="ctrl_steam_button">Steam-knappen</string>
|
||||
<string name="ctrl_qam_button">QAM-knappen</string>
|
||||
@@ -2312,7 +2342,8 @@
|
||||
<string name="loadstate_steam_client">Laddar ned Steam-klienten · %1$s</string>
|
||||
<string name="pextra_busy">En installation av ett kompatibilitetsverktyg pågår redan</string>
|
||||
<string name="pextra_stop_session">Stoppa den aktiva sessionen innan du installerar kompatibilitetsverktyg</string>
|
||||
<string name="pextra_no_release">Kunde inte hitta en ARM64-utgåva av %1$s</string>
|
||||
<string name="pextra_no_release">Kunde inte hitta en %2$s-utgåva av %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</string>
|
||||
<string name="pextra_no_space">Minst 4 GB ledigt utrymme plus nedladdningens storlek krävs för att installera %1$s</string>
|
||||
<string name="pextra_downloading">Laddar ned %1$s %2$s</string>
|
||||
<string name="pextra_retrying">Försöker ladda ned igen · försök %1$d av %2$d</string>
|
||||
@@ -4165,4 +4196,6 @@
|
||||
<string name="glasses_shortcut_group">Genväg i spelet</string>
|
||||
<string name="glasses_show_shortcut">Visa Smart Glasses-genväg</string>
|
||||
<string name="glasses_show_shortcut_hint">Visa den flytande Smart Glasses-knappen ovanpå spelet.</string>
|
||||
<string name="display_filter_game_profile">Använder profilen %1$s: %2$s</string>
|
||||
<string name="display_filter_default_profile">Använder standardprofilen: %1$s</string>
|
||||
</resources>
|
||||
@@ -1165,6 +1165,11 @@
|
||||
<string name="agent_tools_missing">ยังไม่ได้ติดตั้งเครื่องมือของเอเจนต์: %1$s</string>
|
||||
<string name="agent_unqueue">ไม่ต้องส่ง</string>
|
||||
<string name="agent_attach">แนบ</string>
|
||||
<string name="agent_attach_files">ไฟล์</string>
|
||||
<string name="agent_photos_allow">อนุญาตให้เข้าถึงรูปภาพ</string>
|
||||
<string name="agent_photos_more">เลือกรูปภาพเพิ่ม</string>
|
||||
<string name="agent_photos_empty">ยังไม่มีรูปภาพ</string>
|
||||
<string name="agent_keyboard">แป้นพิมพ์</string>
|
||||
<string name="agent_remove_attachment">นำออก</string>
|
||||
<string name="agent_model_default">ค่าเริ่มต้น</string>
|
||||
<string name="agent_effort">ระดับการใช้เหตุผล</string>
|
||||
@@ -1298,6 +1303,31 @@
|
||||
<string name="ctrl_size">ขนาดปุ่ม</string>
|
||||
<string name="ctrl_adaptive">สติ๊กแบบปรับอัตโนมัติ</string>
|
||||
<string name="ctrl_rumble">การสั่นของเกม</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">เปิด</string>
|
||||
<string name="air_triggers_use">ใช้ Air Triggers</string>
|
||||
<string name="air_triggers_use_hint">เปิดทริกเกอร์ไหล่โดยไม่แสดงแผงทริกเกอร์หรือเครื่องหมายของ RedMagic และให้กดปุ่มในการจัดวางแบบสัมผัสแทน</string>
|
||||
<string name="air_trigger_left">Air Trigger ซ้าย</string>
|
||||
<string name="air_trigger_right">Air Trigger ขวา</string>
|
||||
<string name="air_trigger_button_hint">บันทึกไว้สำหรับการจัดวางนี้</string>
|
||||
<string name="air_triggers_vibration">การสั่น</string>
|
||||
<string name="air_triggers_vibration_hint">สั่นเมื่อแตะ Air Trigger</string>
|
||||
<string name="air_triggers_screen_light">เอฟเฟกต์แสงบนหน้าจอ</string>
|
||||
<string name="air_triggers_screen_light_hint">ทำให้ขอบหน้าจอใต้ Air Trigger สว่างขึ้นเมื่อแตะ</string>
|
||||
<string name="air_triggers_led">เอฟเฟกต์ไฟ LED บรรยากาศเมื่อแตะ</string>
|
||||
<string name="air_triggers_led_off">ปิด</string>
|
||||
<string name="air_triggers_led_steady">ติดค้าง</string>
|
||||
<string name="air_triggers_led_pulse">กะพริบเป็นจังหวะ</string>
|
||||
<string name="air_trigger_left_action">การทำงานของ Air Trigger ซ้าย</string>
|
||||
<string name="air_trigger_right_action">การทำงานของ Air Trigger ขวา</string>
|
||||
<string name="air_trigger_action_tap">แตะครั้งเดียว</string>
|
||||
<string name="air_trigger_action_hold">กดค้าง</string>
|
||||
<string name="air_trigger_action_rapid">ยิงรัว</string>
|
||||
<string name="air_trigger_rapid_settings">การตั้งค่ายิงรัว</string>
|
||||
<string name="air_trigger_rapid_frequency">ความถี่ในการคลิก</string>
|
||||
<string name="air_trigger_rate_low">ต่ำ</string>
|
||||
<string name="air_trigger_rate_normal">ปกติ</string>
|
||||
<string name="air_trigger_rate_high">สูง</string>
|
||||
<string name="ctrl_dead_zone">เดดโซนของแอนะล็อกสติ๊ก</string>
|
||||
<string name="ctrl_steam_button">ปุ่ม Steam</string>
|
||||
<string name="ctrl_qam_button">ปุ่ม QAM</string>
|
||||
@@ -2287,7 +2317,8 @@
|
||||
<string name="loadstate_steam_client">กำลังดาวน์โหลดไคลเอนต์ Steam · %1$s</string>
|
||||
<string name="pextra_busy">มีการติดตั้งเครื่องมือความเข้ากันได้อื่นกำลังทำงานอยู่แล้ว</string>
|
||||
<string name="pextra_stop_session">หยุดเซสชันที่กำลังทำงานก่อนติดตั้งเครื่องมือความเข้ากันได้</string>
|
||||
<string name="pextra_no_release">ไม่พบรุ่นที่เผยแพร่แบบ ARM64 สำหรับ %1$s</string>
|
||||
<string name="pextra_no_release">ไม่พบรุ่นที่เผยแพร่แบบ %2$s สำหรับ %1$s</string>
|
||||
<string name="pextra_anticheat">ระบบป้องกันการโกง</string>
|
||||
<string name="pextra_no_space">ต้องมีพื้นที่ว่างอย่างน้อย 4 GB รวมกับขนาดดาวน์โหลดเพื่อติดตั้ง %1$s</string>
|
||||
<string name="pextra_downloading">กำลังดาวน์โหลด %1$s %2$s</string>
|
||||
<string name="pextra_retrying">กำลังลองดาวน์โหลดใหม่ · ครั้งที่ %1$d จาก %2$d</string>
|
||||
@@ -4135,4 +4166,6 @@
|
||||
<string name="glasses_shortcut_group">ทางลัดในเกม</string>
|
||||
<string name="glasses_show_shortcut">แสดงทางลัด Smart Glasses</string>
|
||||
<string name="glasses_show_shortcut_hint">แสดงปุ่ม Smart Glasses แบบลอยทับบนเกม</string>
|
||||
<string name="display_filter_game_profile">ใช้โปรไฟล์ %1$s: %2$s</string>
|
||||
<string name="display_filter_default_profile">ใช้โปรไฟล์เริ่มต้น: %1$s</string>
|
||||
</resources>
|
||||
@@ -1160,6 +1160,11 @@
|
||||
<string name="agent_tools_missing">Ajan araçları yüklenmedi: %1$s</string>
|
||||
<string name="agent_unqueue">Gönderme</string>
|
||||
<string name="agent_attach">Ekle</string>
|
||||
<string name="agent_attach_files">Dosyalar</string>
|
||||
<string name="agent_photos_allow">Fotoğraflara erişime izin ver</string>
|
||||
<string name="agent_photos_more">Daha fazla fotoğraf seç</string>
|
||||
<string name="agent_photos_empty">Henüz fotoğraf yok</string>
|
||||
<string name="agent_keyboard">Klavye</string>
|
||||
<string name="agent_remove_attachment">Kaldır</string>
|
||||
<string name="agent_model_default">Varsayılan</string>
|
||||
<string name="agent_effort">Akıl yürütme çabası</string>
|
||||
@@ -1296,6 +1301,31 @@
|
||||
<string name="ctrl_size">Düğme boyutu</string>
|
||||
<string name="ctrl_adaptive">Uyarlanabilir çubuklar</string>
|
||||
<string name="ctrl_rumble">Oyun titreşimi</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">Aç</string>
|
||||
<string name="air_triggers_use">Air Triggers kullan</string>
|
||||
<string name="air_triggers_use_hint">Omuz tetiklerini RedMagic tetik paneli veya işaretleri olmadan açar. Bunun yerine dokunmatik düzenin düğmelerine basarlar.</string>
|
||||
<string name="air_trigger_left">Sol Air Trigger</string>
|
||||
<string name="air_trigger_right">Sağ Air Trigger</string>
|
||||
<string name="air_trigger_button_hint">Bu düzen için kaydedilir</string>
|
||||
<string name="air_triggers_vibration">Titreşim</string>
|
||||
<string name="air_triggers_vibration_hint">Bir Air Trigger\'a dokunulduğunda titrer</string>
|
||||
<string name="air_triggers_screen_light">Ekran ışık efekti</string>
|
||||
<string name="air_triggers_screen_light_hint">Bir Air Trigger\'a dokunulduğunda altındaki ekran kenarını aydınlatır</string>
|
||||
<string name="air_triggers_led">Dokunma atmosfer LED efektleri</string>
|
||||
<string name="air_triggers_led_off">Kapalı</string>
|
||||
<string name="air_triggers_led_steady">Sabit</string>
|
||||
<string name="air_triggers_led_pulse">Nabız</string>
|
||||
<string name="air_trigger_left_action">Sol Air Trigger işlemi</string>
|
||||
<string name="air_trigger_right_action">Sağ Air Trigger işlemi</string>
|
||||
<string name="air_trigger_action_tap">Tek dokunma</string>
|
||||
<string name="air_trigger_action_hold">Uzun basma</string>
|
||||
<string name="air_trigger_action_rapid">Hızlı ateş</string>
|
||||
<string name="air_trigger_rapid_settings">Hızlı ateş ayarları</string>
|
||||
<string name="air_trigger_rapid_frequency">Tıklama sıklığı</string>
|
||||
<string name="air_trigger_rate_low">Düşük</string>
|
||||
<string name="air_trigger_rate_normal">Normal</string>
|
||||
<string name="air_trigger_rate_high">Yüksek</string>
|
||||
<string name="ctrl_dead_zone">Çubuk ölü bölgesi</string>
|
||||
<string name="ctrl_steam_button">Steam düğmesi</string>
|
||||
<string name="ctrl_qam_button">QAM düğmesi</string>
|
||||
@@ -2304,7 +2334,8 @@
|
||||
<string name="loadstate_steam_client">Steam istemcisi indiriliyor · %1$s</string>
|
||||
<string name="pextra_busy">Zaten çalışan bir uyumluluk aracı yüklemesi var</string>
|
||||
<string name="pextra_stop_session">Uyumluluk araçlarını yüklemeden önce etkin oturumu durdurun</string>
|
||||
<string name="pextra_no_release">%1$s için bir ARM64 yayını bulunamadı</string>
|
||||
<string name="pextra_no_release">%1$s için bir %2$s yayını bulunamadı</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</string>
|
||||
<string name="pextra_no_space">%1$s\'i yüklemek için indirme boyutuna ek olarak en az 4 GB boş alan gerekir</string>
|
||||
<string name="pextra_downloading">%1$s %2$s indiriliyor</string>
|
||||
<string name="pextra_retrying">İndirme yeniden deneniyor · %2$d denemenin %1$d\'i</string>
|
||||
@@ -4165,4 +4196,6 @@
|
||||
<string name="glasses_shortcut_group">Oyun içi kısayol</string>
|
||||
<string name="glasses_show_shortcut">Smart Glasses kısayolunu göster</string>
|
||||
<string name="glasses_show_shortcut_hint">Oyun üzerinde yüzen Smart Glasses düğmesini göster.</string>
|
||||
<string name="display_filter_game_profile">%1$s profili kullanılıyor: %2$s</string>
|
||||
<string name="display_filter_default_profile">Varsayılan profil kullanılıyor: %1$s</string>
|
||||
</resources>
|
||||
@@ -1174,6 +1174,11 @@
|
||||
<string name="agent_tools_missing">Інструменти агента не встановлено: %1$s</string>
|
||||
<string name="agent_unqueue">Не надсилати</string>
|
||||
<string name="agent_attach">Прикріпити</string>
|
||||
<string name="agent_attach_files">Файли</string>
|
||||
<string name="agent_photos_allow">Дозволити доступ до фото</string>
|
||||
<string name="agent_photos_more">Вибрати ще фото</string>
|
||||
<string name="agent_photos_empty">Поки немає фото</string>
|
||||
<string name="agent_keyboard">Клавіатура</string>
|
||||
<string name="agent_remove_attachment">Видалити</string>
|
||||
<string name="agent_model_default">За замовчуванням</string>
|
||||
<string name="agent_effort">Рівень міркувань</string>
|
||||
@@ -1318,6 +1323,31 @@
|
||||
<string name="ctrl_size">Розмір кнопок</string>
|
||||
<string name="ctrl_adaptive">Адаптивні стики</string>
|
||||
<string name="ctrl_rumble">Вібрація гри</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">Відкрити</string>
|
||||
<string name="air_triggers_use">Використовувати Air Triggers</string>
|
||||
<string name="air_triggers_use_hint">Вмикає плечові тригери без панелі та міток RedMagic. Натомість вони натискають кнопки сенсорної розкладки.</string>
|
||||
<string name="air_trigger_left">Лівий Air Trigger</string>
|
||||
<string name="air_trigger_right">Правий Air Trigger</string>
|
||||
<string name="air_trigger_button_hint">Зберігається для цієї розкладки</string>
|
||||
<string name="air_triggers_vibration">Вібрація</string>
|
||||
<string name="air_triggers_vibration_hint">Вібрує під час дотику до Air Trigger</string>
|
||||
<string name="air_triggers_screen_light">Світловий ефект на екрані</string>
|
||||
<string name="air_triggers_screen_light_hint">Підсвічує край екрана під Air Trigger під час дотику</string>
|
||||
<string name="air_triggers_led">LED-ефекти атмосфери під час дотику</string>
|
||||
<string name="air_triggers_led_off">Вимк.</string>
|
||||
<string name="air_triggers_led_steady">Постійно</string>
|
||||
<string name="air_triggers_led_pulse">Пульсація</string>
|
||||
<string name="air_trigger_left_action">Дія лівого Air Trigger</string>
|
||||
<string name="air_trigger_right_action">Дія правого Air Trigger</string>
|
||||
<string name="air_trigger_action_tap">Одне торкання</string>
|
||||
<string name="air_trigger_action_hold">Довге натискання</string>
|
||||
<string name="air_trigger_action_rapid">Швидка стрільба</string>
|
||||
<string name="air_trigger_rapid_settings">Налаштування швидкої стрільби</string>
|
||||
<string name="air_trigger_rapid_frequency">Частота натискань</string>
|
||||
<string name="air_trigger_rate_low">Низька</string>
|
||||
<string name="air_trigger_rate_normal">Звичайна</string>
|
||||
<string name="air_trigger_rate_high">Висока</string>
|
||||
<string name="ctrl_dead_zone">Мертва зона стіка</string>
|
||||
<string name="ctrl_steam_button">Кнопка Steam</string>
|
||||
<string name="ctrl_qam_button">Кнопка QAM</string>
|
||||
@@ -2364,7 +2394,8 @@
|
||||
<string name="loadstate_steam_client">Завантаження клієнта Steam · %1$s</string>
|
||||
<string name="pextra_busy">Встановлення інструмента сумісності вже триває</string>
|
||||
<string name="pextra_stop_session">Зупиніть активний сеанс, перш ніж встановлювати інструменти сумісності</string>
|
||||
<string name="pextra_no_release">Не вдалося знайти випуск ARM64 для %1$s</string>
|
||||
<string name="pextra_no_release">Не вдалося знайти випуск %2$s для %1$s</string>
|
||||
<string name="pextra_anticheat">Античит</string>
|
||||
<string name="pextra_no_space">Щоб встановити %1$s, потрібно щонайменше 4 GB вільного місця плюс розмір завантаження</string>
|
||||
<string name="pextra_downloading">Завантаження %1$s %2$s</string>
|
||||
<string name="pextra_retrying">Повтор завантаження · спроба %1$d з %2$d</string>
|
||||
@@ -4245,4 +4276,6 @@
|
||||
<string name="glasses_shortcut_group">Ярлик у грі</string>
|
||||
<string name="glasses_show_shortcut">Показувати ярлик Smart Glasses</string>
|
||||
<string name="glasses_show_shortcut_hint">Показувати плаваючу кнопку Smart Glasses поверх гри.</string>
|
||||
<string name="display_filter_game_profile">Використовується профіль %1$s: %2$s</string>
|
||||
<string name="display_filter_default_profile">Використовується профіль за замовчуванням: %1$s</string>
|
||||
</resources>
|
||||
@@ -1165,6 +1165,11 @@
|
||||
<string name="agent_tools_missing">Chưa cài công cụ của tác tử: %1$s</string>
|
||||
<string name="agent_unqueue">Không gửi</string>
|
||||
<string name="agent_attach">Đính kèm</string>
|
||||
<string name="agent_attach_files">Tệp</string>
|
||||
<string name="agent_photos_allow">Cho phép truy cập ảnh</string>
|
||||
<string name="agent_photos_more">Chọn thêm ảnh</string>
|
||||
<string name="agent_photos_empty">Chưa có ảnh</string>
|
||||
<string name="agent_keyboard">Bàn phím</string>
|
||||
<string name="agent_remove_attachment">Xóa</string>
|
||||
<string name="agent_model_default">Mặc định</string>
|
||||
<string name="agent_effort">Mức độ lập luận</string>
|
||||
@@ -1298,6 +1303,31 @@
|
||||
<string name="ctrl_size">Kích thước nút</string>
|
||||
<string name="ctrl_adaptive">Cần thích ứng</string>
|
||||
<string name="ctrl_rumble">Rung khi chơi game</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">Mở</string>
|
||||
<string name="air_triggers_use">Dùng Air Triggers</string>
|
||||
<string name="air_triggers_use_hint">Bật trigger vai mà không hiện bảng trigger hay điểm đánh dấu của RedMagic. Thay vào đó, chúng nhấn các nút của bố cục cảm ứng.</string>
|
||||
<string name="air_trigger_left">Air Trigger trái</string>
|
||||
<string name="air_trigger_right">Air Trigger phải</string>
|
||||
<string name="air_trigger_button_hint">Được lưu cho bố cục này</string>
|
||||
<string name="air_triggers_vibration">Rung</string>
|
||||
<string name="air_triggers_vibration_hint">Rung khi chạm vào Air Trigger</string>
|
||||
<string name="air_triggers_screen_light">Hiệu ứng ánh sáng trên màn hình</string>
|
||||
<string name="air_triggers_screen_light_hint">Làm sáng cạnh màn hình bên dưới Air Trigger khi chạm vào</string>
|
||||
<string name="air_triggers_led">Hiệu ứng đèn LED không khí khi chạm</string>
|
||||
<string name="air_triggers_led_off">Tắt</string>
|
||||
<string name="air_triggers_led_steady">Sáng liên tục</string>
|
||||
<string name="air_triggers_led_pulse">Nhấp nháy theo nhịp</string>
|
||||
<string name="air_trigger_left_action">Thao tác của Air Trigger trái</string>
|
||||
<string name="air_trigger_right_action">Thao tác của Air Trigger phải</string>
|
||||
<string name="air_trigger_action_tap">Chạm một lần</string>
|
||||
<string name="air_trigger_action_hold">Nhấn giữ</string>
|
||||
<string name="air_trigger_action_rapid">Bắn nhanh</string>
|
||||
<string name="air_trigger_rapid_settings">Cài đặt bắn nhanh</string>
|
||||
<string name="air_trigger_rapid_frequency">Tần suất nhấp</string>
|
||||
<string name="air_trigger_rate_low">Thấp</string>
|
||||
<string name="air_trigger_rate_normal">Bình thường</string>
|
||||
<string name="air_trigger_rate_high">Cao</string>
|
||||
<string name="ctrl_dead_zone">Vùng chết của cần điều khiển</string>
|
||||
<string name="ctrl_steam_button">Nút Steam</string>
|
||||
<string name="ctrl_qam_button">Nút QAM</string>
|
||||
@@ -2287,7 +2317,8 @@
|
||||
<string name="loadstate_steam_client">Đang tải client Steam · %1$s</string>
|
||||
<string name="pextra_busy">Một lượt cài công cụ tương thích đang chạy</string>
|
||||
<string name="pextra_stop_session">Dừng phiên đang hoạt động trước khi cài công cụ tương thích</string>
|
||||
<string name="pextra_no_release">Không tìm thấy bản phát hành ARM64 cho %1$s</string>
|
||||
<string name="pextra_no_release">Không tìm thấy bản phát hành %2$s cho %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</string>
|
||||
<string name="pextra_no_space">Cần ít nhất 4 GB trống cộng với kích thước tải xuống để cài %1$s</string>
|
||||
<string name="pextra_downloading">Đang tải %1$s %2$s</string>
|
||||
<string name="pextra_retrying">Đang thử lại tải · lần %1$d trong %2$d</string>
|
||||
@@ -4135,4 +4166,6 @@
|
||||
<string name="glasses_shortcut_group">Lối tắt trong trò chơi</string>
|
||||
<string name="glasses_show_shortcut">Hiển thị lối tắt Smart Glasses</string>
|
||||
<string name="glasses_show_shortcut_hint">Hiển thị nút Smart Glasses nổi phía trên trò chơi.</string>
|
||||
<string name="display_filter_game_profile">Đang dùng hồ sơ %1$s: %2$s</string>
|
||||
<string name="display_filter_default_profile">Đang dùng hồ sơ mặc định: %1$s</string>
|
||||
</resources>
|
||||
@@ -1248,6 +1248,11 @@
|
||||
<string name="agent_tools_missing">智能体工具未安装:%1$s</string>
|
||||
<string name="agent_unqueue">不发送</string>
|
||||
<string name="agent_attach">添加附件</string>
|
||||
<string name="agent_attach_files">文件</string>
|
||||
<string name="agent_photos_allow">允许访问照片</string>
|
||||
<string name="agent_photos_more">选择更多照片</string>
|
||||
<string name="agent_photos_empty">还没有照片</string>
|
||||
<string name="agent_keyboard">键盘</string>
|
||||
<string name="agent_remove_attachment">移除</string>
|
||||
<string name="agent_model_default">默认</string>
|
||||
<string name="agent_effort">推理强度</string>
|
||||
@@ -1381,6 +1386,31 @@
|
||||
<string name="ctrl_size">按钮大小</string>
|
||||
<string name="ctrl_adaptive">自适应摇杆</string>
|
||||
<string name="ctrl_rumble">游戏震动</string>
|
||||
<string name="air_triggers_title">红魔肩键</string>
|
||||
<string name="air_triggers_open">打开</string>
|
||||
<string name="air_triggers_use">使用肩键</string>
|
||||
<string name="air_triggers_use_hint">开启肩键,但不显示红魔的肩键面板和屏幕标记。肩键改为按下触控布局中的按钮。</string>
|
||||
<string name="air_trigger_left">左肩键</string>
|
||||
<string name="air_trigger_right">右肩键</string>
|
||||
<string name="air_trigger_button_hint">按此布局保存</string>
|
||||
<string name="air_triggers_vibration">振动</string>
|
||||
<string name="air_triggers_vibration_hint">触摸肩键时振动</string>
|
||||
<string name="air_triggers_screen_light">屏幕灯效</string>
|
||||
<string name="air_triggers_screen_light_hint">触摸肩键时点亮其下方的屏幕边缘</string>
|
||||
<string name="air_triggers_led">触控氛围灯效</string>
|
||||
<string name="air_triggers_led_off">关闭</string>
|
||||
<string name="air_triggers_led_steady">常亮</string>
|
||||
<string name="air_triggers_led_pulse">脉冲</string>
|
||||
<string name="air_trigger_left_action">左肩键动作</string>
|
||||
<string name="air_trigger_right_action">右肩键动作</string>
|
||||
<string name="air_trigger_action_tap">单击</string>
|
||||
<string name="air_trigger_action_hold">长按</string>
|
||||
<string name="air_trigger_action_rapid">连发</string>
|
||||
<string name="air_trigger_rapid_settings">连发设置</string>
|
||||
<string name="air_trigger_rapid_frequency">点击频率</string>
|
||||
<string name="air_trigger_rate_low">低</string>
|
||||
<string name="air_trigger_rate_normal">正常</string>
|
||||
<string name="air_trigger_rate_high">高</string>
|
||||
<string name="ctrl_dead_zone">摇杆死区</string>
|
||||
<string name="ctrl_steam_button">Steam 按钮</string>
|
||||
<string name="ctrl_qam_button">QAM 按钮</string>
|
||||
@@ -2364,7 +2394,8 @@
|
||||
<string name="loadstate_steam_client">正在下载 Steam 客户端 · %1$s</string>
|
||||
<string name="pextra_busy">已有兼容性工具正在安装</string>
|
||||
<string name="pextra_stop_session">安装兼容性工具前请先停止当前会话</string>
|
||||
<string name="pextra_no_release">找不到 %1$s 的 ARM64 发布版本</string>
|
||||
<string name="pextra_no_release">找不到 %1$s 的 %2$s 发布版本</string>
|
||||
<string name="pextra_anticheat">反作弊</string>
|
||||
<string name="pextra_no_space">安装 %1$s 需要至少 4 GB 可用空间外加下载大小</string>
|
||||
<string name="pextra_downloading">正在下载 %1$s %2$s</string>
|
||||
<string name="pextra_retrying">正在重试下载 · 第 %1$d 次,共 %2$d 次</string>
|
||||
@@ -4133,4 +4164,6 @@
|
||||
<string name="glasses_shortcut_group">游戏内快捷方式</string>
|
||||
<string name="glasses_show_shortcut">显示 Smart Glasses 快捷方式</string>
|
||||
<string name="glasses_show_shortcut_hint">在游戏画面上显示悬浮的 Smart Glasses 按钮。</string>
|
||||
<string name="display_filter_game_profile">正在使用 %1$s 配置:%2$s</string>
|
||||
<string name="display_filter_default_profile">正在使用默认配置:%1$s</string>
|
||||
</resources>
|
||||
@@ -1164,6 +1164,11 @@
|
||||
<string name="agent_tools_missing">智能體工具未安裝:%1$s</string>
|
||||
<string name="agent_unqueue">不要傳送</string>
|
||||
<string name="agent_attach">附加</string>
|
||||
<string name="agent_attach_files">檔案</string>
|
||||
<string name="agent_photos_allow">允許存取相片</string>
|
||||
<string name="agent_photos_more">選擇更多相片</string>
|
||||
<string name="agent_photos_empty">尚未有相片</string>
|
||||
<string name="agent_keyboard">鍵盤</string>
|
||||
<string name="agent_remove_attachment">移除</string>
|
||||
<string name="agent_model_default">預設</string>
|
||||
<string name="agent_effort">推理強度</string>
|
||||
@@ -1297,6 +1302,31 @@
|
||||
<string name="ctrl_size">按鍵大小</string>
|
||||
<string name="ctrl_adaptive">自動調整搖桿</string>
|
||||
<string name="ctrl_rumble">遊戲震動</string>
|
||||
<string name="air_triggers_title">紅魔肩鍵</string>
|
||||
<string name="air_triggers_open">開啟</string>
|
||||
<string name="air_triggers_use">使用肩鍵</string>
|
||||
<string name="air_triggers_use_hint">開啟肩鍵,但不顯示紅魔的肩鍵面板和螢幕標記。肩鍵改為按下觸控佈局中的按鈕。</string>
|
||||
<string name="air_trigger_left">左肩鍵</string>
|
||||
<string name="air_trigger_right">右肩鍵</string>
|
||||
<string name="air_trigger_button_hint">按此佈局儲存</string>
|
||||
<string name="air_triggers_vibration">震動</string>
|
||||
<string name="air_triggers_vibration_hint">觸摸肩鍵時震動</string>
|
||||
<string name="air_triggers_screen_light">螢幕燈效</string>
|
||||
<string name="air_triggers_screen_light_hint">觸摸肩鍵時點亮其下方的螢幕邊緣</string>
|
||||
<string name="air_triggers_led">觸控氛圍燈效</string>
|
||||
<string name="air_triggers_led_off">關閉</string>
|
||||
<string name="air_triggers_led_steady">常亮</string>
|
||||
<string name="air_triggers_led_pulse">脈衝</string>
|
||||
<string name="air_trigger_left_action">左肩鍵動作</string>
|
||||
<string name="air_trigger_right_action">右肩鍵動作</string>
|
||||
<string name="air_trigger_action_tap">單擊</string>
|
||||
<string name="air_trigger_action_hold">長按</string>
|
||||
<string name="air_trigger_action_rapid">連發</string>
|
||||
<string name="air_trigger_rapid_settings">連發設定</string>
|
||||
<string name="air_trigger_rapid_frequency">點擊頻率</string>
|
||||
<string name="air_trigger_rate_low">低</string>
|
||||
<string name="air_trigger_rate_normal">正常</string>
|
||||
<string name="air_trigger_rate_high">高</string>
|
||||
<string name="ctrl_dead_zone">搖桿死區</string>
|
||||
<string name="ctrl_steam_button">Steam 按鈕</string>
|
||||
<string name="ctrl_qam_button">QAM 按鈕</string>
|
||||
@@ -2286,7 +2316,8 @@
|
||||
<string name="loadstate_steam_client">正在下載 Steam 用戶端 · %1$s</string>
|
||||
<string name="pextra_busy">已有兼容性工具正在安裝</string>
|
||||
<string name="pextra_stop_session">請先停止目前的會話,再安裝兼容性工具</string>
|
||||
<string name="pextra_no_release">找不到 %1$s 的 ARM64 發佈版本</string>
|
||||
<string name="pextra_no_release">找不到 %1$s 的 %2$s 發佈版本</string>
|
||||
<string name="pextra_anticheat">防作弊</string>
|
||||
<string name="pextra_no_space">安裝 %1$s 需要至少 4 GB 可用空間,另加下載大小</string>
|
||||
<string name="pextra_downloading">正在下載 %1$s %2$s</string>
|
||||
<string name="pextra_retrying">正在重試下載 · 第 %1$d 次,共 %2$d 次</string>
|
||||
@@ -4133,4 +4164,6 @@
|
||||
<string name="glasses_shortcut_group">遊戲內捷徑</string>
|
||||
<string name="glasses_show_shortcut">顯示 Smart Glasses 捷徑</string>
|
||||
<string name="glasses_show_shortcut_hint">在遊戲畫面上顯示浮動的 Smart Glasses 按鈕。</string>
|
||||
<string name="display_filter_game_profile">正在使用 %1$s 設定檔:%2$s</string>
|
||||
<string name="display_filter_default_profile">正在使用預設設定檔:%1$s</string>
|
||||
</resources>
|
||||
@@ -1164,6 +1164,11 @@
|
||||
<string name="agent_tools_missing">智慧代理工具未安裝:%1$s</string>
|
||||
<string name="agent_unqueue">不要傳送</string>
|
||||
<string name="agent_attach">附加</string>
|
||||
<string name="agent_attach_files">檔案</string>
|
||||
<string name="agent_photos_allow">允許存取相片</string>
|
||||
<string name="agent_photos_more">選擇更多相片</string>
|
||||
<string name="agent_photos_empty">還沒有相片</string>
|
||||
<string name="agent_keyboard">鍵盤</string>
|
||||
<string name="agent_remove_attachment">移除</string>
|
||||
<string name="agent_model_default">預設</string>
|
||||
<string name="agent_effort">推理強度</string>
|
||||
@@ -1297,6 +1302,31 @@
|
||||
<string name="ctrl_size">按鍵大小</string>
|
||||
<string name="ctrl_adaptive">自適應搖桿</string>
|
||||
<string name="ctrl_rumble">遊戲震動</string>
|
||||
<string name="air_triggers_title">紅魔肩鍵</string>
|
||||
<string name="air_triggers_open">開啟</string>
|
||||
<string name="air_triggers_use">使用肩鍵</string>
|
||||
<string name="air_triggers_use_hint">開啟肩鍵,但不顯示紅魔的肩鍵面板和螢幕標記。肩鍵改為按下觸控版面配置中的按鈕。</string>
|
||||
<string name="air_trigger_left">左肩鍵</string>
|
||||
<string name="air_trigger_right">右肩鍵</string>
|
||||
<string name="air_trigger_button_hint">依此版面配置儲存</string>
|
||||
<string name="air_triggers_vibration">震動</string>
|
||||
<string name="air_triggers_vibration_hint">觸碰肩鍵時震動</string>
|
||||
<string name="air_triggers_screen_light">螢幕燈效</string>
|
||||
<string name="air_triggers_screen_light_hint">觸碰肩鍵時點亮其下方的螢幕邊緣</string>
|
||||
<string name="air_triggers_led">觸控氛圍燈效</string>
|
||||
<string name="air_triggers_led_off">關閉</string>
|
||||
<string name="air_triggers_led_steady">恆亮</string>
|
||||
<string name="air_triggers_led_pulse">脈衝</string>
|
||||
<string name="air_trigger_left_action">左肩鍵動作</string>
|
||||
<string name="air_trigger_right_action">右肩鍵動作</string>
|
||||
<string name="air_trigger_action_tap">單擊</string>
|
||||
<string name="air_trigger_action_hold">長按</string>
|
||||
<string name="air_trigger_action_rapid">連發</string>
|
||||
<string name="air_trigger_rapid_settings">連發設定</string>
|
||||
<string name="air_trigger_rapid_frequency">點擊頻率</string>
|
||||
<string name="air_trigger_rate_low">低</string>
|
||||
<string name="air_trigger_rate_normal">正常</string>
|
||||
<string name="air_trigger_rate_high">高</string>
|
||||
<string name="ctrl_dead_zone">搖桿死區</string>
|
||||
<string name="ctrl_steam_button">Steam 按鈕</string>
|
||||
<string name="ctrl_qam_button">QAM 按鈕</string>
|
||||
@@ -2286,7 +2316,8 @@
|
||||
<string name="loadstate_steam_client">正在下載 Steam 用戶端 · %1$s</string>
|
||||
<string name="pextra_busy">已有相容性工具正在安裝</string>
|
||||
<string name="pextra_stop_session">安裝相容性工具前,請先停止執行中的工作階段</string>
|
||||
<string name="pextra_no_release">找不到 %1$s 的 ARM64 發行版本</string>
|
||||
<string name="pextra_no_release">找不到 %1$s 的 %2$s 發行版本</string>
|
||||
<string name="pextra_anticheat">反作弊</string>
|
||||
<string name="pextra_no_space">安裝 %1$s 需要至少 4 GB 可用空間,再加上下載大小</string>
|
||||
<string name="pextra_downloading">正在下載 %1$s %2$s</string>
|
||||
<string name="pextra_retrying">正在重試下載 · 第 %1$d 次,共 %2$d 次</string>
|
||||
@@ -4133,4 +4164,6 @@
|
||||
<string name="glasses_shortcut_group">遊戲內捷徑</string>
|
||||
<string name="glasses_show_shortcut">顯示 Smart Glasses 捷徑</string>
|
||||
<string name="glasses_show_shortcut_hint">在遊戲畫面上顯示浮動的 Smart Glasses 按鈕。</string>
|
||||
<string name="display_filter_game_profile">正在使用 %1$s 設定檔:%2$s</string>
|
||||
<string name="display_filter_default_profile">正在使用預設設定檔:%1$s</string>
|
||||
</resources>
|
||||
@@ -1042,6 +1042,9 @@
|
||||
<string name="setup_orientation_landscape">Landscape</string>
|
||||
<string name="setup_orientation_reverse">Reverse landscape</string>
|
||||
<string name="setup_fullscreen">Fullscreen</string>
|
||||
<string name="setup_launcher_fullscreen">Launcher fullscreen</string>
|
||||
<string name="setup_session_fullscreen">Session fullscreen</string>
|
||||
<string name="setup_fullscreen_landscape_only">Landscape only</string>
|
||||
<string name="setup_fullscreen_on">Hides the Android status and navigation bars</string>
|
||||
<string name="setup_fullscreen_off">Shows the Android status and navigation bars</string>
|
||||
<string name="setup_page_swipe">Swipe between pages</string>
|
||||
@@ -1330,6 +1333,11 @@
|
||||
<string name="agent_tools_missing">Agent tools not installed: %1$s</string>
|
||||
<string name="agent_unqueue">Don\'t send</string>
|
||||
<string name="agent_attach">Attach</string>
|
||||
<string name="agent_attach_files">Files</string>
|
||||
<string name="agent_photos_allow">Allow photo access</string>
|
||||
<string name="agent_photos_more">Choose more photos</string>
|
||||
<string name="agent_photos_empty">No photos yet</string>
|
||||
<string name="agent_keyboard">Keyboard</string>
|
||||
<string name="agent_remove_attachment">Remove</string>
|
||||
<string name="agent_model_default">Default</string>
|
||||
<string name="agent_effort">Reasoning effort</string>
|
||||
@@ -1494,6 +1502,31 @@
|
||||
<string name="ctrl_size">Button size</string>
|
||||
<string name="ctrl_adaptive">Adaptive sticks</string>
|
||||
<string name="ctrl_rumble">Game vibration</string>
|
||||
<string name="air_triggers_title">Redmagic Air Triggers</string>
|
||||
<string name="air_triggers_open">Open</string>
|
||||
<string name="air_triggers_use">Use Air Triggers</string>
|
||||
<string name="air_triggers_use_hint">Turns on the shoulder triggers without RedMagic\'s trigger panel or markers. They press buttons of the touch layout instead.</string>
|
||||
<string name="air_trigger_left">Left Air Trigger</string>
|
||||
<string name="air_trigger_right">Right Air Trigger</string>
|
||||
<string name="air_trigger_button_hint">Saved for this layout</string>
|
||||
<string name="air_triggers_vibration">Vibration</string>
|
||||
<string name="air_triggers_vibration_hint">Vibrates when an Air Trigger is touched</string>
|
||||
<string name="air_triggers_screen_light">Screen light effect</string>
|
||||
<string name="air_triggers_screen_light_hint">Lights up the screen edge under an Air Trigger when it is touched</string>
|
||||
<string name="air_triggers_led">Touch atmosphere LED effects</string>
|
||||
<string name="air_triggers_led_off">Off</string>
|
||||
<string name="air_triggers_led_steady">Steady</string>
|
||||
<string name="air_triggers_led_pulse">Pulse</string>
|
||||
<string name="air_trigger_left_action">Left Air Trigger action</string>
|
||||
<string name="air_trigger_right_action">Right Air Trigger action</string>
|
||||
<string name="air_trigger_action_tap">Single tap</string>
|
||||
<string name="air_trigger_action_hold">Long press</string>
|
||||
<string name="air_trigger_action_rapid">Rapid fire</string>
|
||||
<string name="air_trigger_rapid_settings">Rapid fire settings</string>
|
||||
<string name="air_trigger_rapid_frequency">Click frequency</string>
|
||||
<string name="air_trigger_rate_low">Low</string>
|
||||
<string name="air_trigger_rate_normal">Normal</string>
|
||||
<string name="air_trigger_rate_high">High</string>
|
||||
<string name="ctrl_dead_zone">Stick dead zone</string>
|
||||
<string name="ctrl_steam_button">Steam button</string>
|
||||
<string name="ctrl_qam_button">QAM button</string>
|
||||
@@ -2639,7 +2672,8 @@
|
||||
|
||||
<string name="pextra_busy">A compatibility tool install is already running</string>
|
||||
<string name="pextra_stop_session">Stop the active session before installing compatibility tools</string>
|
||||
<string name="pextra_no_release">Could not find an ARM64 release for %1$s</string>
|
||||
<string name="pextra_no_release">Could not find an %2$s release for %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-Cheat</string>
|
||||
<string name="pextra_no_space">At least 4 GB free plus the download size is required to install %1$s</string>
|
||||
<string name="pextra_downloading">Downloading %1$s %2$s</string>
|
||||
<string name="pextra_retrying">Retrying download · attempt %1$d of %2$d</string>
|
||||
@@ -2852,6 +2886,8 @@
|
||||
<string name="display_filter_hint">Shared by Steam and Desktop.</string>
|
||||
<string name="display_filter_live">Applies live. Shared by Steam and Desktop.</string>
|
||||
<string name="display_filter_note">FSR, GSR and NIS apply when enlarging the session image. Sharpen only also works without enlargement.</string>
|
||||
<string name="display_filter_game_profile">Using %1$s profile: %2$s</string>
|
||||
<string name="display_filter_default_profile">Using Default profile: %1$s</string>
|
||||
<string name="display_sharpness">Filter sharpness</string>
|
||||
<string name="display_look_filter">%1$s Sets scaling to %2$s.</string>
|
||||
<string name="display_match_screen">Match screen (%1$d×%2$d)</string>
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.droiddeck.launcher.core
|
||||
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertNull
|
||||
import org.junit.Test
|
||||
|
||||
class DeviceReportBuildDateTest {
|
||||
@Test fun theFirmwareBuildTimeIsShownInUtc() {
|
||||
assertEquals("2024-11-08 17:47 UTC", DeviceReport.buildDate(1_731_088_027_000L))
|
||||
}
|
||||
|
||||
@Test fun anUnsetBuildTimeIsUnknown() {
|
||||
assertNull(DeviceReport.buildDate(0L))
|
||||
assertNull(DeviceReport.buildDate(-1L))
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,358 @@
|
||||
package com.droiddeck.launcher.input
|
||||
|
||||
import android.hardware.input.InputManager
|
||||
import android.os.Looper
|
||||
import android.provider.Settings
|
||||
import android.view.InputDevice
|
||||
import android.view.KeyCharacterMap
|
||||
import android.view.KeyEvent
|
||||
import java.io.File
|
||||
import java.time.Duration
|
||||
import java.util.concurrent.Executor
|
||||
import org.junit.After
|
||||
import org.junit.Assert.*
|
||||
import org.junit.Before
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import org.robolectric.RobolectricTestRunner
|
||||
import org.robolectric.RuntimeEnvironment
|
||||
import org.robolectric.Shadows.shadowOf
|
||||
import org.robolectric.annotation.Config
|
||||
import org.robolectric.shadows.InputDeviceBuilder
|
||||
|
||||
@RunWith(RobolectricTestRunner::class)
|
||||
@Config(sdk = [34], manifest = Config.NONE, shadows = [JoyConPadTest.RecordingWriter::class])
|
||||
class RedMagicAirTriggersTest {
|
||||
private val events = mutableListOf<String>()
|
||||
private val router = InputRouter(object : InputOutput {
|
||||
override fun key(code: Int, down: Boolean) { events += "key:$code:$down" }
|
||||
override fun button(code: Int, down: Boolean) { events += "button:$code:$down" }
|
||||
override fun pointer(dx: Float, dy: Float) {}
|
||||
override fun scroll(steps: Int) {}
|
||||
override fun command(command: InputCommand) { events += command.name }
|
||||
override fun command(command: InputCommand, role: InputRole) { events += "${command.name}:$role" }
|
||||
override fun requestMotion() {}
|
||||
})
|
||||
private val context = RuntimeEnvironment.getApplication()
|
||||
private val bridge = PadBridge(File(context.cacheDir, "air-trigger-input"))
|
||||
private val input = AirTriggerInput(bridge)
|
||||
private val lt = InputSurfaceElement(InputControl.LT, .1f, .1f, .1f, .1f)
|
||||
private val rt = InputSurfaceElement(InputControl.RT, .8f, .1f, .1f, .1f)
|
||||
private val jump = InputSurfaceElement(InputControl.A, .8f, .8f, .1f, .1f, id = "custom:jump", name = "Jump")
|
||||
private val stick = InputSurfaceElement(InputControl.LS, .1f, .7f, .2f, .2f)
|
||||
private val layout = SavedInputLayout("pad", "Pad", listOf(lt, rt, jump, stick))
|
||||
|
||||
@Before fun setup() { bridge.setInputRouter(router); DeckControls.setRouter(router) }
|
||||
@After fun close() { input.close(); bridge.stop(); DeckControls.setRouter(null); DeckControls.releaseAll() }
|
||||
|
||||
private fun bind(vararg actions: Pair<String, InputAction>) {
|
||||
bridge.setInputProfile(InputProfile("test", elements = mapOf(InputRole.PRIMARY to mapOf(*actions))))
|
||||
}
|
||||
private fun setups(vararg chosen: Pair<AirTrigger, InputSurfaceElement>) = chosen.associate { (trigger, element) -> trigger to AirTriggerSetup(element) }
|
||||
private fun down(trigger: AirTrigger, enabled: Boolean = true, repeat: Int = 0) = input.onKey(trigger, KeyEvent.ACTION_DOWN, repeat, enabled)
|
||||
private fun up(trigger: AirTrigger) = input.onKey(trigger, KeyEvent.ACTION_UP, 0, true)
|
||||
private fun idle(ms: Long) = shadowOf(Looper.getMainLooper()).idleFor(Duration.ofMillis(ms))
|
||||
|
||||
private fun keyboard(id: Int, name: String, vararg keys: Int, external: Boolean = false): InputDevice {
|
||||
val device = InputDeviceBuilder.newBuilder().setId(id).setName(name).setDescriptor("keyboard-$id")
|
||||
.setExternal(external).setSources(InputDevice.SOURCE_KEYBOARD)
|
||||
.setKeyCharacterMap(KeyCharacterMap.load(KeyCharacterMap.VIRTUAL_KEYBOARD)).build()
|
||||
val manager = shadowOf(context.getSystemService(InputManager::class.java))
|
||||
manager.addInputDevice(device)
|
||||
manager.addInputDeviceKeys(id, keys)
|
||||
return device
|
||||
}
|
||||
|
||||
@Test fun onlyTheTriggerDeviceKeysAreAirTriggers() {
|
||||
val triggers = keyboard(10, "nubia_tgk_aw_sar0_ch0")
|
||||
val externalKeyboard = keyboard(11, "Keychron K2", KeyEvent.KEYCODE_F7, KeyEvent.KEYCODE_F8, external = true)
|
||||
assertEquals(AirTrigger.LEFT, AirTrigger.of(KeyEvent.KEYCODE_F7, triggers))
|
||||
assertEquals(AirTrigger.RIGHT, AirTrigger.of(KeyEvent.KEYCODE_F8, triggers))
|
||||
assertNull(AirTrigger.of(KeyEvent.KEYCODE_F7, externalKeyboard))
|
||||
assertNull(AirTrigger.of(KeyEvent.KEYCODE_F8, null))
|
||||
assertNull(AirTrigger.of(KeyEvent.KEYCODE_VOLUME_DOWN, triggers))
|
||||
}
|
||||
|
||||
@Test fun theUnnamedInternalKeyboardCanContainBothTriggers() {
|
||||
val left = KeyEvent.KEYCODE_F7
|
||||
val right = KeyEvent.KEYCODE_F8
|
||||
val merged = keyboard(10, "", left, right, KeyEvent.KEYCODE_POWER)
|
||||
assertEquals(AirTrigger.LEFT, AirTrigger.of(left, merged))
|
||||
assertEquals(AirTrigger.RIGHT, AirTrigger.of(right, merged))
|
||||
assertNull(AirTrigger.of(left, keyboard(11, "", left, right, external = true)))
|
||||
assertNull(AirTrigger.of(left, keyboard(12, "", left)))
|
||||
assertNull(AirTrigger.of(left, keyboard(-1, "", left, right)))
|
||||
}
|
||||
|
||||
@Test fun theTriggerLightUsesTheCodeRedMagicsSettingsGiveTheChosenEffect() {
|
||||
val settings = """{"version":1,"shoulder_effects":{"close":"02000000","steady":"02101009","pulse":"021"},"selection":"02101000"}"""
|
||||
assertEquals("02101009", RedMagicAirTriggers.shoulderEffect(settings, AirTriggerLed.STEADY))
|
||||
assertEquals("02000000", RedMagicAirTriggers.shoulderEffect(settings, AirTriggerLed.OFF))
|
||||
assertEquals("02102000", RedMagicAirTriggers.shoulderEffect(settings, AirTriggerLed.PULSE))
|
||||
assertEquals("02101000", RedMagicAirTriggers.shoulderEffect(null, AirTriggerLed.STEADY))
|
||||
assertEquals("02102000", RedMagicAirTriggers.shoulderEffect("not json", AirTriggerLed.PULSE))
|
||||
}
|
||||
|
||||
@Test fun openingShowsTheIdleLightAndAppliesAgainAfterGameSpacesOwnSetup() {
|
||||
val calls = mutableListOf<String>()
|
||||
val worker = RedMagicAirTriggers.worker
|
||||
val lights = RedMagicAirTriggers.lights
|
||||
RedMagicAirTriggers.worker = Executor { it.run() }
|
||||
RedMagicAirTriggers.lights = object : TriggerLights {
|
||||
override fun request(action: Int) { calls += "$action" }
|
||||
override fun setEffect(effect: String) { calls += effect }
|
||||
}
|
||||
Settings.Global.putString(context.contentResolver, "lighting_shoulder_config_json", """{"shoulder_effects":{"pulse":"02102000"}}""")
|
||||
AirTriggerPrefs.setLed(context, AirTriggerLed.PULSE)
|
||||
try {
|
||||
val opened = listOf("110", "02102000", "107", "109")
|
||||
RedMagicAirTriggers.open(context)
|
||||
assertEquals(opened, calls)
|
||||
shadowOf(Looper.getMainLooper()).idleFor(Duration.ofSeconds(1))
|
||||
assertEquals(opened + opened, calls)
|
||||
RedMagicAirTriggers.restore(context)
|
||||
shadowOf(Looper.getMainLooper()).idleFor(Duration.ofSeconds(10))
|
||||
assertEquals(opened + opened + "111", calls)
|
||||
} finally {
|
||||
RedMagicAirTriggers.worker = worker
|
||||
RedMagicAirTriggers.lights = lights
|
||||
}
|
||||
}
|
||||
|
||||
@Test fun triggersDefaultToTheLayoutTriggersAndFollowAChoiceThatStillExists() {
|
||||
assertEquals(lt, AirTriggerButtons.resolve(layout, AirTrigger.LEFT, null))
|
||||
assertEquals(rt, AirTriggerButtons.resolve(layout, AirTrigger.RIGHT, null))
|
||||
assertEquals(jump, AirTriggerButtons.resolve(layout, AirTrigger.LEFT, "custom:jump"))
|
||||
assertEquals(lt, AirTriggerButtons.resolve(layout, AirTrigger.LEFT, "custom:removed"))
|
||||
assertEquals(listOf(lt, rt, jump), AirTriggerButtons.options(layout))
|
||||
}
|
||||
|
||||
@Test fun aLayoutWithoutTriggersStillOffersTheControllerTriggers() {
|
||||
val buttons = SavedInputLayout("buttons", "Buttons", listOf(jump))
|
||||
assertEquals(listOf("custom:jump", "legacy:lt", "legacy:rt"), AirTriggerButtons.options(buttons).map { it.id })
|
||||
assertEquals("legacy:rt", AirTriggerButtons.resolve(buttons, AirTrigger.RIGHT, null).id)
|
||||
assertEquals("legacy:lt", AirTriggerButtons.resolve(null, AirTrigger.LEFT, null).id)
|
||||
}
|
||||
|
||||
@Test fun touchFeedbackStartsOffWithASteadyLight() {
|
||||
assertFalse(AirTriggerPrefs.vibration(context))
|
||||
assertFalse(AirTriggerPrefs.screenLight(context))
|
||||
assertEquals(AirTriggerLed.STEADY, AirTriggerPrefs.led(context))
|
||||
AirTriggerPrefs.setVibration(context, true)
|
||||
AirTriggerPrefs.setScreenLight(context, true)
|
||||
AirTriggerPrefs.setLed(context, AirTriggerLed.OFF)
|
||||
assertTrue(AirTriggerPrefs.vibration(context))
|
||||
assertTrue(AirTriggerPrefs.screenLight(context))
|
||||
assertEquals(AirTriggerLed.OFF, AirTriggerPrefs.led(context))
|
||||
}
|
||||
|
||||
@Test fun actionsAndRatesAreSavedPerLayoutBesideTheButton() {
|
||||
assertEquals(AirTriggerAction.TAP, AirTriggerPrefs.action(context, "pad", AirTrigger.LEFT))
|
||||
assertEquals(RapidFireRate.NORMAL, AirTriggerPrefs.rate(context, "pad", AirTrigger.LEFT))
|
||||
AirTriggerPrefs.setButton(context, "pad", AirTrigger.LEFT, "custom:jump")
|
||||
AirTriggerPrefs.setAction(context, "pad", AirTrigger.LEFT, AirTriggerAction.RAPID)
|
||||
AirTriggerPrefs.setRate(context, "pad", AirTrigger.LEFT, RapidFireRate.HIGH)
|
||||
assertEquals("custom:jump", AirTriggerPrefs.button(context, "pad", AirTrigger.LEFT))
|
||||
assertEquals(AirTriggerAction.RAPID, AirTriggerPrefs.action(context, "pad", AirTrigger.LEFT))
|
||||
assertEquals(RapidFireRate.HIGH, AirTriggerPrefs.rate(context, "pad", AirTrigger.LEFT))
|
||||
assertEquals(AirTriggerAction.TAP, AirTriggerPrefs.action(context, "pad", AirTrigger.RIGHT))
|
||||
assertEquals(AirTriggerAction.TAP, AirTriggerPrefs.action(context, "other", AirTrigger.LEFT))
|
||||
}
|
||||
|
||||
@Test fun aLongPressLatchesTheButtonUntilTheNextTouch() {
|
||||
val touches = mutableListOf<String>()
|
||||
val latch = AirTriggerInput(bridge, touched = { trigger, down -> touches += "$trigger:$down" })
|
||||
bind("legacy:lt" to InputAction.Keys(listOf(42)))
|
||||
latch.configure(mapOf(AirTrigger.LEFT to AirTriggerSetup(lt, AirTriggerAction.LATCH)))
|
||||
latch.onKey(AirTrigger.LEFT, KeyEvent.ACTION_DOWN, 0, true)
|
||||
assertTrue(latch.onKey(AirTrigger.LEFT, KeyEvent.ACTION_UP, 0, true))
|
||||
idle(1_000)
|
||||
assertEquals(listOf("key:42:true"), events)
|
||||
latch.onKey(AirTrigger.LEFT, KeyEvent.ACTION_DOWN, 0, true)
|
||||
assertEquals(listOf("key:42:true", "key:42:false"), events)
|
||||
latch.onKey(AirTrigger.LEFT, KeyEvent.ACTION_UP, 0, true)
|
||||
latch.close()
|
||||
assertEquals(listOf("key:42:true", "key:42:false"), events)
|
||||
assertEquals(listOf("LEFT:true", "LEFT:false", "LEFT:true", "LEFT:false"), touches)
|
||||
}
|
||||
|
||||
@Test fun aLongPressOnAToggleButtonLetsGoOnTheNextTouch() {
|
||||
val screen = mutableListOf<String>()
|
||||
val latch = AirTriggerInput(bridge, { id, _, held, _ -> screen += "$id:$held"; true })
|
||||
bind("custom:jump" to InputAction.Keys(listOf(57)))
|
||||
latch.configure(mapOf(AirTrigger.LEFT to AirTriggerSetup(jump.copy(toggle = true), AirTriggerAction.LATCH)))
|
||||
latch.onKey(AirTrigger.LEFT, KeyEvent.ACTION_DOWN, 0, true); latch.onKey(AirTrigger.LEFT, KeyEvent.ACTION_UP, 0, true)
|
||||
latch.onKey(AirTrigger.LEFT, KeyEvent.ACTION_DOWN, 0, true); latch.onKey(AirTrigger.LEFT, KeyEvent.ACTION_UP, 0, true)
|
||||
latch.close()
|
||||
assertEquals(listOf("key:57:true", "key:57:false"), events)
|
||||
assertEquals(emptyList<String>(), screen)
|
||||
}
|
||||
|
||||
@Test fun aSingleTapHoldsTheButtonWhileTheTriggerIsTouched() {
|
||||
bind("legacy:lt" to InputAction.Keys(listOf(42)))
|
||||
input.configure(mapOf(AirTrigger.LEFT to AirTriggerSetup(lt, AirTriggerAction.TAP)))
|
||||
down(AirTrigger.LEFT)
|
||||
idle(1_000)
|
||||
assertEquals(listOf("key:42:true"), events)
|
||||
up(AirTrigger.LEFT)
|
||||
assertEquals(listOf("key:42:true", "key:42:false"), events)
|
||||
}
|
||||
|
||||
@Test fun rapidFireClicksAtTheChosenRateWhileHeld() {
|
||||
val rapid = AirTriggerInput(bridge)
|
||||
bind("legacy:lt" to InputAction.Keys(listOf(42)))
|
||||
rapid.configure(mapOf(AirTrigger.LEFT to AirTriggerSetup(lt, AirTriggerAction.RAPID, RapidFireRate.NORMAL)))
|
||||
rapid.onKey(AirTrigger.LEFT, KeyEvent.ACTION_DOWN, 0, true)
|
||||
idle(950)
|
||||
assertEquals(10, events.size)
|
||||
assertEquals("key:42:true", events.first())
|
||||
assertEquals(5, events.count { it == "key:42:true" })
|
||||
rapid.onKey(AirTrigger.LEFT, KeyEvent.ACTION_UP, 0, true)
|
||||
idle(1_000)
|
||||
rapid.close()
|
||||
assertEquals(10, events.size)
|
||||
assertEquals("key:42:false", events.last())
|
||||
}
|
||||
|
||||
@Test fun liftingTheTriggerMidClickEndsRapidFireReleased() {
|
||||
val rapid = AirTriggerInput(bridge)
|
||||
bind("legacy:lt" to InputAction.Keys(listOf(42)))
|
||||
rapid.configure(mapOf(AirTrigger.LEFT to AirTriggerSetup(lt, AirTriggerAction.RAPID, RapidFireRate.HIGH)))
|
||||
rapid.onKey(AirTrigger.LEFT, KeyEvent.ACTION_DOWN, 0, true)
|
||||
idle(120)
|
||||
rapid.onKey(AirTrigger.LEFT, KeyEvent.ACTION_UP, 0, true)
|
||||
idle(500)
|
||||
rapid.close()
|
||||
assertEquals(listOf("key:42:true", "key:42:false", "key:42:true", "key:42:false"), events)
|
||||
}
|
||||
|
||||
@Test fun rapidFireClicksAToggleButtonAsAPlainOneThatEndsReleased() {
|
||||
val screen = mutableListOf<String>()
|
||||
val rapid = AirTriggerInput(bridge, { id, _, held, _ -> screen += "$id:$held"; true })
|
||||
bind("custom:jump" to InputAction.Keys(listOf(57)))
|
||||
rapid.configure(mapOf(AirTrigger.LEFT to AirTriggerSetup(jump.copy(toggle = true), AirTriggerAction.RAPID)))
|
||||
rapid.onKey(AirTrigger.LEFT, KeyEvent.ACTION_DOWN, 0, true)
|
||||
idle(250)
|
||||
rapid.onKey(AirTrigger.LEFT, KeyEvent.ACTION_UP, 0, true)
|
||||
rapid.close()
|
||||
assertEquals(listOf("key:57:true", "key:57:false", "key:57:true", "key:57:false"), events)
|
||||
assertEquals(emptyList<String>(), screen)
|
||||
}
|
||||
|
||||
@Test fun changingTheActionMidPressLetsGoOfTheButtonUntilTheNextTouch() {
|
||||
bind("legacy:lt" to InputAction.Keys(listOf(42)))
|
||||
input.configure(setups(AirTrigger.LEFT to lt))
|
||||
down(AirTrigger.LEFT)
|
||||
input.configure(mapOf(AirTrigger.LEFT to AirTriggerSetup(lt, AirTriggerAction.RAPID)))
|
||||
idle(500)
|
||||
assertTrue(up(AirTrigger.LEFT))
|
||||
assertEquals(listOf("key:42:true", "key:42:false"), events)
|
||||
down(AirTrigger.LEFT)
|
||||
idle(250)
|
||||
up(AirTrigger.LEFT)
|
||||
assertEquals(listOf("key:42:true", "key:42:false", "key:42:true", "key:42:false", "key:42:true", "key:42:false"), events)
|
||||
}
|
||||
|
||||
@Test fun choicesAreSavedPerLayoutAndTheToggleStartsOff() {
|
||||
assertFalse(AirTriggerPrefs.enabled(context))
|
||||
AirTriggerPrefs.setEnabled(context, true)
|
||||
AirTriggerPrefs.setButton(context, "pad", AirTrigger.LEFT, "custom:jump")
|
||||
assertTrue(AirTriggerPrefs.enabled(context))
|
||||
assertEquals("custom:jump", AirTriggerPrefs.button(context, "pad", AirTrigger.LEFT))
|
||||
assertNull(AirTriggerPrefs.button(context, "pad", AirTrigger.RIGHT))
|
||||
assertNull(AirTriggerPrefs.button(context, "other", AirTrigger.LEFT))
|
||||
}
|
||||
|
||||
@Test fun aTriggerPressesTheChosenLayoutButton() {
|
||||
bind("legacy:lt" to InputAction.Keys(listOf(42)), "custom:jump" to InputAction.Keys(listOf(57)))
|
||||
input.configure(setups(AirTrigger.LEFT to lt, AirTrigger.RIGHT to jump))
|
||||
assertTrue(down(AirTrigger.LEFT)); assertTrue(down(AirTrigger.RIGHT))
|
||||
assertTrue(up(AirTrigger.RIGHT)); assertTrue(up(AirTrigger.LEFT))
|
||||
assertEquals(listOf("key:42:true", "key:57:true", "key:57:false", "key:42:false"), events)
|
||||
}
|
||||
|
||||
@Test fun keyRepeatsAndPressesWhileInputIsBlockedAreSwallowed() {
|
||||
bind("legacy:lt" to InputAction.Keys(listOf(42)))
|
||||
input.configure(setups(AirTrigger.LEFT to lt))
|
||||
assertTrue(down(AirTrigger.LEFT, enabled = false))
|
||||
assertTrue(up(AirTrigger.LEFT))
|
||||
assertTrue(down(AirTrigger.LEFT)); assertTrue(down(AirTrigger.LEFT, repeat = 1))
|
||||
assertTrue(up(AirTrigger.LEFT))
|
||||
assertEquals(listOf("key:42:true", "key:42:false"), events)
|
||||
}
|
||||
|
||||
@Test fun switchingOffReleasesAHeldButtonAndLetsTheKeysThrough() {
|
||||
bind("legacy:lt" to InputAction.Keys(listOf(42)))
|
||||
input.configure(setups(AirTrigger.LEFT to lt))
|
||||
assertFalse(down(AirTrigger.RIGHT))
|
||||
down(AirTrigger.LEFT)
|
||||
input.configure(emptyMap())
|
||||
assertEquals(listOf("key:42:true", "key:42:false"), events)
|
||||
assertTrue(up(AirTrigger.LEFT))
|
||||
assertFalse(down(AirTrigger.LEFT))
|
||||
assertEquals(2, events.size)
|
||||
}
|
||||
|
||||
@Test fun aButtonShownOnScreenTakesThePressAndTheTriggersLight() {
|
||||
val screen = mutableListOf<String>()
|
||||
val lights = mutableListOf<Int>()
|
||||
val onScreen = AirTriggerInput(bridge, { id, trigger, held, cancelled -> screen += "$id:$trigger:$held:$cancelled"; id == "custom:jump" },
|
||||
{ trigger, down -> lights += if (down) trigger.pressLight else trigger.releaseLight })
|
||||
bind("legacy:lt" to InputAction.Keys(listOf(42)), "custom:jump" to InputAction.Keys(listOf(57)))
|
||||
onScreen.configure(setups(AirTrigger.LEFT to lt, AirTrigger.RIGHT to jump))
|
||||
onScreen.onKey(AirTrigger.RIGHT, KeyEvent.ACTION_DOWN, 0, true); onScreen.onKey(AirTrigger.LEFT, KeyEvent.ACTION_DOWN, 0, true)
|
||||
onScreen.onKey(AirTrigger.RIGHT, KeyEvent.ACTION_UP, 0, true); onScreen.onKey(AirTrigger.LEFT, KeyEvent.ACTION_UP, 0, true)
|
||||
onScreen.onKey(AirTrigger.LEFT, KeyEvent.ACTION_DOWN, 0, false); onScreen.onKey(AirTrigger.LEFT, KeyEvent.ACTION_UP, 0, true)
|
||||
onScreen.close()
|
||||
assertEquals(listOf("custom:jump:RIGHT:true:false", "legacy:lt:LEFT:true:false", "custom:jump:RIGHT:false:false"), screen)
|
||||
assertEquals(listOf("key:42:true", "key:42:false"), events)
|
||||
assertEquals(listOf(108, 106, 109, 107), lights)
|
||||
}
|
||||
|
||||
@Test fun switchingOffLetsGoOfTheOnScreenButton() {
|
||||
val screen = mutableListOf<String>()
|
||||
val onScreen = AirTriggerInput(bridge, { id, trigger, held, cancelled -> screen += "$id:$trigger:$held:$cancelled"; true })
|
||||
onScreen.configure(setups(AirTrigger.LEFT to jump))
|
||||
onScreen.onKey(AirTrigger.LEFT, KeyEvent.ACTION_DOWN, 0, true)
|
||||
onScreen.configure(emptyMap())
|
||||
assertTrue(onScreen.onKey(AirTrigger.LEFT, KeyEvent.ACTION_UP, 0, true))
|
||||
assertEquals(listOf("custom:jump:LEFT:true:false", "custom:jump:LEFT:false:true"), screen)
|
||||
}
|
||||
|
||||
@Test fun aForcedReleaseDoesNotRunACommandButtonButAKeyUpDoes() {
|
||||
bind("custom:jump" to InputAction.Command(InputCommand.KEYBOARD))
|
||||
input.configure(setups(AirTrigger.LEFT to jump))
|
||||
down(AirTrigger.LEFT)
|
||||
input.release()
|
||||
up(AirTrigger.LEFT)
|
||||
assertEquals(emptyList<String>(), events)
|
||||
down(AirTrigger.LEFT); up(AirTrigger.LEFT)
|
||||
assertEquals(listOf("KEYBOARD:PRIMARY"), events)
|
||||
}
|
||||
|
||||
@Test fun aToggleLatchedWhileItsButtonWasHiddenIsHandedToTheShownButton() {
|
||||
var shown = false
|
||||
val screen = mutableListOf<String>()
|
||||
val onScreen = AirTriggerInput(bridge, { id, _, held, _ -> screen += "$id:$held"; shown })
|
||||
bind("custom:jump" to InputAction.Keys(listOf(57)))
|
||||
onScreen.configure(setups(AirTrigger.LEFT to jump.copy(toggle = true)))
|
||||
onScreen.onKey(AirTrigger.LEFT, KeyEvent.ACTION_DOWN, 0, true); onScreen.onKey(AirTrigger.LEFT, KeyEvent.ACTION_UP, 0, true)
|
||||
assertEquals(listOf("key:57:true"), events)
|
||||
shown = true
|
||||
onScreen.onKey(AirTrigger.LEFT, KeyEvent.ACTION_DOWN, 0, true)
|
||||
assertEquals(listOf("key:57:true", "key:57:false"), events)
|
||||
onScreen.onKey(AirTrigger.LEFT, KeyEvent.ACTION_UP, 0, true)
|
||||
onScreen.close()
|
||||
assertEquals(listOf("custom:jump:true", "custom:jump:true", "custom:jump:false"), screen)
|
||||
}
|
||||
|
||||
@Test fun choosingAnotherButtonMovesTheTriggerWithoutLeavingTheOldOneHeld() {
|
||||
bind("legacy:lt" to InputAction.Keys(listOf(42)), "custom:jump" to InputAction.Keys(listOf(57)))
|
||||
input.configure(setups(AirTrigger.LEFT to lt))
|
||||
down(AirTrigger.LEFT)
|
||||
input.configure(setups(AirTrigger.LEFT to jump))
|
||||
up(AirTrigger.LEFT)
|
||||
down(AirTrigger.LEFT); up(AirTrigger.LEFT)
|
||||
assertEquals(listOf("key:42:true", "key:42:false", "key:57:true", "key:57:false"), events)
|
||||
}
|
||||
}
|
||||
@@ -14,6 +14,7 @@ import org.junit.runner.RunWith
|
||||
import org.robolectric.RobolectricTestRunner
|
||||
import org.robolectric.RuntimeEnvironment
|
||||
import org.robolectric.annotation.Config
|
||||
import java.io.File
|
||||
import java.io.IOException
|
||||
import java.io.RandomAccessFile
|
||||
import java.nio.ByteBuffer
|
||||
@@ -436,6 +437,53 @@ class EnhancedSessionLogShareTest {
|
||||
SessionLogShare.clear(app)
|
||||
}
|
||||
|
||||
@Test fun theRunningSessionsGameLogIsSharedBeforeSteamsWholeClientLogs() {
|
||||
val previousLogsEnabled = SessionPrefs.logsEnabled(app)
|
||||
val steamLog = File(SessionPrefs.activeSteamRoot(app), "logs/console_log.txt")
|
||||
var started: File? = null
|
||||
try {
|
||||
SessionPrefs.setLogsEnabled(app, true)
|
||||
val session = SessionPaths.beginOrCurrent(app, "live-steam").also { started = it }
|
||||
session.resolve("session.log").writeText("session\n")
|
||||
session.resolve("steam-239250.log").writeText("wine: game log\n")
|
||||
steamLog.apply { parentFile!!.mkdirs(); writeText("steam client history\n".repeat(400)) }
|
||||
val limits = EnhancedShareLimits(maxFilesPerArchive = 16, maxBytesPerFile = 8192, maxBytesTotal = 4096)
|
||||
|
||||
val zip = EnhancedSessionLogShare.createLegacy(app, session, limits = limits)!!
|
||||
|
||||
ZipFile(zip).use { archive ->
|
||||
assertEquals(
|
||||
"wine: game log\n",
|
||||
archive.getInputStream(archive.getEntry("${session.name}/steam-239250.log")).bufferedReader().readText(),
|
||||
)
|
||||
val manifest = JSONObject(archive.getInputStream(archive.getEntry("diagnostics-manifest.json"))
|
||||
.bufferedReader().readText())
|
||||
val entries = manifest.getJSONArray("entries")
|
||||
val records = (0 until entries.length()).map { entries.getJSONObject(it) }
|
||||
assertEquals("captured", records.single { it.optString("entry") == "${session.name}/steam-239250.log" }.getString("status"))
|
||||
val steam = records.single { it.optString("entry") == "${session.name}/steam/console_log.txt" }
|
||||
assertEquals("live-steam", steam.getString("origin"))
|
||||
assertEquals("truncated", steam.getString("status"))
|
||||
assertTrue(archive.getEntry("${session.name}/steam/console_log.txt") != null)
|
||||
}
|
||||
|
||||
val roomy = EnhancedSessionLogShare.createLegacy(app, session)!!
|
||||
|
||||
ZipFile(roomy).use { archive ->
|
||||
assertEquals(
|
||||
"steam client history\n".repeat(400),
|
||||
archive.getInputStream(archive.getEntry("${session.name}/steam/console_log.txt")).bufferedReader().readText(),
|
||||
)
|
||||
}
|
||||
} finally {
|
||||
SessionPaths.take()?.let { SessionPaths.release(app, it) }
|
||||
started?.deleteRecursively()
|
||||
steamLog.delete()
|
||||
SessionPrefs.setLogsEnabled(app, previousLogsEnabled)
|
||||
SessionLogShare.clear(app)
|
||||
}
|
||||
}
|
||||
|
||||
@Test fun unreadableDiscoverySubtreeKeepsOtherLogsAndMarksTheManifestPartial() {
|
||||
assumeFilePermissionsEnforced()
|
||||
assumeFalse(System.getProperty("os.name").startsWith("Windows"))
|
||||
|
||||
@@ -42,4 +42,24 @@ class OutputPacingTest {
|
||||
assertEquals(45, SessionPrefs.compositorFpsLimit(0, 45, hostCap = 60))
|
||||
assertEquals(SessionPrefs.PIP_FPS, SessionPrefs.compositorFpsLimit(0, 0, pip = true, hostCap = 60))
|
||||
}
|
||||
|
||||
@Test fun afterPictureInPictureTheLayerStopsVotingThirtyWhileItsOwnOverrideIsStillReported() {
|
||||
val staleOverride = SessionPrefs.hostFrameCap(30f, 120f)
|
||||
assertEquals(SessionPrefs.PIP_FPS, staleOverride)
|
||||
val own = SessionPrefs.compositorFpsLimit(0, 0, pip = false)
|
||||
assertEquals(120f, SessionPrefs.layerFrameRate(own, 120f, false), 0f)
|
||||
assertEquals(staleOverride, SessionPrefs.compositorFpsLimit(0, 0, pip = false, hostCap = staleOverride))
|
||||
assertEquals(SessionPrefs.FPS_UNPACED, SessionPrefs.compositorFpsLimit(0, 0, pip = false, hostCap = SessionPrefs.hostFrameCap(120f, 120f)))
|
||||
}
|
||||
|
||||
@Test fun theLayerVotesOnlyTheSessionsOwnLimits() {
|
||||
assertEquals(SessionPrefs.PIP_FPS.toFloat(), SessionPrefs.layerFrameRate(SessionPrefs.compositorFpsLimit(0, pip = true), 120f, false), 0f)
|
||||
assertEquals(45f, SessionPrefs.layerFrameRate(SessionPrefs.compositorFpsLimit(0, 45), 120f, false), 0f)
|
||||
assertEquals(60f, SessionPrefs.layerFrameRate(SessionPrefs.compositorFpsLimit(60), 120f, false), 0f)
|
||||
assertEquals(120f, SessionPrefs.layerFrameRate(SessionPrefs.FPS_UNPACED, 120f, false), 0f)
|
||||
}
|
||||
|
||||
@Test fun blackFrameInsertionKeepsThePanelRate() {
|
||||
assertEquals(120f, SessionPrefs.layerFrameRate(45, 120f, true), 0f)
|
||||
}
|
||||
}
|
||||
@@ -78,7 +78,7 @@ class ProtonExtrasTest {
|
||||
|
||||
@Test
|
||||
fun theSourcesInOrder() {
|
||||
assertEquals(listOf("ge", "cachyos", "droiddeck", "bionic"), ProtonExtras.tools.map { it.id })
|
||||
assertEquals(listOf("ge", "cachyos", "droiddeck", "anticheat", "bionic"), ProtonExtras.tools.map { it.id })
|
||||
val droiddeck = tool("droiddeck")
|
||||
assertEquals("DroidDeck-Proton", droiddeck.name)
|
||||
assertEquals("DroidDeck-Proton", droiddeck.prefix)
|
||||
@@ -88,6 +88,13 @@ class ProtonExtrasTest {
|
||||
assertFalse(droiddeck.assetPattern.containsMatchIn("DroidDeck-Proton-11-7.5-aarch64.sha512sum"))
|
||||
assertFalse(droiddeck.assetPattern.containsMatchIn("DroidDeck-Proton-11-7.5-aarch64.build-info.json"))
|
||||
assertFalse(tool("cachyos").assetPattern.containsMatchIn("proton-cachyos-11.0-20261005-slr-x86_64.tar.xz"))
|
||||
val antiCheat = tool("anticheat")
|
||||
assertEquals("Droid-Deck/DroidDeck-Proton", antiCheat.repo)
|
||||
assertEquals("DroidDeck-Proton", antiCheat.prefix)
|
||||
assertTrue(antiCheat.assetPattern.containsMatchIn("DroidDeck-Proton-11-14.3-x86_64.tar.gz"))
|
||||
assertFalse(antiCheat.assetPattern.containsMatchIn("DroidDeck-Proton-11-14.3-x86_64.sha512sum"))
|
||||
assertFalse(antiCheat.assetPattern.containsMatchIn("DroidDeck-Proton-11-14.3-aarch64.tar.gz"))
|
||||
assertFalse(droiddeck.assetPattern.containsMatchIn("DroidDeck-Proton-11-14.3-x86_64.tar.gz"))
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -181,6 +188,55 @@ class ProtonExtrasTest {
|
||||
assertEquals(emptyList<String>(), ProtonExtras.installedIn(File(tools, "missing"), tool("ge")))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun x86_64BuildsAreNotTakenForTheArm64Tool() {
|
||||
val tools = temp.newFolder("compatibilitytools.d")
|
||||
for (name in listOf("DroidDeck-Proton 11-7.5", "DroidDeck-Proton-11-14.2-x86_64")) installTool(tools, name)
|
||||
File(tools, "DroidDeck-Proton-11-14.2-x86_64/files/lib/wine/x86_64-unix").mkdirs()
|
||||
File(tools, "DroidDeck-Proton 11-7.5/files/lib/wine/x86_64-unix").mkdirs()
|
||||
File(tools, "DroidDeck-Proton 11-7.5/files/bin-arm64").mkdirs()
|
||||
assertEquals(listOf("DroidDeck-Proton 11-7.5"), ProtonExtras.installedIn(tools, tool("droiddeck")))
|
||||
assertTrue(ProtonExtras.x86_64Build(File(tools, "DroidDeck-Proton-11-14.2-x86_64")))
|
||||
assertEquals(listOf("DroidDeck-Proton-11-14.2-x86_64"), ProtonExtras.installedIn(tools, tool("anticheat")))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun theX86_64BuildIsFetchedOnlyForAnInstalledAntiCheatRuntimeUnlessTheUserRemovedIt() {
|
||||
val context = RuntimeEnvironment.getApplication()
|
||||
val tools = File(LinuxRuntime.rootDir(context), "root/.local/share/Steam/compatibilitytools.d")
|
||||
tools.deleteRecursively()
|
||||
File(context.filesDir, "proton-latest.json").writeText(
|
||||
"""{"anticheat":{"tag":"DroidDeck-Proton-11-14.3","at":1}}""")
|
||||
val antiCheat = tool("anticheat")
|
||||
ProtonExtras.setDeclined(context, false, "anticheat")
|
||||
assertNull(ProtonExtras.missing(context, antiCheat) { false })
|
||||
assertEquals("DroidDeck-Proton-11-14.3", ProtonExtras.missing(context, antiCheat) { true })
|
||||
ProtonExtras.setDeclined(context, true, "anticheat")
|
||||
assertNull(ProtonExtras.missing(context, antiCheat) { true })
|
||||
assertFalse(ProtonExtras.declined(context))
|
||||
ProtonExtras.setDeclined(context, false, "anticheat")
|
||||
installTool(tools, "DroidDeck-Proton 11-14.2")
|
||||
File(tools, "DroidDeck-Proton 11-14.2/files/bin-arm64").mkdirs()
|
||||
assertEquals("DroidDeck-Proton-11-14.3", ProtonExtras.missing(context, antiCheat) { true })
|
||||
installTool(tools, "DroidDeck-Proton-11-14.2-x86_64")
|
||||
File(tools, "DroidDeck-Proton-11-14.2-x86_64/files/lib/wine/x86_64-unix").mkdirs()
|
||||
assertNull(ProtonExtras.missing(context, antiCheat) { true })
|
||||
}
|
||||
|
||||
@Test
|
||||
fun anAntiCheatRuntimeInAnyLibraryCounts() {
|
||||
val first = temp.newFolder("library-a")
|
||||
val second = temp.newFolder("library-b")
|
||||
File(second, "steamapps").mkdirs()
|
||||
assertFalse(ProtonExtras.antiCheatRuntimeIn(listOf(first, second)))
|
||||
File(second, "steamapps/appmanifest_1161040.acf").writeText("")
|
||||
assertTrue(ProtonExtras.antiCheatRuntimeIn(listOf(first, second)))
|
||||
assertFalse(ProtonExtras.antiCheatRuntimeIn(listOf(first)))
|
||||
File(first, "steamapps").mkdirs()
|
||||
File(first, "steamapps/appmanifest_1826330.acf").writeText("")
|
||||
assertTrue(ProtonExtras.antiCheatRuntimeIn(listOf(first)))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun interruptedBuildsAreNotReportedAsInstalled() {
|
||||
val tools = temp.newFolder("compatibilitytools.d")
|
||||
@@ -218,6 +274,7 @@ class ProtonExtrasTest {
|
||||
.put("ge", JSONObject().put("tag", "GE-Proton11-7").put("at", now - 60_000))
|
||||
.put("cachyos", JSONObject().put("tag", "cachyos-11.0-20261005-slr").put("at", now - 60_000))
|
||||
.put("droiddeck", JSONObject().put("tag", "DroidDeck-Proton-11-7.6").put("at", now - ProtonExtras.CHECK_EVERY_MS + 60_000))
|
||||
.put("anticheat", JSONObject().put("tag", "DroidDeck-Proton-11-7.6").put("at", now - 60_000))
|
||||
File(context.filesDir, "proton-latest.json").writeText(latest.toString())
|
||||
assertFalse(ProtonExtras.checkLatest(context, now = now))
|
||||
assertEquals("DroidDeck-Proton-11-7.6", ProtonExtras.update(context, tool("droiddeck")))
|
||||
|
||||
@@ -10,6 +10,7 @@ import java.util.concurrent.TimeUnit
|
||||
import java.util.zip.ZipFile
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertNotNull
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.After
|
||||
import org.junit.Before
|
||||
@@ -116,6 +117,33 @@ class SessionLogShareZipTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Test fun theSessionsGameLogsAreSharedBeforeBulkySteamClientLogsUseTheBudget() {
|
||||
val session = File(LinuxRuntime.logDir(app), "2026-12-05-08-steam").apply { mkdirs() }
|
||||
val out = File(app.getExternalFilesDir(null), "agent-logs/budget")
|
||||
try {
|
||||
File(session, "session.log").writeText("booted\n")
|
||||
val steam = File(session, "steam").apply { mkdirs() }
|
||||
listOf("console_log.txt", "webhelper_js.txt", "cef_log.txt").forEach {
|
||||
File(steam, it).writeText("client line\n".repeat(600))
|
||||
}
|
||||
File(session, "steam-1568590.log").writeText("Proton: x86-64\nerr:module:load\n")
|
||||
File(session, "games").apply { mkdirs() }.resolve("dxvk.log").writeText("info: DXVK\n")
|
||||
val limits = EnhancedShareLimits(maxFilesPerArchive = 512, maxBytesPerFile = 8192, maxBytesTotal = 6000)
|
||||
|
||||
val zip = EnhancedSessionLogShare.createLegacy(app, session, outputDirectory = out, limits = limits)!!
|
||||
ZipFile(zip).use { archive ->
|
||||
assertNotNull(archive.getEntry("${session.name}/session.log"))
|
||||
val proton = archive.getEntry("${session.name}/steam-1568590.log")!!
|
||||
assertTrue(archive.getInputStream(proton).bufferedReader().readText().contains("err:module:load"))
|
||||
assertTrue(archive.entries().toList().any { it.name.startsWith("${session.name}/games/") })
|
||||
assertTrue(archive.entries().toList().count { it.name.startsWith("${session.name}/steam/") } < 3)
|
||||
}
|
||||
} finally {
|
||||
out.deleteRecursively()
|
||||
session.deleteRecursively()
|
||||
}
|
||||
}
|
||||
|
||||
@Test fun everyTextFileInTheZipIsScrubbedAndTheStoresAndToolsLogsComeAlong() {
|
||||
val logs = LinuxRuntime.logDir(app)
|
||||
val session = File(logs, "2026-10-08-01-steam").apply { mkdirs() }
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
package com.droiddeck.launcher.session
|
||||
|
||||
import android.content.Context
|
||||
import org.json.JSONObject
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Before
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import org.robolectric.RobolectricTestRunner
|
||||
import org.robolectric.RuntimeEnvironment
|
||||
import org.robolectric.annotation.Config
|
||||
|
||||
@RunWith(RobolectricTestRunner::class)
|
||||
@Config(sdk = [28], manifest = Config.NONE)
|
||||
class SessionPrefsUpscalerTest {
|
||||
private lateinit var context: Context
|
||||
|
||||
@Before fun setUp() {
|
||||
context = RuntimeEnvironment.getApplication()
|
||||
context.getSharedPreferences("session", Context.MODE_PRIVATE).edit().clear().commit()
|
||||
}
|
||||
|
||||
@Test fun gameOverridesAreIsolatedAndFallBackToTheGlobalFilter() {
|
||||
SessionPrefs.setUpscaler(context, 4)
|
||||
SessionPrefs.setGameUpscaler(context, "12345", 7)
|
||||
|
||||
assertEquals(4, SessionPrefs.upscaler(context))
|
||||
assertEquals(7, SessionPrefs.screenEffectsUpscaler(context, "game:12345"))
|
||||
assertEquals(4, SessionPrefs.screenEffectsUpscaler(context, "game:54321"))
|
||||
assertTrue(SessionPrefs.hasGameUpscalerOverride(context, "12345"))
|
||||
assertFalse(SessionPrefs.hasGameUpscalerOverride(context, "54321"))
|
||||
assertFalse(SessionPrefs.hasScreenEffectsOverride(context, "game:12345"))
|
||||
}
|
||||
|
||||
@Test fun resettingGameOverrideRestoresTheGlobalFilter() {
|
||||
SessionPrefs.setUpscaler(context, 3)
|
||||
SessionPrefs.setGameUpscaler(context, "12345", 6)
|
||||
|
||||
SessionPrefs.clearGameUpscaler(context, "12345")
|
||||
|
||||
assertFalse(SessionPrefs.hasGameUpscalerOverride(context, "12345"))
|
||||
assertEquals(3, SessionPrefs.screenEffectsUpscaler(context, "game:12345"))
|
||||
}
|
||||
|
||||
@Test fun screenEffectsUpscalerApiKeepsGameFiltersSeparateFromScreenEffects() {
|
||||
SessionPrefs.setUpscaler(context, 4)
|
||||
SessionPrefs.setScreenEffectsUpscaler(context, "game:12345", 8)
|
||||
|
||||
assertEquals(8, SessionPrefs.screenEffectsUpscaler(context, "game:12345"))
|
||||
assertFalse(SessionPrefs.hasScreenEffectsOverride(context, "game:12345"))
|
||||
}
|
||||
|
||||
@Test fun legacyGameFilterOverridesRemainReadableAndCanBeReset() {
|
||||
val profile = JSONObject().put("upscaler", 6)
|
||||
val profiles = JSONObject().put("game:12345", profile)
|
||||
context.getSharedPreferences("session", Context.MODE_PRIVATE).edit()
|
||||
.putString("screenEffects.profiles", profiles.toString()).commit()
|
||||
|
||||
assertTrue(SessionPrefs.hasGameUpscalerOverride(context, "12345"))
|
||||
assertEquals(6, SessionPrefs.screenEffectsUpscaler(context, "game:12345"))
|
||||
|
||||
SessionPrefs.clearGameUpscaler(context, "12345")
|
||||
|
||||
assertFalse(SessionPrefs.hasGameUpscalerOverride(context, "12345"))
|
||||
assertEquals(2, SessionPrefs.screenEffectsUpscaler(context, "game:12345"))
|
||||
assertFalse(SessionPrefs.hasScreenEffectsOverride(context, "game:12345"))
|
||||
}
|
||||
|
||||
@Test fun deletingGameScreenEffectsProfileClearsUpscalerOverrideEvenWithoutEffectsProfile() {
|
||||
SessionPrefs.setGameUpscaler(context, "12345", 6)
|
||||
|
||||
SessionPrefs.deleteScreenEffectsProfile(context, "game:12345")
|
||||
|
||||
assertFalse(SessionPrefs.hasGameUpscalerOverride(context, "12345"))
|
||||
assertEquals(SessionPrefs.upscaler(context), SessionPrefs.screenEffectsUpscaler(context, "game:12345"))
|
||||
}
|
||||
}
|
||||
@@ -77,6 +77,59 @@ class InputSurfaceTouchTest {
|
||||
assertFalse(state().isDown(PadState.A))
|
||||
}
|
||||
|
||||
@Test fun anOutsideHoldPressesAndLightsTheButtonAlongsideAFinger() {
|
||||
val surface = view.inputSurface
|
||||
val button = (surface.javaClass.getDeclaredField("customCanvas").also { it.isAccessible = true }.get(surface) as ViewGroup).getChildAt(0)
|
||||
fun lit() = button.javaClass.getDeclaredMethod("getHighlighted").also { it.isAccessible = true }.invoke(button) as Boolean
|
||||
|
||||
assertTrue(surface.hold(a.id, 0, true))
|
||||
assertTrue(state().isDown(PadState.A))
|
||||
assertTrue(lit())
|
||||
touch(MotionEvent.ACTION_DOWN, 1 to (800f to 240f))
|
||||
touch(MotionEvent.ACTION_UP, 1 to (800f to 240f))
|
||||
assertTrue(state().isDown(PadState.A))
|
||||
assertTrue(surface.hold(a.id, 0, false))
|
||||
assertFalse(state().isDown(PadState.A))
|
||||
assertFalse(lit())
|
||||
assertFalse(surface.hold("custom:missing", 0, true))
|
||||
}
|
||||
|
||||
@Test fun aCancelledTouchLeavesAnOutsideHoldOnTheButton() {
|
||||
val surface = view.inputSurface
|
||||
assertTrue(surface.hold(a.id, 0, true))
|
||||
touch(MotionEvent.ACTION_DOWN, 1 to (800f to 240f))
|
||||
touch(MotionEvent.ACTION_CANCEL, 1 to (800f to 240f))
|
||||
assertTrue(state().isDown(PadState.A))
|
||||
assertTrue(surface.hold(a.id, 0, false))
|
||||
assertFalse(state().isDown(PadState.A))
|
||||
}
|
||||
|
||||
@Test fun releasingAllInputLetsGoOfAnOutsideHold() {
|
||||
val surface = view.inputSurface
|
||||
val button = (surface.javaClass.getDeclaredField("customCanvas").also { it.isAccessible = true }.get(surface) as ViewGroup).getChildAt(0)
|
||||
fun lit() = button.javaClass.getDeclaredMethod("getHighlighted").also { it.isAccessible = true }.invoke(button) as Boolean
|
||||
|
||||
assertTrue(surface.hold(a.id, 0, true))
|
||||
view.releaseAll()
|
||||
assertFalse(state().isDown(PadState.A))
|
||||
assertFalse(lit())
|
||||
touch(MotionEvent.ACTION_DOWN, 1 to (800f to 240f))
|
||||
assertTrue(state().isDown(PadState.A))
|
||||
touch(MotionEvent.ACTION_UP, 1 to (800f to 240f))
|
||||
assertTrue(surface.hold(a.id, 0, false))
|
||||
assertFalse(state().isDown(PadState.A))
|
||||
}
|
||||
|
||||
@Test fun aCancelledOutsideHoldDoesNotRunTheButtonsCommand() {
|
||||
val surface = view.inputSurface
|
||||
assertTrue(surface.hold(keyboard.id, 0, true))
|
||||
assertTrue(surface.hold(keyboard.id, 0, false, cancelled = true))
|
||||
assertEquals(emptyList<String>(), events)
|
||||
assertTrue(surface.hold(keyboard.id, 0, true))
|
||||
assertTrue(surface.hold(keyboard.id, 0, false))
|
||||
assertEquals(listOf("KEYBOARD:PRIMARY"), events)
|
||||
}
|
||||
|
||||
@Test fun steamDeckStylingKeepsTheHeldButtonAndItsHitArea() {
|
||||
val button = a.copy(buttonShape = InputButtonShape.CIRCLE)
|
||||
show(button)
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
# Easy Anti-Cheat and BattlEye
|
||||
|
||||
On a Steam Deck, Proton loads Valve's anti-cheat runtimes (Proton EasyAntiCheat Runtime, app 1826330, and
|
||||
Proton BattlEye Runtime, app 1161040). Their bridge libraries are x86 only, so the ARM64 DroidDeck-Proton
|
||||
cannot load them. Games that need them run an x86-64 DroidDeck-Proton under FEX instead.
|
||||
|
||||
## Routing
|
||||
|
||||
The Proton launchers (`steam-compatibility`: the built-in DroidDeck-Proton launcher and the wrapper put around
|
||||
every tool in `compatibilitytools.d`) check each `run` and `waitforexitandrun` before any ARM64 setup:
|
||||
|
||||
- **Condition.** The game folder (`STEAM_COMPAT_INSTALL_PATH`, three levels deep) holds one of
|
||||
`EasyAntiCheat/Settings.json`, `easyanticheat_x64.so`, `BEClient_x64.so` or `BEService_x64.exe`. No
|
||||
title, app ID or device list is involved.
|
||||
- **Chosen tool.** Only launches through DroidDeck's own Proton (the built-in launcher or a `DroidDeck-Proton*`
|
||||
folder) are moved. A game set to any other tool, such as GE-Proton, Bionic or Valve's Proton, in DroidDeck or
|
||||
in Steam's Properties, runs on that tool and the launcher logs that it was chosen.
|
||||
- **Tool.** The newest `compatibilitytools.d/DroidDeck-Proton*` whose layout is x86-64
|
||||
(`files/lib/wine/x86_64-unix`, no `files/bin-arm64`).
|
||||
- **Runtime.** `PROTON_EAC_RUNTIME` or `PROTON_BATTLEYE_RUNTIME` when it already points at a folder with the
|
||||
bridge libraries, otherwise the runtime's folder in any Steam library.
|
||||
- **Launch.** `droiddeck-fex proton <tool>/proton <verb> <args>`: FEX with the Steam Linux Runtime rootfs,
|
||||
keeping the game's own `STEAM_COMPAT_DATA_PATH` prefix.
|
||||
|
||||
Without the x86-64 tool or the runtime files the launch stays on ARM64 and the launcher logs why.
|
||||
`DROIDDECK_ANTICHEAT=off` in the game's launch options keeps it on ARM64. Picking the x86-64 tool for a
|
||||
game in Steam always runs it under FEX.
|
||||
|
||||
## Why the x86-64 build needs its own Wine patches
|
||||
|
||||
Android kernels use 39-bit user address spaces. Easy Anti-Cheat's launcher maps fixed memory at
|
||||
`0x7001_0000_0000`, which FEX serves from emulated guest pages (`tools/fex/patches/0027`). Exclusive load and store pairs on that
|
||||
memory are emulated as a compare-and-swap, so hosts without LSE atomics work too. `tools/fex/probes/guest-high-memory.c`
|
||||
checks loads, stores, atomics, iovec system calls, `madvise` and code written through a high alias. The x86-64 Wine
|
||||
in DroidDeck-Proton carries `ntdll-fixed-allocations-above-host-address-limit.patch` (fixed mappings above
|
||||
the host limit go to the emulator) and `ntdll-keep-libc-in-native-syscall-dispatch-range.patch` (the
|
||||
re-armed syscall user dispatch range keeps libc native). Stock x86-64 Proton stops after "Hack native
|
||||
syscalls" on the same game.
|
||||
|
||||
Easy Anti-Cheat's launcher attaches to the game with ptrace, stops it on a `rt_sigprocmask` call, runs its
|
||||
own loader and restores the registers it saved at the stop. The call then returns `ENOSYS` without writing
|
||||
the old mask, as it does on a desktop kernel. `ntdll-retry-blocking-signals-dropped-by-a-tracer.patch`
|
||||
retries the block once when it fails, so Wine never restores an uninitialised mask that blocks `SIGSYS`.
|
||||
|
||||
## The container's procfs
|
||||
|
||||
Android mounts `/proc` with `hidepid=invisible,gid=3009`, and Easy Anti-Cheat refuses that mount with
|
||||
launch error 261. Without root, user namespaces or PID namespaces, no procfs instance without those options
|
||||
can be mounted. Every program in the container runs as the app's user and already sees all of the
|
||||
container's processes, as it would in a PID-namespaced sandbox on a desktop, so FEX's emulated
|
||||
`/proc/<pid>/mounts` and `/proc/<pid>/mountinfo` show the proc mount without `hidepid=`, `gid=` and
|
||||
`subset=` (`tools/fex/patches/0029`). Only x86 programs under FEX see this view; every other line of the
|
||||
table is the host's. Processes of other Android users stay hidden, as host processes do from a desktop
|
||||
sandbox.
|
||||
@@ -117,7 +117,7 @@ the UI shows a restart reminder instead of enabling logs that would be discarded
|
||||
| `PROTON_LOG` | `1` |
|
||||
| `PROTON_LOG_DIR`, `PROTON_CRASH_REPORT_DIR`, `DXVK_LOG_PATH` | The actual session log directory |
|
||||
| `DXVK_LOG_LEVEL` | `debug` |
|
||||
| `VKD3D_DEBUG` | `info` |
|
||||
| `VKD3D_DEBUG`, `VKD3D_SHADER_DEBUG` | `warn` |
|
||||
| `WINEDEBUG` | Valid custom channels plus Proton's standard diagnostic channels |
|
||||
|
||||
Diagnostics take precedence over conflicting inherited, shared, or per-game log
|
||||
@@ -193,6 +193,14 @@ A Unity game under FEX (`UnityPlayer.dll` for Windows builds under Proton,
|
||||
turns it off: without TSO such games can deadlock or crash (seen with Megabonk
|
||||
and Crab Game). A FEX preset chosen for the game itself still applies.
|
||||
|
||||
A game that ships the PlayStation PC SDK runtime installer
|
||||
(`install_pspc_sdk_runtime.bat`, `PsPcSdkRuntimeInstaller.msi` or
|
||||
`PsPcSdkRuntimeManager.msi`, next to the executable, one folder below, or in an
|
||||
Unreal launcher's `<Project>/Binaries/Win64`) gets FEX's full x87 precision.
|
||||
The SDK's obfuscated x87 code depends on full precision; with reduced precision
|
||||
the game crashes or hangs at startup (FEX-Emu/FEX#4556, FEX-Emu/FEX#5988). A
|
||||
FEX preset or value chosen for the game itself still applies.
|
||||
|
||||
An Inno Setup installer added as a game runs with the Stability preset's FEX
|
||||
settings (full TSO, full x87 precision, no multiblock). Under the default
|
||||
Performance + TSO preset the 32-bit setup stub corrupts its own paths and stops
|
||||
|
||||
@@ -216,9 +216,10 @@ alone would then read as an installed client.
|
||||
NullReferenceException, internal CLR errors). A writable mapping or mprotect now write-protects the
|
||||
overlapping part of any alias that is already executable, so the first write faults and invalidates.
|
||||
`FEX_SMCCHECKS=full` was the only workaround; no setting is needed with the patch.
|
||||
- `0007-cmake-install-code-without-depends`: CMake 4.5 rejects the `DEPENDS` argument FEX passes to
|
||||
`install(CODE ...)` for the guest thunk libraries, so builds with host thunks stopped at configure.
|
||||
The guest libraries are external projects in the default build, which `install` already follows.
|
||||
- `0007-cmake-install-code-without-depends` (`Fixed-upstream: FEX-2612`): CMake 4.5 rejects the
|
||||
`DEPENDS` argument FEX passes to `install(CODE ...)` for the guest thunk libraries, so builds with
|
||||
host thunks stopped at configure. The guest libraries are external projects in the default build,
|
||||
which `install` already follows.
|
||||
- `0008-signal-return-restores-syscall-state`: a guest `rt_sigreturn` is a system call, so FEX's
|
||||
syscall stub marks every static register as spilled (`InSyscallInfo = 0xFFFF`). When the handler
|
||||
left RIP alone, the return resumed the interrupted JIT code without passing the stub's reset, and
|
||||
|
||||
@@ -1,121 +0,0 @@
|
||||
# DroidDeck 0.8.0
|
||||
|
||||
Since 0.7.11: **24 contributors** | **189 pull requests** | **55 of them from 21 outside contributors**. Thank you to everyone who built, tested, or reported issues.
|
||||
|
||||
**From a fresh install to Steam in under three minutes.** You can open the Steam client without enabling Developer Options or wireless debugging. Steam and your games now run outside Android’s child-process limit by default, so hitting that limit won’t end your session. Fresh installs start with DroidDeck-Proton and only fetch Valve’s ARM64 Proton when it’s needed. Thanks to **@xXJSONDeruloXx** and **@The412Banner** for making that first launch simpler.
|
||||
|
||||
**Find the setting without digging through the drawer.** Closed sections show their current settings: you can see your active controller or mouse mode without opening either group. Open the one you need, then collapse it to keep browsing. A wide drawer keeps more groups in view across two columns, and you can move through it with a controller. Thanks to **@xXJSONDeruloXx** for the drawer redesign.
|
||||
|
||||
<p align="center"><img src="media/0.8.0/session-drawer-groups.gif" width="90%" alt="On a Pocket FIT, the drawer widens from one column into two, then opens and closes Device settings and Mouse to reveal their summaries"></p>
|
||||
|
||||
On a phone or foldable, **Controls below the game** drops the toolbar and moves the layout picker into the drawer, leaving more room for the pad. Steam and Desktop can use different orientations. In Steam, you can also save separate picture positions for portrait and landscape. New on-screen layouts keep both sticks visible at rest.
|
||||
|
||||
<p align="center"><img src="media/0.8.0/portrait-controls.jpg" width="36%" alt="Top-aligned Geometry Wars in portrait on a Pocket FIT, with both analog sticks visible below the picture"></p>
|
||||
|
||||
### Put the bottom screen to work
|
||||
|
||||
Keep the game up top and use the lower screen for something you would normally pause to look up. Open a Steam guide, check achievements or compatibility notes, save a page for offline reading, or pin an image as a map and add your own markers. You can also put game art down there, mirror just a region of the game, or open **Steam and Quick Access side by side**. The captures below show both screens on an AYN Thor.
|
||||
|
||||
<p align="center"><img src="media/0.8.0/dual-screen-guide-reader-stacked.jpg" width="48%" alt="Bully gameplay on the top screen and the list of Steam community guides on the bottom screen"> <img src="media/0.8.0/dual-screen-guides-stacked.jpg" width="48%" alt="Bully gameplay on the top screen and its Interactive Map open on the bottom screen"></p>
|
||||
|
||||
*Browse Steam guides while playing Bully, left, or open the interactive map, right.*
|
||||
|
||||
<p align="center"><img src="media/0.8.0/dual-screen-quick-access-stacked.jpg" width="48%" alt="Steam home above the Steam menu and Quick Access Performance side by side"> <img src="media/0.8.0/dual-screen-game-art.gif" width="48%" alt="Browsing Steam games on the top screen changes the artwork on the bottom screen"></p>
|
||||
|
||||
*Steam and Quick Access share the bottom screen, left. Game Art follows your selection, right.*
|
||||
|
||||
<p align="center"><img src="media/0.8.0/dual-screen-mirror-stacked.jpg" width="56%" alt="Trails in the Sky 1st Chapter on the top screen; the bottom screen magnifies the minimap and current objective"></p>
|
||||
|
||||
*Mirror magnifies the minimap and current objective in Trails in the Sky 1st Chapter without covering the game.*
|
||||
|
||||
**Try ZeroFG when it suits the game.** The **Frame Generation** tab has a D-pad-friendly engine picker with ZeroFG and optional ZeroPacer. Some testers preferred how ZeroFG felt in their games; others saw rendering or performance issues. It’s another option, not a new default. Frame generation stays off until you turn it on. Thanks to **@hy300leosquizz-ctrl** for creating ZeroFG and **@EnzoDLofi** for bringing it to DroidDeck.
|
||||
|
||||
There’s more to play from the **Library**, too. Install owned Steam games straight from their Library page after signing in to Steam, browse the full Xbox Cloud Gaming catalog, or launch supported original Xbox games sold through the PC Xbox Store.
|
||||
|
||||
<p align="center"><img src="media/0.8.0/xbox-originals-collage.jpg" width="90%" alt="DroidDeck’s Xbox library filter shows installed original Xbox games next to the title screens for Morrowind, Grabbed by the Ghoulies, and Crimson Skies"></p>
|
||||
|
||||
*Original Xbox titles in DroidDeck’s Library, alongside three title screens from @The412Banner’s early compatibility testing.*
|
||||
|
||||
<p align="center"><img src="media/0.8.0/fuzion-frenzy-xbox.gif" width="65%" alt="Four-player Fuzion Frenzy Coliseum gameplay on DroidDeck, recorded by The412Banner"></p>
|
||||
|
||||
*Fuzion Frenzy running in an early Xbox compatibility build, captured by @The412Banner.*
|
||||
|
||||
On Quest, **@FryMcNugget** brought the DroidDeck menu and keyboards into the immersive SteamVR view ([see it on Quest 3](https://youtu.be/K9k4JVZ7dTE)).
|
||||
|
||||
For a different look, **@JRAlmonte’s Frosted launcher** lets blurred wallpaper show through cards. The original look is still the default.
|
||||
|
||||
<p align="center"><img src="media/0.8.0/frosted-launcher.jpg" width="75%" alt="DroidDeck Library shown with Frosted off, with blurred wallpaper, and with blurred wallpaper and translucent cards"></p>
|
||||
|
||||
See the [full changelog](#full-changelog) for details and contributor credits.
|
||||
|
||||
## Full changelog
|
||||
|
||||
Changes since [0.7.11](https://github.com/Droid-Deck/DroidDeck/releases/tag/0.7.11).
|
||||
|
||||
### New features and improvements
|
||||
|
||||
- Steam and KDE Plasma sessions run outside Android’s child-process count by default. First-run Steam setup no longer needs the Developer Options or wireless-debugging workaround and can open Steam when setup finishes. (@xXJSONDeruloXx and @The412Banner [#3338](https://github.com/Droid-Deck/DroidDeck/pull/3338); @xXJSONDeruloXx [#3599](https://github.com/Droid-Deck/DroidDeck/pull/3599), [#3639](https://github.com/Droid-Deck/DroidDeck/pull/3639), [#3430](https://github.com/Droid-Deck/DroidDeck/pull/3430))
|
||||
- DroidDeck-Proton is ready by default; Valve’s ARM64 Proton downloads only when needed. Steam also starts without waiting for the added-games scan and follows network changes into and out of offline mode. (@The412Banner [#3217](https://github.com/Droid-Deck/DroidDeck/pull/3217), [#2734](https://github.com/Droid-Deck/DroidDeck/pull/2734); @maxjivi05 [#3230](https://github.com/Droid-Deck/DroidDeck/pull/3230))
|
||||
- Launch the native desktop and apps as a normal user, get device and disk details from fastfetch, and optionally leave phone storage unmounted. (@xXJSONDeruloXx [#3587](https://github.com/Droid-Deck/DroidDeck/pull/3587), [#3231](https://github.com/Droid-Deck/DroidDeck/pull/3231); @superboo07 [#1443](https://github.com/Droid-Deck/DroidDeck/pull/1443))
|
||||
- ZeroFG and optional ZeroPacer join the dedicated Frame Generation tab. The engine picker and game zoom are controller-friendly, and zoom can be changed without leaving the game. (@EnzoDLofi [#3552](https://github.com/Droid-Deck/DroidDeck/pull/3552), [#3549](https://github.com/Droid-Deck/DroidDeck/pull/3549), [#3361](https://github.com/Droid-Deck/DroidDeck/pull/3361); @xXJSONDeruloXx [#3669](https://github.com/Droid-Deck/DroidDeck/pull/3669); original [ZeroFG](https://github.com/hy300leosquizz-ctrl/ZeroFG) by @hy300leosquizz-ctrl)
|
||||
- Set Steam and desktop orientation separately, and set portrait and landscape Steam picture positions independently from the live menu. (@EnzoDLofi [#3567](https://github.com/Droid-Deck/DroidDeck/pull/3567); @xXJSONDeruloXx [#3661](https://github.com/Droid-Deck/DroidDeck/pull/3661))
|
||||
- New optional Steam display mode for direct game frames on eligible Adreno setups with a compatible Gamescope and driver. It is experimental, off by default, and takes effect after restart. (@xXJSONDeruloXx [#3651](https://github.com/Droid-Deck/DroidDeck/pull/3651))
|
||||
- New AMD CAS, an updated NIS upscaler, improved SMAA, and spatial post-upscaling for generated frames. Screen-effect pipelines are created only as needed. (@The412Banner [#3391](https://github.com/Droid-Deck/DroidDeck/pull/3391); @EnzoDLofi [#3051](https://github.com/Droid-Deck/DroidDeck/pull/3051), [#3454](https://github.com/Droid-Deck/DroidDeck/pull/3454), [#3453](https://github.com/Droid-Deck/DroidDeck/pull/3453))
|
||||
- The HUD starts unlocked on fresh installs and defaults to FPS and 1% low, with extra metrics still available. (@xXJSONDeruloXx [#3251](https://github.com/Droid-Deck/DroidDeck/pull/3251), [#3660](https://github.com/Droid-Deck/DroidDeck/pull/3660))
|
||||
- The session drawer has collapsible groups and summaries, can expand full-width, and uses two columns where they fit. (@xXJSONDeruloXx [#3550](https://github.com/Droid-Deck/DroidDeck/pull/3550), [#3691](https://github.com/Droid-Deck/DroidDeck/pull/3691), [#3694](https://github.com/Droid-Deck/DroidDeck/pull/3694))
|
||||
- Steam and Quick Access can sit side by side on the bottom screen. New companion panels include Quick Access, game art, guides and a cropped mirror of the game. (@xXJSONDeruloXx [#3501](https://github.com/Droid-Deck/DroidDeck/pull/3501), [#3290](https://github.com/Droid-Deck/DroidDeck/pull/3290))
|
||||
- Controls below the game has more room: the full-width toolbar is gone and the layout picker moved to the session drawer. The in-game menu adds a live control-size slider and opacity adjustment; sticks are visible by default. (@xXJSONDeruloXx [#3653](https://github.com/Droid-Deck/DroidDeck/pull/3653), [#3662](https://github.com/Droid-Deck/DroidDeck/pull/3662); @EnzoDLofi [#3237](https://github.com/Droid-Deck/DroidDeck/pull/3237))
|
||||
- Narrow tab bars can switch to dropdowns. The launcher keeps the game-detail tabs accessible and uses compact Library and Store filters in portrait. (@xXJSONDeruloXx [#3640](https://github.com/Droid-Deck/DroidDeck/pull/3640), [#3658](https://github.com/Droid-Deck/DroidDeck/pull/3658))
|
||||
- Try blurred wallpaper and translucent cards under Setup → Launcher → Frosted. Custom themes can change the Warning color, and Smart Glasses users can hide the shortcut. (@JRAlmonte [#3559](https://github.com/Droid-Deck/DroidDeck/pull/3559); @EnzoDLofi [#3287](https://github.com/Droid-Deck/DroidDeck/pull/3287), [#3564](https://github.com/Droid-Deck/DroidDeck/pull/3564))
|
||||
- The Apps tab appears when DroidDeck is your home app, and More stays accessible so tabs can always be edited. VR starts under More in the session menu. (@xXJSONDeruloXx [#3215](https://github.com/Droid-Deck/DroidDeck/pull/3215), [#3655](https://github.com/Droid-Deck/DroidDeck/pull/3655); @maxjivi05 [#3556](https://github.com/Droid-Deck/DroidDeck/pull/3556))
|
||||
- The Updates page puts your installed build and channel selection first, lists Lab builds under the installed build, and uses two panes in landscape. Browsing Tests no longer shows an update offer for the Stable or Preview channel you follow. Settings search opens, scrolls to, and highlights the matching row. (@xXJSONDeruloXx [#3643](https://github.com/Droid-Deck/DroidDeck/pull/3643), [#3667](https://github.com/Droid-Deck/DroidDeck/pull/3667), [#3707](https://github.com/Droid-Deck/DroidDeck/pull/3707), [#3657](https://github.com/Droid-Deck/DroidDeck/pull/3657))
|
||||
- Install Steam games from the Library. Launch Battle.net from the Library while Stores sits under More. Edit launch options for EA store games, and start supported Steam editions of EA titles without the EA app. (@xXJSONDeruloXx [#3272](https://github.com/Droid-Deck/DroidDeck/pull/3272), [#3285](https://github.com/Droid-Deck/DroidDeck/pull/3285), [#2444](https://github.com/Droid-Deck/DroidDeck/pull/2444); @FryMcNugget [#3021](https://github.com/Droid-Deck/DroidDeck/pull/3021))
|
||||
- Play supported original Xbox titles sold in the PC Xbox Store. Xbox Cloud Gaming gets its full catalog, launch art, a Cancel button, and stereo audio on your usual audio output; the Xbox Store adds a legacy installer option. (@The412Banner [#3638](https://github.com/Droid-Deck/DroidDeck/pull/3638), [#3232](https://github.com/Droid-Deck/DroidDeck/pull/3232); @EnzoDLofi [#3229](https://github.com/Droid-Deck/DroidDeck/pull/3229); Cloud improvements draw on Bannerlator and Even Better xCloud)
|
||||
- Open the add-on browser on CurseForge and update all outdated add-ons at once. (@maxjivi05 [#3292](https://github.com/Droid-Deck/DroidDeck/pull/3292))
|
||||
- On Quest, connect the agent without a pairing screen and bring the DroidDeck menu, agent pet, and keyboards into the immersive SteamVR view. (@FryMcNugget [#3445](https://github.com/Droid-Deck/DroidDeck/pull/3445), [#3596](https://github.com/Droid-Deck/DroidDeck/pull/3596))
|
||||
- Agent chat displays images inline and can open pictures full-screen. The attach button can show recent photos in place of the keyboard. Enabled secondary buttons under the newest reply are outlined. (@xXJSONDeruloXx [#3643](https://github.com/Droid-Deck/DroidDeck/pull/3643), [#3668](https://github.com/Droid-Deck/DroidDeck/pull/3668), [#3702](https://github.com/Droid-Deck/DroidDeck/pull/3702), [#3697](https://github.com/Droid-Deck/DroidDeck/pull/3697))
|
||||
- Updated how DroidDeck detects Lossless Scaling installations from Steam. (@xXJSONDeruloXx [#3654](https://github.com/Droid-Deck/DroidDeck/pull/3654))
|
||||
|
||||
### Fixes and compatibility
|
||||
|
||||
- Fixed setup when the app is backgrounded. Shared storage asks for all-files access only when needed, with a clearer warning and reload when an Android/data folder needs permission again. (@The412Banner [#3212](https://github.com/Droid-Deck/DroidDeck/pull/3212); @xXJSONDeruloXx [#3429](https://github.com/Droid-Deck/DroidDeck/pull/3429), [#3435](https://github.com/Droid-Deck/DroidDeck/pull/3435))
|
||||
- Sleep freezes worker processes too. Fixed Plasma startup after the process handoff and cleaned up exited workers and leftover PRoot processes. (@xXJSONDeruloXx [#3665](https://github.com/Droid-Deck/DroidDeck/pull/3665), [#3610](https://github.com/Droid-Deck/DroidDeck/pull/3610), [#3376](https://github.com/Droid-Deck/DroidDeck/pull/3376); @maxjivi05 [#3594](https://github.com/Droid-Deck/DroidDeck/pull/3594))
|
||||
- Switching to Desktop no longer leaves the loading screen up; signing out of the desktop returns to DroidDeck. Help Center, Software Sources, and the driver manager can open again. (@xXJSONDeruloXx [#3227](https://github.com/Droid-Deck/DroidDeck/pull/3227); @maxjivi05 [#3374](https://github.com/Droid-Deck/DroidDeck/pull/3374), [#3371](https://github.com/Droid-Deck/DroidDeck/pull/3371))
|
||||
- Native desktop Downloads, Documents, and game folders work again, with Downloads and Documents writable in the file manager. Launches through host-mounted paths and PRoot symlink restoration were fixed. (@maxjivi05 [#3273](https://github.com/Droid-Deck/DroidDeck/pull/3273), [#3274](https://github.com/Droid-Deck/DroidDeck/pull/3274); @The412Banner [#3211](https://github.com/Droid-Deck/DroidDeck/pull/3211); @The412Banner and @xXJSONDeruloXx and @maxjivi05 [#2934](https://github.com/Droid-Deck/DroidDeck/pull/2934))
|
||||
- Fixed guest path reporting, shell launches, terminal controls, helper startup outside a session, and thermal mounts that leaked into the guest PCI view. (@maxjivi05 [#3481](https://github.com/Droid-Deck/DroidDeck/pull/3481), [#3447](https://github.com/Droid-Deck/DroidDeck/pull/3447); @xXJSONDeruloXx [#3357](https://github.com/Droid-Deck/DroidDeck/pull/3357), [#3585](https://github.com/Droid-Deck/DroidDeck/pull/3585); @FryMcNugget [#3595](https://github.com/Droid-Deck/DroidDeck/pull/3595))
|
||||
- Fixed early native-userland exits in Flycast, Rosalie’s Mupen GUI, and xemu; also fixed the first HTTPS request in older Unity 5 games and some Inno Setup installers. (@JRAlmonte [#3704](https://github.com/Droid-Deck/DroidDeck/pull/3704); @FryMcNugget [#3394](https://github.com/Droid-Deck/DroidDeck/pull/3394); @Dhi13man and @xXJSONDeruloXx [#3069](https://github.com/Droid-Deck/DroidDeck/pull/3069))
|
||||
- DroidDeck-Bionic moved to the DroidDeck-Proton 11-14.1 Wine layer. Fixed launcher-started games in existing Proton prefixes, in-game videos, and DirectAudio settings including microphone options. (@The412Banner [#3389](https://github.com/Droid-Deck/DroidDeck/pull/3389); @xlulx [#3336](https://github.com/Droid-Deck/DroidDeck/pull/3336), [#3277](https://github.com/Droid-Deck/DroidDeck/pull/3277); @measlesbagel [#3294](https://github.com/Droid-Deck/DroidDeck/pull/3294))
|
||||
- Restored the Steam overlay in Wine games running without PRoot. Fixed starting a new game in Steam’s GTA III, installed the actual ARM64 Visual C++ runtime, and addressed unavailable Steam ARM64 tool dependencies. (@haylibi [#3577](https://github.com/Droid-Deck/DroidDeck/pull/3577); @Unixcision and @xXJSONDeruloXx [#3197](https://github.com/Droid-Deck/DroidDeck/pull/3197); @xXJSONDeruloXx [#2430](https://github.com/Droid-Deck/DroidDeck/pull/2430); @maxjivi05 [#3443](https://github.com/Droid-Deck/DroidDeck/pull/3443))
|
||||
- Fixed FEX stack collisions, .NET guest thread suspension, and GPU rendering for x86-64 Wayland apps. (@maxjivi05 [#3623](https://github.com/Droid-Deck/DroidDeck/pull/3623), [#3291](https://github.com/Droid-Deck/DroidDeck/pull/3291), [#3174](https://github.com/Droid-Deck/DroidDeck/pull/3174))
|
||||
- Restored Chinese input in Android and Steam keyboards, included IBus for Steam pinyin, and fixed XR keyboard forwarding after the input changes. (@mydanyi [#1529](https://github.com/Droid-Deck/DroidDeck/pull/1529); @xXJSONDeruloXx [#3624](https://github.com/Droid-Deck/DroidDeck/pull/3624), [#3631](https://github.com/Droid-Deck/DroidDeck/pull/3631))
|
||||
- Changed where Gamescope parks the pointer on Steam startup, fixed reporting a hidden cursor, and stopped an unwanted host arrow when Gamescope draws its own cursor. (@xXJSONDeruloXx [#3253](https://github.com/Droid-Deck/DroidDeck/pull/3253), [#3245](https://github.com/Droid-Deck/DroidDeck/pull/3245); @maxjivi05 [#3510](https://github.com/Droid-Deck/DroidDeck/pull/3510))
|
||||
- The drawer opens on the first back tap and scrolls more smoothly over a running game. Right-stick page scrolling is supported, and tab switching transfers focus or closes controls from the old page. (@maxjivi05 [#3353](https://github.com/Droid-Deck/DroidDeck/pull/3353); @EnzoDLofi [#3387](https://github.com/Droid-Deck/DroidDeck/pull/3387); @2-Shar [#3203](https://github.com/Droid-Deck/DroidDeck/pull/3203), [#3619](https://github.com/Droid-Deck/DroidDeck/pull/3619))
|
||||
- Fixed frame generation settings in Library and Steam, initial controller focus in the engine picker, and right-stick highlight or zoom binding conflicts. (@EnzoDLofi [#3597](https://github.com/Droid-Deck/DroidDeck/pull/3597), [#3440](https://github.com/Droid-Deck/DroidDeck/pull/3440); @xXJSONDeruloXx [#3689](https://github.com/Droid-Deck/DroidDeck/pull/3689))
|
||||
- Frame generation recovers from a Vulkan device loss, then stops re-arming if it keeps failing. DD-FG has several optimizations and frees scratch resources when rebuilt. (@EnzoDLofi [#3355](https://github.com/Droid-Deck/DroidDeck/pull/3355), [#3343](https://github.com/Droid-Deck/DroidDeck/pull/3343); @xXJSONDeruloXx [#3659](https://github.com/Droid-Deck/DroidDeck/pull/3659); @EnzoDLofi and @maxjivi05 [#3456](https://github.com/Droid-Deck/DroidDeck/pull/3456))
|
||||
- Manual pause keeps the last frame visible. Fixed stuck black video after delayed GPU fences and SDR brightness when a Steam overlay is composited above the game. (@xXJSONDeruloXx [#3626](https://github.com/Droid-Deck/DroidDeck/pull/3626), [#3590](https://github.com/Droid-Deck/DroidDeck/pull/3590); @devu92 [#3400](https://github.com/Droid-Deck/DroidDeck/pull/3400))
|
||||
- The Game Mode FPS override limits guest rendering. Fixed cap behavior for presentation-paced apps and prevented cap-related buffer releases from piling up. (@xXJSONDeruloXx [#3388](https://github.com/Droid-Deck/DroidDeck/pull/3388); @maxjivi05 [#3311](https://github.com/Droid-Deck/DroidDeck/pull/3311), [#3310](https://github.com/Droid-Deck/DroidDeck/pull/3310))
|
||||
- Improved frame synchronization and buffer lifetimes, including the fallback for missing acquire fences, compositing a game with a window above it, release timing, and keeping forwarded buffers alive through scanout. (@xlulx [#3004](https://github.com/Droid-Deck/DroidDeck/pull/3004); @maxjivi05 [#3427](https://github.com/Droid-Deck/DroidDeck/pull/3427), [#3583](https://github.com/Droid-Deck/DroidDeck/pull/3583), [#3424](https://github.com/Droid-Deck/DroidDeck/pull/3424), [#3509](https://github.com/Droid-Deck/DroidDeck/pull/3509), [#3516](https://github.com/Droid-Deck/DroidDeck/pull/3516); @xXJSONDeruloXx [#3560](https://github.com/Droid-Deck/DroidDeck/pull/3560))
|
||||
- Compositor state survives zero-copy callback failures, Bionic uses its normal presentation bypass check, and CAS uses the right input dimensions. (@EnzoDLofi [#3398](https://github.com/Droid-Deck/DroidDeck/pull/3398), [#3487](https://github.com/Droid-Deck/DroidDeck/pull/3487); @maxjivi05 [#3519](https://github.com/Droid-Deck/DroidDeck/pull/3519))
|
||||
- Fixed some OpenGL quads that crashed Mali’s shader compiler, kept a safer Steam webhelper layout on the Mali bridge, and fixed driver Auto selection on Mali-G2-Ultra when Venus is off. (@LarzVader [#3283](https://github.com/Droid-Deck/DroidDeck/pull/3283); @btns29 [#3420](https://github.com/Droid-Deck/DroidDeck/pull/3420); @Unixcision and @xXJSONDeruloXx [#3198](https://github.com/Droid-Deck/DroidDeck/pull/3198))
|
||||
- Updated portrait Steam home and Settings layouts, cut idle redraws, and set the Steam home tab to 60 FPS. Oversized floating HUD panels no longer get clipped. (@xXJSONDeruloXx [#3412](https://github.com/Droid-Deck/DroidDeck/pull/3412), [#3647](https://github.com/Droid-Deck/DroidDeck/pull/3647), [#3663](https://github.com/Droid-Deck/DroidDeck/pull/3663); @2-Shar [#3199](https://github.com/Droid-Deck/DroidDeck/pull/3199); @Unixcision [#3196](https://github.com/Droid-Deck/DroidDeck/pull/3196); @maxjivi05 [#3340](https://github.com/Droid-Deck/DroidDeck/pull/3340))
|
||||
- Fixed Windows gamepad detection outside SDL, doubled triggers, and missing virtual gamepads in fortified programs. The virtual pad library also no longer depends on a glibc-only symbol in Bionic. (@maxjivi05 [#3469](https://github.com/Droid-Deck/DroidDeck/pull/3469), [#3436](https://github.com/Droid-Deck/DroidDeck/pull/3436), [#3431](https://github.com/Droid-Deck/DroidDeck/pull/3431); @Necomer0920 and @xXJSONDeruloXx [#2916](https://github.com/Droid-Deck/DroidDeck/pull/2916); @The412Banner [#3492](https://github.com/Droid-Deck/DroidDeck/pull/3492))
|
||||
- Direct touchscreen input now reaches the game as soon as it lands, keeps the cursor under the first finger, and defaults back to hold-to-right-click. Captured touchpads drive the pointer, and crossed D-pads choose the nearest direction in the center. (@maxjivi05 [#3339](https://github.com/Droid-Deck/DroidDeck/pull/3339), [#3382](https://github.com/Droid-Deck/DroidDeck/pull/3382), [#3345](https://github.com/Droid-Deck/DroidDeck/pull/3345), [#3558](https://github.com/Droid-Deck/DroidDeck/pull/3558); @ReVanTis and @maxjivi05 [#2802](https://github.com/Droid-Deck/DroidDeck/pull/2802))
|
||||
- Preserved edited on-screen layout positions when switching layouts; 100% scale no longer resizes docked controls. Foldable-specific placement and scaling can still vary. Fixed automated pad and pen input on Android 13 and 14 QPR1. (@maxjivi05 [#3322](https://github.com/Droid-Deck/DroidDeck/pull/3322); @xXJSONDeruloXx [#3530](https://github.com/Droid-Deck/DroidDeck/pull/3530))
|
||||
- Quest SteamVR improves right-eye rendering, black areas, and frame delivery. Audio falls back to standard AAudio mode when needed and limits repeated startup restarts. (@FryMcNugget [#3360](https://github.com/Droid-Deck/DroidDeck/pull/3360); @Maksynum [#3514](https://github.com/Droid-Deck/DroidDeck/pull/3514))
|
||||
- Corrected chip names for Pocket FIT and Pocket Duo, among others, and stopped Xiaomi’s virtual input device from taking a gamepad slot. (@The412Banner [#3232](https://github.com/Droid-Deck/DroidDeck/pull/3232))
|
||||
- EA sign-out clears the web session so you can switch accounts; EA titles also get the right profile and settings in their own session. Battle.net remembers an install location chosen on the library’s drive. (@maxjivi05 [#3652](https://github.com/Droid-Deck/DroidDeck/pull/3652), [#3479](https://github.com/Droid-Deck/DroidDeck/pull/3479); @haylibi [#3578](https://github.com/Droid-Deck/DroidDeck/pull/3578))
|
||||
- Signed-in store tabs stay present even if a game list is empty or fails to load, and a Steam refresh no longer crashes the frontend at startup. Fixed store sidecar executable lookup, Xbox executable fallback, and Xbox SteamOS panel migration. (@maxjivi05 [#3449](https://github.com/Droid-Deck/DroidDeck/pull/3449), [#3457](https://github.com/Droid-Deck/DroidDeck/pull/3457), [#3446](https://github.com/Droid-Deck/DroidDeck/pull/3446); @sergeymetallic [#3288](https://github.com/Droid-Deck/DroidDeck/pull/3288); @EnzoDLofi [#3229](https://github.com/Droid-Deck/DroidDeck/pull/3229))
|
||||
- Fixed SD card library paths; SD card downloads can be canceled and uninstall stops them. Restoring a frontend no longer relaunches an old game link. (@maxjivi05 [#3475](https://github.com/Droid-Deck/DroidDeck/pull/3475), [#3313](https://github.com/Droid-Deck/DroidDeck/pull/3313), [#3295](https://github.com/Droid-Deck/DroidDeck/pull/3295))
|
||||
- Agent setup stops cleanly when every update attempt fails, and Gradle and Git work after setup. The docked drawer stays open during file selection, and the agent pet editor gets keyboard input after reopening. (@xXJSONDeruloXx [#3176](https://github.com/Droid-Deck/DroidDeck/pull/3176), [#3642](https://github.com/Droid-Deck/DroidDeck/pull/3642), [#3696](https://github.com/Droid-Deck/DroidDeck/pull/3696), [#3666](https://github.com/Droid-Deck/DroidDeck/pull/3666))
|
||||
|
||||
### Performance, diagnostics, and project maintenance
|
||||
|
||||
- Reduced background work in controller readers, HUD temperature polling, active-game detection, and frame generation library rescans. (@maxjivi05 [#3341](https://github.com/Droid-Deck/DroidDeck/pull/3341), [#3304](https://github.com/Droid-Deck/DroidDeck/pull/3304), [#3306](https://github.com/Droid-Deck/DroidDeck/pull/3306), [#3305](https://github.com/Droid-Deck/DroidDeck/pull/3305))
|
||||
- Reduced mount and symlink overhead in the native runtime, and made the zRAM watcher batch process reads and find the right control files. (@maxjivi05 [#3276](https://github.com/Droid-Deck/DroidDeck/pull/3276), [#3249](https://github.com/Droid-Deck/DroidDeck/pull/3249), [#3233](https://github.com/Droid-Deck/DroidDeck/pull/3233), [#3302](https://github.com/Droid-Deck/DroidDeck/pull/3302); @xXJSONDeruloXx [#3293](https://github.com/Droid-Deck/DroidDeck/pull/3293))
|
||||
- Reclaim freed Zink memory while a client is idle, trim DroidDeck’s own file page cache when memory is tight, and recognize Android 17 memory-limiter kills. (@xXJSONDeruloXx [#3320](https://github.com/Droid-Deck/DroidDeck/pull/3320), [#3439](https://github.com/Droid-Deck/DroidDeck/pull/3439); @nezorflame [#3218](https://github.com/Droid-Deck/DroidDeck/pull/3218))
|
||||
- Apply game-core changes on the next launch. Cap Proton logging at 64 MiB while a game runs; debug logging turns off when the session ends and shows a badge while enabled. (@maxjivi05 [#3314](https://github.com/Droid-Deck/DroidDeck/pull/3314); @xXJSONDeruloXx [#3337](https://github.com/Droid-Deck/DroidDeck/pull/3337), [#3239](https://github.com/Droid-Deck/DroidDeck/pull/3239))
|
||||
- Run Kotlin unit tests separately from APK builds, and improve Robolectric caches and retries and Ubuntu mirror fallbacks in CI. (@xXJSONDeruloXx [#3566](https://github.com/Droid-Deck/DroidDeck/pull/3566), [#3604](https://github.com/Droid-Deck/DroidDeck/pull/3604), [#3209](https://github.com/Droid-Deck/DroidDeck/pull/3209); @JackyChenXY [#3620](https://github.com/Droid-Deck/DroidDeck/pull/3620); @LarzVader and @xXJSONDeruloXx [#3418](https://github.com/Droid-Deck/DroidDeck/pull/3418); @The412Banner [#3063](https://github.com/Droid-Deck/DroidDeck/pull/3063))
|
||||
- Build KWin 6.8.3 to match Arch Linux ARM, fix the screen effects test harness, and improve tests for Xbox device-limit diagnostics and emulator test hangs. (@maxjivi05 [#3526](https://github.com/Droid-Deck/DroidDeck/pull/3526), [#3458](https://github.com/Droid-Deck/DroidDeck/pull/3458); @EnzoDLofi [#3490](https://github.com/Droid-Deck/DroidDeck/pull/3490); @xXJSONDeruloXx [#3375](https://github.com/Droid-Deck/DroidDeck/pull/3375))
|
||||
- Updated README download links for the previous stable release. (@xXJSONDeruloXx [#3210](https://github.com/Droid-Deck/DroidDeck/pull/3210))
|
||||
|
||||
[Compare all changes since 0.7.11](https://github.com/Droid-Deck/DroidDeck/compare/0.7.11...main)
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.9 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 252 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 372 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 307 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 212 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 235 KiB |
Loaded 100 of 166 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user