mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-30 10:05:41 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
723d78cc63 |
No files matched your search
@@ -322,9 +322,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:
|
||||
@@ -743,8 +740,7 @@ jobs:
|
||||
echo "version=$(grep -o "org.robolectric:robolectric:[0-9.]*" app/build.gradle | cut -d: -f3)" >> "$GITHUB_OUTPUT"
|
||||
# Robolectric downloads these from Maven Central on first use without retrying, and 429s fail whole test classes.
|
||||
# The cache path sits beside the workspace because runner homes are at different depths from it, and
|
||||
# actions/cache stores paths relative to the workspace. It is passed as an absolute path: the save action rejects
|
||||
# "..". Runners that keep their own ~/.m2 skip the cache.
|
||||
# actions/cache stores paths relative to the workspace. Runners that keep their own ~/.m2 skip the cache.
|
||||
- name: Place Robolectric's Android jars beside the workspace
|
||||
id: robolectric-jars
|
||||
run: |
|
||||
@@ -755,9 +751,7 @@ jobs:
|
||||
echo "cache=false" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
mkdir -p "$jars" "$(dirname "$m2")"
|
||||
jars=$(cd "$jars" && pwd)
|
||||
ln -sfn "$jars" "$m2"
|
||||
echo "path=$jars" >> "$GITHUB_OUTPUT"
|
||||
ln -sfn "$(cd "$jars" && pwd)" "$m2"
|
||||
echo "cache=true" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
- name: Restore Robolectric's Android jars
|
||||
@@ -765,7 +759,7 @@ jobs:
|
||||
if: steps.robolectric-jars.outputs.cache == 'true'
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: ${{ steps.robolectric-jars.outputs.path }}
|
||||
path: ../robolectric-jars
|
||||
key: robolectric-android-all-v3-${{ steps.robolectric.outputs.version }}-${{ github.run_id }}
|
||||
restore-keys: robolectric-android-all-v3-${{ steps.robolectric.outputs.version }}-
|
||||
- name: Count the restored Robolectric jars
|
||||
@@ -779,16 +773,7 @@ jobs:
|
||||
run: |
|
||||
set -o pipefail
|
||||
mkdir -p app/build
|
||||
# A Maven 429 fails every test class that needs the missing jar. The jars an attempt did get stay for the next.
|
||||
for wait in 60 180 0; do
|
||||
status=0
|
||||
./gradlew testReleaseUnitTest --console=plain --info --stacktrace -Drobolectric.logging=stderr -PndkVersion="$NDK_VERSION" 2>&1 | tee app/build/unit-tests.log || status=$?
|
||||
if [ "$status" = 0 ] || [ "$wait" = 0 ] || ! grep -Eq '^[[:space:]]*(Caused by: org\.gradle\.internal\.resource\.transport\.http\.HttpErrorStatusCodeException: Could not GET .*https://repo\.maven\.apache\.org/.*Received status code 429 from server|Caused by: java\.io\.IOException: Server returned HTTP response code: 429 for URL: https://repo\.maven\.apache\.org/)' app/build/unit-tests.log; then
|
||||
exit "$status"
|
||||
fi
|
||||
echo "::warning::Maven Central answered 429; running the unit tests again in ${wait}s"
|
||||
sleep "$wait"
|
||||
done
|
||||
./gradlew testReleaseUnitTest --console=plain --info --stacktrace -Drobolectric.logging=stderr -PndkVersion="$NDK_VERSION" 2>&1 | tee app/build/unit-tests.log
|
||||
|
||||
# actions/cache only saves when the job succeeds, so a run whose tests died on a Maven 429 never filled the cache.
|
||||
# Save the complete jars even after a failed test step, when this run added some; a partial download is dropped first.
|
||||
@@ -815,7 +800,7 @@ jobs:
|
||||
if: always() && steps.robolectric-jars-final.outputs.save == 'true'
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: ${{ steps.robolectric-jars.outputs.path }}
|
||||
path: ../robolectric-jars
|
||||
key: robolectric-android-all-v3-${{ steps.robolectric.outputs.version }}-${{ github.run_id }}
|
||||
|
||||
- name: Upload unit test diagnostics
|
||||
|
||||
@@ -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)
|
||||
|
||||
+2
-2
@@ -93,7 +93,7 @@ def trackingPack = rootProject.file('tools/packs/tracking/release.env').readLine
|
||||
def prootPackPin = rootProject.file('tools/packs/proot/release.env').readLines()
|
||||
.findAll { it.contains('=') && !it.startsWith('#') }
|
||||
.collectEntries { def kv = it.split('=', 2); [(kv[0].trim()): kv[1].trim()] }
|
||||
def addonPacks = ['proot', 'directaudio', 'tracking', 'xbox', 'comet', 'butler', 'powervr', 'ubisoft', '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) throw new GradleException("Add-on pack ${pack} is missing: run tools/packs/build.sh app/build/packs")
|
||||
@@ -203,7 +203,7 @@ android {
|
||||
}
|
||||
|
||||
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 {
|
||||
|
||||
@@ -30,7 +30,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)
|
||||
|
||||
|
||||
@@ -6,216 +6,8 @@ static const uint32_t OF3_LUMA_SPV[] = {0x07230203u,0x00010300u,0x0008000bu,0x00
|
||||
static const size_t OF3_LUMA_LEN = 481;
|
||||
static const uint32_t OF3_DOWNSAMPLE_SPV[] = {0x07230203u,0x00010300u,0x0008000bu,0x0000008au,0x00000000u,0x00020011u,0x00000001u,0x00020011u,0x00000032u,0x0006000bu,0x00000001u,0x4c534c47u,0x6474732eu,0x3035342eu,0x00000000u,0x0003000eu,0x00000000u,0x00000001u,0x0006000fu,0x00000005u,0x00000004u,0x6e69616du,0x00000000u,0x0000000du,0x00060010u,0x00000004u,0x00000011u,0x00000010u,0x00000010u,0x00000001u,0x00030003u,0x00000002u,0x000001c2u,0x00040005u,0x00000004u,0x6e69616du,0x00000000u,0x00030005u,0x00000009u,0x00646967u,0x00080005u,0x0000000du,0x475f6c67u,0x61626f6cu,0x766e496cu,0x7461636fu,0x496e6f69u,0x00000044u,0x00030005u,0x00000012u,0x006d6964u,0x00040005u,0x00000016u,0x74734475u,0x00000000u,0x00040005u,0x00000030u,0x44637273u,0x00006d69u,0x00040005u,0x00000034u,0x63725375u,0x00000000u,0x00040005u,0x0000003au,0x65736162u,0x00000000u,0x00030005u,0x00000044u,0x00000068u,0x00030005u,0x0000004au,0x00000061u,0x00030005u,0x00000059u,0x00000062u,0x00030005u,0x00000065u,0x00000063u,0x00030005u,0x00000071u,0x00000064u,0x00040047u,0x0000000du,0x0000000bu,0x0000001cu,0x00030047u,0x00000016u,0x00000019u,0x00040047u,0x00000016u,0x00000021u,0x00000030u,0x00040047u,0x00000016u,0x00000022u,0x00000000u,0x00040047u,0x00000034u,0x00000021u,0x00000020u,0x00040047u,0x00000034u,0x00000022u,0x00000000u,0x00040047u,0x00000089u,0x0000000bu,0x00000019u,0x00020013u,0x00000002u,0x00030021u,0x00000003u,0x00000002u,0x00040015u,0x00000006u,0x00000020u,0x00000001u,0x00040017u,0x00000007u,0x00000006u,0x00000002u,0x00040020u,0x00000008u,0x00000007u,0x00000007u,0x00040015u,0x0000000au,0x00000020u,0x00000000u,0x00040017u,0x0000000bu,0x0000000au,0x00000003u,0x00040020u,0x0000000cu,0x00000001u,0x0000000bu,0x0004003bu,0x0000000cu,0x0000000du,0x00000001u,0x00040017u,0x0000000eu,0x0000000au,0x00000002u,0x00030016u,0x00000013u,0x00000020u,0x00090019u,0x00000014u,0x00000013u,0x00000001u,0x00000000u,0x00000000u,0x00000000u,0x00000002u,0x00000003u,0x00040020u,0x00000015u,0x00000000u,0x00000014u,0x0004003bu,0x00000015u,0x00000016u,0x00000000u,0x00020014u,0x00000019u,0x0004002bu,0x0000000au,0x0000001au,0x00000000u,0x00040020u,0x0000001bu,0x00000007u,0x00000006u,0x0004002bu,0x0000000au,0x00000024u,0x00000001u,0x00040017u,0x0000002eu,0x00000013u,0x00000002u,0x00040020u,0x0000002fu,0x00000007u,0x0000002eu,0x00090019u,0x00000031u,0x00000013u,0x00000001u,0x00000000u,0x00000000u,0x00000000u,0x00000001u,0x00000000u,0x0003001bu,0x00000032u,0x00000031u,0x00040020u,0x00000033u,0x00000000u,0x00000032u,0x0004003bu,0x00000033u,0x00000034u,0x00000000u,0x0004002bu,0x00000006u,0x00000036u,0x00000000u,0x0004002bu,0x00000013u,0x0000003du,0x40000000u,0x0004002bu,0x00000013u,0x0000003fu,0x3f800000u,0x0004002bu,0x00000013u,0x00000045u,0x3f000000u,0x00040020u,0x00000049u,0x00000007u,0x00000013u,0x0004002bu,0x00000013u,0x00000055u,0x00000000u,0x00040017u,0x00000056u,0x00000013u,0x00000004u,0x0004002bu,0x00000013u,0x00000085u,0x3e800000u,0x0004002bu,0x0000000au,0x00000088u,0x00000010u,0x0006002cu,0x0000000bu,0x00000089u,0x00000088u,0x00000088u,0x00000024u,0x00050036u,0x00000002u,0x00000004u,0x00000000u,0x00000003u,0x000200f8u,0x00000005u,0x0004003bu,0x00000008u,0x00000009u,0x00000007u,0x0004003bu,0x00000008u,0x00000012u,0x00000007u,0x0004003bu,0x0000002fu,0x00000030u,0x00000007u,0x0004003bu,0x0000002fu,0x0000003au,0x00000007u,0x0004003bu,0x0000002fu,0x00000044u,0x00000007u,0x0004003bu,0x00000049u,0x0000004au,0x00000007u,0x0004003bu,0x00000049u,0x00000059u,0x00000007u,0x0004003bu,0x00000049u,0x00000065u,0x00000007u,0x0004003bu,0x00000049u,0x00000071u,0x00000007u,0x0004003du,0x0000000bu,0x0000000fu,0x0000000du,0x0007004fu,0x0000000eu,0x00000010u,0x0000000fu,0x0000000fu,0x00000000u,0x00000001u,0x0004007cu,0x00000007u,0x00000011u,0x00000010u,0x0003003eu,0x00000009u,0x00000011u,0x0004003du,0x00000014u,0x00000017u,0x00000016u,0x00040068u,0x00000007u,0x00000018u,0x00000017u,0x0003003eu,0x00000012u,0x00000018u,0x00050041u,0x0000001bu,0x0000001cu,0x00000009u,0x0000001au,0x0004003du,0x00000006u,0x0000001du,0x0000001cu,0x00050041u,0x0000001bu,0x0000001eu,0x00000012u,0x0000001au,0x0004003du,0x00000006u,0x0000001fu,0x0000001eu,0x000500afu,0x00000019u,0x00000020u,0x0000001du,0x0000001fu,0x000400a8u,0x00000019u,0x00000021u,0x00000020u,0x000300f7u,0x00000023u,0x00000000u,0x000400fau,0x00000021u,0x00000022u,0x00000023u,0x000200f8u,0x00000022u,0x00050041u,0x0000001bu,0x00000025u,0x00000009u,0x00000024u,0x0004003du,0x00000006u,0x00000026u,0x00000025u,0x00050041u,0x0000001bu,0x00000027u,0x00000012u,0x00000024u,0x0004003du,0x00000006u,0x00000028u,0x00000027u,0x000500afu,0x00000019u,0x00000029u,0x00000026u,0x00000028u,0x000200f9u,0x00000023u,0x000200f8u,0x00000023u,0x000700f5u,0x00000019u,0x0000002au,0x00000020u,0x00000005u,0x00000029u,0x00000022u,0x000300f7u,0x0000002cu,0x00000000u,0x000400fau,0x0000002au,0x0000002bu,0x0000002cu,0x000200f8u,0x0000002bu,0x000100fdu,0x000200f8u,0x0000002cu,0x0004003du,0x00000032u,0x00000035u,0x00000034u,0x00040064u,0x00000031u,0x00000037u,0x00000035u,0x0005006Line truncated
|
||||
static const size_t OF3_DOWNSAMPLE_LEN = 753;
|
||||
static const uint32_t OF3_FLOW_SPV[] = {
|
||||
0x07230203u,0x00010300u,0x0008000bu,0x000001feu,0x00000000u,0x00020011u,0x00000001u,0x00020011u,
|
||||
0x00000032u,0x0006000bu,0x00000001u,0x4c534c47u,0x6474732eu,0x3035342eu,0x00000000u,0x0003000eu,
|
||||
0x00000000u,0x00000001u,0x0006000fu,0x00000005u,0x00000004u,0x6e69616du,0x00000000u,0x0000000du,
|
||||
0x00060010u,0x00000004u,0x00000011u,0x00000010u,0x00000010u,0x00000001u,0x00030003u,0x00000002u,
|
||||
0x000001c2u,0x00040005u,0x00000004u,0x6e69616du,0x00000000u,0x00080005u,0x0000000du,0x475f6c67u,
|
||||
0x61626f6cu,0x766e496cu,0x7461636fu,0x496e6f69u,0x00000044u,0x00040005u,0x00000016u,0x6f6c4675u,
|
||||
0x00000077u,0x00030005u,0x00000040u,0x00000055u,0x00060006u,0x00000040u,0x00000000u,0x776f6c66u,
|
||||
0x6c616353u,0x00000065u,0x00050006u,0x00000040u,0x00000001u,0x6576656cu,0x0000006cu,0x00050006u,
|
||||
0x00000040u,0x00000002u,0x30646170u,0x00000000u,0x00050006u,0x00000040u,0x00000003u,0x31646170u,
|
||||
0x00000000u,0x00030005u,0x00000042u,0x00000000u,0x00050005u,0x0000004eu,0x65725075u,0x74636964u,
|
||||
0x0000726fu,0x00050005u,0x0000007bu,0x76657270u,0x63746150u,0x00000068u,0x00050005u,0x0000007du,
|
||||
0x6d754c75u,0x65725061u,0x00000076u,0x00050005u,0x000000c9u,0x6d754c75u,0x72754361u,0x00000072u,
|
||||
0x00040047u,0x0000000du,0x0000000bu,0x0000001cu,0x00030047u,0x00000016u,0x00000019u,0x00040047u,
|
||||
0x00000016u,0x00000021u,0x00000030u,0x00040047u,0x00000016u,0x00000022u,0x00000000u,0x00030047u,
|
||||
0x00000040u,0x00000002u,0x00050048u,0x00000040u,0x00000000u,0x00000023u,0x00000000u,0x00050048u,
|
||||
0x00000040u,0x00000001u,0x00000023u,0x00000004u,0x00050048u,0x00000040u,0x00000002u,0x00000023u,
|
||||
0x00000008u,0x00050048u,0x00000040u,0x00000003u,0x00000023u,0x0000000cu,0x00040047u,0x00000042u,
|
||||
0x00000021u,0x00000000u,0x00040047u,0x00000042u,0x00000022u,0x00000000u,0x00040047u,0x0000004eu,
|
||||
0x00000021u,0x00000022u,0x00040047u,0x0000004eu,0x00000022u,0x00000000u,0x00040047u,0x0000007du,
|
||||
0x00000021u,0x00000020u,0x00040047u,0x0000007du,0x00000022u,0x00000000u,0x00040047u,0x000000c9u,
|
||||
0x00000021u,0x00000021u,0x00040047u,0x000000c9u,0x00000022u,0x00000000u,0x00040047u,0x000001b3u,
|
||||
0x0000000bu,0x00000019u,0x00020013u,0x00000002u,0x00030021u,0x00000003u,0x00000002u,0x00040015u,
|
||||
0x00000006u,0x00000020u,0x00000001u,0x00040017u,0x00000007u,0x00000006u,0x00000002u,0x00040015u,
|
||||
0x0000000au,0x00000020u,0x00000000u,0x00040017u,0x0000000bu,0x0000000au,0x00000003u,0x00040020u,
|
||||
0x0000000cu,0x00000001u,0x0000000bu,0x0004003bu,0x0000000cu,0x0000000du,0x00000001u,0x00040017u,
|
||||
0x0000000eu,0x0000000au,0x00000002u,0x00030016u,0x00000013u,0x00000020u,0x00090019u,0x00000014u,
|
||||
0x00000013u,0x00000001u,0x00000000u,0x00000000u,0x00000000u,0x00000002u,0x00000002u,0x00040020u,
|
||||
0x00000015u,0x00000000u,0x00000014u,0x0004003bu,0x00000015u,0x00000016u,0x00000000u,0x00020014u,
|
||||
0x00000019u,0x0004002bu,0x0000000au,0x0000001au,0x00000000u,0x0004002bu,0x0000000au,0x00000024u,
|
||||
0x00000001u,0x00040017u,0x0000002eu,0x00000013u,0x00000002u,0x0004002bu,0x00000013u,0x00000031u,
|
||||
0x3f800000u,0x0004002bu,0x00000013u,0x00000039u,0x3f000000u,0x00040020u,0x0000003eu,0x00000007u,
|
||||
0x00000013u,0x0006001eu,0x00000040u,0x00000013u,0x0000000au,0x0000000au,0x0000000au,0x00040020u,
|
||||
0x00000041u,0x00000002u,0x00000040u,0x0004003bu,0x00000041u,0x00000042u,0x00000002u,0x0004002bu,
|
||||
0x00000006u,0x00000043u,0x00000001u,0x00040020u,0x00000044u,0x00000002u,0x0000000au,0x00090019u,
|
||||
0x0000004bu,0x00000013u,0x00000001u,0x00000000u,0x00000000u,0x00000000u,0x00000001u,0x00000000u,
|
||||
0x0003001bu,0x0000004cu,0x0000004bu,0x00040020u,0x0000004du,0x00000000u,0x0000004cu,0x0004003bu,
|
||||
0x0000004du,0x0000004eu,0x00000000u,0x0004002bu,0x00000013u,0x00000051u,0x00000000u,0x00040017u,
|
||||
0x00000052u,0x00000013u,0x00000004u,0x0004002bu,0x00000006u,0x0000005au,0xffffffffu,0x0004002bu,
|
||||
0x00000006u,0x0000006du,0x00000003u,0x0004002bu,0x0000000au,0x00000078u,0x00000009u,0x0004001cu,
|
||||
0x00000079u,0x00000013u,0x00000078u,0x00040020u,0x0000007au,0x00000007u,0x00000079u,0x0004003bu,
|
||||
0x0000004du,0x0000007du,0x00000000u,0x0004002bu,0x00000013u,0x0000008cu,0x7f7fffffu,0x0004002bu,
|
||||
0x00000006u,0x00000090u,0xfffffffdu,0x0004003bu,0x0000004du,0x000000c9u,0x00000000u,0x0004002bu,
|
||||
0x00000013u,0x000000deu,0x3bc49ba6u,0x0004002bu,0x00000013u,0x00000120u,0xbf800000u,0x0005002cu,
|
||||
0x0000002eu,0x00000121u,0x00000120u,0x00000051u,0x0005002cu,0x0000002eu,0x00000125u,0x00000031u,
|
||||
0x00000051u,0x0005002cu,0x0000002eu,0x00000129u,0x00000051u,0x00000120u,0x0005002cu,0x0000002eu,
|
||||
0x0000012du,0x00000051u,0x00000031u,0x0004002bu,0x00000013u,0x0000017bu,0x40000000u,0x0004002bu,
|
||||
0x00000013u,0x00000189u,0x358637bdu,0x0004002bu,0x00000013u,0x00000193u,0xbf000000u,0x0004002bu,
|
||||
0x0000000au,0x000001b2u,0x00000010u,0x0006002cu,0x0000000bu,0x000001b3u,0x000001b2u,0x000001b2u,
|
||||
0x00000024u,0x0005002cu,0x0000002eu,0x000001efu,0x00000031u,0x00000031u,0x0005002cu,0x0000002eu,
|
||||
0x000001f0u,0x00000039u,0x00000039u,0x00040017u,0x000001fbu,0x00000019u,0x00000002u,0x00050036u,
|
||||
0x00000002u,0x00000004u,0x00000000u,0x00000003u,0x000200f8u,0x00000005u,0x0004003bu,0x0000007au,
|
||||
0x0000007bu,0x00000007u,0x000300f7u,0x000001b4u,0x00000000u,0x000300fbu,0x0000001au,0x000001b5u,
|
||||
0x000200f8u,0x000001b5u,0x0004003du,0x0000000bu,0x0000000fu,0x0000000du,0x0007004fu,0x0000000eu,
|
||||
0x00000010u,0x0000000fu,0x0000000fu,0x00000000u,0x00000001u,0x0004007cu,0x00000007u,0x00000011u,
|
||||
0x00000010u,0x0004003du,0x00000014u,0x00000017u,0x00000016u,0x00040068u,0x00000007u,0x00000018u,
|
||||
0x00000017u,0x00050051u,0x00000006u,0x0000001du,0x00000011u,0x00000000u,0x00050051u,0x00000006u,
|
||||
0x0000001fu,0x00000018u,0x00000000u,0x000500afu,0x00000019u,0x00000020u,0x0000001du,0x0000001fu,
|
||||
0x000400a8u,0x00000019u,0x00000021u,0x00000020u,0x000300f7u,0x00000023u,0x00000000u,0x000400fau,
|
||||
0x00000021u,0x00000022u,0x00000023u,0x000200f8u,0x00000022u,0x00050051u,0x00000006u,0x00000026u,
|
||||
0x00000011u,0x00000001u,0x00050051u,0x00000006u,0x00000028u,0x00000018u,0x00000001u,0x000500afu,
|
||||
0x00000019u,0x00000029u,0x00000026u,0x00000028u,0x000200f9u,0x00000023u,0x000200f8u,0x00000023u,
|
||||
0x000700f5u,0x00000019u,0x0000002au,0x00000020u,0x000001b5u,0x00000029u,0x00000022u,0x000300f7u,
|
||||
0x0000002cu,0x00000000u,0x000400fau,0x0000002au,0x0000002bu,0x0000002cu,0x000200f8u,0x0000002bu,
|
||||
0x000200f9u,0x000001b4u,0x000200f8u,0x0000002cu,0x0004006fu,0x0000002eu,0x00000033u,0x00000018u,
|
||||
0x00050088u,0x0000002eu,0x00000035u,0x000001efu,0x00000033u,0x0004006fu,0x0000002eu,0x00000038u,
|
||||
0x00000011u,0x00050081u,0x0000002eu,0x0000003bu,0x00000038u,0x000001f0u,0x00050085u,0x0000002eu,
|
||||
0x0000003du,0x0000003bu,0x00000035u,0x00050041u,0x00000044u,0x00000045u,0x00000042u,0x00000043u,
|
||||
0x0004003du,0x0000000au,0x00000046u,0x00000045u,0x00040070u,0x00000013u,0x00000047u,0x00000046u,
|
||||
0x0004007fu,0x00000013u,0x00000048u,0x00000047u,0x0006000cu,0x00000013u,0x00000049u,0x00000001u,
|
||||
0x0000001du,0x00000048u,0x0004003du,0x0000004cu,0x0000004fu,0x0000004eu,0x00070058u,0x00000052u,
|
||||
0x00000053u,0x0000004fu,0x0000003du,0x00000002u,0x00000051u,0x0007004fu,0x0000002eu,0x00000054u,
|
||||
0x00000053u,0x00000053u,0x00000000u,0x00000001u,0x0005008eu,0x0000002eu,0x00000058u,0x00000054u,
|
||||
0x00000049u,0x000200f9u,0x0000005bu,0x000200f8u,0x0000005bu,0x000700f5u,0x00000006u,0x000001beu,
|
||||
0x0000005au,0x0000002cu,0x0000008au,0x0000005eu,0x000500b3u,0x00000019u,0x00000061u,0x000001beu,
|
||||
0x00000043u,0x000400f6u,0x0000005du,0x0000005eu,0x00000000u,0x000400fau,0x00000061u,0x0000005cu,
|
||||
0x0000005du,0x000200f8u,0x0000005cu,0x000200f9u,0x00000063u,0x000200f8u,0x00000063u,0x000700f5u,
|
||||
0x00000006u,0x000001e4u,0x0000005au,0x0000005cu,0x00000070u,0x00000064u,0x000500b3u,0x00000019u,
|
||||
0x00000069u,0x000001e4u,0x00000043u,0x000400f6u,0x00000065u,0x00000064u,0x00000000u,0x000400fau,
|
||||
0x00000069u,0x00000064u,0x00000065u,0x000200f8u,0x00000064u,0x00050080u,0x00000006u,0x0000006cu,
|
||||
0x000001beu,0x00000043u,0x00050084u,0x00000006u,0x0000006eu,0x0000006cu,0x0000006du,0x00050080u,
|
||||
0x00000006u,0x00000070u,0x000001e4u,0x00000043u,0x00050080u,0x00000006u,0x00000071u,0x0000006eu,
|
||||
0x00000070u,0x0004006fu,0x00000013u,0x00000074u,0x000001e4u,0x0004006fu,0x00000013u,0x00000076u,
|
||||
0x000001beu,0x00050050u,0x0000002eu,0x00000077u,0x00000074u,0x00000076u,0x0004003du,0x0000004cu,
|
||||
0x0000007eu,0x0000007du,0x00050085u,0x0000002eu,0x00000082u,0x00000077u,0x00000035u,0x00050081u,
|
||||
0x0000002eu,0x00000083u,0x0000003du,0x00000082u,0x00070058u,0x00000052u,0x00000084u,0x0000007eu,
|
||||
0x00000083u,0x00000002u,0x00000051u,0x00050051u,0x00000013u,0x00000085u,0x00000084u,0x00000000u,
|
||||
0x00050041u,0x0000003eu,0x00000086u,0x0000007bu,0x00000071u,0x0003003eu,0x00000086u,0x00000085u,
|
||||
0x000200f9u,0x00000063u,0x000200f8u,0x00000065u,0x000200f9u,0x0000005eu,0x000200f8u,0x0000005eu,
|
||||
0x00050080u,0x00000006u,0x0000008au,0x000001beu,0x00000043u,0x000200f9u,0x0000005bu,0x000200f8u,
|
||||
0x0000005du,0x000200f9u,0x00000091u,0x000200f8u,0x00000091u,0x000700f5u,0x0000002eu,0x000001cfu,
|
||||
0x00000058u,0x0000005du,0x000001e6u,0x00000094u,0x000700f5u,0x00000013u,0x000001c0u,0x0000008cu,
|
||||
0x0000005du,0x000001dfu,0x00000094u,0x000700f5u,0x00000006u,0x000001bfu,0x00000090u,0x0000005du,
|
||||
0x000000f3u,0x00000094u,0x000500b3u,0x00000019u,0x00000097u,0x000001bfu,0x0000006du,0x000400f6u,
|
||||
0x00000093u,0x00000094u,0x00000000u,0x000400fau,0x00000097u,0x00000092u,0x00000093u,0x000200f8u,
|
||||
0x00000092u,0x000200f9u,0x00000099u,0x000200f8u,0x00000099u,0x000700f5u,0x00000013u,0x000001dfu,
|
||||
0x000001c0u,0x00000092u,0x000001fau,0x0000009cu,0x000700f5u,0x00000006u,0x000001d8u,0x00000090u,
|
||||
0x00000092u,0x000000f1u,0x0000009cu,0x000700f5u,0x0000002eu,0x000001e6u,0x000001cfu,0x00000092u,
|
||||
0x000001fdu,0x0000009cu,0x000500b3u,0x00000019u,0x0000009fu,0x000001d8u,0x0000006du,0x000400f6u,
|
||||
0x0000009bu,0x0000009cu,0x00000000u,0x000400fau,0x0000009fu,0x0000009au,0x0000009bu,0x000200f8u,
|
||||
0x0000009au,0x0004006fu,0x00000013u,0x000000a3u,0x000001d8u,0x0004006fu,0x00000013u,0x000000a5u,
|
||||
0x000001bfu,0x00050050u,0x0000002eu,0x000000a6u,0x000000a3u,0x000000a5u,0x00050081u,0x0000002eu,
|
||||
0x000000a7u,0x00000058u,0x000000a6u,0x000200f9u,0x000000aau,0x000200f8u,0x000000aau,0x000700f5u,
|
||||
0x00000013u,0x000001ddu,0x00000051u,0x0000009au,0x000001e3u,0x000000adu,0x000700f5u,0x00000006u,
|
||||
0x000001dau,0x0000005au,0x0000009au,0x000000ddu,0x000000adu,0x000500b3u,0x00000019u,0x000000b0u,
|
||||
0x000001dau,0x00000043u,0x000400f6u,0x000000acu,0x000000adu,0x00000000u,0x000400fau,0x000000b0u,
|
||||
0x000000abu,0x000000acu,0x000200f8u,0x000000abu,0x000200f9u,0x000000b2u,0x000200f8u,0x000000b2u,
|
||||
0x000700f5u,0x00000013u,0x000001e3u,0x000001ddu,0x000000abu,0x000000d9u,0x000000b3u,0x000700f5u,
|
||||
0x00000006u,0x000001e1u,0x0000005au,0x000000abu,0x000000c4u,0x000000b3u,0x000500b3u,0x00000019u,
|
||||
0x000000b8u,0x000001e1u,0x00000043u,0x000400f6u,0x000000b4u,0x000000b3u,0x00000000u,0x000400fau,
|
||||
0x000000b8u,0x000000b3u,0x000000b4u,0x000200f8u,0x000000b3u,0x0004006fu,0x00000013u,0x000000bbu,
|
||||
0x000001e1u,0x0004006fu,0x00000013u,0x000000bdu,0x000001dau,0x00050050u,0x0000002eu,0x000000beu,
|
||||
0x000000bbu,0x000000bdu,0x00050080u,0x00000006u,0x000000c1u,0x000001dau,0x00000043u,0x00050084u,
|
||||
0x00000006u,0x000000c2u,0x000000c1u,0x0000006du,0x00050080u,0x00000006u,0x000000c4u,0x000001e1u,
|
||||
0x00000043u,0x00050080u,0x00000006u,0x000000c5u,0x000000c2u,0x000000c4u,0x00050041u,0x0000003eu,
|
||||
0x000000c6u,0x0000007bu,0x000000c5u,0x0004003du,0x00000013u,0x000000c7u,0x000000c6u,0x0004003du,
|
||||
0x0000004cu,0x000000cau,0x000000c9u,0x00050081u,0x0000002eu,0x000000ceu,0x000000beu,0x000000a7u,
|
||||
0x00050085u,0x0000002eu,0x000000d0u,0x000000ceu,0x00000035u,0x00050081u,0x0000002eu,0x000000d1u,
|
||||
0x0000003du,0x000000d0u,0x00070058u,0x00000052u,0x000000d2u,0x000000cau,0x000000d1u,0x00000002u,
|
||||
0x00000051u,0x00050051u,0x00000013u,0x000000d3u,0x000000d2u,0x00000000u,0x00050083u,0x00000013u,
|
||||
0x000000d6u,0x000000c7u,0x000000d3u,0x0006000cu,0x00000013u,0x000000d7u,0x00000001u,0x00000004u,
|
||||
0x000000d6u,0x00050081u,0x00000013u,0x000000d9u,0x000001e3u,0x000000d7u,0x000200f9u,0x000000b2u,
|
||||
0x000200f8u,0x000000b4u,0x000200f9u,0x000000adu,0x000200f8u,0x000000adu,0x00050080u,0x00000006u,
|
||||
0x000000ddu,0x000001dau,0x00000043u,0x000200f9u,0x000000aau,0x000200f8u,0x000000acu,0x0006000cu,
|
||||
0x00000013u,0x000000e1u,0x00000001u,0x00000004u,0x000000a3u,0x0006000cu,0x00000013u,0x000000e4u,
|
||||
0x00000001u,0x00000004u,0x000000a5u,0x00050081u,0x00000013u,0x000000e5u,0x000000e1u,0x000000e4u,
|
||||
0x00050085u,0x00000013u,0x000000e6u,0x000000deu,0x000000e5u,0x00050081u,0x00000013u,0x000000e8u,
|
||||
0x000001ddu,0x000000e6u,0x000500b8u,0x00000019u,0x000000ebu,0x000000e8u,0x000001dfu,0x000600a9u,
|
||||
0x00000013u,0x000001fau,0x000000ebu,0x000000e8u,0x000001dfu,0x00050050u,0x000001fbu,0x000001fcu,
|
||||
0x000000ebu,0x000000ebu,0x000600a9u,0x0000002eu,0x000001fdu,0x000001fcu,0x000000a7u,0x000001e6u,
|
||||
0x000200f9u,0x0000009cu,0x000200f8u,0x0000009cu,0x00050080u,0x00000006u,0x000000f1u,0x000001d8u,
|
||||
0x00000043u,0x000200f9u,0x00000099u,0x000200f8u,0x0000009bu,0x000200f9u,0x00000094u,0x000200f8u,
|
||||
0x00000094u,0x00050080u,0x00000006u,0x000000f3u,0x000001bfu,0x00000043u,0x000200f9u,0x00000091u,
|
||||
0x000200f8u,0x00000093u,0x000500aau,0x00000019u,0x000000f6u,0x00000046u,0x0000001au,0x000300f7u,
|
||||
0x000000f8u,0x00000000u,0x000400fau,0x000000f6u,0x000000f7u,0x000000f8u,0x000200f8u,0x000000f7u,
|
||||
0x000200f9u,0x00000100u,0x000200f8u,0x00000100u,0x000700f5u,0x00000013u,0x000001c5u,0x00000051u,
|
||||
0x000000f7u,0x000001d7u,0x00000103u,0x000700f5u,0x00000013u,0x000001c4u,0x00000051u,0x000000f7u,
|
||||
0x000001d6u,0x00000103u,0x000700f5u,0x00000013u,0x000001c3u,0x00000051u,0x000000f7u,0x000001d5u,
|
||||
0x00000103u,0x000700f5u,0x00000013u,0x000001c2u,0x00000051u,0x000000f7u,0x000001d4u,0x00000103u,
|
||||
0x000700f5u,0x00000006u,0x000001c1u,0x0000005au,0x000000f7u,0x0000016eu,0x00000103u,0x000500b3u,
|
||||
0x00000019u,0x00000106u,0x000001c1u,0x00000043u,0x000400f6u,0x00000102u,0x00000103u,0x00000000u,
|
||||
0x000400fau,0x00000106u,0x00000101u,0x00000102u,0x000200f8u,0x00000101u,0x000200f9u,0x00000108u,
|
||||
0x000200f8u,0x00000108u,0x000700f5u,0x00000013u,0x000001d7u,0x000001c5u,0x00000101u,0x0000016au,
|
||||
0x00000109u,0x000700f5u,0x00000013u,0x000001d6u,0x000001c4u,0x00000101u,0x0000015bu,0x00000109u,
|
||||
0x000700f5u,0x00000013u,0x000001d5u,0x000001c3u,0x00000101u,0x0000014cu,0x00000109u,0x000700f5u,
|
||||
0x00000013u,0x000001d4u,0x000001c2u,0x00000101u,0x0000013du,0x00000109u,0x000700f5u,0x00000006u,
|
||||
0x000001d1u,0x0000005au,0x00000101u,0x0000011au,0x00000109u,0x000500b3u,0x00000019u,0x0000010eu,
|
||||
0x000001d1u,0x00000043u,0x000400f6u,0x0000010au,0x00000109u,0x00000000u,0x000400fau,0x0000010eu,
|
||||
0x00000109u,0x0000010au,0x000200f8u,0x00000109u,0x0004006fu,0x00000013u,0x00000111u,0x000001d1u,
|
||||
0x0004006fu,0x00000013u,0x00000113u,0x000001c1u,0x00050050u,0x0000002eu,0x00000114u,0x00000111u,
|
||||
0x00000113u,0x00050080u,0x00000006u,0x00000117u,0x000001c1u,0x00000043u,0x00050084u,0x00000006u,
|
||||
0x00000118u,0x00000117u,0x0000006du,0x00050080u,0x00000006u,0x0000011au,0x000001d1u,0x00000043u,
|
||||
0x00050080u,0x00000006u,0x0000011bu,0x00000118u,0x0000011au,0x00050041u,0x0000003eu,0x0000011cu,
|
||||
0x0000007bu,0x0000011bu,0x0004003du,0x00000013u,0x0000011du,0x0000011cu,0x00050081u,0x0000002eu,
|
||||
0x00000122u,0x000001cfu,0x00000121u,0x00050081u,0x0000002eu,0x00000126u,0x000001cfu,0x00000125u,
|
||||
0x00050081u,0x0000002eu,0x0000012au,0x000001cfu,0x00000129u,0x00050081u,0x0000002eu,0x0000012eu,
|
||||
0x000001cfu,0x0000012du,0x0004003du,0x0000004cu,0x00000130u,0x000000c9u,0x00050081u,0x0000002eu,
|
||||
0x00000134u,0x00000114u,0x00000122u,0x00050085u,0x0000002eu,0x00000136u,0x00000134u,0x00000035u,
|
||||
0x00050081u,0x0000002eu,0x00000137u,0x0000003du,0x00000136u,0x00070058u,0x00000052u,0x00000138u,
|
||||
0x00000130u,0x00000137u,0x00000002u,0x00000051u,0x00050051u,0x00000013u,0x00000139u,0x00000138u,
|
||||
0x00000000u,0x00050083u,0x00000013u,0x0000013au,0x0000011du,0x00000139u,0x0006000cu,0x00000013u,
|
||||
0x0000013bu,0x00000001u,0x00000004u,0x0000013au,0x00050081u,0x00000013u,0x0000013du,0x000001d4u,
|
||||
0x0000013bu,0x0004003du,0x0000004cu,0x0000013fu,0x000000c9u,0x00050081u,0x0000002eu,0x00000143u,
|
||||
0x00000114u,0x00000126u,0x00050085u,0x0000002eu,0x00000145u,0x00000143u,0x00000035u,0x00050081u,
|
||||
0x0000002eu,0x00000146u,0x0000003du,0x00000145u,0x00070058u,0x00000052u,0x00000147u,0x0000013fu,
|
||||
0x00000146u,0x00000002u,0x00000051u,0x00050051u,0x00000013u,0x00000148u,0x00000147u,0x00000000u,
|
||||
0x00050083u,0x00000013u,0x00000149u,0x0000011du,0x00000148u,0x0006000cu,0x00000013u,0x0000014au,
|
||||
0x00000001u,0x00000004u,0x00000149u,0x00050081u,0x00000013u,0x0000014cu,0x000001d5u,0x0000014au,
|
||||
0x0004003du,0x0000004cu,0x0000014eu,0x000000c9u,0x00050081u,0x0000002eu,0x00000152u,0x00000114u,
|
||||
0x0000012au,0x00050085u,0x0000002eu,0x00000154u,0x00000152u,0x00000035u,0x00050081u,0x0000002eu,
|
||||
0x00000155u,0x0000003du,0x00000154u,0x00070058u,0x00000052u,0x00000156u,0x0000014eu,0x00000155u,
|
||||
0x00000002u,0x00000051u,0x00050051u,0x00000013u,0x00000157u,0x00000156u,0x00000000u,0x00050083u,
|
||||
0x00000013u,0x00000158u,0x0000011du,0x00000157u,0x0006000cu,0x00000013u,0x00000159u,0x00000001u,
|
||||
0x00000004u,0x00000158u,0x00050081u,0x00000013u,0x0000015bu,0x000001d6u,0x00000159u,0x0004003du,
|
||||
0x0000004cu,0x0000015du,0x000000c9u,0x00050081u,0x0000002eu,0x00000161u,0x00000114u,0x0000012eu,
|
||||
0x00050085u,0x0000002eu,0x00000163u,0x00000161u,0x00000035u,0x00050081u,0x0000002eu,0x00000164u,
|
||||
0x0000003du,0x00000163u,0x00070058u,0x00000052u,0x00000165u,0x0000015du,0x00000164u,0x00000002u,
|
||||
0x00000051u,0x00050051u,0x00000013u,0x00000166u,0x00000165u,0x00000000u,0x00050083u,0x00000013u,
|
||||
0x00000167u,0x0000011du,0x00000166u,0x0006000cu,0x00000013u,0x00000168u,0x00000001u,0x00000004u,
|
||||
0x00000167u,0x00050081u,0x00000013u,0x0000016au,0x000001d7u,0x00000168u,0x000200f9u,0x00000108u,
|
||||
0x000200f8u,0x0000010au,0x000200f9u,0x00000103u,0x000200f8u,0x00000103u,0x00050080u,0x00000006u,
|
||||
0x0000016eu,0x000001c1u,0x00000043u,0x000200f9u,0x00000100u,0x000200f8u,0x00000102u,0x00050081u,
|
||||
0x00000013u,0x00000170u,0x000001c2u,0x000000deu,0x00050081u,0x00000013u,0x00000172u,0x000001c3u,
|
||||
0x000000deu,0x00050081u,0x00000013u,0x00000174u,0x000001c4u,0x000000deu,0x00050081u,0x00000013u,
|
||||
0x00000176u,0x000001c5u,0x000000deu,0x00050085u,0x00000013u,0x0000017du,0x0000017bu,0x000001c0u,
|
||||
0x00050083u,0x00000013u,0x0000017eu,0x00000170u,0x0000017du,0x00050081u,0x00000013u,0x00000180u,
|
||||
0x0000017eu,0x00000172u,0x00050083u,0x00000013u,0x00000185u,0x00000174u,0x0000017du,0x00050081u,
|
||||
0x00000013u,0x00000187u,0x00000185u,0x00000176u,0x000500bau,0x00000019u,0x0000018au,0x00000180u,
|
||||
0x00000189u,0x000300f7u,0x0000018cu,0x00000000u,0x000400fau,0x0000018au,0x0000018bu,0x0000018cu,
|
||||
0x000200f8u,0x0000018bu,0x00050083u,0x00000013u,0x000001f8u,0x000001c2u,0x000001c3u,0x00050085u,
|
||||
0x00000013u,0x00000190u,0x00000039u,0x000001f8u,0x00050088u,0x00000013u,0x00000192u,0x00000190u,
|
||||
0x00000180u,0x0008000cu,0x00000013u,0x00000194u,0x00000001u,0x0000002bu,0x00000192u,0x00000193u,
|
||||
0x00000039u,0x000200f9u,0x0000018cu,0x000200f8u,0x0000018cu,0x000700f5u,0x00000013u,0x000001c9u,
|
||||
0x00000051u,0x00000102u,0x00000194u,0x0000018bu,0x000500bau,0x00000019u,0x00000196u,0x00000187u,
|
||||
0x00000189u,0x000300f7u,0x00000198u,0x00000000u,0x000400fau,0x00000196u,0x00000197u,0x00000198u,
|
||||
0x000200f8u,0x00000197u,0x00050083u,0x00000013u,0x000001f9u,0x000001c4u,0x000001c5u,0x00050085u,
|
||||
0x00000013u,0x0000019cu,0x00000039u,0x000001f9u,0x00050088u,0x00000013u,0x0000019eu,0x0000019cu,
|
||||
0x00000187u,0x0008000cu,0x00000013u,0x0000019fu,0x00000001u,0x0000002bu,0x0000019eu,0x00000193u,
|
||||
0x00000039u,0x000200f9u,0x00000198u,0x000200f8u,0x00000198u,0x000700f5u,0x00000013u,0x000001cau,
|
||||
0x00000051u,0x0000018cu,0x0000019fu,0x00000197u,0x00050050u,0x0000002eu,0x000001a2u,0x000001c9u,
|
||||
0x000001cau,0x00050081u,0x0000002eu,0x000001a4u,0x000001cfu,0x000001a2u,0x000200f9u,0x000000f8u,
|
||||
0x000200f8u,0x000000f8u,0x000700f5u,0x0000002eu,0x000001d0u,0x000001cfu,0x00000093u,0x000001a4u,
|
||||
0x00000198u,0x0006000cu,0x00000013u,0x000001aau,0x00000001u,0x0000001du,0x00000047u,0x0005008eu,
|
||||
0x0000002eu,0x000001abu,0x000001d0u,0x000001aau,0x0004003du,0x00000014u,0x000001acu,0x00000016u,
|
||||
0x00050051u,0x00000013u,0x000001afu,0x000001abu,0x00000000u,0x00050051u,0x00000013u,0x000001b0u,
|
||||
0x000001abu,0x00000001u,0x00070050u,0x00000052u,0x000001b1u,0x000001afu,0x000001b0u,0x00000051u,
|
||||
0x00000051u,0x00040063u,0x000001acu,0x00000011u,0x000001b1u,0x000200f9u,0x000001b4u,0x000200f8u,
|
||||
0x000001b4u,0x000100fdu,0x00010038u
|
||||
};
|
||||
static const size_t OF3_FLOW_LEN = sizeof(OF3_FLOW_SPV) / sizeof(OF3_FLOW_SPV[0]);
|
||||
static const uint32_t OF3_FLOW_SPV[] = {0x07230203u,0x00010300u,0x0008000bu,0x00000185u,0x00000000u,0x00020011u,0x00000001u,0x00020011u,0x00000032u,0x0006000bu,0x00000001u,0x4c534c47u,0x6474732eu,0x3035342eu,0x00000000u,0x0003000eu,0x00000000u,0x00000001u,0x0006000fu,0x00000005u,0x00000004u,0x6e69616du,0x00000000u,0x0000000du,0x00060010u,0x00000004u,0x00000011u,0x00000010u,0x00000010u,0x00000001u,0x00030003u,0x00000002u,0x000001c2u,0x00040005u,0x00000004u,0x6e69616du,0x00000000u,0x00030005u,0x00000009u,0x00646967u,0x00080005u,0x0000000du,0x475f6c67u,0x61626f6cu,0x766e496cu,0x7461636fu,0x496e6f69u,0x00000044u,0x00030005u,0x00000012u,0x006d6964u,0x00040005u,0x00000016u,0x6f6c4675u,0x00000077u,0x00040005u,0x00000030u,0x44766e69u,0x00006d69u,0x00030005u,0x00000036u,0x00007675u,0x00040005u,0x0000003fu,0x654c6f74u,0x006c6576u,0x00030005u,0x00000040u,0x00000055u,0x00060006u,0x00000040u,0x00000000u,0x776f6c66u,0x6c616353u,0x00000065u,0x00050006u,0x00000040u,0x00000001u,0x6576656cu,0x0000006cu,0x00050006u,0x00000040u,0x00000002u,0x30646170u,0x00000000u,0x00050006u,0x00000040u,0x00000003u,0x31646170u,0x00000000u,0x00030005u,0x00000042u,0x00000000u,0x00050005u,0x0000004au,0x64657270u,0x6c6c7546u,0x00000000u,0x00050005u,0x0000004eu,0x65725075u,0x74636964u,0x0000726fu,0x00050005u,0x00000055u,0x64657270u,0x6576654cu,0x0000006cu,0x00040005u,0x00000059u,0x74736562u,0x00646153u,0x00050005u,0x0000005bu,0x74736562u,0x70736944u,0x00000000u,0x00030005u,0x0000005du,0x00007973u,0x00030005u,0x00000067u,0x00007873u,0x00040005u,0x0000006fu,0x646e6163u,0x00000000u,0x00030005u,0x00000077u,0x00646173u,0x00030005u,0x00000078u,0x00007962u,0x00030005u,0x00000081u,0x00007862u,0x00030005u,0x00000089u,0x00006f62u,0x00030005u,0x0000008fu,0x00000070u,0x00050005u,0x00000090u,0x6d754c75u,0x65725061u,0x00000076u,0x00030005u,0x00000099u,0x00000063u,0x00050005u,0x0000009au,0x6d754c75u,0x72754361u,0x00000072u,0x00040005u,0x000000cau,0x43646173u,0x00000000u,0x00040005u,0x000000ccu,0x58646173u,0x0000006du,0x00040005u,0x000000cdu,0x58646173u,0x00000070u,0x00040005u,0x000000ceu,0x59646173u,0x0000006du,0x00040005u,0x000000cfu,0x59646173u,0x00000070u,0x00030005u,0x000000d0u,0x00007962u,0x00030005u,0x000000d8u,0x00007862u,0x00030005u,0x000000e0u,0x00006f62u,0x00030005u,0x000000e6u,0x00000070u,0x00040005u,0x000000efu,0x646e6163u,0x00006d58u,0x00040005u,0x000000f4u,0x646e6163u,0x00007058u,0x00040005u,0x000000f8u,0x646e6163u,0x00006d59u,0x00040005u,0x000000fcu,0x646e6163u,0x00007059u,0x00030005u,0x00000148u,0x00007864u,0x00030005u,0x00000149u,0x00007964u,0x00040005u,0x0000014au,0x6f6e6564u,0x0000586du,0x00040005u,0x00000152u,0x6f6e6564u,0x0000596du,0x00050005u,0x00000176u,0x776f6c66u,0x6c6c7546u,0x00000000u,0x00040047u,0x0000000du,0x0000000bu,0x0000001cu,0x00030047u,0x00000016u,0x00000019u,0x00040047u,0x00000016u,0x00000021u,0x00000030u,0x00040047u,0x00000016u,0x00000022u,0x00000000u,0x00030047u,0x00000040u,0x00000002u,0x00050048u,0x00000040u,0x00000000u,0x00000023u,0x00000000u,0x00050048u,0x00000040u,0x00000001u,0x00000023u,0x00000004u,0x00050048u,0x00000040u,0x00000002u,0x00000023u,0x00000008u,0x00050048u,0x00000040u,0x00000003u,0x00000023u,0x0000000cu,0x00040047u,0x00000042u,0x00000021u,0x00000000u,0x00040047u,0x00000042u,0x00000022u,0x00000000u,0x00040047u,0x0000004eu,0x00000021u,0x00000022u,0x00040047u,0x0000004eu,0x00000022u,0x00000000u,0x00040047u,0x00000090u,0x00000021u,0x00000020u,0x00040047u,0x00000090u,0x00000022u,0x00000000u,0x00040047u,0x0000009au,0x00000021u,0x00000021u,0x00040047u,0x0000009au,0x00000022u,0x00000000u,0x00040047u,0x00000184u,0x0000000bu,0x00000019u,0x00020013u,0x00000002u,0x00030021u,0x00000003u,0x00000002u,0x00040015u,0x00000006u,0x00000020u,0x00000001u,0x00040017u,0x00000007u,0x00000006u,0x00000002u,0x00040020u,0x00000008u,0x00000007u,0x00000007u,0x00040015u,0x0000000au,0x00000020u,0x00000000u,0x00040017u,0x0000000bu,0x0000000au,0x00000003u,0x00040020u,0x0000000cu,0x00000001u,0x0000000bu,0x0004003bu,0x0000000cu,0x0000000du,0x00000001u,0x00040017u,0x0000000eu,0x0000000au,0x00000002u,0x00030016u,0x00000013u,0x00000020u,0x00090019u,0x00000014u,0x00000013u,0x00000001u,0x00000000u,0x00000000u,0x00000000u,0x00000002u,0x00000002u,0x00040020u,0x00000015u,0x00000000u,0x00000014u,0x0004003bu,0x00000015u,0x00000016u,0x00000000u,0x00020014u,0x00000019u,0x0004002bu,0x0000000au,0x0000001au,0x00000000u,0x00040020u,0x0000001bu,0x00000007u,0x00000006u,0x0004002bu,0x0000000au,0x00000024u,0x00000001u,0x00040017u,0x0000002eu,0x00000013u,0x00000002u,0x00040020u,0x0000002fu,0x00000007u,0x0000002eu,0x0004002bu,0x00000013u,0x00000031u,0x3f800000u,0x0004002bu,0x00000013u,0x00000039u,0x3f000000u,0x00040020u,0x0000003eu,0x00000007u,0x00000013u,0x0006001eu,0x00000040u,0x00000013u,0x0000000au,0x0000000au,0x0000000au,0x00040020u,0x00000041u,0x00000002u,0x00000040u,0x0004003bu,0x00000041u,0x00000042u,0x00000002u,0x0004002bu,0x00000006u,0x00000043u,0x00000001u,0x00040020u,0x00000044u,0x00000002u,0x0000000au,0x00090019u,0x0000004bu,0x00000013u,0x00000001u,0x0Line truncated
|
||||
static const size_t OF3_FLOW_LEN = 2253;
|
||||
static const uint32_t OF3_EXPAND_SPV[] = {0x07230203u,0x00010300u,0x0008000bu,0x00000124u,0x00000000u,0x00020011u,0x00000001u,0x00020011u,0x00000032u,0x0006000bu,0x00000001u,0x4c534c47u,0x6474732eu,0x3035342eu,0x00000000u,0x0003000eu,0x00000000u,0x00000001u,0x0006000fu,0x00000005u,0x00000004u,0x6e69616du,0x00000000u,0x00000049u,0x00060010u,0x00000004u,0x00000011u,0x00000010u,0x00000010u,0x00000001u,0x00030003u,0x00000002u,0x000001c2u,0x00040005u,0x00000004u,0x6e69616du,0x00000000u,0x00080005u,0x0000000eu,0x3564656du,0x3b316628u,0x663b3166u,0x31663b31u,0x3b31663bu,0x00000000u,0x00030005u,0x00000009u,0x00000061u,0x00030005u,0x0000000au,0x00000062u,0x00030005u,0x0000000bu,0x00000063u,0x00030005u,0x0000000cu,0x00000064u,0x00030005u,0x0000000du,0x00000065u,0x00030005u,0x00000010u,0x00000078u,0x00030005u,0x00000034u,0x00000079u,0x00030005u,0x00000045u,0x00646967u,0x00080005u,0x00000049u,0x475f6c67u,0x61626f6cu,0x766e496cu,0x7461636fu,0x496e6f69u,0x00000044u,0x00030005u,0x0000004eu,0x006d6964u,0x00040005u,0x00000051u,0x64774675u,0x00000000u,0x00030005u,0x0000006bu,0x00007675u,0x00030005u,0x00000074u,0x00007366u,0x00050005u,0x00000079u,0x6f6c4675u,0x6e694677u,0x00000065u,0x00030005u,0x00000081u,0x00000063u,0x00030005u,0x00000088u,0x00006d78u,0x00030005u,0x00000091u,0x00007078u,0x00030005u,0x0000009au,0x00006d79u,0x00030005u,0x000000a3u,0x00007079u,0x00030005u,0x000000acu,0x00000064u,0x00040005u,0x000000adu,0x61726170u,0x0000006du,0x00040005u,0x000000b0u,0x61726170u,0x0000006du,0x00040005u,0x000000b3u,0x61726170u,0x0000006du,0x00040005u,0x000000b6u,0x61726170u,0x0000006du,0x00040005u,0x000000b9u,0x61726170u,0x0000006du,0x00040005u,0x000000bdu,0x61726170u,0x0000006du,0x00040005u,0x000000c0u,0x61726170u,0x0000006du,0x00040005u,0x000000c3u,0x61726170u,0x0000006du,0x00040005u,0x000000c6u,0x61726170u,0x0000006du,0x00040005u,0x000000c9u,0x61726170u,0x0000006du,0x00030005u,0x000000ceu,0x00000071u,0x00030005u,0x000000d2u,0x00787067u,0x00030005u,0x000000d3u,0x00004d47u,0x00050006u,0x000000d3u,0x00000000u,0x694c6d67u,0x0000006eu,0x00050006u,0x000000d3u,0x00000001u,0x694c6d67u,0x0000546eu,0x00050006u,0x000000d3u,0x00000002u,0x70416d67u,0x00000070u,0x00050006u,0x000000d3u,0x00000003u,0x70416d67u,0x00005470u,0x00030005u,0x000000d5u,0x00000000u,0x00030005u,0x000000fdu,0x00003241u,0x00040005u,0x0000010bu,0x6c6c7566u,0x00000000u,0x00040005u,0x00000117u,0x64774275u,0x00000000u,0x00030005u,0x00000121u,0x00000055u,0x00060006u,0x00000121u,0x00000000u,0x776f6c66u,0x6c616353u,0x00000065u,0x00050006u,0x00000121u,0x00000001u,0x6576656cu,0x0000006cu,0x00050006u,0x00000121u,0x00000002u,0x30646170u,0x00000000u,0x00050006u,0x00000121u,0x00000003u,0x31646170u,0x00000000u,0x00030005u,0x00000123u,0x00000000u,0x00040047u,0x00000049u,0x0000000bu,0x0000001cu,0x00030047u,0x00000051u,0x00000019u,0x00040047u,0x00000051u,0x00000021u,0x00000030u,0x00040047u,0x00000051u,0x00000022u,0x00000000u,0x00040047u,0x00000079u,0x00000021u,0x00000020u,0x00040047u,0x00000079u,0x00000022u,0x00000000u,0x00030047u,0x000000d3u,0x00000002u,0x00050048u,0x000000d3u,0x00000000u,0x00000023u,0x00000000u,0x00050048u,0x000000d3u,0x00000001u,0x00000023u,0x00000010u,0x00050048u,0x000000d3u,0x00000002u,0x00000023u,0x00000020u,0x00050048u,0x000000d3u,0x00000003u,0x00000023u,0x00000030u,0x00040047u,0x000000d5u,0x00000021u,0x00000001u,0x00040047u,0x000000d5u,0x00000022u,0x00000000u,0x00030047u,0x00000117u,0x00000019u,0x00040047u,0x00000117u,0x00000021u,0x00000031u,0x00040047u,0x00000117u,0x00000022u,0x00000000u,0x00040047u,0x00000120u,0x0000000bu,0x00000019u,0x00030047u,0x00000121u,0x00000002u,0x00050048u,0x00000121u,0x00000000u,0x00000023u,0x00000000u,0x00050048u,0x00000121u,0x00000001u,0x00000023u,0x00000004u,0x00050048u,0x00000121u,0x00000002u,0x00000023u,0x00000008u,0x00050048u,0x00000121u,0x00000003u,0x00000023u,0x0000000cu,0x00040047u,0x00000123u,0x00000021u,0x00000000u,0x00040047u,0x00000123u,0x00000022u,0x00000000u,0x00020013u,0x00000002u,0x00030021u,0x00000003u,0x00000002u,0x00030016u,0x00000006u,0x00000020u,0x00040020u,0x00000007u,0x00000007u,0x00000006u,0x00080021u,0x00000008u,0x00000006u,0x00000007u,0x00000007u,0x00000007u,0x00000007u,0x00000007u,0x00040015u,0x00000042u,0x00000020u,0x00000001u,0x00040017u,0x00000043u,0x00000042u,0x00000002u,0x00040020u,0x00000044u,0x00000007u,0x00000043u,0x00040015u,0x00000046u,0x00000020u,0x00000000u,0x00040017u,0x00000047u,0x00000046u,0x00000003u,0x00040020u,0x00000048u,0x00000001u,0x00000047u,0x0004003bu,0x00000048u,0x00000049u,0x00000001u,0x00040017u,0x0000004au,0x00000046u,0x00000002u,0x00090019u,0x0000004fu,0x00000006u,0x00000001u,0x00000000u,0x00000000u,0x00000000u,0x00000002u,0x00000002u,0x00040020u,0x00000050u,0x00000000u,0x0000004fu,0x0004003bu,0x00000050u,0x00000051u,0x00000000u,0x00020014u,0x00000054u,0x0004002bu,0x00000046u,0x00000055u,0x00000000u,0x00040020u,0x00000056u,0x00000007u,0x00000042u,0x0004002bu,0x00000046u,0x0000005fu,0x00000001u,0x00040017u,0x00000069u,0x00000006u,0x00000002u,0x00040020u,0x0000006au,0x00000007u,0Line truncated
|
||||
static const size_t OF3_EXPAND_LEN = 1798;
|
||||
static const uint32_t OF3_FLOW_M4_SPV[] = {0x07230203u,0x00010300u,0x0008000bu,0x00000151u,0x00000000u,0x00020011u,0x00000001u,0x00020011u,0x00000032u,0x0006000bu,0x00000001u,0x4c534c47u,0x6474732eu,0x3035342eu,0x00000000u,0x0003000eu,0x00000000u,0x00000001u,0x0006000fu,0x00000005u,0x00000004u,0x6e69616du,0x00000000u,0x000000f6u,0x00060010u,0x00000004u,0x00000011u,0x00000010u,0x00000010u,0x00000001u,0x00030003u,0x00000002u,0x000001c2u,0x00040005u,0x00000004u,0x6e69616du,0x00000000u,0x00080005u,0x00000010u,0x636f6c62u,0x6461536bu,0x31327328u,0x3132733bu,0x3266763bu,0x0000003bu,0x00030005u,0x0000000du,0x00000061u,0x00030005u,0x0000000eu,0x00000062u,0x00040005u,0x0000000fu,0x646e6163u,0x00000000u,0x00070005u,0x00000016u,0x766c6f73u,0x32732865u,0x32733b31u,0x66763b31u,0x00003b32u,0x00030005u,0x00000013u,0x00000061u,0x00030005u,0x00000014u,0x00000062u,0x00040005u,0x00000015u,0x64657270u,0x00000000u,0x00030005u,0x00000019u,0x00646173u,0x00030005u,0x0000001du,0x00007962u,0x00030005u,0x00000028u,0x00007862u,0x00030005u,0x00000030u,0x00006f62u,0x00030005u,0x00000036u,0x00006170u,0x00030005u,0x00000039u,0x00765567u,0x00050005u,0x0000003cu,0x766e4967u,0x616d754cu,0x00000000u,0x00030005u,0x00000045u,0x00006270u,0x00040005u,0x0000005du,0x74736562u,0x00646153u,0x00050005u,0x0000005fu,0x74736562u,0x70736944u,0x00000000u,0x00030005u,0x00000061u,0x00007973u,0x00030005u,0x0000006bu,0x00007873u,0x00040005u,0x00000073u,0x646e6163u,0x00000000u,0x00030005u,0x0000007bu,0x00646173u,0x00040005u,0x0000007cu,0x61726170u,0x0000006du,0x00030005u,0x00000095u,0x00000055u,0x00060006u,0x00000095u,0x00000000u,0x776f6c66u,0x6c616353u,0x00000065u,0x00050006u,0x00000095u,0x00000001u,0x6576656cu,0x0000006cu,0x00050006u,0x00000095u,0x00000002u,0x6c63636fu,0x00006f4cu,0x00050006u,0x00000095u,0x00000003u,0x6c63636fu,0x00006948u,0x00030005u,0x00000097u,0x00000000u,0x00040005u,0x0000009eu,0x43646173u,0x00000000u,0x00040005u,0x000000a1u,0x58646173u,0x0000006du,0x00040005u,0x000000a6u,0x61726170u,0x0000006du,0x00040005u,0x000000a9u,0x58646173u,0x00000070u,0x00040005u,0x000000aeu,0x61726170u,0x0000006du,0x00040005u,0x000000b1u,0x59646173u,0x0000006du,0x00040005u,0x000000b5u,0x61726170u,0x0000006du,0x00040005u,0x000000b8u,0x59646173u,0x00000070u,0x00040005u,0x000000bcu,0x61726170u,0x0000006du,0x00030005u,0x000000bfu,0x00007864u,0x00030005u,0x000000c0u,0x00007964u,0x00040005u,0x000000c1u,0x6f6e6564u,0x0000586du,0x00040005u,0x000000c9u,0x6f6e6564u,0x0000596du,0x00030005u,0x000000f3u,0x00646967u,0x00080005u,0x000000f6u,0x475f6c67u,0x61626f6cu,0x766e496cu,0x7461636fu,0x496e6f69u,0x00000044u,0x00030005u,0x000000fbu,0x006d6964u,0x00040005u,0x000000feu,0x6f6c4675u,0x00000077u,0x00050005u,0x0000011au,0x6d754c75u,0x72754361u,0x00000072u,0x00040005u,0x00000122u,0x654c6f74u,0x006c6576u,0x00040005u,0x00000129u,0x64657270u,0x00000000u,0x00050005u,0x0000012au,0x65725075u,0x74636964u,0x0000726fu,0x00030005u,0x0000012eu,0x00647766u,0x00050005u,0x0000012fu,0x6d754c75u,0x65725061u,0x00000076u,0x00040005u,0x00000134u,0x61726170u,0x0000006du,0x00030005u,0x00000136u,0x00647762u,0x00040005u,0x0000013bu,0x61726170u,0x0000006du,0x00040005u,0x0000013du,0x75466f74u,0x00006c6cu,0x00030047u,0x00000095u,0x00000002u,0x00050048u,0x00000095u,0x00000000u,0x00000023u,0x00000000u,0x00050048u,0x00000095u,0x00000001u,0x00000023u,0x00000004u,0x00050048u,0x00000095u,0x00000002u,0x00000023u,0x00000008u,0x00050048u,0x00000095u,0x00000003u,0x00000023u,0x0000000cu,0x00040047u,0x00000097u,0x00000021u,0x00000000u,0x00040047u,0x00000097u,0x00000022u,0x00000000u,0x00040047u,0x000000f6u,0x0000000bu,0x0000001cu,0x00030047u,0x000000feu,0x00000019u,0x00040047u,0x000000feu,0x00000021u,0x00000030u,0x00040047u,0x000000feu,0x00000022u,0x00000000u,0x00040047u,0x0000011au,0x00000021u,0x00000021u,0x00040047u,0x0000011au,0x00000022u,0x00000000u,0x00040047u,0x0000012au,0x00000021u,0x00000022u,0x00040047u,0x0000012au,0x00000022u,0x00000000u,0x00040047u,0x0000012fu,0x00000021u,0x00000020u,0x00040047u,0x0000012fu,0x00000022u,0x00000000u,0x00040047u,0x00000150u,0x0000000bu,0x00000019u,0x00020013u,0x00000002u,0x00030021u,0x00000003u,0x00000002u,0x00030016u,0x00000006u,0x00000020u,0x00090019u,0x00000007u,0x00000006u,0x00000001u,0x00000000u,0x00000000u,0x00000000u,0x00000001u,0x00000000u,0x0003001bu,0x00000008u,0x00000007u,0x00040020u,0x00000009u,0x00000000u,0x00000008u,0x00040017u,0x0000000au,0x00000006u,0x00000002u,0x00040020u,0x0000000bu,0x00000007u,0x0000000au,0x00060021u,0x0000000cu,0x00000006u,0x00000009u,0x00000009u,0x0000000bu,0x00060021u,0x00000012u,0x0000000au,0x00000009u,0x00000009u,0x0000000bu,0x00040020u,0x00000018u,0x00000007u,0x00000006u,0x0004002bu,0x00000006u,0x0000001au,0x00000000u,0x00040015u,0x0000001bu,0x00000020u,0x00000001u,0x00040020u,0x0000001cu,0x00000007u,0x0000001bu,0x0004002bu,0x0000001bu,0x0000001eu,0xffffffffu,0x0004002bu,0x0000001bu,0x00000025u,0x00000001u,0x00020014u,0x00000026u,0x00040020u,0x00000038u,0x00000006u,0x0000000au,0x0004003bu,0x00000038u,0x00000039u,0x00000006u,0x0004003bu,Line truncated
|
||||
@@ -226,8 +18,8 @@ static const uint32_t OF3_GM_REDUCE_SPV[] = {0x07230203u,0x00010300u,0x0008000bu
|
||||
static const size_t OF3_GM_REDUCE_LEN = 2584;
|
||||
static const uint32_t OF3_GM_PREWARP_SPV[] = {0x07230203u,0x00010300u,0x0008000bu,0x00000074u,0x00000000u,0x00020011u,0x00000001u,0x00020011u,0x00000032u,0x0006000bu,0x00000001u,0x4c534c47u,0x6474732eu,0x3035342eu,0x00000000u,0x0003000eu,0x00000000u,0x00000001u,0x0006000fu,0x00000005u,0x00000004u,0x6e69616du,0x00000000u,0x0000000du,0x00060010u,0x00000004u,0x00000011u,0x00000010u,0x00000010u,0x00000001u,0x00030003u,0x00000002u,0x000001c2u,0x00040005u,0x00000004u,0x6e69616du,0x00000000u,0x00030005u,0x00000009u,0x00646967u,0x00080005u,0x0000000du,0x475f6c67u,0x61626f6cu,0x766e496cu,0x7461636fu,0x496e6f69u,0x00000044u,0x00030005u,0x00000012u,0x006d6964u,0x00040005u,0x00000016u,0x74734475u,0x00000000u,0x00030005u,0x00000030u,0x00007675u,0x00030005u,0x00000039u,0x00000071u,0x00040005u,0x0000003du,0x6c6f6370u,0x00000030u,0x00030005u,0x0000003fu,0x00004d47u,0x00050006u,0x0000003fu,0x00000000u,0x694c6d67u,0x0000006eu,0x00050006u,0x0000003fu,0x00000001u,0x694c6d67u,0x0000546eu,0x00050006u,0x0000003fu,0x00000002u,0x70416d67u,0x00000070u,0x00050006u,0x0000003fu,0x00000003u,0x70416d67u,0x00005470u,0x00030005u,0x00000041u,0x00000000u,0x00040005u,0x00000049u,0x6c6f6370u,0x00000031u,0x00040005u,0x00000051u,0x72537675u,0x00000063u,0x00030005u,0x00000064u,0x00000076u,0x00040005u,0x00000068u,0x72754375u,0x00000072u,0x00040047u,0x0000000du,0x0000000bu,0x0000001cu,0x00030047u,0x00000016u,0x00000019u,0x00040047u,0x00000016u,0x00000021u,0x00000030u,0x00040047u,0x00000016u,0x00000022u,0x00000000u,0x00030047u,0x0000003fu,0x00000002u,0x00050048u,0x0000003fu,0x00000000u,0x00000023u,0x00000000u,0x00050048u,0x0000003fu,0x00000001u,0x00000023u,0x00000010u,0x00050048u,0x0000003fu,0x00000002u,0x00000023u,0x00000020u,0x00050048u,0x0000003fu,0x00000003u,0x00000023u,0x00000030u,0x00040047u,0x00000041u,0x00000021u,0x00000001u,0x00040047u,0x00000041u,0x00000022u,0x00000000u,0x00040047u,0x00000068u,0x00000021u,0x00000020u,0x00040047u,0x00000068u,0x00000022u,0x00000000u,0x00040047u,0x00000073u,0x0000000bu,0x00000019u,0x00020013u,0x00000002u,0x00030021u,0x00000003u,0x00000002u,0x00040015u,0x00000006u,0x00000020u,0x00000001u,0x00040017u,0x00000007u,0x00000006u,0x00000002u,0x00040020u,0x00000008u,0x00000007u,0x00000007u,0x00040015u,0x0000000au,0x00000020u,0x00000000u,0x00040017u,0x0000000bu,0x0000000au,0x00000003u,0x00040020u,0x0000000cu,0x00000001u,0x0000000bu,0x0004003bu,0x0000000cu,0x0000000du,0x00000001u,0x00040017u,0x0000000eu,0x0000000au,0x00000002u,0x00030016u,0x00000013u,0x00000020u,0x00090019u,0x00000014u,0x00000013u,0x00000001u,0x00000000u,0x00000000u,0x00000000u,0x00000002u,0x00000003u,0x00040020u,0x00000015u,0x00000000u,0x00000014u,0x0004003bu,0x00000015u,0x00000016u,0x00000000u,0x00020014u,0x00000019u,0x0004002bu,0x0000000au,0x0000001au,0x00000000u,0x00040020u,0x0000001bu,0x00000007u,0x00000006u,0x0004002bu,0x0000000au,0x00000024u,0x00000001u,0x00040017u,0x0000002eu,0x00000013u,0x00000002u,0x00040020u,0x0000002fu,0x00000007u,0x0000002eu,0x0004002bu,0x00000013u,0x00000033u,0x3f000000u,0x00040017u,0x0000003eu,0x00000013u,0x00000004u,0x0006001eu,0x0000003fu,0x0000003eu,0x0000003eu,0x0000003eu,0x0000003eu,0x00040020u,0x00000040u,0x00000002u,0x0000003fu,0x0004003bu,0x00000040u,0x00000041u,0x00000002u,0x0004002bu,0x00000006u,0x00000042u,0x00000002u,0x00040020u,0x00000043u,0x00000002u,0x00000013u,0x0004002bu,0x0000000au,0x0000004au,0x00000002u,0x0004002bu,0x0000000au,0x0000004du,0x00000003u,0x00040020u,0x00000054u,0x00000007u,0x00000013u,0x0004002bu,0x00000006u,0x0000005eu,0x00000003u,0x00040020u,0x0000005fu,0x00000002u,0x0000003eu,0x00090019u,0x00000065u,0x00000013u,0x00000001u,0x00000000u,0x00000000u,0x00000000u,0x00000001u,0x00000000u,0x0003001bu,0x00000066u,0x00000065u,0x00040020u,0x00000067u,0x00000000u,0x00000066u,0x0004003bu,0x00000067u,0x00000068u,0x00000000u,0x0004002bu,0x00000013u,0x0000006bu,0x00000000u,0x0004002bu,0x0000000au,0x00000072u,0x00000010u,0x0006002cu,0x0000000bu,0x00000073u,0x00000072u,0x00000072u,0x00000024u,0x00050036u,0x00000002u,0x00000004u,0x00000000u,0x00000003u,0x000200f8u,0x00000005u,0x0004003bu,0x00000008u,0x00000009u,0x00000007u,0x0004003bu,0x00000008u,0x00000012u,0x00000007u,0x0004003bu,0x0000002fu,0x00000030u,0x00000007u,0x0004003bu,0x0000002fu,0x00000039u,0x00000007u,0x0004003bu,0x0000002fu,0x0000003du,0x00000007u,0x0004003bu,0x0000002fu,0x00000049u,0x00000007u,0x0004003bu,0x0000002fu,0x00000051u,0x00000007u,0x0004003bu,0x00000054u,0x00000064u,0x00000007u,0x0004003du,0x0000000bu,0x0000000fu,0x0000000du,0x0007004fu,0x0000000eu,0x00000010u,0x0000000fu,0x0000000fu,0x00000000u,0x00000001u,0x0004007cu,0x00000007u,0x00000011u,0x00000010u,0x0003003eu,0x00000009u,0x00000011u,0x0004003du,0x00000014u,0x00000017u,0x00000016u,0x00040068u,0x00000007u,0x00000018u,0x00000017u,0x0003003eu,0x00000012u,0x00000018u,0x00050041u,0x0000001bu,0x0000001cu,0x00000009u,0x0000001au,0x0004003du,0x00000006u,0x0000001du,0x0000001cu,0x00050041u,0x0000001bu,0x0000001eu,0x00000012u,0x0000001au,0x0004003du,0x00000006u,0x0000001fu,0x0000001Line truncated
|
||||
static const size_t OF3_GM_PREWARP_LEN = 706;
|
||||
static const uint32_t OF3_FLOWREG_SPV[] = {0x07230203u,0x00010300u,0x0008000bu,0x00000196u,0x00000000u,0x00020011u,0x00000001u,0x00020011u,0x00000032u,0x0006000bu,0x00000001u,0x4c534c47u,0x6474732eu,0x3035342eu,0x00000000u,0x0003000eu,0x00000000u,0x00000001u,0x0006000fu,0x00000005u,0x00000004u,0x6e69616du,0x00000000u,0x00000037u,0x00060010u,0x00000004u,0x00000011u,0x00000010u,0x00000010u,0x00000001u,0x00030003u,0x00000002u,0x000001c2u,0x00040005u,0x00000004u,0x6e69616du,0x00000000u,0x00040005u,0x00000018u,0x6f6c4675u,0x006e4977u,0x00040005u,0x00000026u,0x6d754c75u,0x00000061u,0x00080005u,0x00000037u,0x475f6c67u,0x61626f6cu,0x766e496cu,0x7461636fu,0x496e6f69u,0x00000044u,0x00030005u,0x00000056u,0x00000055u,0x00050006u,0x00000056u,0x00000000u,0x61726170u,0x0000736du,0x00030005u,0x00000058u,0x00000000u,0x00050005u,0x00000118u,0x6f6c4675u,0x73624f77u,0x00000000u,0x00050005u,0x00000131u,0x6f6c4675u,0x74754f77u,0x00000000u,0x00040047u,0x00000018u,0x00000021u,0x00000020u,0x00040047u,0x00000018u,0x00000022u,0x00000000u,0x00040047u,0x00000026u,0x00000021u,0x00000022u,0x00040047u,0x00000026u,0x00000022u,0x00000000u,0x00040047u,0x00000037u,0x0000000bu,0x0000001cu,0x00030047u,0x00000056u,0x00000002u,0x00050048u,0x00000056u,0x00000000u,0x00000023u,0x00000000u,0x00040047u,0x00000058u,0x00000021u,0x00000000u,0x00040047u,0x00000058u,0x00000022u,0x00000000u,0x00040047u,0x00000118u,0x00000021u,0x00000021u,0x00040047u,0x00000118u,0x00000022u,0x00000000u,0x00030047u,0x00000131u,0x00000019u,0x00040047u,0x00000131u,0x00000021u,0x00000030u,0x00040047u,0x00000131u,0x00000022u,0x00000000u,0x00040047u,0x00000136u,0x0000000bu,0x00000019u,0x00020013u,0x00000002u,0x00030021u,0x00000003u,0x00000002u,0x00040015u,0x00000006u,0x00000020u,0x00000001u,0x00040017u,0x00000007u,0x00000006u,0x00000002u,0x00030016u,0x00000009u,0x00000020u,0x00040017u,0x0000000au,0x00000009u,0x00000004u,0x00090019u,0x00000015u,0x00000009u,0x00000001u,0x00000000u,0x00000000u,0x00000000u,0x00000001u,0x00000000u,0x0003001bu,0x00000016u,0x00000015u,0x00040020u,0x00000017u,0x00000000u,0x00000016u,0x0004003bu,0x00000017u,0x00000018u,0x00000000u,0x0004002bu,0x00000006u,0x0000001bu,0x00000000u,0x0005002cu,0x00000007u,0x0000001cu,0x0000001bu,0x0000001bu,0x0004002bu,0x00000006u,0x0000001eu,0x00000001u,0x0004003bu,0x00000017u,0x00000026u,0x00000000u,0x00040015u,0x0000002fu,0x00000020u,0x00000000u,0x0004002bu,0x0000002fu,0x00000030u,0x00000000u,0x00040017u,0x00000035u,0x0000002fu,0x00000003u,0x00040020u,0x00000036u,0x00000001u,0x00000035u,0x0004003bu,0x00000036u,0x00000037u,0x00000001u,0x00040017u,0x00000038u,0x0000002fu,0x00000002u,0x00020014u,0x00000040u,0x0004002bu,0x0000002fu,0x0000004au,0x00000001u,0x0003001eu,0x00000056u,0x0000000au,0x00040020u,0x00000057u,0x00000002u,0x00000056u,0x0004003bu,0x00000057u,0x00000058u,0x00000002u,0x00040020u,0x00000059u,0x00000002u,0x00000009u,0x0004002bu,0x0000002fu,0x00000060u,0x00000002u,0x0004002bu,0x0000002fu,0x00000064u,0x00000003u,0x0004002bu,0x00000006u,0x0000006fu,0xffffffffu,0x0005002cu,0x00000007u,0x00000070u,0x0000006fu,0x0000001bu,0x0005002cu,0x00000007u,0x00000078u,0x0000001eu,0x0000001bu,0x0005002cu,0x00000007u,0x00000080u,0x0000001bu,0x0000006fu,0x0005002cu,0x00000007u,0x00000088u,0x0000001bu,0x0000001eu,0x0004002bu,0x00000009u,0x000000abu,0x3f000000u,0x00040017u,0x000000b2u,0x00000009u,0x00000002u,0x0004002bu,0x00000009u,0x000000bcu,0x3d4ccccdu,0x0004002bu,0x00000009u,0x000000bdu,0x3f800000u,0x0004003bu,0x00000017u,0x00000118u,0x00000000u,0x00090019u,0x0000012fu,0x00000009u,0x00000001u,0x00000000u,0x00000000u,0x00000000u,0x00000002u,0x00000002u,0x00040020u,0x00000130u,0x00000000u,0x0000012fu,0x0004003bu,0x00000130u,0x00000131u,0x00000000u,0x0004002bu,0x0000002fu,0x00000135u,0x00000010u,0x0006002cu,0x00000035u,0x00000136u,0x00000135u,0x00000135u,0x0000004au,0x0005002cu,0x00000007u,0x00000195u,0x0000001eu,0x0000001eu,0x00050036u,0x00000002u,0x00000004u,0x00000000u,0x00000003u,0x000200f8u,0x00000005u,0x000300f7u,0x00000137u,0x00000000u,0x000300fbu,0x00000030u,0x00000138u,0x000200f8u,0x00000138u,0x0004003du,0x00000035u,0x00000039u,0x00000037u,0x0007004fu,0x00000038u,0x0000003au,0x00000039u,0x00000039u,0x00000000u,0x00000001u,0x0004007cu,0x00000007u,0x0000003bu,0x0000003au,0x0004003du,0x00000016u,0x0000003du,0x00000018u,0x00040064u,0x00000015u,0x0000003eu,0x0000003du,0x00050067u,0x00000007u,0x0000003fu,0x0000003eu,0x0000001bu,0x00050051u,0x00000006u,0x00000043u,0x0000003bu,0x00000000u,0x00050051u,0x00000006u,0x00000045u,0x0000003fu,0x00000000u,0x000500afu,0x00000040u,0x00000046u,0x00000043u,0x00000045u,0x000400a8u,0x00000040u,0x00000047u,0x00000046u,0x000300f7u,0x00000049u,0x00000000u,0x000400fau,0x00000047u,0x00000048u,0x00000049u,0x000200f8u,0x00000048u,0x00050051u,0x00000006u,0x0000004cu,0x0000003bu,0x00000001u,0x00050051u,0x00000006u,0x0000004eu,0x0000003fu,0x00000001u,0x000500afu,0x00000040u,0x0000004fu,0x0000004cu,0x0000004eu,0x000200f9u,0x00000049u,0x000200f8u,0x00000049u,0x000700f5u,0x00000040u,0x00000050u,0x00000046u,Line truncated
|
||||
static const size_t OF3_FLOWREG_LEN = 981;
|
||||
static const uint32_t OF3_FLOWREG_SPV[] = {0x07230203u,0x00010300u,0x0008000bu,0x00000144u,0x00000000u,0x00020011u,0x00000001u,0x00020011u,0x00000032u,0x0006000bu,0x00000001u,0x4c534c47u,0x6474732eu,0x3035342eu,0x00000000u,0x0003000eu,0x00000000u,0x00000001u,0x0006000fu,0x00000005u,0x00000004u,0x6e69616du,0x00000000u,0x00000037u,0x00060010u,0x00000004u,0x00000011u,0x00000010u,0x00000010u,0x00000001u,0x00030003u,0x00000002u,0x000001c2u,0x00040005u,0x00000004u,0x6e69616du,0x00000000u,0x00060005u,0x0000000eu,0x63746566u,0x76285568u,0x763b3269u,0x003b3269u,0x00030005u,0x0000000cu,0x00000070u,0x00030005u,0x0000000du,0x006d6964u,0x00060005u,0x00000013u,0x63746566u,0x76284c68u,0x763b3269u,0x003b3269u,0x00030005u,0x00000011u,0x00000070u,0x00030005u,0x00000012u,0x006d6964u,0x00040005u,0x00000018u,0x6f6c4675u,0x006e4977u,0x00040005u,0x00000026u,0x6d754c75u,0x00000061u,0x00030005u,0x00000034u,0x00646967u,0x00080005u,0x00000037u,0x475f6c67u,0x61626f6cu,0x766e496cu,0x7461636fu,0x496e6f69u,0x00000044u,0x00030005u,0x0000003cu,0x006d6964u,0x00030005u,0x00000055u,0x00007464u,0x00030005u,0x00000056u,0x00000055u,0x00050006u,0x00000056u,0x00000000u,0x61726170u,0x0000736du,0x00030005u,0x00000058u,0x00000000u,0x00040005u,0x0000005cu,0x626d616cu,0x00006164u,0x00050005u,0x0000005fu,0x65676465u,0x68706c41u,0x00000061u,0x00040005u,0x00000063u,0x54737065u,0x00000056u,0x00030005u,0x00000068u,0x00004375u,0x00040005u,0x00000069u,0x61726170u,0x0000006du,0x00040005u,0x0000006bu,0x61726170u,0x0000006du,0x00030005u,0x0000006eu,0x00004c75u,0x00040005u,0x00000073u,0x61726170u,0x0000006du,0x00040005u,0x00000074u,0x61726170u,0x0000006du,0x00030005u,0x00000077u,0x00005275u,0x00040005u,0x0000007bu,0x61726170u,0x0000006du,0x00040005u,0x0000007cu,0x61726170u,0x0000006du,0x00030005u,0x0000007fu,0x00005575u,0x00040005u,0x00000083u,0x61726170u,0x0000006du,0x00040005u,0x00000084u,0x61726170u,0x0000006du,0x00030005u,0x00000087u,0x00004475u,0x00040005u,0x0000008bu,0x61726170u,0x0000006du,0x00040005u,0x0000008cu,0x61726170u,0x0000006du,0x00040005u,0x0000008fu,0x6d69646cu,0x00000000u,0x00030005u,0x00000093u,0x00004c6cu,0x00040005u,0x00000096u,0x61726170u,0x0000006du,0x00040005u,0x00000097u,0x61726170u,0x0000006du,0x00030005u,0x0000009au,0x0000526cu,0x00040005u,0x0000009du,0x61726170u,0x0000006du,0x00040005u,0x0000009eu,0x61726170u,0x0000006du,0x00030005u,0x000000a1u,0x0000556cu,0x00040005u,0x000000a4u,0x61726170u,0x0000006du,0x00040005u,0x000000a5u,0x61726170u,0x0000006du,0x00030005u,0x000000a8u,0x0000446cu,0x00040005u,0x000000abu,0x61726170u,0x0000006du,0x00040005u,0x000000acu,0x61726170u,0x0000006du,0x00040005u,0x000000afu,0x67616d67u,0x00000000u,0x00030005u,0x000000bbu,0x00000067u,0x00030005u,0x000000c4u,0x00004c64u,0x00030005u,0x000000c8u,0x00005264u,0x00030005u,0x000000ccu,0x00005564u,0x00030005u,0x000000d0u,0x00004464u,0x00030005u,0x000000d4u,0x00003265u,0x00030005u,0x000000d8u,0x00004c77u,0x00030005u,0x000000e1u,0x00005277u,0x00030005u,0x000000eau,0x00005577u,0x00030005u,0x000000f3u,0x00004477u,0x00040005u,0x000000fcu,0x576d7573u,0x00000000u,0x00040005u,0x00000104u,0x576d7573u,0x00000055u,0x00040005u,0x00000114u,0x66694475u,0x00000066u,0x00030005u,0x00000120u,0x00003066u,0x00050005u,0x00000121u,0x6f6c4675u,0x73624f77u,0x00000000u,0x00040005u,0x0000012au,0x74656874u,0x00000061u,0x00030005u,0x0000012eu,0x00000072u,0x00040005u,0x00000132u,0x77654e75u,0x00000000u,0x00050005u,0x0000013eu,0x6f6c4675u,0x74754f77u,0x00000000u,0x00040047u,0x00000018u,0x00000021u,0x00000020u,0x00040047u,0x00000018u,0x00000022u,0x00000000u,0x00040047u,0x00000026u,0x00000021u,0x00000022u,0x00040047u,0x00000026u,0x00000022u,0x00000000u,0x00040047u,0x00000037u,0x0000000bu,0x0000001cu,0x00030047u,0x00000056u,0x00000002u,0x00050048u,0x00000056u,0x00000000u,0x00000023u,0x00000000u,0x00040047u,0x00000058u,0x00000021u,0x00000000u,0x00040047u,0x00000058u,0x00000022u,0x00000000u,0x00040047u,0x00000121u,0x00000021u,0x00000021u,0x00040047u,0x00000121u,0x00000022u,0x00000000u,0x00030047u,0x0000013eu,0x00000019u,0x00040047u,0x0000013eu,0x00000021u,0x00000030u,0x00040047u,0x0000013eu,0x00000022u,0x00000000u,0x00040047u,0x00000143u,0x0000000bu,0x00000019u,0x00020013u,0x00000002u,0x00030021u,0x00000003u,0x00000002u,0x00040015u,0x00000006u,0x00000020u,0x00000001u,0x00040017u,0x00000007u,0x00000006u,0x00000002u,0x00040020u,0x00000008u,0x00000007u,0x00000007u,0x00030016u,0x00000009u,0x00000020u,0x00040017u,0x0000000au,0x00000009u,0x00000004u,0x00050021u,0x0000000bu,0x0000000au,0x00000008u,0x00000008u,0x00050021u,0x00000010u,0x00000009u,0x00000008u,0x00000008u,0x00090019u,0x00000015u,0x00000009u,0x00000001u,0x00000000u,0x00000000u,0x00000000u,0x00000001u,0x00000000u,0x0003001bu,0x00000016u,0x00000015u,0x00040020u,0x00000017u,0x00000000u,0x00000016u,0x0004003bu,0x00000017u,0x00000018u,0x00000000u,0x0004002bu,0x00000006u,0x0000001bu,0x00000000u,0x0005002cu,0x00000007u,0x0000001cu,0x0000001bu,0x0000001bu,0x0004002bu,0x00000006u,0x0000001eu,0x00000001u,0x0004003bu,0x00000017u,0x00000026u,0x00000000u,Line truncated
|
||||
static const size_t OF3_FLOWREG_LEN = 1936;
|
||||
static const uint32_t DDFG_SYNTH_SPV[] = {0x07230203u,0x00010300u,0x0008000bu,0x00000208u,0x00000000u,0x00020011u,0x00000001u,0x00020011u,0x00000032u,0x0006000bu,0x00000001u,0x4c534c47u,0x6474732eu,0x3035342eu,0x00000000u,0x0003000eu,0x00000000u,0x00000001u,0x0006000fu,0x00000005u,0x00000004u,0x6e69616du,0x00000000u,0x0000001cu,0x00060010u,0x00000004u,0x00000011u,0x00000010u,0x00000010u,0x00000001u,0x00030003u,0x00000002u,0x000001c2u,0x00040005u,0x00000004u,0x6e69616du,0x00000000u,0x00050005u,0x0000000bu,0x616d756cu,0x33667628u,0x0000003bu,0x00030005u,0x0000000au,0x00000063u,0x00030005u,0x00000018u,0x00646967u,0x00080005u,0x0000001cu,0x475f6c67u,0x61626f6cu,0x766e496cu,0x7461636fu,0x496e6f69u,0x00000044u,0x00030005u,0x00000021u,0x006d6964u,0x00040005u,0x00000024u,0x74754f75u,0x00000000u,0x00040005u,0x0000003eu,0x44766e69u,0x00006d69u,0x00030005u,0x00000044u,0x00007675u,0x00030005u,0x0000004du,0x00000055u,0x00060006u,0x0000004du,0x00000000u,0x776f6c66u,0x6c616353u,0x00000065u,0x00050006u,0x0000004du,0x00000001u,0x68706c61u,0x00000061u,0x00050006u,0x0000004du,0x00000002u,0x61746562u,0x00000000u,0x00050006u,0x0000004du,0x00000003u,0x626d616cu,0x00006164u,0x00050006u,0x0000004du,0x00000004u,0x69737065u,0x006e6f6cu,0x00060006u,0x0000004du,0x00000005u,0x746f6870u,0x6163536fu,0x0000656cu,0x00050006u,0x0000004du,0x00000006u,0x30646170u,0x00000000u,0x00050006u,0x0000004du,0x00000007u,0x31646170u,0x00000000u,0x00050006u,0x0000004du,0x00000008u,0x52647568u,0x00746365u,0x00030005u,0x0000004fu,0x00000000u,0x00040005u,0x0000008cu,0x72754375u,0x00000072u,0x00030005u,0x00000098u,0x00676264u,0x00030005u,0x0000009fu,0x00007366u,0x00040005u,0x000000a9u,0x64774273u,0x00000000u,0x00050005u,0x000000aau,0x6f6c4675u,0x64774277u,0x00000000u,0x00040005u,0x000000aeu,0x64774673u,0x00000000u,0x00050005u,0x000000afu,0x6f6c4675u,0x64774677u,0x00000000u,0x00030005u,0x000000b3u,0x00313046u,0x00030005u,0x000000bau,0x00303146u,0x00040005u,0x000000c1u,0x31306663u,0x00000000u,0x00040005u,0x000000c5u,0x30316663u,0x00000000u,0x00030005u,0x000000c9u,0x0031306du,0x00030005u,0x000000d5u,0x0030316du,0x00030005u,0x000000e0u,0x00004170u,0x00030005u,0x000000e8u,0x00004270u,0x00030005u,0x000000f0u,0x00003043u,0x00040005u,0x000000f1u,0x65725075u,0x00000076u,0x00030005u,0x000000f6u,0x00003143u,0x00030005u,0x000000fbu,0x00004165u,0x00040005u,0x000000fcu,0x61726170u,0x0000006du,0x00040005u,0x0000010cu,0x61726170u,0x0000006du,0x00030005u,0x00000111u,0x00004265u,0x00040005u,0x00000112u,0x61726170u,0x0000006du,0x00040005u,0x00000122u,0x61726170u,0x0000006du,0x00040005u,0x00000127u,0x76556266u,0x00000000u,0x00040005u,0x0000012bu,0x65526266u,0x00646973u,0x00040005u,0x00000138u,0x736e6f63u,0x00747369u,0x00030005u,0x00000149u,0x0000305au,0x00030005u,0x00000157u,0x0000315au,0x00040005u,0x00000163u,0x30756174u,0x00000000u,0x00040005u,0x00000167u,0x31756174u,0x00000000u,0x00040005u,0x0000016au,0x78616d7au,0x00000000u,0x00030005u,0x0000016eu,0x00003057u,0x00030005u,0x00000179u,0x00003157u,0x00040005u,0x00000183u,0x6d757357u,0x00000000u,0x00040005u,0x00000187u,0x70726177u,0x00006465u,0x00050005u,0x000001a0u,0x736f7263u,0x64616673u,0x00000065u,0x00050005u,0x000001adu,0x746f6870u,0x7272456fu,0x00000000u,0x00050005u,0x000001b1u,0x746f6870u,0x7572546fu,0x00007473u,0x00040005u,0x000001b7u,0x73757274u,0x00000074u,0x00040005u,0x000001c3u,0x76657270u,0x00000043u,0x00040005u,0x000001c8u,0x72727563u,0x00000043u,0x00050005u,0x000001cdu,0x746e6f63u,0x44746e65u,0x00666669u,0x00050005u,0x000001d2u,0x72746e75u,0x65747375u,0x00000064u,0x00040005u,0x000001d7u,0x44676962u,0x00666669u,0x00050005u,0x000001dcu,0x70616e73u,0x75436f54u,0x00007272u,0x00040005u,0x000001e5u,0x6374756fu,0x00000000u,0x00030005u,0x000001eeu,0x0067616du,0x00030005u,0x000001f2u,0x0000006eu,0x00030005u,0x000001f6u,0x00746173u,0x00040047u,0x0000001cu,0x0000000bu,0x0000001cu,0x00030047u,0x00000024u,0x00000019u,0x00040047u,0x00000024u,0x00000021u,0x00000030u,0x00040047u,0x00000024u,0x00000022u,0x00000000u,0x00030047u,0x0000004du,0x00000002u,0x00050048u,0x0000004du,0x00000000u,0x00000023u,0x00000000u,0x00050048u,0x0000004du,0x00000001u,0x00000023u,0x00000004u,0x00050048u,0x0000004du,0x00000002u,0x00000023u,0x00000008u,0x00050048u,0x0000004du,0x00000003u,0x00000023u,0x0000000cu,0x00050048u,0x0000004du,0x00000004u,0x00000023u,0x00000010u,0x00050048u,0x0000004du,0x00000005u,0x00000023u,0x00000014u,0x00050048u,0x0000004du,0x00000006u,0x00000023u,0x00000018u,0x00050048u,0x0000004du,0x00000007u,0x00000023u,0x0000001cu,0x00050048u,0x0000004du,0x00000008u,0x00000023u,0x00000020u,0x00040047u,0x0000004fu,0x00000021u,0x00000000u,0x00040047u,0x0000004fu,0x00000022u,0x00000000u,0x00040047u,0x0000008cu,0x00000021u,0x00000021u,0x00040047u,0x0000008cu,0x00000022u,0x00000000u,0x00040047u,0x000000aau,0x00000021u,0x00000023u,0x00040047u,0x000000aau,0x00000022u,0x00000000u,0x00040047u,0x000000afu,0x00000021u,0x00000022u,0x00040047u,0x000000afu,0x00000022u,0x00000000u,0x00040047u,0x000000f1u,0x00000021u,0x00000020u,0x00040047u,0x000000f1u,0Line truncated
|
||||
static const size_t DDFG_SYNTH_LEN = 3082;
|
||||
struct Blob { const uint32_t* code; size_t words; };
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
#include "log.hpp"
|
||||
#include <cmath>
|
||||
#include <cstdio>
|
||||
#include <array>
|
||||
|
||||
namespace ddfg {
|
||||
|
||||
@@ -169,14 +168,6 @@ bool FrameGen::onResize(VkExtent2D extent, VkFormat , bool force) {
|
||||
|
||||
|
||||
if (!force && ready_ && extent.width == extent_.width && extent.height == extent_.height) return true;
|
||||
if (ready_) {
|
||||
const VkResult idleResult = dd_->DeviceWaitIdle(device_);
|
||||
if (idleResult != VK_SUCCESS) {
|
||||
DDFG_LOGE("framegen resize: DeviceWaitIdle failed (%d); keeping existing images", (int)idleResult);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
++imageGeneration_;
|
||||
for (auto& i : pyrA_) destroyImage(i); pyrA_.clear();
|
||||
for (auto& i : pyrB_) destroyImage(i); pyrB_.clear();
|
||||
for (auto& i : pyrAs_) destroyImage(i); pyrAs_.clear();
|
||||
@@ -220,35 +211,10 @@ void FrameGen::barrier(VkCommandBuffer cmd, VkImage img, VkImageLayout from, VkI
|
||||
VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, 0, 0, nullptr, 0, nullptr, 1, &b);
|
||||
}
|
||||
|
||||
void FrameGen::initializeImage(VkCommandBuffer cmd, VkImage img, VkImageLayout to) {
|
||||
VkImageMemoryBarrier b{VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER};
|
||||
b.oldLayout = VK_IMAGE_LAYOUT_UNDEFINED;
|
||||
b.newLayout = to;
|
||||
b.srcAccessMask = 0;
|
||||
b.dstAccessMask = VK_ACCESS_SHADER_WRITE_BIT;
|
||||
b.image = img;
|
||||
b.subresourceRange = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 1, 0, 1};
|
||||
b.srcQueueFamilyIndex = b.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED;
|
||||
dd_->CmdPipelineBarrier(cmd, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT,
|
||||
VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, 0, 0, nullptr, 0, nullptr, 1, &b);
|
||||
}
|
||||
|
||||
|
||||
void FrameGen::destroy() {
|
||||
if (!device_) return;
|
||||
const VkResult idleResult = dd_->DeviceWaitIdle(device_);
|
||||
if (idleResult != VK_SUCCESS && idleResult != VK_ERROR_DEVICE_LOST) {
|
||||
DDFG_LOGE("framegen destroy: DeviceWaitIdle failed (%d); preserving resources for safe retry", (int)idleResult);
|
||||
return;
|
||||
}
|
||||
if (idleResult == VK_ERROR_DEVICE_LOST) {
|
||||
// A lost device cannot become idle again. Still explicitly destroy its
|
||||
// child objects; skip descriptor-pool reset and release scratch ownership.
|
||||
DDFG_LOGE("framegen destroy: device lost; releasing owned resources without waiting");
|
||||
destroyScratchResources(false);
|
||||
} else {
|
||||
destroyScratchResources();
|
||||
}
|
||||
dd_->DeviceWaitIdle(device_);
|
||||
for (auto& i : pyrA_) destroyImage(i); pyrA_.clear();
|
||||
for (auto& i : pyrB_) destroyImage(i); pyrB_.clear();
|
||||
for (auto& i : pyrAs_) destroyImage(i); pyrAs_.clear();
|
||||
|
||||
@@ -63,8 +63,6 @@ private:
|
||||
const std::vector<VkDescriptorType>& bindings);
|
||||
void destroyPipe(Pipe& p);
|
||||
void barrier(VkCommandBuffer cmd, VkImage img, VkImageLayout from, VkImageLayout to);
|
||||
void initializeImage(VkCommandBuffer cmd, VkImage img, VkImageLayout to);
|
||||
void destroyScratchResources(bool resetPool = true);
|
||||
|
||||
const DeviceDispatch* dd_ = nullptr;
|
||||
const InstanceDispatch* id_ = nullptr;
|
||||
@@ -78,7 +76,6 @@ private:
|
||||
|
||||
Config cfg_;
|
||||
VkExtent2D extent_{};
|
||||
uint64_t imageGeneration_ = 0;
|
||||
bool ready_ = false;
|
||||
int flowFinest_ = kFlowFinestDefault;
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
|
||||
namespace {
|
||||
struct ScratchState {
|
||||
VkDevice ownerDevice = VK_NULL_HANDLE;
|
||||
VkBuffer synthUbo[ddfg::FrameGen::kSynthSlots]{};
|
||||
VkDeviceMemory synthUboMem[ddfg::FrameGen::kSynthSlots]{};
|
||||
void* synthUboPtr[ddfg::FrameGen::kSynthSlots]{};
|
||||
@@ -22,7 +21,6 @@ struct ScratchState {
|
||||
VkDescriptorSet sGmReduce[ddfg::FrameGen::kGmSlots]{};
|
||||
std::vector<VkDescriptorSet> sGmPrewarp[ddfg::FrameGen::kGmSlots];
|
||||
VkExtent2D builtFor{0,0};
|
||||
uint64_t builtGeneration = 0;
|
||||
bool built = false;
|
||||
bool flowInited = false;
|
||||
bool flowReady = false;
|
||||
@@ -60,26 +58,6 @@ static void wImg(const ddfg::DeviceDispatch* dd, VkDevice dev, VkDescriptorSet s
|
||||
w.dstSet = set; w.dstBinding = binding; w.descriptorCount = 1; w.descriptorType = type; w.pImageInfo = ⅈ
|
||||
dd->UpdateDescriptorSets(dev, 1, &w, 0, nullptr);
|
||||
}
|
||||
static void wImgBatch(const ddfg::DeviceDispatch* dd, VkDevice dev,
|
||||
const VkDescriptorSet* sets, const uint32_t* bindings,
|
||||
const VkDescriptorType* types, const VkImageView* views,
|
||||
const VkSampler* samplers, const VkImageLayout* layouts,
|
||||
uint32_t count) {
|
||||
VkDescriptorImageInfo infos[3]{};
|
||||
VkWriteDescriptorSet writes[3]{};
|
||||
for (uint32_t i = 0; i < count; ++i) {
|
||||
infos[i].imageView = views[i];
|
||||
infos[i].sampler = samplers[i];
|
||||
infos[i].imageLayout = layouts[i];
|
||||
writes[i] = {VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET};
|
||||
writes[i].dstSet = sets[i];
|
||||
writes[i].dstBinding = bindings[i];
|
||||
writes[i].descriptorCount = 1;
|
||||
writes[i].descriptorType = types[i];
|
||||
writes[i].pImageInfo = &infos[i];
|
||||
}
|
||||
dd->UpdateDescriptorSets(dev, count, writes, 0, nullptr);
|
||||
}
|
||||
static void wUbo(const ddfg::DeviceDispatch* dd, VkDevice dev, VkDescriptorSet set, uint32_t binding,
|
||||
VkBuffer buf, VkDeviceSize range) {
|
||||
VkDescriptorBufferInfo bi{}; bi.buffer = buf; bi.range = range;
|
||||
@@ -155,11 +133,9 @@ static bool ensureScratch(FrameGen* fg, const DeviceDispatch* dd, VkDevice dev,
|
||||
const FrameGen::Pipe& pSynth, const FrameGen::Pipe& pGmReduce,
|
||||
const FrameGen::Pipe& pGmPrewarp, const FrameGen::Pipe& pFlowReg,
|
||||
FrameGen::Img& flowRegA, FrameGen::Img& flowRegB, VkBuffer* gmSsbo,
|
||||
int kLevels, const Config& cfg, uint64_t imageGeneration);
|
||||
int kLevels, const Config& cfg);
|
||||
|
||||
static void destroyScratch(const DeviceDispatch* dd, VkDevice dev, VkDescriptorPool pool,
|
||||
bool resetPool = true) {
|
||||
if (g_scratch.ownerDevice != VK_NULL_HANDLE && g_scratch.ownerDevice != dev) return;
|
||||
static void destroyScratch(const DeviceDispatch* dd, VkDevice dev, VkDescriptorPool pool) {
|
||||
auto freeUbo = [&](VkBuffer& b, VkDeviceMemory& m, void*& p) {
|
||||
if (m) dd->UnmapMemory(dev, m);
|
||||
if (b) dd->DestroyBuffer(dev, b, nullptr);
|
||||
@@ -172,68 +148,40 @@ static void destroyScratch(const DeviceDispatch* dd, VkDevice dev, VkDescriptorP
|
||||
freeUbo(S.flowRegUbo, S.flowRegUboMem, S.flowRegUboPtr);
|
||||
for (size_t i = 0; i < S.flowUbo.size(); ++i) freeUbo(S.flowUbo[i], S.flowUboMem[i], S.flowUboPtr[i]);
|
||||
for (int s = 0; s < FrameGen::kGmSlots; ++s) freeUbo(S.gmUbo[s], S.gmUboMem[s], S.gmUboPtr[s]);
|
||||
if (resetPool && pool && dd->ResetDescriptorPool) dd->ResetDescriptorPool(dev, pool, 0);
|
||||
if (pool && dd->ResetDescriptorPool) dd->ResetDescriptorPool(dev, pool, 0);
|
||||
S = ScratchState{};
|
||||
}
|
||||
|
||||
void FrameGen::destroyScratchResources(bool resetPool) {
|
||||
destroyScratch(dd_, device_, descPool_, resetPool);
|
||||
}
|
||||
|
||||
void FrameGen::configure(const Config& c) {
|
||||
Config nextCfg = c;
|
||||
nextCfg.sanitize();
|
||||
int want = flowFinestForPreset(nextCfg.perfPreset);
|
||||
cfg_ = c; cfg_.sanitize();
|
||||
int want = flowFinestForPreset(cfg_.perfPreset);
|
||||
const int maxFinest = kLevels - 2;
|
||||
if (want > maxFinest) {
|
||||
DDFG_LOGE("perf-preset=%d wants kFlowFinest=%d but only %d pyramid levels exist "
|
||||
"(need >=2 solved) - clamping to %d", nextCfg.perfPreset, want, kLevels, maxFinest);
|
||||
"(need >=2 solved) - clamping to %d", cfg_.perfPreset, want, kLevels, maxFinest);
|
||||
want = maxFinest;
|
||||
}
|
||||
if (want < 1) want = 1;
|
||||
|
||||
const int prevFinest = flowFinest_;
|
||||
const bool live = (want != prevFinest) && ready_;
|
||||
DDFG_LOGI("perf-preset=%d -> kFlowFinest=%d (was %d) live-rebuild=%d ready=%d",
|
||||
nextCfg.perfPreset, want, prevFinest, live ? 1 : 0, ready_ ? 1 : 0);
|
||||
|
||||
if (!live) {
|
||||
cfg_ = nextCfg;
|
||||
flowFinest_ = want;
|
||||
return;
|
||||
}
|
||||
|
||||
// Keep the previous configuration and image set if the device cannot idle.
|
||||
const VkResult idleResult = dd_->DeviceWaitIdle(device_);
|
||||
if (idleResult != VK_SUCCESS) {
|
||||
DDFG_LOGE("framegen configure: DeviceWaitIdle failed (%d); keeping previous configuration and images",
|
||||
(int)idleResult);
|
||||
return;
|
||||
}
|
||||
|
||||
// The device is idle, so reset motion history before rebuilding. This
|
||||
// also leaves the predictor reset if onResize fails.
|
||||
for (int i = 0; i < 6; ++i) gmRun_[i] = 0.0;
|
||||
for (int s = 0; s < kGmSlots; ++s) {
|
||||
gmSlotValid_[s] = false;
|
||||
for (int i = 0; i < 6; ++i) gmLinAt_[s][i] = 0.0;
|
||||
}
|
||||
gmHaveEst_ = false;
|
||||
gmEngaged_ = false;
|
||||
gmStableCount_ = 0;
|
||||
gmLastTransPx_ = 0.0f;
|
||||
|
||||
// Prevent onResize from issuing a second wait.
|
||||
destroyScratch(dd_, device_, descPool_);
|
||||
cfg_ = nextCfg;
|
||||
flowFinest_ = want;
|
||||
ready_ = false;
|
||||
if (!onResize(extent_, VK_FORMAT_UNDEFINED, true)) {
|
||||
ready_ = false;
|
||||
const bool live = (flowFinest_ != prevFinest) && ready_;
|
||||
DDFG_LOGI("perf-preset=%d -> kFlowFinest=%d (was %d) live-rebuild=%d ready=%d",
|
||||
cfg_.perfPreset, flowFinest_, prevFinest, live ? 1 : 0, ready_ ? 1 : 0);
|
||||
|
||||
if (!live) return;
|
||||
|
||||
|
||||
|
||||
|
||||
dd_->DeviceWaitIdle(device_);
|
||||
destroyScratch(dd_, device_, descPool_);
|
||||
if (!onResize(extent_, VK_FORMAT_UNDEFINED, true))
|
||||
DDFG_LOGE("perf-preset live rebuild: onResize FAILED at %ux%u - FG disabled until next resize",
|
||||
extent_.width, extent_.height);
|
||||
return;
|
||||
}
|
||||
extent_.width, extent_.height);
|
||||
for (int i = 0; i < 6; ++i) gmRun_[i] = 0.0;
|
||||
for (int s = 0; s < kGmSlots; ++s) { gmSlotValid_[s] = false; for (int i = 0; i < 6; ++i) gmLinAt_[s][i] = 0.0; }
|
||||
gmHaveEst_ = false; gmEngaged_ = false; gmStableCount_ = 0; gmLastTransPx_ = 0.0f;
|
||||
DDFG_LOGI("perf-preset live rebuild DONE (kFlowFinest=%d, flow predictor reset)", flowFinest_);
|
||||
}
|
||||
|
||||
@@ -251,10 +199,10 @@ bool FrameGen::updateGlobalMotion(uint32_t gmSlot, VkExtent2D fullExtent) {
|
||||
bool good = false;
|
||||
if (gmSlotValid_[gmSlot]) {
|
||||
const float* pt = (const float*)gmSsboPtr_[gmSlot];
|
||||
double sums[28]{};
|
||||
double sums[32]; for (int k = 0; k < 32; ++k) sums[k] = 0.0;
|
||||
for (int t = 0; t < kGmThreads; ++t) {
|
||||
const float* row = pt + (size_t)t * kGmStride;
|
||||
for (int k = 0; k < 28; ++k) sums[k] += (double)row[k];
|
||||
for (int k = 0; k < kGmStride; ++k) sums[k] += (double)row[k];
|
||||
}
|
||||
double coverage = sums[27];
|
||||
double lvlpx = double((fullExtent.width >> kGmLevel) * (fullExtent.height >> kGmLevel));
|
||||
@@ -312,25 +260,13 @@ void FrameGen::record(VkCommandBuffer cmd, VkImageView prevView, VkImageView cur
|
||||
const Pipe& flowP = m4 ? pFlowM4_ : pFlow_;
|
||||
const Pipe& expandP = m4 ? pExpandM4_ : pExpand_;
|
||||
|
||||
if (!g_scratch.built || g_scratch.builtFor.width != extent_.width ||
|
||||
g_scratch.builtFor.height != extent_.height ||
|
||||
g_scratch.builtGeneration != imageGeneration_) {
|
||||
if (g_scratch.built) {
|
||||
const VkResult idleResult = dd_->DeviceWaitIdle(device_);
|
||||
if (idleResult != VK_SUCCESS) {
|
||||
DDFG_LOGE("framegen record: DeviceWaitIdle failed (%d); skipping scratch rebuild", (int)idleResult);
|
||||
return;
|
||||
}
|
||||
destroyScratch(dd_, device_, descPool_);
|
||||
}
|
||||
if (!ensureScratch(this, dd_, device_, memProps_, descPool_, linear_, extent_,
|
||||
pyrA_, pyrB_, pyrAs_, flowLvl_, flowExpA_, flowExpB_,
|
||||
pLuma_, pDown_, flowP, expandP, pSynth_, pGmReduce_, pGmPrewarp_,
|
||||
pFlowReg_, flowRegA_, flowRegB_, gmSsbo_, kLevels, cfg_, imageGeneration_))
|
||||
return;
|
||||
if (!g_scratch.built || g_scratch.builtFor.width != extent_.width || g_scratch.builtFor.height != extent_.height) {
|
||||
ensureScratch(this, dd_, device_, memProps_, descPool_, linear_, extent_,
|
||||
pyrA_, pyrB_, pyrAs_, flowLvl_, flowExpA_, flowExpB_,
|
||||
pLuma_, pDown_, flowP, expandP, pSynth_, pGmReduce_, pGmPrewarp_,
|
||||
pFlowReg_, flowRegA_, flowRegB_, gmSsbo_, kLevels, cfg_);
|
||||
}
|
||||
|
||||
if (g_scratch.ownerDevice != device_) return;
|
||||
if (reuseFlow && !g_scratch.flowReady) return;
|
||||
if (!reuseFlow) {
|
||||
bool gmEngaged = updateGlobalMotion(gmSlot, extent_);
|
||||
@@ -353,16 +289,8 @@ void FrameGen::record(VkCommandBuffer cmd, VkImageView prevView, VkImageView cur
|
||||
}
|
||||
}
|
||||
|
||||
const VkDescriptorSet lumaSets[] = {g_scratch.sLumaCurr, g_scratch.sLumaPrev};
|
||||
const uint32_t lumaBindings[] = {32, 32};
|
||||
const VkDescriptorType lumaTypes[] = {
|
||||
VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER};
|
||||
const VkImageView lumaViews[] = {currView, prevView};
|
||||
const VkSampler lumaSamplers[] = {linear_, linear_};
|
||||
const VkImageLayout lumaLayouts[] = {
|
||||
VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL};
|
||||
wImgBatch(dd_, device_, lumaSets, lumaBindings, lumaTypes, lumaViews,
|
||||
lumaSamplers, lumaLayouts, 2);
|
||||
wImg(dd_, device_, g_scratch.sLumaCurr, 32, VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, currView, linear_, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL);
|
||||
wImg(dd_, device_, g_scratch.sLumaPrev, 32, VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, prevView, linear_, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL);
|
||||
}
|
||||
|
||||
SynthUBO su{cfg_.flowScale, alpha, cfg_.beta, cfg_.lambda, cfg_.epsilon, cfg_.photoScale, 0, 0,
|
||||
@@ -370,20 +298,9 @@ void FrameGen::record(VkCommandBuffer cmd, VkImageView prevView, VkImageView cur
|
||||
if (g_scratch.synthUboPtr[synthSlot]) std::memcpy(g_scratch.synthUboPtr[synthSlot], &su, sizeof(su));
|
||||
|
||||
const VkDescriptorSet synthSet = g_scratch.sSynth[synthSlot];
|
||||
const VkDescriptorSet synthSets[] = {synthSet, synthSet, synthSet};
|
||||
const uint32_t synthBindings[] = {32, 33, 48};
|
||||
const VkDescriptorType synthTypes[] = {
|
||||
VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER,
|
||||
VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER,
|
||||
VK_DESCRIPTOR_TYPE_STORAGE_IMAGE};
|
||||
const VkImageView synthViews[] = {prevView, currView, outView};
|
||||
const VkSampler synthSamplers[] = {linear_, linear_, VK_NULL_HANDLE};
|
||||
const VkImageLayout synthLayouts[] = {
|
||||
VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL,
|
||||
VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL,
|
||||
VK_IMAGE_LAYOUT_GENERAL};
|
||||
wImgBatch(dd_, device_, synthSets, synthBindings, synthTypes, synthViews,
|
||||
synthSamplers, synthLayouts, 3);
|
||||
wImg(dd_, device_, synthSet, 32, VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, prevView, linear_, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL);
|
||||
wImg(dd_, device_, synthSet, 33, VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, currView, linear_, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL);
|
||||
wImg(dd_, device_, synthSet, 48, VK_DESCRIPTOR_TYPE_STORAGE_IMAGE, outView, VK_NULL_HANDLE, VK_IMAGE_LAYOUT_GENERAL);
|
||||
|
||||
auto disp = [&](const Pipe& p, VkDescriptorSet set, VkExtent2D e) {
|
||||
dd_->CmdBindPipeline(cmd, VK_PIPELINE_BIND_POINT_COMPUTE, p.pipeline);
|
||||
@@ -391,90 +308,39 @@ void FrameGen::record(VkCommandBuffer cmd, VkImageView prevView, VkImageView cur
|
||||
dd_->CmdDispatch(cmd, (e.width + 15) / 16, (e.height + 15) / 16, 1);
|
||||
};
|
||||
auto bar = [&](FrameGen::Img& i){ barrier(cmd, i.image, VK_IMAGE_LAYOUT_GENERAL, VK_IMAGE_LAYOUT_GENERAL); };
|
||||
auto barPair = [&](FrameGen::Img& a, FrameGen::Img& b) {
|
||||
VkImageMemoryBarrier barriers[2]{};
|
||||
FrameGen::Img* images[] = {&a, &b};
|
||||
for (uint32_t i = 0; i < 2; ++i) {
|
||||
barriers[i].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER;
|
||||
barriers[i].srcAccessMask = VK_ACCESS_SHADER_WRITE_BIT;
|
||||
barriers[i].dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT;
|
||||
barriers[i].oldLayout = VK_IMAGE_LAYOUT_GENERAL;
|
||||
barriers[i].newLayout = VK_IMAGE_LAYOUT_GENERAL;
|
||||
barriers[i].srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED;
|
||||
barriers[i].dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED;
|
||||
barriers[i].image = images[i]->image;
|
||||
barriers[i].subresourceRange = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 1, 0, 1};
|
||||
}
|
||||
dd_->CmdPipelineBarrier(cmd, VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT,
|
||||
VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, 0, 0, nullptr,
|
||||
0, nullptr, 2, barriers);
|
||||
};
|
||||
const bool frEngaged = (cfg_.frMode != 2) && (cfg_.frIters > 0);
|
||||
|
||||
if (!reuseFlow) {
|
||||
// Batch fresh-image transitions that share the same stage and access masks.
|
||||
std::array<VkImageMemoryBarrier, 4 * kLevels + 1> initBarriers{};
|
||||
size_t initBarrierCount = 0;
|
||||
auto addInitBarrier = [&](VkImage image) {
|
||||
VkImageMemoryBarrier b{VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER};
|
||||
b.oldLayout = VK_IMAGE_LAYOUT_UNDEFINED;
|
||||
b.newLayout = VK_IMAGE_LAYOUT_GENERAL;
|
||||
b.srcAccessMask = 0;
|
||||
b.dstAccessMask = VK_ACCESS_SHADER_WRITE_BIT;
|
||||
b.image = image;
|
||||
b.subresourceRange = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 1, 0, 1};
|
||||
b.srcQueueFamilyIndex = b.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED;
|
||||
initBarriers[initBarrierCount++] = b;
|
||||
};
|
||||
for (auto& i : pyrA_) addInitBarrier(i.image);
|
||||
for (auto& i : pyrB_) addInitBarrier(i.image);
|
||||
for (int l = flowFinest_; l < kLevels; ++l) addInitBarrier(pyrAs_[l].image);
|
||||
addInitBarrier(flowExpA_.image);
|
||||
addInitBarrier(flowExpB_.image);
|
||||
if (frEngaged) {
|
||||
addInitBarrier(flowRegA_.image);
|
||||
addInitBarrier(flowRegB_.image);
|
||||
}
|
||||
// The final flow level is cleared through TRANSFER_DST_OPTIMAL below;
|
||||
// the other levels can use the common initialization barrier.
|
||||
for (int l = flowFinest_; l < kLevels - 1; ++l) addInitBarrier(flowLvl_[l].image);
|
||||
if (initBarrierCount != 0) {
|
||||
dd_->CmdPipelineBarrier(cmd,
|
||||
VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT | VK_PIPELINE_STAGE_TRANSFER_BIT,
|
||||
VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, 0, 0, nullptr,
|
||||
0, nullptr, static_cast<uint32_t>(initBarrierCount), initBarriers.data());
|
||||
}
|
||||
for (auto& i : pyrA_) barrier(cmd, i.image, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_GENERAL);
|
||||
for (auto& i : pyrB_) barrier(cmd, i.image, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_GENERAL);
|
||||
for (int l = flowFinest_; l < kLevels; ++l) barrier(cmd, pyrAs_[l].image, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_GENERAL);
|
||||
barrier(cmd, flowExpA_.image, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_GENERAL);
|
||||
barrier(cmd, flowExpB_.image, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_GENERAL);
|
||||
barrier(cmd, flowRegA_.image, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_GENERAL);
|
||||
barrier(cmd, flowRegB_.image, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_GENERAL);
|
||||
{
|
||||
VkClearColorValue zero{};
|
||||
VkImageSubresourceRange rng{VK_IMAGE_ASPECT_COLOR_BIT, 0, 1, 0, 1};
|
||||
VkImageMemoryBarrier b{VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER};
|
||||
b.oldLayout = VK_IMAGE_LAYOUT_UNDEFINED;
|
||||
b.newLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
|
||||
b.srcAccessMask = 0;
|
||||
b.dstAccessMask = VK_ACCESS_TRANSFER_WRITE_BIT;
|
||||
b.image = flowLvl_[kLevels - 1].image;
|
||||
b.subresourceRange = rng;
|
||||
b.srcQueueFamilyIndex = b.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED;
|
||||
dd_->CmdPipelineBarrier(cmd,
|
||||
VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT | VK_PIPELINE_STAGE_TRANSFER_BIT,
|
||||
VK_PIPELINE_STAGE_TRANSFER_BIT, 0, 0, nullptr, 0, nullptr, 1, &b);
|
||||
dd_->CmdClearColorImage(cmd, flowLvl_[kLevels - 1].image,
|
||||
VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, &zero, 1, &rng);
|
||||
b.oldLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
|
||||
b.newLayout = VK_IMAGE_LAYOUT_GENERAL;
|
||||
b.srcAccessMask = VK_ACCESS_TRANSFER_WRITE_BIT;
|
||||
b.dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT;
|
||||
dd_->CmdPipelineBarrier(cmd, VK_PIPELINE_STAGE_TRANSFER_BIT,
|
||||
VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, 0, 0, nullptr, 0, nullptr, 1, &b);
|
||||
for (int l = flowFinest_; l < kLevels; ++l) {
|
||||
VkImageMemoryBarrier b{VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER};
|
||||
b.oldLayout = VK_IMAGE_LAYOUT_UNDEFINED; b.newLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
|
||||
b.srcAccessMask = 0; b.dstAccessMask = VK_ACCESS_TRANSFER_WRITE_BIT;
|
||||
b.image = flowLvl_[l].image; b.subresourceRange = rng;
|
||||
b.srcQueueFamilyIndex = b.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED;
|
||||
dd_->CmdPipelineBarrier(cmd, VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, VK_PIPELINE_STAGE_TRANSFER_BIT, 0, 0, nullptr, 0, nullptr, 1, &b);
|
||||
dd_->CmdClearColorImage(cmd, flowLvl_[l].image, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, &zero, 1, &rng);
|
||||
b.oldLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL; b.newLayout = VK_IMAGE_LAYOUT_GENERAL;
|
||||
b.srcAccessMask = VK_ACCESS_TRANSFER_WRITE_BIT; b.dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT;
|
||||
dd_->CmdPipelineBarrier(cmd, VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, 0, 0, nullptr, 0, nullptr, 1, &b);
|
||||
}
|
||||
}
|
||||
|
||||
disp(pLuma_, g_scratch.sLumaCurr, levelExtent(extent_, 0));
|
||||
disp(pLuma_, g_scratch.sLumaPrev, levelExtent(extent_, 0));
|
||||
barPair(pyrA_[0], pyrB_[0]);
|
||||
bar(pyrA_[0]); bar(pyrB_[0]);
|
||||
for (int l = 1; l < kLevels; ++l) {
|
||||
disp(pDown_, g_scratch.sDownA[l - 1], levelExtent(extent_, l));
|
||||
disp(pDown_, g_scratch.sDownB[l - 1], levelExtent(extent_, l));
|
||||
barPair(pyrA_[l], pyrB_[l]);
|
||||
bar(pyrA_[l]); bar(pyrB_[l]);
|
||||
}
|
||||
if (gmBuffersReady_ && g_scratch.sGmReduce[gmSlot]) {
|
||||
dd_->CmdBindPipeline(cmd, VK_PIPELINE_BIND_POINT_COMPUTE, pGmReduce_.pipeline);
|
||||
@@ -494,6 +360,7 @@ void FrameGen::record(VkCommandBuffer cmd, VkImageView prevView, VkImageView cur
|
||||
bar(flowLvl_[l]);
|
||||
}
|
||||
|
||||
const bool frEngaged = (cfg_.frMode != 2) && (cfg_.frIters > 0);
|
||||
if (frEngaged) {
|
||||
const int F = flowFinest_;
|
||||
const VkExtent2D fe = levelExtent(extent_, F);
|
||||
@@ -510,7 +377,7 @@ void FrameGen::record(VkCommandBuffer cmd, VkImageView prevView, VkImageView cur
|
||||
dd_->CmdBindPipeline(cmd, VK_PIPELINE_BIND_POINT_COMPUTE, pFlowReg_.pipeline);
|
||||
dd_->CmdBindDescriptorSets(cmd, VK_PIPELINE_BIND_POINT_COMPUTE, pFlowReg_.layout, 0, 1, &set, 0, nullptr);
|
||||
dd_->CmdDispatch(cmd, (fe.width + 15) / 16, (fe.height + 15) / 16, 1);
|
||||
if (it + 1 < cfg_.frIters) bar(*outImg);
|
||||
bar(*outImg);
|
||||
last = outImg;
|
||||
}
|
||||
VkMemoryBarrier mb{VK_STRUCTURE_TYPE_MEMORY_BARRIER};
|
||||
@@ -541,7 +408,7 @@ void FrameGen::record(VkCommandBuffer cmd, VkImageView prevView, VkImageView cur
|
||||
}
|
||||
|
||||
disp(expandP, g_scratch.sExpand[gmSlot], levelExtent(extent_, 0));
|
||||
barPair(flowExpA_, flowExpB_);
|
||||
bar(flowExpA_); bar(flowExpB_);
|
||||
g_scratch.flowReady = true;
|
||||
}
|
||||
disp(pSynth_, synthSet, levelExtent(extent_, 0));
|
||||
@@ -558,11 +425,9 @@ static bool ensureScratch(FrameGen* fg, const DeviceDispatch* dd, VkDevice dev,
|
||||
const FrameGen::Pipe& pSynth, const FrameGen::Pipe& pGmReduce,
|
||||
const FrameGen::Pipe& pGmPrewarp, const FrameGen::Pipe& pFlowReg,
|
||||
FrameGen::Img& flowRegA, FrameGen::Img& flowRegB, VkBuffer* gmSsbo,
|
||||
int kLevels, const Config& cfg, uint64_t imageGeneration) {
|
||||
int kLevels, const Config& cfg) {
|
||||
auto& S = g_scratch;
|
||||
if (S.ownerDevice != VK_NULL_HANDLE && S.ownerDevice != dev) return false;
|
||||
S = ScratchState{};
|
||||
S.ownerDevice = dev;
|
||||
const auto GEN = VK_IMAGE_LAYOUT_GENERAL;
|
||||
|
||||
for (int s = 0; s < FrameGen::kSynthSlots; ++s)
|
||||
@@ -663,7 +528,7 @@ static bool ensureScratch(FrameGen* fg, const DeviceDispatch* dd, VkDevice dev,
|
||||
wImg(dd, dev, S.sSynth[s], 35, VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, expB.view, samp, GEN);
|
||||
}
|
||||
|
||||
S.builtFor = ext; S.builtGeneration = imageGeneration; S.ownerDevice = dev; S.built = true;
|
||||
S.builtFor = ext; S.built = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -614,13 +614,10 @@ private:
|
||||
XrSessionBeginInfo begin{XR_TYPE_SESSION_BEGIN_INFO};
|
||||
begin.primaryViewConfigurationType = XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO;
|
||||
check(xrBeginSession(session_, &begin), "xrBeginSession"); running_ = true;
|
||||
// Meta's clock governor scales clocks by the DroidDeck process's overall load and cannot see
|
||||
// SteamVR missing refreshes inside the guest; holding the top level kept it at 72 Hz.
|
||||
if (setPerformance_) {
|
||||
for (auto domain : {XR_PERF_SETTINGS_DOMAIN_CPU_EXT, XR_PERF_SETTINGS_DOMAIN_GPU_EXT}) {
|
||||
XrResult request = setPerformance_(session_, domain, XR_PERF_SETTINGS_LEVEL_BOOST_EXT);
|
||||
if (XR_FAILED(request)) request = setPerformance_(session_, domain, XR_PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT);
|
||||
__android_log_print(ANDROID_LOG_INFO, "DroidDeckXR", "performance domain=%d result=%d", domain, request);
|
||||
XrResult request = setPerformance_(session_, domain, XR_PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT);
|
||||
__android_log_print(ANDROID_LOG_INFO, "DroidDeckXR", "sustained performance domain=%d result=%d", domain, request);
|
||||
}
|
||||
}
|
||||
} else if (state_ == XR_SESSION_STATE_STOPPING) {
|
||||
|
||||
@@ -133,10 +133,10 @@ static void handle_released(uint64_t id, int fd) {
|
||||
if (fd >= 0) {
|
||||
struct droiddeck_dma_buf_sync_file imp = {.flags = DROIDDECK_DMA_BUF_SYNC_READ, .fd = fd};
|
||||
int dmabuf_fd = droiddeck_dmabuf_fd(ab->b);
|
||||
if (dmabuf_fd >= 0 && ioctl(dmabuf_fd, DROIDDECK_DMA_BUF_IOCTL_IMPORT_SYNC_FILE, &imp) == 0) {
|
||||
if (!ab->display && dmabuf_fd >= 0 && ioctl(dmabuf_fd, DROIDDECK_DMA_BUF_IOCTL_IMPORT_SYNC_FILE, &imp) == 0) {
|
||||
close(fd);
|
||||
} else {
|
||||
if (!g_import_failed_logged) {
|
||||
if (!ab->display && !g_import_failed_logged) {
|
||||
g_import_failed_logged = 1;
|
||||
droiddeck_log("layer", "zero-copy: DMA_BUF_IOCTL_IMPORT_SYNC_FILE failed (%s): releases wait for the display's fence here instead",
|
||||
strerror(errno));
|
||||
|
||||
@@ -148,7 +148,6 @@ struct slot {
|
||||
uint32_t fmt;
|
||||
int release_fd;
|
||||
int busy;
|
||||
uint64_t generation;
|
||||
};
|
||||
|
||||
struct layer {
|
||||
@@ -176,7 +175,6 @@ struct layer {
|
||||
int votes_rate;
|
||||
float fps_applied;
|
||||
int recreate_pending;
|
||||
int pending_callbacks;
|
||||
|
||||
int32_t ds_applied;
|
||||
|
||||
@@ -224,7 +222,6 @@ struct complete_ctx {
|
||||
ASurfaceControl *sc;
|
||||
int layer;
|
||||
int prev_slot;
|
||||
uint64_t prev_generation;
|
||||
void *prev_token;
|
||||
int retire;
|
||||
};
|
||||
@@ -291,16 +288,12 @@ static void on_complete(void *context, ASurfaceTransactionStats *stats) {
|
||||
pthread_mutex_lock(&g_lock);
|
||||
if (ctx->layer >= 0 && ctx->layer < SC_LAYER_COUNT && ctx->prev_slot >= 0 && ctx->prev_slot < POOL_MAX) {
|
||||
struct slot *s = &g_layers[ctx->layer].slots[ctx->prev_slot];
|
||||
if (s->generation == ctx->prev_generation) {
|
||||
int fd = (stats && ctx->sc) ? api.prevReleaseFence(stats, ctx->sc) : -1;
|
||||
if (s->release_fd >= 0) close(s->release_fd);
|
||||
s->release_fd = fd;
|
||||
s->busy = 0;
|
||||
}
|
||||
int fd = (stats && ctx->sc) ? api.prevReleaseFence(stats, ctx->sc) : -1;
|
||||
if (s->release_fd >= 0) close(s->release_fd);
|
||||
s->release_fd = fd;
|
||||
s->busy = 0;
|
||||
}
|
||||
if (g_pending_cb > 0) g_pending_cb--;
|
||||
if (ctx->layer >= 0 && ctx->layer < SC_LAYER_COUNT && g_layers[ctx->layer].pending_callbacks > 0)
|
||||
g_layers[ctx->layer].pending_callbacks--;
|
||||
pthread_mutex_unlock(&g_lock);
|
||||
if (ctx->prev_token) {
|
||||
int fd = (stats && ctx->sc) ? api.prevReleaseFence(stats, ctx->sc) : -1;
|
||||
@@ -315,15 +308,9 @@ static int add_complete_on(ASurfaceTransaction *tx, struct layer *l, ASurfaceCon
|
||||
struct complete_ctx *ctx = calloc(1, sizeof(*ctx));
|
||||
if (!ctx) return -1;
|
||||
ctx->sc = sc; ctx->layer = (int)(l - g_layers); ctx->prev_slot = prev_slot;
|
||||
if (prev_slot >= 0 && prev_slot < POOL_MAX) {
|
||||
pthread_mutex_lock(&g_lock);
|
||||
ctx->prev_generation = l->slots[prev_slot].generation;
|
||||
pthread_mutex_unlock(&g_lock);
|
||||
}
|
||||
ctx->prev_token = prev_token; ctx->retire = retire;
|
||||
pthread_mutex_lock(&g_lock);
|
||||
g_pending_cb++;
|
||||
l->pending_callbacks++;
|
||||
pthread_mutex_unlock(&g_lock);
|
||||
api.setOnComplete(tx, ctx, on_complete);
|
||||
return 0;
|
||||
@@ -410,16 +397,12 @@ static void retire_sc(struct layer *l) {
|
||||
ASurfaceTransaction *tx = api.txCreate();
|
||||
if (tx) {
|
||||
retire_ops(tx, l->sc);
|
||||
if (add_complete(tx, l, l->cur_slot, l->cur_token, 1) != 0) {
|
||||
api.txDelete(tx);
|
||||
droiddeck_log("layer", "%s: retirement deferred because its release callback could not be allocated", l->name);
|
||||
return;
|
||||
}
|
||||
if (add_complete(tx, l, l->cur_slot, l->cur_token, 1) != 0) api.release(l->sc);
|
||||
api.txApply(tx);
|
||||
api.txDelete(tx);
|
||||
} else {
|
||||
droiddeck_log("layer", "%s: retirement deferred because a transaction could not be allocated", l->name);
|
||||
return;
|
||||
if (l->cur_token) ahb_swapchain_layer_released(l->cur_token, -1);
|
||||
api.release(l->sc);
|
||||
}
|
||||
droiddeck_log("layer", "%s: SurfaceControl retired (window %p)", l->name, (void *)l->win);
|
||||
l->sc = NULL; l->win = NULL;
|
||||
@@ -438,28 +421,20 @@ static void drain_and_free_pools(void) {
|
||||
if (!pending || now_ns() > deadline) break;
|
||||
usleep(2000);
|
||||
}
|
||||
pthread_mutex_lock(&g_lock);
|
||||
for (int i = 0; i < SC_LAYER_COUNT; i++) {
|
||||
struct layer *l = &g_layers[i];
|
||||
pthread_mutex_lock(&g_lock);
|
||||
const int pending = l->pending_callbacks;
|
||||
if (pending || l->sc) {
|
||||
pthread_mutex_unlock(&g_lock);
|
||||
droiddeck_log("layer", "pool drain deferred for %s (%s)", l->name,
|
||||
pending ? "SurfaceControl callbacks are pending" : "SurfaceControl retirement is deferred");
|
||||
continue;
|
||||
}
|
||||
for (int j = 0; j < POOL_MAX; j++) {
|
||||
struct slot *s = &l->slots[j];
|
||||
struct slot *s = &g_layers[i].slots[j];
|
||||
if (s->release_fd >= 0) { struct pollfd p = {.fd = s->release_fd, .events = POLLIN}; poll(&p, 1, 100); close(s->release_fd); }
|
||||
if (s->img) vkp_image_destroy(s->img);
|
||||
if (s->ahb) AHardwareBuffer_release(s->ahb);
|
||||
memset(s, 0, sizeof(*s));
|
||||
s->release_fd = -1;
|
||||
}
|
||||
l->first_logged = 0;
|
||||
l->logged_w = l->logged_h = 0;
|
||||
pthread_mutex_unlock(&g_lock);
|
||||
g_layers[i].first_logged = 0;
|
||||
g_layers[i].logged_w = g_layers[i].logged_h = 0;
|
||||
}
|
||||
pthread_mutex_unlock(&g_lock);
|
||||
}
|
||||
|
||||
static int sniff_modifier(const struct droiddeck_native_handle *h, uint64_t *mod) {
|
||||
@@ -637,10 +612,7 @@ static int take_free_slot(struct layer *l, int w, int h, uint32_t fmt, int *wait
|
||||
if (pending < 0) pending = i;
|
||||
}
|
||||
if (idx < 0) idx = pending;
|
||||
if (idx >= 0) {
|
||||
fd = l->slots[idx].release_fd; l->slots[idx].release_fd = -1;
|
||||
l->slots[idx].generation++;
|
||||
}
|
||||
if (idx >= 0) { fd = l->slots[idx].release_fd; l->slots[idx].release_fd = -1; }
|
||||
pthread_mutex_unlock(&g_lock);
|
||||
if (idx < 0) return -1;
|
||||
if (fd >= 0 && fence_signalled(fd)) { close(fd); fd = -1; }
|
||||
@@ -648,8 +620,7 @@ static int take_free_slot(struct layer *l, int w, int h, uint32_t fmt, int *wait
|
||||
if (s->ahb && (s->w != w || s->h != h || s->fmt != fmt)) {
|
||||
if (fd >= 0) { close(fd); fd = -1; }
|
||||
vkp_image_destroy(s->img); AHardwareBuffer_release(s->ahb);
|
||||
const uint64_t generation = s->generation;
|
||||
memset(s, 0, sizeof(*s)); s->release_fd = -1; s->generation = generation;
|
||||
memset(s, 0, sizeof(*s)); s->release_fd = -1;
|
||||
}
|
||||
if (fd >= 0 && !vkp_can_wait_sync_fd()) {
|
||||
if (fence_wait(fd, 100) == 0) { slot_keep_fence(s, fd); return -1; }
|
||||
@@ -688,13 +659,7 @@ static int ensure_sc(struct layer *l) {
|
||||
if (load_api() != 0) return -1;
|
||||
ANativeWindow *win = vkp_window();
|
||||
if (!win) return -1;
|
||||
if (l->sc && l->win != win) {
|
||||
retire_sc(l);
|
||||
if (l->sc) {
|
||||
droiddeck_log("layer", "%s: keeping the old SurfaceControl until retirement completes", l->name);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
if (l->sc && l->win != win) retire_sc(l);
|
||||
if (!l->sc) {
|
||||
l->sc = api.createFromWindow(win, l->name);
|
||||
if (!l->sc) { droiddeck_log("error", "layer: ASurfaceControl_createFromWindow(%s) failed", l->name); return -1; }
|
||||
@@ -853,7 +818,6 @@ static ASurfaceControl *swap_sc_begin(struct layer *l) {
|
||||
if (!win || win != l->win) return NULL;
|
||||
ASurfaceControl *fresh = api.createFromWindow(win, l->name);
|
||||
if (!fresh) {
|
||||
l->recreate_pending = 1;
|
||||
droiddeck_log("error", "layer: %s: composition recovery could not create a new SurfaceControl", l->name);
|
||||
return NULL;
|
||||
}
|
||||
@@ -868,45 +832,24 @@ static ASurfaceControl *swap_sc_begin(struct layer *l) {
|
||||
return old;
|
||||
}
|
||||
|
||||
static void rollback_swap_sc(struct layer *l, ASurfaceControl *old, int was_shown,
|
||||
int32_t ds_applied, uint32_t md_applied, float hr_applied) {
|
||||
if (!old) return;
|
||||
ASurfaceControl *fresh = l->sc;
|
||||
l->sc = old;
|
||||
l->shown = was_shown;
|
||||
l->recreate_pending = 1;
|
||||
l->geo_valid = 0;
|
||||
l->fps_applied = -1.0f;
|
||||
l->ds_applied = ds_applied; l->md_applied = md_applied; l->hr_applied = hr_applied;
|
||||
if (fresh) api.release(fresh);
|
||||
}
|
||||
|
||||
static int present_slot(struct layer *l, int idx, const int r[8], const struct droiddeck_color *color,
|
||||
int translucent) {
|
||||
struct slot *s = &l->slots[idx];
|
||||
ASurfaceTransaction *tx = api.txCreate();
|
||||
if (!tx) return -1;
|
||||
const int was_shown = l->shown;
|
||||
const int32_t ds_applied = l->ds_applied;
|
||||
const uint32_t md_applied = l->md_applied;
|
||||
const float hr_applied = l->hr_applied;
|
||||
ASurfaceControl *old = swap_sc_begin(l);
|
||||
if (old) api.setZOrder(tx, l->sc, l->z);
|
||||
api.setBuffer(tx, l->sc, s->ahb, -1);
|
||||
if (api.setEnableBackPressure) api.setEnableBackPressure(tx, l->sc, true);
|
||||
api.setBufferTransparency(tx, l->sc,
|
||||
translucent ? ASC_TRANSPARENCY_TRANSLUCENT : ASC_TRANSPARENCY_OPAQUE);
|
||||
if (!l->shown) api.setVisibility(tx, l->sc, ASC_VISIBILITY_SHOW);
|
||||
if (old) retire_ops(tx, old);
|
||||
if (add_complete_on(tx, l, old ? old : l->sc, l->cur_slot, l->cur_token, old ? 1 : 0) != 0) {
|
||||
api.txDelete(tx);
|
||||
rollback_swap_sc(l, old, was_shown, ds_applied, md_applied, hr_applied);
|
||||
droiddeck_log("layer", "%s: frame transition skipped because its release callback could not be allocated", l->name);
|
||||
return -1;
|
||||
}
|
||||
apply_geometry(tx, l, r);
|
||||
apply_frame_rate(tx, l);
|
||||
apply_colour(tx, l, color);
|
||||
if (!l->shown) api.setVisibility(tx, l->sc, ASC_VISIBILITY_SHOW);
|
||||
if (old) retire_ops(tx, old);
|
||||
if (add_complete_on(tx, l, old ? old : l->sc, l->cur_slot, l->cur_token, old ? 1 : 0) != 0 && old)
|
||||
api.release(old);
|
||||
pthread_mutex_lock(&g_lock);
|
||||
s->busy = 1;
|
||||
pthread_mutex_unlock(&g_lock);
|
||||
@@ -961,27 +904,23 @@ int sc_layer_present_ahb(AHardwareBuffer *ahb, int w, int h, int acquire_fd, voi
|
||||
}
|
||||
ASurfaceTransaction *tx = api.txCreate();
|
||||
if (!tx) goto unavailable;
|
||||
const int was_shown = l->shown;
|
||||
const int32_t ds_applied = l->ds_applied;
|
||||
const uint32_t md_applied = l->md_applied;
|
||||
const float hr_applied = l->hr_applied;
|
||||
ASurfaceControl *old = swap_sc_begin(l);
|
||||
if (old) api.setZOrder(tx, l->sc, l->z);
|
||||
api.setBuffer(tx, l->sc, ahb, acquire_fd);
|
||||
if (api.setEnableBackPressure) api.setEnableBackPressure(tx, l->sc, true);
|
||||
api.setBufferTransparency(tx, l->sc, ASC_TRANSPARENCY_OPAQUE);
|
||||
apply_geometry(tx, l, r);
|
||||
apply_frame_rate(tx, l);
|
||||
apply_colour(tx, l, color);
|
||||
if (!l->shown) api.setVisibility(tx, l->sc, ASC_VISIBILITY_SHOW);
|
||||
if (old) retire_ops(tx, old);
|
||||
if (add_complete_on(tx, l, old ? old : l->sc, l->cur_slot,
|
||||
l->cur_token == token ? NULL : l->cur_token, old ? 1 : 0) != 0) {
|
||||
api.txDelete(tx);
|
||||
rollback_swap_sc(l, old, was_shown, ds_applied, md_applied, hr_applied);
|
||||
droiddeck_log("layer", "zero-copy: frame transition skipped because its release callback could not be allocated");
|
||||
if (old) api.release(old);
|
||||
l->ds_applied = -1; l->md_applied = 0; l->hr_applied = -1.0f;
|
||||
return -1;
|
||||
}
|
||||
apply_geometry(tx, l, r);
|
||||
apply_frame_rate(tx, l);
|
||||
apply_colour(tx, l, color);
|
||||
apply_present_time(tx, 1);
|
||||
api.txApply(tx);
|
||||
api.txDelete(tx);
|
||||
@@ -1228,26 +1167,15 @@ int sc_layer_present_overlay(struct vkp_image *src, const int geo[8], int transl
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int hide_layer(struct layer *l) {
|
||||
if (!l->sc || !l->shown || api.state != 1) return 0;
|
||||
static void hide_layer(struct layer *l) {
|
||||
if (!l->sc || !l->shown || api.state != 1) return;
|
||||
ASurfaceTransaction *tx = api.txCreate();
|
||||
if (!tx) return -1;
|
||||
api.setVisibility(tx, l->sc, ASC_VISIBILITY_HIDE);
|
||||
if (add_complete(tx, l, l->cur_slot, l->cur_token, 0) != 0) {
|
||||
/*
|
||||
* Keep the current buffer attached when its release callback cannot
|
||||
* be allocated. The hide can still apply without releasing the slot.
|
||||
*/
|
||||
api.txApply(tx);
|
||||
api.txDelete(tx);
|
||||
l->shown = 0;
|
||||
droiddeck_log("layer", "%s: hidden; buffer release deferred because its callback could not be allocated", l->name);
|
||||
return 0;
|
||||
}
|
||||
if (!tx) return;
|
||||
replace_with_blank(tx, l);
|
||||
api.setVisibility(tx, l->sc, ASC_VISIBILITY_HIDE);
|
||||
add_complete(tx, l, l->cur_slot, l->cur_token, 0);
|
||||
api.txApply(tx); api.txDelete(tx);
|
||||
l->shown = 0; l->cur_slot = -1; l->cur_token = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void sc_layer_hide(void) {
|
||||
@@ -1255,20 +1183,17 @@ void sc_layer_hide(void) {
|
||||
int said = g_layers[SC_LAYER_GAME].shown || g_layers[SC_LAYER_OVERLAY].sc;
|
||||
if (g_layers[SC_LAYER_OVERLAY].sc) sc_layer_hide_overlay();
|
||||
if (g_layers[SC_LAYER_GAME].shown) hide_layer(&g_layers[SC_LAYER_GAME]);
|
||||
if (said && !g_layers[SC_LAYER_GAME].shown && !g_layers[SC_LAYER_OVERLAY].shown)
|
||||
droiddeck_log("layer", "layers hidden (scene is not a single fullscreen window)");
|
||||
if (said) droiddeck_log("layer", "layers hidden (scene is not a single fullscreen window)");
|
||||
}
|
||||
|
||||
void sc_layer_hide_overlay(void) {
|
||||
layers_init();
|
||||
struct layer *l = &g_layers[SC_LAYER_OVERLAY];
|
||||
if (!l->sc) return;
|
||||
if (l->shown && hide_layer(l) != 0) return;
|
||||
if (l->shown) hide_layer(l);
|
||||
retire_sc(l);
|
||||
if (!l->sc) {
|
||||
droiddeck_log("layer", "%s: gone (nothing is above the game any more)", l->name);
|
||||
if (g_layers[SC_LAYER_GAME].sc) g_layers[SC_LAYER_GAME].recreate_pending = 1;
|
||||
}
|
||||
droiddeck_log("layer", "%s: gone (nothing is above the game any more)", l->name);
|
||||
if (g_layers[SC_LAYER_GAME].sc) g_layers[SC_LAYER_GAME].recreate_pending = 1;
|
||||
}
|
||||
|
||||
void sc_layer_window_gone(void) {
|
||||
|
||||
@@ -161,9 +161,7 @@ static uint32_t g_qfam;
|
||||
static VkCommandPool g_pool;
|
||||
#define MAX_PRESENTS (1 + VKP_FG_MAX_GENERATIONS)
|
||||
static VkCommandBuffer g_cmds[MAX_PRESENTS];
|
||||
static VkSemaphore g_acqs[MAX_PRESENTS];
|
||||
static VkSemaphore *g_rnds;
|
||||
static uint32_t g_rnd_count;
|
||||
static VkSemaphore g_acqs[MAX_PRESENTS], g_rnds[MAX_PRESENTS];
|
||||
static VkFence g_fence;
|
||||
static int g_swap_extra;
|
||||
#define SCENE_FMT VK_FORMAT_R8G8B8A8_UNORM
|
||||
@@ -232,16 +230,6 @@ static VkResult timed_wait(VkFence fence, uint64_t timeout) {
|
||||
return g_dev_state == -2 ? VK_ERROR_DEVICE_LOST : VK_ERROR_UNKNOWN;
|
||||
int64_t t0 = perf_now();
|
||||
VkResult r = g_vk.WaitForFences(g_dev, 1, &fence, VK_TRUE, timeout);
|
||||
if (r == VK_TIMEOUT) {
|
||||
droiddeck_log("gpu", "GPU fence delayed: retaining frame resources until completion");
|
||||
/* A scheduling delay does not invalidate the device. Keep this submission's
|
||||
* resources and call stack alive, as the main render path already does. */
|
||||
do {
|
||||
r = g_vk.WaitForFences(g_dev, 1, &fence, VK_TRUE, UINT64_MAX);
|
||||
} while (r == VK_TIMEOUT);
|
||||
if (r == VK_SUCCESS)
|
||||
droiddeck_log("gpu", "GPU fence completed: continuing presentation");
|
||||
}
|
||||
perf_add(&g_perf.wait_ns, &g_perf.wait_max_ns, &g_perf.waits, perf_now() - t0);
|
||||
if (r != VK_SUCCESS && r != VK_ERROR_DEVICE_LOST)
|
||||
quarantine_pending_work(r, "fence wait");
|
||||
@@ -335,44 +323,12 @@ static void reset_sync(void) {
|
||||
VkSemaphoreCreateInfo semci = {.sType = VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO};
|
||||
for (int k = 0; k < MAX_PRESENTS; k++) {
|
||||
if (g_acqs[k]) g_vk.DestroySemaphore(g_dev, g_acqs[k], NULL);
|
||||
g_acqs[k] = VK_NULL_HANDLE;
|
||||
if (g_vk.CreateSemaphore(g_dev, &semci, NULL, &g_acqs[k]) != VK_SUCCESS)
|
||||
droiddeck_log("error", "present: failed to recreate acquire semaphore %d", k);
|
||||
if (g_rnds[k]) g_vk.DestroySemaphore(g_dev, g_rnds[k], NULL);
|
||||
g_vk.CreateSemaphore(g_dev, &semci, NULL, &g_acqs[k]);
|
||||
g_vk.CreateSemaphore(g_dev, &semci, NULL, &g_rnds[k]);
|
||||
}
|
||||
}
|
||||
|
||||
static void destroy_present_semaphores(void) {
|
||||
if (g_dev && g_vk.DestroySemaphore) {
|
||||
for (uint32_t i = 0; i < g_rnd_count; i++)
|
||||
if (g_rnds[i]) g_vk.DestroySemaphore(g_dev, g_rnds[i], NULL);
|
||||
}
|
||||
free(g_rnds);
|
||||
g_rnds = NULL;
|
||||
g_rnd_count = 0;
|
||||
}
|
||||
|
||||
static int create_present_semaphores(void) {
|
||||
if (!g_nimg) return -1;
|
||||
VkSemaphore *sems = calloc(g_nimg, sizeof(*sems));
|
||||
if (!sems) return -1;
|
||||
VkSemaphoreCreateInfo semci = {.sType = VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO};
|
||||
for (uint32_t i = 0; i < g_nimg; i++) {
|
||||
VkResult r = g_vk.CreateSemaphore(g_dev, &semci, NULL, &sems[i]);
|
||||
if (r != VK_SUCCESS) {
|
||||
droiddeck_log("error", "present: failed to create image semaphore %u (%s)",
|
||||
i, vk_result_name(r));
|
||||
for (uint32_t j = 0; j < i; j++)
|
||||
if (sems[j]) g_vk.DestroySemaphore(g_dev, sems[j], NULL);
|
||||
free(sems);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
destroy_present_semaphores();
|
||||
g_rnds = sems;
|
||||
g_rnd_count = g_nimg;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void destroy_swapchain(void) {
|
||||
g_base_black = 0;
|
||||
if (g_dev_state != 1) return;
|
||||
@@ -382,11 +338,10 @@ static void destroy_swapchain(void) {
|
||||
else quarantine_pending_work(idle, "swapchain idle");
|
||||
return;
|
||||
}
|
||||
reset_sync();
|
||||
for (uint32_t i = 0; i < g_nimg; i++) blendp_forget_image(g_images[i]);
|
||||
if (g_swapchain) g_vk.DestroySwapchainKHR(g_dev, g_swapchain, NULL);
|
||||
g_swapchain = VK_NULL_HANDLE;
|
||||
destroy_present_semaphores();
|
||||
reset_sync();
|
||||
g_swap_md_identity = 0;
|
||||
if (g_surface) g_vk.DestroySurfaceKHR(g_inst, g_surface, NULL);
|
||||
g_surface = VK_NULL_HANDLE;
|
||||
@@ -1410,35 +1365,12 @@ static int swap_init_locked(void) {
|
||||
SWLOGE("present: vkCreateSwapchainKHR failed (%d)", (int)cr);
|
||||
return -1;
|
||||
}
|
||||
cr = g_vk.GetSwapchainImagesKHR(g_dev, g_swapchain, &g_nimg, NULL);
|
||||
if (cr != VK_SUCCESS || !g_nimg) {
|
||||
SWLOGE("present: vkGetSwapchainImagesKHR count failed (%s)", vk_result_name(cr));
|
||||
g_nimg = 0;
|
||||
return -1;
|
||||
}
|
||||
g_vk.GetSwapchainImagesKHR(g_dev, g_swapchain, &g_nimg, NULL);
|
||||
g_images = calloc(g_nimg, sizeof(VkImage));
|
||||
if (!g_images) {
|
||||
SWLOGE("present: failed to allocate swapchain image list");
|
||||
g_nimg = 0;
|
||||
return -1;
|
||||
}
|
||||
cr = g_vk.GetSwapchainImagesKHR(g_dev, g_swapchain, &g_nimg, g_images);
|
||||
if (cr != VK_SUCCESS) {
|
||||
SWLOGE("present: vkGetSwapchainImagesKHR failed (%s)", vk_result_name(cr));
|
||||
free(g_images);
|
||||
g_images = NULL;
|
||||
g_nimg = 0;
|
||||
return -1;
|
||||
}
|
||||
if (create_present_semaphores() != 0) {
|
||||
SWLOGE("present: failed to initialize per-image present semaphores");
|
||||
return -1;
|
||||
}
|
||||
g_vk.GetSwapchainImagesKHR(g_dev, g_swapchain, &g_nimg, g_images);
|
||||
|
||||
droiddeck_log("gpu", "screen output %ux%u, %u buffers, vsync%s", g_extent.width, g_extent.height, g_nimg,
|
||||
g_swap_extra ? " (frame generation: several presents per frame)" : "");
|
||||
droiddeck_log("gpu", "present synchronization: %u render-finished semaphores, one per swapchain image",
|
||||
g_rnd_count);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -2947,17 +2879,9 @@ static int render_impl(int scene_w, int scene_h, const struct vkp_draw *draws, i
|
||||
}
|
||||
const int last = (k + 1 == presents);
|
||||
VkPipelineStageFlags wait = VK_PIPELINE_STAGE_TRANSFER_BIT;
|
||||
/* A present-wait semaphore is reused only after this exact swapchain image
|
||||
* has been acquired again; a frame-slot fence cannot prove present completion. */
|
||||
if (img >= g_rnd_count || !g_rnds[img]) {
|
||||
droiddeck_log("error", "present: image index %u exceeds semaphore count %u",
|
||||
img, g_rnd_count);
|
||||
destroy_swapchain();
|
||||
return -1;
|
||||
}
|
||||
VkSubmitInfo si = {.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO, .waitSemaphoreCount = 1,
|
||||
.pWaitSemaphores = &g_acqs[k], .pWaitDstStageMask = &wait, .commandBufferCount = 1,
|
||||
.pCommandBuffers = &g_cmds[k], .signalSemaphoreCount = 1, .pSignalSemaphores = &g_rnds[img]};
|
||||
.pCommandBuffers = &g_cmds[k], .signalSemaphoreCount = 1, .pSignalSemaphores = &g_rnds[k]};
|
||||
VkResult qr = g_vk.QueueSubmit(g_queue, 1, &si, last ? g_fence : VK_NULL_HANDLE);
|
||||
if (qr != VK_SUCCESS) {
|
||||
if (qr == VK_ERROR_DEVICE_LOST) device_lost("submit");
|
||||
@@ -2967,7 +2891,7 @@ static int render_impl(int scene_w, int scene_h, const struct vkp_draw *draws, i
|
||||
}
|
||||
fence_submitted = last;
|
||||
VkPresentInfoKHR pi = {.sType = VK_STRUCTURE_TYPE_PRESENT_INFO_KHR, .waitSemaphoreCount = 1,
|
||||
.pWaitSemaphores = &g_rnds[img], .swapchainCount = 1,
|
||||
.pWaitSemaphores = &g_rnds[k], .swapchainCount = 1,
|
||||
.pSwapchains = &g_swapchain, .pImageIndices = &img};
|
||||
const int64_t t_pres = perf_now();
|
||||
pr = g_vk.QueuePresentKHR(g_queue, &pi);
|
||||
|
||||
@@ -430,28 +430,21 @@ internal class DriverMenus(private val activity: Activity, private val ui: Handl
|
||||
*/
|
||||
private fun useMaliFallback(missing: String?): String {
|
||||
val oldVulkan = com.droiddeck.launcher.session.VenusComponent.hostVulkanTooOld(activity)
|
||||
val venusByUser = venusExplicit()
|
||||
val venus = MaliAutoRoute.venusStandsIn(
|
||||
com.droiddeck.launcher.session.VenusComponent.available(activity), oldVulkan == null,
|
||||
SessionPrefs.venus(activity), venusByUser, gpu.name,
|
||||
)
|
||||
val venus = oldVulkan == null && com.droiddeck.launcher.session.VenusComponent.available(activity)
|
||||
if (oldVulkan != null) Log.i(TAG, "auto: Mali driver reports Vulkan $oldVulkan; Venus needs 1.2, the bridge stands in")
|
||||
val ownership = MaliAutoRoute.fallbackOwnership(
|
||||
venus,
|
||||
SessionPrefs.vkBridge(activity), bridgeExplicit(),
|
||||
SessionPrefs.venus(activity), venusByUser,
|
||||
SessionPrefs.venus(activity), venusExplicit(),
|
||||
)
|
||||
if (venus && !SessionPrefs.venus(activity)) {
|
||||
SessionPrefs.setVenus(activity, true)
|
||||
if (SessionPrefs.vkBridge(activity) && !bridgeExplicit())
|
||||
SessionPrefs.setVkBridge(activity, false)
|
||||
SessionPrefs.setMaliFallbackByAuto(activity, ownership)
|
||||
} else if (!venus) {
|
||||
val venusOff = SessionPrefs.venus(activity) && !venusByUser
|
||||
val bridgeOn = !SessionPrefs.vkBridge(activity)
|
||||
if (venusOff) SessionPrefs.clearVenus(activity)
|
||||
if (bridgeOn) SessionPrefs.setVkBridge(activity, true)
|
||||
if (venusOff || bridgeOn || ownership != MaliAutoRoute.NONE) SessionPrefs.setMaliFallbackByAuto(activity, ownership)
|
||||
} else if (!venus && !SessionPrefs.vkBridge(activity)) {
|
||||
SessionPrefs.setVkBridge(activity, true)
|
||||
SessionPrefs.setMaliFallbackByAuto(activity, ownership)
|
||||
} else if (ownership != MaliAutoRoute.NONE) {
|
||||
SessionPrefs.setMaliFallbackByAuto(activity, ownership)
|
||||
}
|
||||
@@ -474,7 +467,7 @@ internal class DriverMenus(private val activity: Activity, private val ui: Handl
|
||||
/** A pair is installed for this Mali: the route Auto switched on in its place goes off again. */
|
||||
private fun endMaliFallback() {
|
||||
when (SessionPrefs.maliFallbackByAuto(activity)) {
|
||||
"venus" -> SessionPrefs.clearVenus(activity)
|
||||
"venus" -> SessionPrefs.setVenus(activity, false)
|
||||
"bridge" -> SessionPrefs.setVkBridge(activity, false)
|
||||
else -> return
|
||||
}
|
||||
|
||||
@@ -1993,7 +1993,11 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
}
|
||||
}
|
||||
|
||||
if (savedInstanceState == null) ui.post { startSteamAtStartupIfEnabled(cold = true) }
|
||||
val askAllFiles = Build.VERSION.SDK_INT >= 30 && com.droiddeck.launcher.files.AllFilesAccess.missing() &&
|
||||
!SessionPrefs.allFilesAsked(this)
|
||||
if (savedInstanceState == null) {
|
||||
if (!askAllFiles) ui.post { startSteamAtStartupIfEnabled(cold = true) }
|
||||
}
|
||||
saved?.let { state ->
|
||||
restoreCompatLaunch(state)
|
||||
pendingSwitch = savedIntent(state, KEY_PENDING_SWITCH)
|
||||
@@ -2001,8 +2005,13 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
}
|
||||
|
||||
val wanted = ArrayList<String>()
|
||||
// From Android 11, shared storage outside the app's own folders is all-files access, which the file picker asks for when a shared drive is opened.
|
||||
if (Build.VERSION.SDK_INT < 30 && checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
|
||||
if (Build.VERSION.SDK_INT >= 30) {
|
||||
// From targetSdk 30, shared storage outside the app's own folders is all-files access or nothing.
|
||||
if (askAllFiles) {
|
||||
SessionPrefs.setAllFilesAsked(this)
|
||||
com.droiddeck.launcher.files.AllFilesAccess.open(this)
|
||||
}
|
||||
} else if (checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
|
||||
wanted.add(Manifest.permission.WRITE_EXTERNAL_STORAGE)
|
||||
}
|
||||
if (SessionPrefs.micEnabled(this) && !SessionPrefs.micAsked(this)
|
||||
@@ -2011,7 +2020,6 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
SessionPrefs.setMicAsked(this)
|
||||
}
|
||||
if (wanted.isNotEmpty()) requestPermissions(wanted.toTypedArray(), 1)
|
||||
com.droiddeck.launcher.session.Onboarding.onFirstRunReady = firstRunReady
|
||||
Thread({ com.droiddeck.launcher.stores.StoreAccounts.encryptAll(this) }, "store-credentials").start()
|
||||
if (!SessionState.running) Thread({
|
||||
com.droiddeck.launcher.session.LogMigration.run(this)
|
||||
@@ -2103,10 +2111,7 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
|
||||
override fun onWindowFocusChanged(hasFocus: Boolean) {
|
||||
super.onWindowFocusChanged(hasFocus)
|
||||
if (!hasFocus) {
|
||||
triggerKeys.cancel()
|
||||
stopRightStickScroll()
|
||||
}
|
||||
if (!hasFocus) triggerKeys.cancel()
|
||||
if (hasFocus) {
|
||||
com.droiddeck.launcher.ui.DualScreenPanel.yieldTo(taskId, false)
|
||||
applyLauncherFullscreen()
|
||||
@@ -2203,111 +2208,15 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
}
|
||||
|
||||
private val triggerKeys = com.droiddeck.launcher.input.TriggerKeys { dispatchKeyEvent(it) }
|
||||
private val rightStickLayouts = HashMap<Int, Boolean>()
|
||||
private val rightStickScrollHandler = android.os.Handler(android.os.Looper.getMainLooper())
|
||||
private var rightStickScrollDeviceId = -1
|
||||
private var rightStickScrollDeflection = 0f
|
||||
private var rightStickScrollScheduled = false
|
||||
private var rightStickNextDispatchAt = 0L
|
||||
private val rightStickScrollTick = object : Runnable {
|
||||
override fun run() {
|
||||
val deviceId = rightStickScrollDeviceId
|
||||
if (!hasWindowFocus() || (compatLaunch != null && !compatLaunch!!.loading.ended) ||
|
||||
deviceId == -1 ||
|
||||
android.view.InputDevice.getDevice(deviceId) == null ||
|
||||
kotlin.math.abs(rightStickScrollDeflection) < 0.55f) {
|
||||
stopRightStickScroll()
|
||||
return
|
||||
}
|
||||
rightStickScrollScheduled = false
|
||||
dispatchRightStickScroll(rightStickScrollDeflection, deviceId)
|
||||
rightStickNextDispatchAt = android.os.SystemClock.uptimeMillis() + 130L
|
||||
rightStickScrollHandler.postDelayed(this, 130L)
|
||||
rightStickScrollScheduled = true
|
||||
}
|
||||
}
|
||||
|
||||
private fun stopRightStickScroll() {
|
||||
rightStickScrollHandler.removeCallbacks(rightStickScrollTick)
|
||||
rightStickScrollDeviceId = -1
|
||||
rightStickScrollDeflection = 0f
|
||||
rightStickScrollScheduled = false
|
||||
}
|
||||
|
||||
private fun dispatchRightStickScroll(value: Float, deviceId: Int) {
|
||||
val now = android.os.SystemClock.uptimeMillis()
|
||||
val root = window.decorView
|
||||
if (root.width <= 0 || root.height <= 0) return
|
||||
val properties = android.view.MotionEvent.PointerProperties().apply {
|
||||
id = 0
|
||||
toolType = android.view.MotionEvent.TOOL_TYPE_MOUSE
|
||||
}
|
||||
val coordinates = android.view.MotionEvent.PointerCoords().apply {
|
||||
x = root.width * 0.65f
|
||||
y = root.height * 0.5f
|
||||
setAxisValue(android.view.MotionEvent.AXIS_VSCROLL, -value * 3f)
|
||||
}
|
||||
val scroll = android.view.MotionEvent.obtain(
|
||||
now, now, android.view.MotionEvent.ACTION_SCROLL, 1,
|
||||
arrayOf(properties), arrayOf(coordinates), 0, 0, 1f, 1f,
|
||||
deviceId, 0, android.view.InputDevice.SOURCE_MOUSE, 0,
|
||||
)
|
||||
try {
|
||||
super.dispatchGenericMotionEvent(scroll)
|
||||
} finally {
|
||||
scroll.recycle()
|
||||
}
|
||||
}
|
||||
|
||||
private fun scrollPageWithRightStick(event: android.view.MotionEvent) {
|
||||
if (event.actionMasked != android.view.MotionEvent.ACTION_MOVE ||
|
||||
!com.droiddeck.launcher.input.PadBridge.isControllerMotionEvent(event)) return
|
||||
val device = event.device ?: return
|
||||
val rxRy = com.droiddeck.launcher.input.PadBridge.rightStickUsesRxRy(event, device, rightStickLayouts)
|
||||
?: return
|
||||
val axis = if (rxRy) android.view.MotionEvent.AXIS_RY else android.view.MotionEvent.AXIS_RZ
|
||||
val value = event.getAxisValue(axis)
|
||||
if (kotlin.math.abs(value) < 0.55f) {
|
||||
if (rightStickScrollDeviceId == event.deviceId) stopRightStickScroll()
|
||||
return
|
||||
}
|
||||
rightStickScrollDeviceId = event.deviceId
|
||||
rightStickScrollDeflection = value
|
||||
if (!rightStickScrollScheduled) {
|
||||
val delay = (rightStickNextDispatchAt - android.os.SystemClock.uptimeMillis()).coerceAtLeast(0L)
|
||||
rightStickScrollHandler.postDelayed(rightStickScrollTick, delay)
|
||||
rightStickScrollScheduled = true
|
||||
}
|
||||
}
|
||||
|
||||
override fun dispatchGenericMotionEvent(event: android.view.MotionEvent): Boolean {
|
||||
if (compatLaunch != null && !compatLaunch!!.loading.ended &&
|
||||
com.droiddeck.launcher.input.PadBridge.isControllerMotionEvent(event)) {
|
||||
stopRightStickScroll()
|
||||
return true
|
||||
}
|
||||
com.droiddeck.launcher.input.PadBridge.isControllerMotionEvent(event)) return true
|
||||
triggerKeys.onMotion(event)
|
||||
scrollPageWithRightStick(event)
|
||||
return super.dispatchGenericMotionEvent(event)
|
||||
}
|
||||
|
||||
@Volatile private var inFront = false
|
||||
private var autoSteamPending = false
|
||||
|
||||
/** Runs on the worker thread that finishes setup, so the foreground state is read as setup completes, not when the UI thread gets to it. */
|
||||
private val firstRunReady: () -> Unit = {
|
||||
val front = inFront
|
||||
runOnUiThread { if (front) autoStartSteam() }
|
||||
}
|
||||
|
||||
private fun autoStartSteam() {
|
||||
if (isFinishing || isDestroyed || SessionState.running || !inFront) return
|
||||
if (busy) autoSteamPending = true else playSteam()
|
||||
}
|
||||
|
||||
override fun onPause() {
|
||||
inFront = false
|
||||
stopRightStickScroll()
|
||||
compatLaunchVisible = false
|
||||
if (android.os.Build.VERSION.SDK_INT >= 29) com.droiddeck.launcher.ui.DualScreenPanel.ownerPaused(taskId, true)
|
||||
super.onPause()
|
||||
@@ -2315,7 +2224,6 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
inFront = true
|
||||
if (!homeChoiceOpen) {
|
||||
HomeApp.releaseUnusedHomeEntry(this)
|
||||
refreshHomeAppState()
|
||||
@@ -2451,7 +2359,6 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
|
||||
override fun onDestroy() {
|
||||
// The queued launch was saved before this; a restored activity keeps its copy, and this one must not start it too.
|
||||
if (com.droiddeck.launcher.session.Onboarding.onFirstRunReady === firstRunReady) com.droiddeck.launcher.session.Onboarding.onFirstRunReady = null
|
||||
queuedLaunchRunner.destroy()
|
||||
triggerKeys.cancel()
|
||||
launchCoordinator.cancelAll()
|
||||
@@ -3751,7 +3658,6 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
refresh()
|
||||
com.droiddeck.launcher.agent.AgentHost.refresh(this)
|
||||
if (ok == true && LinuxRuntime.isInstalled(this)) { protons.checkUpdates(); protons.ensureSteamClient() }
|
||||
if (autoSteamPending) { autoSteamPending = false; autoStartSteam() }
|
||||
}
|
||||
}, "runtime-operation").start()
|
||||
}
|
||||
|
||||
@@ -26,12 +26,6 @@ internal object MaliAutoRoute {
|
||||
|
||||
fun userChoice(keyStored: Boolean, owner: String, route: String): Boolean = keyStored && owner != route
|
||||
|
||||
fun venusStandsIn(available: Boolean, hostVulkanOk: Boolean, venusOn: Boolean, venusExplicit: Boolean, gpuName: String): Boolean =
|
||||
available && hostVulkanOk && if (venusExplicit) venusOn else !venusStallsOn(gpuName)
|
||||
|
||||
// Steam's web helper dies on its first window through Venus on these (#2879), so the bridge stands in.
|
||||
fun venusStallsOn(gpuName: String): Boolean = gpuName.contains("G2-Ultra", ignoreCase = true)
|
||||
|
||||
fun shouldEnd(ownsRoute: String, mali: Boolean, installedPair: Boolean): Boolean =
|
||||
mali && installedPair && ownsRoute != NONE
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
package com.droiddeck.launcher
|
||||
|
||||
import com.droiddeck.launcher.gpu.SteamVr
|
||||
|
||||
internal class QuestSteamVrWatch(start: Long) {
|
||||
private var startupDeadline = start + STARTUP_MS
|
||||
private var lastRunning: Long? = null
|
||||
private var graceUntil = start
|
||||
private var wasPaused = false
|
||||
|
||||
// A frozen guest cannot answer the status call, so a status read during a freeze, or one that
|
||||
// started before it, says nothing about SteamVR.
|
||||
fun stopped(now: Long, status: SteamVr.Status, paused: Boolean): Boolean {
|
||||
if (paused) {
|
||||
wasPaused = true
|
||||
return false
|
||||
}
|
||||
if (wasPaused) {
|
||||
wasPaused = false
|
||||
graceUntil = now + RESUME_GRACE_MS
|
||||
}
|
||||
if (status == SteamVr.Status.RUNNING) {
|
||||
lastRunning = now
|
||||
graceUntil = now
|
||||
return false
|
||||
}
|
||||
val deadline = lastRunning?.plus(RUNNING_GRACE_MS) ?: startupDeadline
|
||||
return now >= maxOf(deadline, graceUntil)
|
||||
}
|
||||
|
||||
companion object {
|
||||
const val STARTUP_MS = 30_000L
|
||||
const val RUNNING_GRACE_MS = 5_000L
|
||||
const val RESUME_GRACE_MS = 15_000L
|
||||
}
|
||||
}
|
||||
@@ -52,17 +52,18 @@ class QuestXrActivity : NativeActivity() {
|
||||
if (!closing) leaveXr("SteamVR start failed", sessionAlive())
|
||||
return@Thread
|
||||
}
|
||||
val watch = QuestSteamVrWatch(SystemClock.elapsedRealtime())
|
||||
val startupDeadline = SystemClock.elapsedRealtime() + 30_000
|
||||
var lastRunning: Long? = null
|
||||
while (!closing) {
|
||||
if (!sessionAlive()) {
|
||||
leaveXr("Steam session ended", false)
|
||||
break
|
||||
}
|
||||
val pausedBefore = guestPaused()
|
||||
val status = SteamVr.status(this)
|
||||
val paused = pausedBefore || guestPaused()
|
||||
if (!paused) steamVrStatus = status
|
||||
if (watch.stopped(SystemClock.elapsedRealtime(), status, paused)) {
|
||||
steamVrStatus = SteamVr.status(this)
|
||||
val now = SystemClock.elapsedRealtime()
|
||||
if (steamVrStatus == SteamVr.Status.RUNNING) lastRunning = now
|
||||
val deadline = lastRunning?.plus(5_000) ?: startupDeadline
|
||||
if (steamVrStatus != SteamVr.Status.RUNNING && now >= deadline) {
|
||||
leaveXr("SteamVR stopped or did not finish starting", true)
|
||||
break
|
||||
}
|
||||
@@ -80,8 +81,6 @@ class QuestXrActivity : NativeActivity() {
|
||||
}
|
||||
}
|
||||
|
||||
private fun guestPaused() = SessionState.suspending || SessionState.suspended || SessionState.resuming
|
||||
|
||||
private fun sessionAlive() = SessionState.running && !SessionState.stopRequested &&
|
||||
sessionId != null && SessionState.sessionId == sessionId
|
||||
|
||||
|
||||
@@ -2916,7 +2916,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
val runtimeDir = File(filesDir, ".wayland-rt").apply { mkdirs() }
|
||||
FileUtils.copyAsset(this, "wayland/keymap.xkb", File(runtimeDir, "keymap.xkb"))
|
||||
com.droiddeck.launcher.input.VrControllers.publish(this)
|
||||
com.droiddeck.launcher.session.QuestSteamVrLaunch.publish(this)
|
||||
|
||||
val turnip = TurnipDriver(this)
|
||||
com.droiddeck.launcher.gpu.DriverSetupLog.write(this, "surface.driver-setup")
|
||||
@@ -6372,8 +6371,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
}
|
||||
if (CompositorHost.isStarted) applyFrameGen(force = true)
|
||||
applyFollowOrientation(resources.configuration)
|
||||
uiHandler.removeCallbacks(questSteamVrRequest)
|
||||
if (com.droiddeck.launcher.session.QuestExperimental.isSupported()) uiHandler.post(questSteamVrRequest)
|
||||
if (runtimeRemovalBlocked) return
|
||||
if (!SessionState.suspended) pausedFrame = null
|
||||
com.droiddeck.launcher.ui.Motion.refresh(this)
|
||||
@@ -6433,19 +6430,10 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
}
|
||||
|
||||
override fun onPause() {
|
||||
uiHandler.removeCallbacks(questSteamVrRequest)
|
||||
departureCleanup()
|
||||
super.onPause()
|
||||
}
|
||||
|
||||
private val questSteamVrRequest = object : Runnable {
|
||||
override fun run() {
|
||||
if (com.droiddeck.launcher.session.QuestSteamVrLaunch.takeRequest(this@SessionActivity) &&
|
||||
SessionState.running && SessionState.mode == SessionService.MODE_STEAM) steamVrAction("start")
|
||||
uiHandler.postDelayed(this, 1000)
|
||||
}
|
||||
}
|
||||
|
||||
private fun departureCleanup() {
|
||||
com.droiddeck.launcher.input.SystemKeyCapture.detach(this)
|
||||
com.droiddeck.launcher.input.HomeButtonShortcuts.detach(this)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.droiddeck.launcher.agent
|
||||
|
||||
import android.content.Context
|
||||
import android.os.Environment
|
||||
import android.os.Handler
|
||||
import android.os.Looper
|
||||
import android.os.SystemClock
|
||||
@@ -563,7 +564,7 @@ object AgentHost {
|
||||
(if (connectAdb) "adb start-server >/dev/null 2>&1; adb connect \"\$ADB_SERIAL\" >/dev/null 2>&1; " else "") +
|
||||
"cd \"$1\" 2>/dev/null; shift; exec \"$@\"", "sh", workdir,
|
||||
)
|
||||
val proot = LinuxRuntime.command(app, null, null, LinuxRuntime.sharedStorage(app), null, env + shell + command, fakeRoot)
|
||||
val proot = LinuxRuntime.command(app, null, null, Environment.getExternalStorageDirectory(), null, env + shell + command, fakeRoot)
|
||||
return ProcessBuilder(proot).redirectErrorStream(true).apply {
|
||||
environment().apply {
|
||||
remove("LD_PRELOAD"); remove("LD_AUDIT"); remove("LD_LIBRARY_PATH")
|
||||
|
||||
@@ -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"))
|
||||
}
|
||||
}
|
||||
@@ -1,132 +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),
|
||||
FSR4_NPU("fsr4_0_npu", true),
|
||||
FSR4_LITE_NPU("fsr4_1_lite_npu", true);
|
||||
|
||||
companion object {
|
||||
fun byId(id: String?): Engine? = entries.firstOrNull { it.id == id?.trim()?.lowercase() }
|
||||
}
|
||||
}
|
||||
|
||||
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 = false,
|
||||
)
|
||||
|
||||
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] == "1",
|
||||
)
|
||||
}
|
||||
|
||||
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")
|
||||
if (choice.signatureFix && choice.mode == Mode.DLSS) put(SIGFIX, "1")
|
||||
}
|
||||
|
||||
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,
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -8,18 +8,9 @@ import android.os.Environment
|
||||
import android.provider.Settings
|
||||
|
||||
object AllFilesAccess {
|
||||
private val VOLUME = Regex("^(/storage/emulated/\\d+|/storage/[^/]+|/sdcard)(/.*)?$")
|
||||
private val APP_FOLDERS = listOf("/Android/data", "/Android/obb")
|
||||
|
||||
fun missing(sdk: Int = Build.VERSION.SDK_INT, granted: () -> Boolean = { Environment.isExternalStorageManager() }): Boolean =
|
||||
sdk >= Build.VERSION_CODES.R && !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
|
||||
return APP_FOLDERS.none { inside == it || inside.startsWith("$it/") }
|
||||
}
|
||||
|
||||
fun open(context: Context) {
|
||||
val app = Intent(Settings.ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION, Uri.parse("package:" + context.packageName))
|
||||
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||
|
||||
@@ -504,15 +504,13 @@ fun FileManagerScreen(
|
||||
}
|
||||
val drives = remember(storageTick) { StorageRoots.list(context) }
|
||||
var accessDrive by remember { mutableStateOf<String?>(null) }
|
||||
var accessWasMissing by remember { mutableStateOf(AllFilesAccess.missing()) }
|
||||
var accessDeclined by remember { mutableStateOf(false) }
|
||||
fun unreadable(drive: StorageRoot) {
|
||||
if (AllFilesAccess.missing()) accessDrive = drive.label
|
||||
else Toast.makeText(context, context.getString(R.string.fm_drive_not_readable, drive.label), Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
accessDrive?.let { label ->
|
||||
OutlinedAlertDialog(
|
||||
onDismissRequest = { accessDrive = null; accessDeclined = true },
|
||||
onDismissRequest = { accessDrive = null },
|
||||
title = { Text(stringResource(R.string.fm_drive_access_title, label)) },
|
||||
text = { Text(stringResource(R.string.fm_drive_access_text)) },
|
||||
confirmButton = {
|
||||
@@ -521,17 +519,9 @@ fun FileManagerScreen(
|
||||
AllFilesAccess.open(context)
|
||||
}, modifier = Modifier.focusGlide(CircleShape)) { Text(stringResource(R.string.upd_open_settings)) }
|
||||
},
|
||||
dismissButton = { TextButton(onClick = { accessDrive = null; accessDeclined = true }, modifier = Modifier.focusGlide(CircleShape)) { Text(stringResource(R.string.common_cancel)) } },
|
||||
dismissButton = { TextButton(onClick = { accessDrive = null }, modifier = Modifier.focusGlide(CircleShape)) { Text(stringResource(R.string.common_cancel)) } },
|
||||
)
|
||||
}
|
||||
LaunchedEffect(currentDir, storageTick) {
|
||||
if (!AllFilesAccess.missing()) {
|
||||
if (accessWasMissing) { accessWasMissing = false; loadDirectory(currentDir, resetScroll = false, record = false) }
|
||||
} else {
|
||||
accessWasMissing = true
|
||||
if (!accessDeclined && accessDrive == null && AllFilesAccess.covers(currentDir.path)) accessDrive = drives.firstOrNull { currentDir.path.startsWith(it.dir.path) }?.label ?: context.getString(R.string.fm_drive_internal)
|
||||
}
|
||||
}
|
||||
val linuxRoot = remember(storageTick) {
|
||||
com.droiddeck.launcher.runtime.LinuxRuntime.rootDir(context).takeIf { File(it, "usr").isDirectory }
|
||||
}
|
||||
|
||||
@@ -499,7 +499,6 @@ object AddedGames {
|
||||
launchOptions = when {
|
||||
sidecar == null -> SessionPrefs.addedGameLaunch(context, folder.path)
|
||||
sidecar.store == Store.UBISOFT -> com.droiddeck.launcher.stores.ubisoft.UbisoftConnect.launchOptions(context)
|
||||
sidecar.store == Store.EA -> SessionPrefs.addedGameLaunch(context, folder.path)
|
||||
else -> ""
|
||||
},
|
||||
single = single != null, steamProgram = steamProgram))
|
||||
|
||||
@@ -14,7 +14,7 @@ internal object DroidDeckHudConfig {
|
||||
"showLatency" to "1", "showAvg" to "1", "showLow1" to "1", "showLow01" to "1", "showLow001" to "1",
|
||||
"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 = ""
|
||||
@@ -278,8 +277,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 ?: "" }
|
||||
|
||||
@@ -775,7 +772,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
|
||||
}
|
||||
@@ -813,7 +809,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))
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ public final class PadBridge {
|
||||
private final PadState[] playerStates = new PadState[SLOTS];
|
||||
private final float[][] rawSticks = new float[SLOTS][4];
|
||||
private final Map<Integer, Boolean> rightStickLayouts = new HashMap<>();
|
||||
private final TriggerKey[][] keyTriggers = TriggerKey.slots(SLOTS);
|
||||
private final boolean[][] keyTriggers = new boolean[SLOTS][2];
|
||||
private final int[] retainedSticks = new int[SLOTS];
|
||||
private final PadState effectiveState = new PadState();
|
||||
private final PadState homeGuideReport = new PadState();
|
||||
@@ -484,7 +484,7 @@ public final class PadBridge {
|
||||
stateFor(slot).clear();
|
||||
retainedSticks[slot] = 0;
|
||||
Arrays.fill(rawSticks[slot], 0f);
|
||||
for (TriggerKey key : keyTriggers[slot]) key.reset();
|
||||
Arrays.fill(keyTriggers[slot], false);
|
||||
}
|
||||
|
||||
private void mutateState(java.util.function.Consumer<PadState> mutation) {
|
||||
@@ -530,7 +530,7 @@ public final class PadBridge {
|
||||
float lx = event.getAxisValue(MotionEvent.AXIS_X);
|
||||
float ly = event.getAxisValue(MotionEvent.AXIS_Y);
|
||||
boolean wired = wiredXboxLayout(device, event.getSource());
|
||||
boolean rxRyStick = Boolean.TRUE.equals(rightStickUsesRxRy(event, device, rightStickLayouts));
|
||||
boolean rxRyStick = rightStickUsesRxRy(event, device, rightStickLayouts);
|
||||
float rx = event.getAxisValue(rxRyStick ? MotionEvent.AXIS_RX : MotionEvent.AXIS_Z);
|
||||
float ry = event.getAxisValue(rxRyStick ? MotionEvent.AXIS_RY : MotionEvent.AXIS_RZ);
|
||||
retainStick(slot, JoyCon.LEFT, lx, ly);
|
||||
@@ -570,76 +570,26 @@ public final class PadBridge {
|
||||
return true;
|
||||
}
|
||||
|
||||
static final class TriggerKey {
|
||||
static final float RELEASE_FROM_PEAK = 0.05f;
|
||||
boolean held;
|
||||
boolean handoff;
|
||||
boolean axisLive;
|
||||
boolean axisMovedWhilePressed;
|
||||
float peak;
|
||||
float axis;
|
||||
|
||||
static TriggerKey[][] slots(int count) {
|
||||
TriggerKey[][] keys = new TriggerKey[count][2];
|
||||
for (TriggerKey[] pair : keys) {
|
||||
pair[0] = new TriggerKey();
|
||||
pair[1] = new TriggerKey();
|
||||
}
|
||||
return keys;
|
||||
}
|
||||
|
||||
void reset() {
|
||||
held = false;
|
||||
handoff = false;
|
||||
axisLive = false;
|
||||
axisMovedWhilePressed = false;
|
||||
peak = 0f;
|
||||
axis = 0f;
|
||||
}
|
||||
}
|
||||
|
||||
static float keyTrigger(float current, boolean pressed, int repeatCount, boolean analog, TriggerKey[] keys, int side) {
|
||||
TriggerKey key = keys[side];
|
||||
static float keyTrigger(float current, boolean pressed, int repeatCount, boolean analog, boolean[] held, int side) {
|
||||
if (repeatCount > 0) return current;
|
||||
if (!analog) {
|
||||
key.held = pressed;
|
||||
held[side] = pressed;
|
||||
return pressed ? 1f : 0f;
|
||||
}
|
||||
if (pressed) {
|
||||
key.axisMovedWhilePressed = false;
|
||||
if (key.axisLive || current != 0f) return current;
|
||||
key.held = true;
|
||||
if (current != 0f) return current;
|
||||
held[side] = true;
|
||||
return 1f;
|
||||
}
|
||||
if (!key.axisMovedWhilePressed) key.axisLive = false;
|
||||
if (key.handoff) {
|
||||
key.handoff = false;
|
||||
return key.axis;
|
||||
}
|
||||
if (!key.held) return current;
|
||||
key.held = false;
|
||||
if (!held[side]) return current;
|
||||
held[side] = false;
|
||||
return 0f;
|
||||
}
|
||||
|
||||
static float axisTrigger(float value, TriggerKey[] keys, int side) {
|
||||
TriggerKey key = keys[side];
|
||||
key.axis = value;
|
||||
if (value != 0f) {
|
||||
key.axisLive = true;
|
||||
key.axisMovedWhilePressed = true;
|
||||
}
|
||||
if (key.held) {
|
||||
if (value == 0f) return 1f;
|
||||
key.held = false;
|
||||
key.handoff = true;
|
||||
key.peak = value;
|
||||
return 1f;
|
||||
}
|
||||
if (key.handoff) {
|
||||
key.peak = Math.max(key.peak, value);
|
||||
if (value > key.peak - TriggerKey.RELEASE_FROM_PEAK) return 1f;
|
||||
key.handoff = false;
|
||||
}
|
||||
static float axisTrigger(float value, boolean[] held, int side) {
|
||||
if (!held[side]) return value;
|
||||
if (value == 0f) return 1f;
|
||||
held[side] = false;
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -654,14 +604,14 @@ public final class PadBridge {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static Boolean rightStickUsesRxRy(MotionEvent event, InputDevice device, Map<Integer, Boolean> layouts) {
|
||||
static boolean rightStickUsesRxRy(MotionEvent event, InputDevice device, Map<Integer, Boolean> layouts) {
|
||||
int source = event.getSource();
|
||||
if (wiredXboxLayout(device, source)) return true;
|
||||
boolean hasRxRy = hasAxis(device, source, MotionEvent.AXIS_RX)
|
||||
&& hasAxis(device, source, MotionEvent.AXIS_RY);
|
||||
boolean hasZRz = hasAxis(device, source, MotionEvent.AXIS_Z)
|
||||
&& hasAxis(device, source, MotionEvent.AXIS_RZ);
|
||||
if (!hasRxRy) return hasZRz ? false : null;
|
||||
if (!hasRxRy) return false;
|
||||
if (!hasZRz) return true;
|
||||
Boolean cached = layouts.get(event.getDeviceId());
|
||||
if (cached != null) return cached;
|
||||
@@ -669,7 +619,7 @@ public final class PadBridge {
|
||||
&& nearCentre(device, source, event, MotionEvent.AXIS_RX, MotionEvent.AXIS_RY);
|
||||
boolean zRzEvidence = atMinimum(device, source, event, MotionEvent.AXIS_RX, MotionEvent.AXIS_RY)
|
||||
&& nearCentre(device, source, event, MotionEvent.AXIS_Z, MotionEvent.AXIS_RZ);
|
||||
if (rxRyEvidence == zRzEvidence) return null;
|
||||
if (rxRyEvidence == zRzEvidence) return false;
|
||||
boolean useRxRy = rxRyEvidence;
|
||||
layouts.put(event.getDeviceId(), useRxRy);
|
||||
return useRxRy;
|
||||
|
||||
@@ -90,7 +90,7 @@ class PadMouse(private val listener: Listener, private val clock: () -> Long = S
|
||||
val sticks = physical.getOrPut(event.deviceId) { Sticks() }
|
||||
val device = event.device
|
||||
val wired = wiredLayout.getOrPut(event.deviceId) { PadBridge.wiredXboxLayout(device, event.source) }
|
||||
val rxRyStick = PadBridge.rightStickUsesRxRy(event, device, rightStickLayouts) ?: false
|
||||
val rxRyStick = PadBridge.rightStickUsesRxRy(event, device, rightStickLayouts)
|
||||
sticks.leftX = event.getAxisValue(MotionEvent.AXIS_X)
|
||||
sticks.leftY = event.getAxisValue(MotionEvent.AXIS_Y)
|
||||
sticks.rightX = scrollAxis(event, if (rxRyStick) MotionEvent.AXIS_RX else MotionEvent.AXIS_Z)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.droiddeck.launcher.runtime
|
||||
|
||||
import android.content.Context
|
||||
import android.os.Environment
|
||||
import com.droiddeck.launcher.core.DownloadSource
|
||||
import com.droiddeck.launcher.core.HostProcess
|
||||
import com.droiddeck.launcher.session.OrphanReaper
|
||||
@@ -36,7 +37,7 @@ object GuestCommand {
|
||||
SessionFiles.stage(context, root)
|
||||
LinuxNetworkLinkComponent(context, root).publish()
|
||||
val runtimeDir = File(context.filesDir, ".flatpak-rt").apply { mkdirs() }
|
||||
val binds = LinuxRuntime.binds(context, null, runtimeDir, LinuxRuntime.sharedStorage(context), extraBinds)
|
||||
val binds = LinuxRuntime.binds(context, null, runtimeDir, Environment.getExternalStorageDirectory(), extraBinds)
|
||||
val native = NativeGuest.forSession(context)
|
||||
val fastPathKey = if (!native && fastPath && !fakeRoot && linkDir == null && ProotFastPath.enabled(context)) ProotFastPath.key(root, binds) else null
|
||||
val guest = mutableListOf(
|
||||
|
||||
@@ -302,9 +302,9 @@ class LinuxNetworkLinkComponent(
|
||||
val etc = File(rootDir, "etc")
|
||||
replace(File(etc, "resolv.conf"), text)
|
||||
val hosts = File(etc, "hosts")
|
||||
val existing = if (hosts.isFile) hosts.readText() else null
|
||||
val wanted = hostsText(existing)
|
||||
if (wanted != existing) replace(hosts, wanted)
|
||||
if (!hosts.isFile || !hosts.readText().contains("localhost")) {
|
||||
hosts.writeText("127.0.0.1 localhost\n::1 localhost\n")
|
||||
}
|
||||
Log.i(TAG, "resolver: " + servers.joinToString(" "))
|
||||
} catch (e: IOException) {
|
||||
Log.w(TAG, "Could not write the resolver", e)
|
||||
@@ -338,42 +338,6 @@ class LinuxNetworkLinkComponent(
|
||||
companion object {
|
||||
private val WRITES = Any()
|
||||
|
||||
private const val HOSTS_BLOCK_START = "# DroidDeck: Unity telemetry is refused (start)"
|
||||
private const val HOSTS_BLOCK_END = "# DroidDeck: Unity telemetry is refused (end)"
|
||||
|
||||
// Unity 5's player seeds its bundled OpenSSL before its first HTTPS request, and that code jumps
|
||||
// to a bad address under FEX (Windlands, 428370). Refusing these telemetry hosts makes the request
|
||||
// fail before TLS starts; the games run without them.
|
||||
internal val UNITY_TELEMETRY_HOSTS = listOf(
|
||||
"config.uca.cloud.unity3d.com", "api.uca.cloud.unity3d.com", "cdp.cloud.unity3d.com",
|
||||
"stats.unity3d.com", "perf-events.cloud.unity3d.com",
|
||||
)
|
||||
|
||||
internal fun hostsText(existing: String?): String {
|
||||
val kept = mutableListOf<String>()
|
||||
var block: MutableList<String>? = null
|
||||
for (line in existing.orEmpty().lines()) {
|
||||
when {
|
||||
line == HOSTS_BLOCK_START -> {
|
||||
block?.let(kept::addAll)
|
||||
block = mutableListOf()
|
||||
}
|
||||
line == HOSTS_BLOCK_END -> block = null
|
||||
block != null -> block!!.add(line)
|
||||
else -> kept.add(line)
|
||||
}
|
||||
}
|
||||
block?.let(kept::addAll)
|
||||
kept.removeAll { it.isBlank() }
|
||||
return buildString {
|
||||
if (kept.none { it.substringBefore('#').contains("localhost") }) append("127.0.0.1 localhost\n::1 localhost\n")
|
||||
kept.forEach { append(it).append('\n') }
|
||||
append(HOSTS_BLOCK_START).append('\n')
|
||||
append("0.0.0.0 ").append(UNITY_TELEMETRY_HOSTS.joinToString(" ")).append('\n')
|
||||
append(HOSTS_BLOCK_END).append('\n')
|
||||
}
|
||||
}
|
||||
|
||||
internal fun gateways(properties: LinkProperties?, capabilities: NetworkCapabilities?): List<InetAddress> =
|
||||
listOf(Inet4Address::class.java, Inet6Address::class.java).mapNotNull { family ->
|
||||
properties?.routes.orEmpty()
|
||||
|
||||
@@ -185,12 +185,7 @@ public final class LinuxRuntime {
|
||||
public static List<String> lastBinds(Context context) {
|
||||
List<String> binds = lastBinds;
|
||||
if (binds != null) return binds;
|
||||
return binds(context, null, null, sharedStorage(context), null);
|
||||
}
|
||||
|
||||
/** The phone's shared storage, or null when it should stay out of the container. */
|
||||
public static File sharedStorage(Context context) {
|
||||
return SessionPrefs.mountSharedStorage(context) ? android.os.Environment.getExternalStorageDirectory() : null;
|
||||
return binds(context, null, null, android.os.Environment.getExternalStorageDirectory(), null);
|
||||
}
|
||||
|
||||
public static List<String> prootPrefix(Context context, File root, String cwd) {
|
||||
|
||||
@@ -112,9 +112,8 @@ object NativeGuest {
|
||||
File(BwrapSpawner.hostPath(binds.map { BwrapSpawner.Bind.parse(it) }, root.path, cwd)).takeIf { it.isDirectory } ?: root
|
||||
|
||||
/** A process for [guest] (argv) started as proot would with [binds], in guest directory [cwd]. */
|
||||
fun processBuilder(context: Context, root: File, binds: List<String>, guest: List<String>, cwd: String = "/root"): ProcessBuilder {
|
||||
if (sessionMode == null) prepare(context, root)
|
||||
return ProcessBuilder(command(root, guest.first(), guest.drop(1)))
|
||||
fun processBuilder(context: Context, root: File, binds: List<String>, guest: List<String>, cwd: String = "/root"): ProcessBuilder =
|
||||
ProcessBuilder(command(root, guest.first(), guest.drop(1)))
|
||||
.directory(workingDirectory(root, binds, cwd))
|
||||
.also { builder ->
|
||||
builder.environment().apply {
|
||||
@@ -122,7 +121,6 @@ object NativeGuest {
|
||||
putAll(sessionEnvironment(root, binds, guest.first(), SessionPrefs.guestHostname(context)))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private const val RUNPATH_CONF = "etc/ld.so.conf.d/zz-droiddeck-native.conf"
|
||||
private val SCAN_DIRS = listOf("usr/lib", "usr/local/lib", "opt")
|
||||
@@ -151,7 +149,6 @@ object NativeGuest {
|
||||
}
|
||||
|
||||
/** What a rootfs needs before anything runs in it natively; cheap once done. */
|
||||
@Synchronized
|
||||
fun prepare(context: Context, root: File) {
|
||||
val relinked = relinkAbsoluteSymlinks(context, root)
|
||||
if (relinked > 0) android.util.Log.i(TAG, "native userland: $relinked absolute symlinks made relative")
|
||||
|
||||
@@ -14,7 +14,6 @@ import com.droiddeck.launcher.R
|
||||
import com.droiddeck.launcher.core.Downloader
|
||||
import com.droiddeck.launcher.core.FileUtils
|
||||
import com.droiddeck.launcher.core.Hashes
|
||||
import com.droiddeck.launcher.session.SessionPrefs
|
||||
import com.droiddeck.launcher.store.FlathubApi
|
||||
import org.json.JSONArray
|
||||
import org.json.JSONObject
|
||||
@@ -185,10 +184,9 @@ object UserApps {
|
||||
|
||||
fun binds(context: Context): List<String> {
|
||||
val internal = Environment.getExternalStorageDirectory().canonicalPath
|
||||
val mounted = SessionPrefs.mountSharedStorage(context)
|
||||
return root(context).listFiles().orEmpty().mapNotNull { dir ->
|
||||
val target = runCatching { Os.readlink(File(dir, "files").path) }.getOrNull() ?: return@mapNotNull null
|
||||
target.takeIf { !(mounted && it.startsWith("$internal/")) && File(it).isDirectory }
|
||||
target.takeIf { !it.startsWith("$internal/") && File(it).isDirectory }
|
||||
}.distinct()
|
||||
}
|
||||
|
||||
@@ -477,8 +475,7 @@ object UserApps {
|
||||
if (!file.isFile) return context.getString(R.string.user_apps_file_gone)
|
||||
if (!FlatpakManager.ready(context)) FlatpakManager.setup(context, onProgress)?.let { return it }
|
||||
val shared = Environment.getExternalStorageDirectory().canonicalPath
|
||||
val copy = File(LinuxRuntime.rootDir(context), "tmp/droiddeck-bundle.flatpak")
|
||||
.takeIf { !SessionPrefs.mountSharedStorage(context) || !file.canonicalPath.startsWith("$shared/") }
|
||||
val copy = File(LinuxRuntime.rootDir(context), "tmp/droiddeck-bundle.flatpak").takeIf { !file.canonicalPath.startsWith("$shared/") }
|
||||
try {
|
||||
if (copy != null) {
|
||||
onProgress(context.getString(R.string.user_apps_copying, file.name), -1)
|
||||
|
||||
@@ -40,7 +40,6 @@ object BottomDesktop {
|
||||
val generation: Int,
|
||||
val installed: Boolean,
|
||||
val nativeUserland: Boolean,
|
||||
val sharedStorage: File?,
|
||||
)
|
||||
|
||||
@Volatile private var launch: Launch? = null
|
||||
@@ -92,11 +91,10 @@ object BottomDesktop {
|
||||
sessionDir: File,
|
||||
generation: Int,
|
||||
nativeUserland: Boolean,
|
||||
sharedStorage: File?,
|
||||
stillCurrent: () -> Boolean,
|
||||
) {
|
||||
val prepared = Launch(ArrayList(guest), ArrayList(binds), sessionRoot, hostEnvironment.copyOf(), root, sessionDir, generation,
|
||||
DesktopCatalog.desktopInstalled(root), nativeUserland, sharedStorage)
|
||||
DesktopCatalog.desktopInstalled(root), nativeUserland)
|
||||
synchronized(launchLock) { if (stillCurrent()) launch = prepared }
|
||||
}
|
||||
|
||||
@@ -315,7 +313,7 @@ object BottomDesktop {
|
||||
val runtime = runtimeDir(context).apply { mkdirs() }
|
||||
val imeDir = File(current.sessionRoot, "bottom-desktop-ime")
|
||||
main.post { if (generation == guestGeneration) watchIme(imeDir) }
|
||||
val binds = LinuxRuntime.binds(context, current.sessionRoot, runtime, current.sharedStorage, current.binds)
|
||||
val binds = LinuxRuntime.binds(context, current.sessionRoot, runtime, Environment.getExternalStorageDirectory(), current.binds)
|
||||
val guest = ArrayList(current.guest).apply {
|
||||
add("DD_WIDTH=$width")
|
||||
add("DD_HEIGHT=$height")
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -29,10 +29,6 @@ object Onboarding {
|
||||
/** The setup screens belong to the first run; later runtime, Proton and Steam client updates keep the usual Play button. */
|
||||
val firstRun = MutableStateFlow(true)
|
||||
|
||||
/** Called once, when this process finishes the first-run downloads itself; not when everything was already in place. */
|
||||
@Volatile var onFirstRunReady: (() -> Unit)? = null
|
||||
@Volatile private var worked = false
|
||||
|
||||
fun attach(context: Context) {
|
||||
appContext = context.applicationContext
|
||||
val prefs = context.applicationContext.getSharedPreferences(PREFS, Context.MODE_PRIVATE)
|
||||
@@ -56,10 +52,8 @@ object Onboarding {
|
||||
|
||||
private fun markFirstRunDone() {
|
||||
val context = appContext ?: return
|
||||
val live = firstRun.value && worked
|
||||
context.getSharedPreferences(PREFS, Context.MODE_PRIVATE).edit().putBoolean(KEY_FIRST_RUN_DONE, true).apply()
|
||||
firstRun.value = false
|
||||
if (live) onFirstRunReady?.invoke()
|
||||
}
|
||||
|
||||
/** Keeps the process in the foreground, with one notification, while a step downloads and the runtime installer is not already doing so. */
|
||||
@@ -96,7 +90,6 @@ object Onboarding {
|
||||
}
|
||||
|
||||
fun report(step: Step, label: String, percent: Int) {
|
||||
worked = true
|
||||
failed.value = failed.value - step
|
||||
active.value = active.value + (step to Progress(label, percent))
|
||||
keepAlive()
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
package com.droiddeck.launcher.session
|
||||
|
||||
import android.content.Context
|
||||
import java.io.File
|
||||
|
||||
/**
|
||||
* On a Quest, SteamVR has to run inside the immersive activity. A launch from Steam's library happens in the
|
||||
* guest, so the guest's SteamVR helper leaves a request in the shared runtime directory for the session to act on.
|
||||
*/
|
||||
object QuestSteamVrLaunch {
|
||||
private const val DIR = ".wayland-rt/droiddeck-steamvr"
|
||||
private const val MARKER = "quest-immersive"
|
||||
private const val REQUEST = "xr-request"
|
||||
|
||||
fun publish(context: Context) {
|
||||
val dir = File(context.filesDir, DIR)
|
||||
val marker = File(dir, MARKER)
|
||||
if (!QuestExperimental.isSupported()) {
|
||||
marker.delete()
|
||||
return
|
||||
}
|
||||
runCatching {
|
||||
dir.mkdirs()
|
||||
marker.writeText("")
|
||||
}
|
||||
}
|
||||
|
||||
/** A request left by an earlier session must not open the immersive view in this one. */
|
||||
fun clearRequest(context: Context) {
|
||||
File(context.filesDir, "$DIR/$REQUEST").delete()
|
||||
}
|
||||
|
||||
fun takeRequest(context: Context): Boolean =
|
||||
QuestExperimental.isSupported() && File(context.filesDir, "$DIR/$REQUEST").delete()
|
||||
}
|
||||
@@ -250,11 +250,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" }
|
||||
@@ -277,7 +272,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)
|
||||
}
|
||||
|
||||
@@ -960,6 +960,12 @@ object SessionPrefs {
|
||||
|
||||
fun micAsked(context: Context): Boolean = prefs(context).getBoolean("micAsked", false)
|
||||
|
||||
fun allFilesAsked(context: Context): Boolean = prefs(context).getBoolean("allFilesAsked", false)
|
||||
|
||||
fun setAllFilesAsked(context: Context) {
|
||||
prefs(context).edit().putBoolean("allFilesAsked", true).apply()
|
||||
}
|
||||
|
||||
fun bluetoothAsked(context: Context): Boolean = prefs(context).getBoolean("bluetoothAsked", false)
|
||||
|
||||
fun setBluetoothAsked(context: Context) {
|
||||
@@ -1084,14 +1090,6 @@ object SessionPrefs {
|
||||
|
||||
fun gameThreadHints(context: Context): Boolean = prefs(context).getBoolean("gameThreadHints", true)
|
||||
|
||||
/** Whether the phone's shared storage (/sdcard) is mounted into the Linux container. */
|
||||
@JvmStatic
|
||||
fun mountSharedStorage(context: Context): Boolean = prefs(context).getBoolean("mountSharedStorage", true)
|
||||
|
||||
fun setMountSharedStorage(context: Context, on: Boolean) {
|
||||
prefs(context).edit().putBoolean("mountSharedStorage", on).apply()
|
||||
}
|
||||
|
||||
fun prootNoSeccomp(context: Context): Boolean = prefs(context).getBoolean("prootNoSeccomp", false)
|
||||
|
||||
fun setProotNoSeccomp(context: Context, on: Boolean) {
|
||||
@@ -1229,11 +1227,6 @@ object SessionPrefs {
|
||||
prefs(context).edit().putBoolean("venus", on).apply()
|
||||
}
|
||||
|
||||
/** Venus off with no choice stored, so that Auto turning it off does not read as the user's own choice. */
|
||||
fun clearVenus(context: Context) {
|
||||
prefs(context).edit().remove("venus").apply()
|
||||
}
|
||||
|
||||
fun setVkBridge(context: Context, on: Boolean) {
|
||||
prefs(context).edit().putBoolean("vkBridge", on).putBoolean("bridgeFellBack", false).apply()
|
||||
}
|
||||
|
||||
@@ -417,7 +417,6 @@ class SessionService : Service() {
|
||||
SessionPrefs.screenEffectsProfileId(SessionState.mode, resolvedGameId, SessionState.program),
|
||||
)
|
||||
com.droiddeck.launcher.stores.battlenet.BattleNetClient.clearRequests(LinuxRuntime.sessionRoot(this))
|
||||
QuestSteamVrLaunch.clearRequest(this)
|
||||
val gen = synchronized(SessionState.startLock) {
|
||||
synchronized(stopLock) {
|
||||
SessionState.steamClientArch = null
|
||||
@@ -743,15 +742,14 @@ class SessionService : Service() {
|
||||
|
||||
SessionEvents.step("shm-clear") { FileUtils.clear(File(LinuxRuntime.liveDir(this), "shm")) }
|
||||
|
||||
val sharedStorage = LinuxRuntime.sharedStorage(this)
|
||||
val binds = sessionBinds(controllersOn, fakeInputDir, sessionDir, guest, sessionRoot, runtimeDir, sharedStorage)
|
||||
val binds = sessionBinds(controllersOn, fakeInputDir, sessionDir, guest, sessionRoot, runtimeDir)
|
||||
val nativeUserland = com.droiddeck.launcher.runtime.NativeGuest.enabled(this)
|
||||
synchronized(stopLock) {
|
||||
if (gen == sessionGen && SessionState.running) com.droiddeck.launcher.runtime.NativeGuest.sessionMode = nativeUserland
|
||||
}
|
||||
val fastPathKey = if (ProotFastPath.enabled(this)) {
|
||||
val prootBinds = LinuxRuntime.binds(
|
||||
this, sessionRoot, runtimeDir, sharedStorage, binds,
|
||||
this, sessionRoot, runtimeDir, Environment.getExternalStorageDirectory(), binds,
|
||||
)
|
||||
val root = LinuxRuntime.rootDir(this)
|
||||
ProotFastPath.key(root, prootBinds)?.also { key ->
|
||||
@@ -765,12 +763,12 @@ class SessionService : Service() {
|
||||
}
|
||||
} else null
|
||||
|
||||
val sessionBindSpecs = LinuxRuntime.binds(this, sessionRoot, runtimeDir, sharedStorage, binds)
|
||||
val sessionBindSpecs = LinuxRuntime.binds(this, sessionRoot, runtimeDir, Environment.getExternalStorageDirectory(), binds)
|
||||
val command = if (nativeUserland) {
|
||||
LinuxRuntime.rememberSessionBinds(sessionBindSpecs)
|
||||
com.droiddeck.launcher.runtime.NativeGuest.command(root, guest.first(), guest.drop(1))
|
||||
} else {
|
||||
LinuxRuntime.command(this, sessionRoot, runtimeDir, sharedStorage, binds, guest)
|
||||
LinuxRuntime.command(this, sessionRoot, runtimeDir, Environment.getExternalStorageDirectory(), binds, guest)
|
||||
}
|
||||
|
||||
val prootEnv = HostEnvironment()
|
||||
@@ -799,7 +797,7 @@ class SessionService : Service() {
|
||||
val terminalCommand = if (nativeUserland) {
|
||||
com.droiddeck.launcher.runtime.NativeGuest.command(root, shellGuest.first(), shellGuest.drop(1))
|
||||
} else {
|
||||
LinuxRuntime.command(this, sessionRoot, runtimeDir, sharedStorage, binds, shellGuest)
|
||||
LinuxRuntime.command(this, sessionRoot, runtimeDir, Environment.getExternalStorageDirectory(), binds, shellGuest)
|
||||
}
|
||||
val terminalHostEnvironment = LinkedHashMap(System.getenv())
|
||||
hostEnv.asArray().forEach { entry ->
|
||||
@@ -810,7 +808,7 @@ class SessionService : Service() {
|
||||
SessionTerminal.prepare(terminalCommand, terminalHostEnvironment.map { (key, value) -> "$key=$value" }.toTypedArray(), root, gen)
|
||||
val (fastPathName, _) = ProotFastPath.hostEnv("")
|
||||
BottomDesktop.prepare(desktopGuest, binds, sessionRoot,
|
||||
prootEnv.asArray().filterNot { it.startsWith("$fastPathName=") }.toTypedArray(), root, sessionDir, gen, nativeUserland, sharedStorage,
|
||||
prootEnv.asArray().filterNot { it.startsWith("$fastPathName=") }.toTypedArray(), root, sessionDir, gen, nativeUserland,
|
||||
) { gen == sessionGen && SessionState.running }
|
||||
}
|
||||
|
||||
@@ -1084,8 +1082,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)) }
|
||||
@@ -1260,7 +1256,6 @@ class SessionService : Service() {
|
||||
guest: MutableList<String>,
|
||||
sessionRoot: File,
|
||||
runtimeDir: File,
|
||||
sharedStorage: File?,
|
||||
): ArrayList<String> {
|
||||
val binds = ArrayList<String>()
|
||||
if (controllersOn) binds.add(fakeInputDir.path + ":/dev/input")
|
||||
@@ -1304,17 +1299,7 @@ class SessionService : Service() {
|
||||
if (controllersOn) components.add(RumbleComponent().also { it.attach(this) })
|
||||
val home = File(LinuxRuntime.rootDir(this), "root")
|
||||
File(home, "Storage").mkdirs()
|
||||
if (sharedStorage != null) {
|
||||
binds.add(sharedStorage.path + ":/root/Storage")
|
||||
} else {
|
||||
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()
|
||||
binds.add(folder.path + ":" + guest)
|
||||
Log.i(TAG, "added game: $folder -> $guest (shared storage not mounted)")
|
||||
}
|
||||
}
|
||||
binds.add(Environment.getExternalStorageDirectory().path + ":/root/Storage")
|
||||
val library = GameStorage.effective(this)
|
||||
steamLibraryMounts = emptyMap()
|
||||
var storageDiagnosticLibrary: File? = null
|
||||
@@ -1388,7 +1373,7 @@ class SessionService : Service() {
|
||||
val gamesLibraries = GameStorage.gamesFolderLibraries(this)
|
||||
if (gamesLibraries.isNotEmpty()) {
|
||||
var room = if (ProotFastPath.enabled(this)) {
|
||||
ProotFastPath.MAX_BINDS - LinuxRuntime.binds(this, sessionRoot, runtimeDir, sharedStorage, binds).size
|
||||
ProotFastPath.MAX_BINDS - LinuxRuntime.binds(this, sessionRoot, runtimeDir, Environment.getExternalStorageDirectory(), binds).size
|
||||
} else Int.MAX_VALUE
|
||||
for (games in gamesLibraries) {
|
||||
if (games.host.path + ":" + games.guest !in binds) continue
|
||||
@@ -1430,7 +1415,7 @@ class SessionService : Service() {
|
||||
}
|
||||
try {
|
||||
val room = if (ProotFastPath.enabled(this)) {
|
||||
ProotFastPath.MAX_BINDS - LinuxRuntime.binds(this, sessionRoot, runtimeDir, sharedStorage, binds).size
|
||||
ProotFastPath.MAX_BINDS - LinuxRuntime.binds(this, sessionRoot, runtimeDir, Environment.getExternalStorageDirectory(), binds).size
|
||||
} else Int.MAX_VALUE
|
||||
val content = SecondaryLibrary.contentPath(entry.host)
|
||||
val extra = SecondaryLibrary.binds(filesDir, entry.host, listOf(entry.guest), content = content)
|
||||
@@ -1459,7 +1444,7 @@ class SessionService : Service() {
|
||||
Log.w(TAG, "x86-64 steam library: $problem")
|
||||
} else try {
|
||||
val room = if (ProotFastPath.enabled(this)) {
|
||||
ProotFastPath.MAX_BINDS - LinuxRuntime.binds(this, sessionRoot, runtimeDir, sharedStorage, binds).size
|
||||
ProotFastPath.MAX_BINDS - LinuxRuntime.binds(this, sessionRoot, runtimeDir, Environment.getExternalStorageDirectory(), binds).size
|
||||
} else Int.MAX_VALUE
|
||||
val extra = SecondaryLibrary.binds(filesDir, x64, listOf(GameStorage.X64_CARD_GUEST)).drop(1)
|
||||
if (extra.size > room) {
|
||||
@@ -1481,7 +1466,7 @@ class SessionService : Service() {
|
||||
}
|
||||
try {
|
||||
val room = if (ProotFastPath.enabled(this)) {
|
||||
ProotFastPath.MAX_BINDS - LinuxRuntime.binds(this, sessionRoot, runtimeDir, sharedStorage, binds).size
|
||||
ProotFastPath.MAX_BINDS - LinuxRuntime.binds(this, sessionRoot, runtimeDir, Environment.getExternalStorageDirectory(), binds).size
|
||||
} else Int.MAX_VALUE
|
||||
val extra = SecondaryLibrary.binds(filesDir, entry.x64Host, listOf(entry.x64Guest)).drop(1)
|
||||
if (extra.size > room) {
|
||||
@@ -1517,7 +1502,7 @@ class SessionService : Service() {
|
||||
val listing = File(filesDir, "session/desktop-volumes.json").apply { parentFile?.mkdirs() }
|
||||
val volumes = org.json.JSONArray()
|
||||
var room = if (ProotFastPath.enabled(this)) {
|
||||
ProotFastPath.MAX_BINDS - LinuxRuntime.binds(this, sessionRoot, runtimeDir, sharedStorage, binds).size
|
||||
ProotFastPath.MAX_BINDS - LinuxRuntime.binds(this, sessionRoot, runtimeDir, Environment.getExternalStorageDirectory(), binds).size
|
||||
} else Int.MAX_VALUE
|
||||
for (root in com.droiddeck.launcher.files.StorageRoots.list(this)) {
|
||||
if (!root.removable || !root.readable) continue
|
||||
|
||||
@@ -22,7 +22,7 @@ object SettingsReset {
|
||||
"gpuDriverMode", "androidDriver", "linuxDriver", "linuxDriver.steam", "linuxDriver.desktop",
|
||||
"tuSysmem", "glThread", "noGlError", "zinkLazy", "mangoapp", "gpuClockPin", "gamescopeRealtime", "paceCores",
|
||||
"directAudio", "mic", "wifiDiscovery", "clientCpusOverride", "clientCpus", "gameCpus",
|
||||
"noXalia", "fastSync", "fsyncFirst", "syncFallback", "prootNoSeccomp", "prootFastPath", "nativeUserland", "cursorComposite", "mountSharedStorage",
|
||||
"noXalia", "fastSync", "fsyncFirst", "syncFallback", "prootNoSeccomp", "prootFastPath", "nativeUserland", "cursorComposite",
|
||||
"guestHostname", "fexPreset", "forceSsbs", "logs", "gameDebugLogsEnabled", "enhancedDiagnosticsNext", "storageDiagnostics", "buildWatermark",
|
||||
"upscaler", "upscaleSharpness", "screenEffects", "blackFrameInsertion", "textureAnisotropy", "textureLodBias",
|
||||
"steamDownloadsInBackground", "steam_offline", "steam_offline_auto", "steam_offline_by_network", "bootMovie", "bootMovieSound", "bootMovieVolume", "bootMovieSeconds", "skipBootMovie",
|
||||
|
||||
@@ -1,397 +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 = "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 url get() = "https://raw.githubusercontent.com/$UPSTREAM/$UPSTREAM_COMMIT/$upstreamPath"
|
||||
}
|
||||
|
||||
val FILES = listOf(
|
||||
DataFile(Group.CORE, "fsr4/fsr3_accumulate.spv", "app/src/main/assets/fsr4/fsr3_accumulate.spv", "06334f81fee9afff829085612bbedee4fae06a1d7cca62c0ce62fc4c49e11c85", 12168L),
|
||||
DataFile(Group.CORE, "fsr4/fsr3_prepare.spv", "app/src/main/assets/fsr4/fsr3_prepare.spv", "a9bf26007c37daf775036558cf00af70e69d12c0b2e0d0c12b0372b085149c78", 8308L),
|
||||
DataFile(Group.CORE, "fsr4/fsr3_rcas.spv", "app/src/main/assets/fsr4/fsr3_rcas.spv", "80d54b9a3b29626fee7c57ff24f5e5e0bb288c40375462bcd4f3a1e26f30aac3", 6312L),
|
||||
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", "71c2571ccc5ad447a0d41da49472aaf1c5a2b19dcfe3f871dca53b8c42cc53ed", 3456L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/0002.spv", "app/src/main/assets/fsr4/fsr412_lite/0002.spv", "5b07b9b4ea0597811e069d684929ce0f74a0ab111665c83f5fdda97ef68b1a34", 120964L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/0003.spv", "app/src/main/assets/fsr4/fsr412_lite/0003.spv", "6dd4ceef841a8aedf2e3222e23ef1b7a83788ff5eed3a4baf02cce2d9bd334c3", 3492L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/0004.spv", "app/src/main/assets/fsr4/fsr412_lite/0004.spv", "61c63223e337584361af1ab8f28cc1bd3a9b1713608985dcb41d9255c734d1b1", 3928L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/0005.spv", "app/src/main/assets/fsr4/fsr412_lite/0005.spv", "2cb371b67efc07da60d6c30a9fc4239d4d194306dbf4fb7bd90f82039968a8b7", 201880L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/0006.spv", "app/src/main/assets/fsr4/fsr412_lite/0006.spv", "96aab40505a5fa1992cd02d9cd32b6ee799858e896b6a357a2cce09fd58f7c23", 3892L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/0007.spv", "app/src/main/assets/fsr4/fsr412_lite/0007.spv", "20ec164ffc3f6269bc4f50e53825503188e157715989ae1841a8f485999d0a30", 279304L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/0008.spv", "app/src/main/assets/fsr4/fsr412_lite/0008.spv", "a2c57206f1f8b79366b42497de16533a3e679d43bed97eee4fbaf695ce104b7f", 3508L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/0009.spv", "app/src/main/assets/fsr4/fsr412_lite/0009.spv", "35453061b2637f1e4837d2dd1026b1b262ceabbda6911411829d716169220c60", 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", "f34905ea5d71368dd3e85be79424a94f68dfdf866e38d33bc9954701ebd0e64d", 57232L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/fsr412_lite_i8.wpack", "app/src/main/assets/fsr4/fsr412_lite/fsr412_lite_i8.wpack", "7de72e7bdcade967a4a64d81e4d625384ee8e0575c355dca432dc72db23d7adc", 27104L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/lite_npu_pack.spv", "app/src/main/assets/fsr4/fsr412_lite/lite_npu_pack.spv", "1b369e959ded731f4cfff895c9e7e5d045469742fb3a6db6a6fd3f039a076404", 1412L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/lite_npu_unpack.spv", "app/src/main/assets/fsr4/fsr412_lite/lite_npu_unpack.spv", "e2de130c7024667b57b0cbf12c3a62f6860b5954c0e03add6d44c5794034982a", 1712L),
|
||||
DataFile(Group.CORE, "fsr4/fsr412_lite/weights.bin", "app/src/main/assets/fsr4/fsr412_lite/weights.bin", "4b9898da719dc2dca5dc45fd71dec5f80bdb9886a580fe3038af59efe637d55e", 27392L),
|
||||
DataFile(Group.CORE, "fsr4/fsr4_builtin_post_a.spv", "app/src/main/assets/fsr4/fsr4_builtin_post_a.spv", "aca1e6ae4e9a303b8ce8c6b066266ea6ef64857bd5f6a97ac9ab818809fb5e24", 7764L),
|
||||
DataFile(Group.CORE, "fsr4/fsr4_builtin_post_b.spv", "app/src/main/assets/fsr4/fsr4_builtin_post_b.spv", "898cc07bc0b175778264ec2dc1ef8df5b3a1ed463befaaf08e5f5686235d5963", 9076L),
|
||||
DataFile(Group.CORE, "fsr4/fsr4_builtin_pre.spv", "app/src/main/assets/fsr4/fsr4_builtin_pre.spv", "314273b20839952b0829b8aa51bb3d5a23a5c11d620c239f99dd2f9c41b30458", 45340L),
|
||||
DataFile(Group.CORE, "fsr4/fsr4_v07_i8.wpack", "app/src/main/assets/fsr4/fsr4_v07_i8.wpack", "a34d8b9fb5bb7dc8ff0fabf143f8cdc989ee412b3c80561107844ec768d90a58", 169624L),
|
||||
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),
|
||||
DataFile(Group.XESS, "xess/wl_xess_official.dll", "app/src/main/assets/fsr4_bridge/wl_xess_official.dll", "251659dd84a3e84de67c886a4186e01f3eca49b00641906fe38bb6b807e5d5b7", 77795704L),
|
||||
)
|
||||
|
||||
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 Hexagon NPU generation the bundled QNN files serve, or null: v79 on the Snapdragon 8 Elite, v81 on the 8 Elite Gen 5. */
|
||||
fun npuArch(model: String = SocNames.model()): String? {
|
||||
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 arch.takeIf { fastrpc }
|
||||
}
|
||||
|
||||
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) 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)
|
||||
val bridges = files && (bridgesReady(app) || 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)
|
||||
}
|
||||
|
||||
/** 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-" + File(source, "x86_64-windows/libxess.dll").let { it.length().toString() + "-" + it.lastModified() }
|
||||
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 the bionic layer's manifest folder. */
|
||||
fun guestEnv(context: Context): List<String> {
|
||||
runCatching { runDir(context).mkdirs() }
|
||||
return listOf(
|
||||
"DROIDDECK_UPSCALE_NPU=" + (if (npuArch() != null) "1" else "0"),
|
||||
"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
|
||||
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 }
|
||||
}
|
||||
@@ -105,9 +105,14 @@ object WinComponents {
|
||||
const val VCREDIST_ARM64 = "vcredist2022_arm64"
|
||||
|
||||
internal fun builtInArm64Runtime(): Component {
|
||||
val install = Step("install_exe", JSONObject().put("action", "install_exe").put("file_name", "VC_redist.arm64.exe")
|
||||
.put("url", "https://aka.ms/vs/17/release/vc_redist.arm64.exe"))
|
||||
return Component(VCREDIST_ARM64, "Microsoft Visual C++ 2015-2022 Redistributable (arm64)", "Microsoft", "ready", emptyList(), listOf(install), revision = 2)
|
||||
fun value(view: String, name: String, type: String, data: String) = Step("set_register_key", JSONObject()
|
||||
.put("action", "set_register_key").put("key", "HKLM\\Software\\${view}Microsoft\\VisualStudio\\14.0\\VC\\Runtimes\\arm64")
|
||||
.put("value", name).put("type", type).put("data", data))
|
||||
val steps = listOf("", "Wow6432Node\\").flatMap { view ->
|
||||
listOf(value(view, "Installed", "REG_DWORD", "1"), value(view, "Major", "REG_DWORD", "14"), value(view, "Minor", "REG_DWORD", "44"),
|
||||
value(view, "Bld", "REG_DWORD", "35211"), value(view, "Rbld", "REG_DWORD", "0"), value(view, "Version", "REG_SZ", "v14.44.35211.00"))
|
||||
}
|
||||
return Component(VCREDIST_ARM64, "Microsoft Visual C++ 2015-2022 ARM64 runtime 14.44.35211 (registry entries only)", "Microsoft", "ready", emptyList(), steps)
|
||||
}
|
||||
|
||||
private fun parse(body: String): List<Component>? {
|
||||
|
||||
@@ -97,7 +97,7 @@ object StoreLaunch {
|
||||
lines += "del \"%~dp0$EA_ENV\""
|
||||
lines += ":run"
|
||||
lines += "if exist \"$EA_ORIGIN\" start \"\" \"$EA_ORIGIN\""
|
||||
lines += "$run %*"
|
||||
lines += run
|
||||
lines += "taskkill /f /im Origin.exe >nul 2>&1"
|
||||
} else {
|
||||
lines += run
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.droiddeck.launcher.stores.gog
|
||||
|
||||
import android.content.Context
|
||||
import android.os.Environment
|
||||
import android.util.Log
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
@@ -142,9 +143,9 @@ object GogComet {
|
||||
val pb = if (com.droiddeck.launcher.runtime.NativeGuest.forSession(context)) {
|
||||
val root = LinuxRuntime.rootDir(context)
|
||||
com.droiddeck.launcher.runtime.NativeGuest.processBuilder(context, root,
|
||||
LinuxRuntime.binds(context, null, null, LinuxRuntime.sharedStorage(context), null), guest).redirectErrorStream(true)
|
||||
LinuxRuntime.binds(context, null, null, Environment.getExternalStorageDirectory(), null), guest).redirectErrorStream(true)
|
||||
} else {
|
||||
ProcessBuilder(LinuxRuntime.command(context, null, null, LinuxRuntime.sharedStorage(context), guest)).redirectErrorStream(true).also {
|
||||
ProcessBuilder(LinuxRuntime.command(context, null, null, Environment.getExternalStorageDirectory(), guest)).redirectErrorStream(true).also {
|
||||
it.environment().apply {
|
||||
remove("LD_PRELOAD"); remove("LD_AUDIT"); remove("LD_LIBRARY_PATH")
|
||||
put("PROOT_LOADER", LinuxRuntime.prootLoader(context).path)
|
||||
|
||||
@@ -94,16 +94,17 @@ internal object XboxManifest {
|
||||
}
|
||||
|
||||
fun executable(folder: File): String {
|
||||
val listed = read(folder).executables
|
||||
for (path in listed) {
|
||||
for (path in read(folder).executables) {
|
||||
require(!path.startsWith('/') && !path.contains(':') && path.split('/').none { it == ".." || it.isEmpty() })
|
||||
val file = path.split('/').fold<String, File?>(folder) { dir, part ->
|
||||
dir?.listFiles().orEmpty().filter { it.name.equals(part, true) }.singleOrNull()
|
||||
} ?: continue
|
||||
var file = folder
|
||||
for (part in path.split('/')) {
|
||||
val matches = file.listFiles().orEmpty().filter { it.name.equals(part, true) }
|
||||
require(matches.size == 1) { "Missing or ambiguous Xbox launch path." }
|
||||
file = matches.single()
|
||||
}
|
||||
require(file.canonicalPath.startsWith(folder.canonicalPath + File.separator))
|
||||
if (file.isFile) return forwarded(folder, file) ?: file.relativeTo(folder).invariantSeparatorsPath
|
||||
}
|
||||
require(listed.isEmpty()) { "Missing or ambiguous Xbox launch path." }
|
||||
error("The Xbox package has no supported PC launch executable.")
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.droiddeck.launcher.stores.xbox
|
||||
|
||||
import android.content.Context
|
||||
import android.os.Environment
|
||||
import com.droiddeck.launcher.core.AddonPack
|
||||
import com.droiddeck.launcher.runtime.LinuxNetworkLinkComponent
|
||||
import com.droiddeck.launcher.runtime.LinuxRuntime
|
||||
@@ -81,7 +82,7 @@ internal object Xodus {
|
||||
networkLink.start()
|
||||
val runtime = (runtimeDirectory ?: File(app.filesDir, "xbox-runtime")).apply { mkdirs() }
|
||||
val root = LinuxRuntime.rootDir(app)
|
||||
val external = LinuxRuntime.sharedStorage(app)
|
||||
val external = Environment.getExternalStorageDirectory()
|
||||
val extraBinds = StoreInstallRoot.externalBindSpecsForXodus(app)
|
||||
val binds = LinuxRuntime.binds(app, null, null, external, extraBinds)
|
||||
val fastPathPreloaded = runCatching {
|
||||
|
||||
@@ -57,17 +57,12 @@ import com.droiddeck.launcher.stores.StoresState
|
||||
/** What the Library pretends while a developer previews it. Nothing here is saved: a restart always comes back to [OFF]. */
|
||||
internal enum class LibraryPreview { OFF, NOTHING_INSTALLED, SIGNED_OUT, SAMPLE }
|
||||
|
||||
/** How many games the Steam home pretends are installed. Nothing here is saved. */
|
||||
internal enum class SteamHomePreview(val games: Int) { OFF(-1), NONE(0), FEW(3), MANY(12) }
|
||||
|
||||
internal enum class DrawerPreview { STEAM, DESKTOP, GAME }
|
||||
|
||||
/** Developer tools' preview states: screens that are otherwise hard to reach, shown without changing anything real. */
|
||||
internal object DevPreview {
|
||||
var library by mutableStateOf(LibraryPreview.OFF)
|
||||
var drawer by mutableStateOf<DrawerPreview?>(null)
|
||||
var steamHome by mutableStateOf(SteamHomePreview.OFF)
|
||||
var openSteam by mutableStateOf(false)
|
||||
/** The UI zoo sheet: where previews are picked, one at a time, only when asked for. */
|
||||
var zoo by mutableStateOf(false)
|
||||
/** Opt-in: a preview button where its state lives (the Library's toolbar), for switching states without the zoo. */
|
||||
@@ -92,41 +87,6 @@ internal fun sampleOwned(store: Store): List<CatalogItem> =
|
||||
internal fun sampleInstalled(owned: Map<Store, List<CatalogItem>>): Set<String> =
|
||||
owned.values.flatMap { items -> items.take(SAMPLE_INSTALLED).map { it.key } }.toSet()
|
||||
|
||||
/** The Steam home's games while a developer previews it: this many invented titles, no art, nothing installed. */
|
||||
internal fun sampleSteamHomeGames(count: Int): List<com.droiddeck.launcher.frontend.Library.SteamGame> = listOf(
|
||||
"Portal 2", "Hades", "Celeste", "Stardew Valley", "Hollow Knight", "Balatro",
|
||||
"Dead Cells", "Terraria", "Vampire Survivors", "Slay the Spire", "Cuphead", "Inscryption",
|
||||
).take(count).mapIndexed { i, name ->
|
||||
com.droiddeck.launcher.frontend.Library.SteamGame(1000 + i, name, art = null, library = "steam", lastPlayed = 1_700_000_000_000L - i * 86_400_000L)
|
||||
}
|
||||
|
||||
/** The pill a previewed Steam home shows, so the fake state is never mistaken for the real one. */
|
||||
@Composable
|
||||
internal fun SteamHomePreviewPill(modifier: Modifier = Modifier) {
|
||||
val preview = DevPreview.steamHome
|
||||
if (preview == SteamHomePreview.OFF) return
|
||||
val colors = MaterialTheme.colorScheme
|
||||
val pal = LocalPalette.current
|
||||
val label = stringResource(
|
||||
when (preview) {
|
||||
SteamHomePreview.NONE -> R.string.dev_preview_steam_none
|
||||
SteamHomePreview.FEW -> R.string.dev_preview_steam_few
|
||||
else -> R.string.dev_preview_steam_many
|
||||
},
|
||||
)
|
||||
val end = stringResource(R.string.dev_preview_end)
|
||||
Row(
|
||||
verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(10.dp),
|
||||
modifier = modifier.background(colors.surface, CircleShape).border(1.dp, pal.signal, CircleShape)
|
||||
.clickable(role = Role.Button, onClickLabel = end) { DevPreview.steamHome = SteamHomePreview.OFF }
|
||||
.padding(start = 14.dp, end = 10.dp, top = 8.dp, bottom = 8.dp).testTag("dev-preview-steam-end"),
|
||||
) {
|
||||
Icon(Icons.Outlined.Visibility, null, tint = pal.signal, modifier = Modifier.size(18.dp))
|
||||
Text(stringResource(R.string.dev_preview_banner, label), fontSize = 13.sp, fontWeight = FontWeight.SemiBold, color = colors.onBackground)
|
||||
Icon(Icons.Filled.Close, end, tint = colors.onSurfaceVariant, modifier = Modifier.size(18.dp))
|
||||
}
|
||||
}
|
||||
|
||||
/** The pill a previewed Library shows, so the fake state is never mistaken for the real one. */
|
||||
@Composable
|
||||
internal fun LibraryPreviewPill(modifier: Modifier = Modifier) {
|
||||
@@ -255,17 +215,6 @@ internal fun UiZooSheet() {
|
||||
DrawerPreview.GAME to R.string.session_title_game,
|
||||
)) ActionRow(stringResource(label), null, show, onClick = { close(); DevPreview.drawer = mode }, modifier = Modifier.testTag("zoo-drawer-${mode.name.lowercase()}"))
|
||||
}
|
||||
SettingsGroup(stringResource(R.string.dev_preview_steam_home)) {
|
||||
for ((mode, label) in listOf(
|
||||
SteamHomePreview.NONE to R.string.dev_preview_steam_none,
|
||||
SteamHomePreview.FEW to R.string.dev_preview_steam_few,
|
||||
SteamHomePreview.MANY to R.string.dev_preview_steam_many,
|
||||
)) ActionRow(
|
||||
stringResource(label), null, show,
|
||||
onClick = { close(); DevPreview.steamHome = mode; DevPreview.openSteam = true },
|
||||
modifier = Modifier.testTag("zoo-steam-${mode.name.lowercase()}"),
|
||||
)
|
||||
}
|
||||
SettingsGroup(stringResource(R.string.dev_preview_library)) {
|
||||
for ((mode, label) in listOf(
|
||||
LibraryPreview.NOTHING_INSTALLED to R.string.dev_preview_library_nothing_installed,
|
||||
|
||||
@@ -210,7 +210,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),
|
||||
)
|
||||
|
||||
@@ -272,10 +272,7 @@ private fun Content(
|
||||
return
|
||||
}
|
||||
if (selected == "steam") {
|
||||
Box(modifier) {
|
||||
SteamHome(s, a, Modifier.fillMaxSize())
|
||||
SteamHomePreviewPill(Modifier.align(androidx.compose.ui.Alignment.BottomCenter).padding(bottom = 20.dp))
|
||||
}
|
||||
SteamHome(s, a, modifier)
|
||||
return
|
||||
}
|
||||
if (selected == "store") {
|
||||
|
||||
@@ -658,11 +658,6 @@ private fun FrontEndScreenBody(s: FrontEndState, a: FrontEndActions, page: (@Com
|
||||
LaunchedEffect(SetupTabs.openSection) {
|
||||
if (SetupTabs.openSection != null && (railSelection != "setup" || s.pageKey != null)) showRailPage("setup", true)
|
||||
}
|
||||
LaunchedEffect(DevPreview.openSteam) {
|
||||
if (!DevPreview.openSteam) return@LaunchedEffect
|
||||
DevPreview.openSteam = false
|
||||
showRailPage("steam", true)
|
||||
}
|
||||
LaunchedEffect(DevPreview.openLibrary) {
|
||||
if (!DevPreview.openLibrary) return@LaunchedEffect
|
||||
DevPreview.openLibrary = false
|
||||
|
||||
@@ -983,38 +983,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.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) {
|
||||
@@ -1046,37 +1014,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)) {
|
||||
@@ -1093,36 +1030,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 ->
|
||||
|
||||
@@ -96,7 +96,6 @@ import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.unit.sp
|
||||
import coil.compose.AsyncImage
|
||||
import com.droiddeck.launcher.R
|
||||
import com.droiddeck.launcher.frontend.AddedGameEdits
|
||||
import com.droiddeck.launcher.frontend.GameRemoval
|
||||
import com.droiddeck.launcher.frontend.Library
|
||||
import com.droiddeck.launcher.runtime.CurseForgeApp
|
||||
@@ -105,7 +104,6 @@ import com.droiddeck.launcher.runtime.WowAddonCatalog
|
||||
import com.droiddeck.launcher.runtime.WowAddons
|
||||
import com.droiddeck.launcher.store.UserAppsState
|
||||
import com.droiddeck.launcher.session.GameSaves
|
||||
import com.droiddeck.launcher.session.SessionPrefs
|
||||
import com.droiddeck.launcher.session.SessionState
|
||||
import com.droiddeck.launcher.stores.CatalogItem
|
||||
import com.droiddeck.launcher.stores.CloudSaves
|
||||
@@ -1003,25 +1001,6 @@ private fun LaunchTab(game: Library.SteamGame, s: FrontEndState, a: FrontEndActi
|
||||
}
|
||||
val folder = game.gameFiles
|
||||
if (game.library == Library.ADDED && game.source == Library.ADDED && !s.shortcutPicker && folder != null) ShortcutFields(game, folder)
|
||||
if (game.library == Library.ADDED && Store.byId(game.source) == Store.EA && folder != null) StoreLaunchOptions(folder, a)
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun StoreLaunchOptions(folder: File, a: FrontEndActions) {
|
||||
val app = LocalContext.current.applicationContext
|
||||
val scope = rememberCoroutineScope()
|
||||
var saved by remember(folder.path) { mutableStateOf(SessionPrefs.addedGameLaunch(app, folder.path)) }
|
||||
var editing by remember(folder.path) { mutableStateOf(false) }
|
||||
Column(Modifier.fillMaxWidth().tabPanel()) {
|
||||
MenuItem(stringResource(R.string.edit_launch_options), checked = false, detail = saved.ifEmpty { "—" }) { editing = true }
|
||||
}
|
||||
if (editing) TextEntryDialog(stringResource(R.string.edit_launch_options), saved, onDismiss = { editing = false }) { value ->
|
||||
scope.launch {
|
||||
withContext(Dispatchers.IO) { AddedGameEdits.setLaunchOptions(app, folder.path, value) }
|
||||
saved = value
|
||||
a.onAddedGamesChanged(listOf(folder.path))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -195,10 +195,6 @@ internal fun librarySources(
|
||||
}
|
||||
}
|
||||
|
||||
internal fun alwaysLibraryTabs(signedIn: Collection<Store>, stores: Boolean, soundMode: Boolean): Set<String> =
|
||||
(if (soundMode) emptyList() else signedIn.map { it.librarySource }).toSet() +
|
||||
listOfNotNull(Library.ADDED.takeIf { stores }, Store.BATTLENET.id.takeIf { stores })
|
||||
|
||||
internal object LibraryDisplay {
|
||||
const val DEFAULT_LEVEL = 2
|
||||
val scales = listOf(0.75f, 0.875f, 1f, 1.2f, 1.45f)
|
||||
@@ -378,7 +374,7 @@ internal fun LibraryPage(s: FrontEndState, a: FrontEndActions, selected: String,
|
||||
.map { it.store.id }.toSet()
|
||||
val sources = librarySources(
|
||||
all, storeTabs.map { it.store.id },
|
||||
alwaysLibraryTabs(owned.keys, stores, soundMode) + signInChips,
|
||||
listOfNotNull(Store.ITCH.id.takeIf { itchSignedIn && !soundMode }, Store.GAMEJOLT.id.takeIf { gameJoltSignedIn && !soundMode }, Library.ADDED.takeIf { stores }, Store.BATTLENET.id.takeIf { stores }).toSet() + signInChips,
|
||||
favorites, concealed,
|
||||
offStores = if (soundMode) emptySet() else storeTabs.filterNot { it.shown }.map { it.store.id }.toSet(),
|
||||
places = if (soundMode) DEFAULT_LIBRARY_PLACES else StoreTabsState.libraryPlaces,
|
||||
|
||||
@@ -3,8 +3,6 @@ package com.droiddeck.launcher.ui
|
||||
import androidx.compose.foundation.shape.CircleShape
|
||||
import com.droiddeck.launcher.R
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import com.droiddeck.launcher.session.SessionPrefs
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.foundation.layout.Spacer
|
||||
@@ -24,7 +22,7 @@ fun RomsDialog(path: String?, onChoose: () -> Unit, onClear: () -> Unit, onDismi
|
||||
text = {
|
||||
Column {
|
||||
Text(
|
||||
stringResource(if (SessionPrefs.mountSharedStorage(LocalContext.current)) R.string.roms_text else R.string.roms_text_unmounted),
|
||||
stringResource(R.string.roms_text),
|
||||
style = MaterialTheme.typography.bodyMedium,
|
||||
)
|
||||
Spacer(Modifier.height(10.dp))
|
||||
|
||||
@@ -937,7 +937,6 @@ internal fun SessionDrawer(open: Boolean, requestedPage: SessionDrawerPage, cont
|
||||
Text(stringResource(R.string.fex_next_launch), fontSize = 12.sp,
|
||||
color = colors.onSurfaceVariant, modifier = Modifier.padding(horizontal = 14.dp, vertical = 8.dp))
|
||||
TextureFilteringGroup(host, a) { key -> focus.track(page, key) }
|
||||
if (a.steam || a.direct) DrawerUpscalerGroup(host, a) { key -> focus.track(page, key) }
|
||||
if (a.steam || a.direct) SettingsGroup(stringResource(R.string.game_settings_title)) {
|
||||
DrawerFexPresetRow(host, a, focus.track(page, "fex"))
|
||||
DrawerNoSteamRow(host, a, focus.track(page, "no-steam"))
|
||||
@@ -1653,51 +1652,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.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
|
||||
|
||||
@@ -92,7 +92,6 @@ internal object SettingsIndex {
|
||||
|
||||
s(SettingsSection.CONTROLLER, R.string.setup_tab_controller, "gamepad", "buttons", "mapping", "profile", "remap"),
|
||||
SettingsEntry(SettingsPlace.TAB, R.string.rail_storage, tab = "storage", words = listOf("sd card", "space", "uninstall", "disk")),
|
||||
SettingsEntry(SettingsPlace.TAB, R.string.storage_shared_mount, tab = "storage", words = listOf("sdcard", "mount", "privacy", "files")),
|
||||
SettingsEntry(SettingsPlace.TAB, R.string.rail_sync, tab = "sync", words = listOf("syncthing", "saves")),
|
||||
SettingsEntry(SettingsPlace.TAB, R.string.rail_decky, tab = "decky", words = listOf("plugins", "plugin store", "homebrew", "loader")),
|
||||
SettingsEntry(SettingsPlace.TAB, R.string.rail_boot_movies, tab = "boot-movies", words = listOf("startup movie", "boot video", "animation", "steamdeckrepo")),
|
||||
|
||||
@@ -113,8 +113,7 @@ internal fun SteamHome(s: FrontEndState, a: FrontEndActions, modifier: Modifier)
|
||||
}
|
||||
val owned = remember(ownedAll, concealed) { ownedAll.filter { it.first.toLong() !in concealed } }
|
||||
val featured = remember(featuredAll, concealed) { featuredAll.filter { it.appId.toLong() !in concealed } }
|
||||
val previewing = DevPreview.steamHome
|
||||
val games = remember(s.steamGames, previewing, LibraryHidden.keys, LibraryHidden.steam) { (if (previewing == SteamHomePreview.OFF) s.steamGames else sampleSteamHomeGames(previewing.games)).filterNot { LibraryHidden.isHidden(hideKey(it), it) }.sortedWith(compareByDescending<Library.SteamGame> { it.lastPlayed }.thenBy { it.gameId }) }
|
||||
val games = remember(s.steamGames, LibraryHidden.keys, LibraryHidden.steam) { s.steamGames.filterNot { LibraryHidden.isHidden(hideKey(it), it) }.sortedWith(compareByDescending<Library.SteamGame> { it.lastPlayed }.thenBy { it.gameId }) }
|
||||
val narrow = LocalNarrowPane.current
|
||||
var words by remember { mutableStateOf<Rect?>(null) }
|
||||
val mode = com.droiddeck.launcher.session.SessionService.MODE_STEAM
|
||||
@@ -164,12 +163,12 @@ internal fun SteamHome(s: FrontEndState, a: FrontEndActions, modifier: Modifier)
|
||||
games.isEmpty() -> EmptyLibrary(
|
||||
avoid = words,
|
||||
wall = if (owned.isEmpty() && featured.isEmpty()) null else { { CapsuleWall(emptyList(), owned = owned, featured = featured) } },
|
||||
) { Box(Modifier.fillMaxSize().graphicsLayer { scaleX = 1.06f; scaleY = 1.06f }) { WallFade(bottomWhenTall = true) } }
|
||||
) { Box(Modifier.fillMaxSize().graphicsLayer { scaleX = 1.06f; scaleY = 1.06f }) { WallFade() } }
|
||||
games.size < WALL_MIN_GAMES -> CapsuleFan(games)
|
||||
else -> CapsuleWall(games, owned = owned, featured = featured)
|
||||
}
|
||||
},
|
||||
scrim = { if (games.size >= WALL_MIN_GAMES) WallFade(bottomWhenTall = true) },
|
||||
scrim = { if (games.size >= WALL_MIN_GAMES) WallFade() },
|
||||
words = {
|
||||
val onboardingActive by com.droiddeck.launcher.session.Onboarding.active.collectAsState()
|
||||
val onboardingFailed by com.droiddeck.launcher.session.Onboarding.failed.collectAsState()
|
||||
@@ -233,35 +232,19 @@ internal fun Modifier.overhang(by: androidx.compose.ui.unit.Dp = 4.dp): Modifier
|
||||
}
|
||||
|
||||
@Composable
|
||||
internal fun WallFade(modifier: Modifier = Modifier.fillMaxSize().overhang(), bottomWhenTall: Boolean = false) {
|
||||
internal fun WallFade(modifier: Modifier = Modifier.fillMaxSize().overhang()) {
|
||||
val colors = MaterialTheme.colorScheme
|
||||
BoxWithConstraints(modifier) {
|
||||
if (bottomWhenTall && maxHeight > maxWidth) {
|
||||
// The words sit at the bottom of a tall page, so the art stays clear above them and darkens only behind them.
|
||||
Box(
|
||||
Modifier.fillMaxSize().background(
|
||||
Brush.verticalGradient(
|
||||
0f to colors.background.copy(alpha = 0.12f),
|
||||
0.5f to colors.background.copy(alpha = 0.18f),
|
||||
0.72f to colors.background.copy(alpha = 0.72f),
|
||||
1f to colors.background.copy(alpha = 0.94f),
|
||||
),
|
||||
),
|
||||
)
|
||||
} else {
|
||||
Box(
|
||||
Modifier.fillMaxSize().background(
|
||||
Brush.horizontalGradient(
|
||||
0f to colors.background.copy(alpha = 0.86f),
|
||||
0.34f to colors.background.copy(alpha = 0.6f),
|
||||
0.68f to colors.background.copy(alpha = 0.14f),
|
||||
1f to colors.background.copy(alpha = 0.04f),
|
||||
),
|
||||
),
|
||||
)
|
||||
Box(Modifier.fillMaxSize().background(Brush.verticalGradient(0.6f to Color.Transparent, 1f to colors.background.copy(alpha = 0.75f))))
|
||||
}
|
||||
}
|
||||
Box(
|
||||
modifier.background(
|
||||
Brush.horizontalGradient(
|
||||
0f to colors.background.copy(alpha = 0.86f),
|
||||
0.34f to colors.background.copy(alpha = 0.6f),
|
||||
0.68f to colors.background.copy(alpha = 0.14f),
|
||||
1f to colors.background.copy(alpha = 0.04f),
|
||||
),
|
||||
),
|
||||
)
|
||||
Box(modifier.background(Brush.verticalGradient(0.6f to Color.Transparent, 1f to colors.background.copy(alpha = 0.75f))))
|
||||
}
|
||||
|
||||
@Composable
|
||||
@@ -404,45 +387,31 @@ private fun CapsuleFan(games: List<Library.SteamGame>) {
|
||||
transition.animateFloat(0f, 1f, infiniteRepeatable(tween(ms, easing = FastOutSlowInEasing), RepeatMode.Reverse), label = "float")
|
||||
}
|
||||
val still = Motion.scale == 0f
|
||||
val landscape = listOf(
|
||||
val slots = listOf(
|
||||
FanSlot(0.54f, 0.14f, 0.62f, -9f),
|
||||
FanSlot(0.70f, 0.24f, 0.56f, 5f),
|
||||
FanSlot(0.40f, 0.30f, 0.50f, -17f),
|
||||
)
|
||||
// A tall page sizes the cards from its width, so they fit any aspect; heights are fractions of the width.
|
||||
val portrait = listOf(
|
||||
FanSlot(0.27f, 0.11f, 0.70f, -9f),
|
||||
FanSlot(0.55f, 0.19f, 0.64f, 5f),
|
||||
FanSlot(0.04f, 0.26f, 0.56f, -17f),
|
||||
)
|
||||
BoxWithConstraints(
|
||||
Modifier.fillMaxSize().drawBehind {
|
||||
drawRect(
|
||||
Brush.radialGradient(
|
||||
listOf(pal.signal.copy(alpha = 0.14f), Color.Transparent),
|
||||
center = if (size.height > size.width) Offset(size.width * 0.55f, size.height * 0.28f) else Offset(size.width * 0.68f, size.height * 0.45f),
|
||||
radius = if (size.height > size.width) size.width * 0.9f else size.height * 0.6f,
|
||||
center = Offset(size.width * 0.68f, size.height * 0.45f), radius = size.height * 0.6f,
|
||||
),
|
||||
)
|
||||
},
|
||||
) {
|
||||
val radius = with(density) { 14.dp.toPx() }
|
||||
val tall = maxHeight > maxWidth
|
||||
val slots = if (tall) portrait else landscape
|
||||
for (i in games.indices.reversed()) {
|
||||
val slot = slots[i]
|
||||
val h = if (tall) maxWidth * slot.height else maxHeight * slot.height
|
||||
val x = if (tall) {
|
||||
// The lean and the float swing the corners out by about h/2 * sin(angle).
|
||||
val swing = h * kotlin.math.sin(Math.toRadians(kotlin.math.abs(slot.lean) + 2.0)).toFloat() / 2f
|
||||
(maxWidth * slot.x).coerceIn(swing, (maxWidth - h * 2f / 3f - swing).coerceAtLeast(swing))
|
||||
} else maxWidth * slot.x
|
||||
val h = maxHeight * slot.height
|
||||
val v: State<Float> = floats[i]
|
||||
val look = WallCapsule(artBrush(hueOf(games[i].name)), games[i].art)
|
||||
val art = look.art?.let { rememberCapsuleArt(it, with(density) { Size((h * 2f / 3f).toPx(), h.toPx()) }, radius) }
|
||||
Spacer(
|
||||
Modifier
|
||||
.offset(x = x, y = maxHeight * slot.y)
|
||||
.offset(x = maxWidth * slot.x, y = maxHeight * slot.y)
|
||||
.size(h * 2f / 3f, h)
|
||||
.graphicsLayer {
|
||||
val t = if (still) 0f else v.value
|
||||
|
||||
@@ -168,20 +168,6 @@ internal fun StoragePanel(s: FrontEndState, a: FrontEndActions) {
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun SharedStorageGroup() {
|
||||
val ctx = LocalContext.current
|
||||
var on by remember { mutableStateOf(SessionPrefs.mountSharedStorage(ctx)) }
|
||||
SettingsGroup(stringResource(R.string.setup_runtime)) {
|
||||
SettingsRow(stringResource(R.string.storage_shared_mount), stringResource(R.string.storage_shared_mount_hint)) {
|
||||
ToggleSwitch(on, label = stringResource(R.string.storage_shared_mount), modifier = Modifier.testTag("setting-shared-storage")) {
|
||||
SessionPrefs.setMountSharedStorage(ctx, it)
|
||||
on = it
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun DefaultStorageGroup() {
|
||||
val ctx = LocalContext.current
|
||||
@@ -361,7 +347,6 @@ private fun OverviewContent(report: StorageSummary, sessionRunning: Boolean, wid
|
||||
Note(stringResource(R.string.storage_session_running))
|
||||
}
|
||||
DefaultStorageGroup()
|
||||
SharedStorageGroup()
|
||||
SectionTitle(stringResource(R.string.storage_where), null)
|
||||
val unused = report.unusedTools
|
||||
val tiles = listOf<@Composable (Modifier) -> Unit>(
|
||||
|
||||
@@ -1492,7 +1492,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">استئناف %1$s</string>
|
||||
<string name="roms_text">يظهر باسم /root/ROMs في كل جلسة. مساحة التخزين الداخلية متاحة في /root/Storage.</string>
|
||||
<string name="roms_text_unmounted">يظهر باسم /root/ROMs في كل جلسة.</string>
|
||||
<string name="roms_none">لم يتم اختيار مجلد</string>
|
||||
<string name="roms_applies">يُطبَّق في الجلسة التالية. بطاقات SD مدعومة.</string>
|
||||
<string name="roms_choose">اختيار مجلد</string>
|
||||
@@ -3340,8 +3339,6 @@
|
||||
<string name="storage_default_group">موقع التثبيت</string>
|
||||
<string name="storage_default_title">التخزين الافتراضي</string>
|
||||
<string name="storage_default_hint">تُثبَّت ألعاب المتاجر الجديدة في الموقع المحدد. تبقى الألعاب الحالية في مكانها. تحتفظ مكتبات Steam بإعدادها الخاص.</string>
|
||||
<string name="storage_shared_mount">مساحة تخزين الهاتف في Linux</string>
|
||||
<string name="storage_shared_mount_hint">يربط مساحة التخزين الداخلية لهاتفك في /root/Storage. عند إيقافه، تُربط فقط مجلدات الألعاب التي أضفتها منها. لا تتأثر بطاقات SD. يُطبَّق في الجلسة التالية.</string>
|
||||
<string name="storage_default_ask">السؤال في كل مرة</string>
|
||||
<string name="storage_default_ask_detail">اختر وجهة لكل تثبيت</string>
|
||||
<string name="storage_default_internal">مساحة التخزين الداخلية</string>
|
||||
|
||||
@@ -1538,7 +1538,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">Reanudar %1$s</string>
|
||||
<string name="roms_text">Aparece como /root/ROMs en cada sesión. El almacenamiento interno está en /root/Storage.</string>
|
||||
<string name="roms_text_unmounted">Aparece como /root/ROMs en cada sesión.</string>
|
||||
<string name="roms_none">Ninguna carpeta elegida</string>
|
||||
<string name="roms_applies">Se aplica en la próxima sesión. Las tarjetas SD funcionan.</string>
|
||||
<string name="roms_choose">Elegir carpeta</string>
|
||||
@@ -3216,8 +3215,6 @@
|
||||
<string name="storage_default_group">Ubicación de instalación</string>
|
||||
<string name="storage_default_title">Almacenamiento predeterminado</string>
|
||||
<string name="storage_default_hint">Las nuevas instalaciones de las tiendas van a la ubicación seleccionada. Los juegos existentes se quedan donde están. Las bibliotecas de Steam conservan su propio ajuste.</string>
|
||||
<string name="storage_shared_mount">Almacenamiento del teléfono en Linux</string>
|
||||
<string name="storage_shared_mount_hint">Monta el almacenamiento interno de tu teléfono en /root/Storage. Si está desactivado, solo se montan las carpetas de juegos que agregaste desde ahí. No afecta a las tarjetas SD. Se aplica en la próxima sesión.</string>
|
||||
<string name="storage_default_ask">Preguntar siempre</string>
|
||||
<string name="storage_default_ask_detail">Elige un destino para cada instalación</string>
|
||||
<string name="storage_default_internal">Almacenamiento interno</string>
|
||||
|
||||
@@ -1460,7 +1460,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">Продължаване на %1$s</string>
|
||||
<string name="roms_text">Показва се като /root/ROMs във всяка сесия. Вътрешната памет е на /root/Storage.</string>
|
||||
<string name="roms_text_unmounted">Показва се като /root/ROMs във всяка сесия.</string>
|
||||
<string name="roms_none">Няма избрана папка</string>
|
||||
<string name="roms_applies">Прилага се от следващата сесия. SD картите работят.</string>
|
||||
<string name="roms_choose">Избор на папка</string>
|
||||
@@ -3220,8 +3219,6 @@
|
||||
<string name="storage_default_group">Място за инсталиране</string>
|
||||
<string name="storage_default_title">Хранилище по подразбиране</string>
|
||||
<string name="storage_default_hint">Новите инсталации от магазини отиват в избраното място. Съществуващите игри остават, където са. Библиотеките на Steam запазват собствената си настройка.</string>
|
||||
<string name="storage_shared_mount">Хранилище на телефона в Linux</string>
|
||||
<string name="storage_shared_mount_hint">Монтира вътрешната памет на телефона ви в /root/Storage. Когато е изключено, се монтират само папките с игри, които сте добавили от нея. SD картите не се засягат. Прилага се от следващата сесия.</string>
|
||||
<string name="storage_default_ask">Питане всеки път</string>
|
||||
<string name="storage_default_ask_detail">Избор на място за всяка инсталация</string>
|
||||
<string name="storage_default_internal">Вътрешна памет</string>
|
||||
|
||||
@@ -1476,7 +1476,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">Obnovit %1$s</string>
|
||||
<string name="roms_text">V každé relaci se zobrazí jako /root/ROMs. Vnitřní úložiště je v /root/Storage.</string>
|
||||
<string name="roms_text_unmounted">V každé relaci se zobrazí jako /root/ROMs.</string>
|
||||
<string name="roms_none">Nevybrána žádná složka</string>
|
||||
<string name="roms_applies">Použije se v další relaci. SD karty fungují.</string>
|
||||
<string name="roms_choose">Vybrat složku</string>
|
||||
@@ -3280,8 +3279,6 @@
|
||||
<string name="storage_default_group">Umístění instalace</string>
|
||||
<string name="storage_default_title">Výchozí úložiště</string>
|
||||
<string name="storage_default_hint">Nové instalace z obchodů půjdou do vybraného umístění. Stávající hry zůstanou, kde jsou. Knihovny Steamu mají vlastní nastavení.</string>
|
||||
<string name="storage_shared_mount">Úložiště telefonu v Linuxu</string>
|
||||
<string name="storage_shared_mount_hint">Připojí vnitřní úložiště telefonu do /root/Storage. Když je vypnuto, připojí se jen složky her, které jste z něj přidali. Karet SD se to netýká. Projeví se v příští relaci.</string>
|
||||
<string name="storage_default_ask">Vždy se zeptat</string>
|
||||
<string name="storage_default_ask_detail">Vybrat cíl u každé instalace</string>
|
||||
<string name="storage_default_internal">Interní úložiště</string>
|
||||
|
||||
@@ -1460,7 +1460,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">Genoptag %1$s</string>
|
||||
<string name="roms_text">Vises som /root/ROMs i hver session. Intern lagerplads er på /root/Storage.</string>
|
||||
<string name="roms_text_unmounted">Vises som /root/ROMs i hver session.</string>
|
||||
<string name="roms_none">Ingen mappe valgt</string>
|
||||
<string name="roms_applies">Gælder fra næste session. SD-kort fungerer.</string>
|
||||
<string name="roms_choose">Vælg mappe</string>
|
||||
@@ -3220,8 +3219,6 @@
|
||||
<string name="storage_default_group">Installationsplacering</string>
|
||||
<string name="storage_default_title">Standardlager</string>
|
||||
<string name="storage_default_hint">Nye butiksinstallationer går til den valgte placering. Eksisterende spil bliver, hvor de er. Steam-biblioteker har deres egen indstilling.</string>
|
||||
<string name="storage_shared_mount">Telefonens lager i Linux</string>
|
||||
<string name="storage_shared_mount_hint">Monterer telefonens interne lager på /root/Storage. Når det er slået fra, monteres kun de spilmapper, du har tilføjet derfra. SD-kort påvirkes ikke. Træder i kraft ved næste session.</string>
|
||||
<string name="storage_default_ask">Spørg hver gang</string>
|
||||
<string name="storage_default_ask_detail">Vælg en placering for hver installation</string>
|
||||
<string name="storage_default_internal">Internt lager</string>
|
||||
|
||||
@@ -1452,7 +1452,6 @@
|
||||
<string name="rail_percent">%1$d %%</string>
|
||||
<string name="rail_resume_named">%1$s fortsetzen</string>
|
||||
<string name="roms_text">Erscheint in jeder Sitzung als /root/ROMs. Der interne Speicher liegt unter /root/Storage.</string>
|
||||
<string name="roms_text_unmounted">Erscheint in jeder Sitzung als /root/ROMs.</string>
|
||||
<string name="roms_none">Kein Ordner ausgewählt</string>
|
||||
<string name="roms_applies">Gilt ab der nächsten Sitzung. SD-Karten funktionieren.</string>
|
||||
<string name="roms_choose">Ordner auswählen</string>
|
||||
@@ -3220,8 +3219,6 @@
|
||||
<string name="storage_default_group">Installationsort</string>
|
||||
<string name="storage_default_title">Standardspeicher</string>
|
||||
<string name="storage_default_hint">Neue Store-Installationen landen am ausgewählten Ort. Vorhandene Spiele bleiben, wo sie sind. Steam-Bibliotheken behalten ihre eigene Einstellung.</string>
|
||||
<string name="storage_shared_mount">Telefonspeicher in Linux</string>
|
||||
<string name="storage_shared_mount_hint">Bindet den internen Speicher deines Telefons unter /root/Storage ein. Wenn aus, werden nur Spielordner eingebunden, die du daraus hinzugefügt hast. SD-Karten sind nicht betroffen. Gilt ab der nächsten Sitzung.</string>
|
||||
<string name="storage_default_ask">Jedes Mal fragen</string>
|
||||
<string name="storage_default_ask_detail">Für jede Installation ein Ziel wählen</string>
|
||||
<string name="storage_default_internal">Interner Speicher</string>
|
||||
|
||||
@@ -1460,7 +1460,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">Συνέχιση %1$s</string>
|
||||
<string name="roms_text">Εμφανίζεται ως /root/ROMs σε κάθε συνεδρία. Ο εσωτερικός χώρος αποθήκευσης βρίσκεται στο /root/Storage.</string>
|
||||
<string name="roms_text_unmounted">Εμφανίζεται ως /root/ROMs σε κάθε συνεδρία.</string>
|
||||
<string name="roms_none">Δεν έχει επιλεγεί φάκελος</string>
|
||||
<string name="roms_applies">Ισχύει από την επόμενη συνεδρία. Οι κάρτες SD λειτουργούν.</string>
|
||||
<string name="roms_choose">Επιλογή φακέλου</string>
|
||||
@@ -3220,8 +3219,6 @@
|
||||
<string name="storage_default_group">Τοποθεσία εγκατάστασης</string>
|
||||
<string name="storage_default_title">Προεπιλεγμένος αποθηκευτικός χώρος</string>
|
||||
<string name="storage_default_hint">Οι νέες εγκαταστάσεις από καταστήματα πηγαίνουν στην επιλεγμένη τοποθεσία. Τα υπάρχοντα παιχνίδια μένουν όπου είναι. Οι βιβλιοθήκες Steam διατηρούν τη δική τους ρύθμιση.</string>
|
||||
<string name="storage_shared_mount">Αποθηκευτικός χώρος τηλεφώνου στο Linux</string>
|
||||
<string name="storage_shared_mount_hint">Προσαρτά τον εσωτερικό χώρο αποθήκευσης του τηλεφώνου σας στο /root/Storage. Όταν είναι απενεργοποιημένο, προσαρτώνται μόνο οι φάκελοι παιχνιδιών που προσθέσατε από αυτόν. Οι κάρτες SD δεν επηρεάζονται. Ισχύει από την επόμενη συνεδρία.</string>
|
||||
<string name="storage_default_ask">Ερώτηση κάθε φορά</string>
|
||||
<string name="storage_default_ask_detail">Επιλογή προορισμού για κάθε εγκατάσταση</string>
|
||||
<string name="storage_default_internal">Εσωτερικός αποθηκευτικός χώρος</string>
|
||||
|
||||
@@ -1468,7 +1468,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">Reanudar %1$s</string>
|
||||
<string name="roms_text">Aparece como /root/ROMs en cada sesión. El almacenamiento interno está en /root/Storage.</string>
|
||||
<string name="roms_text_unmounted">Aparece como /root/ROMs en cada sesión.</string>
|
||||
<string name="roms_none">Ninguna carpeta elegida</string>
|
||||
<string name="roms_applies">Se aplica en la próxima sesión. Las tarjetas SD funcionan.</string>
|
||||
<string name="roms_choose">Elegir carpeta</string>
|
||||
@@ -3250,8 +3249,6 @@
|
||||
<string name="storage_default_group">Ubicación de instalación</string>
|
||||
<string name="storage_default_title">Almacenamiento predeterminado</string>
|
||||
<string name="storage_default_hint">Las nuevas instalaciones de las tiendas van a la ubicación seleccionada. Los juegos existentes se quedan donde están. Las bibliotecas de Steam conservan su propio ajuste.</string>
|
||||
<string name="storage_shared_mount">Almacenamiento del teléfono en Linux</string>
|
||||
<string name="storage_shared_mount_hint">Monta el almacenamiento interno del teléfono en /root/Storage. Si está desactivado, solo se montan las carpetas de juegos que has añadido desde ahí. No afecta a las tarjetas SD. Se aplica en la próxima sesión.</string>
|
||||
<string name="storage_default_ask">Preguntar siempre</string>
|
||||
<string name="storage_default_ask_detail">Elige un destino para cada instalación</string>
|
||||
<string name="storage_default_internal">Almacenamiento interno</string>
|
||||
|
||||
@@ -1460,7 +1460,6 @@
|
||||
<string name="rail_percent">%1$d %%</string>
|
||||
<string name="rail_resume_named">Jatka: %1$s</string>
|
||||
<string name="roms_text">Näkyy sessiossa polussa /root/ROMs. Sisäinen tallennustila on /root/Storage.</string>
|
||||
<string name="roms_text_unmounted">Näkyy sessiossa polussa /root/ROMs.</string>
|
||||
<string name="roms_none">Kansiota ei valittu</string>
|
||||
<string name="roms_applies">Vaikuttaa seuraavaan istuntoon. SD-kortit toimivat.</string>
|
||||
<string name="roms_choose">Valitse kansio</string>
|
||||
@@ -3220,8 +3219,6 @@
|
||||
<string name="storage_default_group">Asennussijainti</string>
|
||||
<string name="storage_default_title">Oletustallennustila</string>
|
||||
<string name="storage_default_hint">Uudet kauppa-asennukset menevät valittuun sijaintiin. Nykyiset pelit pysyvät paikoillaan. Steam-kirjastoilla on oma asetuksensa.</string>
|
||||
<string name="storage_shared_mount">Puhelimen tallennustila Linuxissa</string>
|
||||
<string name="storage_shared_mount_hint">Liittää puhelimen sisäisen tallennustilan polkuun /root/Storage. Kun pois päältä, liitetään vain sieltä lisäämäsi pelikansiot. SD-kortit eivät muutu. Tulee voimaan seuraavassa istunnossa.</string>
|
||||
<string name="storage_default_ask">Kysy aina</string>
|
||||
<string name="storage_default_ask_detail">Valitse kohde jokaiselle asennukselle</string>
|
||||
<string name="storage_default_internal">Sisäinen tallennustila</string>
|
||||
|
||||
@@ -1467,7 +1467,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">Reprendre %1$s</string>
|
||||
<string name="roms_text">Affiché comme /root/ROMs dans chaque session. Le stockage interne se trouve dans /root/Storage.</string>
|
||||
<string name="roms_text_unmounted">Affiché comme /root/ROMs dans chaque session.</string>
|
||||
<string name="roms_none">Aucun dossier sélectionné</string>
|
||||
<string name="roms_applies">Prendra effet à la prochaine session. Prend en charge les cartes SD.</string>
|
||||
<string name="roms_choose">Choisir un dossier</string>
|
||||
@@ -3249,8 +3248,6 @@
|
||||
<string name="storage_default_group">Emplacement d\'installation</string>
|
||||
<string name="storage_default_title">Stockage par défaut</string>
|
||||
<string name="storage_default_hint">Les nouvelles installations depuis les boutiques vont à l\'emplacement sélectionné. Les jeux existants restent où ils sont. Les bibliothèques Steam gardent leur propre réglage.</string>
|
||||
<string name="storage_shared_mount">Stockage du téléphone dans Linux</string>
|
||||
<string name="storage_shared_mount_hint">Monte le stockage interne de votre téléphone dans /root/Storage. Désactivé, seuls les dossiers de jeux que vous y avez ajoutés sont montés. Les cartes SD ne sont pas concernées. S\'applique à la prochaine session.</string>
|
||||
<string name="storage_default_ask">Toujours demander</string>
|
||||
<string name="storage_default_ask_detail">Choisir une destination pour chaque installation</string>
|
||||
<string name="storage_default_internal">Stockage interne</string>
|
||||
|
||||
@@ -1460,7 +1460,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">%1$s फिर से शुरू करें</string>
|
||||
<string name="roms_text">हर सेशन में /root/ROMs के रूप में दिखता है। इंटरनल स्टोरेज /root/Storage पर है।</string>
|
||||
<string name="roms_text_unmounted">हर सेशन में /root/ROMs के रूप में दिखता है।</string>
|
||||
<string name="roms_none">कोई फ़ोल्डर नहीं चुना गया</string>
|
||||
<string name="roms_applies">अगले सेशन से लागू होता है। SD कार्ड काम करते हैं।</string>
|
||||
<string name="roms_choose">फ़ोल्डर चुनें</string>
|
||||
@@ -3220,8 +3219,6 @@
|
||||
<string name="storage_default_group">इंस्टॉल की जगह</string>
|
||||
<string name="storage_default_title">डिफ़ॉल्ट स्टोरेज</string>
|
||||
<string name="storage_default_hint">स्टोर से नए इंस्टॉल चुनी गई जगह पर जाते हैं। मौजूदा गेम जहां हैं वहीं रहते हैं। Steam लाइब्रेरी अपनी सेटिंग रखती हैं।</string>
|
||||
<string name="storage_shared_mount">Linux में फ़ोन स्टोरेज</string>
|
||||
<string name="storage_shared_mount_hint">आपके फ़ोन का इंटरनल स्टोरेज /root/Storage पर माउंट करता है। बंद होने पर केवल वही गेम फ़ोल्डर माउंट होते हैं जो आपने उसमें से जोड़े हैं। SD कार्ड पर असर नहीं पड़ता। अगले सत्र से लागू होता है।</string>
|
||||
<string name="storage_default_ask">हर बार पूछें</string>
|
||||
<string name="storage_default_ask_detail">हर इंस्टॉल के लिए जगह चुनें</string>
|
||||
<string name="storage_default_internal">इंटरनल स्टोरेज</string>
|
||||
|
||||
@@ -1460,7 +1460,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">%1$s folytatása</string>
|
||||
<string name="roms_text">Minden munkamenetben /root/ROMs néven jelenik meg. A belső tárhely itt található: /root/Storage.</string>
|
||||
<string name="roms_text_unmounted">Minden munkamenetben /root/ROMs néven jelenik meg.</string>
|
||||
<string name="roms_none">Nincs mappa kiválasztva</string>
|
||||
<string name="roms_applies">A következő munkamenettől érvényes. SD-kártyák is működnek.</string>
|
||||
<string name="roms_choose">Mappa kiválasztása</string>
|
||||
@@ -3220,8 +3219,6 @@
|
||||
<string name="storage_default_group">Telepítési hely</string>
|
||||
<string name="storage_default_title">Alapértelmezett tárhely</string>
|
||||
<string name="storage_default_hint">Az új áruházi telepítések a kiválasztott helyre kerülnek. A meglévő játékok a helyükön maradnak. A Steam-könyvtárak megtartják saját beállításukat.</string>
|
||||
<string name="storage_shared_mount">Telefontárhely a Linuxban</string>
|
||||
<string name="storage_shared_mount_hint">Csatolja a telefon belső tárhelyét a /root/Storage helyre. Kikapcsolva csak az onnan hozzáadott játékmappák lesznek csatolva. Az SD-kártyákat nem érinti. A következő munkamenettől érvényes.</string>
|
||||
<string name="storage_default_ask">Kérdezzen rá minden alkalommal</string>
|
||||
<string name="storage_default_ask_detail">Célhely választása minden telepítésnél</string>
|
||||
<string name="storage_default_internal">Belső tárhely</string>
|
||||
|
||||
@@ -1453,7 +1453,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">Lanjutkan %1$s</string>
|
||||
<string name="roms_text">Muncul sebagai /root/ROMs di setiap sesi. Penyimpanan internal berada di /root/Storage.</string>
|
||||
<string name="roms_text_unmounted">Muncul sebagai /root/ROMs di setiap sesi.</string>
|
||||
<string name="roms_none">Belum ada folder yang dipilih</string>
|
||||
<string name="roms_applies">Berlaku pada sesi berikutnya. Kartu SD juga bisa.</string>
|
||||
<string name="roms_choose">Pilih folder</string>
|
||||
@@ -3191,8 +3190,6 @@
|
||||
<string name="storage_default_group">Lokasi instalasi</string>
|
||||
<string name="storage_default_title">Penyimpanan default</string>
|
||||
<string name="storage_default_hint">Instalasi toko baru akan disimpan di lokasi yang dipilih. Game yang sudah ada tetap di lokasinya. Library Steam memakai pengaturannya sendiri.</string>
|
||||
<string name="storage_shared_mount">Penyimpanan ponsel di Linux</string>
|
||||
<string name="storage_shared_mount_hint">Memasang penyimpanan internal ponsel Anda di /root/Storage. Jika nonaktif, hanya folder game yang Anda tambahkan dari sana yang dipasang. Kartu SD tidak terpengaruh. Berlaku pada sesi berikutnya.</string>
|
||||
<string name="storage_default_ask">Tanyakan setiap kali</string>
|
||||
<string name="storage_default_ask_detail">Pilih target untuk setiap instalasi</string>
|
||||
<string name="storage_default_internal">Penyimpanan internal</string>
|
||||
|
||||
@@ -1459,7 +1459,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">Riprendi %1$s</string>
|
||||
<string name="roms_text">Appare come /root/ROMs in ogni sessione. La memoria interna si trova in /root/Storage.</string>
|
||||
<string name="roms_text_unmounted">Appare come /root/ROMs in ogni sessione.</string>
|
||||
<string name="roms_none">Nessuna cartella scelta</string>
|
||||
<string name="roms_applies">Si applica dalla prossima sessione. Le schede SD funzionano.</string>
|
||||
<string name="roms_choose">Scegli cartella</string>
|
||||
@@ -3249,8 +3248,6 @@
|
||||
<string name="storage_default_group">Posizione di installazione</string>
|
||||
<string name="storage_default_title">Archiviazione predefinita</string>
|
||||
<string name="storage_default_hint">Le nuove installazioni dai negozi vanno nella posizione selezionata. I giochi esistenti restano dove sono. Le librerie di Steam mantengono la propria impostazione.</string>
|
||||
<string name="storage_shared_mount">Memoria del telefono in Linux</string>
|
||||
<string name="storage_shared_mount_hint">Monta la memoria interna del telefono in /root/Storage. Se disattivato, vengono montate solo le cartelle dei giochi che hai aggiunto da lì. Le schede SD non sono interessate. Si applica dalla prossima sessione.</string>
|
||||
<string name="storage_default_ask">Chiedi ogni volta</string>
|
||||
<string name="storage_default_ask_detail">Scegli una destinazione per ogni installazione</string>
|
||||
<string name="storage_default_internal">Memoria interna</string>
|
||||
|
||||
@@ -1453,7 +1453,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">%1$sを再開</string>
|
||||
<string name="roms_text">各セッションで /root/ROMs として表示されます。内部ストレージは /root/Storage にあります。</string>
|
||||
<string name="roms_text_unmounted">各セッションで /root/ROMs として表示されます。</string>
|
||||
<string name="roms_none">フォルダが選択されていません</string>
|
||||
<string name="roms_applies">次回のセッションで有効になります。SDカードをサポートしています。</string>
|
||||
<string name="roms_choose">フォルダを選択</string>
|
||||
@@ -3191,8 +3190,6 @@
|
||||
<string name="storage_default_group">インストール先</string>
|
||||
<string name="storage_default_title">デフォルトのストレージ</string>
|
||||
<string name="storage_default_hint">ストアからの新しいインストールは選択した場所に保存されます。既存のゲームはそのままです。Steamライブラリは独自の設定を使用します。</string>
|
||||
<string name="storage_shared_mount">Linux でのスマホのストレージ</string>
|
||||
<string name="storage_shared_mount_hint">スマホの内部ストレージを /root/Storage にマウントします。オフにすると、そこから追加したゲームフォルダーだけがマウントされます。SD カードには影響しません。次のセッションから適用されます。</string>
|
||||
<string name="storage_default_ask">毎回確認する</string>
|
||||
<string name="storage_default_ask_detail">インストールごとに保存先を選択します</string>
|
||||
<string name="storage_default_internal">内部ストレージ</string>
|
||||
|
||||
@@ -1453,7 +1453,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">%1$s 재개</string>
|
||||
<string name="roms_text">각 세션에서 /root/ROMs로 표시됩니다. 내부 저장 공간은 /root/Storage에 있습니다.</string>
|
||||
<string name="roms_text_unmounted">각 세션에서 /root/ROMs로 표시됩니다.</string>
|
||||
<string name="roms_none">선택된 폴더 없음</string>
|
||||
<string name="roms_applies">다음 세션에 적용됩니다. SD 카드를 지원합니다.</string>
|
||||
<string name="roms_choose">폴더 선택</string>
|
||||
@@ -3191,8 +3190,6 @@
|
||||
<string name="storage_default_group">설치 위치</string>
|
||||
<string name="storage_default_title">기본 저장소</string>
|
||||
<string name="storage_default_hint">새 스토어 설치는 선택한 위치에 저장됩니다. 기존 게임은 그대로 유지됩니다. Steam 라이브러리는 자체 설정을 따릅니다.</string>
|
||||
<string name="storage_shared_mount">Linux에서 휴대폰 저장소</string>
|
||||
<string name="storage_shared_mount_hint">휴대폰 내부 저장소를 /root/Storage에 마운트합니다. 끄면 그곳에서 추가한 게임 폴더만 마운트됩니다. SD 카드에는 영향이 없습니다. 다음 세션부터 적용됩니다.</string>
|
||||
<string name="storage_default_ask">매번 묻기</string>
|
||||
<string name="storage_default_ask_detail">설치할 때마다 위치 선택</string>
|
||||
<string name="storage_default_internal">내부 저장소</string>
|
||||
|
||||
@@ -1453,7 +1453,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">Sambung %1$s</string>
|
||||
<string name="roms_text">Muncul sebagai /root/ROMs dalam setiap sesi. Storan dalaman berada di /root/Storage.</string>
|
||||
<string name="roms_text_unmounted">Muncul sebagai /root/ROMs dalam setiap sesi.</string>
|
||||
<string name="roms_none">Tiada folder dipilih</string>
|
||||
<string name="roms_applies">Berkuat kuasa pada sesi seterusnya. Kad SD berfungsi.</string>
|
||||
<string name="roms_choose">Pilih folder</string>
|
||||
@@ -3191,8 +3190,6 @@
|
||||
<string name="storage_default_group">Lokasi pemasangan</string>
|
||||
<string name="storage_default_title">Storan lalai</string>
|
||||
<string name="storage_default_hint">Pemasangan kedai baharu pergi ke lokasi yang dipilih. Permainan sedia ada kekal di tempatnya. Pustaka Steam mengekalkan tetapan sendiri.</string>
|
||||
<string name="storage_shared_mount">Storan telefon dalam Linux</string>
|
||||
<string name="storage_shared_mount_hint">Melekapkan storan dalaman telefon anda di /root/Storage. Apabila dimatikan, hanya folder permainan yang anda tambah dari situ dilekapkan. Kad SD tidak terjejas. Berkuat kuasa pada sesi seterusnya.</string>
|
||||
<string name="storage_default_ask">Tanya setiap kali</string>
|
||||
<string name="storage_default_ask_detail">Pilih destinasi bagi setiap pemasangan</string>
|
||||
<string name="storage_default_internal">Storan dalaman</string>
|
||||
|
||||
@@ -1460,7 +1460,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">Gjenoppta %1$s</string>
|
||||
<string name="roms_text">Vises som /root/ROMs i hver sesjon. Intern lagring er på /root/Storage.</string>
|
||||
<string name="roms_text_unmounted">Vises som /root/ROMs i hver sesjon.</string>
|
||||
<string name="roms_none">Ingen mappe valgt</string>
|
||||
<string name="roms_applies">Gjelder fra neste sesjon. SD-kort fungerer.</string>
|
||||
<string name="roms_choose">Velg mappe</string>
|
||||
@@ -3220,8 +3219,6 @@
|
||||
<string name="storage_default_group">Installasjonsplassering</string>
|
||||
<string name="storage_default_title">Standard lagring</string>
|
||||
<string name="storage_default_hint">Nye butikkinstallasjoner havner på valgt plassering. Eksisterende spill blir der de er. Steam-biblioteker beholder sin egen innstilling.</string>
|
||||
<string name="storage_shared_mount">Telefonlagring i Linux</string>
|
||||
<string name="storage_shared_mount_hint">Monterer telefonens interne lagring på /root/Storage. Når det er av, monteres bare spillmapper du har lagt til derfra. SD-kort påvirkes ikke. Gjelder fra neste økt.</string>
|
||||
<string name="storage_default_ask">Spør hver gang</string>
|
||||
<string name="storage_default_ask_detail">Velg et mål for hver installasjon</string>
|
||||
<string name="storage_default_internal">Intern lagring</string>
|
||||
|
||||
@@ -1460,7 +1460,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">%1$s hervatten</string>
|
||||
<string name="roms_text">Verschijnt in elke sessie als /root/ROMs. Interne opslag staat op /root/Storage.</string>
|
||||
<string name="roms_text_unmounted">Verschijnt in elke sessie als /root/ROMs.</string>
|
||||
<string name="roms_none">Geen map gekozen</string>
|
||||
<string name="roms_applies">Geldt vanaf de volgende sessie. SD-kaarten werken ook.</string>
|
||||
<string name="roms_choose">Map kiezen</string>
|
||||
@@ -3220,8 +3219,6 @@
|
||||
<string name="storage_default_group">Installatielocatie</string>
|
||||
<string name="storage_default_title">Standaardopslag</string>
|
||||
<string name="storage_default_hint">Nieuwe winkelinstallaties gaan naar de gekozen locatie. Bestaande games blijven waar ze zijn. Steam-bibliotheken houden hun eigen instelling.</string>
|
||||
<string name="storage_shared_mount">Telefoonopslag in Linux</string>
|
||||
<string name="storage_shared_mount_hint">Koppelt de interne opslag van je telefoon aan /root/Storage. Als dit uit staat, worden alleen gamemappen gekoppeld die je daaruit hebt toegevoegd. SD-kaarten veranderen niet. Geldt vanaf de volgende sessie.</string>
|
||||
<string name="storage_default_ask">Elke keer vragen</string>
|
||||
<string name="storage_default_ask_detail">Kies voor elke installatie een doel</string>
|
||||
<string name="storage_default_internal">Interne opslag</string>
|
||||
|
||||
@@ -1476,7 +1476,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">Wznów %1$s</string>
|
||||
<string name="roms_text">W każdej sesji widoczny jako /root/ROMs. Pamięć wewnętrzna jest w /root/Storage.</string>
|
||||
<string name="roms_text_unmounted">W każdej sesji widoczny jako /root/ROMs.</string>
|
||||
<string name="roms_none">Nie wybrano folderu</string>
|
||||
<string name="roms_applies">Zadziała od następnej sesji. Karty SD są obsługiwane.</string>
|
||||
<string name="roms_choose">Wybierz folder</string>
|
||||
@@ -3280,8 +3279,6 @@
|
||||
<string name="storage_default_group">Miejsce instalacji</string>
|
||||
<string name="storage_default_title">Domyślna pamięć</string>
|
||||
<string name="storage_default_hint">Nowe instalacje ze sklepów trafiają do wybranego miejsca. Istniejące gry zostają, gdzie są. Biblioteki Steam mają własne ustawienie.</string>
|
||||
<string name="storage_shared_mount">Pamięć telefonu w Linuksie</string>
|
||||
<string name="storage_shared_mount_hint">Montuje pamięć wewnętrzną telefonu w /root/Storage. Po wyłączeniu montowane są tylko dodane z niej foldery gier. Nie dotyczy kart SD. Działa od następnej sesji.</string>
|
||||
<string name="storage_default_ask">Pytaj za każdym razem</string>
|
||||
<string name="storage_default_ask_detail">Wybieraj miejsce przy każdej instalacji</string>
|
||||
<string name="storage_default_internal">Pamięć wewnętrzna</string>
|
||||
|
||||
@@ -1459,7 +1459,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">Retomar %1$s</string>
|
||||
<string name="roms_text">Aparece como /root/ROMs em cada sessão. O armazenamento interno está em /root/Storage.</string>
|
||||
<string name="roms_text_unmounted">Aparece como /root/ROMs em cada sessão.</string>
|
||||
<string name="roms_none">Nenhuma pasta escolhida</string>
|
||||
<string name="roms_applies">Aplica-se na próxima sessão. Funciona com cartões SD.</string>
|
||||
<string name="roms_choose">Escolher pasta</string>
|
||||
@@ -3264,8 +3263,6 @@
|
||||
<string name="storage_default_group">Local de instalação</string>
|
||||
<string name="storage_default_title">Armazenamento predefinido</string>
|
||||
<string name="storage_default_hint">As novas instalações das lojas vão para o local selecionado. Os jogos existentes ficam onde estão. As bibliotecas do Steam mantêm a sua própria definição.</string>
|
||||
<string name="storage_shared_mount">Armazenamento do telemóvel no Linux</string>
|
||||
<string name="storage_shared_mount_hint">Monta o armazenamento interno do telemóvel em /root/Storage. Desativado, só são montadas as pastas de jogos que adicionou a partir dele. Os cartões SD não são afetados. Aplica-se na próxima sessão.</string>
|
||||
<string name="storage_default_ask">Perguntar sempre</string>
|
||||
<string name="storage_default_ask_detail">Escolha um destino para cada instalação</string>
|
||||
<string name="storage_default_internal">Armazenamento interno</string>
|
||||
|
||||
@@ -1467,7 +1467,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">Retomar %1$s</string>
|
||||
<string name="roms_text">Aparece como /root/ROMs em cada sessão. O armazenamento interno fica em /root/Storage.</string>
|
||||
<string name="roms_text_unmounted">Aparece como /root/ROMs em cada sessão.</string>
|
||||
<string name="roms_none">Nenhuma pasta escolhida</string>
|
||||
<string name="roms_applies">Vale a partir da próxima sessão. Cartões SD funcionam.</string>
|
||||
<string name="roms_choose">Escolher pasta</string>
|
||||
@@ -3274,8 +3273,6 @@
|
||||
<string name="storage_default_group">Local de instalação</string>
|
||||
<string name="storage_default_title">Armazenamento padrão</string>
|
||||
<string name="storage_default_hint">Novas instalações das lojas vão para o local selecionado. Jogos existentes ficam onde estão. As bibliotecas da Steam mantêm a própria configuração.</string>
|
||||
<string name="storage_shared_mount">Armazenamento do celular no Linux</string>
|
||||
<string name="storage_shared_mount_hint">Monta o armazenamento interno do celular em /root/Storage. Desativado, só as pastas de jogos que você adicionou dele são montadas. Cartões SD não são afetados. Vale a partir da próxima sessão.</string>
|
||||
<string name="storage_default_ask">Perguntar sempre</string>
|
||||
<string name="storage_default_ask_detail">Escolha um destino para cada instalação</string>
|
||||
<string name="storage_default_internal">Armazenamento interno</string>
|
||||
|
||||
@@ -1468,7 +1468,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">Reluare %1$s</string>
|
||||
<string name="roms_text">Apare ca /root/ROMs în fiecare sesiune. Stocarea internă este la /root/Storage.</string>
|
||||
<string name="roms_text_unmounted">Apare ca /root/ROMs în fiecare sesiune.</string>
|
||||
<string name="roms_none">Niciun folder ales</string>
|
||||
<string name="roms_applies">Se aplică la sesiunea următoare. Cardurile SD funcționează.</string>
|
||||
<string name="roms_choose">Alege folderul</string>
|
||||
@@ -3250,8 +3249,6 @@
|
||||
<string name="storage_default_group">Locație de instalare</string>
|
||||
<string name="storage_default_title">Stocare implicită</string>
|
||||
<string name="storage_default_hint">Instalările noi din magazine merg în locația selectată. Jocurile existente rămân unde sunt. Bibliotecile Steam își păstrează propria setare.</string>
|
||||
<string name="storage_shared_mount">Stocarea telefonului în Linux</string>
|
||||
<string name="storage_shared_mount_hint">Montează stocarea internă a telefonului în /root/Storage. Când este dezactivat, se montează doar folderele de jocuri pe care le-ați adăugat de acolo. Cardurile SD nu sunt afectate. Se aplică din următoarea sesiune.</string>
|
||||
<string name="storage_default_ask">Întreabă de fiecare dată</string>
|
||||
<string name="storage_default_ask_detail">Alege o destinație pentru fiecare instalare</string>
|
||||
<string name="storage_default_internal">Stocare internă</string>
|
||||
|
||||
@@ -1476,7 +1476,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">Продолжить %1$s</string>
|
||||
<string name="roms_text">Отображается как /root/ROMs в каждой сессии. Внутреннее хранилище находится в /root/Storage.</string>
|
||||
<string name="roms_text_unmounted">Отображается как /root/ROMs в каждой сессии.</string>
|
||||
<string name="roms_none">Папка не выбрана</string>
|
||||
<string name="roms_applies">Вступит в силу в следующей сессии. Поддерживаются SD-карты.</string>
|
||||
<string name="roms_choose">Выбрать папку</string>
|
||||
@@ -3281,8 +3280,6 @@
|
||||
<string name="storage_default_group">Место установки</string>
|
||||
<string name="storage_default_title">Хранилище по умолчанию</string>
|
||||
<string name="storage_default_hint">Новые установки из магазинов попадают в выбранное место. Установленные игры остаются на месте. У библиотек Steam своя настройка.</string>
|
||||
<string name="storage_shared_mount">Память телефона в Linux</string>
|
||||
<string name="storage_shared_mount_hint">Подключает внутреннюю память телефона в /root/Storage. Если выключено, подключаются только добавленные из неё папки с играми. На SD-карты не влияет. Применяется со следующего сеанса.</string>
|
||||
<string name="storage_default_ask">Спрашивать каждый раз</string>
|
||||
<string name="storage_default_ask_detail">Выбирать место для каждой установки</string>
|
||||
<string name="storage_default_internal">Внутреннее хранилище</string>
|
||||
|
||||
@@ -1460,7 +1460,6 @@
|
||||
<string name="rail_percent">%1$d %%</string>
|
||||
<string name="rail_resume_named">Återuppta %1$s</string>
|
||||
<string name="roms_text">Visas som /root/ROMs i varje session. Det interna lagringsutrymmet finns på /root/Storage.</string>
|
||||
<string name="roms_text_unmounted">Visas som /root/ROMs i varje session.</string>
|
||||
<string name="roms_none">Ingen mapp vald</string>
|
||||
<string name="roms_applies">Gäller från nästa session. SD-kort fungerar.</string>
|
||||
<string name="roms_choose">Välj mapp</string>
|
||||
@@ -3220,8 +3219,6 @@
|
||||
<string name="storage_default_group">Installationsplats</string>
|
||||
<string name="storage_default_title">Standardlagring</string>
|
||||
<string name="storage_default_hint">Nya butiksinstallationer hamnar på den valda platsen. Befintliga spel stannar där de är. Steam-bibliotek har sin egen inställning.</string>
|
||||
<string name="storage_shared_mount">Telefonens lagring i Linux</string>
|
||||
<string name="storage_shared_mount_hint">Monterar telefonens interna lagring på /root/Storage. När det är av monteras bara spelmappar du har lagt till därifrån. SD-kort påverkas inte. Gäller från nästa session.</string>
|
||||
<string name="storage_default_ask">Fråga varje gång</string>
|
||||
<string name="storage_default_ask_detail">Välj mål för varje installation</string>
|
||||
<string name="storage_default_internal">Intern lagring</string>
|
||||
|
||||
@@ -1453,7 +1453,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">ดำเนินการต่อ %1$s</string>
|
||||
<string name="roms_text">แสดงเป็น /root/ROMs ในแต่ละเซสชัน พื้นที่จัดเก็บภายในอยู่ที่ /root/Storage</string>
|
||||
<string name="roms_text_unmounted">แสดงเป็น /root/ROMs ในแต่ละเซสชัน</string>
|
||||
<string name="roms_none">ยังไม่เลือกโฟลเดอร์</string>
|
||||
<string name="roms_applies">มีผลในเซสชันถัดไป ใช้การ์ด SD ได้</string>
|
||||
<string name="roms_choose">เลือกโฟลเดอร์</string>
|
||||
@@ -3191,8 +3190,6 @@
|
||||
<string name="storage_default_group">ตำแหน่งติดตั้ง</string>
|
||||
<string name="storage_default_title">พื้นที่จัดเก็บเริ่มต้น</string>
|
||||
<string name="storage_default_hint">การติดตั้งใหม่จากสโตร์จะไปยังตำแหน่งที่เลือก เกมที่มีอยู่จะอยู่ที่เดิม ไลบรารี Steam ใช้การตั้งค่าของตัวเอง</string>
|
||||
<string name="storage_shared_mount">ที่เก็บข้อมูลโทรศัพท์ใน Linux</string>
|
||||
<string name="storage_shared_mount_hint">เมานต์ที่เก็บข้อมูลภายในของโทรศัพท์ไว้ที่ /root/Storage เมื่อปิด จะเมานต์เฉพาะโฟลเดอร์เกมที่คุณเพิ่มจากที่นั่น ไม่มีผลกับการ์ด SD มีผลในเซสชันถัดไป</string>
|
||||
<string name="storage_default_ask">ถามทุกครั้ง</string>
|
||||
<string name="storage_default_ask_detail">เลือกปลายทางสำหรับการติดตั้งแต่ละครั้ง</string>
|
||||
<string name="storage_default_internal">พื้นที่จัดเก็บภายใน</string>
|
||||
|
||||
@@ -1452,7 +1452,6 @@
|
||||
<string name="rail_percent">%%%1$d</string>
|
||||
<string name="rail_resume_named">Devam et: %1$s</string>
|
||||
<string name="roms_text">Her oturumda /root/ROMs olarak görünür. Dahili depolama /root/Storage konumundadır.</string>
|
||||
<string name="roms_text_unmounted">Her oturumda /root/ROMs olarak görünür.</string>
|
||||
<string name="roms_none">Klasör seçilmedi</string>
|
||||
<string name="roms_applies">Sonraki oturumda uygulanır. SD kartlar da çalışır.</string>
|
||||
<string name="roms_choose">Klasör seç</string>
|
||||
@@ -3220,8 +3219,6 @@
|
||||
<string name="storage_default_group">Yükleme konumu</string>
|
||||
<string name="storage_default_title">Varsayılan depolama</string>
|
||||
<string name="storage_default_hint">Yeni mağaza yüklemeleri seçilen konuma gider. Mevcut oyunlar yerinde kalır. Steam kütüphaneleri kendi ayarlarını korur.</string>
|
||||
<string name="storage_shared_mount">Linux\'ta telefon depolaması</string>
|
||||
<string name="storage_shared_mount_hint">Telefonunuzun dahili depolamasını /root/Storage konumuna bağlar. Kapalıyken yalnızca oradan eklediğiniz oyun klasörleri bağlanır. SD kartlar etkilenmez. Sonraki oturumda uygulanır.</string>
|
||||
<string name="storage_default_ask">Her seferinde sor</string>
|
||||
<string name="storage_default_ask_detail">Her yükleme için bir hedef seçin</string>
|
||||
<string name="storage_default_internal">Dahili depolama</string>
|
||||
|
||||
@@ -1476,7 +1476,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">Продовжити %1$s</string>
|
||||
<string name="roms_text">У кожному сеансі з’являється як /root/ROMs. Внутрішня пам’ять доступна в /root/Storage.</string>
|
||||
<string name="roms_text_unmounted">У кожному сеансі з’являється як /root/ROMs.</string>
|
||||
<string name="roms_none">Папку не вибрано</string>
|
||||
<string name="roms_applies">Діє з наступного сеансу. SD-карти підтримуються.</string>
|
||||
<string name="roms_choose">Вибрати папку</string>
|
||||
@@ -3280,8 +3279,6 @@
|
||||
<string name="storage_default_group">Місце встановлення</string>
|
||||
<string name="storage_default_title">Сховище за замовчуванням</string>
|
||||
<string name="storage_default_hint">Нові встановлення з магазинів потрапляють у вибране місце. Наявні ігри залишаються на місці. Бібліотеки Steam мають власне налаштування.</string>
|
||||
<string name="storage_shared_mount">Пам\'ять телефона в Linux</string>
|
||||
<string name="storage_shared_mount_hint">Підключає внутрішню пам\'ять телефона в /root/Storage. Якщо вимкнено, підключаються лише додані з неї папки з іграми. На SD-картки не впливає. Застосовується з наступного сеансу.</string>
|
||||
<string name="storage_default_ask">Питати щоразу</string>
|
||||
<string name="storage_default_ask_detail">Вибирати місце для кожного встановлення</string>
|
||||
<string name="storage_default_internal">Внутрішнє сховище</string>
|
||||
|
||||
@@ -1453,7 +1453,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">Tiếp tục %1$s</string>
|
||||
<string name="roms_text">Hiển thị như /root/ROMs trong mỗi phiên. Bộ nhớ trong ở /root/Storage.</string>
|
||||
<string name="roms_text_unmounted">Hiển thị như /root/ROMs trong mỗi phiên.</string>
|
||||
<string name="roms_none">Chưa chọn thư mục</string>
|
||||
<string name="roms_applies">Áp dụng từ phiên sau. Thẻ SD hoạt động được.</string>
|
||||
<string name="roms_choose">Chọn thư mục</string>
|
||||
@@ -3191,8 +3190,6 @@
|
||||
<string name="storage_default_group">Vị trí cài đặt</string>
|
||||
<string name="storage_default_title">Bộ nhớ mặc định</string>
|
||||
<string name="storage_default_hint">Các bản cài mới từ cửa hàng sẽ vào vị trí đã chọn. Game hiện có vẫn ở nguyên chỗ. Thư viện Steam giữ thiết lập riêng.</string>
|
||||
<string name="storage_shared_mount">Bộ nhớ điện thoại trong Linux</string>
|
||||
<string name="storage_shared_mount_hint">Gắn bộ nhớ trong của điện thoại tại /root/Storage. Khi tắt, chỉ các thư mục trò chơi bạn đã thêm từ đó được gắn. Thẻ SD không bị ảnh hưởng. Áp dụng từ phiên tiếp theo.</string>
|
||||
<string name="storage_default_ask">Luôn hỏi</string>
|
||||
<string name="storage_default_ask_detail">Chọn nơi lưu cho mỗi lần cài</string>
|
||||
<string name="storage_default_internal">Bộ nhớ trong</string>
|
||||
|
||||
@@ -1536,7 +1536,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">恢复 %1$s</string>
|
||||
<string name="roms_text">在每个会话中显示为 /root/ROMs。内部存储位于 /root/Storage。</string>
|
||||
<string name="roms_text_unmounted">在每个会话中显示为 /root/ROMs。</string>
|
||||
<string name="roms_none">未选择文件夹</string>
|
||||
<string name="roms_applies">将在下次会话生效。支持 SD 卡。</string>
|
||||
<string name="roms_choose">选择文件夹</string>
|
||||
@@ -3191,8 +3190,6 @@
|
||||
<string name="storage_default_group">安装位置</string>
|
||||
<string name="storage_default_title">默认存储</string>
|
||||
<string name="storage_default_hint">新的商店安装将保存到所选位置。现有游戏保持原位。Steam 库使用各自的设置。</string>
|
||||
<string name="storage_shared_mount">在 Linux 中使用手机存储</string>
|
||||
<string name="storage_shared_mount_hint">将手机内部存储挂载到 /root/Storage。关闭后,只会挂载你从中添加的游戏文件夹。不影响 SD 卡。下次会话生效。</string>
|
||||
<string name="storage_default_ask">每次询问</string>
|
||||
<string name="storage_default_ask_detail">每次安装时选择目标位置</string>
|
||||
<string name="storage_default_internal">内部存储</string>
|
||||
|
||||
@@ -1452,7 +1452,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">繼續 %1$s</string>
|
||||
<string name="roms_text">在每個會話中顯示為 /root/ROMs。內部儲存空間位於 /root/Storage。</string>
|
||||
<string name="roms_text_unmounted">在每個會話中顯示為 /root/ROMs。</string>
|
||||
<string name="roms_none">未選擇資料夾</string>
|
||||
<string name="roms_applies">下次會話生效。支援 SD 卡。</string>
|
||||
<string name="roms_choose">選擇資料夾</string>
|
||||
@@ -3188,8 +3187,6 @@
|
||||
<string name="storage_default_group">安裝位置</string>
|
||||
<string name="storage_default_title">預設儲存空間</string>
|
||||
<string name="storage_default_hint">從商店新安裝的遊戲會安裝到所選位置。現有遊戲維持原位。Steam 收藏庫保有自己的設定。</string>
|
||||
<string name="storage_shared_mount">在 Linux 中使用手機儲存空間</string>
|
||||
<string name="storage_shared_mount_hint">將手機內部儲存空間掛載到 /root/Storage。關閉後,只會掛載你從中加入的遊戲資料夾。不影響 SD 卡。下次工作階段生效。</string>
|
||||
<string name="storage_default_ask">每次都詢問</string>
|
||||
<string name="storage_default_ask_detail">每次安裝時選擇目標位置</string>
|
||||
<string name="storage_default_internal">內部儲存空間</string>
|
||||
|
||||
@@ -1452,7 +1452,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">繼續 %1$s</string>
|
||||
<string name="roms_text">每個工作階段中顯示為 /root/ROMs。內部儲存空間位於 /root/Storage。</string>
|
||||
<string name="roms_text_unmounted">每個工作階段中顯示為 /root/ROMs。</string>
|
||||
<string name="roms_none">未選擇資料夾</string>
|
||||
<string name="roms_applies">下次工作階段生效。支援 SD 卡。</string>
|
||||
<string name="roms_choose">選擇資料夾</string>
|
||||
@@ -3188,8 +3187,6 @@
|
||||
<string name="storage_default_group">安裝位置</string>
|
||||
<string name="storage_default_title">預設儲存空間</string>
|
||||
<string name="storage_default_hint">從商店新安裝的遊戲會安裝到所選位置。現有遊戲維持原位。Steam 收藏庫保有自己的設定。</string>
|
||||
<string name="storage_shared_mount">在 Linux 中使用手機儲存空間</string>
|
||||
<string name="storage_shared_mount_hint">將手機內部儲存空間掛載到 /root/Storage。關閉後,只會掛載你從中加入的遊戲資料夾。不影響 SD 卡。下次工作階段生效。</string>
|
||||
<string name="storage_default_ask">每次都詢問</string>
|
||||
<string name="storage_default_ask_detail">每次安裝時選擇目標位置</string>
|
||||
<string name="storage_default_internal">內部儲存空間</string>
|
||||
|
||||
@@ -552,27 +552,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_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>
|
||||
@@ -789,7 +768,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>
|
||||
@@ -1699,7 +1677,6 @@
|
||||
<string name="rail_percent">%1$d%%</string>
|
||||
<string name="rail_resume_named">Resume %1$s</string>
|
||||
<string name="roms_text">Shows up as /root/ROMs in each session. Internal storage is at /root/Storage.</string>
|
||||
<string name="roms_text_unmounted">Shows up as /root/ROMs in each session.</string>
|
||||
<string name="roms_none">No folder chosen</string>
|
||||
<string name="roms_applies">Applies next session. SD cards work.</string>
|
||||
<string name="roms_choose">Choose folder</string>
|
||||
@@ -3586,8 +3563,6 @@
|
||||
<string name="storage_default_group">Install location</string>
|
||||
<string name="storage_default_title">Default storage</string>
|
||||
<string name="storage_default_hint">New store installs go to the selected location. Existing games stay where they are. Steam libraries keep their own setting.</string>
|
||||
<string name="storage_shared_mount">Phone storage in Linux</string>
|
||||
<string name="storage_shared_mount_hint">Mounts your phone\'s internal storage at /root/Storage. When off, only game folders you\'ve added from it are mounted. SD cards are not affected. Applies to the next session.</string>
|
||||
<string name="storage_default_ask">Ask every time</string>
|
||||
<string name="storage_default_ask_detail">Choose a target for each install</string>
|
||||
<string name="storage_default_internal">Internal storage</string>
|
||||
@@ -4398,10 +4373,6 @@
|
||||
<string name="dev_ui_zoo_open">Open</string>
|
||||
<string name="dev_ui_zoo_show">Show</string>
|
||||
<string name="dev_ui_zoo_note">Previews change nothing real: nothing is installed, removed or signed out, and the menu\'s switches save nothing. A Library preview stays until you end it from its pill or restart.</string>
|
||||
<string name="dev_preview_steam_home">Steam home</string>
|
||||
<string name="dev_preview_steam_none">No games installed</string>
|
||||
<string name="dev_preview_steam_few">3 games installed</string>
|
||||
<string name="dev_preview_steam_many">12 games installed</string>
|
||||
<string name="dev_preview_library">Library</string>
|
||||
<string name="dev_preview_library_nothing_installed">Nothing installed</string>
|
||||
<string name="dev_preview_library_signed_out">Signed out of every store</string>
|
||||
|
||||
@@ -50,28 +50,4 @@ class MaliAutoRouteTest {
|
||||
assertTrue(MaliAutoRoute.userChoice(true, MaliAutoRoute.VENUS, MaliAutoRoute.BRIDGE))
|
||||
assertFalse(MaliAutoRoute.userChoice(false, MaliAutoRoute.NONE, MaliAutoRoute.BRIDGE))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun venusTheUserSwitchedOffIsNotSwitchedBackOn() {
|
||||
assertFalse(MaliAutoRoute.venusStandsIn(true, true, false, true, "Mali-G715"))
|
||||
assertTrue(MaliAutoRoute.venusStandsIn(true, true, true, true, "Mali-G2-Ultra-NX MC12"))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun venusIsAutosStandInOnlyWhereSteamStartsThroughIt() {
|
||||
assertTrue(MaliAutoRoute.venusStandsIn(true, true, false, false, "Mali-G715"))
|
||||
assertFalse(MaliAutoRoute.venusStandsIn(true, true, false, false, "Mali-G2-Ultra-NX MC12"))
|
||||
assertFalse(MaliAutoRoute.venusStandsIn(true, true, true, false, "Mali-G2-Ultra-NX MC16"))
|
||||
assertFalse(MaliAutoRoute.venusStandsIn(false, true, true, true, "Mali-G715"))
|
||||
assertFalse(MaliAutoRoute.venusStandsIn(true, false, true, true, "Mali-G715"))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun venusThatAutoTurnedOffIsStillAutosToTurnOn() {
|
||||
// Auto clears the stored key when it moves to the bridge: a stored "off" would read as the user's own choice.
|
||||
val cleared = MaliAutoRoute.userChoice(keyStored = false, owner = MaliAutoRoute.BRIDGE, route = MaliAutoRoute.VENUS)
|
||||
val writtenOff = MaliAutoRoute.userChoice(keyStored = true, owner = MaliAutoRoute.BRIDGE, route = MaliAutoRoute.VENUS)
|
||||
assertTrue(MaliAutoRoute.venusStandsIn(true, true, false, cleared, "Mali-G715"))
|
||||
assertFalse(MaliAutoRoute.venusStandsIn(true, true, false, writtenOff, "Mali-G715"))
|
||||
}
|
||||
}
|
||||
@@ -1,50 +0,0 @@
|
||||
package com.droiddeck.launcher
|
||||
|
||||
import com.droiddeck.launcher.gpu.SteamVr.Status
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Test
|
||||
|
||||
class QuestSteamVrWatchTest {
|
||||
@Test
|
||||
fun steamVrThatNeverStartsFailsAfterTheStartupWindow() {
|
||||
val watch = QuestSteamVrWatch(0)
|
||||
assertFalse(watch.stopped(29_999, Status.READY, paused = false))
|
||||
assertTrue(watch.stopped(30_000, Status.READY, paused = false))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun steamVrThatStopsFailsAfterTheRunningGrace() {
|
||||
val watch = QuestSteamVrWatch(0)
|
||||
assertFalse(watch.stopped(10_000, Status.RUNNING, paused = false))
|
||||
assertFalse(watch.stopped(14_999, Status.UNAVAILABLE, paused = false))
|
||||
assertTrue(watch.stopped(15_000, Status.UNAVAILABLE, paused = false))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun aFrozenGuestNeverCountsAsStopped() {
|
||||
val watch = QuestSteamVrWatch(0)
|
||||
assertFalse(watch.stopped(10_000, Status.RUNNING, paused = false))
|
||||
for (now in 11_000L..600_000L step 10_000) assertFalse(watch.stopped(now, Status.UNAVAILABLE, paused = true))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun aResumedGuestGetsTheFullGraceFromItsFirstAnswerAfterTheFreeze() {
|
||||
val watch = QuestSteamVrWatch(0)
|
||||
watch.stopped(10_000, Status.RUNNING, paused = false)
|
||||
watch.stopped(300_000, Status.UNAVAILABLE, paused = true)
|
||||
assertFalse(watch.stopped(310_000, Status.UNAVAILABLE, paused = false))
|
||||
assertFalse(watch.stopped(324_999, Status.UNAVAILABLE, paused = false))
|
||||
assertTrue(watch.stopped(325_000, Status.UNAVAILABLE, paused = false))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun steamVrAnsweringAfterAResumeKeepsTheSessionOpen() {
|
||||
val watch = QuestSteamVrWatch(0)
|
||||
watch.stopped(10_000, Status.RUNNING, paused = false)
|
||||
watch.stopped(300_000, Status.UNAVAILABLE, paused = true)
|
||||
assertFalse(watch.stopped(312_000, Status.RUNNING, paused = false))
|
||||
assertFalse(watch.stopped(316_999, Status.UNAVAILABLE, paused = false))
|
||||
assertTrue(watch.stopped(317_000, Status.UNAVAILABLE, paused = false))
|
||||
}
|
||||
}
|
||||
@@ -1,59 +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 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"))
|
||||
}
|
||||
}
|
||||
@@ -21,20 +21,4 @@ class AllFilesAccessTest {
|
||||
assertTrue(AllFilesAccess.missing(sdk = 35) { false })
|
||||
assertFalse(AllFilesAccess.missing(sdk = 35) { true })
|
||||
}
|
||||
|
||||
@Test
|
||||
fun onlySharedStorageNeedsIt() {
|
||||
assertTrue(AllFilesAccess.covers("/storage/emulated/0"))
|
||||
assertTrue(AllFilesAccess.covers("/storage/1A2B-3C4D/Games"))
|
||||
assertTrue(AllFilesAccess.covers("/sdcard/Download"))
|
||||
assertFalse(AllFilesAccess.covers("/storage/emulated/0/Android/data"))
|
||||
assertFalse(AllFilesAccess.covers("/storage/1A2B-3C4D/Android/obb"))
|
||||
assertTrue(AllFilesAccess.covers("/storage/emulated/0/Android"))
|
||||
assertTrue(AllFilesAccess.covers("/storage/emulated/0/Android/database"))
|
||||
assertTrue(AllFilesAccess.covers("/storage/emulated/0/Download/Android/data"))
|
||||
assertTrue(AllFilesAccess.covers("/storage/1A2B-3C4D/Games/Android/obb/x"))
|
||||
assertFalse(AllFilesAccess.covers("/storage/emulated/0/Android/data/com.droiddeck.launcher/files"))
|
||||
assertFalse(AllFilesAccess.covers("/storage/1A2B-3C4D/Android/obb/com.droiddeck.launcher"))
|
||||
assertFalse(AllFilesAccess.covers("/data/user/0/com.droiddeck.launcher/files"))
|
||||
}
|
||||
}
|
||||
@@ -103,23 +103,6 @@ class AddedGamesStoreScanTest {
|
||||
assertTrue(listing.contains("\"store\":\"${Store.EPIC.id}\""))
|
||||
}
|
||||
|
||||
@Test fun anEaGamesSavedLaunchOptionsReachTheListingAndOtherStoresIgnoreThem() {
|
||||
val ea = install(Store.EA, "Origin.OFR.1", "Burnout Paradise", "bin/Game.exe", launcher = true)
|
||||
val gog = install(Store.GOG, "42", "Plain Gog", "Game.exe")
|
||||
AddedGames.scan(app)
|
||||
AddedGameEdits.setLaunchOptions(app, ea.path, "-dx11")
|
||||
AddedGameEdits.setLaunchOptions(app, gog.path, "-ignored")
|
||||
val games = AddedGames.scan(app)
|
||||
assertEquals("-dx11", games.single { it.folder.absolutePath == ea.absolutePath }.launchOptions)
|
||||
assertEquals("", games.single { it.folder.absolutePath == gog.absolutePath }.launchOptions)
|
||||
assertTrue(AddedGames.writeListing(app, games).readText().contains("\"launch\":\"-dx11\""))
|
||||
}
|
||||
|
||||
@Test fun anEaGameWithoutSavedLaunchOptionsHasNone() {
|
||||
val ea = install(Store.EA, "Origin.OFR.2", "Other EA", "bin/Game.exe", launcher = true)
|
||||
assertEquals("", AddedGames.scan(app).single { it.folder.absolutePath == ea.absolutePath }.launchOptions)
|
||||
}
|
||||
|
||||
// GOG runs a task from its declared working directory; the install root when it declares none.
|
||||
@Test fun aTaskWorkingDirectoryBecomesTheShortcutsStartIn() {
|
||||
val folder = install(Store.GOG, "1207658924", "Witcher Game", "System/witcher.exe", workdir = "System")
|
||||
|
||||
@@ -259,7 +259,7 @@ class PadPartialAxesTest {
|
||||
}
|
||||
|
||||
@Test fun keyTriggerDecision() {
|
||||
val held = PadBridge.TriggerKey.slots(1)[0]
|
||||
val held = BooleanArray(2)
|
||||
assertEquals(1f, PadBridge.keyTrigger(0f, true, 0, false, held, 0))
|
||||
assertEquals(0f, PadBridge.keyTrigger(1f, false, 0, false, held, 0))
|
||||
assertEquals(0.25f, PadBridge.keyTrigger(0.25f, true, 1, false, held, 0))
|
||||
@@ -271,64 +271,6 @@ class PadPartialAxesTest {
|
||||
assertEquals(0f, PadBridge.axisTrigger(0f, held, 1))
|
||||
}
|
||||
|
||||
@Test fun keyBeforeAxisOnAFullPullIsOnePress() {
|
||||
val device = device(MotionEvent.AXIS_GAS)
|
||||
motion(device)
|
||||
key(device, KeyEvent.KEYCODE_BUTTON_R2)
|
||||
assertEquals(1f, pad().rightTrigger)
|
||||
for (value in listOf(0.1f, 0.3f, 0.6f, 1f, 0.98f)) {
|
||||
motion(device, MotionEvent.AXIS_GAS to value)
|
||||
assertEquals(1f, pad().rightTrigger)
|
||||
}
|
||||
motion(device, MotionEvent.AXIS_GAS to 0.7f)
|
||||
assertEquals(0.7f, pad().rightTrigger)
|
||||
key(device, KeyEvent.KEYCODE_BUTTON_R2, KeyEvent.ACTION_UP)
|
||||
assertEquals(0.7f, pad().rightTrigger)
|
||||
motion(device, MotionEvent.AXIS_GAS to 0f)
|
||||
assertEquals(0f, pad().rightTrigger)
|
||||
}
|
||||
|
||||
@Test fun releasingDuringTheHandoffFollowsTheAxis() {
|
||||
val device = device(MotionEvent.AXIS_GAS)
|
||||
motion(device)
|
||||
key(device, KeyEvent.KEYCODE_BUTTON_R2)
|
||||
motion(device, MotionEvent.AXIS_GAS to 0.4f)
|
||||
assertEquals(1f, pad().rightTrigger)
|
||||
key(device, KeyEvent.KEYCODE_BUTTON_R2, KeyEvent.ACTION_UP)
|
||||
assertEquals(0.4f, pad().rightTrigger)
|
||||
}
|
||||
|
||||
@Test fun movingTriggerAxisStaysAnalogWhenItsKeyFiresFirst() {
|
||||
val device = device(MotionEvent.AXIS_GAS)
|
||||
motion(device, MotionEvent.AXIS_GAS to 0.5f)
|
||||
motion(device, MotionEvent.AXIS_GAS to 0f)
|
||||
key(device, KeyEvent.KEYCODE_BUTTON_R2)
|
||||
assertEquals(0f, pad().rightTrigger)
|
||||
motion(device, MotionEvent.AXIS_GAS to 0.1f)
|
||||
assertEquals(0.1f, pad().rightTrigger)
|
||||
motion(device, MotionEvent.AXIS_GAS to 0.35f)
|
||||
assertEquals(0.35f, pad().rightTrigger)
|
||||
key(device, KeyEvent.KEYCODE_BUTTON_R2, KeyEvent.ACTION_UP)
|
||||
motion(device, MotionEvent.AXIS_GAS to 0f)
|
||||
assertEquals(0f, pad().rightTrigger)
|
||||
}
|
||||
|
||||
@Test fun triggerSwitchedToDigitalPressesAgainAfterOneSilentPress() {
|
||||
val device = device(MotionEvent.AXIS_GAS)
|
||||
motion(device, MotionEvent.AXIS_GAS to 0.5f)
|
||||
motion(device, MotionEvent.AXIS_GAS to 0f)
|
||||
key(device, KeyEvent.KEYCODE_BUTTON_R2)
|
||||
motion(device)
|
||||
key(device, KeyEvent.KEYCODE_BUTTON_R2, KeyEvent.ACTION_UP)
|
||||
assertEquals(0f, pad().rightTrigger)
|
||||
key(device, KeyEvent.KEYCODE_BUTTON_R2)
|
||||
assertEquals(1f, pad().rightTrigger)
|
||||
motion(device)
|
||||
assertEquals(1f, pad().rightTrigger)
|
||||
key(device, KeyEvent.KEYCODE_BUTTON_R2, KeyEvent.ACTION_UP)
|
||||
assertEquals(0f, pad().rightTrigger)
|
||||
}
|
||||
|
||||
@Test fun silentTriggerAxesLetTheirKeysPress() {
|
||||
val device = device(MotionEvent.AXIS_LTRIGGER, MotionEvent.AXIS_RTRIGGER)
|
||||
motion(device)
|
||||
@@ -352,15 +294,11 @@ class PadPartialAxesTest {
|
||||
key(device, KeyEvent.KEYCODE_BUTTON_L2)
|
||||
assertEquals(1f, pad().leftTrigger)
|
||||
motion(device, MotionEvent.AXIS_LTRIGGER to 0.4f)
|
||||
assertEquals(1f, pad().leftTrigger)
|
||||
assertEquals(0.4f, pad().leftTrigger)
|
||||
motion(device, MotionEvent.AXIS_LTRIGGER to 0f)
|
||||
assertEquals(0f, pad().leftTrigger)
|
||||
key(device, KeyEvent.KEYCODE_BUTTON_L2, KeyEvent.ACTION_UP)
|
||||
assertEquals(0f, pad().leftTrigger)
|
||||
key(device, KeyEvent.KEYCODE_BUTTON_L2)
|
||||
assertEquals(0f, pad().leftTrigger)
|
||||
motion(device, MotionEvent.AXIS_LTRIGGER to 0.4f)
|
||||
assertEquals(0.4f, pad().leftTrigger)
|
||||
}
|
||||
|
||||
private fun pad(): PadState = requireNotNull(JoyConPadTest.RecordingWriter.pads[0])
|
||||
|
||||
Loaded 100 of 203 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user