mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-06 13:05:47 +00:00
Compare commits
18
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8f639a08eb | ||
|
|
82f806ad84 | ||
|
|
7771a87695 | ||
|
|
3419391940 | ||
|
|
c46bb72631 | ||
|
|
0cd42b7217 | ||
|
|
f68a78c577 | ||
|
|
6638a7dac8 | ||
|
|
c6333350ae | ||
|
|
fbf1788647 | ||
|
|
48f587bb41 | ||
|
|
088e9994a0 | ||
|
|
29350f1bd5 | ||
|
|
498a3a653a | ||
|
|
644f8e655f | ||
|
|
7ad52166a2 | ||
|
|
f17406effc | ||
|
|
ad6bb159d3 |
No files matched your search
@@ -325,9 +325,6 @@ jobs:
|
||||
- name: Build the DiRT 3 / DiRT Showdown ws2_32 stand-in
|
||||
run: python3 tools/components/prepare.py dirt-ws2
|
||||
|
||||
- name: Build the DLSS / FSR / XeSS upscale bridges
|
||||
run: python3 tools/components/prepare.py upscale-bridges
|
||||
|
||||
- name: Cache graphics driver inputs
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
|
||||
@@ -55,7 +55,7 @@ jobs:
|
||||
jq -r --arg n "$2" '.assets // [] | .[] | select(.name == $n) | .digest // empty'
|
||||
}
|
||||
commit=$(gh api "repos/$GITHUB_REPOSITORY/actions/runs/$BUILD_RUN" --jq .head_sha 2>/dev/null || echo "$GITHUB_SHA")
|
||||
for name in proot directaudio tracking xbox comet butler powervr ubisoft rockstar dirt epic upscale; do
|
||||
for name in proot directaudio tracking xbox comet butler powervr ubisoft rockstar dirt epic; do
|
||||
file="packs/$name.tar.zst"
|
||||
[ -f "$file" ] || { echo "::error::$name.tar.zst is missing from Build APK run $BUILD_RUN"; exit 1; }
|
||||
sha=$(sha256sum "$file" | cut -d' ' -f1)
|
||||
|
||||
@@ -157,13 +157,6 @@ DroidDeck is [GPL-3.0](LICENSE). Steam and Proton belong to Valve Corporation. V
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><b>Setup and tools</b></summary>
|
||||
|
||||
- The wireless debugging pairing keypad was inspired by Ryan Retro’s Handheld Toolkit.
|
||||
|
||||
</details>
|
||||
|
||||
## Star history
|
||||
|
||||
<a href="https://www.star-history.com/#Droid-Deck/DroidDeck&Date">
|
||||
|
||||
+2
-4
@@ -95,7 +95,7 @@ def trackingPack = rootProject.file('tools/packs/tracking/release.env').readLine
|
||||
def prootPackPin = rootProject.file('tools/packs/proot/release.env').readLines()
|
||||
.findAll { it.contains('=') && !it.startsWith('#') }
|
||||
.collectEntries { def kv = it.split('=', 2); [(kv[0].trim()): kv[1].trim()] }
|
||||
def addonPacks = ['proot', 'directaudio', 'tracking', 'xbox', 'comet', 'butler', 'powervr', 'ubisoft', 'rockstar', 'dirt', 'epic', 'upscale'].collectEntries { name ->
|
||||
def addonPacks = ['proot', 'directaudio', 'tracking', 'xbox', 'comet', 'butler', 'powervr', 'ubisoft', 'rockstar', 'dirt', 'epic'].collectEntries { name ->
|
||||
def pack = file("build/packs/${name}.tar.zst")
|
||||
if (!pack.isFile()) {
|
||||
if (ciBuild && !unitTestsOnly) throw new GradleException("Add-on pack ${pack} is missing: run tools/packs/build.sh app/build/packs")
|
||||
@@ -203,13 +203,11 @@ android {
|
||||
release {
|
||||
minifyEnabled false
|
||||
signingConfig signingConfigs.testkey
|
||||
// TEST BUILD ONLY (Red Magic NPU test, no root): run-as reaches the app's files. Never merge.
|
||||
debuggable true
|
||||
}
|
||||
}
|
||||
|
||||
androidResources {
|
||||
ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~:<dir>droiddeck-xbox:<dir>droiddeck-comet:<dir>droiddeck-ubisoft:<dir>droiddeck-rockstar:<dir>droiddeck-dirt:<dir>droiddeck-epic:<dir>droiddeck-upscale:<dir>directaudio:<dir>hybris'
|
||||
ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~:<dir>droiddeck-xbox:<dir>droiddeck-comet:<dir>droiddeck-ubisoft:<dir>droiddeck-rockstar:<dir>droiddeck-dirt:<dir>droiddeck-epic:<dir>directaudio:<dir>hybris'
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
|
||||
@@ -41,7 +41,6 @@ message(STATUS "dd-fg chain: win-fg ${DDFG_UPSTREAM} (src ${DDFG_CHAIN_HASH})")
|
||||
|
||||
add_subdirectory(waylandcomp)
|
||||
add_subdirectory(questxr)
|
||||
add_subdirectory(../../../../tools/upscale/layer upscale_layer)
|
||||
add_library(sdnative SHARED sdnative/sdnative.c)
|
||||
target_link_libraries(sdnative log)
|
||||
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -124,33 +124,3 @@ 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,5 +1,4 @@
|
||||
#version 450
|
||||
#extension GL_GOOGLE_include_directive : require
|
||||
|
||||
layout(location = 0) in vec2 fragTexCoord;
|
||||
layout(location = 0) out vec4 outColor;
|
||||
@@ -7,16 +6,25 @@ layout(set = 0, binding = 0) uniform sampler2D InputTexture;
|
||||
layout(set = 1, binding = 0) uniform sampler2D WeightTexture;
|
||||
layout(push_constant) uniform Constants {
|
||||
vec4 ndc;
|
||||
vec4 metrics; // 1/width, 1/height, width, height
|
||||
vec2 resolution;
|
||||
float extra;
|
||||
float pad;
|
||||
} pc;
|
||||
|
||||
#define SMAA_RT_METRICS pc.metrics
|
||||
#define SMAA_GLSL_4
|
||||
#define SMAA_PRESET_HIGH
|
||||
#include "SMAA.hlsl"
|
||||
|
||||
void main() {
|
||||
vec4 offset;
|
||||
SMAANeighborhoodBlendingVS(fragTexCoord, offset);
|
||||
outColor = SMAANeighborhoodBlendingPS(fragTexCoord, offset, InputTexture, WeightTexture);
|
||||
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);
|
||||
}
|
||||
@@ -1,204 +1,88 @@
|
||||
// 1116.6.0
|
||||
// 1116.3.0
|
||||
#pragma once
|
||||
const uint32_t smaa_blend_code[] = {
|
||||
0x07230203,0x00010000,0x0008000b,0x000000f8,0x00000000,0x00020011,0x00000001,0x0006000b,
|
||||
0x07230203,0x00010000,0x0008000b,0x0000006b,0x00000000,0x00020011,0x00000001,0x0006000b,
|
||||
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
|
||||
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
|
||||
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
|
||||
};
|
||||
@@ -1,21 +1,29 @@
|
||||
#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;
|
||||
vec4 metrics; // 1/width, 1/height, width, height
|
||||
vec2 resolution;
|
||||
float extra;
|
||||
float pad;
|
||||
} pc;
|
||||
|
||||
#define SMAA_RT_METRICS pc.metrics
|
||||
#define SMAA_GLSL_4
|
||||
#define SMAA_PRESET_HIGH
|
||||
#include "SMAA.hlsl"
|
||||
float luma(vec3 c) {
|
||||
return dot(c, vec3(0.2126, 0.7152, 0.0722));
|
||||
}
|
||||
|
||||
void main() {
|
||||
vec4 offset[3];
|
||||
SMAAEdgeDetectionVS(fragTexCoord, offset);
|
||||
outColor = vec4(SMAALumaEdgeDetectionPS(fragTexCoord, offset, InputTexture), 0.0, 0.0);
|
||||
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));
|
||||
}
|
||||
@@ -1,185 +1,102 @@
|
||||
// 1116.6.0
|
||||
// 1116.3.0
|
||||
#pragma once
|
||||
const uint32_t smaa_edge_code[] = {
|
||||
0x07230203,0x00010000,0x0008000b,0x000000eb,0x00000000,0x00020011,0x00000001,0x0006000b,
|
||||
0x07230203,0x00010000,0x0008000b,0x00000080,0x00000000,0x00020011,0x00000001,0x0006000b,
|
||||
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
|
||||
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
|
||||
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
|
||||
};
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,25 +1,153 @@
|
||||
#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;
|
||||
vec4 metrics; // 1/width, 1/height, width, height
|
||||
vec2 resolution;
|
||||
float extra;
|
||||
float pad;
|
||||
} pc;
|
||||
|
||||
#define SMAA_RT_METRICS pc.metrics
|
||||
#define SMAA_GLSL_4
|
||||
#define SMAA_PRESET_HIGH
|
||||
#include "SMAA.hlsl"
|
||||
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;
|
||||
}
|
||||
|
||||
void main() {
|
||||
vec2 pixcoord;
|
||||
vec4 offset[3];
|
||||
SMAABlendingWeightCalculationVS(fragTexCoord, pixcoord, offset);
|
||||
outColor = SMAABlendingWeightCalculationPS(fragTexCoord, pixcoord, offset, EdgeTexture,
|
||||
AreaTexture, SearchTexture, vec4(0.0));
|
||||
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);
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -22,7 +22,6 @@
|
||||
#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"
|
||||
@@ -197,7 +196,6 @@ 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;
|
||||
@@ -232,7 +230,7 @@ static VkDevice g_dev;
|
||||
static VkPhysicalDevice g_pd;
|
||||
static VkPhysicalDeviceMemoryProperties g_mp;
|
||||
static int g_ready;
|
||||
static VkRenderPass g_rp, g_smaa_edge_rp, g_smaa_weights_rp;
|
||||
static VkRenderPass g_rp, g_smaa_rp;
|
||||
static VkDescriptorSetLayout g_dsl;
|
||||
static VkPipelineLayout g_pl;
|
||||
static VkDescriptorPool g_dpool;
|
||||
@@ -249,9 +247,7 @@ 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, g_smaa_area, g_smaa_search;
|
||||
static VkBuffer g_smaa_buf;
|
||||
static VkDeviceMemory g_smaa_mem;
|
||||
static struct fx_target g_smaa_edges, g_smaa_weights;
|
||||
/* 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).
|
||||
@@ -315,7 +311,6 @@ 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,
|
||||
@@ -323,9 +318,8 @@ 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,
|
||||
/* 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,
|
||||
.flags = VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT, .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};
|
||||
@@ -343,16 +337,12 @@ 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;
|
||||
}
|
||||
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;
|
||||
}
|
||||
g_vk.BindImageMemory(g_dev, t->img, t->mem, 0);
|
||||
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 (render_pass && g_vk.CreateFramebuffer(g_dev, &fi, NULL, &t->fb) != VK_SUCCESS) { target_destroy(t); return -1; }
|
||||
if (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;
|
||||
@@ -471,22 +461,6 @@ 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);
|
||||
@@ -508,8 +482,18 @@ 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;
|
||||
void *p = host_buffer(4096, VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT, &g_coef_buf, &g_coef_mem);
|
||||
if (!p) 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;
|
||||
memcpy(p, kNisCoefScale, sizeof(kNisCoefScale));
|
||||
memcpy((char *)p + sizeof(kNisCoefScale), kNisCoefUsm, sizeof(kNisCoefUsm));
|
||||
g_vk.UnmapMemory(g_dev, g_coef_mem);
|
||||
@@ -529,29 +513,6 @@ 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) {
|
||||
@@ -579,19 +540,16 @@ 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_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_smaa_rp) g_vk.DestroyRenderPass(g_dev, g_smaa_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_edge_rp = VK_NULL_HANDLE; g_smaa_weights_rp = VK_NULL_HANDLE;
|
||||
g_sampler = VK_NULL_HANDLE; g_rp = VK_NULL_HANDLE; g_smaa_rp = VK_NULL_HANDLE;
|
||||
g_nis_fast = 0; g_nis_attempted = 0; g_upscale_half = 0;
|
||||
g_ready = 0;
|
||||
}
|
||||
@@ -645,12 +603,9 @@ 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_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;
|
||||
if (g_vk.CreateRenderPass(g_dev, &smaa_rci, NULL, &g_smaa_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,
|
||||
@@ -664,13 +619,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[3] = {g_dsl, g_dsl, g_dsl};
|
||||
VkPipelineLayoutCreateInfo pli = {.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO, .setLayoutCount = 3, .pSetLayouts = set_layouts,
|
||||
VkDescriptorSetLayout set_layouts[2] = {g_dsl, g_dsl};
|
||||
VkPipelineLayoutCreateInfo pli = {.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO, .setLayoutCount = 2, .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 + 4};
|
||||
VkDescriptorPoolSize ps = {VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, FX_CONTEXTS * 5 + 2};
|
||||
VkDescriptorPoolCreateInfo dpi = {.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO,
|
||||
.flags = VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, .maxSets = FX_CONTEXTS * 5 + 4,
|
||||
.flags = VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, .maxSets = FX_CONTEXTS * 5 + 2,
|
||||
.poolSizeCount = 1, .pPoolSizes = &ps};
|
||||
if (g_vk.CreateDescriptorPool(g_dev, &dpi, NULL, &g_dpool) != VK_SUCCESS) goto fail;
|
||||
|
||||
@@ -757,8 +712,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_edge_rp, g_pl);
|
||||
MKL(1, P_SMAA_WEIGHTS, smaa_weights_code, "smaa_weights", g_smaa_weights_rp, g_pl);
|
||||
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);
|
||||
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");
|
||||
@@ -787,32 +742,14 @@ 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);
|
||||
}
|
||||
|
||||
/* 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};
|
||||
static void pass_renderpass(VkCommandBuffer cmd, VkRenderPass render_pass,
|
||||
VkPipeline p, struct fx_target *dst, VkDescriptorSet src,
|
||||
const void *pc, uint32_t pcsz) {
|
||||
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}},
|
||||
.clearValueCount = 1, .pClearValues = &clear};
|
||||
.renderArea = {{0, 0}, {(uint32_t)dst->w, (uint32_t)dst->h}}};
|
||||
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, count, src, 0, NULL);
|
||||
g_vk.CmdBindDescriptorSets(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, g_pl, 0, 1, &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);
|
||||
@@ -822,7 +759,21 @@ static void pass_sets(VkCommandBuffer cmd, VkRenderPass render_pass, VkPipeline
|
||||
|
||||
static void pass(VkCommandBuffer cmd, VkPipeline p, struct fx_target *dst,
|
||||
VkDescriptorSet src, const void *pc, uint32_t pcsz) {
|
||||
pass_sets(cmd, g_rp, p, dst, &src, 1, pc, 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);
|
||||
}
|
||||
|
||||
static const float FULL_NDC[4] = {-1.0f, -1.0f, 1.0f, 1.0f};
|
||||
@@ -834,12 +785,6 @@ 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,
|
||||
@@ -865,7 +810,11 @@ 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;
|
||||
const int nis_fallback = spatial == 7 && nis_falls_back(scene_w, scene_h, cw, ch);
|
||||
/* 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);
|
||||
static int last_nis_fallback = 0;
|
||||
const int was_nis_fallback =
|
||||
__atomic_exchange_n(&last_nis_fallback, nis_fallback, __ATOMIC_RELAXED);
|
||||
@@ -890,10 +839,9 @@ 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", SMAA_EDGE_FORMAT, g_smaa_edge_rp) != 0 ||
|
||||
"SMAA edges", FX_FORMAT, g_smaa_rp) != 0 ||
|
||||
target_ensure_format(&g_smaa_weights, cw, ch, FX_SCRATCH_USAGE,
|
||||
"SMAA weights", FX_FORMAT, g_smaa_weights_rp) != 0 ||
|
||||
smaa_tables_ensure() != 0)) {
|
||||
"SMAA weights", FX_FORMAT, g_smaa_rp) != 0)) {
|
||||
droiddeck_log("error", "effects: SMAA scratch allocation failed; falling back to FXAA");
|
||||
snapshot.aa_mode = 1;
|
||||
s = &snapshot;
|
||||
@@ -1021,17 +969,14 @@ 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: {
|
||||
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));
|
||||
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));
|
||||
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};
|
||||
@@ -1092,23 +1037,13 @@ 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(int in_w, int in_h, int out_w, int out_h) {
|
||||
int vkp_effects_prepare_generated(void) {
|
||||
vkp_effects_sync();
|
||||
pthread_mutex_lock(&g_lock);
|
||||
g_generated_settings = g_cur;
|
||||
pthread_mutex_unlock(&g_lock);
|
||||
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;
|
||||
return spatial_mode(g_generated_settings.scaling) && g_generated_settings.scaling != 6 &&
|
||||
effect_count(&g_generated_settings) == 0;
|
||||
}
|
||||
|
||||
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(int in_w, int in_h, int out_w, int out_h);
|
||||
int vkp_effects_prepare_generated(void);
|
||||
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,7 +113,6 @@ 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)) {
|
||||
@@ -179,17 +178,6 @@ 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;
|
||||
@@ -529,7 +517,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 && g_paced_route) {
|
||||
if (kind == VKP_FG_ENGINE_ZEROFG && pacer_wanted() && g_layer_path) {
|
||||
int64_t vsync = 0, period = 0;
|
||||
sc_layer_timeline(&vsync, &period);
|
||||
int64_t planned[VKP_FG_MAX_GENERATIONS + 1];
|
||||
|
||||
@@ -30,9 +30,6 @@ 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,15 +55,6 @@ 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.
|
||||
@@ -484,9 +475,6 @@ 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);
|
||||
@@ -552,8 +540,6 @@ 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,
|
||||
@@ -578,8 +564,6 @@ 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);
|
||||
@@ -595,7 +579,6 @@ 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;
|
||||
@@ -606,15 +589,10 @@ 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,7 +1138,6 @@ 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() &&
|
||||
(upscale_w > input_w || upscale_h > input_h) &&
|
||||
vkp_effects_prepare_generated(input_w, input_h, upscale_w, upscale_h);
|
||||
vkp_effects_prepare_generated() &&
|
||||
(upscale_w > input_w || upscale_h > input_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,8 +3545,7 @@ 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() &&
|
||||
(mapped_w > input_w || mapped_h > input_h) &&
|
||||
vkp_effects_prepare_generated(input_w, input_h, mapped_w, mapped_h);
|
||||
vkp_effects_prepare_generated() && (mapped_w > input_w || mapped_h > input_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) {
|
||||
|
||||
@@ -52,7 +52,6 @@ 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
|
||||
@@ -209,8 +208,7 @@ 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 launcherFullscreenMode by mutableStateOf(FullscreenMode.ALWAYS)
|
||||
private var sessionFullscreenMode by mutableStateOf(FullscreenMode.ALWAYS)
|
||||
private var launcherFullscreen by mutableStateOf(true)
|
||||
private var launcherFrost by mutableStateOf(false)
|
||||
private var frostWallpaper by mutableStateOf(true)
|
||||
private var frostCards by mutableStateOf(true)
|
||||
@@ -1368,12 +1366,8 @@ 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)
|
||||
launcherFullscreenMode = SessionPrefs.launcherFullscreenMode(this)
|
||||
sessionFullscreenMode = SessionPrefs.sessionFullscreenMode(this)
|
||||
launcherFullscreen = SessionPrefs.launcherFullscreen(this)
|
||||
launcherFrost = SessionPrefs.launcherFrost(this)
|
||||
frostWallpaper = SessionPrefs.frostWallpaper(this)
|
||||
frostCards = SessionPrefs.frostCards(this)
|
||||
@@ -1488,8 +1482,7 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
orientation = orientation,
|
||||
launcherOrientation = launcherOrientation,
|
||||
homePage = homePage,
|
||||
launcherFullscreenMode = launcherFullscreenMode,
|
||||
sessionFullscreenMode = sessionFullscreenMode,
|
||||
launcherFullscreen = launcherFullscreen,
|
||||
launcherFrost = launcherFrost,
|
||||
frostWallpaper = frostWallpaper,
|
||||
frostCards = frostCards,
|
||||
@@ -1765,14 +1758,13 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
}
|
||||
}, "delete-session-logs").start()
|
||||
},
|
||||
onClearLogs = { done ->
|
||||
onClearLogs = {
|
||||
Thread({
|
||||
val cleared = runCatching { SessionArtifacts.clearAll(this) }.getOrDefault(0)
|
||||
ui.post {
|
||||
android.widget.Toast.makeText(this,
|
||||
if (cleared == 0) getString(R.string.main_no_logs_to_clear) else resources.getQuantityString(R.plurals.main_logs_cleared, cleared, cleared),
|
||||
android.widget.Toast.LENGTH_SHORT).show()
|
||||
done()
|
||||
}
|
||||
}, "clear-logs").start()
|
||||
},
|
||||
@@ -1824,15 +1816,11 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
homePage = value
|
||||
},
|
||||
onControllerHaptics = { on -> SessionPrefs.setControllerHaptics(this, on); controllerHaptics = on },
|
||||
onLauncherFullscreenMode = { mode ->
|
||||
SessionPrefs.setLauncherFullscreenMode(this, mode)
|
||||
launcherFullscreenMode = mode
|
||||
onLauncherFullscreen = { on ->
|
||||
SessionPrefs.setLauncherFullscreen(this, on)
|
||||
launcherFullscreen = on
|
||||
applyLauncherFullscreen()
|
||||
},
|
||||
onSessionFullscreenMode = { mode ->
|
||||
SessionPrefs.setSessionFullscreenMode(this, mode)
|
||||
sessionFullscreenMode = mode
|
||||
},
|
||||
onLauncherFrost = { on ->
|
||||
SessionPrefs.setLauncherFrost(this, on)
|
||||
launcherFrost = on
|
||||
@@ -2164,13 +2152,7 @@ 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
|
||||
|
||||
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)
|
||||
private fun applyLauncherFullscreen() {
|
||||
@Suppress("DEPRECATION")
|
||||
window.decorView.systemUiVisibility = if (launcherFullscreen) {
|
||||
(View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
|
||||
|
||||
@@ -45,7 +45,6 @@ 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) }
|
||||
@@ -67,7 +66,7 @@ internal class ProtonMenu(
|
||||
ui.post { protonStage = label; protonPercent = value }
|
||||
}
|
||||
}.getOrElse { it.message ?: it.javaClass.simpleName }
|
||||
if (problem == null && !automatic && tool.id in REMEMBERED) ProtonExtras.setDeclined(activity, false, tool.id)
|
||||
if (problem == null && !automatic && tool.id == ProtonExtras.OWN) ProtonExtras.setDeclined(activity, false)
|
||||
if (tool.id == ProtonExtras.OWN) {
|
||||
if (problem == null) Onboarding.finish(Onboarding.Step.PROTON) else Onboarding.fail(Onboarding.Step.PROTON, problem)
|
||||
Onboarding.recheck(activity)
|
||||
@@ -97,7 +96,7 @@ internal class ProtonMenu(
|
||||
protonPercent = -1
|
||||
Thread({
|
||||
if (older) ProtonExtras.removeOlder(activity, tool) else ProtonExtras.remove(activity, tool, dir)
|
||||
if (tool.id in REMEMBERED && ProtonExtras.installedAll(activity, tool).isEmpty()) ProtonExtras.setDeclined(activity, true, tool.id)
|
||||
if (tool.id == ProtonExtras.OWN && ProtonExtras.installedAll(activity, tool).isEmpty()) ProtonExtras.setDeclined(activity, true)
|
||||
ui.post {
|
||||
protonBusyId = null
|
||||
protonStage = null
|
||||
@@ -159,7 +158,7 @@ internal class ProtonMenu(
|
||||
refreshExperimental()
|
||||
protonRows = ProtonExtras.offered(activity).map {
|
||||
val all = ProtonExtras.installedAll(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))
|
||||
ProtonRow(it.id, it.name, all.lastOrNull(), ProtonExtras.queued(activity, it), all, ProtonExtras.update(activity, it))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -100,12 +100,6 @@ 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
|
||||
@@ -128,7 +122,6 @@ 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
|
||||
@@ -248,10 +241,6 @@ 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
|
||||
@@ -644,7 +633,6 @@ 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)
|
||||
@@ -942,8 +930,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
}
|
||||
applyFollowChoice()
|
||||
applyFollowOrientation(resources.configuration)
|
||||
sessionFullscreenMode = SessionPrefs.sessionFullscreenMode(this)
|
||||
applySessionFullscreen()
|
||||
goFullscreen()
|
||||
volumeControlStream = android.media.AudioManager.STREAM_MUSIC
|
||||
displayManager = getSystemService(DISPLAY_SERVICE) as DisplayManager
|
||||
refreshSecondScreenDisplays()
|
||||
@@ -987,10 +974,6 @@ 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
|
||||
@@ -1116,7 +1099,6 @@ 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
|
||||
@@ -1401,7 +1383,6 @@ 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()
|
||||
@@ -1926,7 +1907,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
onBlackFrameInsertion = { on ->
|
||||
SessionPrefs.setBlackFrameInsertion(this@SessionActivity, on)
|
||||
blackFrameInsertion = on
|
||||
CompositorHost.setBlackFrameInsertion(on, refreshHz(), compositorFpsLimit(), outputFpsLimit())
|
||||
CompositorHost.setBlackFrameInsertion(on, refreshHz(), compositorFpsLimit())
|
||||
},
|
||||
hdr = hdrWanted,
|
||||
hdrAvailable = hdrAvailable,
|
||||
@@ -1955,27 +1936,6 @@ 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)
|
||||
@@ -2106,12 +2066,6 @@ 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) {
|
||||
@@ -3203,7 +3157,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(), outputFpsLimit(),
|
||||
applicationInfo.nativeLibraryDir, size.first, size.second, refreshHz(holder), compositorFpsLimit(),
|
||||
)
|
||||
onOutputAttached(holder)
|
||||
if (SessionState.running && size != previous) {
|
||||
@@ -3318,7 +3272,6 @@ 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)
|
||||
@@ -3479,7 +3432,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(), outputFpsLimit())
|
||||
CompositorHost.updatePacing(hz, compositorFpsLimit())
|
||||
pushCardboard(activeCardboard)
|
||||
if (changed && ::surfaceView.isInitialized) applyFrameGen()
|
||||
}
|
||||
@@ -3727,7 +3680,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
|
||||
private fun onSessionEnded(status: Int) {
|
||||
ended = true
|
||||
runOnUiThread { refreshAirTriggers() }
|
||||
++steamVrRequestGeneration
|
||||
if (isInPictureInPictureMode) {
|
||||
runOnUiThread { finish() }
|
||||
@@ -3785,7 +3737,6 @@ 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()
|
||||
@@ -3918,9 +3869,6 @@ 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) {
|
||||
@@ -3940,10 +3888,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, physicalInputAccepted()) == true) return true
|
||||
if (physicalInputBindings?.onKey(event, resumed && !menuOwnsController && !pcKeyboardOpen && !achievementsOpen &&
|
||||
!inputSettingsOpen && !gestureSettingsOpen && !SessionState.suspended && !loading.visible) == true) return true
|
||||
if (physicalShortcuts.onKey(
|
||||
event,
|
||||
enabled = resumed && SessionState.running && !SessionState.suspended &&
|
||||
@@ -5168,7 +5116,6 @@ 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)
|
||||
@@ -5179,32 +5126,6 @@ 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()
|
||||
}
|
||||
@@ -5661,20 +5582,10 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
private var sessionTouchDown = false
|
||||
private var screenTapsClick = true
|
||||
|
||||
private fun inputSurfaces() = listOfNotNull(
|
||||
private fun onScreenLeftMouseButtonShown(): Boolean = listOfNotNull(
|
||||
onScreenControls?.inputSurface, bottomInputControls?.inputSurface, unfoldedPanel?.inputSurface, unfoldedDeckSurface,
|
||||
secondScreenPresentation?.controlsView, swappedInputSurface,
|
||||
)
|
||||
|
||||
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
|
||||
}
|
||||
).any { it.isShown && inputProfile.showsLeftMouseButton(it.inputRole, it.shownElements, stockInputProfile) }
|
||||
|
||||
override fun onTouchEvent(event: MotionEvent): Boolean = inSurfaceSpace(event) { handleTouch(event) }
|
||||
|
||||
@@ -6679,8 +6590,6 @@ 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()
|
||||
@@ -6794,7 +6703,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
if (::scrollTouch.isInitialized) scrollTouch.cancel()
|
||||
if (::padMouse.isInitialized) padMouse.reset()
|
||||
resumed = false
|
||||
refreshAirTriggers()
|
||||
boostGpuClock(false)
|
||||
updateKeyboardRoute()
|
||||
updatePointerCapture()
|
||||
@@ -7388,13 +7296,10 @@ 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)
|
||||
applySessionFullscreen()
|
||||
goFullscreen()
|
||||
refreshClipboard()
|
||||
}
|
||||
updatePointerCapture()
|
||||
@@ -7404,24 +7309,19 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
if (resumed) sessionClipboard.refresh()
|
||||
}
|
||||
|
||||
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)
|
||||
private fun goFullscreen() {
|
||||
@Suppress("DEPRECATION")
|
||||
window.decorView.systemUiVisibility = if (fullscreen) (View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
|
||||
window.decorView.systemUiVisibility = (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) else View.SYSTEM_UI_FLAG_LAYOUT_STABLE
|
||||
or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION)
|
||||
if (Build.VERSION.SDK_INT >= 28) {
|
||||
window.attributes = window.attributes.apply {
|
||||
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
|
||||
}
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7484,9 +7384,6 @@ 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
|
||||
|
||||
@@ -23,7 +23,7 @@ object AgentAccess {
|
||||
fun requireCommands(context: Context) {
|
||||
if (!commandsAllowed(context)) throw AgentException(
|
||||
"AGENT_COMMANDS_DISABLED",
|
||||
"droiddeckctl is off: turn on Setup > Developer > droiddeckctl on the device",
|
||||
"Debugging tools are off: turn on Setup > Developer > Debugging tools on the device",
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -175,9 +175,6 @@ internal class AddonPack(
|
||||
val ROCKSTAR = AddonPack("rockstar", BuildConfig.PACK_ROCKSTAR_SHA256, BuildConfig.PACK_ROCKSTAR_SIZE,
|
||||
listOf("Launcher32.exe", "Launcher64.exe"))
|
||||
val DIRT = AddonPack("dirt", BuildConfig.PACK_DIRT_SHA256, BuildConfig.PACK_DIRT_SIZE, listOf("ws2_32.dll"))
|
||||
/** The in-game upscaler's bridge DLLs (tools/upscale/bridges), staged by UpscaleComponent. */
|
||||
val UPSCALE = AddonPack("upscale", BuildConfig.PACK_UPSCALE_SHA256, BuildConfig.PACK_UPSCALE_SIZE,
|
||||
listOf("bridges/x86_64-windows/libxess.dll", "bridges/x86_64-windows/nvngx.dll"))
|
||||
val EPIC = AddonPack("epic", BuildConfig.PACK_EPIC_SHA256, BuildConfig.PACK_EPIC_SIZE, listOf("EpicGamesLauncher.exe"))
|
||||
}
|
||||
}
|
||||
@@ -27,7 +27,6 @@ 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"
|
||||
@@ -37,10 +36,6 @@ 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))
|
||||
@@ -134,7 +129,6 @@ 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(", "))
|
||||
@@ -192,7 +186,6 @@ object DeviceReport {
|
||||
val fs = StatFs(Environment.getExternalStorageDirectory().path)
|
||||
k("Shared storage free", FileUtils.sizeToString(fs.availableBlocksLong * fs.blockSizeLong))
|
||||
}
|
||||
k("All files access", runCatching { com.droiddeck.launcher.files.AllFilesAccess.state() }.getOrNull())
|
||||
|
||||
h("GPU")
|
||||
k("KGSL gpu_model", readSys("/sys/class/kgsl/kgsl-3d0/gpu_model"))
|
||||
|
||||
@@ -1,140 +0,0 @@
|
||||
package com.droiddeck.launcher.core
|
||||
|
||||
/**
|
||||
* The in-game upscaler (tools/upscale): bridge DLLs stand in for a game's own DLSS / FidelityFX / FSR 2/3 /
|
||||
* XeSS DLLs and hand each frame to the VK_LAYER_DROIDDECK_upscale layer, which runs FSR 4 (GPU or Hexagon NPU),
|
||||
* XeSS 3 DP4a or a basic temporal upscaler in its place. Ported from Winlator-NeuralScale
|
||||
* (michaelisomer-cyber, GPL-3.0, a fork of StevenMXZ/Winlator-Ludashi).
|
||||
*
|
||||
* Per game it is a few entries of the game environment; droiddeck-game-env turns them into the DLL overrides,
|
||||
* the bridge folder, the layer switch and the files the layer reads.
|
||||
*/
|
||||
object GameUpscaler {
|
||||
const val MODE = "DROIDDECK_UPSCALE_MODE"
|
||||
const val ENGINE = "DROIDDECK_UPSCALE_ENGINE"
|
||||
const val SHARPNESS = "DROIDDECK_UPSCALE_SHARPNESS"
|
||||
const val NPU_SYNC = "DROIDDECK_UPSCALE_NPU_SYNC"
|
||||
const val SIGFIX = "DROIDDECK_UPSCALE_SIGFIX"
|
||||
|
||||
val keys = listOf(MODE, ENGINE, SHARPNESS, NPU_SYNC, SIGFIX)
|
||||
|
||||
/** Which of the game's upscalers are replaced, and what GPU the game is shown. */
|
||||
enum class Mode(val id: String) {
|
||||
/** FidelityFX (FSR 4 API), FSR 2/3 and XeSS games; the real GPU is reported. */
|
||||
FSR_XESS("fsr"),
|
||||
/** DLSS games: also nvngx + nvapi64, and the game sees an RTX 2060. */
|
||||
DLSS("dlss"),
|
||||
/** Games whose FSR 4 path wants an RDNA 4 card: the game sees a Radeon RX 9070 XT, shader model 6.8. */
|
||||
NATIVE_FSR4("native");
|
||||
|
||||
companion object {
|
||||
fun byId(id: String?): Mode? = entries.firstOrNull { it.id == id?.trim()?.lowercase() }
|
||||
}
|
||||
}
|
||||
|
||||
/** What runs in the game's upscaler's place. Ids are the layer's backend names (fsr4_layer.c parse_backend_str). */
|
||||
enum class Engine(val id: String, val npu: Boolean) {
|
||||
FSR4_LITE_GPU("fsr4_1_lite_gpu", false),
|
||||
FSR4_FULL_GPU("fsr4_1_full_gpu", false),
|
||||
XESS("xess3_gpu", false),
|
||||
BASIC("fsr3_gpu", false),
|
||||
SGSR2("sgsr2_gpu", false),
|
||||
FSR4_NPU("fsr4_1_full_npu", true),
|
||||
FSR4_LITE_NPU("fsr4_1_lite_npu", true);
|
||||
|
||||
companion object {
|
||||
/** Saved before full FSR 4.1 replaced FSR 4.0 on the NPU (NeuralScale r5). */
|
||||
private const val LEGACY_FSR4_NPU = "fsr4_0_npu"
|
||||
|
||||
fun byId(id: String?): Engine? {
|
||||
val key = id?.trim()?.lowercase()
|
||||
return if (key == LEGACY_FSR4_NPU) FSR4_NPU else entries.firstOrNull { it.id == key }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
val DEFAULT_ENGINE = Engine.FSR4_LITE_GPU
|
||||
const val DEFAULT_SHARPNESS = 55
|
||||
val sharpnessSteps = listOf(0, 25, 40, 55, 70, 85, 100)
|
||||
|
||||
data class Choice(
|
||||
val mode: Mode,
|
||||
val engine: Engine = DEFAULT_ENGINE,
|
||||
val sharpness: Int = DEFAULT_SHARPNESS,
|
||||
val npuSync: Boolean = false,
|
||||
val signatureFix: Boolean = true,
|
||||
)
|
||||
|
||||
fun choice(config: GameEnvironment.Config, scope: String): Choice? {
|
||||
if (scope.isEmpty()) return null
|
||||
val entries = config.games[scope].orEmpty()
|
||||
val mode = Mode.byId(entries[MODE]) ?: return null
|
||||
return Choice(
|
||||
mode = mode,
|
||||
engine = Engine.byId(entries[ENGINE]) ?: DEFAULT_ENGINE,
|
||||
sharpness = entries[SHARPNESS]?.toIntOrNull()?.coerceIn(0, 100) ?: DEFAULT_SHARPNESS,
|
||||
npuSync = entries[NPU_SYNC] == "1",
|
||||
signatureFix = entries[SIGFIX] != "0",
|
||||
)
|
||||
}
|
||||
|
||||
fun entries(choice: Choice?): Map<String, String> = if (choice == null) emptyMap() else buildMap {
|
||||
put(MODE, choice.mode.id)
|
||||
put(ENGINE, choice.engine.id)
|
||||
put(SHARPNESS, choice.sharpness.coerceIn(0, 100).toString())
|
||||
if (choice.npuSync) put(NPU_SYNC, "1")
|
||||
// DLSS games need NGX to accept the bridge DLLs; on unless the player switched it off (stored as "0").
|
||||
if (choice.mode == Mode.DLSS) put(SIGFIX, if (choice.signatureFix) "1" else "0")
|
||||
}
|
||||
|
||||
fun withChoice(config: GameEnvironment.Config, scope: String, choice: Choice?): GameEnvironment.Config {
|
||||
require(scope.isNotEmpty() && GameEnvironment.validScope(scope))
|
||||
val kept = config.entries(scope).filterKeys { it !in keys }
|
||||
return config.withEntries(scope, kept + entries(choice))
|
||||
}
|
||||
|
||||
/** NPU engines on a device without a usable Hexagon NPU run the matching GPU engine instead. */
|
||||
fun effectiveEngine(engine: Engine, npuAvailable: Boolean): Engine = when {
|
||||
!engine.npu || npuAvailable -> engine
|
||||
engine == Engine.FSR4_NPU -> Engine.FSR4_FULL_GPU
|
||||
else -> Engine.FSR4_LITE_GPU
|
||||
}
|
||||
|
||||
/** The control file the layer polls (fsr4_layer.c read_live_ctrl): backend, sharpness 0..1, NPU sync, on/off. */
|
||||
fun controlText(engine: Engine, sharpness: Int, npuSync: Boolean, enabled: Boolean): String =
|
||||
"enabled=${if (enabled) 1 else 0}\nbackend=${engine.id}\nsharpness=" +
|
||||
String.format(java.util.Locale.ROOT, "%.2f", sharpness.coerceIn(0, 100) / 100f) +
|
||||
"\nnpu_sync=${if (npuSync) 1 else 0}\n"
|
||||
|
||||
/** One status file the layer writes (fsr4_layer.c write_live_status): key=value lines. */
|
||||
data class Status(
|
||||
val active: Boolean,
|
||||
val npu: Boolean,
|
||||
val backendTag: String,
|
||||
val render: String,
|
||||
val output: String,
|
||||
val gpuMs: Float,
|
||||
val npuMs: Float,
|
||||
val reason: String,
|
||||
val timestampMs: Long,
|
||||
)
|
||||
|
||||
fun parseStatus(text: String): Status? {
|
||||
val values = text.lineSequence().mapNotNull { line ->
|
||||
val eq = line.indexOf('=')
|
||||
if (eq <= 0) null else line.substring(0, eq).trim() to line.substring(eq + 1).trim()
|
||||
}.toMap()
|
||||
if (values["layer"] != "1") return null
|
||||
return Status(
|
||||
active = values["active"] == "1",
|
||||
npu = values["npu"] == "1",
|
||||
backendTag = values["backend_tag"].orEmpty().ifEmpty { values["backend"].orEmpty() },
|
||||
render = values["render"].orEmpty(),
|
||||
output = values["output"].orEmpty(),
|
||||
gpuMs = (values["gpu_us"]?.toLongOrNull() ?: 0L) / 1000f,
|
||||
npuMs = (values["htp_us"]?.toLongOrNull() ?: 0L) / 1000f,
|
||||
reason = values["reason"].orEmpty(),
|
||||
timestampMs = values["ts_ms"]?.toLongOrNull() ?: 0L,
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -119,7 +119,7 @@ object WirelessAdbFix {
|
||||
* socket table, and mDNS often advertises nothing, so the ephemeral range Linux gives adbd is
|
||||
* scanned on loopback (closed ports refuse at once) and the open ports are tried with our key.
|
||||
*/
|
||||
private fun loopbackAdbPort(app: Context, exclude: Int? = null): Int? {
|
||||
private fun loopbackAdbPort(app: Context): Int? {
|
||||
val open = java.util.concurrent.ConcurrentLinkedQueue<Int>()
|
||||
val workers = 32
|
||||
val range = EPHEMERAL_PORTS
|
||||
@@ -127,7 +127,7 @@ object WirelessAdbFix {
|
||||
Thread {
|
||||
var port = range.first + worker
|
||||
while (port <= range.last) {
|
||||
if (port != exclude && answers(LOOPBACK, port, 150)) open += port
|
||||
if (answers(LOOPBACK, port, 150)) open += port
|
||||
port += workers
|
||||
}
|
||||
}.apply { start() }
|
||||
@@ -162,28 +162,8 @@ object WirelessAdbFix {
|
||||
}.getOrDefault(address is Inet4Address)
|
||||
|
||||
fun localConnectPort(context: Context): Int? =
|
||||
discoverConnectPort(context, LOOPBACK)
|
||||
|
||||
private fun discoverConnectPort(context: Context, host: String, exclude: Int? = null): Int? =
|
||||
chooseConnectPort(host, exclude,
|
||||
property = ::tlsPortProperty,
|
||||
advertised = { acceptable -> findConnectPort(context, host, accept = acceptable) },
|
||||
answers = { port -> answers(host, port) },
|
||||
// Some local devices never advertise their connect port. Try only
|
||||
// loopback and require the app's existing paired key to authenticate.
|
||||
authenticatedLocal = { loopbackAdbPort(context.applicationContext, exclude) },
|
||||
)
|
||||
|
||||
internal fun chooseConnectPort(
|
||||
host: String, exclude: Int?,
|
||||
property: () -> Int?, advertised: ((Int) -> Boolean) -> Int?,
|
||||
answers: (Int) -> Boolean, authenticatedLocal: () -> Int?,
|
||||
): Int? {
|
||||
val local = host == LOOPBACK
|
||||
val acceptable: (Int) -> Boolean = { port -> port != exclude && (!local || answers(port)) }
|
||||
val propertyPort = if (local) property()?.takeIf(acceptable) else null
|
||||
return propertyPort ?: advertised(acceptable) ?: if (local) authenticatedLocal() else null
|
||||
}
|
||||
tlsPortProperty()
|
||||
?: findConnectPort(context, LOOPBACK)
|
||||
|
||||
private fun tlsPortProperty(): Int? = runCatching {
|
||||
Class.forName("android.os.SystemProperties").getMethod("get", String::class.java)
|
||||
@@ -321,14 +301,14 @@ object WirelessAdbFix {
|
||||
if (cachedPort != null) {
|
||||
val cachedResult = runCatching { action(appContext, saved.host, cachedPort) }
|
||||
if (cachedResult.isSuccess) return
|
||||
val discoveredPort = discoverConnectPort(appContext, saved.host, exclude = cachedPort)
|
||||
val discoveredPort = findConnectPort(appContext, saved.host)
|
||||
if (discoveredPort != null && discoveredPort != cachedPort) {
|
||||
action(appContext, saved.host, discoveredPort)
|
||||
} else {
|
||||
cachedResult.getOrThrow()
|
||||
}
|
||||
} else {
|
||||
val discoveredPort = discoverConnectPort(appContext, saved.host)
|
||||
val discoveredPort = findConnectPort(appContext, saved.host)
|
||||
?: error(appContext.getString(R.string.adbfix_enter_address))
|
||||
action(appContext, saved.host, discoveredPort)
|
||||
}
|
||||
|
||||
@@ -4,23 +4,20 @@ import android.app.Notification
|
||||
import android.app.NotificationChannel
|
||||
import android.app.NotificationManager
|
||||
import android.app.PendingIntent
|
||||
import android.app.RemoteInput
|
||||
import android.app.Service
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.net.Uri
|
||||
import android.net.nsd.NsdManager
|
||||
import android.net.nsd.NsdServiceInfo
|
||||
import android.os.Build
|
||||
import android.os.Handler
|
||||
import android.os.IBinder
|
||||
import android.os.Looper
|
||||
import android.util.TypedValue
|
||||
import android.widget.RemoteViews
|
||||
import com.droiddeck.launcher.FrontEndActivity
|
||||
import com.droiddeck.launcher.R
|
||||
import kotlinx.coroutines.flow.MutableStateFlow
|
||||
import kotlinx.coroutines.flow.StateFlow
|
||||
import java.util.UUID
|
||||
|
||||
class WirelessAdbPairingService : Service() {
|
||||
override fun attachBaseContext(newBase: android.content.Context) =
|
||||
@@ -40,8 +37,6 @@ class WirelessAdbPairingService : Service() {
|
||||
private var discovery: NsdManager.DiscoveryListener? = null
|
||||
private var pairingHost: String? = null
|
||||
private var pairingPort: Int? = null
|
||||
private val keypad = WirelessPairingKeypad()
|
||||
private var keypadToken = UUID.randomUUID().toString()
|
||||
@Volatile private var working = false
|
||||
@Volatile private var limitEnabled = false
|
||||
@Volatile private var session = 0
|
||||
@@ -51,21 +46,13 @@ class WirelessAdbPairingService : Service() {
|
||||
|
||||
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
|
||||
when (intent?.action) {
|
||||
ACTION_KEYPAD -> {
|
||||
if (intent.data?.host == keypadToken && current.value is Stage.CodeNeeded && !working) {
|
||||
val key = intent.data?.lastPathSegment?.toIntOrNull()
|
||||
if (key == WirelessPairingKeypad.SUBMIT) {
|
||||
if (keypad.ready && pairingPort != null) onCode(keypad.digits)
|
||||
} else if (key != null && keypad.press(key)) {
|
||||
show(current.value, quietUpdate = true)
|
||||
}
|
||||
} else if (current.value == Stage.Idle) {
|
||||
stopSelf(startId)
|
||||
}
|
||||
ACTION_CODE -> {
|
||||
val code = RemoteInput.getResultsFromIntent(intent)?.getCharSequence(KEY_CODE)
|
||||
?.filter(Char::isDigit)?.toString().orEmpty()
|
||||
onCode(code)
|
||||
}
|
||||
ACTION_CANCEL -> finish(Stage.Idle)
|
||||
null -> begin(intent?.getBooleanExtra(EXTRA_ENABLE_LIMIT, false) == true)
|
||||
else -> if (discovery == null && !working) stopSelf(startId)
|
||||
else -> begin(intent?.getBooleanExtra(EXTRA_ENABLE_LIMIT, false) == true)
|
||||
}
|
||||
return START_NOT_STICKY
|
||||
}
|
||||
@@ -73,13 +60,11 @@ class WirelessAdbPairingService : Service() {
|
||||
private fun begin(enableLimit: Boolean) {
|
||||
if (working) return
|
||||
session++
|
||||
resetKeypad()
|
||||
limitEnabled = enableLimit
|
||||
pairingHost = null
|
||||
pairingPort = null
|
||||
working = false
|
||||
publish(Stage.Waiting)
|
||||
getSystemService(NotificationManager::class.java)?.cancel(KEYPAD_NOTIFICATION_ID)
|
||||
startForeground(NOTIFICATION_ID, notification(Stage.Waiting))
|
||||
startDiscovery()
|
||||
main.removeCallbacks(timeout)
|
||||
@@ -116,13 +101,9 @@ class WirelessAdbPairingService : Service() {
|
||||
if (!WirelessAdbFix.isLocalAddress(address)) return
|
||||
main.post {
|
||||
if (owner != session || working || current.value == Stage.Done) return@post
|
||||
val endpointChanged = pairingHost != address.hostAddress || pairingPort != serviceInfo.port
|
||||
pairingHost = address.hostAddress
|
||||
pairingPort = serviceInfo.port
|
||||
if (endpointChanged) {
|
||||
resetKeypad()
|
||||
show(Stage.CodeNeeded())
|
||||
}
|
||||
if (current.value !is Stage.CodeNeeded) show(Stage.CodeNeeded())
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -136,12 +117,11 @@ class WirelessAdbPairingService : Service() {
|
||||
show(Stage.Waiting)
|
||||
return
|
||||
}
|
||||
if (code.length != WirelessPairingKeypad.LENGTH) {
|
||||
if (code.length != 6) {
|
||||
show(Stage.CodeNeeded(getString(R.string.adbpair_six_digits)))
|
||||
return
|
||||
}
|
||||
working = true
|
||||
resetKeypad()
|
||||
val owner = session
|
||||
val enable = limitEnabled
|
||||
show(Stage.Working(getString(R.string.adbpair_pairing)))
|
||||
@@ -175,34 +155,17 @@ class WirelessAdbPairingService : Service() {
|
||||
}, "wireless-adb-pairing").start()
|
||||
}
|
||||
|
||||
private fun show(stage: Stage, quietUpdate: Boolean = false) {
|
||||
private fun show(stage: Stage) {
|
||||
publish(stage)
|
||||
val manager = getSystemService(NotificationManager::class.java) ?: return
|
||||
if (stage is Stage.CodeNeeded) {
|
||||
// A new high-priority notification can pop over Settings. Updating the
|
||||
// quiet foreground-service notification can leave the keypad in the shade.
|
||||
// End any previous indeterminate progress even if this is a code retry.
|
||||
if (!quietUpdate) manager.notify(NOTIFICATION_ID, notification(stage, foregroundCodeEntry = true))
|
||||
manager.notify(KEYPAD_NOTIFICATION_ID, notification(stage, quietUpdate))
|
||||
} else {
|
||||
manager.cancel(KEYPAD_NOTIFICATION_ID)
|
||||
manager.notify(NOTIFICATION_ID, notification(stage, quietUpdate))
|
||||
}
|
||||
}
|
||||
|
||||
private fun resetKeypad() {
|
||||
keypad.clear()
|
||||
keypadToken = UUID.randomUUID().toString()
|
||||
getSystemService(NotificationManager::class.java)?.notify(NOTIFICATION_ID, notification(stage))
|
||||
}
|
||||
|
||||
private fun finish(stage: Stage) {
|
||||
session++
|
||||
resetKeypad()
|
||||
main.removeCallbacks(timeout)
|
||||
stopDiscovery()
|
||||
publish(stage)
|
||||
val manager = getSystemService(NotificationManager::class.java)
|
||||
manager?.cancel(KEYPAD_NOTIFICATION_ID)
|
||||
if (stage is Stage.Done || stage is Stage.Failed) {
|
||||
manager?.notify(NOTIFICATION_ID, notification(stage))
|
||||
stopForeground(STOP_FOREGROUND_DETACH)
|
||||
@@ -220,16 +183,13 @@ class WirelessAdbPairingService : Service() {
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
getSystemService(NotificationManager::class.java)?.cancel(KEYPAD_NOTIFICATION_ID)
|
||||
main.removeCallbacks(timeout)
|
||||
stopDiscovery()
|
||||
if (current.value.let { it is Stage.Waiting || it is Stage.CodeNeeded || it is Stage.Working }) publish(Stage.Idle)
|
||||
super.onDestroy()
|
||||
}
|
||||
|
||||
private fun notification(
|
||||
stage: Stage, quietUpdate: Boolean = false, foregroundCodeEntry: Boolean = false,
|
||||
): Notification {
|
||||
private fun notification(stage: Stage): Notification {
|
||||
val manager = getSystemService(NotificationManager::class.java)
|
||||
manager?.createNotificationChannel(NotificationChannel(CHANNEL_ID, getString(R.string.adbpair_channel_name),
|
||||
NotificationManager.IMPORTANCE_HIGH).apply {
|
||||
@@ -245,7 +205,7 @@ class WirelessAdbPairingService : Service() {
|
||||
PendingIntent.FLAG_IMMUTABLE)
|
||||
val cancel = PendingIntent.getService(this, 1,
|
||||
Intent(this, WirelessAdbPairingService::class.java).setAction(ACTION_CANCEL), PendingIntent.FLAG_IMMUTABLE)
|
||||
val quiet = foregroundCodeEntry || stage == Stage.Waiting || stage == Stage.Idle || stage is Stage.Working
|
||||
val quiet = stage == Stage.Waiting || stage == Stage.Idle || stage is Stage.Working
|
||||
val builder = Notification.Builder(this, if (quiet) PROGRESS_CHANNEL_ID else CHANNEL_ID)
|
||||
.setSmallIcon(R.drawable.ic_stat_session)
|
||||
.setContentIntent(open)
|
||||
@@ -260,31 +220,19 @@ class WirelessAdbPairingService : Service() {
|
||||
.setOnlyAlertOnce(true)
|
||||
.addAction(Notification.Action.Builder(null, getString(R.string.common_cancel), cancel).build())
|
||||
is Stage.CodeNeeded -> {
|
||||
val reply = PendingIntent.getService(this, 2,
|
||||
Intent(this, WirelessAdbPairingService::class.java).setAction(ACTION_CODE),
|
||||
if (Build.VERSION.SDK_INT >= 31) PendingIntent.FLAG_MUTABLE or PendingIntent.FLAG_UPDATE_CURRENT
|
||||
else PendingIntent.FLAG_UPDATE_CURRENT)
|
||||
val input = RemoteInput.Builder(KEY_CODE).setLabel(getString(R.string.adbpair_code_label)).build()
|
||||
val text = stage.error ?: getString(R.string.adbpair_code_hint)
|
||||
builder
|
||||
.setContentTitle(getString(if (foregroundCodeEntry) R.string.adbpair_title_pair
|
||||
else if (stage.error == null) R.string.adbpair_title_code else R.string.adbpair_title_retry))
|
||||
.setContentIntent(null)
|
||||
.setVisibility(Notification.VISIBILITY_SECRET)
|
||||
.setLocalOnly(true)
|
||||
.setContentTitle(getString(if (stage.error == null) R.string.adbpair_title_code else R.string.adbpair_title_retry))
|
||||
.setContentText(text)
|
||||
.setStyle(Notification.BigTextStyle().bigText(text))
|
||||
.setOngoing(true)
|
||||
.setOnlyAlertOnce(foregroundCodeEntry || quietUpdate)
|
||||
if (!foregroundCodeEntry) {
|
||||
// Keep the keypad separate from status/install notifications. Android owns
|
||||
// the heads-up timeout; the drawer remains usable without expanding a group.
|
||||
builder.setGroup(KEYPAD_GROUP)
|
||||
.addAction(Notification.Action.Builder(null, getString(R.string.common_cancel), cancel).build())
|
||||
if (stage.error != null && pairingPort == null) {
|
||||
builder.setContentText(stage.error)
|
||||
.setStyle(Notification.BigTextStyle().bigText(stage.error))
|
||||
} else {
|
||||
builder.setStyle(Notification.DecoratedCustomViewStyle())
|
||||
.setCustomBigContentView(pairingKeypad())
|
||||
.setCustomHeadsUpContentView(pairingKeypad(keyHeightDp = 24))
|
||||
if (Build.VERSION.SDK_INT >= 31) {
|
||||
builder.setCustomContentView(pairingKeypad(keyHeightDp = 21))
|
||||
}
|
||||
}
|
||||
}
|
||||
.addAction(Notification.Action.Builder(null, getString(R.string.adbpair_enter_code), reply).addRemoteInput(input).build())
|
||||
.addAction(Notification.Action.Builder(null, getString(R.string.common_cancel), cancel).build())
|
||||
}
|
||||
is Stage.Working -> builder
|
||||
.setContentTitle(getString(R.string.adbpair_title_working))
|
||||
@@ -306,39 +254,14 @@ class WirelessAdbPairingService : Service() {
|
||||
return builder.build()
|
||||
}
|
||||
|
||||
private fun pairingKeypad(keyHeightDp: Int? = null): RemoteViews = RemoteViews(packageName, R.layout.wireless_pairing_keypad).apply {
|
||||
val ids = intArrayOf(R.id.pair_key_0, R.id.pair_key_1, R.id.pair_key_2, R.id.pair_key_3, R.id.pair_key_4,
|
||||
R.id.pair_key_5, R.id.pair_key_6, R.id.pair_key_7, R.id.pair_key_8, R.id.pair_key_9,
|
||||
R.id.pair_key_delete, R.id.pair_key_submit)
|
||||
ids.forEachIndexed { key, id ->
|
||||
if (keyHeightDp != null && Build.VERSION.SDK_INT >= 31) {
|
||||
// Fit both rows inside the system template's heads-up or collapsed height.
|
||||
setViewLayoutHeight(id, keyHeightDp.toFloat(), TypedValue.COMPLEX_UNIT_DIP)
|
||||
setViewLayoutMargin(id, RemoteViews.MARGIN_TOP, 1f, TypedValue.COMPLEX_UNIT_DIP)
|
||||
setViewLayoutMargin(id, RemoteViews.MARGIN_BOTTOM, 1f, TypedValue.COMPLEX_UNIT_DIP)
|
||||
setTextViewTextSize(id, TypedValue.COMPLEX_UNIT_SP, if (keyHeightDp < 24) 14f else 15f)
|
||||
}
|
||||
val intent = Intent(this@WirelessAdbPairingService, WirelessAdbPairingService::class.java)
|
||||
.setAction(ACTION_KEYPAD)
|
||||
.setData(Uri.Builder().scheme("droiddeck-pairing").authority(keypadToken).appendPath(key.toString()).build())
|
||||
val press = PendingIntent.getService(this@WirelessAdbPairingService, key, intent, PendingIntent.FLAG_IMMUTABLE)
|
||||
setOnClickPendingIntent(id, press)
|
||||
}
|
||||
setTextViewText(R.id.pair_key_code, keypad.display)
|
||||
setContentDescription(R.id.pair_key_code, getString(R.string.adbpair_keypad_entered, keypad.digits.length))
|
||||
setBoolean(R.id.pair_key_delete, "setEnabled", keypad.digits.isNotEmpty())
|
||||
setBoolean(R.id.pair_key_submit, "setEnabled", keypad.ready && pairingPort != null)
|
||||
}
|
||||
|
||||
companion object {
|
||||
private const val CHANNEL_ID = "wireless-adb-pairing"
|
||||
private const val PROGRESS_CHANNEL_ID = "wireless-adb-pairing-progress"
|
||||
private const val NOTIFICATION_ID = 3
|
||||
private const val KEYPAD_NOTIFICATION_ID = 3403
|
||||
private const val KEYPAD_GROUP = "wireless-adb-keypad"
|
||||
private const val PAIRING_TYPE = "_adb-tls-pairing._tcp"
|
||||
private const val ACTION_KEYPAD = "com.droiddeck.launcher.action.WIRELESS_ADB_KEYPAD"
|
||||
private const val ACTION_CODE = "com.droiddeck.launcher.action.WIRELESS_ADB_CODE"
|
||||
private const val ACTION_CANCEL = "com.droiddeck.launcher.action.WIRELESS_ADB_CANCEL"
|
||||
private const val KEY_CODE = "code"
|
||||
private const val EXTRA_ENABLE_LIMIT = "enable_limit"
|
||||
private const val TIMEOUT_MS = 5 * 60_000L
|
||||
|
||||
@@ -365,7 +288,7 @@ class WirelessAdbPairingService : Service() {
|
||||
fun notificationsEnabled(context: Context): Boolean =
|
||||
context.getSystemService(NotificationManager::class.java)?.areNotificationsEnabled() != false && !channelBlocked(context)
|
||||
|
||||
/** Pairing needs this notification channel to show the keypad over Android Settings. */
|
||||
/** The code is typed into a notification on this channel; a channel the user switched off leaves pairing with nothing to type into. */
|
||||
fun channelBlocked(context: Context): Boolean =
|
||||
context.getSystemService(NotificationManager::class.java)?.getNotificationChannel(CHANNEL_ID)?.importance == NotificationManager.IMPORTANCE_NONE
|
||||
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
package com.droiddeck.launcher.core
|
||||
|
||||
internal class WirelessPairingKeypad {
|
||||
var digits = ""
|
||||
private set
|
||||
val ready: Boolean get() = digits.length == LENGTH
|
||||
val display: String get() = digits.padEnd(LENGTH, '–')
|
||||
|
||||
fun press(key: Int): Boolean {
|
||||
val next = when {
|
||||
key == DELETE -> digits.dropLast(1)
|
||||
key in 0..9 && !ready -> digits + key
|
||||
else -> digits
|
||||
}
|
||||
if (next == digits) return false
|
||||
digits = next
|
||||
return true
|
||||
}
|
||||
|
||||
fun clear() {
|
||||
digits = ""
|
||||
}
|
||||
|
||||
companion object {
|
||||
const val LENGTH = 6
|
||||
const val DELETE = 10
|
||||
const val SUBMIT = 11
|
||||
}
|
||||
}
|
||||
@@ -14,15 +14,6 @@ object AllFilesAccess {
|
||||
fun missing(sdk: Int = Build.VERSION.SDK_INT, granted: () -> Boolean = { Environment.isExternalStorageManager() }): Boolean =
|
||||
sdk >= Build.VERSION_CODES.R && !granted()
|
||||
|
||||
fun state(sdk: Int = Build.VERSION.SDK_INT, granted: () -> Boolean = { Environment.isExternalStorageManager() }): String = when {
|
||||
sdk < Build.VERSION_CODES.R -> "not needed"
|
||||
granted() -> "granted"
|
||||
else -> "missing"
|
||||
}
|
||||
|
||||
fun mayHideFilesIn(path: String, sdk: Int = Build.VERSION.SDK_INT, granted: () -> Boolean = { Environment.isExternalStorageManager() }): Boolean =
|
||||
covers(path) && missing(sdk, granted)
|
||||
|
||||
/** Whether reading [path] takes all-files access: shared storage, outside the per-app folders directly under a volume's root, which Android always lets the app use. */
|
||||
fun covers(path: String): Boolean {
|
||||
val inside = VOLUME.matchEntire(path)?.groupValues?.get(2) ?: return false
|
||||
|
||||
@@ -14,7 +14,7 @@ internal object DroidDeckHudConfig {
|
||||
"showLatency" to "1", "showAvg" to "1", "showLow1" to "1", "showLow01" to "0", "showLow001" to "0",
|
||||
"showEngine" to "1", "showRenderer" to "1",
|
||||
"showDisplay" to "1", "showHdr" to "1", "showNet" to "1", "showResolution" to "1",
|
||||
"showProton" to "1", "showUpscale" to "1", "showSession" to "1", "showClock" to "1", "hudOrder" to "",
|
||||
"showProton" to "1", "showSession" to "1", "showClock" to "1", "hudOrder" to "",
|
||||
"tempUnit" to "c", "tempBands" to "1", "tempAuto" to "1", "tempRedCpu" to "90", "tempRedGpu" to "90", "tempRedBat" to "48",
|
||||
)
|
||||
|
||||
|
||||
@@ -287,9 +287,6 @@ class DroidDeckHudHost(context: Context) {
|
||||
proton = protonName(pid) ?: proton
|
||||
}
|
||||
hud.setWineVersion(proton)
|
||||
hud.setUpscale(com.droiddeck.launcher.session.UpscaleComponent.status(context)?.takeIf { it.active }?.let {
|
||||
it.backendTag + " " + String.format(java.util.Locale.ROOT, "%.1fms", if (it.npu) it.npuMs else it.gpuMs)
|
||||
})
|
||||
hud.setPresentedFps(presentedFps())
|
||||
}
|
||||
|
||||
|
||||
@@ -74,13 +74,12 @@ enum class DroidDeckHudSize(val token: String, val label: String) {
|
||||
FULL to listOf(
|
||||
"showFPS", "showFPSGraph", "showGpuModel", "showDisplay", "showHdr", "showGPULoad", "showGpuTemp",
|
||||
"showCPUUsage", "showTemp", "showVram", "showRAM", "showBattery", "showBatteryTemp", "showBatteryTime",
|
||||
"showPower", "showLatency", "showAvg", "showLow1", "showLow01", "showLow001", "showUpscale",
|
||||
"showPower", "showLatency", "showAvg", "showLow1", "showLow01", "showLow001",
|
||||
),
|
||||
TILES to listOf(
|
||||
"showFPS", "showFPSGraph", "showLatency", "showGPULoad", "showGpuTemp", "showCPUUsage", "showTemp",
|
||||
"showVram", "showRAM", "showEngine", "showDisplay", "showHdr", "showAvg", "showLow1",
|
||||
"showLow01", "showLow001", "showGpuModel", "showBattery", "showBatteryTemp", "showBatteryTime", "showPower",
|
||||
"showUpscale",
|
||||
),
|
||||
PILL to listOf(
|
||||
"showFPS", "showFPSGraph", "showGpuModel", "showGPULoad", "showGpuTemp", "showCPUUsage", "showTemp",
|
||||
|
||||
@@ -114,7 +114,6 @@ class DroidDeckHudView(context: Context) : View(context) {
|
||||
private var gpuModel = ""
|
||||
private var gpuSpoofName = ""
|
||||
private var wineVersion = ""
|
||||
private var upscaleText = ""
|
||||
private var graphicsWrapper = ""
|
||||
private var dxvkVersion = ""
|
||||
private var vkd3dVersion = ""
|
||||
@@ -284,8 +283,6 @@ class DroidDeckHudView(context: Context) : View(context) {
|
||||
fun setEngineLabel(s: String?) { if ((s ?: "") != engineLabel) { engineLabel = s ?: ""; post { rebuildAndInvalidate() } } }
|
||||
fun setGpuModel(s: String?) { if ((s ?: "") != gpuModel) { gpuModel = s ?: ""; post { rebuildAndInvalidate() } } }
|
||||
fun setWineVersion(s: String?) { if ((s ?: "") != wineVersion) { wineVersion = s ?: ""; post { rebuildAndInvalidate() } } }
|
||||
/** The in-game upscaler's backend and its time per frame (empty: not running). */
|
||||
fun setUpscale(s: String?) { if ((s ?: "") != upscaleText) { upscaleText = s ?: ""; post { rebuildAndInvalidate() } } }
|
||||
|
||||
fun setResolution(s: String?) { resolution = s ?: "" }
|
||||
|
||||
@@ -781,7 +778,6 @@ class DroidDeckHudView(context: Context) : View(context) {
|
||||
"showHdr" -> "HDR" to colHdr
|
||||
"showResolution" -> "RES" to colDim
|
||||
"showProton" -> "PROTON" to colVram
|
||||
"showUpscale" -> "UPSCALE" to colFps
|
||||
"showSession" -> "TIME" to colDim
|
||||
else -> key.removePrefix("show") to colDim
|
||||
}
|
||||
@@ -819,7 +815,6 @@ class DroidDeckHudView(context: Context) : View(context) {
|
||||
"showHdr" -> if (showHdrLine()) hdrValue(valuePx) else listOf(Span("off", colDim, valuePx))
|
||||
"showResolution" -> listOf(Span(resolutionString(), colValue, valuePx))
|
||||
"showProton" -> listOf(Span(wineVersion.ifBlank { "—" }, colVram, valuePx))
|
||||
"showUpscale" -> listOf(Span(upscaleText.ifBlank { "—" }, colValue, valuePx))
|
||||
"showSession" -> listOf(Span(elapsedString(), colValue, valuePx))
|
||||
else -> listOf(Span("—", colDim, valuePx))
|
||||
}
|
||||
|
||||
@@ -1,324 +0,0 @@
|
||||
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 }.sortedBy(::sharePriority)
|
||||
val candidates = discovery.candidates.filter { it.linePrefix == null }
|
||||
if (candidates.isEmpty()) {
|
||||
out.deleteRecursively()
|
||||
return null
|
||||
@@ -697,6 +697,15 @@ 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)
|
||||
@@ -733,24 +742,9 @@ 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 {
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
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 }
|
||||
}
|
||||
}
|
||||
@@ -98,13 +98,6 @@ object GameEnvironmentStore {
|
||||
return config
|
||||
}
|
||||
|
||||
@Synchronized
|
||||
fun setGameUpscaler(context: Context, scope: String, choice: com.droiddeck.launcher.core.GameUpscaler.Choice?): GameEnvironment.Config {
|
||||
val config = com.droiddeck.launcher.core.GameUpscaler.withChoice(read(context), scope, choice)
|
||||
save(context, config)
|
||||
return config
|
||||
}
|
||||
|
||||
@Synchronized
|
||||
fun setDefault(context: Context, scope: String, name: String, value: String): Boolean {
|
||||
val config = read(context)
|
||||
|
||||
@@ -9,8 +9,6 @@ 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
|
||||
@@ -36,9 +34,7 @@ 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 x86_64: Boolean = false, val label: Int = 0) {
|
||||
val arch: String get() = if (x86_64) "x86-64" else "ARM64"
|
||||
}
|
||||
val prereleases: Boolean = false)
|
||||
|
||||
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)
|
||||
@@ -46,13 +42,11 @@ 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),
|
||||
)
|
||||
@@ -72,7 +66,7 @@ object ProtonExtras {
|
||||
|
||||
internal fun installedIn(dir: File, tool: Tool): List<String> =
|
||||
dir.listFiles()
|
||||
?.filter { it.isDirectory && it.name.startsWith(tool.prefix) && x86_64Build(it) == tool.x86_64 && usable(it) }
|
||||
?.filter { it.isDirectory && it.name.startsWith(tool.prefix) && !x86_64Build(it) && usable(it) }
|
||||
?.map { it.name }
|
||||
?.sortedWith { a, b -> compareVersions(a, b) }
|
||||
?: emptyList()
|
||||
@@ -117,31 +111,15 @@ object ProtonExtras {
|
||||
|
||||
fun update(context: Context, tool: Tool): String? = updateFor(installedTags(context, tool), cachedLatest(context, tool))
|
||||
|
||||
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)
|
||||
fun missing(context: Context, tool: Tool): String? =
|
||||
if (tool.id == OWN && !declined(context) && installedAll(context, tool).isEmpty()) cachedLatest(context, tool) else null
|
||||
|
||||
private fun choices(context: Context) = context.getSharedPreferences("proton-auto-updates", Context.MODE_PRIVATE)
|
||||
|
||||
fun declined(context: Context, id: String = OWN): Boolean = choices(context).getBoolean("$id.declined", false)
|
||||
fun declined(context: Context): Boolean = choices(context).getBoolean("$OWN.declined", false)
|
||||
|
||||
fun setDeclined(context: Context, declined: Boolean, id: String = OWN) {
|
||||
choices(context).edit().putBoolean("$id.declined", declined).apply()
|
||||
fun setDeclined(context: Context, declined: Boolean) {
|
||||
choices(context).edit().putBoolean("$OWN.declined", declined).apply()
|
||||
}
|
||||
|
||||
fun cachedLatest(context: Context, tool: Tool): String? =
|
||||
@@ -245,8 +223,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 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
|
||||
// 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
|
||||
if (deleteTool(context, old)) ComponentsManager.forgetProton(context, old)
|
||||
else Log.w(TAG, "could not remove $old")
|
||||
}
|
||||
@@ -313,7 +291,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, tool.arch)
|
||||
val asset = releases(tool)?.let { pickAsset(tool, it) } ?: return context.getString(R.string.pextra_no_release, tool.name)
|
||||
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()
|
||||
@@ -330,7 +308,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, tool.arch)
|
||||
val asset = releases(tool)?.let { pickAsset(tool, it) } ?: return context.getString(R.string.pextra_no_release, tool.name)
|
||||
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()
|
||||
@@ -399,7 +377,7 @@ object ProtonExtras {
|
||||
archive.delete()
|
||||
unqueue(context, tool)
|
||||
record(context, tool, placed, asset.tag)
|
||||
if (tool.id == OWN || tool.id == BIONIC || tool.id == ANTICHEAT) replaceOlder(context, tool)
|
||||
if (tool.id == OWN || tool.id == BIONIC) replaceOlder(context, tool)
|
||||
if (EsyncPacks.enabled(context)) {
|
||||
onProgress(context.getString(R.string.esync_fetching), -1)
|
||||
try {
|
||||
|
||||
@@ -259,11 +259,6 @@ object SessionFiles {
|
||||
"usr/local/lib/droiddeck-gpuload/libVkLayer_droiddeck_gpuload.so" to "usr/local/lib/droiddeck-gpuload/libVkLayer_droiddeck_gpuload.so",
|
||||
"usr/local/lib/droiddeck-gpuload/VK_LAYER_DROIDDECK_gpu_load.json" to "usr/share/vulkan/implicit_layer.d/droiddeck_gpu_load.json",
|
||||
)
|
||||
// The in-game upscaler's layer for PRoot games (UpscaleComponent; off unless DROIDDECK_UPSCALE=1).
|
||||
val upscaleLayer = listOf(
|
||||
"usr/local/lib/droiddeck-upscale-layer/libVkLayer_droiddeck_upscale.so" to "usr/local/lib/droiddeck-upscale-layer/libVkLayer_droiddeck_upscale.so",
|
||||
"usr/local/lib/droiddeck-upscale-layer/VK_LAYER_DROIDDECK_upscale.json" to "usr/share/vulkan/implicit_layer.d/droiddeck_upscale.json",
|
||||
)
|
||||
val fexPreloads = listOf("x86_64", "i386").flatMap { arch ->
|
||||
listOf("libddsession.so", "libfakeinput.so", "libfaultreport.so").map { "$arch/$it" to "usr/local/lib/droiddeck-fex/$arch/$it" }
|
||||
} + listOf("libvulkan-thunk.so", "libwebkitinput.so").map { "x86_64/$it" to "usr/local/lib/droiddeck-fex/x86_64/$it" }
|
||||
@@ -286,7 +281,7 @@ object SessionFiles {
|
||||
"usr/local/lib/droiddeck-pipewire.tzst" to "usr/local/lib/droiddeck-pipewire.tzst",
|
||||
"usr/local/share/licenses/dwarfs/LICENSE" to "usr/local/share/licenses/dwarfs/LICENSE",
|
||||
"usr/local/share/licenses/uruntime/LICENSE" to "usr/local/share/licenses/uruntime/LICENSE",
|
||||
) + mangoapp + xclipse.map { it to it } + maliCompat + msitools.map { it to it } + vr + gpuLoad + upscaleLayer + fexPreloads).filter { (asset, _) ->
|
||||
) + mangoapp + xclipse.map { it to it } + maliCompat + msitools.map { it to it } + vr + gpuLoad + fexPreloads).filter { (asset, _) ->
|
||||
val dir = asset.substringBeforeLast('/')
|
||||
runCatching { context.assets.list("linuxfs/$dir")?.contains(asset.substringAfterLast('/')) == true }.getOrDefault(false)
|
||||
}
|
||||
|
||||
@@ -112,21 +112,10 @@ object SessionPrefs {
|
||||
else -> false
|
||||
}
|
||||
|
||||
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 launcherFullscreen(context: Context): Boolean = prefs(context).getBoolean("launcherFullscreen", true)
|
||||
|
||||
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 setLauncherFullscreen(context: Context, on: Boolean) {
|
||||
prefs(context).edit().putBoolean("launcherFullscreen", on).apply()
|
||||
}
|
||||
|
||||
fun launcherFrost(context: Context): Boolean = prefs(context).getBoolean("launcherFrost", false)
|
||||
@@ -983,6 +972,9 @@ object SessionPrefs {
|
||||
|
||||
fun returnAfterGame(context: Context): Boolean = prefs(context).getBoolean("returnAfterGame", true)
|
||||
|
||||
/** A sleeping session writes its memory to storage instead of zram. */
|
||||
fun diskSpill(context: Context): Boolean = prefs(context).getBoolean("diskSpill", false)
|
||||
|
||||
fun valveProtonOnDemand(context: Context): Boolean = prefs(context).getBoolean("valveProtonOnDemand", true)
|
||||
|
||||
fun setValveProtonOnDemand(context: Context, on: Boolean) {
|
||||
@@ -1923,9 +1915,6 @@ 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
|
||||
|
||||
@@ -111,6 +111,8 @@ class SessionService : Service() {
|
||||
private var suspendOperationPending = false
|
||||
private var pipTask = false
|
||||
private var suspendAttemptFailed = false
|
||||
private val resumeRecovery = SuspendRecovery()
|
||||
private val retryResume = Runnable { updateSuspendPolicy() }
|
||||
private var freezePending = false
|
||||
private var freezeCancelled = false
|
||||
private var pendingSteamGameId: String? = null
|
||||
@@ -276,7 +278,7 @@ class SessionService : Service() {
|
||||
}
|
||||
ACTION_XR_ACTIVITY_VISIBLE -> {
|
||||
xrActivityVisible = true
|
||||
resumeSession(panelVisible = false)
|
||||
resumeSession(panelVisible = false, restartRecovery = false)
|
||||
return START_NOT_STICKY
|
||||
}
|
||||
ACTION_XR_ACTIVITY_HIDDEN -> {
|
||||
@@ -380,6 +382,8 @@ class SessionService : Service() {
|
||||
suspendOperationPending = false
|
||||
freezePending = false
|
||||
suspendAttemptFailed = false
|
||||
resumeRecovery.reset()
|
||||
mainHandler.removeCallbacks(retryResume)
|
||||
suspendController = null
|
||||
SessionState.micAvailable = false
|
||||
SessionState.micEnabled = false
|
||||
@@ -977,7 +981,7 @@ class SessionService : Service() {
|
||||
SessionEvents.record("session.paged_out", mapOf(
|
||||
"processes" to processes, "unacknowledged" to unacknowledged, "residentMb" to residentKb / 1024,
|
||||
"swapMb" to swapKb / 1024, "swapBeforeMb" to swapBeforeKb / 1024, "ms" to millis,
|
||||
))
|
||||
), sessionDir)
|
||||
}
|
||||
},
|
||||
pagedIn = { processes, swapKb, swapBeforeKb, availableKb, millis ->
|
||||
@@ -990,7 +994,27 @@ class SessionService : Service() {
|
||||
SessionEvents.record("session.paged_in", mapOf(
|
||||
"processes" to processes, "swapMb" to swapKb / 1024, "swapBeforeMb" to swapBeforeKb / 1024,
|
||||
"availableMb" to availableKb / 1024, "ms" to millis,
|
||||
))
|
||||
), sessionDir)
|
||||
}
|
||||
},
|
||||
spilled = { processes, spilledKb, residentKb, millis ->
|
||||
Log.i(TAG, "wrote $processes processes to storage in $millis ms: ${spilledKb / 1024} MB, " +
|
||||
"resident ${residentKb / 1024} MB")
|
||||
mainHandler.post {
|
||||
SessionEvents.record("session.spilled", mapOf(
|
||||
"processes" to processes, "spilledMb" to spilledKb / 1024, "residentMb" to residentKb / 1024,
|
||||
"ms" to millis,
|
||||
), sessionDir)
|
||||
}
|
||||
},
|
||||
restored = { processes, unacknowledged, residentKb, millis ->
|
||||
Log.i(TAG, "restored $processes processes ($unacknowledged unacknowledged) from storage in $millis ms: " +
|
||||
"resident ${residentKb / 1024} MB")
|
||||
mainHandler.post {
|
||||
SessionEvents.record("session.restored", mapOf(
|
||||
"processes" to processes, "unacknowledged" to unacknowledged,
|
||||
"residentMb" to residentKb / 1024, "ms" to millis,
|
||||
), sessionDir)
|
||||
}
|
||||
},
|
||||
)
|
||||
@@ -1137,8 +1161,6 @@ class SessionService : Service() {
|
||||
if (SessionPrefs.noGlError(this)) guest.add("MESA_NO_ERROR=1")
|
||||
guest.add("MESA_DISK_CACHE_DATABASE=1")
|
||||
guest.addAll(GpuStatsComponent.guestEnv(LinuxRuntime.rootDir(this)))
|
||||
guest.addAll(UpscaleComponent.guestEnv(this))
|
||||
UpscaleComponent.prepare(this)
|
||||
guest.add("GLIBC_TUNABLES=glibc.pthread.rseq=0:glibc.malloc.top_pad=16777216")
|
||||
if (SessionState.mode == MODE_STEAM) guest.add("DD_MANGOAPP=" + (if (SessionPrefs.mangoapp(this)) "1" else "0"))
|
||||
SessionPaths.current()?.let { SessionArtifacts.markRpcs3Log(it, LinuxRuntime.rootDir(this)) }
|
||||
@@ -1357,17 +1379,10 @@ class SessionService : Service() {
|
||||
if (controllersOn) components.add(RumbleComponent().also { it.attach(this) })
|
||||
val home = File(LinuxRuntime.rootDir(this), "root")
|
||||
File(home, "Storage").mkdirs()
|
||||
val addedExeFolders = com.droiddeck.launcher.frontend.AddedExes.list(this).map { File(it.folder) }.distinctBy { it.path }
|
||||
val addedGameRoots = com.droiddeck.launcher.frontend.AddedGames.roots(this)
|
||||
val addedFolders = (addedExeFolders + addedGameRoots.map { it.host }).distinctBy { it.path }
|
||||
for (folder in addedFolders) {
|
||||
if (com.droiddeck.launcher.files.AllFilesAccess.mayHideFilesIn(folder.path))
|
||||
Log.w(TAG, "added games: Android may hide .exe files in $folder because All files access is missing")
|
||||
}
|
||||
if (sharedStorage != null) {
|
||||
binds.add(sharedStorage.path + ":/root/Storage")
|
||||
} else {
|
||||
for (folder in addedExeFolders) {
|
||||
for (folder in com.droiddeck.launcher.frontend.AddedExes.list(this).map { File(it.folder) }.distinctBy { it.path }) {
|
||||
val guest = com.droiddeck.launcher.frontend.AddedGames.guestPath(this, folder) ?: continue
|
||||
if (!guest.startsWith("/root/Storage/") || !folder.isDirectory) continue
|
||||
File(LinuxRuntime.rootDir(this), guest.removePrefix("/")).mkdirs()
|
||||
@@ -1418,7 +1433,7 @@ class SessionService : Service() {
|
||||
Log.w(TAG, "storage diagnostics: selected library could not be identified; metadata snapshot only")
|
||||
}
|
||||
}
|
||||
for (root in addedGameRoots) {
|
||||
for (root in com.droiddeck.launcher.frontend.AddedGames.roots(this)) {
|
||||
if (root.host.isDirectory && root.host.canRead()) {
|
||||
File(LinuxRuntime.rootDir(this), root.guest.removePrefix("/")).mkdirs()
|
||||
binds.add(root.host.path + ":" + root.guest)
|
||||
@@ -1770,7 +1785,7 @@ class SessionService : Service() {
|
||||
return
|
||||
}
|
||||
if (SessionState.suspended) {
|
||||
resumeSession()
|
||||
resumeSession(restartRecovery = false)
|
||||
mainHandler.postDelayed(flushSteamGame, GAME_LAUNCH_RETRY_MS)
|
||||
return
|
||||
}
|
||||
@@ -1939,8 +1954,10 @@ class SessionService : Service() {
|
||||
private fun steamGameRunning(gameId: String): Boolean =
|
||||
SteamGameProcess.running(gameId)
|
||||
|
||||
private fun resumeSession(panelVisible: Boolean = true) {
|
||||
if (SessionState.suspended) SessionState.resumeRequested = true
|
||||
private fun resumeSession(panelVisible: Boolean = true, restartRecovery: Boolean = true) {
|
||||
if (SessionState.suspended && (restartRecovery || resumeRecovery.due(SystemClock.elapsedRealtime()))) {
|
||||
SessionState.resumeRequested = true
|
||||
}
|
||||
if (panelVisible) activityVisible = true
|
||||
screenOn = readScreenOn()
|
||||
manualPauseRequested = false
|
||||
@@ -1951,6 +1968,7 @@ class SessionService : Service() {
|
||||
completeNativeSleep()
|
||||
completeSteamSleep()
|
||||
suspendAttemptFailed = false
|
||||
if (restartRecovery) resumeRecovery.reset()
|
||||
updateSuspendPolicy()
|
||||
}
|
||||
|
||||
@@ -2169,7 +2187,12 @@ class SessionService : Service() {
|
||||
controller.cancelFreeze()
|
||||
}
|
||||
if (shouldSuspend && SessionState.suspended && !suspendOperationPending) SessionState.resumeRequested = false
|
||||
if (suspendOperationPending || suspendAttemptFailed || shouldSuspend == SessionState.suspended) return
|
||||
// A session still held after a failed suspend or resume is released by paced resumes, whatever clears or
|
||||
// sets the latch; only an explicit resume (resumeSession) restarts the pacing.
|
||||
val held = SessionState.suspended && SessionState.resumeFailed && !shouldSuspend
|
||||
if (!suspendOperationPending && resumeRecovery.holds(held, SystemClock.elapsedRealtime())) return
|
||||
val recovering = suspendAttemptFailed && held
|
||||
if (suspendOperationPending || (suspendAttemptFailed && !recovering) || shouldSuspend == SessionState.suspended) return
|
||||
val gen = sessionGen
|
||||
suspendOperationPending = true
|
||||
SessionEvents.record(if (shouldSuspend) "session.suspend_requested" else "session.resume_requested", mapOf(
|
||||
@@ -2184,9 +2207,9 @@ class SessionService : Service() {
|
||||
freezeCancelled = false
|
||||
val freezeSteamToken = steamSleepToken
|
||||
val freezeNativeToken = nativeSleepToken
|
||||
controller.freeze(
|
||||
pageOut = steamSleepToken != null || nativeSleepToken != null || !activityVisible || !screenOn,
|
||||
) { success ->
|
||||
val pageOut = steamSleepToken != null || nativeSleepToken != null || !activityVisible || !screenOn
|
||||
controller.freeze(pageOut = pageOut, spill = pageOut && SessionPrefs.diskSpill(this)) { success ->
|
||||
val rollbackPending = !success && controller.rollbackPending
|
||||
mainHandler.post {
|
||||
if (gen != sessionGen || !SessionState.running) return@post
|
||||
SessionState.suspending = false
|
||||
@@ -2195,6 +2218,7 @@ class SessionService : Service() {
|
||||
if (success) {
|
||||
SessionState.suspended = true
|
||||
SessionState.resumeFailed = false
|
||||
resumeRecovery.reset()
|
||||
SessionEvents.transition(SessionPhase.SUSPENDED, "session.suspended")
|
||||
releaseLocks()
|
||||
refreshNotification()
|
||||
@@ -2209,6 +2233,12 @@ class SessionService : Service() {
|
||||
SessionState.manualPause = false
|
||||
Log.w(TAG, "could not confirm that the session stopped")
|
||||
}
|
||||
// Some processes are still held: only a resume can release them.
|
||||
if (rollbackPending) {
|
||||
SessionState.suspended = true
|
||||
SessionState.resumeFailed = true
|
||||
Log.w(TAG, "could not return the session to running after the suspend failed")
|
||||
}
|
||||
}
|
||||
updateSuspendPolicy()
|
||||
}
|
||||
@@ -2217,6 +2247,8 @@ class SessionService : Service() {
|
||||
acquireLocks()
|
||||
SessionState.resuming = true
|
||||
controller.resume { success ->
|
||||
// A loss with another spill still reading back is retried for that one; the loss is kept.
|
||||
val lost = !success && controller.guestLost && !controller.restoreOutstanding
|
||||
mainHandler.post {
|
||||
if (gen != sessionGen || !SessionState.running) return@post
|
||||
suspendOperationPending = false
|
||||
@@ -2225,13 +2257,28 @@ class SessionService : Service() {
|
||||
if (success) {
|
||||
SessionState.suspended = false
|
||||
SessionState.resumeFailed = false
|
||||
suspendAttemptFailed = false
|
||||
resumeRecovery.reset()
|
||||
mainHandler.removeCallbacks(retryResume)
|
||||
SessionEvents.transition(SessionEvents.resumePhase(), "session.resumed")
|
||||
refreshNotification()
|
||||
} else if (lost) {
|
||||
// Everything was continued, but a game ended without its memory back: no retry restores
|
||||
// it, and the failure stays reported.
|
||||
SessionState.suspended = false
|
||||
SessionState.resumeFailures++
|
||||
SessionState.resumeFailed = true
|
||||
resumeRecovery.reset()
|
||||
mainHandler.removeCallbacks(retryResume)
|
||||
SessionEvents.transition(SessionEvents.resumePhase(), "session.resume_lost_guest")
|
||||
Log.w(TAG, "a game ended before its memory was read back from storage")
|
||||
refreshNotification()
|
||||
} else {
|
||||
suspendAttemptFailed = true
|
||||
SessionState.resumeFailures++
|
||||
SessionState.resumeFailed = true
|
||||
Log.w(TAG, "could not confirm that the session resumed")
|
||||
resumeRecovery.failed(SystemClock.elapsedRealtime())?.let { mainHandler.postDelayed(retryResume, it) }
|
||||
}
|
||||
updateSuspendPolicy()
|
||||
}
|
||||
|
||||
@@ -29,6 +29,8 @@ internal class SessionSuspendController(
|
||||
{ _, _, _, _, _, _ -> },
|
||||
private val pagedIn: (processes: Int, swapKb: Long, swapBeforeKb: Long, availableKb: Long, millis: Long) -> Unit =
|
||||
{ _, _, _, _, _ -> },
|
||||
private val spilled: (processes: Int, spilledKb: Long, residentKb: Long, millis: Long) -> Unit = { _, _, _, _ -> },
|
||||
private val restored: (processes: Int, unacknowledged: Int, residentKb: Long, millis: Long) -> Unit = { _, _, _, _ -> },
|
||||
) {
|
||||
private enum class Role { SESSION_ROOT, SESSION_CHILD, HELPER_ROOT, HELPER_CHILD }
|
||||
|
||||
@@ -53,10 +55,34 @@ internal class SessionSuspendController(
|
||||
private var frozen = emptyList<ProcessRecord>()
|
||||
private var frozenSince: Long? = null
|
||||
private var pagedOutTargets = emptyList<ProcessRecord>()
|
||||
private var spilledTargets = emptyList<ProcessRecord>()
|
||||
// Asked to spill and not yet released by a resume count they saw: acknowledged or not, each may park its process.
|
||||
private var spillAsked = emptyList<ProcessRecord>()
|
||||
private var counterUnpublished = false
|
||||
// Spilled targets whose positive answer was taken (and its acknowledgement removed).
|
||||
private var spillWritten = emptyList<ProcessRecord>()
|
||||
// Taken into the restore wait by this resume: alive then, so one that ends without its memory back is lost.
|
||||
private var adopted = emptyList<ProcessRecord>()
|
||||
// Released by this attempt on a late answer of 0 or a cancellation: not lost if they end afterwards.
|
||||
private var answeredLate = emptyList<ProcessRecord>()
|
||||
|
||||
fun freeze(pageOut: Boolean = false, completion: (Boolean) -> Unit) {
|
||||
// A spilled process ended without its memory back since the last suspend began: retrying cannot bring it
|
||||
// back, so no later resume of this suspension reports success.
|
||||
@Volatile var guestLost = false
|
||||
private set
|
||||
|
||||
// Spilled processes still reading back, which a later resume waits for again.
|
||||
@Volatile var restoreOutstanding = false
|
||||
private set
|
||||
|
||||
// A failed freeze that could not return every process to running: only a resume releases them.
|
||||
@Volatile var rollbackPending = false
|
||||
private set
|
||||
|
||||
fun freeze(pageOut: Boolean = false, spill: Boolean = false, completion: (Boolean) -> Unit) {
|
||||
cancelled = false
|
||||
submit({
|
||||
guestLost = false
|
||||
val records = frozen.associateByTo(LinkedHashMap()) { it.pid to it.started }
|
||||
var complete = false
|
||||
var interrupted = false
|
||||
@@ -74,7 +100,7 @@ internal class SessionSuspendController(
|
||||
records[it.pid to it.started] = ProcessRecord(it.pid, it.started, Role.HELPER_ROOT)
|
||||
}
|
||||
}
|
||||
if (pageOut) pageOut(records, root.pid, helpers)
|
||||
if (pageOut) pageOut(records, root.pid, helpers, spill)
|
||||
val deadline = nowMillis() + FREEZE_TIMEOUT_MS
|
||||
var previous: Map<TaskIdentity, Long>? = null
|
||||
for (pass in 0 until FREEZE_MAX_PASSES) {
|
||||
@@ -105,9 +131,14 @@ internal class SessionSuspendController(
|
||||
frozen = records.values.toList()
|
||||
if (complete && frozenSince == null) frozenSince = nowNanos()
|
||||
if (!complete) {
|
||||
if (restoreSafely(frozen)) frozen = emptyList()
|
||||
// A spilled process is back only once its helper has read it back: until then a resume retries.
|
||||
adopted = emptyList()
|
||||
answeredLate = emptyList()
|
||||
val running = startedAlive()
|
||||
if (restoreSafely(frozen) && awaitRestored(running)) frozen = emptyList()
|
||||
runAudio(resumeAudio)
|
||||
}
|
||||
rollbackPending = !complete && frozen.isNotEmpty()
|
||||
if (interrupted) Thread.currentThread().interrupt()
|
||||
}
|
||||
completion(complete)
|
||||
@@ -122,12 +153,23 @@ internal class SessionSuspendController(
|
||||
fun resume(completion: (Boolean) -> Unit) {
|
||||
submit({
|
||||
val records = frozen
|
||||
advanceClock()
|
||||
val advancedTo = advanceClock()
|
||||
adopted = emptyList()
|
||||
answeredLate = emptyList()
|
||||
val running = startedAlive()
|
||||
runAudio(resumeAudio)
|
||||
val resumed = restoreSafely(records)
|
||||
if (resumed) frozen = emptyList()
|
||||
completion(resumed)
|
||||
if (resumed) readBack()
|
||||
if (resumed) {
|
||||
frozen = emptyList()
|
||||
rollbackPending = false
|
||||
}
|
||||
// nothing was continued: the guest clock owes the time from here to the next attempt
|
||||
if (!resumed && counterUnpublished && advancedTo != null) frozenSince = advancedTo
|
||||
// a spilled process runs again only once its helper has read its memory back
|
||||
val restoredAll = resumed && awaitRestored(running)
|
||||
restoreOutstanding = frozen.isNotEmpty() || spilledTargets.isNotEmpty()
|
||||
completion(restoredAll && !guestLost)
|
||||
if (resumed) readBack(waitForRestore = false)
|
||||
}, { completion(false) })
|
||||
}
|
||||
|
||||
@@ -135,7 +177,10 @@ internal class SessionSuspendController(
|
||||
closing = true
|
||||
submit({
|
||||
advanceClock()
|
||||
val running = startedAlive()
|
||||
if (restoreSafely(frozen)) frozen = emptyList()
|
||||
// the teardown asks the guests to exit, which a process still reading back cannot answer
|
||||
if (frozen.isEmpty()) awaitRestored(running, whileClosing = true)
|
||||
completion()
|
||||
executor.shutdown()
|
||||
}, completion)
|
||||
@@ -149,22 +194,25 @@ internal class SessionSuspendController(
|
||||
}
|
||||
}
|
||||
|
||||
private fun advanceClock() {
|
||||
val since = frozenSince ?: return
|
||||
// Returns the moment the guest clock now accounts for, or null when no frozen interval was open.
|
||||
private fun advanceClock(): Long? {
|
||||
val since = frozenSince ?: return null
|
||||
frozenSince = null
|
||||
val control = clockControl?.takeIf { it.isFile && it.length() >= Long.SIZE_BYTES } ?: return
|
||||
val now = nowNanos()
|
||||
val control = clockControl?.takeIf { it.isFile && it.length() >= Long.SIZE_BYTES } ?: return now
|
||||
try {
|
||||
mapClockControl(control)
|
||||
RandomAccessFile(control, "rw").use { file ->
|
||||
val bytes = ByteArray(Long.SIZE_BYTES)
|
||||
file.readFully(bytes)
|
||||
val shift = ByteBuffer.wrap(bytes).order(ByteOrder.LITTLE_ENDIAN).long.coerceAtLeast(0L) +
|
||||
(nowNanos() - since).coerceAtLeast(0L)
|
||||
(now - since).coerceAtLeast(0L)
|
||||
file.seek(0L)
|
||||
file.write(ByteBuffer.allocate(Long.SIZE_BYTES).order(ByteOrder.LITTLE_ENDIAN).putLong(shift).array())
|
||||
}
|
||||
} catch (_: IOException) {
|
||||
}
|
||||
return now
|
||||
}
|
||||
|
||||
private fun runAudio(action: () -> Unit) {
|
||||
@@ -275,13 +323,15 @@ internal class SessionSuspendController(
|
||||
return tasks.takeIf { stopped && it.isNotEmpty() }
|
||||
}
|
||||
|
||||
private fun pageOut(records: MutableMap<Pair<Int, Long>, ProcessRecord>, root: Int, helpers: List<Int>) {
|
||||
private fun pageOut(records: MutableMap<Pair<Int, Long>, ProcessRecord>, root: Int, helpers: List<Int>, spill: Boolean) {
|
||||
val control = zramControl?.takeIf { it.isFile } ?: return
|
||||
val hold = holdFile(control)
|
||||
try {
|
||||
hold.writeText(PAGE_OUT_REQUEST)
|
||||
// A spill names the resume count it was asked under: any later count releases the helper, however
|
||||
// late it starts reading.
|
||||
hold.writeText(if (spill) "$SPILL_REQUEST ${resumeCount(control)}" else PAGE_OUT_REQUEST)
|
||||
sleep(PAGE_OUT_POLL_MS)
|
||||
pageOut(control, records, root, helpers)
|
||||
if (spill) spill(control, records, root, helpers) else pageOut(control, records, root, helpers)
|
||||
} catch (_: IOException) {
|
||||
} finally {
|
||||
hold.delete()
|
||||
@@ -290,15 +340,208 @@ internal class SessionSuspendController(
|
||||
|
||||
private fun holdFile(control: File) = File(control.parentFile, "${control.name}.hold")
|
||||
|
||||
private fun pageOut(control: File, records: MutableMap<Pair<Int, Long>, ProcessRecord>, root: Int, helpers: List<Int>) {
|
||||
private fun ackFile(control: File, kind: String, record: ProcessRecord) =
|
||||
File(control.parentFile, "${control.name}.$kind.${record.pid}")
|
||||
|
||||
private fun preloaded(records: Collection<ProcessRecord>) = records.filter { record ->
|
||||
try {
|
||||
File(procRoot, "${record.pid}/maps").useLines { lines -> lines.any { it.endsWith("/libddsession.so") } }
|
||||
} catch (_: IOException) {
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
private fun readAck(ack: File): Long? = try {
|
||||
ack.readText().trim().toLongOrNull()
|
||||
} catch (_: IOException) {
|
||||
null
|
||||
}
|
||||
|
||||
// Each process parks its threads, writes its private memory to an unlinked file and stays parked until
|
||||
// the resume counter changes; its acknowledgement is the kB it wrote, 0 when it paged out to zram instead.
|
||||
private fun spill(control: File, records: MutableMap<Pair<Int, Long>, ProcessRecord>, root: Int, helpers: List<Int>) {
|
||||
addSnapshot(records, root, helpers)
|
||||
val targets = records.values.filter { record ->
|
||||
try {
|
||||
File(procRoot, "${record.pid}/maps").useLines { lines -> lines.any { it.endsWith("/libddsession.so") } }
|
||||
// A restore that finished after the last resume stopped waiting is counted before its marker goes; one
|
||||
// still reading is not asked to spill again.
|
||||
val (done, still) = spilledTargets.partition { settled(control, it) }
|
||||
release(control, done)
|
||||
spilledTargets = still
|
||||
val targets = preloaded(records.values).filterNot { it in spilledTargets }
|
||||
if (targets.isEmpty()) return
|
||||
targets.forEach { ackFile(control, "ack", it).delete(); ackFile(control, "restored", it).delete() }
|
||||
val start = nowMillis()
|
||||
spillAsked = (spillAsked + targets).distinct()
|
||||
for (record in targets) send(record, SIGURG)
|
||||
val waiting = targets.toMutableList()
|
||||
while (!closing && !cancelled && nowMillis() - start < SPILL_TIMEOUT_MS) {
|
||||
val started = nowMillis() - start >= PAGE_OUT_START_MS
|
||||
waiting.removeAll { val ack = ackFile(control, "ack", it); readAck(ack) != null || (started && !ack.exists()) || isGone(it) }
|
||||
if (waiting.isEmpty()) break
|
||||
sleep(PAGE_OUT_POLL_MS)
|
||||
}
|
||||
var total = 0L
|
||||
val acks = targets.associateWith { readAck(ackFile(control, "ack", it)) }
|
||||
val written = targets.filter { record ->
|
||||
val kb = acks[record]?.coerceAtLeast(0L) ?: 0L
|
||||
total += kb
|
||||
kb > 0L
|
||||
}
|
||||
// A process that answered 0 paged out to zram instead and has no spill to release. One whose handler
|
||||
// started (its acknowledgement is there, still empty) may still be writing: it is waited for like a
|
||||
// spilled one, its acknowledgement kept. One with no acknowledgement may have no handler, or one that has
|
||||
// not got that far: it is not waited for, but stays asked, so a resume count that cannot be written still
|
||||
// fails (a late spill waits for any count other than the one it was asked with).
|
||||
val unanswered = targets.filter { acks[it] == null && ackFile(control, "ack", it).exists() && !isGone(it) }
|
||||
spillAsked = spillAsked.filterNot { acks[it] == 0L || acks[it] == SPILL_CANCELLED }
|
||||
spilledTargets = (spilledTargets + written + unanswered).distinct()
|
||||
spillWritten = (spillWritten + written).distinct()
|
||||
pagedOutTargets = (pagedOutTargets + targets.filter { acks[it] == 0L }).distinct()
|
||||
targets.filterNot { it in unanswered }.forEach { ackFile(control, "ack", it).delete() }
|
||||
spilled(written.size, total, memoryKb(targets).first, nowMillis() - start)
|
||||
}
|
||||
|
||||
// Its memory is back, it paged out to zram after all (an answer of 0 that came late), a resume cancelled
|
||||
// it before it wrote anything, or it is gone.
|
||||
private fun settled(control: File, record: ProcessRecord): Boolean {
|
||||
val ack = readAck(ackFile(control, "ack", record))
|
||||
return readAck(ackFile(control, "restored", record)) != null || ack == 0L || ack == SPILL_CANCELLED ||
|
||||
ended(record)
|
||||
}
|
||||
|
||||
// Gone, or every thread has exited and only an unreaped zombie is left.
|
||||
private fun ended(record: ProcessRecord): Boolean {
|
||||
if (isGone(record)) return true
|
||||
val tasks = File(procRoot, "${record.pid}/task").listFiles()?.filter { it.name.toIntOrNull() != null } ?: return false
|
||||
return tasks.all { entry ->
|
||||
try { readStat(File(entry, "stat"))[0].first().let { it == 'Z' || it == 'X' } } catch (_: IOException) { false }
|
||||
}
|
||||
}
|
||||
|
||||
// Settled targets stop being tracked; one that fell back to zram late is read back like any paged-out one.
|
||||
private fun release(control: File, settledTargets: List<ProcessRecord>) {
|
||||
val lateZram = settledTargets.filter { readAck(ackFile(control, "ack", it)) == 0L && !isGone(it) }
|
||||
pagedOutTargets = (pagedOutTargets + lateZram).distinct()
|
||||
spillAsked = spillAsked.filterNot { it in settledTargets }
|
||||
spillWritten = spillWritten.filterNot { it in settledTargets }
|
||||
settledTargets.forEach {
|
||||
ackFile(control, "restored", it).delete()
|
||||
ackFile(control, "ack", it).delete()
|
||||
}
|
||||
}
|
||||
|
||||
private fun resumeFile(control: File) = File(control.parentFile, "${control.name}.resume")
|
||||
|
||||
private fun resumeCount(control: File): Long = try {
|
||||
resumeFile(control).takeIf { it.isFile }?.readText()?.trim()?.toLongOrNull() ?: 0L
|
||||
} catch (_: IOException) {
|
||||
0L
|
||||
}
|
||||
|
||||
// False when a process asked to spill may not have seen the new count: it would stay stopped. The count is
|
||||
// put in place whole, so a failed write leaves the one before.
|
||||
private fun bumpResume(): Boolean {
|
||||
val control = zramControl?.takeIf { it.isFile } ?: return spillAsked.isEmpty()
|
||||
// A late answer of 0 or a cancellation already let its process go: it needs no count.
|
||||
val answered = spillAsked.filter {
|
||||
val ack = readAck(ackFile(control, "ack", it))
|
||||
ack == 0L || ack == SPILL_CANCELLED
|
||||
}
|
||||
if (answered.isNotEmpty()) {
|
||||
answeredLate = (answeredLate + answered).distinct()
|
||||
spilledTargets = spilledTargets.filterNot { it in answered }
|
||||
release(control, answered)
|
||||
}
|
||||
val counter = resumeFile(control)
|
||||
val ok = try {
|
||||
val next = resumeCount(control) + 1
|
||||
val fresh = File(counter.parentFile, "${counter.name}.new")
|
||||
fresh.writeText(next.toString())
|
||||
java.nio.file.Files.move(fresh.toPath(), counter.toPath(), java.nio.file.StandardCopyOption.REPLACE_EXISTING,
|
||||
java.nio.file.StandardCopyOption.ATOMIC_MOVE)
|
||||
resumeCount(control) == next
|
||||
} catch (_: IOException) {
|
||||
false
|
||||
}
|
||||
if (ok) spillAsked = emptyList()
|
||||
return ok || spillAsked.isEmpty()
|
||||
}
|
||||
|
||||
// True when every spilled process has its memory back (or was gone already). Ones still reading stay
|
||||
// tracked, so a later resume waits for them again. One of [running] that ends without its memory back fails
|
||||
// this resume.
|
||||
private fun awaitRestored(running: Collection<ProcessRecord> = emptyList(), whileClosing: Boolean = false): Boolean {
|
||||
val control = zramControl ?: return true
|
||||
val targets = spilledTargets
|
||||
val start = nowMillis()
|
||||
val waiting = targets.toMutableList()
|
||||
val untraced = HashMap<ProcessRecord, Long>()
|
||||
val releasedWithoutMarker = HashSet<ProcessRecord>()
|
||||
try {
|
||||
while (targets.isNotEmpty() && (whileClosing || !closing) && nowMillis() - start < RESTORE_TIMEOUT_MS) {
|
||||
waiting.removeAll {
|
||||
settled(control, it) || detached(control, it, untraced).also { done -> if (done) releasedWithoutMarker += it }
|
||||
}
|
||||
if (waiting.isEmpty()) break
|
||||
sleep(PAGE_OUT_POLL_MS)
|
||||
}
|
||||
} catch (_: InterruptedException) {
|
||||
Thread.currentThread().interrupt()
|
||||
}
|
||||
val lost = (running + adopted).distinct().filterNot { it in answeredLate || it in releasedWithoutMarker }.filter { record ->
|
||||
val ack = readAck(ackFile(control, "ack", record))
|
||||
ended(record) && readAck(ackFile(control, "restored", record)) == null && ack != 0L && ack != SPILL_CANCELLED
|
||||
}
|
||||
adopted = emptyList()
|
||||
answeredLate = emptyList()
|
||||
if (lost.isNotEmpty()) guestLost = true
|
||||
if (targets.isNotEmpty()) {
|
||||
release(control, targets.filterNot { it in waiting })
|
||||
spilledTargets = waiting.toList()
|
||||
restored(targets.size, waiting.size, memoryKb(targets).first, nowMillis() - start)
|
||||
}
|
||||
return waiting.isEmpty() && lost.isEmpty()
|
||||
}
|
||||
|
||||
// A process that wrote its spill is traced by its helper until the read-back ends; one that stays untraced
|
||||
// and alive for a while has its memory back even if the helper could not write its marker (a helper that
|
||||
// dies first has its owner killed).
|
||||
private fun detached(control: File, record: ProcessRecord, untraced: MutableMap<ProcessRecord, Long>): Boolean {
|
||||
if (record !in spillWritten && (readAck(ackFile(control, "ack", record)) ?: 0L) <= 0L) return false
|
||||
// The helper detaches thread by thread, so every live thread must be out of its trace.
|
||||
val current = try { readProcess(record.pid) } catch (_: IOException) { null }
|
||||
if (current == null || current.started != record.started || ended(record) || anyThreadTraced(record)) {
|
||||
untraced.remove(record)
|
||||
return false
|
||||
}
|
||||
return nowMillis() - untraced.getOrPut(record) { nowMillis() } >= MARKER_GRACE_MS
|
||||
}
|
||||
|
||||
private fun anyThreadTraced(record: ProcessRecord): Boolean {
|
||||
val tasks = File(procRoot, "${record.pid}/task").listFiles() ?: return true
|
||||
return tasks.any { entry ->
|
||||
entry.name.toIntOrNull() != null && try {
|
||||
File(entry, "status").useLines { lines ->
|
||||
lines.firstOrNull { it.startsWith("TracerPid:") }?.substringAfter(':')?.trim()?.toIntOrNull() != 0
|
||||
}
|
||||
} catch (_: IOException) {
|
||||
false
|
||||
File(entry, "stat").exists()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Asked, started or written spills of processes alive now: one that ends without its memory back (or a 0 or
|
||||
// cancelled answer) is lost.
|
||||
private fun startedAlive(): List<ProcessRecord> {
|
||||
val control = zramControl ?: return emptyList()
|
||||
return (spilledTargets + spillAsked).distinct().filter {
|
||||
val ack = readAck(ackFile(control, "ack", it))
|
||||
ack != 0L && ack != SPILL_CANCELLED && !ended(it)
|
||||
}
|
||||
}
|
||||
|
||||
private fun pageOut(control: File, records: MutableMap<Pair<Int, Long>, ProcessRecord>, root: Int, helpers: List<Int>) {
|
||||
addSnapshot(records, root, helpers)
|
||||
val targets = preloaded(records.values)
|
||||
if (targets.isEmpty()) return
|
||||
pagedOutTargets = (pagedOutTargets + targets).distinct()
|
||||
val acks = targets.associateWith { File(control.parentFile, "${control.name}.ack.${it.pid}") }
|
||||
@@ -325,7 +568,8 @@ internal class SessionSuspendController(
|
||||
false
|
||||
}
|
||||
|
||||
private fun readBack() {
|
||||
private fun readBack(waitForRestore: Boolean = true) {
|
||||
if (waitForRestore) awaitRestored()
|
||||
val targets = pagedOutTargets.filterNot { isGone(it) }
|
||||
pagedOutTargets = emptyList()
|
||||
val control = zramControl?.takeIf { it.isFile } ?: return
|
||||
@@ -411,10 +655,12 @@ internal class SessionSuspendController(
|
||||
private fun stopThreads(record: ProcessRecord) {
|
||||
val current = try { readProcess(record.pid) } catch (_: Exception) { return }
|
||||
if (current == null || current.started != record.started) return
|
||||
// A spill helper's tracing stop ends when it detaches after reading back: the pending SIGSTOP holds then.
|
||||
val helperHeld = record in spilledTargets
|
||||
for (entry in File(procRoot, "${record.pid}/task").listFiles().orEmpty()) {
|
||||
val tid = entry.name.toIntOrNull() ?: continue
|
||||
val state = try { readStat(File(entry, "stat"))[0].first() } catch (_: IOException) { continue }
|
||||
if (state == 'T' || state == 't' || state == 'Z' || state == 'X') continue
|
||||
if (state == 'T' || (state == 't' && !helperHeld) || state == 'Z' || state == 'X') continue
|
||||
try {
|
||||
threadSignal(record.pid, tid, SIGSTOP)
|
||||
} catch (_: Throwable) {
|
||||
@@ -431,6 +677,10 @@ internal class SessionSuspendController(
|
||||
Role.HELPER_CHILD -> 3
|
||||
}
|
||||
}
|
||||
val asked = spillAsked
|
||||
counterUnpublished = !bumpResume()
|
||||
if (counterUnpublished) return false
|
||||
adoptStartedSpills(asked)
|
||||
for (record in ordered) send(record, SIGCONT)
|
||||
val waiting = ordered.toMutableList()
|
||||
repeat(RESTORE_CHECKS) { check ->
|
||||
@@ -442,6 +692,15 @@ internal class SessionSuspendController(
|
||||
return false
|
||||
}
|
||||
|
||||
// A handler that started after the spill wait ended parks its process until it has read back, like one
|
||||
// that answered in time.
|
||||
private fun adoptStartedSpills(asked: List<ProcessRecord>) {
|
||||
val control = zramControl ?: return
|
||||
val started = asked.filter { it !in spilledTargets && ackFile(control, "ack", it).exists() && !ended(it) }
|
||||
if (started.isNotEmpty()) spilledTargets = spilledTargets + started
|
||||
adopted = started
|
||||
}
|
||||
|
||||
private fun restoreSafely(records: List<ProcessRecord>): Boolean = try {
|
||||
restore(records)
|
||||
} catch (_: InterruptedException) {
|
||||
@@ -460,10 +719,12 @@ internal class SessionSuspendController(
|
||||
}
|
||||
}
|
||||
|
||||
// A spilled process's threads stay in a tracing stop until its helper has read its memory back.
|
||||
private fun isRunningOrGone(record: ProcessRecord): Boolean {
|
||||
val current = try { readProcess(record.pid) } catch (_: Exception) { return false }
|
||||
if (current == null || current.started != record.started) return true
|
||||
if (current.state == 'T' || current.state == 't') return false
|
||||
val spilled = record in spilledTargets
|
||||
if (current.state == 'T' || (current.state == 't' && !spilled)) return false
|
||||
return File(procRoot, "${record.pid}/task").listFiles().orEmpty().none { entry ->
|
||||
entry.name.toIntOrNull() != null &&
|
||||
try { readStat(File(entry, "stat"))[0].first() == 'T' } catch (_: IOException) { false }
|
||||
@@ -477,6 +738,11 @@ internal class SessionSuspendController(
|
||||
const val PAGE_OUT_ACK = "1"
|
||||
const val PAGE_OUT_REQUEST = "1"
|
||||
const val READ_BACK_REQUEST = "0"
|
||||
const val SPILL_REQUEST = "4"
|
||||
const val SPILL_CANCELLED = -2L
|
||||
const val SPILL_TIMEOUT_MS = 30_000L
|
||||
const val RESTORE_TIMEOUT_MS = 30_000L
|
||||
const val MARKER_GRACE_MS = 1_000L
|
||||
const val PAGE_OUT_POLL_MS = 100L
|
||||
const val PAGE_OUT_START_MS = 2_000L
|
||||
const val PAGE_OUT_TIMEOUT_MS = 12_000L
|
||||
|
||||
@@ -12,7 +12,7 @@ object SettingsReset {
|
||||
private const val TAG = "SettingsReset"
|
||||
|
||||
internal val SESSION_KEYS = setOf(
|
||||
"orientation", "launcherFullscreen", "launcherFullscreenMode", "sessionFullscreenMode", "launcherFrost", "frostWallpaper", "frostCards", "frostTransparency", "frostCardTransparency", "controllerHaptics", "animations", "lowStorageWarning", "theme", "runSteamAtStartup", "startupSession", "addedGamesArt",
|
||||
"orientation", "launcherFullscreen", "launcherFrost", "frostWallpaper", "frostCards", "frostTransparency", "frostCardTransparency", "controllerHaptics", "animations", "lowStorageWarning", "theme", "runSteamAtStartup", "startupSession", "addedGamesArt",
|
||||
"drawerWidthDp", "dualScreenMode", "dualScreenSessionMode", "dualScreenLauncher", "dualScreenSessionControls", "androidTextFieldKeyboard",
|
||||
"soundtracksIngame", "gameStoresSpeedTier", "gameStoresParallel", "storesOpenTab", "storesShowMature",
|
||||
"storesInstallLanguage",
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.droiddeck.launcher.session
|
||||
|
||||
// Paced resume retries for a session that is still held after a failed suspend or resume.
|
||||
internal class SuspendRecovery(
|
||||
private val maxAttempts: Int = 5,
|
||||
private val firstDelayMs: Long = 5_000L,
|
||||
) {
|
||||
private var attempts = 0
|
||||
private var nextAt = 0L
|
||||
|
||||
fun due(now: Long): Boolean = attempts < maxAttempts && now >= nextAt
|
||||
|
||||
// Whether a session that is still held must wait instead of starting another resume now.
|
||||
fun holds(held: Boolean, now: Long): Boolean = held && !due(now)
|
||||
|
||||
// The delay before the next attempt is due, or null when no attempt is left.
|
||||
fun failed(now: Long): Long? {
|
||||
attempts++
|
||||
if (attempts >= maxAttempts) return null
|
||||
val delay = firstDelayMs shl (attempts - 1)
|
||||
nextAt = now + delay
|
||||
return delay
|
||||
}
|
||||
|
||||
fun reset() {
|
||||
attempts = 0
|
||||
nextAt = 0L
|
||||
}
|
||||
}
|
||||
@@ -1,444 +0,0 @@
|
||||
package com.droiddeck.launcher.session
|
||||
|
||||
import android.content.Context
|
||||
import android.os.Environment
|
||||
import android.util.Log
|
||||
import com.droiddeck.launcher.core.AddonPack
|
||||
import com.droiddeck.launcher.core.Downloader
|
||||
import com.droiddeck.launcher.core.GameEnvironment
|
||||
import com.droiddeck.launcher.core.GameUpscaler
|
||||
import com.droiddeck.launcher.gpu.SocNames
|
||||
import com.droiddeck.launcher.runtime.LinuxRuntime
|
||||
import java.io.File
|
||||
import java.security.MessageDigest
|
||||
import kotlinx.coroutines.flow.MutableStateFlow
|
||||
import kotlinx.coroutines.flow.StateFlow
|
||||
import kotlinx.coroutines.flow.asStateFlow
|
||||
|
||||
/**
|
||||
* The in-game upscaler's files on the device (see [GameUpscaler]):
|
||||
* - the bridge DLLs, built from tools/upscale/bridges, come in the "upscale" add-on pack;
|
||||
* - the Vulkan layer is in the APK (bionic games) and in the Linux runtime (PRoot games);
|
||||
* - the parts with no source to build from (AMD's FSR 4 SPIR-V and weights, Intel's XeSS 3 runtime, Qualcomm's
|
||||
* QNN libraries for the Hexagon NPU) are fetched from Winlator-NeuralScale at a pinned commit and checked against
|
||||
* the SHA-256 listed here, or copied from a folder of the same files under Download.
|
||||
* Everything lands under [GUEST_ROOT] in the rootfs, where both PRoot and bionic games read it.
|
||||
*/
|
||||
object UpscaleComponent {
|
||||
private const val TAG = "UpscaleComponent"
|
||||
const val UPSTREAM = "michaelisomer-cyber/Winlator-NeuralScale"
|
||||
const val UPSTREAM_COMMIT = "71c140d9e5586f659251c3ebc602f2d21923655c"
|
||||
const val XESS_COMMIT = "a0ab6b0f770e1a6786b4e68def46b4edb8baafd0"
|
||||
const val GUEST_ROOT = "/usr/local/lib/droiddeck-upscale"
|
||||
const val GUEST_RUN = "/run/droiddeck-hud/upscale"
|
||||
private const val LOCAL_COPY = "droiddeck-upscale"
|
||||
private const val LAYER_LIBRARY = "libVkLayer_droiddeck_upscale.so"
|
||||
private const val BRIDGES_STAMP = ".pack"
|
||||
|
||||
enum class Group { CORE, XESS, NPU }
|
||||
|
||||
data class DataFile(
|
||||
val group: Group, val relative: String, val upstreamPath: String, val sha256: String, val size: Long,
|
||||
val commit: String = UPSTREAM_COMMIT,
|
||||
) {
|
||||
val url get() = "https://raw.githubusercontent.com/$UPSTREAM/$commit/$upstreamPath"
|
||||
}
|
||||
|
||||
val FILES = listOf(
|
||||
DataFile(Group.CORE, "fsr4/fsr3_accumulate.spv", "app/src/main/assets/fsr4/fsr3_accumulate.spv", "98054410f4d3b6fad3020b174982a5e68d2fc5a4d546a90f9e13ea646b32c180", 23840L),
|
||||
DataFile(Group.CORE, "fsr4/fsr3_prepare.spv", "app/src/main/assets/fsr4/fsr3_prepare.spv", "86e99b0e7e83e74729b016c3089deafdc9c2dc09b27305d009a8942dd0fe19da", 15036L),
|
||||
DataFile(Group.CORE, "fsr4/fsr3_rcas.spv", "app/src/main/assets/fsr4/fsr3_rcas.spv", "13e276049ecc18eb7b53f6de1f76f58eb1a60c6f4251870f3647b20478b05710", 11644L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/fsr411_full_zc_i8.wpack", "app/src/main/assets/fsr4/fsr411_full/performance/fsr411_full_zc_i8.wpack", "8d36bb959d23ede5bb409959736c0d0b718bae58b363779126c0235b0fd10f7c", 137424L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/fsr411_full_zc_s8.wpack", "app/src/main/assets/fsr4/fsr411_full/performance/fsr411_full_zc_s8.wpack", "ef445437e3d48c64f993a60407183f675d05aadd82c7c29b93e61c53308ab28e", 137256L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/initializers.bin", "app/src/main/assets/fsr4/fsr411_full/performance/initializers.bin", "a54e552ff69a3f7199861417f7ae461d1f67f636ab532c6ec9d8ea5d2963735a", 131072L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-00.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-00.spv", "d6a01100a56327713d2f7c1a768e41f8a31f2cadce5f37b7dac81630722ff5a2", 33116L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-01.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-01.spv", "759396dc2eccd731bebac13e8818568c8cc410150d24ed4cc01aa8b5ea873fbb", 58172L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-02.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-02.spv", "bdabc7c28f18c31ac8574856a386a268ae4d866f68a65e72b59bf3bad2235132", 3208L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-03.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-03.spv", "bcb4d1d01e33114c68bb13059577c280bb05b5a3af7218fdbc38e99883e0632d", 108840L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-04.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-04.spv", "d85b605d066d89178994ba835b6c3b267ed771de530117a5b9e6103d49e866e7", 3244L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-05.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-05.spv", "e44f0ccd272e4a85ad38894a38db7adae019d18660b166e6c28e82b328d7cc84", 109048L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-06.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-06.spv", "df469b6481234bf7b964a7c0ecf8a5829d84d1bc34fdb7c72e87014f82e31326", 3208L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-07.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-07.spv", "a873b766b2b8923aeb7d325a61cbea251cbac6450e708a23a7714c553ce577ff", 132572L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-08.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-08.spv", "c4aba5b9cd11100308aa2e3d8a4d39e66713c46c35edbe6496552764459a2228", 3580L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-09.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-09.spv", "d757fd28efbd09259f82918de5d3765784933d5b26eea56babe45fd6fefc5cfa", 190032L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-10.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-10.spv", "295873b3ecbd9db40cc4c50ecf15a72964d5846b96642d2e4743a9333382b557", 3580L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-11.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-11.spv", "73e05c6727408d5b1f472112c5d68060e9db9aaf918e892055e6619d5f0e4edc", 190032L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-12.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-12.spv", "007315c42072370919ac393b63a04a0ac025a802f927b490a6749bd6034c15fd", 3596L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-13.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-13.spv", "020929f63d8a70f90bd628a92c50b4049db89155d5e062bf03eb1e8cb8ee7c60", 497604L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-14.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-14.spv", "f26dc72bbe9ccc70e2cc2dc1f4b2a868baf3c2e470b4e76994f98c50674ec3d8", 4268L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-15.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-15.spv", "9487c52cec7e259f4cb212335e84db43c52902b4e3243afcd34305b95ad1b83b", 79128L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-16.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-16.spv", "55c48a8b7627343d996f7818ee6055e143d3b956b8f65911d6b6c337bd8f72ca", 4268L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-17.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-17.spv", "810636645f52d5b8c019206deb046e954af730fc13edaa6a00ebf66e686c3ac0", 79128L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-18.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-18.spv", "a3d130ad8fc6438766f3cdeb7e062d03291a25f6a5e439f71b905795cfc856ec", 4268L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-19.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-19.spv", "e1b576f7e8cedc46615a90f5d2026a43a525a2e43cfc66b62def8e700f55688a", 84476L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-20.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-20.spv", "70c2b7b4e55d665591b2dca3efddb6e99e6d393020722cec635fb8df3bd81bf1", 3596L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-21.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-21.spv", "bb1798794d6c8b0ad3760059bf36e2c396594226c0835202040a4a515a8beb01", 189952L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-22.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-22.spv", "b0545fc4c1886fa0a6252029eb6e3a2f999974bc0bc89539c8d6005c184d8a6f", 3580L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-23.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-23.spv", "e9aee05cec78f0659fa570bfc0f495a51d00d2bc80c4e99cde4106a3df51c35e", 61308L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-24.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-24.spv", "1e93b681a9264afc07f0ab41086474b3afaa2ff8d37b5b75c9ceae005e21e558", 3260L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-25.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-25.spv", "6292dd68a4da9370c7dabb3b192fe6958b1a12daffd92b7fa80ed6fe231e1e5d", 109064L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-26.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-26.spv", "abc2426ff739d25cba4d271cad08ec9f25056ae197a9727b7b7e72467ba49d28", 3224L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/performance/pass-27.spv", "app/src/main/assets/fsr4/fsr411_full/performance/pass-27.spv", "fa5fc1de4625915c25a637b091f26f32c398f4985a14392a48505cfac111aaea", 125196L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/initializers.bin", "app/src/main/assets/fsr4/fsr411_full/quality/initializers.bin", "a54e552ff69a3f7199861417f7ae461d1f67f636ab532c6ec9d8ea5d2963735a", 131072L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-00.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-00.spv", "d6a01100a56327713d2f7c1a768e41f8a31f2cadce5f37b7dac81630722ff5a2", 33116L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-01.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-01.spv", "759396dc2eccd731bebac13e8818568c8cc410150d24ed4cc01aa8b5ea873fbb", 58172L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-02.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-02.spv", "bdabc7c28f18c31ac8574856a386a268ae4d866f68a65e72b59bf3bad2235132", 3208L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-03.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-03.spv", "bcb4d1d01e33114c68bb13059577c280bb05b5a3af7218fdbc38e99883e0632d", 108840L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-04.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-04.spv", "d85b605d066d89178994ba835b6c3b267ed771de530117a5b9e6103d49e866e7", 3244L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-05.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-05.spv", "e44f0ccd272e4a85ad38894a38db7adae019d18660b166e6c28e82b328d7cc84", 109048L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-06.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-06.spv", "df469b6481234bf7b964a7c0ecf8a5829d84d1bc34fdb7c72e87014f82e31326", 3208L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-07.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-07.spv", "a873b766b2b8923aeb7d325a61cbea251cbac6450e708a23a7714c553ce577ff", 132572L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-08.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-08.spv", "c4aba5b9cd11100308aa2e3d8a4d39e66713c46c35edbe6496552764459a2228", 3580L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-09.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-09.spv", "d757fd28efbd09259f82918de5d3765784933d5b26eea56babe45fd6fefc5cfa", 190032L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-10.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-10.spv", "295873b3ecbd9db40cc4c50ecf15a72964d5846b96642d2e4743a9333382b557", 3580L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-11.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-11.spv", "73e05c6727408d5b1f472112c5d68060e9db9aaf918e892055e6619d5f0e4edc", 190032L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-12.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-12.spv", "007315c42072370919ac393b63a04a0ac025a802f927b490a6749bd6034c15fd", 3596L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-13.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-13.spv", "020929f63d8a70f90bd628a92c50b4049db89155d5e062bf03eb1e8cb8ee7c60", 497604L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-14.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-14.spv", "f26dc72bbe9ccc70e2cc2dc1f4b2a868baf3c2e470b4e76994f98c50674ec3d8", 4268L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-15.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-15.spv", "9487c52cec7e259f4cb212335e84db43c52902b4e3243afcd34305b95ad1b83b", 79128L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-16.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-16.spv", "55c48a8b7627343d996f7818ee6055e143d3b956b8f65911d6b6c337bd8f72ca", 4268L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-17.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-17.spv", "810636645f52d5b8c019206deb046e954af730fc13edaa6a00ebf66e686c3ac0", 79128L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-18.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-18.spv", "a3d130ad8fc6438766f3cdeb7e062d03291a25f6a5e439f71b905795cfc856ec", 4268L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-19.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-19.spv", "e1b576f7e8cedc46615a90f5d2026a43a525a2e43cfc66b62def8e700f55688a", 84476L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-20.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-20.spv", "70c2b7b4e55d665591b2dca3efddb6e99e6d393020722cec635fb8df3bd81bf1", 3596L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-21.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-21.spv", "bb1798794d6c8b0ad3760059bf36e2c396594226c0835202040a4a515a8beb01", 189952L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-22.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-22.spv", "b0545fc4c1886fa0a6252029eb6e3a2f999974bc0bc89539c8d6005c184d8a6f", 3580L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-23.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-23.spv", "e9aee05cec78f0659fa570bfc0f495a51d00d2bc80c4e99cde4106a3df51c35e", 61308L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-24.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-24.spv", "1e93b681a9264afc07f0ab41086474b3afaa2ff8d37b5b75c9ceae005e21e558", 3260L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-25.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-25.spv", "6292dd68a4da9370c7dabb3b192fe6958b1a12daffd92b7fa80ed6fe231e1e5d", 109064L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-26.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-26.spv", "abc2426ff739d25cba4d271cad08ec9f25056ae197a9727b7b7e72467ba49d28", 3224L),
|
||||
DataFile(Group.CORE, "fsr4/fsr411_full/quality/pass-27.spv", "app/src/main/assets/fsr4/fsr411_full/quality/pass-27.spv", "fa5fc1de4625915c25a637b091f26f32c398f4985a14392a48505cfac111aaea", 125196L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/0000.spv", "app/src/main/assets/fsr4/fsr412_lite/0000.spv", "2ec08c00ba47d5812078073c68622101158762b2e885ae965afee39596243840", 97808L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/0001.spv", "app/src/main/assets/fsr4/fsr412_lite/0001.spv", "ff1270ab046cd190e9edf0d76cc5d5fda34a27a2de719e8352b4dcaeeed3e3bb", 3456L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/0002.spv", "app/src/main/assets/fsr4/fsr412_lite/0002.spv", "c47c6282830916e9314f0153c4abd782736b6cee3992e8db301937b42ec44141", 120964L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/0003.spv", "app/src/main/assets/fsr4/fsr412_lite/0003.spv", "0797d2053df579930c2907a3f1e91c8a39c44cae4e471eca4c243075a787d572", 3492L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/0004.spv", "app/src/main/assets/fsr4/fsr412_lite/0004.spv", "e7d3651fb730c8b543aaae332f760d352d555e3f8e5899c055b46fc007c80bbc", 3928L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/0005.spv", "app/src/main/assets/fsr4/fsr412_lite/0005.spv", "0bacdbf39bead28f5012ca09a6d8243e501b3328065e29c2b5bdfc93f5ae3ffa", 201880L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/0006.spv", "app/src/main/assets/fsr4/fsr412_lite/0006.spv", "f58da749701f226994560878cad3b98f01db0557feea4d9445ae84ed6b2049a2", 3892L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/0007.spv", "app/src/main/assets/fsr4/fsr412_lite/0007.spv", "c8088556c624f601cb9adf280ba0a4b6fa54068c1f60a0ebc26c11dad81a44c3", 279304L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/0008.spv", "app/src/main/assets/fsr4/fsr412_lite/0008.spv", "9e5f48d397020f1fd8706f554adce0adb88641cd06dd054252f1f2f58f1566e5", 3508L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/0009.spv", "app/src/main/assets/fsr4/fsr412_lite/0009.spv", "23cc6f3c09546cbca7c70130de931324f9262d13a5f894ebedac78d0e94ef43f", 104052L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/0010.spv", "app/src/main/assets/fsr4/fsr412_lite/0010.spv", "a60c0492e22ae608ba9b7e9d479db03ad198a8d9523edb7b65cc0eaef5829a29", 28988L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/0013.spv", "app/src/main/assets/fsr4/fsr412_lite/0013.spv", "05bbe60c6a0310044df99f2e7fe6af0b6644780305c98bc6fd6287de7b954cf0", 57232L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/fsr412_lite_zc_i8.wpack", "app/src/main/assets/fsr4/fsr412_lite/fsr412_lite_zc_i8.wpack", "5a00ff5e9a444708ce66b17a12fa8ffc2a3bdbd798399a0d26807de121ab2140", 27440L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/fsr412_lite_zc_s8.wpack", "app/src/main/assets/fsr4/fsr412_lite/fsr412_lite_zc_s8.wpack", "f45ab49039ad27041ebc6edd76de54d14246693445e53362d94b4a9514ae65a7", 27272L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/weights.bin", "app/src/main/assets/fsr4/fsr412_lite/weights.bin", "4b9898da719dc2dca5dc45fd71dec5f80bdb9886a580fe3038af59efe637d55e", 27392L),
|
||||
DataFile(Group.CORE, "fsr4/sgsr2_activate.spv", "app/src/main/assets/fsr4/sgsr2_activate.spv", "45aabce377d4cc9522ea9d954d9f069e1618ac0c9656ef2be6fd317369ae3140", 13456L),
|
||||
DataFile(Group.CORE, "fsr4/sgsr2_convert.spv", "app/src/main/assets/fsr4/sgsr2_convert.spv", "71afffb95978f0dc61d3f39f266eb61e5c803b17574a3595726e4c55bb581872", 14600L),
|
||||
DataFile(Group.CORE, "fsr4/sgsr2_upscale.spv", "app/src/main/assets/fsr4/sgsr2_upscale.spv", "bf7fe1247894919349fef91f8fa41ee256cb58dd7cf87f682db43108f9dcd1ec", 29748L),
|
||||
// Upstream dropped Intel's XeSS runtime in cb3ae04e (v5.0-r2); DroidDeck keeps fetching it from a0ab6b0f.
|
||||
DataFile(Group.XESS, "xess/wl_xess_official.dll", "app/src/main/assets/fsr4_bridge/wl_xess_official.dll", "251659dd84a3e84de67c886a4186e01f3eca49b00641906fe38bb6b807e5d5b7", 77795704L, XESS_COMMIT),
|
||||
DataFile(Group.NPU, "fsr4/adsp/libQnnHtpV79Skel.so", "app/src/main/assets/fsr4/adsp/libQnnHtpV79Skel.so", "974583f0cdc3d42de7a0633c9b987b160ad033a4cd53be30f9b5480b7e5a3213", 11702104L),
|
||||
DataFile(Group.NPU, "fsr4/adsp/libQnnHtpV81Skel.so", "app/src/main/assets/fsr4/adsp/libQnnHtpV81Skel.so", "a0b9750d900a0afbba240e3506ba63ba91ec0e7f1b3a44de9afbb6818a665a32", 12606648L),
|
||||
DataFile(Group.NPU, "jni/libQnnHtp.so", "app/src/main/jniLibs/arm64-v8a/libQnnHtp.so", "6e6da5284060ca4369bb6fd3c6f2b661a9cebabb2cf4cf695cd77f558082265f", 3760136L),
|
||||
DataFile(Group.NPU, "jni/libQnnHtpNetRunExtensions.so", "app/src/main/jniLibs/arm64-v8a/libQnnHtpNetRunExtensions.so", "9776e906cff859504e9e5fd5f9cbb0ec592d9ae6be312ef0650cb95eb8e3aef6", 1383928L),
|
||||
DataFile(Group.NPU, "jni/libQnnHtpPrepare.so", "app/src/main/jniLibs/arm64-v8a/libQnnHtpPrepare.so", "cd31f94ae79ad402312e75262297d1e1073f85927d95f7905357a10b1d32a263", 87913152L),
|
||||
DataFile(Group.NPU, "jni/libQnnHtpV79Stub.so", "app/src/main/jniLibs/arm64-v8a/libQnnHtpV79Stub.so", "b3b4cca02e1f2cb5778ef9f18850814358d62a0b90123b25bb2806731a6af8b3", 754480L),
|
||||
DataFile(Group.NPU, "jni/libQnnHtpV81Stub.so", "app/src/main/jniLibs/arm64-v8a/libQnnHtpV81Stub.so", "16188365d86ef09a9067e8e04b7fa1c604729d1870219b1bbf04ee904e6c3ffa", 777848L),
|
||||
DataFile(Group.NPU, "jni/libQnnSystem.so", "app/src/main/jniLibs/arm64-v8a/libQnnSystem.so", "4cd077547a939b131c4733391545d64bdc4f9d0c86de78793335ddd18348789e", 4052904L),
|
||||
)
|
||||
|
||||
sealed interface State {
|
||||
data object Missing : State
|
||||
data class Downloading(val progress: Float) : State
|
||||
data object Ready : State
|
||||
data class Failed(val message: String) : State
|
||||
}
|
||||
|
||||
private val mutableState = MutableStateFlow<State>(State.Missing)
|
||||
val state: StateFlow<State> = mutableState.asStateFlow()
|
||||
private val lock = Any()
|
||||
@Volatile private var busy = false
|
||||
|
||||
fun root(context: Context) = File(LinuxRuntime.rootDir(context), GUEST_ROOT.removePrefix("/"))
|
||||
fun dataDir(context: Context) = File(root(context), "data")
|
||||
fun bridgesDir(context: Context) = File(root(context), "bridges")
|
||||
fun runDir(context: Context) = File(LinuxRuntime.rootDir(context), GUEST_RUN.removePrefix("/"))
|
||||
|
||||
/** The NPU this phone has: its Hexagon HTP generation and whether its own QNN libraries run it. */
|
||||
data class Npu(val arch: String, val systemLibs: Boolean)
|
||||
|
||||
private val SYSTEM_QNN = listOf("libQnnHtp.so", "libQnnHtpPrepare.so", "libQnnSystem.so")
|
||||
private val SYSTEM_STUB = Regex("libQnnHtpV(\\d{2,3})Stub\\.so")
|
||||
|
||||
/**
|
||||
* The HTP generation of the phone's own QNN runtime, when the vendor offers it to apps (listed in
|
||||
* public.libraries.txt): named by its one libQnnHtpV<NN>Stub.so. Null when absent or ambiguous.
|
||||
*/
|
||||
internal fun systemNpuArch(libDir: File = File("/vendor/lib64"), publicList: File = File("/vendor/etc/public.libraries.txt")): String? {
|
||||
val listed = runCatching {
|
||||
publicList.readLines().map { it.trim() }.filter { it.isNotEmpty() && !it.startsWith("#") }.map { it.substringBefore(' ') }.toSet()
|
||||
}.getOrNull() ?: return null
|
||||
if (!SYSTEM_QNN.all { it in listed && File(libDir, it).isFile }) return null
|
||||
val archs = libDir.list().orEmpty().filter { it in listed }.mapNotNull { SYSTEM_STUB.matchEntire(it)?.groupValues?.get(1) }.distinct()
|
||||
return archs.singleOrNull()?.let { "v$it" }
|
||||
}
|
||||
|
||||
private val systemNpu: String? by lazy { runCatching { systemNpuArch() }.getOrNull() }
|
||||
|
||||
/**
|
||||
* This phone's NPU, or null. The phone's own QNN runtime first (any HTP generation, nothing to download);
|
||||
* else the bundled QNN files: v79 on the Snapdragon 8 Elite, v81 on the 8 Elite Gen 5.
|
||||
*/
|
||||
fun npu(model: String = SocNames.model()): Npu? {
|
||||
systemNpu?.let { return Npu(it, systemLibs = true) }
|
||||
val soc = SocNames.normalizedModel(model)
|
||||
val arch = when {
|
||||
soc.startsWith("SM8750") -> "v79"
|
||||
soc.startsWith("SM8850") || soc.startsWith("SM8845") -> "v81"
|
||||
else -> null
|
||||
} ?: return null
|
||||
val fastrpc = listOf("/dev/fastrpc-cdsp", "/dev/fastrpc-cdsp-secure", "/dev/adsprpc-smd").any { File(it).exists() }
|
||||
return Npu(arch, systemLibs = false).takeIf { fastrpc }
|
||||
}
|
||||
|
||||
fun npuArch(model: String = SocNames.model()): String? = npu(model)?.arch
|
||||
|
||||
fun groups(engine: GameUpscaler.Engine, npu: Boolean = npuArch() != null): Set<Group> = buildSet {
|
||||
add(Group.CORE)
|
||||
if (engine == GameUpscaler.Engine.XESS) add(Group.XESS)
|
||||
if (engine.npu && npu && UpscaleComponent.npu()?.systemLibs != true) add(Group.NPU)
|
||||
}
|
||||
|
||||
/** The bridge DLLs (tools/upscale/bridges/build.sh), each in both Wine PE folders. */
|
||||
private val BRIDGE_NAMES = listOf(
|
||||
"_nvngx.dll", "amd_fidelityfx_dx12.dll", "amd_fidelityfx_loader_dx12.dll", "amd_fidelityfx_upscaler_dx12.dll",
|
||||
"amd_fidelityfx_upscaler_vk.dll", "amd_fidelityfx_vk.dll", "ffx_fsr2_api_x64.dll", "ffx_fsr3upscaler_x64.dll",
|
||||
"libxess.dll", "nvapi64.dll", "nvngx.dll", "nvngx_dlss.dll",
|
||||
)
|
||||
internal val BRIDGE_FILES = listOf("x86_64-windows", "aarch64-windows").flatMap { arch -> BRIDGE_NAMES.map { "$arch/$it" } }
|
||||
|
||||
fun filesReady(context: Context, groups: Set<Group>): Boolean =
|
||||
FILES.filter { it.group in groups }.all { f -> File(dataDir(context), f.relative).let { it.isFile && it.length() == f.size } }
|
||||
|
||||
fun bridgesReady(context: Context): Boolean =
|
||||
BRIDGE_FILES.all { File(bridgesDir(context), it).let { f -> f.isFile && f.length() > 0 } }
|
||||
|
||||
/** Everything a game with [groups] needs: the data files and the bridge DLLs. */
|
||||
fun ready(context: Context, groups: Set<Group>): Boolean = filesReady(context, groups) && bridgesReady(context)
|
||||
|
||||
/** Fetches what [groups] still lack (data files, then the bridge DLLs) in the background. */
|
||||
fun ensure(context: Context, groups: Set<Group>, onDone: (Boolean) -> Unit = {}) {
|
||||
val app = context.applicationContext
|
||||
if (ready(app, groups)) {
|
||||
mutableState.value = State.Ready
|
||||
onDone(true)
|
||||
return
|
||||
}
|
||||
synchronized(lock) {
|
||||
if (busy) return
|
||||
busy = true
|
||||
}
|
||||
Thread({
|
||||
val ok = try {
|
||||
val files = filesReady(app, groups) || download(app, groups)
|
||||
// Staged DLLs are refreshed when the pack or local copy changed; a download only when none are staged.
|
||||
val bridges = files && (if (bridgesReady(app)) stageBridges(app) else fetchBridges(app))
|
||||
when {
|
||||
bridges -> mutableState.value = State.Ready
|
||||
files -> mutableState.value = State.Failed("upscaler DLLs not installed")
|
||||
}
|
||||
bridges
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "upscaler files not fetched", e)
|
||||
mutableState.value = State.Failed(e.message ?: e.javaClass.simpleName)
|
||||
false
|
||||
} finally {
|
||||
synchronized(lock) { busy = false }
|
||||
}
|
||||
onDone(ok)
|
||||
}, "upscale-files").start()
|
||||
}
|
||||
|
||||
private fun download(context: Context, groups: Set<Group>): Boolean {
|
||||
val wanted = FILES.filter { it.group in groups }
|
||||
val missing = wanted.filter { f -> File(dataDir(context), f.relative).let { !it.isFile || it.length() != f.size } }
|
||||
val total = missing.sumOf { it.size }.coerceAtLeast(1L)
|
||||
var done = 0L
|
||||
mutableState.value = State.Downloading(0f)
|
||||
for (f in missing) {
|
||||
val target = File(dataDir(context), f.relative)
|
||||
target.parentFile?.mkdirs()
|
||||
val part = File(target.path + ".part")
|
||||
val ok = copyLocal(context, f, part) || Downloader.downloadFile(f.url, part, true, f.sha256) { p ->
|
||||
mutableState.value = State.Downloading(((done + p * f.size) / total).coerceIn(0f, 1f))
|
||||
}
|
||||
if (!ok || !part.renameTo(target)) {
|
||||
part.delete()
|
||||
val reason = Downloader.lastFailure() ?: "could not fetch ${f.relative}"
|
||||
mutableState.value = State.Failed(reason)
|
||||
Log.w(TAG, "upscaler file ${f.relative} not fetched: $reason")
|
||||
return false
|
||||
}
|
||||
if (f.group == Group.NPU) {
|
||||
target.setReadable(true, false)
|
||||
target.setExecutable(true, false)
|
||||
}
|
||||
done += f.size
|
||||
mutableState.value = State.Downloading((done.toFloat() / total).coerceIn(0f, 1f))
|
||||
}
|
||||
Log.i(TAG, "upscaler files ready (${wanted.size} files, groups $groups)")
|
||||
return true
|
||||
}
|
||||
|
||||
/**
|
||||
* Folders that may hold a local copy (same layout as the upstream tree): the app's own external
|
||||
* files folders, readable without any storage permission, then Download/droiddeck-upscale.
|
||||
*/
|
||||
@Suppress("DEPRECATION")
|
||||
private fun localRoots(context: Context): List<File> =
|
||||
context.getExternalFilesDirs(null).orEmpty().filterNotNull().map { File(it, LOCAL_COPY) } +
|
||||
File(Environment.getExternalStorageDirectory(), "Download/$LOCAL_COPY")
|
||||
|
||||
/** A local copy of [f] (see [localRoots]), used when its SHA-256 matches. */
|
||||
private fun copyLocal(context: Context, f: DataFile, part: File): Boolean = localRoots(context).any { root ->
|
||||
runCatching {
|
||||
val local = File(root, f.relative)
|
||||
if (!local.isFile || !local.canRead() || local.length() != f.size || sha256(local) != f.sha256) return@runCatching false
|
||||
local.inputStream().use { input -> part.outputStream().use { output -> input.copyTo(output, 1 shl 20) } }
|
||||
sha256(part) == f.sha256
|
||||
}.getOrDefault(false)
|
||||
}
|
||||
|
||||
private fun sha256(file: File): String {
|
||||
val digest = MessageDigest.getInstance("SHA-256")
|
||||
file.inputStream().use { input ->
|
||||
val buffer = ByteArray(1 shl 20)
|
||||
while (true) {
|
||||
val n = input.read(buffer)
|
||||
if (n < 0) break
|
||||
digest.update(buffer, 0, n)
|
||||
}
|
||||
}
|
||||
return digest.digest().joinToString("") { "%02x".format(it) }
|
||||
}
|
||||
|
||||
/** The add-on pack's bridges/ (fetched now when there is no local copy), staged into the rootfs. */
|
||||
private fun fetchBridges(context: Context): Boolean {
|
||||
val pack = AddonPack.UPSCALE
|
||||
if (!pack.installed(context) && localBridges(context) == null && pack.available) pack.await(context)
|
||||
return stageBridges(context)
|
||||
}
|
||||
|
||||
/** Content hash of a local bridges/ tree: CI builds every DLL with the same date, and sizes often stay the same. */
|
||||
internal fun localVersion(source: File): String {
|
||||
val digest = MessageDigest.getInstance("SHA-256")
|
||||
for (name in BRIDGE_FILES) {
|
||||
digest.update(name.toByteArray())
|
||||
digest.update(sha256(File(source, name)).toByteArray())
|
||||
}
|
||||
return digest.digest().take(8).joinToString("") { "%02x".format(it) }
|
||||
}
|
||||
|
||||
/** A complete, readable bridges/ tree in one of [localRoots]: builds without a published pack. */
|
||||
private fun localBridges(context: Context): File? = localRoots(context).map { File(it, "bridges") }.firstOrNull { dir ->
|
||||
runCatching { BRIDGE_FILES.all { File(dir, it).let { f -> f.isFile && f.canRead() && f.length() > 0 } } }.getOrDefault(false)
|
||||
}
|
||||
|
||||
/**
|
||||
* Copies the bridge DLLs from the add-on pack (or the local tree) into the rootfs, once per version. True only
|
||||
* when every one of [BRIDGE_FILES] is in place afterwards.
|
||||
*/
|
||||
@Synchronized
|
||||
fun stageBridges(context: Context): Boolean {
|
||||
val packDir = AddonPack.UPSCALE.takeIf { it.installed(context) }?.dir(context)
|
||||
val pack = packDir?.let { File(it, "bridges") }
|
||||
val source = pack?.takeIf { dir -> BRIDGE_FILES.all { File(dir, it).isFile } } ?: localBridges(context)
|
||||
if (source == null) {
|
||||
val ready = bridgesReady(context)
|
||||
if (!ready) Log.w(TAG, "upscaler bridges: no add-on pack and no readable local copy")
|
||||
return ready
|
||||
}
|
||||
val version = if (packDir != null && source == pack) packDir.name else "local-" + localVersion(source)
|
||||
val target = bridgesDir(context)
|
||||
val stamp = File(target, BRIDGES_STAMP)
|
||||
if (bridgesReady(context) && runCatching { stamp.readText() }.getOrNull() == version) return true
|
||||
var copied = 0
|
||||
for (name in BRIDGE_FILES) {
|
||||
val from = File(source, name)
|
||||
val out = File(target, name)
|
||||
out.parentFile?.mkdirs()
|
||||
val staged = File(out.path + ".staged")
|
||||
val ok = runCatching {
|
||||
from.inputStream().use { input -> staged.outputStream().use { output -> input.copyTo(output) } }
|
||||
staged.length() == from.length() && staged.renameTo(out)
|
||||
}.getOrDefault(false)
|
||||
staged.delete()
|
||||
if (ok) copied++ else Log.w(TAG, "upscaler bridge $name not staged from $source")
|
||||
}
|
||||
val ok = copied == BRIDGE_FILES.size && bridgesReady(context)
|
||||
if (ok) runCatching { stamp.writeText(version) }
|
||||
Log.i(TAG, "upscaler bridges staged from $version: $copied/${BRIDGE_FILES.size} files")
|
||||
return ok
|
||||
}
|
||||
|
||||
/** The bionic layer's manifest (the layer itself is the APK's native library). */
|
||||
fun bionicLayerDir(context: Context): File {
|
||||
val dir = File(context.filesDir, "upscale/layer")
|
||||
val library = File(context.applicationInfo.nativeLibraryDir, LAYER_LIBRARY)
|
||||
val manifest = """{
|
||||
"file_format_version": "1.0.0",
|
||||
"layer": {
|
||||
"name": "VK_LAYER_DROIDDECK_upscale",
|
||||
"type": "GLOBAL",
|
||||
"library_path": "${library.absolutePath}",
|
||||
"api_version": "1.3.275",
|
||||
"implementation_version": "1",
|
||||
"description": "DroidDeck in-game upscaler (FSR 4, XeSS 3, Hexagon NPU)",
|
||||
"enable_environment": { "DROIDDECK_UPSCALE": "1" },
|
||||
"disable_environment": { "DROIDDECK_UPSCALE_DISABLE": "1" }
|
||||
}
|
||||
}
|
||||
"""
|
||||
runCatching {
|
||||
dir.mkdirs()
|
||||
val file = File(dir, "VK_LAYER_DROIDDECK_upscale.json")
|
||||
if (!file.isFile || file.readText() != manifest) file.writeText(manifest)
|
||||
}.onFailure { Log.w(TAG, "could not write the upscaler layer manifest", it) }
|
||||
return dir
|
||||
}
|
||||
|
||||
/** Session-wide guest variables: whether NPU engines can run here (and its HTP generation), and the bionic layer's manifest folder. */
|
||||
fun guestEnv(context: Context): List<String> {
|
||||
runCatching { runDir(context).mkdirs() }
|
||||
val here = npu()
|
||||
return listOfNotNull(
|
||||
"DROIDDECK_UPSCALE_NPU=" + (if (here != null) "1" else "0"),
|
||||
here?.let { "DROIDDECK_UPSCALE_HTP_ARCH=${it.arch}" },
|
||||
"DROIDDECK_UPSCALE_LAYER=" + bionicLayerDir(context).absolutePath,
|
||||
)
|
||||
}
|
||||
|
||||
/** Fetches what the games set to use the upscaler need, at session start. */
|
||||
fun prepare(context: Context) {
|
||||
val config = runCatching { GameEnvironmentStore.read(context) }.getOrNull() ?: return
|
||||
val choices = config.games.keys.mapNotNull { GameUpscaler.choice(config, it) }
|
||||
if (choices.isEmpty()) return
|
||||
// Runs on the session-start thread, before the game copies the DLLs: ensure() returns at once when DLLs are
|
||||
// staged, so a newer pack or local copy is staged here.
|
||||
if (bridgesReady(context)) runCatching { stageBridges(context) }.onFailure { Log.w(TAG, "upscaler DLLs not refreshed", it) }
|
||||
val npu = npuArch() != null
|
||||
ensure(context, choices.flatMap { groups(it.engine, npu) }.toSet())
|
||||
}
|
||||
|
||||
/** Live switch while a game runs: the layer polls this file (fsr4_layer.c read_live_ctrl). */
|
||||
fun writeControl(context: Context, engine: GameUpscaler.Engine, sharpness: Int, npuSync: Boolean, enabled: Boolean = true) {
|
||||
runCatching {
|
||||
val dir = runDir(context).apply { mkdirs() }
|
||||
val ctrl = File(dir, "ctrl")
|
||||
val staged = File(dir, "ctrl.tmp")
|
||||
val effective = GameUpscaler.effectiveEngine(engine, npuArch() != null)
|
||||
staged.writeText(GameUpscaler.controlText(effective, sharpness, npuSync, enabled))
|
||||
staged.renameTo(ctrl)
|
||||
}.onFailure { Log.w(TAG, "could not write the upscaler control file", it) }
|
||||
}
|
||||
|
||||
/** What the layer reports, if it wrote in the last few seconds. */
|
||||
fun status(context: Context, nowMs: Long = System.currentTimeMillis()): GameUpscaler.Status? {
|
||||
val file = File(runDir(context), "status")
|
||||
if (!file.isFile || nowMs - file.lastModified() > 5000) return null
|
||||
return runCatching { GameUpscaler.parseStatus(file.readText()) }.getOrNull()
|
||||
}
|
||||
|
||||
fun anyGame(config: GameEnvironment.Config): Boolean = config.games.keys.any { GameUpscaler.choice(config, it) != null }
|
||||
}
|
||||
@@ -67,18 +67,13 @@ import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.withContext
|
||||
|
||||
@Composable
|
||||
private fun agentPanelFrame(): Modifier =
|
||||
Modifier.fillMaxWidth().clip(Shape14).background(MaterialTheme.colorScheme.surface)
|
||||
.border(1.dp, LocalPalette.current.line, Shape14).padding(horizontal = 14.dp, vertical = 10.dp)
|
||||
|
||||
/** The model, reasoning effort, permissions and plan mode for the next turns; a conversation keeps going with whatever is chosen. */
|
||||
@Composable
|
||||
internal fun AgentModelPicker() {
|
||||
val context = LocalContext.current
|
||||
val pal = LocalPalette.current
|
||||
val models = remember(AgentHost.harness) { AgentHost.models(context) }
|
||||
Column(agentPanelFrame(), verticalArrangement = Arrangement.spacedBy(10.dp)) {
|
||||
Column(Modifier.fillMaxWidth().padding(bottom = 10.dp), verticalArrangement = Arrangement.spacedBy(10.dp)) {
|
||||
Row(horizontalArrangement = Arrangement.spacedBy(8.dp), modifier = Modifier.horizontalScroll(rememberScrollState())) {
|
||||
val choices = listOf(AgentHarness.Model("", stringResource(R.string.agent_model_default))) + models
|
||||
for (choice in choices) {
|
||||
@@ -274,8 +269,12 @@ internal fun AgentProcessList(modifier: Modifier) {
|
||||
@Composable
|
||||
internal fun AgentUsage() {
|
||||
val context = LocalContext.current
|
||||
val colors = MaterialTheme.colorScheme
|
||||
val pal = LocalPalette.current
|
||||
Column(agentPanelFrame(), verticalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||
Column(
|
||||
Modifier.fillMaxWidth().clip(Shape14).background(colors.surface).border(1.dp, pal.line, Shape14).padding(horizontal = 14.dp, vertical = 10.dp),
|
||||
verticalArrangement = Arrangement.spacedBy(8.dp),
|
||||
) {
|
||||
if (AgentHost.window > 0) UsageRow(
|
||||
stringResource(R.string.agent_usage_context),
|
||||
stringResource(R.string.agent_usage_of, tokens(AgentHost.context), tokens(AgentHost.window)),
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
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,11 +24,7 @@ object ControllerHaptics {
|
||||
tick(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) {
|
||||
fun tick(context: Context) {
|
||||
val vibrator = if (Build.VERSION.SDK_INT >= 31) {
|
||||
context.getSystemService(VibratorManager::class.java)?.defaultVibrator
|
||||
} else {
|
||||
@@ -36,11 +32,11 @@ object ControllerHaptics {
|
||||
} ?: return
|
||||
if (!vibrator.hasVibrator()) return
|
||||
if (Build.VERSION.SDK_INT >= 29) {
|
||||
vibrator.vibrate(VibrationEffect.createPredefined(predefined))
|
||||
vibrator.vibrate(VibrationEffect.createPredefined(VibrationEffect.EFFECT_TICK))
|
||||
} else if (Build.VERSION.SDK_INT >= 26) {
|
||||
vibrator.vibrate(VibrationEffect.createOneShot(fallbackMs, VibrationEffect.DEFAULT_AMPLITUDE))
|
||||
vibrator.vibrate(VibrationEffect.createOneShot(10, VibrationEffect.DEFAULT_AMPLITUDE))
|
||||
} else {
|
||||
@Suppress("DEPRECATION") vibrator.vibrate(fallbackMs)
|
||||
@Suppress("DEPRECATION") vibrator.vibrate(10)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -211,7 +211,6 @@ private val METRICS = listOf(
|
||||
HudMetric("showNet", R.string.hud_metric_network),
|
||||
HudMetric("showResolution", R.string.hud_metric_resolution),
|
||||
HudMetric("showProton", R.string.hud_metric_proton),
|
||||
HudMetric("showUpscale", R.string.hud_metric_upscale),
|
||||
HudMetric("showSession", R.string.hud_metric_session),
|
||||
HudMetric("showClock", R.string.hud_metric_clock),
|
||||
)
|
||||
|
||||
@@ -88,7 +88,6 @@ 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
|
||||
@@ -177,8 +176,7 @@ 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 launcherFullscreenMode: FullscreenMode = FullscreenMode.ALWAYS,
|
||||
val sessionFullscreenMode: FullscreenMode = FullscreenMode.ALWAYS,
|
||||
val launcherFullscreen: Boolean = true,
|
||||
val launcherFrost: Boolean = false,
|
||||
val frostWallpaper: Boolean = true,
|
||||
val frostCards: Boolean = true,
|
||||
@@ -278,7 +276,7 @@ class FrontEndActions(
|
||||
val onShareSessionLog: (File) -> Unit = {},
|
||||
val onSaveSessionLog: (File) -> Unit = {},
|
||||
val onDeleteSessionLog: (File, () -> Unit) -> Unit = { _, done -> done() },
|
||||
val onClearLogs: (() -> Unit) -> Unit = {},
|
||||
val onClearLogs: () -> Unit = {},
|
||||
val onResetSettings: () -> Unit = {},
|
||||
val onOffline: () -> Unit,
|
||||
val onOfflineAuto: () -> Unit = {},
|
||||
@@ -290,8 +288,7 @@ class FrontEndActions(
|
||||
val onOrientation: (Int) -> Unit = {},
|
||||
val onLauncherOrientation: (Int) -> Unit = {},
|
||||
val onHomePage: (String) -> Unit = {},
|
||||
val onLauncherFullscreenMode: (FullscreenMode) -> Unit = {},
|
||||
val onSessionFullscreenMode: (FullscreenMode) -> Unit = {},
|
||||
val onLauncherFullscreen: (Boolean) -> Unit = {},
|
||||
val onLauncherFrost: (Boolean) -> Unit = {},
|
||||
val onFrostWallpaper: (Boolean) -> Unit = {},
|
||||
val onFrostCards: (Boolean) -> Unit = {},
|
||||
@@ -714,12 +711,9 @@ 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 (launcherFullscreen) WindowInsets.displayCutout else WindowInsets.systemBars)
|
||||
.windowInsetsPadding(if (s.launcherFullscreen) WindowInsets.displayCutout else WindowInsets.systemBars)
|
||||
.onFocusChanged { anyFocused = it.hasFocus },
|
||||
) {
|
||||
val bottomNavigation = maxHeight > maxWidth
|
||||
|
||||
@@ -85,7 +85,6 @@ 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
|
||||
@@ -587,17 +586,11 @@ internal fun SetupPanel(
|
||||
SessionPrefs.setOrientation(ctx, "desktop", value)
|
||||
},
|
||||
)
|
||||
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, "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) }
|
||||
ToggleRow(
|
||||
host, "page-swipe", stringResource(R.string.setup_page_swipe),
|
||||
stringResource(R.string.setup_page_swipe_hint), PageSwipe.on,
|
||||
@@ -685,102 +678,89 @@ internal fun SetupPanel(
|
||||
}
|
||||
}
|
||||
DEVELOPER_TAB -> {
|
||||
var manageLogs by rememberSaveable { mutableStateOf(false) }
|
||||
val devContext = LocalContext.current
|
||||
SettingsGroup(stringResource(R.string.dev_tools_title)) {
|
||||
ToggleRow(host, "developer-tools", stringResource(R.string.dev_tools_show), stringResource(R.string.dev_tools_hint), DeveloperTools.on, sideBySide = true) {
|
||||
DeveloperTools.set(ctx, it)
|
||||
ToggleRow(host, "developer-tools", stringResource(R.string.dev_tools_title), stringResource(R.string.dev_tools_hint), DeveloperTools.on) {
|
||||
DeveloperTools.set(devContext, it)
|
||||
}
|
||||
if (DeveloperTools.on) ToggleRow(host, "agent-commands", stringResource(R.string.setup_agent_commands), stringResource(R.string.setup_agent_commands_hint), s.agentCommands, sideBySide = true) { a.onAgentCommands() }
|
||||
if (DeveloperTools.on && com.droiddeck.launcher.agent.AgentHost.available) {
|
||||
ToggleRow(host, "agent-pet", stringResource(R.string.rail_agent), stringResource(R.string.dev_harness_overlay_hint), AgentPet.enabled, sideBySide = true) {
|
||||
AgentPet.set(ctx, it)
|
||||
}
|
||||
if (AgentPet.enabled && !AgentPet.allowed && AgentPet.usesOverlayWindows(com.droiddeck.launcher.session.QuestExperimental.isSupported())) ActionRow(
|
||||
stringResource(R.string.setup_agent_pet_float), stringResource(R.string.setup_agent_pet_float_hint),
|
||||
stringResource(R.string.setup_agent_pet_allow), onClick = { AgentPet.requestFloating(ctx) }, sideBySide = true,
|
||||
)
|
||||
}
|
||||
}
|
||||
if (DeveloperTools.on) SettingsGroup(stringResource(R.string.dev_group_previews)) {
|
||||
ActionRow(
|
||||
if (DeveloperTools.on) ActionRow(
|
||||
stringResource(R.string.dev_ui_zoo), stringResource(R.string.dev_ui_zoo_hint), stringResource(R.string.dev_ui_zoo_open),
|
||||
onClick = { DevPreview.zoo = true }, modifier = Modifier.testTag("dev-ui-zoo"), sideBySide = true,
|
||||
onClick = { DevPreview.zoo = true }, modifier = Modifier.testTag("dev-ui-zoo"),
|
||||
)
|
||||
ToggleRow(
|
||||
if (DeveloperTools.on) ToggleRow(
|
||||
host, "preview-shortcuts", stringResource(R.string.dev_preview_shortcuts), stringResource(R.string.dev_preview_shortcuts_hint),
|
||||
DevPreview.shortcuts, sideBySide = true,
|
||||
) { DevPreview.setShortcuts(ctx, it) }
|
||||
DevPreview.shortcuts,
|
||||
) { DevPreview.setShortcuts(devContext, it) }
|
||||
}
|
||||
SettingsGroup(stringResource(R.string.dev_group_diagnostics)) {
|
||||
ToggleRow(host, "logs", stringResource(R.string.setup_logs), stringResource(R.string.setup_logs_hint), s.logsEnabled, sideBySide = true) { a.onLogs() }
|
||||
SettingsGroup(stringResource(R.string.dev_group_logs)) {
|
||||
ToggleRow(host, "logs", stringResource(R.string.setup_logs), stringResource(R.string.setup_logs_hint), s.logsEnabled) { a.onLogs() }
|
||||
if (DeveloperTools.on) ToggleRow(
|
||||
host, "enhanced-diagnostics", stringResource(R.string.setup_enhanced_diagnostics),
|
||||
stringResource(R.string.setup_enhanced_diagnostics_hint), s.enhancedDiagnosticsArmed, sideBySide = true,
|
||||
stringResource(R.string.setup_enhanced_diagnostics_hint), s.enhancedDiagnosticsArmed,
|
||||
) { a.onEnhancedDiagnostics() }
|
||||
ToggleRow(
|
||||
host, "game-debug-logs", stringResource(R.string.setup_game_debug_logs),
|
||||
stringResource(if (s.gameDebugLogsNeedsRestart) R.string.setup_game_debug_logs_restart else R.string.setup_game_debug_logs_hint),
|
||||
s.gameDebugLogsEnabled,
|
||||
enabled = s.logsEnabled, sideBySide = true,
|
||||
enabled = s.logsEnabled,
|
||||
) { a.onGameDebugLogs() }
|
||||
if (DeveloperTools.on) ToggleRow(host, "vacdiag", stringResource(R.string.setup_vac_diag), stringResource(R.string.setup_vac_diag_hint), s.vacDiagnostics, sideBySide = true) { a.onVacDiagnostics() }
|
||||
if (DeveloperTools.on) ToggleRow(host, "graphics-logs", stringResource(R.string.setup_graphics_logs), stringResource(R.string.setup_graphics_logs_hint), s.graphicsLogs, sideBySide = true) { a.onGraphicsLogs() }
|
||||
if (DeveloperTools.on && !s.adreno && com.droiddeck.launcher.session.SessionPrefs.steamGpuCompositingAllowed()) ToggleRow(host, "steam-gpu-drawing", stringResource(R.string.setup_steam_gpu_drawing), stringResource(R.string.setup_steam_gpu_drawing_hint), s.steamGpuDrawing, sideBySide = true) { a.onSteamGpuDrawing() }
|
||||
}
|
||||
SettingsGroup(stringResource(R.string.dev_group_log_files)) {
|
||||
ActionRow(stringResource(R.string.setup_latest_logs), stringResource(R.string.drawer_logs_hint), stringResource(R.string.drawer_share_logs), a.onShareLogs,
|
||||
progress = com.droiddeck.launcher.session.SessionLogShare.progress, sideBySide = true)
|
||||
ActionRow(
|
||||
stringResource(R.string.setup_saved_logs), stringResource(R.string.dev_log_manage_hint),
|
||||
stringResource(if (manageLogs) R.string.common_close else R.string.setup_manage),
|
||||
onClick = { manageLogs = !manageLogs }, sideBySide = true,
|
||||
)
|
||||
if (manageLogs) {
|
||||
Text(stringResource(R.string.setup_log_sessions), fontSize = 13.sp, fontWeight = FontWeight.SemiBold,
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant, modifier = Modifier.padding(horizontal = 14.dp, vertical = 10.dp))
|
||||
Text(stringResource(R.string.setup_log_export_hint), fontSize = 12.sp, color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
modifier = Modifier.padding(start = 14.dp, end = 14.dp, bottom = 8.dp))
|
||||
val sessionLogs = remember(ctx, logsRefresh) { com.droiddeck.launcher.session.SessionLogShare.sessions(ctx).asReversed() }
|
||||
if (sessionLogs.isEmpty()) {
|
||||
Text(stringResource(R.string.setup_log_empty), fontSize = 13.sp, color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
modifier = Modifier.padding(horizontal = 14.dp, vertical = 10.dp))
|
||||
if (DeveloperTools.on) ToggleRow(host, "vacdiag", stringResource(R.string.setup_vac_diag), stringResource(R.string.setup_vac_diag_hint), s.vacDiagnostics) { a.onVacDiagnostics() }
|
||||
if (DeveloperTools.on) ToggleRow(host, "agent-commands", stringResource(R.string.setup_agent_commands), null, s.agentCommands) { a.onAgentCommands() }
|
||||
if (DeveloperTools.on && com.droiddeck.launcher.agent.AgentHost.available) {
|
||||
val agentContext = androidx.compose.ui.platform.LocalContext.current
|
||||
ToggleRow(host, "agent-pet", stringResource(R.string.setup_agent_pet), stringResource(R.string.setup_agent_pet_hint), AgentPet.enabled) {
|
||||
AgentPet.set(agentContext, it)
|
||||
}
|
||||
sessionLogs.forEach { folder ->
|
||||
val active = folder == com.droiddeck.launcher.session.SessionPaths.current()
|
||||
var details by remember(folder) { mutableStateOf<com.droiddeck.launcher.session.SessionLogShare.Details?>(null) }
|
||||
LaunchedEffect(folder, logsRefresh) {
|
||||
details = kotlinx.coroutines.withContext(kotlinx.coroutines.Dispatchers.IO) {
|
||||
com.droiddeck.launcher.session.SessionLogShare.details(folder)
|
||||
}
|
||||
}
|
||||
Column(Modifier.fillMaxWidth().padding(horizontal = 14.dp, vertical = 8.dp)) {
|
||||
Text(folder.name, fontSize = 14.sp, fontWeight = FontWeight.SemiBold, color = MaterialTheme.colorScheme.onBackground,
|
||||
maxLines = 1, overflow = TextOverflow.Ellipsis)
|
||||
details?.let { detail ->
|
||||
Text(
|
||||
stringResource(R.string.setup_log_size_date,
|
||||
android.text.format.Formatter.formatShortFileSize(ctx, detail.sizeBytes),
|
||||
"${android.text.format.DateFormat.getDateFormat(ctx).format(java.util.Date(detail.modifiedAt))} ${android.text.format.DateFormat.getTimeFormat(ctx).format(java.util.Date(detail.modifiedAt))}"),
|
||||
fontSize = 12.sp, color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
)
|
||||
}
|
||||
if (active) Text(stringResource(R.string.setup_log_current), fontSize = 12.sp, color = MaterialTheme.colorScheme.primary)
|
||||
Row(Modifier.fillMaxWidth().padding(top = 6.dp), horizontalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||
SecondaryButton(stringResource(R.string.setup_log_share), enabled = com.droiddeck.launcher.session.SessionLogShare.progress == null, compact = true, modifier = Modifier.weight(1f)) { a.onShareSessionLog(folder) }
|
||||
SecondaryButton(stringResource(R.string.setup_log_save), enabled = com.droiddeck.launcher.session.SessionLogShare.progress == null, compact = true, modifier = Modifier.weight(1f)) { a.onSaveSessionLog(folder) }
|
||||
SecondaryButton(stringResource(R.string.setup_log_delete), compact = true, enabled = !active, modifier = Modifier.weight(1f)) { deleteSessionLogs = folder }
|
||||
}
|
||||
}
|
||||
androidx.compose.material3.HorizontalDivider()
|
||||
}
|
||||
ActionRow(stringResource(R.string.setup_saved_logs_hint, com.droiddeck.launcher.session.SessionPaths.KEEP_SESSIONS),
|
||||
null, stringResource(R.string.setup_clear_logs),
|
||||
onClick = { a.onClearLogs { logsRefresh++ } }, sideBySide = true)
|
||||
if (AgentPet.enabled && !AgentPet.allowed && AgentPet.usesOverlayWindows(com.droiddeck.launcher.session.QuestExperimental.isSupported())) ActionRow(
|
||||
stringResource(R.string.setup_agent_pet_float), stringResource(R.string.setup_agent_pet_float_hint),
|
||||
stringResource(R.string.setup_agent_pet_allow), onClick = { AgentPet.requestFloating(agentContext) },
|
||||
)
|
||||
}
|
||||
}
|
||||
SettingsGroup(stringResource(R.string.dev_group_reset)) {
|
||||
if (DeveloperTools.on) ToggleRow(host, "graphics-logs", stringResource(R.string.setup_graphics_logs), stringResource(R.string.setup_graphics_logs_hint), s.graphicsLogs) { a.onGraphicsLogs() }
|
||||
if (DeveloperTools.on && !s.adreno && com.droiddeck.launcher.session.SessionPrefs.steamGpuCompositingAllowed()) ToggleRow(host, "steam-gpu-drawing", stringResource(R.string.setup_steam_gpu_drawing), stringResource(R.string.setup_steam_gpu_drawing_hint), s.steamGpuDrawing) { a.onSteamGpuDrawing() }
|
||||
ActionRow(stringResource(R.string.setup_latest_logs), stringResource(R.string.drawer_logs_hint), stringResource(R.string.drawer_share_logs), a.onShareLogs,
|
||||
progress = com.droiddeck.launcher.session.SessionLogShare.progress)
|
||||
androidx.compose.material3.HorizontalDivider()
|
||||
Text(stringResource(R.string.setup_log_sessions), fontSize = 13.sp, fontWeight = FontWeight.SemiBold,
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant, modifier = Modifier.padding(horizontal = 14.dp, vertical = 10.dp))
|
||||
Text(stringResource(R.string.setup_log_export_hint), fontSize = 12.sp, color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
modifier = Modifier.padding(start = 14.dp, end = 14.dp, bottom = 8.dp))
|
||||
val sessionLogs = remember(ctx, logsRefresh) { com.droiddeck.launcher.session.SessionLogShare.sessions(ctx).asReversed() }
|
||||
if (sessionLogs.isEmpty()) {
|
||||
Text(stringResource(R.string.setup_log_empty), fontSize = 13.sp, color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
modifier = Modifier.padding(horizontal = 14.dp, vertical = 10.dp))
|
||||
}
|
||||
sessionLogs.forEach { folder ->
|
||||
val active = folder == com.droiddeck.launcher.session.SessionPaths.current()
|
||||
var details by remember(folder) { mutableStateOf<com.droiddeck.launcher.session.SessionLogShare.Details?>(null) }
|
||||
LaunchedEffect(folder, logsRefresh) {
|
||||
details = kotlinx.coroutines.withContext(kotlinx.coroutines.Dispatchers.IO) {
|
||||
com.droiddeck.launcher.session.SessionLogShare.details(folder)
|
||||
}
|
||||
}
|
||||
Column(Modifier.fillMaxWidth().padding(horizontal = 14.dp, vertical = 8.dp)) {
|
||||
Text(folder.name, fontSize = 14.sp, fontWeight = FontWeight.SemiBold, color = MaterialTheme.colorScheme.onBackground,
|
||||
maxLines = 1, overflow = TextOverflow.Ellipsis)
|
||||
details?.let { detail ->
|
||||
Text(
|
||||
stringResource(R.string.setup_log_size_date,
|
||||
android.text.format.Formatter.formatShortFileSize(ctx, detail.sizeBytes),
|
||||
"${android.text.format.DateFormat.getDateFormat(ctx).format(java.util.Date(detail.modifiedAt))} ${android.text.format.DateFormat.getTimeFormat(ctx).format(java.util.Date(detail.modifiedAt))}"),
|
||||
fontSize = 12.sp, color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
)
|
||||
}
|
||||
if (active) Text(stringResource(R.string.setup_log_current), fontSize = 12.sp, color = MaterialTheme.colorScheme.primary)
|
||||
Row(Modifier.fillMaxWidth().padding(top = 6.dp), horizontalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||
SecondaryButton(stringResource(R.string.setup_log_share), enabled = com.droiddeck.launcher.session.SessionLogShare.progress == null, compact = true, modifier = Modifier.weight(1f)) { a.onShareSessionLog(folder) }
|
||||
SecondaryButton(stringResource(R.string.setup_log_save), enabled = com.droiddeck.launcher.session.SessionLogShare.progress == null, compact = true, modifier = Modifier.weight(1f)) { a.onSaveSessionLog(folder) }
|
||||
SecondaryButton(stringResource(R.string.setup_log_delete), compact = true, enabled = !active, modifier = Modifier.weight(1f)) { deleteSessionLogs = folder }
|
||||
}
|
||||
}
|
||||
androidx.compose.material3.HorizontalDivider()
|
||||
}
|
||||
ActionRow(stringResource(R.string.setup_saved_logs), stringResource(R.string.setup_saved_logs_hint, com.droiddeck.launcher.session.SessionPaths.KEEP_SESSIONS), stringResource(R.string.setup_clear_logs), a.onClearLogs)
|
||||
ActionRow(stringResource(R.string.setup_reset_settings), stringResource(R.string.setup_reset_settings_hint),
|
||||
stringResource(R.string.setup_reset_settings_button), a.onResetSettings, sideBySide = true)
|
||||
stringResource(R.string.setup_reset_settings_button), a.onResetSettings)
|
||||
}
|
||||
}
|
||||
GLASSES_TAB -> GlassesSetupPanel()
|
||||
@@ -1134,39 +1114,6 @@ internal fun GameSettingsMenus(host: MenuHost, game: com.droiddeck.launcher.fron
|
||||
save { com.droiddeck.launcher.session.GameEnvironmentStore.setGameResolution(it, scope, choice) }
|
||||
}
|
||||
var editResolution by remember(scope) { mutableStateOf(false) }
|
||||
val upKey = "game-settings-upscale"
|
||||
val upEngineKey = "game-settings-upscale-engine"
|
||||
val upSharpKey = "game-settings-upscale-sharp"
|
||||
val upscale = current?.let { com.droiddeck.launcher.core.GameUpscaler.choice(it, scope) }
|
||||
val npuHere = remember { com.droiddeck.launcher.session.UpscaleComponent.npuArch() != null }
|
||||
val upFiles by com.droiddeck.launcher.session.UpscaleComponent.state.collectAsState()
|
||||
val modeLabels = mapOf(
|
||||
com.droiddeck.launcher.core.GameUpscaler.Mode.FSR_XESS to stringResource(R.string.game_upscaler_mode_fsr),
|
||||
com.droiddeck.launcher.core.GameUpscaler.Mode.DLSS to stringResource(R.string.game_upscaler_mode_dlss),
|
||||
com.droiddeck.launcher.core.GameUpscaler.Mode.NATIVE_FSR4 to stringResource(R.string.game_upscaler_mode_native),
|
||||
)
|
||||
val engineLabels = mapOf(
|
||||
com.droiddeck.launcher.core.GameUpscaler.Engine.FSR4_LITE_GPU to stringResource(R.string.game_upscaler_engine_fsr4_lite),
|
||||
com.droiddeck.launcher.core.GameUpscaler.Engine.FSR4_FULL_GPU to stringResource(R.string.game_upscaler_engine_fsr4_full),
|
||||
com.droiddeck.launcher.core.GameUpscaler.Engine.XESS to stringResource(R.string.game_upscaler_engine_xess),
|
||||
com.droiddeck.launcher.core.GameUpscaler.Engine.BASIC to stringResource(R.string.game_upscaler_engine_basic),
|
||||
com.droiddeck.launcher.core.GameUpscaler.Engine.SGSR2 to stringResource(R.string.game_upscaler_engine_sgsr2),
|
||||
com.droiddeck.launcher.core.GameUpscaler.Engine.FSR4_NPU to stringResource(R.string.game_upscaler_engine_fsr4_npu),
|
||||
com.droiddeck.launcher.core.GameUpscaler.Engine.FSR4_LITE_NPU to stringResource(R.string.game_upscaler_engine_fsr4_lite_npu),
|
||||
)
|
||||
val upOff = stringResource(R.string.game_upscaler_off)
|
||||
val filesLabel = when (val f = upFiles) {
|
||||
is com.droiddeck.launcher.session.UpscaleComponent.State.Downloading -> stringResource(R.string.game_upscaler_files_downloading, (f.progress * 100).toInt())
|
||||
is com.droiddeck.launcher.session.UpscaleComponent.State.Failed -> stringResource(R.string.game_upscaler_files_failed, f.message)
|
||||
else -> if (upscale != null && com.droiddeck.launcher.session.UpscaleComponent.ready(appContext,
|
||||
com.droiddeck.launcher.session.UpscaleComponent.groups(upscale.engine, npuHere)))
|
||||
stringResource(R.string.game_upscaler_files_ready) else stringResource(R.string.game_upscaler_files_missing)
|
||||
}
|
||||
fun pickUpscale(choice: com.droiddeck.launcher.core.GameUpscaler.Choice?) {
|
||||
save { com.droiddeck.launcher.session.GameEnvironmentStore.setGameUpscaler(it, scope, choice) }
|
||||
if (choice != null) com.droiddeck.launcher.session.UpscaleComponent.ensure(appContext,
|
||||
com.droiddeck.launcher.session.UpscaleComponent.groups(choice.engine, npuHere))
|
||||
}
|
||||
AnchoredMenu(host.open == key, onDismiss = { if (host.open == key) host.open = null }, title = stringResource(R.string.game_settings_menu_title, game.name)) { first ->
|
||||
MenuItem(stringResource(R.string.game_no_steam_title), checked = noSteam, enabled = ready,
|
||||
detail = stringResource(R.string.game_no_steam_detail), focusRequester = first) {
|
||||
@@ -1198,37 +1145,6 @@ internal fun GameSettingsMenus(host: MenuHost, game: com.droiddeck.launcher.fron
|
||||
},
|
||||
trailing = { Text("›", fontSize = 16.sp, color = colors.onSurfaceVariant) },
|
||||
) { host.open = syncKey }
|
||||
MenuItem(
|
||||
stringResource(R.string.game_upscaler_title), checked = false, enabled = ready,
|
||||
detail = upscale?.let { modeLabels[it.mode] } ?: upOff,
|
||||
trailing = { Text("›", fontSize = 16.sp, color = colors.onSurfaceVariant) },
|
||||
) { host.open = upKey }
|
||||
if (upscale != null) {
|
||||
MenuItem(
|
||||
stringResource(R.string.game_upscaler_engine), checked = false, enabled = ready,
|
||||
detail = engineLabels[com.droiddeck.launcher.core.GameUpscaler.effectiveEngine(upscale.engine, npuHere)],
|
||||
trailing = { Text("›", fontSize = 16.sp, color = colors.onSurfaceVariant) },
|
||||
) { host.open = upEngineKey }
|
||||
MenuItem(
|
||||
stringResource(R.string.game_upscaler_sharpness), checked = false, enabled = ready,
|
||||
detail = stringResource(R.string.game_upscaler_sharpness_value, upscale.sharpness),
|
||||
trailing = { Text("›", fontSize = 16.sp, color = colors.onSurfaceVariant) },
|
||||
) { host.open = upSharpKey }
|
||||
if (upscale.mode == com.droiddeck.launcher.core.GameUpscaler.Mode.DLSS) {
|
||||
MenuItem(stringResource(R.string.game_upscaler_sigfix), checked = upscale.signatureFix, enabled = ready) {
|
||||
pickUpscale(upscale.copy(signatureFix = !upscale.signatureFix))
|
||||
}
|
||||
}
|
||||
if (upscale.engine.npu && npuHere) {
|
||||
MenuItem(stringResource(R.string.game_upscaler_npu_sync), checked = upscale.npuSync, enabled = ready) {
|
||||
pickUpscale(upscale.copy(npuSync = !upscale.npuSync))
|
||||
}
|
||||
}
|
||||
MenuItem(stringResource(R.string.game_upscaler_files), checked = false, enabled = ready, detail = filesLabel) {
|
||||
com.droiddeck.launcher.session.UpscaleComponent.ensure(appContext,
|
||||
com.droiddeck.launcher.session.UpscaleComponent.groups(upscale.engine, npuHere))
|
||||
}
|
||||
}
|
||||
}
|
||||
MenuItem(stringResource(R.string.game_settings_default), checked = false, enabled = ready,
|
||||
detail = stringResource(R.string.game_settings_default_detail)) {
|
||||
@@ -1245,36 +1161,6 @@ internal fun GameSettingsMenus(host: MenuHost, game: com.droiddeck.launcher.fron
|
||||
}
|
||||
}
|
||||
}
|
||||
AnchoredMenu(host.open == upKey, onDismiss = { if (host.open == upKey) host.open = null }, title = stringResource(R.string.game_upscaler_title)) { first ->
|
||||
MenuItem(upOff, checked = upscale == null, enabled = ready, focusRequester = first) {
|
||||
host.open = key
|
||||
pickUpscale(null)
|
||||
}
|
||||
com.droiddeck.launcher.core.GameUpscaler.Mode.entries.forEach { mode ->
|
||||
MenuItem(modeLabels.getValue(mode), checked = upscale?.mode == mode, enabled = ready) {
|
||||
host.open = key
|
||||
pickUpscale((upscale ?: com.droiddeck.launcher.core.GameUpscaler.Choice(mode)).copy(mode = mode))
|
||||
}
|
||||
}
|
||||
}
|
||||
AnchoredMenu(host.open == upEngineKey, onDismiss = { if (host.open == upEngineKey) host.open = null }, title = stringResource(R.string.game_upscaler_engine)) { first ->
|
||||
com.droiddeck.launcher.core.GameUpscaler.Engine.entries.filter { !it.npu || npuHere }.forEachIndexed { index, engine ->
|
||||
MenuItem(engineLabels.getValue(engine), checked = upscale?.engine == engine, enabled = ready && upscale != null,
|
||||
focusRequester = if (index == 0) first else null) {
|
||||
host.open = key
|
||||
upscale?.let { pickUpscale(it.copy(engine = engine)) }
|
||||
}
|
||||
}
|
||||
}
|
||||
AnchoredMenu(host.open == upSharpKey, onDismiss = { if (host.open == upSharpKey) host.open = null }, title = stringResource(R.string.game_upscaler_sharpness)) { first ->
|
||||
com.droiddeck.launcher.core.GameUpscaler.sharpnessSteps.forEachIndexed { index, value ->
|
||||
MenuItem(stringResource(R.string.game_upscaler_sharpness_value, value), checked = upscale?.sharpness == value,
|
||||
enabled = ready && upscale != null, focusRequester = if (index == 0) first else null) {
|
||||
host.open = key
|
||||
upscale?.let { pickUpscale(it.copy(sharpness = value)) }
|
||||
}
|
||||
}
|
||||
}
|
||||
AnchoredMenu(host.open == resKey, onDismiss = { if (host.open == resKey) host.open = null }, title = stringResource(R.string.game_res_title)) { first ->
|
||||
MenuItem(matchScreen, checked = resolution == null, enabled = ready, focusRequester = first) { pickResolution(null) }
|
||||
com.droiddeck.launcher.core.GameResolution.scales.forEach { scale ->
|
||||
|
||||
@@ -137,7 +137,7 @@ class InputSurfaceView(
|
||||
val views = owners.values.distinct()
|
||||
owners.clear()
|
||||
for (view in views) {
|
||||
if (view is HoldButton) { view.cancelTouches(); continue }
|
||||
if (view is HoldButton) { view.cancel(); continue }
|
||||
val cancel = MotionEvent.obtain(event.downTime, event.eventTime, MotionEvent.ACTION_CANCEL, 0f, 0f, 0)
|
||||
try { view.dispatchTouchEvent(cancel) } finally { cancel.recycle() }
|
||||
}
|
||||
@@ -176,23 +176,10 @@ 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()
|
||||
@@ -495,22 +482,17 @@ class InputSurfaceView(
|
||||
|
||||
fun press(pointer: Int, pressed: Boolean, cancelled: Boolean = false) {
|
||||
if (pressed) pointers.add(pointer) else pointers.remove(pointer)
|
||||
set(pointers.isNotEmpty(), cancelled, touch = pointer >= 0)
|
||||
set(pointers.isNotEmpty(), cancelled)
|
||||
}
|
||||
|
||||
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, touch: Boolean = true) {
|
||||
private fun set(pressed: Boolean, cancelled: Boolean = false) {
|
||||
if (down == pressed) return
|
||||
down = pressed
|
||||
if (pressed && touch) feedback(this, HapticFeedbackConstants.VIRTUAL_KEY)
|
||||
if (pressed) 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()
|
||||
|
||||
@@ -116,10 +116,6 @@ 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
|
||||
@@ -177,7 +173,6 @@ 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
|
||||
@@ -243,12 +238,6 @@ 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,
|
||||
@@ -354,14 +343,6 @@ 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,
|
||||
@@ -407,8 +388,6 @@ 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,
|
||||
@@ -477,7 +456,6 @@ 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)) }
|
||||
@@ -489,17 +467,15 @@ 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 || airPanel)
|
||||
val layerOpen = open && (host.open != null || appToChooseDisplay != null || confirmStop || insideMore)
|
||||
LaunchedEffect(layerOpen) { onLayerChange(layerOpen) }
|
||||
var seenBackRequest by remember { mutableStateOf(backRequest) }
|
||||
LaunchedEffect(backRequest) {
|
||||
@@ -509,23 +485,10 @@ 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; 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(page) { host.open = null; appToChooseDisplay = null; managing = false }
|
||||
LaunchedEffect(host.open) {
|
||||
if (host.open == "frame-generation") repeat(24) {
|
||||
androidx.compose.runtime.withFrameNanos { }
|
||||
@@ -611,7 +574,6 @@ 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++
|
||||
@@ -688,9 +650,7 @@ internal fun SessionDrawer(open: Boolean, requestedPage: SessionDrawerPage, cont
|
||||
host.open = null; onPageChange(pages.strip().step(pages.tabFor(page), 1))
|
||||
}
|
||||
}
|
||||
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 (insideMore && !managing) DrawerMoreBack(stringResource(page.title), focus.track(page, "more-back")) { host.open = null; onPageChange(SessionDrawerPage.MORE) }
|
||||
if (managing) ManageDrawerPages(
|
||||
offeredDrawerPages(a.achievementsGame != null),
|
||||
Modifier.weight(1f).fillMaxWidth().padding(top = 8.dp, start = 14.dp, end = 14.dp),
|
||||
@@ -711,11 +671,7 @@ 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 -> {
|
||||
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.CONTROLLER -> DrawerControllerPage(host, a, a.controllerConnected || controllerActive, track)
|
||||
SessionDrawerPage.HUD -> DrawerPerformancePage(host, a, track)
|
||||
SessionDrawerPage.FRAMEGEN -> DrawerFrameGenPage(host, a, track)
|
||||
SessionDrawerPage.DISPLAY -> DrawerDisplayPage(host, a, track)
|
||||
@@ -775,7 +731,7 @@ internal fun SessionDrawer(open: Boolean, requestedPage: SessionDrawerPage, cont
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun DrawerControllerPage(host: MenuHost, a: DrawerActions, padConnected: Boolean, track: (String) -> Modifier, onAirTriggers: () -> Unit) {
|
||||
private fun DrawerControllerPage(host: MenuHost, a: DrawerActions, padConnected: Boolean, track: (String) -> Modifier) {
|
||||
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
|
||||
@@ -790,12 +746,9 @@ 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)
|
||||
val airTriggers = a.airTriggers
|
||||
val airTriggersLabel = stringResource(R.string.air_triggers_title)
|
||||
if (a.padType != null || c != null || airTriggers != null) SettingsGroup(
|
||||
if (a.padType != null || c != 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}" },
|
||||
airTriggers?.let { "$airTriggersLabel ${if (it.enabled) on else off}" }),
|
||||
detail = summary(a.padType?.let { padTypes.labelOf(it) }, c?.let { "$rumbleLabel ${if (it.rumble) on else off}" }),
|
||||
) {
|
||||
a.padType?.let { type ->
|
||||
ChoiceRow(host, "pad-type", stringResource(R.string.input_virtual_controller), stringResource(R.string.input_virtual_controller_hint),
|
||||
@@ -804,10 +757,6 @@ 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))
|
||||
@@ -1012,10 +961,6 @@ 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)
|
||||
@@ -1113,7 +1058,6 @@ private fun DrawerGamePage(host: MenuHost, a: DrawerActions, track: (String) ->
|
||||
color = colors.onSurfaceVariant, modifier = Modifier.padding(horizontal = 10.dp, vertical = 8.dp))
|
||||
}
|
||||
TextureFilteringGroup(host, a, track)
|
||||
if (a.steam || a.direct) DrawerUpscalerGroup(host, a, track)
|
||||
ComponentsDrawerPage(host, a, track)
|
||||
ComponentDownloadsDrawerGroup(
|
||||
host = host,
|
||||
@@ -1378,15 +1322,15 @@ private fun DrawerPageTabs(page: SessionDrawerPage, pages: List<SessionDrawerPag
|
||||
|
||||
private const val LOOK_CUSTOM = "custom"
|
||||
|
||||
/** The row above a page kept inside More, or a panel inside a page, that goes back to where it was opened from. */
|
||||
/** The row above a page kept inside More that goes back to the More list. */
|
||||
@Composable
|
||||
private fun DrawerMoreBack(title: String, modifier: Modifier, parent: String = stringResource(R.string.drawer_page_more), onBack: () -> Unit) {
|
||||
private fun DrawerMoreBack(title: String, modifier: Modifier, 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, parent)
|
||||
val label = stringResource(R.string.drawer_more_back, stringResource(R.string.drawer_page_more))
|
||||
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)
|
||||
@@ -1400,105 +1344,12 @@ private fun DrawerMoreBack(title: String, modifier: Modifier, parent: String = s
|
||||
.padding(horizontal = 8.dp),
|
||||
) {
|
||||
Icon(Icons.AutoMirrored.Outlined.ArrowBack, null, tint = colors.onSurfaceVariant, modifier = Modifier.size(22.dp))
|
||||
Text(parent, fontSize = 13.sp, color = colors.onSurfaceVariant)
|
||||
Text(stringResource(R.string.drawer_page_more), 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) {
|
||||
@@ -1918,52 +1769,6 @@ private fun TextureFilteringGroup(host: MenuHost, a: DrawerActions, track: (Stri
|
||||
}
|
||||
}
|
||||
|
||||
/** The selected game's in-game upscaler: engine and sharpness switch live (the layer polls its control file). */
|
||||
@Composable
|
||||
private fun DrawerUpscalerGroup(host: MenuHost, a: DrawerActions, track: (String) -> Modifier) {
|
||||
val appId = a.selectedGameProfileId ?: return
|
||||
val context = LocalContext.current.applicationContext
|
||||
val scope = appId.toString()
|
||||
var choice by remember(scope) {
|
||||
mutableStateOf(runCatching { com.droiddeck.launcher.core.GameUpscaler.choice(com.droiddeck.launcher.session.GameEnvironmentStore.read(context), scope) }.getOrNull())
|
||||
}
|
||||
val current = choice ?: return
|
||||
val npuHere = remember { com.droiddeck.launcher.session.UpscaleComponent.npuArch() != null }
|
||||
var status by remember { mutableStateOf<com.droiddeck.launcher.core.GameUpscaler.Status?>(null) }
|
||||
LaunchedEffect(scope) {
|
||||
while (true) {
|
||||
status = kotlinx.coroutines.withContext(kotlinx.coroutines.Dispatchers.IO) { com.droiddeck.launcher.session.UpscaleComponent.status(context) }
|
||||
delay(1000)
|
||||
}
|
||||
}
|
||||
val engines = com.droiddeck.launcher.core.GameUpscaler.Engine.entries.filter { !it.npu || npuHere }.map { engine ->
|
||||
engine to stringResource(when (engine) {
|
||||
com.droiddeck.launcher.core.GameUpscaler.Engine.FSR4_LITE_GPU -> R.string.game_upscaler_engine_fsr4_lite
|
||||
com.droiddeck.launcher.core.GameUpscaler.Engine.FSR4_FULL_GPU -> R.string.game_upscaler_engine_fsr4_full
|
||||
com.droiddeck.launcher.core.GameUpscaler.Engine.XESS -> R.string.game_upscaler_engine_xess
|
||||
com.droiddeck.launcher.core.GameUpscaler.Engine.BASIC -> R.string.game_upscaler_engine_basic
|
||||
com.droiddeck.launcher.core.GameUpscaler.Engine.SGSR2 -> R.string.game_upscaler_engine_sgsr2
|
||||
com.droiddeck.launcher.core.GameUpscaler.Engine.FSR4_NPU -> R.string.game_upscaler_engine_fsr4_npu
|
||||
com.droiddeck.launcher.core.GameUpscaler.Engine.FSR4_LITE_NPU -> R.string.game_upscaler_engine_fsr4_lite_npu
|
||||
})
|
||||
}
|
||||
val sharpness = com.droiddeck.launcher.core.GameUpscaler.sharpnessSteps.map { it to stringResource(R.string.game_upscaler_sharpness_value, it) }
|
||||
fun applyChoice(next: com.droiddeck.launcher.core.GameUpscaler.Choice) {
|
||||
choice = next
|
||||
Thread({
|
||||
com.droiddeck.launcher.session.UpscaleComponent.writeControl(context, next.engine, next.sharpness, next.npuSync)
|
||||
runCatching { com.droiddeck.launcher.session.GameEnvironmentStore.setGameUpscaler(context, scope, next) }
|
||||
}, "upscale-live").start()
|
||||
}
|
||||
SettingsGroup(stringResource(R.string.game_upscaler_title)) {
|
||||
ChoiceRow(host, "upscale-engine", stringResource(R.string.game_upscaler_engine),
|
||||
status?.let { "${it.backendTag} · ${it.render} → ${it.output} · " + String.format(java.util.Locale.ROOT, "%.1f ms", if (it.npu) it.npuMs else it.gpuMs) },
|
||||
engines, current.engine, chipModifier = track("upscale-engine")) { engine -> applyChoice(current.copy(engine = engine)) }
|
||||
ChoiceRow(host, "upscale-sharpness", stringResource(R.string.game_upscaler_sharpness), null,
|
||||
sharpness, current.sharpness, chipModifier = track("upscale-sharpness")) { value -> applyChoice(current.copy(sharpness = value)) }
|
||||
}
|
||||
}
|
||||
|
||||
private fun signed(v: Int) = if (v > 0) "+$v" else "$v"
|
||||
|
||||
@Composable
|
||||
|
||||
@@ -116,8 +116,7 @@ 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_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_fullscreen),
|
||||
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"),
|
||||
@@ -131,8 +130,7 @@ internal object SettingsIndex {
|
||||
s(SettingsSection.DEVELOPER, R.string.setup_game_debug_logs, "logs", "wine", "proton"),
|
||||
SettingsEntry(SettingsPlace.SETTINGS, R.string.setup_enhanced_diagnostics, section = SettingsSection.DEVELOPER, words = listOf("logs"), developer = true),
|
||||
s(SettingsSection.DEVELOPER, R.string.setup_reset_settings, "default"),
|
||||
s(SettingsSection.DEVELOPER, R.string.dev_tools_show, "agent", "ai", "claude", "codex"),
|
||||
SettingsEntry(SettingsPlace.SETTINGS, R.string.setup_agent_commands, section = SettingsSection.DEVELOPER, words = listOf("debugging tools", "cli"), developer = true),
|
||||
s(SettingsSection.DEVELOPER, R.string.dev_tools_title, "agent", "ai", "claude", "codex"),
|
||||
SettingsEntry(SettingsPlace.SETTINGS, R.string.setup_graphics_logs, section = SettingsSection.DEVELOPER, words = listOf("logs", "gpu"), developer = true),
|
||||
|
||||
d(R.string.drawer_page_display, R.string.drawer_frame_limit, "fps", "cap", "limit", "non-steam", "desktop"),
|
||||
|
||||
@@ -456,13 +456,12 @@ 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) {
|
||||
androidx.compose.runtime.CompositionLocalProvider(androidx.compose.material3.LocalContentColor provides ink) { leading() }
|
||||
leading()
|
||||
Spacer(Modifier.width(8.dp))
|
||||
}
|
||||
Column(modifier = Modifier.weight(1f)) {
|
||||
Text(label, fontSize = 13.5.sp, color = ink, maxLines = 2, overflow = TextOverflow.Ellipsis)
|
||||
Text(label, fontSize = 13.5.sp, color = if (checked) pal.signal else colors.onBackground, 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() }
|
||||
@@ -526,7 +525,7 @@ fun SettingsGroup(title: String, compact: Boolean = false, detail: String? = nul
|
||||
}
|
||||
|
||||
@Composable
|
||||
fun SettingsRow(label: String, hint: String?, highlighted: Boolean = false, hintLines: Int? = null, stacked: Boolean = false, tightControlSpacing: Boolean = false, sideBySide: Boolean = false, control: @Composable () -> Unit) {
|
||||
fun SettingsRow(label: String, hint: String?, highlighted: Boolean = false, hintLines: Int? = null, stacked: Boolean = false, tightControlSpacing: Boolean = false, control: @Composable () -> Unit) {
|
||||
val compact = LocalCompactSettings.current
|
||||
val colors = MaterialTheme.colorScheme
|
||||
val pal = LocalPalette.current
|
||||
@@ -536,7 +535,7 @@ fun SettingsRow(label: String, hint: String?, highlighted: Boolean = false, hint
|
||||
lineHeight = if (compact) 14.sp else androidx.compose.ui.unit.TextUnit.Unspecified,
|
||||
minLines = hintLines ?: 1, maxLines = hintLines ?: Int.MAX_VALUE, overflow = TextOverflow.Ellipsis)
|
||||
}
|
||||
if (compact && !stacked && !sideBySide) Column(
|
||||
if (compact && !stacked) Column(
|
||||
modifier = Modifier.searchTarget(label).fillMaxWidth().background(bg).padding(horizontal = 10.dp, vertical = 6.dp),
|
||||
) {
|
||||
Row(verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||
@@ -545,7 +544,7 @@ fun SettingsRow(label: String, hint: String?, highlighted: Boolean = false, hint
|
||||
control()
|
||||
}
|
||||
if (hint != null || hintLines != null) hintText(11.sp)
|
||||
} else if (stacked || (LocalNarrowPane.current && !sideBySide)) Column(
|
||||
} else if (stacked || LocalNarrowPane.current) Column(
|
||||
modifier = Modifier.searchTarget(label).fillMaxWidth().background(bg).padding(
|
||||
horizontal = if (compact) 10.dp else 14.dp,
|
||||
vertical = if (tightControlSpacing) 2.dp else if (compact) 6.dp else 12.dp),
|
||||
@@ -613,8 +612,8 @@ fun UncertainMark(description: String) {
|
||||
}
|
||||
|
||||
@Composable
|
||||
fun ToggleRow(host: MenuHost, key: String, label: String, hint: String?, checked: Boolean, enabled: Boolean = true, chipModifier: Modifier = Modifier, sideBySide: Boolean = false, onChange: (Boolean) -> Unit) =
|
||||
SettingsRow(label, hint, sideBySide = sideBySide) {
|
||||
fun ToggleRow(host: MenuHost, key: String, label: String, hint: String?, checked: Boolean, enabled: Boolean = true, chipModifier: Modifier = Modifier, onChange: (Boolean) -> Unit) =
|
||||
SettingsRow(label, hint) {
|
||||
ToggleSwitch(checked, enabled, label, chipModifier.testTag("setting-$key")) { host.open = null; onChange(it) }
|
||||
}
|
||||
|
||||
@@ -774,10 +773,8 @@ fun MultiRow(
|
||||
}
|
||||
|
||||
@Composable
|
||||
fun ActionRow(label: String, hint: String?, button: String, onClick: () -> Unit, progress: Float? = null, modifier: Modifier = Modifier, sideBySide: Boolean = false) {
|
||||
SettingsRow(label, hint, sideBySide = sideBySide) {
|
||||
SecondaryButton(button, compact = sideBySide, modifier = modifier, progress = progress, onClick = onClick)
|
||||
}
|
||||
fun ActionRow(label: String, hint: String?, button: String, onClick: () -> Unit, progress: Float? = null, modifier: Modifier = Modifier) {
|
||||
SettingsRow(label, hint) { SecondaryButton(button, modifier = modifier, progress = progress, onClick = onClick) }
|
||||
}
|
||||
|
||||
@Composable
|
||||
|
||||
@@ -88,9 +88,7 @@ internal fun TabMenu(
|
||||
.controllerConfirm(onClick = toggle)
|
||||
.padding(start = 14.dp, end = 10.dp),
|
||||
) {
|
||||
if (selected in labels.indices) androidx.compose.runtime.CompositionLocalProvider(androidx.compose.material3.LocalContentColor provides colors.onBackground) {
|
||||
leading?.invoke(selected, false)
|
||||
}
|
||||
if (selected in labels.indices) 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,
|
||||
|
||||
@@ -67,14 +67,13 @@ 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, layerFpsLimit)
|
||||
pace(refreshHz, fpsLimit)
|
||||
if (!SessionState.running) WaylandCompositor.nativeSetOutputSize(outputWidth, outputHeight)
|
||||
if (started) {
|
||||
attached = surface
|
||||
@@ -96,23 +95,23 @@ object CompositorHost {
|
||||
private var blackFrameInsertion = false
|
||||
private var pictureHolds = 0
|
||||
|
||||
private fun pace(refreshHz: Float, fpsLimit: Int, layerFpsLimit: Int) {
|
||||
private fun pace(refreshHz: Float, fpsLimit: Int) {
|
||||
WaylandCompositor.nativeSetFpsLimit(fpsLimit)
|
||||
WaylandCompositor.nativeSetLayerFrameRate(SessionPrefs.layerFrameRate(layerFpsLimit, refreshHz, blackFrameInsertion))
|
||||
WaylandCompositor.nativeSetLayerFrameRate(if (fpsLimit > 0 && !blackFrameInsertion) fpsLimit.toFloat() else refreshHz)
|
||||
WaylandCompositor.nativeSetOutputRefreshRate(refreshHz)
|
||||
SessionState.refreshHz = refreshHz
|
||||
}
|
||||
|
||||
@Synchronized
|
||||
fun updatePacing(refreshHz: Float, fpsLimit: Int, layerFpsLimit: Int = fpsLimit) {
|
||||
if (started) pace(refreshHz, fpsLimit, layerFpsLimit)
|
||||
fun updatePacing(refreshHz: Float, fpsLimit: Int) {
|
||||
if (started) pace(refreshHz, fpsLimit)
|
||||
}
|
||||
|
||||
@Synchronized
|
||||
fun setBlackFrameInsertion(on: Boolean, refreshHz: Float, fpsLimit: Int, layerFpsLimit: Int = fpsLimit) {
|
||||
fun setBlackFrameInsertion(on: Boolean, refreshHz: Float, fpsLimit: Int) {
|
||||
blackFrameInsertion = on
|
||||
WaylandCompositor.nativeSetBlackFrameInsertion(on)
|
||||
if (started) pace(refreshHz, fpsLimit, layerFpsLimit)
|
||||
if (started) pace(refreshHz, fpsLimit)
|
||||
}
|
||||
|
||||
/** Presents only pictures until the matching release; false when nothing is strobing. */
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_enabled="false" android:color="#AAB6C8" />
|
||||
<item android:color="#F4F7FC" />
|
||||
</selector>
|
||||
@@ -1,15 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_enabled="false">
|
||||
<shape><corners android:radius="7dp" /><solid android:color="#303845" /></shape>
|
||||
</item>
|
||||
<item android:state_pressed="true">
|
||||
<shape><corners android:radius="7dp" /><solid android:color="#556783" /></shape>
|
||||
</item>
|
||||
<item android:state_focused="true">
|
||||
<shape><corners android:radius="7dp" /><solid android:color="#414E62" /><stroke android:width="2dp" android:color="#A7CCFF" /></shape>
|
||||
</item>
|
||||
<item>
|
||||
<shape><corners android:radius="7dp" /><solid android:color="#414E62" /></shape>
|
||||
</item>
|
||||
</selector>
|
||||
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||
<corners android:radius="10dp" />
|
||||
<solid android:color="#202630" />
|
||||
</shape>
|
||||
@@ -1,38 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent" android:layout_height="wrap_content"
|
||||
android:orientation="horizontal" android:gravity="center_vertical" android:layoutDirection="ltr"
|
||||
android:background="@drawable/wireless_pairing_panel" android:paddingHorizontal="3dp" android:paddingVertical="1dp">
|
||||
<LinearLayout android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="vertical">
|
||||
<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal">
|
||||
<Button style="@style/DroidDeckPairKey" android:id="@+id/pair_key_1" android:text="1" />
|
||||
<Button style="@style/DroidDeckPairKey" android:id="@+id/pair_key_2" android:text="2" />
|
||||
<Button style="@style/DroidDeckPairKey" android:id="@+id/pair_key_3" android:text="3" />
|
||||
</LinearLayout>
|
||||
<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal">
|
||||
<Button style="@style/DroidDeckPairKey" android:id="@+id/pair_key_7" android:text="7" />
|
||||
<Button style="@style/DroidDeckPairKey" android:id="@+id/pair_key_8" android:text="8" />
|
||||
<Button style="@style/DroidDeckPairKey" android:id="@+id/pair_key_9" android:text="9" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<TextView android:id="@+id/pair_key_code"
|
||||
android:layout_width="76dp" android:layout_height="38dp"
|
||||
android:gravity="center" android:maxLines="1" android:scrollHorizontally="false"
|
||||
android:fontFamily="monospace" android:textStyle="bold"
|
||||
android:includeFontPadding="false" android:textColor="#F4F7FC"
|
||||
android:autoSizeTextType="uniform" android:autoSizeMinTextSize="10sp"
|
||||
android:autoSizeMaxTextSize="17sp" android:autoSizeStepGranularity="1sp" />
|
||||
<LinearLayout android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="vertical">
|
||||
<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal">
|
||||
<Button style="@style/DroidDeckPairKey" android:id="@+id/pair_key_4" android:text="4" />
|
||||
<Button style="@style/DroidDeckPairKey" android:id="@+id/pair_key_5" android:text="5" />
|
||||
<Button style="@style/DroidDeckPairKey" android:id="@+id/pair_key_6" android:text="6" />
|
||||
</LinearLayout>
|
||||
<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal">
|
||||
<Button style="@style/DroidDeckPairKey" android:id="@+id/pair_key_0" android:text="0" />
|
||||
<Button style="@style/DroidDeckPairKey" android:id="@+id/pair_key_delete" android:text="⌫" android:contentDescription="@string/adbpair_keypad_delete" />
|
||||
<Button style="@style/DroidDeckPairKey" android:id="@+id/pair_key_submit" android:text="✓" android:contentDescription="@string/agent_action_pair" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
@@ -891,6 +891,7 @@
|
||||
<string name="setup_game_debug_logs_hint">تضمين بيانات تشخيص Proton وWine والرسومات عند تشغيل اللعبة التالية. قد يقلّل الأداء ويستهلك مساحة تخزين أكبر.</string>
|
||||
<string name="setup_game_debug_logs_restart">أعِد تشغيل هذه الجلسة لحفظ سجلات تصحيح الألعاب</string>
|
||||
<string name="setup_logging_update_failed">تعذّر تحديث التسجيل. تحقّق من المفتاح وحاول مرة أخرى.</string>
|
||||
<string name="setup_agent_commands">أدوات تصحيح الأخطاء</string>
|
||||
<string name="setup_graphics_logs">سجلات رسوميات مفصلة</string>
|
||||
<string name="setup_steam_gpu_drawing">واجهة Steam: الرسم عبر GPU</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">مع زوج مشغّلات Xclipse، ترسم Steam صفحاتها برمجيًا (أظهر الرسم عبر GPU مربعات مشوهة). شغّله للحصول على واجهة Steam أسرع إذا بدت الصورة سليمة على هذا الهاتف.</string>
|
||||
@@ -1336,31 +1337,6 @@
|
||||
<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>
|
||||
@@ -2418,6 +2394,7 @@
|
||||
<string name="adbpair_waiting_text">فعِّل تصحيح الأخطاء اللاسلكي، ثم اضغط على «إقران الجهاز برمز الإقران».</string>
|
||||
<string name="adbpair_waiting_long">فعِّل تصحيح الأخطاء اللاسلكي، ثم اضغط على «إقران الجهاز برمز الإقران». ابقَ في الإعدادات: يُكتب الرمز في هذا الإشعار.</string>
|
||||
<string name="adbpair_code_label">رمز الإقران المكوَّن من 6 أرقام</string>
|
||||
<string name="adbpair_code_hint">اضغط على «إدخال الرمز» وأدخِل الأرقام الستة الظاهرة في الإعدادات.</string>
|
||||
<string name="adbpair_title_code">أدخِل رمز إقران Wi-Fi</string>
|
||||
<string name="adbpair_title_retry">أعِد تجربة الرمز</string>
|
||||
<string name="adbpair_enter_code">إدخال الرمز</string>
|
||||
@@ -2444,8 +2421,7 @@
|
||||
<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">تعذّر العثور على إصدار %2$s لـ %1$s</string>
|
||||
<string name="pextra_anticheat">مكافحة الغش</string>
|
||||
<string name="pextra_no_release">تعذّر العثور على إصدار ARM64 لـ %1$s</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>
|
||||
|
||||
@@ -909,6 +909,7 @@
|
||||
<string name="setup_game_debug_logs_hint">Incluye diagnósticos de Proton, Wine y gráficos en el próximo inicio de un juego. Puede reducir el rendimiento y usar más almacenamiento.</string>
|
||||
<string name="setup_game_debug_logs_restart">Reinicia esta sesión para guardar los registros de depuración de juegos</string>
|
||||
<string name="setup_logging_update_failed">No se pudo actualizar el registro. Revisa el interruptor e inténtalo de nuevo.</string>
|
||||
<string name="setup_agent_commands">Herramientas de depuración</string>
|
||||
<string name="setup_graphics_logs">Registros detallados de gráficos</string>
|
||||
<string name="setup_steam_gpu_drawing">Interfaz de Steam: dibujo con GPU</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">Con el par de controladores Xclipse, Steam dibuja sus páginas por software (el dibujo con GPU mostraba mosaicos con errores). Actívalo para una interfaz de Steam más rápida si se ve bien en este teléfono.</string>
|
||||
@@ -1342,31 +1343,6 @@
|
||||
<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>
|
||||
@@ -2410,6 +2386,7 @@
|
||||
<string name="adbpair_waiting_text">Activa la Depuración inalámbrica y toca “Vincular dispositivo con código de vinculación”.</string>
|
||||
<string name="adbpair_waiting_long">Activa la Depuración inalámbrica y toca “Vincular dispositivo con código de vinculación”. Quédate en Ajustes: el código se ingresa en esta notificación.</string>
|
||||
<string name="adbpair_code_label">Código de vinculación de 6 dígitos</string>
|
||||
<string name="adbpair_code_hint">Toca Ingresar código y escribe los 6 dígitos que muestra Ajustes.</string>
|
||||
<string name="adbpair_title_code">Ingresa el código de vinculación Wi-Fi</string>
|
||||
<string name="adbpair_title_retry">Vuelve a probar el código</string>
|
||||
<string name="adbpair_enter_code">Ingresar código</string>
|
||||
@@ -2436,8 +2413,7 @@
|
||||
<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 %2$s de %1$s</string>
|
||||
<string name="pextra_anticheat">Antitrampas</string>
|
||||
<string name="pextra_no_release">No se encontró una versión ARM64 de %1$s</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>
|
||||
|
||||
@@ -879,6 +879,7 @@
|
||||
<string name="setup_game_debug_logs_hint">Включва диагностика на Proton, Wine и графиката при следващото стартиране на игра. Може да намали производителността и да заеме повече място.</string>
|
||||
<string name="setup_game_debug_logs_restart">Рестартирайте тази сесия, за да запазите дневниците за дебъгване на игри</string>
|
||||
<string name="setup_logging_update_failed">Записването в дневник не можа да бъде променено. Проверете превключвателя и опитайте пак.</string>
|
||||
<string name="setup_agent_commands">Инструменти за отстраняване на грешки</string>
|
||||
<string name="setup_graphics_logs">Подробни дневници за графиката</string>
|
||||
<string name="setup_steam_gpu_drawing">Интерфейс на Steam: изрисуване чрез GPU</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">При двойката драйвери Xclipse Steam изрисува страниците си софтуерно (изрисуването чрез GPU даваше разбити плочки). Включи за по-бърз интерфейс на Steam, ако изглежда правилно на този телефон.</string>
|
||||
@@ -1308,31 +1309,6 @@
|
||||
<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>
|
||||
@@ -2314,6 +2290,7 @@
|
||||
<string name="adbpair_waiting_text">Включи безжичното отстраняване на грешки, после докосни „Чифтосване на устройство с код за чифтосване“.</string>
|
||||
<string name="adbpair_waiting_long">Включи безжичното отстраняване на грешки, после докосни „Чифтосване на устройство с код за чифтосване“. Остани в Настройки: кодът ще се появи в това известие.</string>
|
||||
<string name="adbpair_code_label">6-цифрен код за чифтосване</string>
|
||||
<string name="adbpair_code_hint">Докосни „Въвеждане на код“ и напиши 6-те цифри, показани в Настройки.</string>
|
||||
<string name="adbpair_title_code">Въведи кода за чифтосване по Wi-Fi</string>
|
||||
<string name="adbpair_title_retry">Опитай кода отново</string>
|
||||
<string name="adbpair_enter_code">Въвеждане на код</string>
|
||||
@@ -2340,8 +2317,7 @@
|
||||
<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">Не беше намерена %2$s версия на %1$s</string>
|
||||
<string name="pextra_anticheat">Анти-чийт</string>
|
||||
<string name="pextra_no_release">Не беше намерена ARM64 версия на %1$s</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>
|
||||
|
||||
@@ -885,6 +885,7 @@
|
||||
<string name="setup_game_debug_logs_hint">Při dalším spuštění hry zahrnout diagnostiku Protonu, Wine a grafiky. Může snížit výkon a zabrat více úložiště.</string>
|
||||
<string name="setup_game_debug_logs_restart">Pro ukládání ladicích protokolů her restartujte tuto relaci</string>
|
||||
<string name="setup_logging_update_failed">Protokolování se nepodařilo změnit. Zkontrolujte přepínač a zkuste to znovu.</string>
|
||||
<string name="setup_agent_commands">Nástroje pro ladění</string>
|
||||
<string name="setup_graphics_logs">Podrobné protokoly grafiky</string>
|
||||
<string name="setup_steam_gpu_drawing">Rozhraní Steam: vykreslování na GPU</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">S párem ovladačů Xclipse vykresluje Steam své stránky softwarově (vykreslování na GPU zobrazovalo poškozené dlaždice). Pokud na tomto telefonu vypadá správně, zapněte tuto možnost pro rychlejší rozhraní Steam.</string>
|
||||
@@ -1322,31 +1323,6 @@
|
||||
<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>
|
||||
@@ -2366,6 +2342,7 @@
|
||||
<string name="adbpair_waiting_text">Zapněte bezdrátové ladění a pak klepněte na „Párování zařízení pomocí párovacího kódu“.</string>
|
||||
<string name="adbpair_waiting_long">Zapněte bezdrátové ladění a pak klepněte na „Párování zařízení pomocí párovacího kódu“. Zůstaňte v Nastavení: kód se zobrazí v tomto oznámení.</string>
|
||||
<string name="adbpair_code_label">6místný párovací kód</string>
|
||||
<string name="adbpair_code_hint">Klepněte na Zadat kód a napište 6 číslic zobrazených v Nastavení.</string>
|
||||
<string name="adbpair_title_code">Zadejte párovací kód Wi-Fi</string>
|
||||
<string name="adbpair_title_retry">Zkusit kód znovu</string>
|
||||
<string name="adbpair_enter_code">Zadat kód</string>
|
||||
@@ -2392,8 +2369,7 @@
|
||||
<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í %2$s pro %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</string>
|
||||
<string name="pextra_no_release">Nepodařilo se najít vydání ARM64 pro %1$s</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>
|
||||
|
||||
@@ -879,6 +879,7 @@
|
||||
<string name="setup_game_debug_logs_hint">Medtag Proton-, Wine- og grafikdiagnostik ved næste spilstart. Kan reducere ydelsen og bruge mere lagerplads.</string>
|
||||
<string name="setup_game_debug_logs_restart">Genstart denne session for at gemme fejlfindingslogs for spil</string>
|
||||
<string name="setup_logging_update_failed">Kunne ikke opdatere logning. Tjek kontakten, og prøv igen.</string>
|
||||
<string name="setup_agent_commands">Fejlfindingsværktøjer</string>
|
||||
<string name="setup_graphics_logs">Detaljerede grafiklogfiler</string>
|
||||
<string name="setup_steam_gpu_drawing">Steam-brugerflade: GPU-tegning</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">Med Xclipse-driverparret tegner Steam sine sider i software (GPU-tegning gav ødelagte fliser). Slå til for en hurtigere Steam-brugerflade, hvis det ser rigtigt ud på denne telefon.</string>
|
||||
@@ -1308,31 +1309,6 @@
|
||||
<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>
|
||||
@@ -2314,6 +2290,7 @@
|
||||
<string name="adbpair_waiting_text">Tænd Trådløs fejlretning, og tryk derefter på „Par enhed med parringskode“.</string>
|
||||
<string name="adbpair_waiting_long">Tænd Trådløs fejlretning, og tryk derefter på „Par enhed med parringskode“. Bliv i Indstillinger: koden vises i denne notifikation.</string>
|
||||
<string name="adbpair_code_label">6-cifret parringskode</string>
|
||||
<string name="adbpair_code_hint">Tryk på Indtast kode, og skriv de 6 cifre, der vises i Indstillinger.</string>
|
||||
<string name="adbpair_title_code">Indtast Wi-Fi-parringskoden</string>
|
||||
<string name="adbpair_title_retry">Forsøg koden igen</string>
|
||||
<string name="adbpair_enter_code">Indtast kode</string>
|
||||
@@ -2340,8 +2317,7 @@
|
||||
<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 %2$s-udgivelse af %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</string>
|
||||
<string name="pextra_no_release">Kunne ikke finde en ARM64-udgivelse af %1$s</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>
|
||||
|
||||
@@ -879,6 +879,7 @@
|
||||
<string name="setup_game_debug_logs_hint">Beim nächsten Spielstart Diagnosen von Proton, Wine und Grafik einschließen. Kann die Leistung mindern und mehr Speicher belegen.</string>
|
||||
<string name="setup_game_debug_logs_restart">Starte diese Sitzung neu, um Spiel-Debug-Logs zu speichern</string>
|
||||
<string name="setup_logging_update_failed">Protokollierung konnte nicht aktualisiert werden. Prüfe den Schalter und versuch es erneut.</string>
|
||||
<string name="setup_agent_commands">Debugging-Tools</string>
|
||||
<string name="setup_graphics_logs">Detaillierte Grafik-Protokolle</string>
|
||||
<string name="setup_steam_gpu_drawing">Steam-Oberfläche: Zeichnen mit der GPU</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">Mit dem Xclipse-Treiberpaar zeichnet Steam seine Seiten per Software (Zeichnen mit der GPU zeigte fehlerhafte Kacheln). Für eine schnellere Steam-Oberfläche einschalten, wenn die Darstellung auf diesem Telefon stimmt.</string>
|
||||
@@ -1300,31 +1301,6 @@
|
||||
<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>
|
||||
@@ -2306,6 +2282,7 @@
|
||||
<string name="adbpair_waiting_text">Aktiviere Debugging über WLAN und tippe dann auf „Gerät mit Kopplungscode koppeln“.</string>
|
||||
<string name="adbpair_waiting_long">Aktiviere Debugging über WLAN und tippe dann auf „Gerät mit Kopplungscode koppeln“. Bleib in den Einstellungen: Der Code wird in dieser Benachrichtigung eingegeben.</string>
|
||||
<string name="adbpair_code_label">6-stelliger Kopplungscode</string>
|
||||
<string name="adbpair_code_hint">Tippe auf „Code eingeben“ und gib die 6 Ziffern aus den Einstellungen ein.</string>
|
||||
<string name="adbpair_title_code">WLAN-Kopplungscode eingeben</string>
|
||||
<string name="adbpair_title_retry">Code noch einmal eingeben</string>
|
||||
<string name="adbpair_enter_code">Code eingeben</string>
|
||||
@@ -2332,8 +2309,7 @@
|
||||
<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 %2$s-Release für %1$s gefunden</string>
|
||||
<string name="pextra_anticheat">Anti-Cheat</string>
|
||||
<string name="pextra_no_release">Kein ARM64-Release für %1$s gefunden</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>
|
||||
|
||||
@@ -879,6 +879,7 @@
|
||||
<string name="setup_game_debug_logs_hint">Συμπερίληψη διαγνωστικών Proton, Wine και γραφικών στην επόμενη εκκίνηση παιχνιδιού. Μπορεί να μειώσει την απόδοση και να χρησιμοποιήσει περισσότερο χώρο.</string>
|
||||
<string name="setup_game_debug_logs_restart">Επανεκκινήστε αυτή τη συνεδρία για να αποθηκεύσετε αρχεία καταγραφής εντοπισμού σφαλμάτων παιχνιδιών</string>
|
||||
<string name="setup_logging_update_failed">Δεν ήταν δυνατή η ενημέρωση της καταγραφής. Ελέγξτε τον διακόπτη και δοκιμάστε ξανά.</string>
|
||||
<string name="setup_agent_commands">Εργαλεία εντοπισμού σφαλμάτων</string>
|
||||
<string name="setup_graphics_logs">Λεπτομερή αρχεία καταγραφής γραφικών</string>
|
||||
<string name="setup_steam_gpu_drawing">Διεπαφή Steam: σχεδίαση με GPU</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">Με το ζεύγος προγραμμάτων οδήγησης Xclipse, το Steam σχεδιάζει τις σελίδες του μέσω λογισμικού (η σχεδίαση με GPU εμφάνιζε σπασμένα πλακίδια). Ενεργοποιήστε το για ταχύτερη διεπαφή Steam, αν φαίνεται σωστή σε αυτό το τηλέφωνο.</string>
|
||||
@@ -1308,31 +1309,6 @@
|
||||
<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>
|
||||
@@ -2314,6 +2290,7 @@
|
||||
<string name="adbpair_waiting_text">Ενεργοποιήστε τον ασύρματο εντοπισμό σφαλμάτων και πατήστε «Σύζευξη συσκευής με κωδικό σύζευξης».</string>
|
||||
<string name="adbpair_waiting_long">Ενεργοποιήστε τον ασύρματο εντοπισμό σφαλμάτων και πατήστε «Σύζευξη συσκευής με κωδικό σύζευξης». Παραμείνετε στις Ρυθμίσεις: ο κωδικός εμφανίζεται σε αυτή την ειδοποίηση.</string>
|
||||
<string name="adbpair_code_label">Εξαψήφιος κωδικός σύζευξης</string>
|
||||
<string name="adbpair_code_hint">Πατήστε Εισαγωγή κωδικού και πληκτρολογήστε τα 6 ψηφία που εμφανίζονται στις Ρυθμίσεις.</string>
|
||||
<string name="adbpair_title_code">Εισαγάγετε τον κωδικό σύζευξης Wi-Fi</string>
|
||||
<string name="adbpair_title_retry">Δοκιμάστε ξανά τον κωδικό</string>
|
||||
<string name="adbpair_enter_code">Εισαγωγή κωδικού</string>
|
||||
@@ -2340,8 +2317,7 @@
|
||||
<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">Δεν βρέθηκε κυκλοφορία %2$s για το %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</string>
|
||||
<string name="pextra_no_release">Δεν βρέθηκε κυκλοφορία ARM64 για το %1$s</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>
|
||||
|
||||
@@ -882,6 +882,7 @@
|
||||
<string name="setup_game_debug_logs_hint">Incluye diagnósticos de Proton, Wine y gráficos en el próximo inicio de un juego. Puede reducir el rendimiento y usar más almacenamiento.</string>
|
||||
<string name="setup_game_debug_logs_restart">Reinicia esta sesión para guardar los registros de depuración de juegos</string>
|
||||
<string name="setup_logging_update_failed">No se ha podido actualizar el registro. Comprueba el interruptor y vuelve a intentarlo.</string>
|
||||
<string name="setup_agent_commands">Herramientas de depuración</string>
|
||||
<string name="setup_graphics_logs">Registros detallados de gráficos</string>
|
||||
<string name="setup_steam_gpu_drawing">Interfaz de Steam: dibujo con GPU</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">Con el par de controladores Xclipse, Steam dibuja sus páginas por software (el dibujo con GPU mostraba teselas corruptas). Activa esta opción para una interfaz de Steam más rápida si se ve bien en este teléfono.</string>
|
||||
@@ -1315,31 +1316,6 @@
|
||||
<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>
|
||||
@@ -2340,6 +2316,7 @@
|
||||
<string name="adbpair_waiting_text">Activa la Depuración inalámbrica y toca “Vincular dispositivo con código de vinculación”.</string>
|
||||
<string name="adbpair_waiting_long">Activa la Depuración inalámbrica y toca “Vincular dispositivo con código de vinculación”. Quédate en Ajustes: el código se introduce en esta notificación.</string>
|
||||
<string name="adbpair_code_label">Código de vinculación de 6 dígitos</string>
|
||||
<string name="adbpair_code_hint">Toca Introducir código y escribe los 6 dígitos que muestra Ajustes.</string>
|
||||
<string name="adbpair_title_code">Introduce el código de vinculación Wi-Fi</string>
|
||||
<string name="adbpair_title_retry">Vuelve a probar el código</string>
|
||||
<string name="adbpair_enter_code">Introducir código</string>
|
||||
@@ -2366,8 +2343,7 @@
|
||||
<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 %2$s de %1$s</string>
|
||||
<string name="pextra_anticheat">Antitrampas</string>
|
||||
<string name="pextra_no_release">No se encontró una versión ARM64 de %1$s</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>
|
||||
|
||||
@@ -879,6 +879,7 @@
|
||||
<string name="setup_game_debug_logs_hint">Sisällytä Protonin, Winen ja grafiikan diagnostiikka seuraavaan pelin käynnistykseen. Voi heikentää suorituskykyä ja käyttää enemmän tallennustilaa.</string>
|
||||
<string name="setup_game_debug_logs_restart">Käynnistä tämä istunto uudelleen tallentaaksesi pelien vianmäärityslokit</string>
|
||||
<string name="setup_logging_update_failed">Lokitusta ei voitu päivittää. Tarkista kytkin ja yritä uudelleen.</string>
|
||||
<string name="setup_agent_commands">Vianmääritystyökalut</string>
|
||||
<string name="setup_graphics_logs">Yksityiskohtaiset grafiikkalokit</string>
|
||||
<string name="setup_steam_gpu_drawing">Steam-käyttöliittymä: GPU-piirto</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">Xclipse-ajuriparin kanssa Steam piirtää sivunsa ohjelmistollisesti (GPU-piirto näytti rikkinäisiä laattoja). Ota käyttöön nopeampaa Steam-käyttöliittymää varten, jos käyttöliittymä näyttää tässä puhelimessa virheettömältä.</string>
|
||||
@@ -1308,31 +1309,6 @@
|
||||
<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>
|
||||
@@ -2314,6 +2290,7 @@
|
||||
<string name="adbpair_waiting_text">Ota langaton virheenkorjaus käyttöön ja napauta ”Yhdistä laite paritunnuksella”.</string>
|
||||
<string name="adbpair_waiting_long">Ota langaton virheenkorjaus käyttöön ja napauta ”Yhdistä laite paritunnuksella”. Pysy Asetuksissa: koodi syötetään tähän ilmoitukseen.</string>
|
||||
<string name="adbpair_code_label">6-numeroinen paritunnus</string>
|
||||
<string name="adbpair_code_hint">Napauta Syötä koodi ja kirjoita Asetuksissa näkyvät 6 numeroa.</string>
|
||||
<string name="adbpair_title_code">Anna Wi-Fi-paritunnus</string>
|
||||
<string name="adbpair_title_retry">Yritä koodia uudelleen</string>
|
||||
<string name="adbpair_enter_code">Syötä koodi</string>
|
||||
@@ -2340,8 +2317,7 @@
|
||||
<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">%2$s-julkaisua kohteelle %1$s ei löytynyt</string>
|
||||
<string name="pextra_anticheat">Huijauksenesto</string>
|
||||
<string name="pextra_no_release">ARM64-julkaisua kohteelle %1$s ei löytynyt</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>
|
||||
|
||||
@@ -882,6 +882,7 @@
|
||||
<string name="setup_game_debug_logs_hint">Inclure les diagnostics Proton, Wine et graphiques au prochain lancement d\'un jeu. Peut réduire les performances et utiliser plus de stockage.</string>
|
||||
<string name="setup_game_debug_logs_restart">Redémarrez cette session pour enregistrer les journaux de débogage des jeux</string>
|
||||
<string name="setup_logging_update_failed">Impossible de modifier la journalisation. Vérifiez l\'interrupteur et réessayez.</string>
|
||||
<string name="setup_agent_commands">Outils de débogage</string>
|
||||
<string name="setup_graphics_logs">Journaux graphiques détaillés</string>
|
||||
<string name="setup_steam_gpu_drawing">Interface Steam : rendu GPU</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">Avec la paire de pilotes Xclipse, Steam dessine ses pages en logiciel : le rendu GPU produisait des tuiles corrompues. Activez cette option pour accélérer l\'interface Steam si l\'affichage est correct sur ce téléphone.</string>
|
||||
@@ -1314,31 +1315,6 @@
|
||||
<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>
|
||||
@@ -2339,6 +2315,7 @@
|
||||
<string name="adbpair_waiting_text">Activez le débogage sans fil, puis appuyez sur « Associer l\'appareil avec un code d\'appairage ».</string>
|
||||
<string name="adbpair_waiting_long">Activez le débogage sans fil, puis appuyez sur « Associer l\'appareil avec un code d\'appairage ». Restez dans les paramètres : le code se saisit dans cette notification.</string>
|
||||
<string name="adbpair_code_label">Code d\'appairage à 6 chiffres</string>
|
||||
<string name="adbpair_code_hint">Appuyez sur « Saisir le code » et tapez les 6 chiffres affichés dans les paramètres.</string>
|
||||
<string name="adbpair_title_code">Saisissez le code d\'appairage Wi-Fi</string>
|
||||
<string name="adbpair_title_retry">Saisissez à nouveau le code</string>
|
||||
<string name="adbpair_enter_code">Saisir le code</string>
|
||||
@@ -2365,8 +2342,7 @@
|
||||
<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 %2$s trouvée pour %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-triche</string>
|
||||
<string name="pextra_no_release">Aucune version ARM64 trouvée pour %1$s</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>
|
||||
|
||||
@@ -879,6 +879,7 @@
|
||||
<string name="setup_game_debug_logs_hint">अगली बार गेम लॉन्च होने पर Proton, Wine और ग्राफ़िक्स डायग्नोस्टिक्स शामिल करें। परफ़ॉर्मेंस घटा सकता है और ज़्यादा स्टोरेज ले सकता है।</string>
|
||||
<string name="setup_game_debug_logs_restart">गेम डीबग लॉग सेव करने के लिए यह सेशन रीस्टार्ट करें</string>
|
||||
<string name="setup_logging_update_failed">लॉगिंग अपडेट नहीं हो सकी। स्विच जांचें और फिर कोशिश करें।</string>
|
||||
<string name="setup_agent_commands">डिबगिंग टूल</string>
|
||||
<string name="setup_graphics_logs">विस्तृत ग्राफ़िक्स लॉग</string>
|
||||
<string name="setup_steam_gpu_drawing">Steam इंटरफ़ेस: GPU ड्रॉइंग</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">Xclipse ड्राइवर जोड़ी के साथ, Steam अपने पेज सॉफ़्टवेयर से ड्रॉ करता है (GPU ड्रॉइंग में टाइलें टूटी हुई दिखीं)। अगर इस फ़ोन पर ठीक दिखे, तो तेज़ Steam इंटरफ़ेस के लिए इसे चालू करें।</string>
|
||||
@@ -1308,31 +1309,6 @@
|
||||
<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>
|
||||
@@ -2314,6 +2290,7 @@
|
||||
<string name="adbpair_waiting_text">वायरलेस डीबगिंग चालू करें, फिर “Pair device with pairing code” पर टैप करें।</string>
|
||||
<string name="adbpair_waiting_long">वायरलेस डीबगिंग चालू करें, फिर “Pair device with pairing code” पर टैप करें। Settings में बने रहें: कोड इस नोटिफ़िकेशन में आता है।</string>
|
||||
<string name="adbpair_code_label">6 अंकों का पेयरिंग कोड</string>
|
||||
<string name="adbpair_code_hint">Enter code पर टैप करें और Settings में दिखाए गए 6 अंक टाइप करें।</string>
|
||||
<string name="adbpair_title_code">Wi-Fi पेयरिंग कोड डालें</string>
|
||||
<string name="adbpair_title_retry">कोड फिर से आज़माएं</string>
|
||||
<string name="adbpair_enter_code">कोड डालें</string>
|
||||
@@ -2340,8 +2317,7 @@
|
||||
<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 के लिए कोई %2$s रिलीज़ नहीं मिली</string>
|
||||
<string name="pextra_anticheat">एंटी-चीट</string>
|
||||
<string name="pextra_no_release">%1$s के लिए कोई ARM64 रिलीज़ नहीं मिली</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>
|
||||
|
||||
@@ -879,6 +879,7 @@
|
||||
<string name="setup_game_debug_logs_hint">Proton-, Wine- és grafikai diagnosztika a következő játékindításkor. Csökkentheti a teljesítményt, és több tárhelyet használ.</string>
|
||||
<string name="setup_game_debug_logs_restart">Indítsa újra ezt a munkamenetet a játék-hibakeresési naplók mentéséhez</string>
|
||||
<string name="setup_logging_update_failed">Nem sikerült frissíteni a naplózást. Ellenőrizze a kapcsolót, és próbálja újra.</string>
|
||||
<string name="setup_agent_commands">Hibakeresési eszközök</string>
|
||||
<string name="setup_graphics_logs">Részletes grafikai naplók</string>
|
||||
<string name="setup_steam_gpu_drawing">Steam felület: GPU-rajzolás</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">Az Xclipse illesztőprogram-párral a Steam szoftveresen rajzolja az oldalait (a GPU-rajzolás hibás csempéket eredményezett). Kapcsolja be a gyorsabb Steam-felületért, ha ezen a telefonon jól néz ki.</string>
|
||||
@@ -1308,31 +1309,6 @@
|
||||
<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>
|
||||
@@ -2314,6 +2290,7 @@
|
||||
<string name="adbpair_waiting_text">Kapcsolja be a vezeték nélküli hibakeresést, majd koppintson az „Eszköz párosítása párosítási kóddal” lehetőségre.</string>
|
||||
<string name="adbpair_waiting_long">Kapcsolja be a vezeték nélküli hibakeresést, majd koppintson az „Eszköz párosítása párosítási kóddal” lehetőségre. Maradjon a Beállításokban: a kód ebbe az értesítésbe kerül.</string>
|
||||
<string name="adbpair_code_label">6 számjegyű párosítási kód</string>
|
||||
<string name="adbpair_code_hint">Koppintson a Kód megadására, és írja be a Beállításokban megjelenő 6 számjegyet.</string>
|
||||
<string name="adbpair_title_code">Adja meg a Wi-Fi párosítási kódot</string>
|
||||
<string name="adbpair_title_retry">Próbálja meg újra a kódot</string>
|
||||
<string name="adbpair_enter_code">Kód megadása</string>
|
||||
@@ -2340,8 +2317,7 @@
|
||||
<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ó %2$s-es kiadás a %1$s-hez</string>
|
||||
<string name="pextra_anticheat">Csalás elleni védelem</string>
|
||||
<string name="pextra_no_release">Nem található ARM64-es kiadás a %1$s-hez</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>
|
||||
|
||||
@@ -876,6 +876,7 @@
|
||||
<string name="setup_game_debug_logs_hint">Sertakan diagnostik Proton, Wine, dan grafis pada peluncuran gim berikutnya. Dapat mengurangi performa dan memakai lebih banyak penyimpanan.</string>
|
||||
<string name="setup_game_debug_logs_restart">Mulai ulang sesi ini untuk menyimpan log debug gim</string>
|
||||
<string name="setup_logging_update_failed">Tidak dapat memperbarui pencatatan log. Periksa tombolnya lalu coba lagi.</string>
|
||||
<string name="setup_agent_commands">Alat debug</string>
|
||||
<string name="setup_graphics_logs">Log grafis rinci</string>
|
||||
<string name="setup_steam_gpu_drawing">Antarmuka Steam: rendering GPU</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">Dengan pasangan driver Xclipse, Steam menggambar halamannya secara perangkat lunak (rendering GPU menampilkan ubin yang rusak). Aktifkan untuk antarmuka Steam yang lebih cepat jika tampilannya terlihat benar di ponsel ini.</string>
|
||||
@@ -1302,31 +1303,6 @@
|
||||
<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>
|
||||
@@ -2289,6 +2265,7 @@
|
||||
<string name="adbpair_waiting_text">Aktifkan Debugging nirkabel, lalu ketuk “Pasangkan perangkat dengan kode pemasangan”.</string>
|
||||
<string name="adbpair_waiting_long">Aktifkan Debugging nirkabel, lalu ketuk “Pasangkan perangkat dengan kode pemasangan”. Tetap di Setelan: kodenya akan muncul di notifikasi ini.</string>
|
||||
<string name="adbpair_code_label">Kode pemasangan 6 digit</string>
|
||||
<string name="adbpair_code_hint">Ketuk Masukkan kode dan ketikkan 6 digit yang ditampilkan di Setelan.</string>
|
||||
<string name="adbpair_title_code">Masukkan kode pemasangan Wi-Fi</string>
|
||||
<string name="adbpair_title_retry">Coba kode lagi</string>
|
||||
<string name="adbpair_enter_code">Masukkan kode</string>
|
||||
@@ -2315,8 +2292,7 @@
|
||||
<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 %2$s untuk %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</string>
|
||||
<string name="pextra_no_release">Tidak dapat menemukan rilis ARM64 untuk %1$s</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>
|
||||
|
||||
@@ -882,6 +882,7 @@
|
||||
<string name="setup_game_debug_logs_hint">Includi la diagnostica di Proton, Wine e grafica al prossimo avvio di un gioco. Può ridurre le prestazioni e occupare più spazio.</string>
|
||||
<string name="setup_game_debug_logs_restart">Riavvia questa sessione per salvare i log di debug dei giochi</string>
|
||||
<string name="setup_logging_update_failed">Impossibile aggiornare i log. Controlla l\'interruttore e riprova.</string>
|
||||
<string name="setup_agent_commands">Strumenti di debug</string>
|
||||
<string name="setup_graphics_logs">Log grafici dettagliati</string>
|
||||
<string name="setup_steam_gpu_drawing">Interfaccia Steam: rendering GPU</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">Con la coppia di driver Xclipse, Steam disegna le pagine via software (il rendering GPU mostrava riquadri danneggiati). Attivala per un\'interfaccia Steam più veloce, se su questo telefono appare corretta.</string>
|
||||
@@ -1306,31 +1307,6 @@
|
||||
<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>
|
||||
@@ -2331,6 +2307,7 @@
|
||||
<string name="adbpair_waiting_text">Attiva Debug wireless, poi tocca “Accoppia dispositivo con codice di accoppiamento”.</string>
|
||||
<string name="adbpair_waiting_long">Attiva Debug wireless, poi tocca “Accoppia dispositivo con codice di accoppiamento”. Resta in Impostazioni: il codice va inserito in questa notifica.</string>
|
||||
<string name="adbpair_code_label">Codice di accoppiamento a 6 cifre</string>
|
||||
<string name="adbpair_code_hint">Tocca Inserisci codice e digita le 6 cifre mostrate in Impostazioni.</string>
|
||||
<string name="adbpair_title_code">Inserisci il codice di accoppiamento Wi-Fi</string>
|
||||
<string name="adbpair_title_retry">Riprova con il codice</string>
|
||||
<string name="adbpair_enter_code">Inserisci codice</string>
|
||||
@@ -2357,8 +2334,7 @@
|
||||
<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 %2$s per %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</string>
|
||||
<string name="pextra_no_release">Impossibile trovare una release ARM64 per %1$s</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>
|
||||
|
||||
@@ -876,6 +876,7 @@
|
||||
<string name="setup_game_debug_logs_hint">次回のゲーム起動時にProton、Wine、グラフィックスの診断情報を含めます。パフォーマンスが低下し、ストレージを多く使用する場合があります。</string>
|
||||
<string name="setup_game_debug_logs_restart">ゲームのデバッグログを保存するにはこのセッションを再起動してください</string>
|
||||
<string name="setup_logging_update_failed">ログ設定を更新できませんでした。スイッチを確認して、もう一度お試しください。</string>
|
||||
<string name="setup_agent_commands">デバッグツール</string>
|
||||
<string name="setup_graphics_logs">詳細なグラフィックスログ</string>
|
||||
<string name="setup_steam_gpu_drawing">Steam インターフェース: GPU 描画</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">Xclipse ドライバーの組み合わせでは、Steam はソフトウェアでページを描画します (GPU 描画ではタイルが乱れました)。この端末で表示が正しければ、オンにすると Steam インターフェースが高速化します。</string>
|
||||
@@ -1302,31 +1303,6 @@
|
||||
<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>
|
||||
@@ -2289,6 +2265,7 @@
|
||||
<string name="adbpair_waiting_text">ワイヤレスデバッグをオンにして、「ペアリングコードでデバイスをペア設定」をタップしてください。</string>
|
||||
<string name="adbpair_waiting_long">ワイヤレスデバッグをオンにして、「ペアリングコードでデバイスをペア設定」をタップしてください。設定画面のままにしてください:コードはこの通知に入力します。</string>
|
||||
<string name="adbpair_code_label">6桁のペアリングコード</string>
|
||||
<string name="adbpair_code_hint">「コードを入力」をタップし、設定に表示された6桁の数字を入力してください。</string>
|
||||
<string name="adbpair_title_code">Wi-Fiペアリングコードを入力</string>
|
||||
<string name="adbpair_title_retry">コードをもう一度入力</string>
|
||||
<string name="adbpair_enter_code">コードを入力</string>
|
||||
@@ -2315,8 +2292,7 @@
|
||||
<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の%2$sリリースが見つかりませんでした</string>
|
||||
<string name="pextra_anticheat">アンチチート</string>
|
||||
<string name="pextra_no_release">%1$sのARM64リリースが見つかりませんでした</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>
|
||||
|
||||
@@ -876,6 +876,7 @@
|
||||
<string name="setup_game_debug_logs_hint">다음 게임 실행 시 Proton, Wine 및 그래픽 진단 정보를 포함합니다. 성능이 저하되고 저장 공간을 더 사용할 수 있습니다.</string>
|
||||
<string name="setup_game_debug_logs_restart">게임 디버그 로그를 저장하려면 이 세션을 다시 시작하세요</string>
|
||||
<string name="setup_logging_update_failed">로깅을 업데이트할 수 없습니다. 스위치를 확인하고 다시 시도하세요.</string>
|
||||
<string name="setup_agent_commands">디버깅 도구</string>
|
||||
<string name="setup_graphics_logs">상세 그래픽 로그</string>
|
||||
<string name="setup_steam_gpu_drawing">Steam 인터페이스: GPU 렌더링</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">Xclipse 드라이버 조합에서는 Steam 페이지를 소프트웨어로 그립니다(GPU 렌더링에서는 타일이 깨져 보였습니다). 이 기기에서 정상적으로 보인다면 더 빠른 Steam 인터페이스를 위해 켜세요.</string>
|
||||
@@ -1302,31 +1303,6 @@
|
||||
<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>
|
||||
@@ -2289,6 +2265,7 @@
|
||||
<string name="adbpair_waiting_text">무선 디버깅을 켠 다음 “페어링 코드로 기기 페어링”을 탭하세요.</string>
|
||||
<string name="adbpair_waiting_long">무선 디버깅을 켠 다음 “페어링 코드로 기기 페어링”을 탭하세요. 코드는 이 알림에 입력하므로 설정 화면에 머물러 있으세요.</string>
|
||||
<string name="adbpair_code_label">6자리 페어링 코드</string>
|
||||
<string name="adbpair_code_hint">\"코드 입력\"을 탭하고 설정에 표시된 6자리 숫자를 입력하세요.</string>
|
||||
<string name="adbpair_title_code">Wi-Fi 페어링 코드 입력</string>
|
||||
<string name="adbpair_title_retry">코드를 다시 입력하세요</string>
|
||||
<string name="adbpair_enter_code">코드 입력</string>
|
||||
@@ -2315,8 +2292,7 @@
|
||||
<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의 %2$s 릴리스를 찾을 수 없습니다</string>
|
||||
<string name="pextra_anticheat">안티 치트</string>
|
||||
<string name="pextra_no_release">%1$s의 ARM64 릴리스를 찾을 수 없습니다</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>
|
||||
|
||||
@@ -876,6 +876,7 @@
|
||||
<string name="setup_game_debug_logs_hint">Sertakan diagnostik Proton, Wine dan grafik pada pelancaran permainan seterusnya. Boleh mengurangkan prestasi dan menggunakan lebih banyak storan.</string>
|
||||
<string name="setup_game_debug_logs_restart">Mulakan semula sesi ini untuk menyimpan log nyahpepijat permainan</string>
|
||||
<string name="setup_logging_update_failed">Tidak dapat mengemas kini pengelogan. Semak suis dan cuba lagi.</string>
|
||||
<string name="setup_agent_commands">Alatan penyahpepijatan</string>
|
||||
<string name="setup_graphics_logs">Log grafik terperinci</string>
|
||||
<string name="setup_steam_gpu_drawing">Antara muka Steam: pelukisan GPU</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">Dengan pasangan pemacu Xclipse, Steam melukis halamannya melalui perisian (pelukisan GPU menghasilkan jubin yang cacat). Hidupkan untuk antara muka Steam yang lebih pantas jika hasilnya kelihatan betul pada telefon ini.</string>
|
||||
@@ -1302,31 +1303,6 @@
|
||||
<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>
|
||||
@@ -2289,6 +2265,7 @@
|
||||
<string name="adbpair_waiting_text">Hidupkan Debugging Wayarles, kemudian ketik “Gandingkan peranti dengan kod gandingan”.</string>
|
||||
<string name="adbpair_waiting_long">Hidupkan Debugging Wayarles, kemudian ketik “Gandingkan peranti dengan kod gandingan”. Kekal dalam Tetapan: kod akan masuk dalam pemberitahuan ini.</string>
|
||||
<string name="adbpair_code_label">Kod gandingan 6 digit</string>
|
||||
<string name="adbpair_code_hint">Ketik Masukkan kod dan taip 6 digit yang dipaparkan dalam Tetapan.</string>
|
||||
<string name="adbpair_title_code">Masukkan kod gandingan Wi-Fi</string>
|
||||
<string name="adbpair_title_retry">Cuba kod itu sekali lagi</string>
|
||||
<string name="adbpair_enter_code">Masukkan kod</string>
|
||||
@@ -2315,8 +2292,7 @@
|
||||
<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 %2$s untuk %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</string>
|
||||
<string name="pextra_no_release">Tidak dapat mencari keluaran ARM64 untuk %1$s</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>
|
||||
|
||||
@@ -879,6 +879,7 @@
|
||||
<string name="setup_game_debug_logs_hint">Ta med diagnostikk for Proton, Wine og grafikk ved neste spillstart. Kan redusere ytelsen og bruke mer lagringsplass.</string>
|
||||
<string name="setup_game_debug_logs_restart">Start denne sesjonen på nytt for å lagre feilsøkingslogger for spill</string>
|
||||
<string name="setup_logging_update_failed">Kunne ikke oppdatere loggingen. Sjekk bryteren og prøv igjen.</string>
|
||||
<string name="setup_agent_commands">Feilsøkingsverktøy</string>
|
||||
<string name="setup_graphics_logs">Detaljerte grafikklogger</string>
|
||||
<string name="setup_steam_gpu_drawing">Steam-grensesnitt: GPU-tegning</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">Med Xclipse-driverparet tegner Steam sidene sine i programvare (GPU-tegning viste ødelagte fliser). Slå på for et raskere Steam-grensesnitt hvis det ser riktig ut på denne telefonen.</string>
|
||||
@@ -1308,31 +1309,6 @@
|
||||
<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>
|
||||
@@ -2314,6 +2290,7 @@
|
||||
<string name="adbpair_waiting_text">Slå på trådløs feilsøking, og trykk så på «Par enhet med koblingskode».</string>
|
||||
<string name="adbpair_waiting_long">Slå på trådløs feilsøking, og trykk så på «Par enhet med koblingskode». Hold deg i Innstillinger: koden kommer i denne varslingen.</string>
|
||||
<string name="adbpair_code_label">6-tallers koblingskode</string>
|
||||
<string name="adbpair_code_hint">Trykk på Skriv inn kode og skriv de 6 tallene som vises i Innstillinger.</string>
|
||||
<string name="adbpair_title_code">Skriv inn Wi-Fi-koblingskoden</string>
|
||||
<string name="adbpair_title_retry">Prøv koden igjen</string>
|
||||
<string name="adbpair_enter_code">Skriv inn kode</string>
|
||||
@@ -2340,8 +2317,7 @@
|
||||
<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 %2$s-utgivelse for %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-juks</string>
|
||||
<string name="pextra_no_release">Fant ingen ARM64-utgivelse for %1$s</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>
|
||||
|
||||
@@ -879,6 +879,7 @@
|
||||
<string name="setup_game_debug_logs_hint">Neem bij de volgende gamestart diagnostiek van Proton, Wine en graphics op. Kan de prestaties verlagen en meer opslag gebruiken.</string>
|
||||
<string name="setup_game_debug_logs_restart">Start deze sessie opnieuw om debuglogs van games op te slaan</string>
|
||||
<string name="setup_logging_update_failed">Kan logging niet bijwerken. Controleer de schakelaar en probeer het opnieuw.</string>
|
||||
<string name="setup_agent_commands">Hulpmiddelen voor debuggen</string>
|
||||
<string name="setup_graphics_logs">Gedetailleerde grafische logboeken</string>
|
||||
<string name="setup_steam_gpu_drawing">Steam-interface: GPU-tekenen</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">Met het Xclipse-driverpaar tekent Steam zijn pagina\'s in software (GPU-tekenen liet gebroken tegels zien). Schakel dit in voor een snellere Steam-interface als het op deze telefoon goed uitziet.</string>
|
||||
@@ -1308,31 +1309,6 @@
|
||||
<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>
|
||||
@@ -2314,6 +2290,7 @@
|
||||
<string name="adbpair_waiting_text">Schakel draadloze foutopsporing in en tik vervolgens op “Apparaat koppelen met koppelcode”.</string>
|
||||
<string name="adbpair_waiting_long">Schakel draadloze foutopsporing in en tik vervolgens op “Apparaat koppelen met koppelcode”. Blijf in Instellingen: de code komt in deze melding.</string>
|
||||
<string name="adbpair_code_label">Koppelcode van 6 cijfers</string>
|
||||
<string name="adbpair_code_hint">Tik op Code invoeren en typ de 6 cijfers die in Instellingen worden getoond.</string>
|
||||
<string name="adbpair_title_code">Voer de Wi-Fi-koppelcode in</string>
|
||||
<string name="adbpair_title_retry">Probeer de code opnieuw</string>
|
||||
<string name="adbpair_enter_code">Code invoeren</string>
|
||||
@@ -2340,8 +2317,7 @@
|
||||
<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 %2$s-release vinden voor %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</string>
|
||||
<string name="pextra_no_release">Kan geen ARM64-release vinden voor %1$s</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>
|
||||
|
||||
@@ -885,6 +885,7 @@
|
||||
<string name="setup_game_debug_logs_hint">Dołącz diagnostykę Proton, Wine i grafiki przy następnym uruchomieniu gry. Może obniżyć wydajność i zająć więcej miejsca.</string>
|
||||
<string name="setup_game_debug_logs_restart">Uruchom ponownie tę sesję, aby zapisywać logi debugowania gier</string>
|
||||
<string name="setup_logging_update_failed">Nie udało się zmienić logowania. Sprawdź przełącznik i spróbuj ponownie.</string>
|
||||
<string name="setup_agent_commands">Narzędzia debugowania</string>
|
||||
<string name="setup_graphics_logs">Szczegółowe logi graficzne</string>
|
||||
<string name="setup_steam_gpu_drawing">Interfejs Steam: rysowanie przez GPU</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">Z parą sterowników Xclipse Steam rysuje swoje strony programowo (rysowanie przez GPU dawało uszkodzone kafelki). Włącz, aby przyspieszyć interfejs Steam, jeśli na tym telefonie wygląda poprawnie.</string>
|
||||
@@ -1322,31 +1323,6 @@
|
||||
<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>
|
||||
@@ -2366,6 +2342,7 @@
|
||||
<string name="adbpair_waiting_text">Włącz Debugowanie bezprzewodowe, a potem dotknij „Sparuj urządzenie za pomocą kodu parowania”.</string>
|
||||
<string name="adbpair_waiting_long">Włącz Debugowanie bezprzewodowe, a potem dotknij „Sparuj urządzenie za pomocą kodu parowania”. Pozostań w Ustawieniach: kod wpiszesz w tym powiadomieniu.</string>
|
||||
<string name="adbpair_code_label">6-cyfrowy kod parowania</string>
|
||||
<string name="adbpair_code_hint">Dotknij „Wpisz kod” i podaj 6 cyfr widocznych w Ustawieniach.</string>
|
||||
<string name="adbpair_title_code">Wpisz kod parowania Wi-Fi</string>
|
||||
<string name="adbpair_title_retry">Spróbuj wpisać kod ponownie</string>
|
||||
<string name="adbpair_enter_code">Wpisz kod</string>
|
||||
@@ -2392,8 +2369,7 @@
|
||||
<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 %2$s dla %1$s</string>
|
||||
<string name="pextra_anticheat">Antycheat</string>
|
||||
<string name="pextra_no_release">Nie znaleziono wydania ARM64 dla %1$s</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>
|
||||
|
||||
@@ -882,6 +882,7 @@
|
||||
<string name="setup_game_debug_logs_hint">Inclui diagnósticos do Proton, do Wine e de gráficos no próximo arranque de um jogo. Pode reduzir o desempenho e ocupar mais armazenamento.</string>
|
||||
<string name="setup_game_debug_logs_restart">Reinicie esta sessão para guardar os registos de depuração dos jogos</string>
|
||||
<string name="setup_logging_update_failed">Não foi possível atualizar os registos. Verifique o interruptor e tente novamente.</string>
|
||||
<string name="setup_agent_commands">Ferramentas de depuração</string>
|
||||
<string name="setup_graphics_logs">Registos gráficos detalhados</string>
|
||||
<string name="setup_steam_gpu_drawing">Interface do Steam: desenho pela GPU</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">Com o par de controladores Xclipse, o Steam desenha as suas páginas por software (o desenho pela GPU mostrou mosaicos com falhas). Ative para uma interface do Steam mais rápida se esta parecer correta neste telemóvel.</string>
|
||||
@@ -1306,31 +1307,6 @@
|
||||
<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>
|
||||
@@ -2346,6 +2322,7 @@
|
||||
<string name="adbpair_waiting_text">Ative a depuração sem fios e toque em «Sincronizar dispositivo com código de sincronização».</string>
|
||||
<string name="adbpair_waiting_long">Ative a depuração sem fios e toque em «Sincronizar dispositivo com código de sincronização». Fique nas Definições: o código é introduzido nesta notificação.</string>
|
||||
<string name="adbpair_code_label">Código de sincronização de 6 dígitos</string>
|
||||
<string name="adbpair_code_hint">Toque em Introduzir código e escreva os 6 dígitos mostrados nas Definições.</string>
|
||||
<string name="adbpair_title_code">Introduza o código de sincronização Wi-Fi</string>
|
||||
<string name="adbpair_title_retry">Introduza o código novamente</string>
|
||||
<string name="adbpair_enter_code">Introduzir código</string>
|
||||
@@ -2372,8 +2349,7 @@
|
||||
<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 %2$s de %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</string>
|
||||
<string name="pextra_no_release">Não foi possível encontrar uma versão ARM64 de %1$s</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>
|
||||
|
||||
@@ -889,6 +889,7 @@
|
||||
<string name="setup_game_debug_logs_hint">Inclui diagnósticos do Proton, do Wine e de gráficos na próxima inicialização do jogo. Pode reduzir o desempenho e usar mais armazenamento.</string>
|
||||
<string name="setup_game_debug_logs_restart">Reinicie esta sessão para salvar os logs de depuração dos jogos</string>
|
||||
<string name="setup_logging_update_failed">Não foi possível atualizar os logs. Verifique a chave e tente novamente.</string>
|
||||
<string name="setup_agent_commands">Ferramentas de depuração</string>
|
||||
<string name="setup_graphics_logs">Logs detalhados de gráficos</string>
|
||||
<string name="setup_steam_gpu_drawing">Interface do Steam: renderização pela GPU</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">Com o par de drivers Xclipse, o Steam renderiza suas páginas por software (a renderização pela GPU apresentou blocos quebrados). Ative para ter uma interface do Steam mais rápida se ela aparecer corretamente neste telefone.</string>
|
||||
@@ -1314,31 +1315,6 @@
|
||||
<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>
|
||||
@@ -2354,6 +2330,7 @@
|
||||
<string name="adbpair_waiting_text">Ative a depuração por Wi-Fi e toque em “Parear o dispositivo com um código de pareamento”.</string>
|
||||
<string name="adbpair_waiting_long">Ative a depuração por Wi-Fi e toque em “Parear o dispositivo com um código de pareamento”. Fique nas Configurações: o código é digitado nesta notificação.</string>
|
||||
<string name="adbpair_code_label">Código de pareamento de 6 dígitos</string>
|
||||
<string name="adbpair_code_hint">Toque em Digitar código e insira os 6 dígitos mostrados nas Configurações.</string>
|
||||
<string name="adbpair_title_code">Digite o código de pareamento por Wi-Fi</string>
|
||||
<string name="adbpair_title_retry">Tente o código de novo</string>
|
||||
<string name="adbpair_enter_code">Digitar código</string>
|
||||
@@ -2380,8 +2357,7 @@
|
||||
<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 %2$s de %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</string>
|
||||
<string name="pextra_no_release">Não foi possível encontrar uma versão ARM64 de %1$s</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>
|
||||
|
||||
@@ -882,6 +882,7 @@
|
||||
<string name="setup_game_debug_logs_hint">Include diagnosticare Proton, Wine și grafică la următoarea lansare a unui joc. Poate reduce performanța și folosește mai mult spațiu.</string>
|
||||
<string name="setup_game_debug_logs_restart">Repornește această sesiune pentru a salva jurnalele de depanare</string>
|
||||
<string name="setup_logging_update_failed">Jurnalizarea nu a putut fi actualizată. Verifică comutatorul și încearcă din nou.</string>
|
||||
<string name="setup_agent_commands">Instrumente de depanare</string>
|
||||
<string name="setup_graphics_logs">Jurnale detaliate de grafică</string>
|
||||
<string name="setup_steam_gpu_drawing">Interfața Steam: desenare GPU</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">Cu perechea de drivere Xclipse, Steam își desenează paginile în software (desenarea GPU a afișat dale stricate). Activează pentru o interfață Steam mai rapidă dacă arată corect pe acest telefon.</string>
|
||||
@@ -1315,31 +1316,6 @@
|
||||
<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>
|
||||
@@ -2340,6 +2316,7 @@
|
||||
<string name="adbpair_waiting_text">Activează Depanarea wireless, apoi apasă „Asociază dispozitivul cu un cod de asociere”.</string>
|
||||
<string name="adbpair_waiting_long">Activează Depanarea wireless, apoi apasă „Asociază dispozitivul cu un cod de asociere”. Rămâi în Setări: codul apare în această notificare.</string>
|
||||
<string name="adbpair_code_label">Cod de asociere din 6 cifre</string>
|
||||
<string name="adbpair_code_hint">Apasă Introdu codul și scrie cele 6 cifre arătate în Setări.</string>
|
||||
<string name="adbpair_title_code">Introdu codul de asociere Wi-Fi</string>
|
||||
<string name="adbpair_title_retry">Încearcă codul din nou</string>
|
||||
<string name="adbpair_enter_code">Introdu codul</string>
|
||||
@@ -2366,8 +2343,7 @@
|
||||
<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 %2$s pentru %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</string>
|
||||
<string name="pextra_no_release">Nu s-a găsit o versiune ARM64 pentru %1$s</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>
|
||||
|
||||
@@ -885,6 +885,7 @@
|
||||
<string name="setup_game_debug_logs_hint">Добавлять диагностику Proton, Wine и графики при следующем запуске игры. Может снизить производительность и занять больше места.</string>
|
||||
<string name="setup_game_debug_logs_restart">Перезапустите сессию, чтобы сохранять журналы отладки игр</string>
|
||||
<string name="setup_logging_update_failed">Не удалось обновить журналирование. Проверьте переключатель и повторите попытку.</string>
|
||||
<string name="setup_agent_commands">Инструменты отладки</string>
|
||||
<string name="setup_graphics_logs">Подробные журналы графики</string>
|
||||
<string name="setup_steam_gpu_drawing">Интерфейс Steam: отрисовка на GPU</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">С парой драйверов Xclipse Steam отрисовывает страницы программно (при отрисовке на GPU появлялись битые тайлы). Включите, чтобы ускорить интерфейс Steam, если на этом телефоне он выглядит корректно.</string>
|
||||
@@ -1322,31 +1323,6 @@
|
||||
<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>
|
||||
@@ -2367,6 +2343,7 @@
|
||||
<string name="adbpair_waiting_text">Включите отладку по Wi-Fi и нажмите «Сопряжение устройства с помощью кода».</string>
|
||||
<string name="adbpair_waiting_long">Включите отладку по Wi-Fi и нажмите «Сопряжение устройства с помощью кода». Не выходите из Настроек: код вводится в этом уведомлении.</string>
|
||||
<string name="adbpair_code_label">6-значный код сопряжения</string>
|
||||
<string name="adbpair_code_hint">Нажмите «Ввести код» и введите 6 цифр, показанных в Настройках.</string>
|
||||
<string name="adbpair_title_code">Введите код сопряжения Wi-Fi</string>
|
||||
<string name="adbpair_title_retry">Введите код еще раз</string>
|
||||
<string name="adbpair_enter_code">Ввести код</string>
|
||||
@@ -2393,8 +2370,7 @@
|
||||
<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 для %2$s</string>
|
||||
<string name="pextra_anticheat">Античит</string>
|
||||
<string name="pextra_no_release">Не найден выпуск %1$s для ARM64</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>
|
||||
|
||||
@@ -879,6 +879,7 @@
|
||||
<string name="setup_game_debug_logs_hint">Ta med diagnostik för Proton, Wine och grafik vid nästa spelstart. Kan sänka prestandan och använda mer lagringsutrymme.</string>
|
||||
<string name="setup_game_debug_logs_restart">Starta om sessionen för att spara felsökningsloggar för spel</string>
|
||||
<string name="setup_logging_update_failed">Det gick inte att uppdatera loggningen. Kontrollera reglaget och försök igen.</string>
|
||||
<string name="setup_agent_commands">Felsökningsverktyg</string>
|
||||
<string name="setup_graphics_logs">Detaljerade grafikloggar</string>
|
||||
<string name="setup_steam_gpu_drawing">Steam-gränssnitt: GPU-ritning</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">Med Xclipse-drivrutinsparet ritar Steam sina sidor i mjukvara (GPU-ritning gav trasiga rutor). Slå på för ett snabbare Steam-gränssnitt om det ser rätt ut på den här telefonen.</string>
|
||||
@@ -1308,31 +1309,6 @@
|
||||
<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>
|
||||
@@ -2314,6 +2290,7 @@
|
||||
<string name="adbpair_waiting_text">Slå på trådlös felsökning och tryck sedan på ”Parkoppla enhet med parkopplingskod”.</string>
|
||||
<string name="adbpair_waiting_long">Slå på trådlös felsökning och tryck sedan på ”Parkoppla enhet med parkopplingskod”. Stanna kvar i Inställningar: koden skrivs in i den här aviseringen.</string>
|
||||
<string name="adbpair_code_label">6-siffrig parkopplingskod</string>
|
||||
<string name="adbpair_code_hint">Tryck på Ange kod och skriv de 6 siffrorna som visas i Inställningar.</string>
|
||||
<string name="adbpair_title_code">Ange Wi-Fi-parkopplingskoden</string>
|
||||
<string name="adbpair_title_retry">Försök med koden igen</string>
|
||||
<string name="adbpair_enter_code">Ange kod</string>
|
||||
@@ -2340,8 +2317,7 @@
|
||||
<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 %2$s-utgåva av %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</string>
|
||||
<string name="pextra_no_release">Kunde inte hitta en ARM64-utgåva av %1$s</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>
|
||||
|
||||
@@ -876,6 +876,7 @@
|
||||
<string name="setup_game_debug_logs_hint">รวมข้อมูลวินิจฉัยของ Proton, Wine และกราฟิกในการเปิดเกมครั้งถัดไป อาจลดประสิทธิภาพและใช้พื้นที่จัดเก็บมากขึ้น</string>
|
||||
<string name="setup_game_debug_logs_restart">รีสตาร์ทเซสชันนี้เพื่อบันทึกบันทึกดีบักของเกม</string>
|
||||
<string name="setup_logging_update_failed">อัปเดตการบันทึกไม่ได้ ตรวจสอบสวิตช์แล้วลองใหม่</string>
|
||||
<string name="setup_agent_commands">เครื่องมือดีบัก</string>
|
||||
<string name="setup_graphics_logs">บันทึกกราฟิกโดยละเอียด</string>
|
||||
<string name="setup_steam_gpu_drawing">อินเทอร์เฟซ Steam: วาดด้วย GPU</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">ด้วยไดรเวอร์คู่ Xclipse Steam จะวาดหน้าเพจด้วยซอฟต์แวร์ (การวาดด้วย GPU ทำให้ภาพแตกเป็นชิ้น) เปิดตัวเลือกนี้เพื่อให้อินเทอร์เฟซ Steam เร็วขึ้นหากดูปกติบนเครื่องนี้</string>
|
||||
@@ -1302,31 +1303,6 @@
|
||||
<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>
|
||||
@@ -2289,6 +2265,7 @@
|
||||
<string name="adbpair_waiting_text">เปิด Wireless debugging แล้วแตะ “Pair device with pairing code”</string>
|
||||
<string name="adbpair_waiting_long">เปิด Wireless debugging แล้วแตะ “Pair device with pairing code” อยู่ในการตั้งค่าต่อไป: รหัสจะอยู่ในการแจ้งเตือนนี้</string>
|
||||
<string name="adbpair_code_label">รหัสจับคู่ 6 หลัก</string>
|
||||
<string name="adbpair_code_hint">แตะกรอกรหัสแล้วพิมพ์ตัวเลข 6 หลักที่แสดงในการตั้งค่า</string>
|
||||
<string name="adbpair_title_code">กรอกรหัสจับคู่ Wi-Fi</string>
|
||||
<string name="adbpair_title_retry">ลองกรอกรหัสอีกครั้ง</string>
|
||||
<string name="adbpair_enter_code">กรอกรหัส</string>
|
||||
@@ -2315,8 +2292,7 @@
|
||||
<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">ไม่พบรุ่นที่เผยแพร่แบบ %2$s สำหรับ %1$s</string>
|
||||
<string name="pextra_anticheat">ระบบป้องกันการโกง</string>
|
||||
<string name="pextra_no_release">ไม่พบรุ่นที่เผยแพร่แบบ ARM64 สำหรับ %1$s</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>
|
||||
|
||||
@@ -879,6 +879,7 @@
|
||||
<string name="setup_game_debug_logs_hint">Sonraki oyun başlatmada Proton, Wine ve grafik tanılamalarını ekler. Performansı düşürebilir ve daha fazla depolama kullanabilir.</string>
|
||||
<string name="setup_game_debug_logs_restart">Oyun hata ayıklama günlüklerini kaydetmek için bu oturumu yeniden başlatın</string>
|
||||
<string name="setup_logging_update_failed">Günlük kaydı güncellenemedi. Anahtarı kontrol edip tekrar deneyin.</string>
|
||||
<string name="setup_agent_commands">Hata ayıklama araçları</string>
|
||||
<string name="setup_graphics_logs">Ayrıntılı grafik günlükleri</string>
|
||||
<string name="setup_steam_gpu_drawing">Steam arayüzü: GPU ile çizim</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">Xclipse sürücü ikilisi kullanıldığında Steam, sayfalarını yazılımla çizer (GPU ile çizimde bozuk döşemeler görüldü). Bu telefonda düzgün görünüyorsa daha hızlı bir Steam arayüzü için açın.</string>
|
||||
@@ -1300,31 +1301,6 @@
|
||||
<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>
|
||||
@@ -2306,6 +2282,7 @@
|
||||
<string name="adbpair_waiting_text">Kablosuz hata ayıklamayı açın, sonra “Eşleştirme koduyla cihaz eşle” seçeneğine dokunun.</string>
|
||||
<string name="adbpair_waiting_long">Kablosuz hata ayıklamayı açın, sonra “Eşleştirme koduyla cihaz eşle” seçeneğine dokunun. Ayarlar\'dan çıkmayın: kod bu bildirime gelir.</string>
|
||||
<string name="adbpair_code_label">6 haneli eşleştirme kodu</string>
|
||||
<string name="adbpair_code_hint">Kodu gir\'e dokunun ve Ayarlar\'da gösterilen 6 haneyi yazın.</string>
|
||||
<string name="adbpair_title_code">Wi-Fi eşleştirme kodunu girin</string>
|
||||
<string name="adbpair_title_retry">Kodu yeniden deneyin</string>
|
||||
<string name="adbpair_enter_code">Kodu gir</string>
|
||||
@@ -2332,8 +2309,7 @@
|
||||
<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 %2$s yayını bulunamadı</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</string>
|
||||
<string name="pextra_no_release">%1$s için bir ARM64 yayını bulunamadı</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>
|
||||
|
||||
@@ -885,6 +885,7 @@
|
||||
<string name="setup_game_debug_logs_hint">Додавати діагностику Proton, Wine і графіки під час наступного запуску гри. Може знизити продуктивність і зайняти більше місця.</string>
|
||||
<string name="setup_game_debug_logs_restart">Перезапустіть цей сеанс, щоб зберігати журнали налагодження ігор</string>
|
||||
<string name="setup_logging_update_failed">Не вдалося оновити журналювання. Перевірте перемикач і спробуйте ще раз.</string>
|
||||
<string name="setup_agent_commands">Засоби діагностики</string>
|
||||
<string name="setup_graphics_logs">Детальні журнали графіки</string>
|
||||
<string name="setup_steam_gpu_drawing">Інтерфейс Steam: малювання на GPU</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">Із парою драйверів Xclipse Steam малює свої сторінки програмно (малювання на GPU давало пошкоджені фрагменти). Увімкніть для швидшого інтерфейсу Steam, якщо на цьому телефоні все виглядає правильно.</string>
|
||||
@@ -1322,31 +1323,6 @@
|
||||
<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>
|
||||
@@ -2366,6 +2342,7 @@
|
||||
<string name="adbpair_waiting_text">Увімкніть бездротове налагодження, потім торкніться «Прив’язати пристрій за кодом прив’язки».</string>
|
||||
<string name="adbpair_waiting_long">Увімкніть бездротове налагодження, потім торкніться «Прив’язати пристрій за кодом прив’язки». Залишайтеся в «Налаштуваннях»: код з’явиться в цьому сповіщенні.</string>
|
||||
<string name="adbpair_code_label">6-значний код прив’язки</string>
|
||||
<string name="adbpair_code_hint">Торкніться «Ввести код» і введіть 6 цифр, показаних у «Налаштуваннях».</string>
|
||||
<string name="adbpair_title_code">Введіть код прив’язки Wi-Fi</string>
|
||||
<string name="adbpair_title_retry">Спробуйте код ще раз</string>
|
||||
<string name="adbpair_enter_code">Ввести код</string>
|
||||
@@ -2392,8 +2369,7 @@
|
||||
<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">Не вдалося знайти випуск %2$s для %1$s</string>
|
||||
<string name="pextra_anticheat">Античит</string>
|
||||
<string name="pextra_no_release">Не вдалося знайти випуск ARM64 для %1$s</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>
|
||||
|
||||
@@ -876,6 +876,7 @@
|
||||
<string name="setup_game_debug_logs_hint">Thêm chẩn đoán Proton, Wine và đồ họa vào lần khởi chạy game tiếp theo. Có thể giảm hiệu năng và tốn thêm bộ nhớ.</string>
|
||||
<string name="setup_game_debug_logs_restart">Khởi động lại phiên này để lưu nhật ký gỡ lỗi game</string>
|
||||
<string name="setup_logging_update_failed">Không thể cập nhật ghi nhật ký. Hãy kiểm tra công tắc rồi thử lại.</string>
|
||||
<string name="setup_agent_commands">Công cụ gỡ lỗi</string>
|
||||
<string name="setup_graphics_logs">Nhật ký đồ họa chi tiết</string>
|
||||
<string name="setup_steam_gpu_drawing">Giao diện Steam: vẽ bằng GPU</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">Với cặp driver Xclipse, Steam vẽ các trang bằng phần mềm (vẽ bằng GPU làm vỡ các ô hiển thị). Bật để có giao diện Steam nhanh hơn nếu hình hiển thị đúng trên máy này.</string>
|
||||
@@ -1302,31 +1303,6 @@
|
||||
<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>
|
||||
@@ -2289,6 +2265,7 @@
|
||||
<string name="adbpair_waiting_text">Bật Gỡ lỗi qua mạng không dây, rồi nhấn “Pair device with pairing code”.</string>
|
||||
<string name="adbpair_waiting_long">Bật Gỡ lỗi qua mạng không dây, rồi nhấn “Pair device with pairing code”. Ở lại trong Settings: mã sẽ hiện trong thông báo này.</string>
|
||||
<string name="adbpair_code_label">Mã ghép nối 6 số</string>
|
||||
<string name="adbpair_code_hint">Nhấn Enter code và nhập 6 số hiện trong Settings.</string>
|
||||
<string name="adbpair_title_code">Nhập mã ghép nối Wi-Fi</string>
|
||||
<string name="adbpair_title_retry">Thử lại mã</string>
|
||||
<string name="adbpair_enter_code">Nhập mã</string>
|
||||
@@ -2315,8 +2292,7 @@
|
||||
<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 %2$s cho %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-cheat</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_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>
|
||||
|
||||
@@ -876,6 +876,7 @@
|
||||
<string name="setup_game_debug_logs_hint">在下次启动游戏时包含 Proton、Wine 和图形诊断信息。可能降低性能并占用更多存储空间。</string>
|
||||
<string name="setup_game_debug_logs_restart">重启此会话以保存游戏调试日志</string>
|
||||
<string name="setup_logging_update_failed">无法更新日志设置。请检查开关后重试。</string>
|
||||
<string name="setup_agent_commands">调试工具</string>
|
||||
<string name="setup_graphics_logs">详细图形日志</string>
|
||||
<string name="setup_steam_gpu_drawing">Steam 界面:GPU 绘制</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">使用 Xclipse 驱动组合时,Steam 以软件方式绘制页面(GPU 绘制会出现图块错乱)。若在这台手机上画面正常,开启即可获得更快的 Steam 界面。</string>
|
||||
@@ -1385,31 +1386,6 @@
|
||||
<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>
|
||||
@@ -2366,6 +2342,7 @@
|
||||
<string name="adbpair_waiting_text">开启无线调试,然后点按“使用配对码配对设备”。</string>
|
||||
<string name="adbpair_waiting_long">开启无线调试,然后点按“使用配对码配对设备”。请停留在“设置”中:配对码在此通知中输入。</string>
|
||||
<string name="adbpair_code_label">6 位配对码</string>
|
||||
<string name="adbpair_code_hint">点按“输入配对码”,然后输入“设置”中显示的 6 位数字。</string>
|
||||
<string name="adbpair_title_code">输入 Wi-Fi 配对码</string>
|
||||
<string name="adbpair_title_retry">请重新输入配对码</string>
|
||||
<string name="adbpair_enter_code">输入配对码</string>
|
||||
@@ -2392,8 +2369,7 @@
|
||||
<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 的 %2$s 发布版本</string>
|
||||
<string name="pextra_anticheat">反作弊</string>
|
||||
<string name="pextra_no_release">找不到 %1$s 的 ARM64 发布版本</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>
|
||||
|
||||
@@ -875,6 +875,7 @@
|
||||
<string name="setup_game_debug_logs_hint">在下次啟動遊戲時加入 Proton、Wine 和圖形診斷資訊。可能降低效能並佔用更多儲存空間。</string>
|
||||
<string name="setup_game_debug_logs_restart">重新啟動此會話以儲存遊戲偵錯記錄</string>
|
||||
<string name="setup_logging_update_failed">無法更新記錄設定。請檢查開關後再試一次。</string>
|
||||
<string name="setup_agent_commands">偵錯工具</string>
|
||||
<string name="setup_graphics_logs">詳細圖形記錄</string>
|
||||
<string name="setup_steam_gpu_drawing">Steam 介面:GPU 繪製</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">使用 Xclipse 驅動程式組合時,Steam 會以軟件繪製頁面(GPU 繪製曾出現圖塊破損)。若在這部手機上顯示正常,可開啟以加快 Steam 介面。</string>
|
||||
@@ -1301,31 +1302,6 @@
|
||||
<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>
|
||||
@@ -2288,6 +2264,7 @@
|
||||
<string name="adbpair_waiting_text">開啟無線偵錯,然後輕按「使用配對碼配對裝置」。</string>
|
||||
<string name="adbpair_waiting_long">開啟無線偵錯,然後輕按「使用配對碼配對裝置」。請留在「設定」中:配對碼需在此通知中輸入。</string>
|
||||
<string name="adbpair_code_label">6 位數配對碼</string>
|
||||
<string name="adbpair_code_hint">輕按「輸入配對碼」,然後輸入「系統設定」中顯示的 6 位數字。</string>
|
||||
<string name="adbpair_title_code">輸入 Wi-Fi 配對碼</string>
|
||||
<string name="adbpair_title_retry">請再次輸入配對碼</string>
|
||||
<string name="adbpair_enter_code">輸入配對碼</string>
|
||||
@@ -2314,8 +2291,7 @@
|
||||
<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 的 %2$s 發佈版本</string>
|
||||
<string name="pextra_anticheat">防作弊</string>
|
||||
<string name="pextra_no_release">找不到 %1$s 的 ARM64 發佈版本</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>
|
||||
|
||||
@@ -875,6 +875,7 @@
|
||||
<string name="setup_game_debug_logs_hint">在下次啟動遊戲時加入 Proton、Wine 和圖形診斷資訊。可能降低效能並佔用更多儲存空間。</string>
|
||||
<string name="setup_game_debug_logs_restart">重新啟動此工作階段以儲存遊戲偵錯日誌</string>
|
||||
<string name="setup_logging_update_failed">無法更新日誌設定。請檢查開關後再試一次。</string>
|
||||
<string name="setup_agent_commands">偵錯工具</string>
|
||||
<string name="setup_graphics_logs">詳細圖形記錄</string>
|
||||
<string name="setup_steam_gpu_drawing">Steam 介面:GPU 繪製</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">使用 Xclipse 驅動程式組合時,Steam 會改用軟體繪製頁面(GPU 繪製曾出現圖塊破損)。若這支手機上顯示正常,開啟此選項可加快 Steam 介面。</string>
|
||||
@@ -1301,31 +1302,6 @@
|
||||
<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>
|
||||
@@ -2288,6 +2264,7 @@
|
||||
<string name="adbpair_waiting_text">開啟無線偵錯,然後點擊「使用配對碼配對裝置」。</string>
|
||||
<string name="adbpair_waiting_long">開啟無線偵錯,然後點擊「使用配對碼配對裝置」。請留在「設定」中:配對碼要輸入在這則通知裡。</string>
|
||||
<string name="adbpair_code_label">6 位數配對碼</string>
|
||||
<string name="adbpair_code_hint">點擊「輸入配對碼」,然後輸入「Android 設定」中顯示的 6 位數字。</string>
|
||||
<string name="adbpair_title_code">輸入 Wi-Fi 配對碼</string>
|
||||
<string name="adbpair_title_retry">請再次輸入配對碼</string>
|
||||
<string name="adbpair_enter_code">輸入配對碼</string>
|
||||
@@ -2314,8 +2291,7 @@
|
||||
<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 的 %2$s 發行版本</string>
|
||||
<string name="pextra_anticheat">反作弊</string>
|
||||
<string name="pextra_no_release">找不到 %1$s 的 ARM64 發行版本</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>
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- SystemUI can inflate RemoteViews with a different theme. Pair each key's foreground with its background. -->
|
||||
<style name="DroidDeckPairKey" parent="@android:style/Widget.Material.Button.Borderless">
|
||||
<item name="android:layout_width">0dp</item>
|
||||
<item name="android:layout_height">34dp</item>
|
||||
<item name="android:layout_weight">1</item>
|
||||
<item name="android:layout_margin">2dp</item>
|
||||
<item name="android:minWidth">0dp</item>
|
||||
<item name="android:minHeight">0dp</item>
|
||||
<item name="android:padding">0dp</item>
|
||||
<item name="android:background">@drawable/wireless_pairing_key</item>
|
||||
<item name="android:backgroundTint">@null</item>
|
||||
<item name="android:textColor">@color/wireless_pairing_key_text</item>
|
||||
<item name="android:textSize">17sp</item>
|
||||
<item name="android:textStyle">bold</item>
|
||||
<item name="android:includeFontPadding">false</item>
|
||||
</style>
|
||||
</resources>
|
||||
@@ -541,28 +541,6 @@
|
||||
<string name="game_steam_with">Starts with Steam</string>
|
||||
<string name="game_steam_without">Starts without Steam</string>
|
||||
<string name="game_res_title">Game resolution</string>
|
||||
<string name="game_upscaler_title">In-game upscaler</string>
|
||||
<string name="game_upscaler_off">Off</string>
|
||||
<string name="game_upscaler_mode_fsr">FSR and XeSS games</string>
|
||||
<string name="game_upscaler_mode_dlss">DLSS games</string>
|
||||
<string name="game_upscaler_mode_native">Native FSR 4</string>
|
||||
<string name="game_upscaler_engine">Upscaler</string>
|
||||
<string name="game_upscaler_engine_fsr4_lite">FSR 4 Lite</string>
|
||||
<string name="game_upscaler_engine_fsr4_full">FSR 4</string>
|
||||
<string name="game_upscaler_engine_xess">XeSS 3</string>
|
||||
<string name="game_upscaler_engine_basic">Basic temporal</string>
|
||||
<string name="game_upscaler_engine_sgsr2">Snapdragon GSR 2</string>
|
||||
<string name="game_upscaler_engine_fsr4_npu">FSR 4 on NPU</string>
|
||||
<string name="game_upscaler_engine_fsr4_lite_npu">FSR 4 Lite on NPU</string>
|
||||
<string name="game_upscaler_sharpness">Sharpness</string>
|
||||
<string name="game_upscaler_sharpness_value">%1$d%%</string>
|
||||
<string name="game_upscaler_sigfix">DLSS signature fix</string>
|
||||
<string name="game_upscaler_npu_sync">NPU sync</string>
|
||||
<string name="game_upscaler_files">Upscaler files</string>
|
||||
<string name="game_upscaler_files_ready">Ready</string>
|
||||
<string name="game_upscaler_files_missing">Not downloaded</string>
|
||||
<string name="game_upscaler_files_downloading">Downloading %1$d%%</string>
|
||||
<string name="game_upscaler_files_failed">Failed: %1$s</string>
|
||||
<string name="game_settings_card">Settings</string>
|
||||
<string name="game_settings_menu_title">%1$s Settings</string>
|
||||
<string name="game_settings_default">Default</string>
|
||||
@@ -797,7 +775,6 @@
|
||||
<string name="hud_metric_network">Network</string>
|
||||
<string name="hud_metric_resolution">Resolution</string>
|
||||
<string name="hud_metric_proton">Proton version</string>
|
||||
<string name="hud_metric_upscale">In-game upscaler</string>
|
||||
<string name="hud_metric_session">Session time</string>
|
||||
<string name="hud_metric_clock">Clock</string>
|
||||
<string name="hud_group_temps">Temperatures</string>
|
||||
@@ -999,8 +976,7 @@
|
||||
<string name="setup_game_debug_logs_hint">Include Proton, Wine and graphics diagnostics on the next game launch. Turns itself off when that session ends. Can reduce performance and use more storage.</string>
|
||||
<string name="setup_game_debug_logs_restart">Restart this session to save game debug logs</string>
|
||||
<string name="setup_logging_update_failed">Couldn\'t update logging. Check the switch and try again.</string>
|
||||
<string name="setup_agent_commands" translatable="false">droiddeckctl</string>
|
||||
<string name="setup_agent_commands_hint">Allow command-line control of DroidDeck sessions, input, and logs.</string>
|
||||
<string name="setup_agent_commands">Debugging tools</string>
|
||||
<string name="setup_graphics_logs">Detailed graphics logs</string>
|
||||
<string name="setup_steam_gpu_drawing">Steam interface: GPU drawing</string>
|
||||
<string name="setup_steam_gpu_drawing_hint">With the Xclipse driver pair, Steam draws its pages in software (GPU drawing showed broken tiles). Turn on for a faster Steam interface if it looks right on this phone.</string>
|
||||
@@ -1066,9 +1042,6 @@
|
||||
<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>
|
||||
@@ -1495,7 +1468,7 @@
|
||||
<string name="gate_needs_wifi">Wireless debugging needs Wi-Fi. Any network works; it doesn\'t need internet.</string>
|
||||
<string name="gate_step1">Open Settings → Developer options → Wireless debugging and turn it on</string>
|
||||
<string name="gate_step2">Tap “Pair device with pairing code”</string>
|
||||
<string name="gate_step3">Tap ▼ to keep the keypad open. Swipe down if it closes.</string>
|
||||
<string name="gate_step3">Type the code into the DroidDeck notification</string>
|
||||
<string name="pairguide_build_number">In About phone, tap Build number 7 times</string>
|
||||
<string name="pairguide_wireless">Turn on Wireless debugging</string>
|
||||
<string name="pairguide_pair">Open Wireless debugging, then tap “Pair device with pairing code”</string>
|
||||
@@ -1526,31 +1499,6 @@
|
||||
<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>
|
||||
@@ -2666,11 +2614,10 @@
|
||||
<string name="adbpair_waiting_text">Turn on Wireless debugging, then tap “Pair device with pairing code”.</string>
|
||||
<string name="adbpair_waiting_long">Turn on Wireless debugging, then tap “Pair device with pairing code”. Stay in Settings: the code goes in this notification.</string>
|
||||
<string name="adbpair_code_label">6-digit pairing code</string>
|
||||
<string name="adbpair_keypad_entered">%1$d of 6 digits entered</string>
|
||||
<string name="adbpair_keypad_delete">Delete last digit</string>
|
||||
<string name="adbpair_code_hint">Tap Enter code and type the 6 digits shown in Settings.</string>
|
||||
<string name="adbpair_title_code">Enter the Wi-Fi pairing code</string>
|
||||
<string name="adbpair_title_retry">Try the code again</string>
|
||||
<string name="adbpair_enter_code">Tap ✓ to pair</string>
|
||||
<string name="adbpair_enter_code">Enter code</string>
|
||||
<string name="adbpair_title_working">Setting up Steam</string>
|
||||
<string name="adbpair_title_done">Steam is ready</string>
|
||||
<string name="adbpair_done_text">Tap to go back to DroidDeck. You can turn Wireless debugging off now.</string>
|
||||
@@ -2697,8 +2644,7 @@
|
||||
|
||||
<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 %2$s release for %1$s</string>
|
||||
<string name="pextra_anticheat">Anti-Cheat</string>
|
||||
<string name="pextra_no_release">Could not find an ARM64 release for %1$s</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>
|
||||
@@ -4484,12 +4430,7 @@
|
||||
<string name="settings_place_drawer">In-game menu</string>
|
||||
<string name="settings_place_sheet">Steam or Desktop options (swipe up)</string>
|
||||
<string name="settings_place_steam_qam">Steam quick menu (•••)</string>
|
||||
<string name="dev_group_diagnostics">Diagnostics</string>
|
||||
<string name="dev_group_previews">UI previews</string>
|
||||
<string name="dev_group_log_files">Log files</string>
|
||||
<string name="dev_group_reset">Reset</string>
|
||||
<string name="dev_log_manage_hint">Share, save, or delete individual session logs.</string>
|
||||
<string name="dev_harness_overlay_hint">Show Dev Harness over the launcher and games.</string>
|
||||
<string name="dev_group_logs">Logs</string>
|
||||
<string name="dev_ui_zoo">UI zoo</string>
|
||||
<string name="dev_ui_zoo_hint">Screens that are hard to reach, shown only when you pick one</string>
|
||||
<string name="dev_ui_zoo_open">Open</string>
|
||||
@@ -4538,8 +4479,7 @@
|
||||
<string name="rail_sync">Syncthing</string>
|
||||
<string name="downloads_settings">Download settings</string>
|
||||
<string name="dev_tools_title">Developer tools</string>
|
||||
<string name="dev_tools_show">Show developer tools</string>
|
||||
<string name="dev_tools_hint">Show advanced testing and diagnostics controls.</string>
|
||||
<string name="dev_tools_hint">Agent, graphics logs and other tools for testing DroidDeck</string>
|
||||
<string name="sheet_lip">Options</string>
|
||||
<string name="sheet_scope_steam">Steam defaults · used each time Steam starts</string>
|
||||
<string name="sheet_scope_desktop">Desktop defaults · used each time Desktop starts</string>
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
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))
|
||||
}
|
||||
}
|
||||
@@ -1,77 +0,0 @@
|
||||
package com.droiddeck.launcher.core
|
||||
|
||||
import org.junit.Assert.*
|
||||
import org.junit.Test
|
||||
|
||||
class GameUpscalerTest {
|
||||
@Test fun aChoiceRoundTripsThroughTheGameEnvironment() {
|
||||
val choice = GameUpscaler.Choice(GameUpscaler.Mode.DLSS, GameUpscaler.Engine.XESS, 70, npuSync = true, signatureFix = true)
|
||||
val config = GameUpscaler.withChoice(GameEnvironment.Config(), "42", choice)
|
||||
assertEquals(choice, GameUpscaler.choice(config, "42"))
|
||||
assertNull(GameUpscaler.choice(config, "43"))
|
||||
}
|
||||
|
||||
@Test fun offRemovesOnlyTheUpscalerEntries() {
|
||||
val start = GameEnvironment.Config().withEntries("42", mapOf("FEX_MULTIBLOCK" to "0"))
|
||||
val on = GameUpscaler.withChoice(start, "42", GameUpscaler.Choice(GameUpscaler.Mode.FSR_XESS))
|
||||
val off = GameUpscaler.withChoice(on, "42", null)
|
||||
assertEquals(mapOf("FEX_MULTIBLOCK" to "0"), off.games["42"])
|
||||
}
|
||||
|
||||
@Test fun theSignatureFixIsOnlyKeptForDlss() {
|
||||
val fsr = GameUpscaler.entries(GameUpscaler.Choice(GameUpscaler.Mode.FSR_XESS, signatureFix = true))
|
||||
assertFalse(fsr.containsKey(GameUpscaler.SIGFIX))
|
||||
val dlss = GameUpscaler.entries(GameUpscaler.Choice(GameUpscaler.Mode.DLSS, signatureFix = true))
|
||||
assertEquals("1", dlss[GameUpscaler.SIGFIX])
|
||||
}
|
||||
|
||||
@Test fun unknownValuesFallBackToDefaults() {
|
||||
val config = GameEnvironment.Config().withEntries("7", mapOf(
|
||||
GameUpscaler.MODE to "fsr", GameUpscaler.ENGINE to "bogus", GameUpscaler.SHARPNESS to "250"))
|
||||
val choice = GameUpscaler.choice(config, "7")!!
|
||||
assertEquals(GameUpscaler.DEFAULT_ENGINE, choice.engine)
|
||||
assertEquals(100, choice.sharpness)
|
||||
assertNull(GameUpscaler.choice(GameEnvironment.Config().withEntries("7", mapOf(GameUpscaler.MODE to "x")), "7"))
|
||||
}
|
||||
|
||||
@Test fun npuEnginesRunOnTheGpuWithoutAnNpu() {
|
||||
assertEquals(GameUpscaler.Engine.FSR4_FULL_GPU, GameUpscaler.effectiveEngine(GameUpscaler.Engine.FSR4_NPU, false))
|
||||
assertEquals(GameUpscaler.Engine.FSR4_LITE_GPU, GameUpscaler.effectiveEngine(GameUpscaler.Engine.FSR4_LITE_NPU, false))
|
||||
assertEquals(GameUpscaler.Engine.FSR4_NPU, GameUpscaler.effectiveEngine(GameUpscaler.Engine.FSR4_NPU, true))
|
||||
assertEquals(GameUpscaler.Engine.XESS, GameUpscaler.effectiveEngine(GameUpscaler.Engine.XESS, false))
|
||||
}
|
||||
|
||||
@Test fun fsr40NpuChoicesSavedEarlierRunFullFsr4OnTheNpu() {
|
||||
val config = GameEnvironment.Config().withEntries("7", mapOf(
|
||||
GameUpscaler.MODE to "fsr", GameUpscaler.ENGINE to "fsr4_0_npu"))
|
||||
assertEquals(GameUpscaler.Engine.FSR4_NPU, GameUpscaler.choice(config, "7")!!.engine)
|
||||
assertEquals("fsr4_1_full_npu", GameUpscaler.Engine.FSR4_NPU.id)
|
||||
assertEquals(GameUpscaler.Engine.SGSR2, GameUpscaler.Engine.byId("sgsr2_gpu"))
|
||||
}
|
||||
|
||||
@Test fun dlssGamesHaveTheSignatureFixOnUnlessSwitchedOff() {
|
||||
val saved = GameEnvironment.Config().withEntries("7", mapOf(GameUpscaler.MODE to "dlss"))
|
||||
assertTrue(GameUpscaler.choice(saved, "7")!!.signatureFix)
|
||||
assertEquals("1", GameUpscaler.entries(GameUpscaler.Choice(GameUpscaler.Mode.DLSS))[GameUpscaler.SIGFIX])
|
||||
val off = GameUpscaler.entries(GameUpscaler.Choice(GameUpscaler.Mode.DLSS, signatureFix = false))
|
||||
assertEquals("0", off[GameUpscaler.SIGFIX])
|
||||
val reread = GameUpscaler.choice(GameEnvironment.Config().withEntries("7", off), "7")!!
|
||||
assertFalse(reread.signatureFix)
|
||||
}
|
||||
|
||||
@Test fun theControlFileUsesTheLayersKeys() {
|
||||
assertEquals("enabled=1\nbackend=fsr4_1_lite_gpu\nsharpness=0.55\nnpu_sync=0\n",
|
||||
GameUpscaler.controlText(GameUpscaler.Engine.FSR4_LITE_GPU, 55, npuSync = false, enabled = true))
|
||||
}
|
||||
|
||||
@Test fun theLayersStatusFileParses() {
|
||||
val status = GameUpscaler.parseStatus(
|
||||
"layer=1\nengine=fsr4\nbackend=fsr4_1_lite_gpu\nbackend_tag=FSR4.1-Lite-GPU\nactive=1\nnpu=0\n" +
|
||||
"render=960x540\noutput=1920x1080\ngpu_us=3250\nhtp_us=0\nreason=ok\nts_ms=99\n")!!
|
||||
assertTrue(status.active)
|
||||
assertEquals("FSR4.1-Lite-GPU", status.backendTag)
|
||||
assertEquals(3.25f, status.gpuMs, 0.001f)
|
||||
assertEquals("1920x1080", status.output)
|
||||
assertNull(GameUpscaler.parseStatus("active=1\n"))
|
||||
}
|
||||
}
|
||||
Loaded 100 of 206 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user