diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index a2ef6cfe8e..663bd30e6a 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -178,8 +178,10 @@ jobs:
PY
after=$(find "$GITHUB_WORKSPACE/../robolectric-jars" -name '*.jar' | wc -l)
[ "$after" -gt "${ROBOLECTRIC_JARS_BEFORE:-0}" ] && echo "save=true" >> "$GITHUB_OUTPUT" || true
+ # A pull request's cache is visible only to that pull request, and each copy is hundreds of megabytes against the
+ # repository's 10 GB cache limit. Only main saves, so every pull request restores main's set.
- name: Store Robolectric's Android jars
- if: always() && steps.robolectric-jars-final.outputs.save == 'true'
+ if: always() && github.event_name != 'pull_request' && steps.robolectric-jars-final.outputs.save == 'true'
uses: actions/cache/save@v4
with:
path: ${{ steps.robolectric-jars.outputs.path }}
diff --git a/README.md b/README.md
index 4a15571419..d6616b1ab7 100644
--- a/README.md
+++ b/README.md
@@ -68,6 +68,7 @@ DroidDeck is [GPL-3.0](LICENSE). Steam and Proton belong to Valve Corporation. V
- Runtime, shim, input and controller work build on WinNative and Bannerlator by maxjivi05.
- mmap ring buffer controller input by ribbit384 ([WinNative #345](https://github.com/WinNative-Emu/WinNative/pull/345)).
- [FEX](https://github.com/FEX-Emu/FEX) (MIT) runs x86 code. DroidDeck's build puts the platform name under `AT_PLATFORM` so [sharun](https://github.com/VHSgunzo/sharun) AppImages by VHSgunzo (MIT) start through its [userland-execve](https://crates.io/crates/userland-execve) loader (MIT), and its GL thunk hands X errors to the program's own error handler. FEX's code disk cache was checked in its source. The fix for host stack left behind when a program leaves a signal handler without returning follows the approach suggested in [FEX-Emu/FEX#2487](https://github.com/FEX-Emu/FEX/issues/2487). The host stack fix for system calls that end a block is a backport of Ryan Houdek's [FEX-Emu/FEX#6122](https://github.com/FEX-Emu/FEX/pull/6122).
+- Anti-cheat support under FEX is the work of [StonkGuy](https://github.com/StonkGuy): the x86-64 ptrace, seccomp and `/proc` emulation from his [FEX fork](https://github.com/StonkGuy/FEX) (`eac-2611` branch, MIT) is carried as build patch 0021 with his authorship, patches 0022 to 0029 build on it, and his `eac-tests` regression suite verifies them.
- x86-64 programs on Wayland reach the GPU through FEX's Wayland client, wayland-egl and EGL thunks. The guest `wl_list` and `wl_array` helpers follow [libwayland](https://gitlab.freedesktop.org/wayland/wayland)'s `src/wayland-util.c` (MIT). The EGL extension table comes from the [Khronos EGL registry](https://github.com/KhronosGroup/EGL-Registry) (Apache-2.0) and Mesa's `egl_other.xml` (MIT).
- x86 AppImages, and arm64 ones whose runtime can't unpack on Android, are unpacked with [uruntime](https://github.com/VHSgunzo/uruntime) by VHSgunzo (MIT), shipped unmodified with its licence.
- DwarFS AppImages are unpacked without proot by `dwarfsextract` from [DwarFS](https://github.com/mhx/dwarfs) by Marcus Holland-Moritz (MIT), the release binary uruntime embeds, taken out of its self-extracting wrapper and shipped with its licence.
@@ -156,6 +157,13 @@ DroidDeck is [GPL-3.0](LICENSE). Steam and Proton belong to Valve Corporation. V
+
+Setup and tools
+
+- The wireless debugging pairing keypad was inspired by Ryan Retro’s Handheld Toolkit.
+
+
+
## Star history
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 5db5b11509..4211f6bbc5 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -40,6 +40,8 @@
+
+
diff --git a/app/src/main/cpp/fakeinput_steam.cpp b/app/src/main/cpp/fakeinput_steam.cpp
index 856501cb3c..4c592ded09 100644
--- a/app/src/main/cpp/fakeinput_steam.cpp
+++ b/app/src/main/cpp/fakeinput_steam.cpp
@@ -329,16 +329,28 @@ static constexpr int kWatchedFds = 1 << 16;
static constexpr int kWatchedBits = sizeof(unsigned long) * 8;
static std::atomic watched_fds[kWatchedFds / kWatchedBits];
static std::atomic watched_beyond{false};
+static std::atomic watched_count{0};
static void watch_fd(int fd) {
if (fd < 0) return;
- if (fd >= kWatchedFds) watched_beyond.store(true, std::memory_order_release);
- else watched_fds[fd / kWatchedBits].fetch_or(1UL << (fd % kWatchedBits), std::memory_order_release);
+ if (fd >= kWatchedFds) {
+ watched_beyond.store(true, std::memory_order_release);
+ return;
+ }
+ const unsigned long bit = 1UL << (fd % kWatchedBits);
+ if (!(watched_fds[fd / kWatchedBits].fetch_or(bit, std::memory_order_acq_rel) & bit))
+ watched_count.fetch_add(1, std::memory_order_acq_rel);
}
static void unwatch_fd(int fd) {
- if (fd >= 0 && fd < kWatchedFds)
- watched_fds[fd / kWatchedBits].fetch_and(~(1UL << (fd % kWatchedBits)), std::memory_order_release);
+ if (fd < 0 || fd >= kWatchedFds) return;
+ const unsigned long bit = 1UL << (fd % kWatchedBits);
+ if (watched_fds[fd / kWatchedBits].fetch_and(~bit, std::memory_order_acq_rel) & bit)
+ watched_count.fetch_sub(1, std::memory_order_acq_rel);
+}
+
+static bool any_watched() {
+ return watched_count.load(std::memory_order_acquire) > 0 || watched_beyond.load(std::memory_order_acquire);
}
static bool watched(int fd) {
@@ -4269,7 +4281,7 @@ static int poll_fake(struct pollfd *fds, nfds_t nfds, int timeout,
const auto my_poll = next_symbol(Next::poll);
const auto my_ppoll = next_symbol(Next::ppoll);
- nfds_t first = 0;
+ nfds_t first = any_watched() ? 0 : nfds;
while (first < nfds && !watched(fds[first].fd)) first++;
bool has_fake_fds = false;
std::vector real_fds;
@@ -4372,12 +4384,12 @@ EXPORT int poll(struct pollfd *fds, nfds_t nfds, int timeout) {
EXPORT int ppoll(struct pollfd *fds, nfds_t nfds,
const struct timespec *timeout, const sigset_t *sigmask) {
const auto my_ppoll = next_symbol(Next::ppoll);
- if (timeout && (timeout->tv_sec < 0 || timeout->tv_nsec < 0 || timeout->tv_nsec >= 1000000000L)) {
- errno = EINVAL;
- return -1;
- }
- for (nfds_t i = 0; i < nfds; ++i) {
+ for (nfds_t i = 0; any_watched() && i < nfds; ++i) {
if (!is_fake_input_fd(fds[i].fd)) continue;
+ if (timeout && (timeout->tv_sec < 0 || timeout->tv_nsec < 0 || timeout->tv_nsec >= 1000000000L)) {
+ errno = EINVAL;
+ return -1;
+ }
if (!sigmask)
return poll_fake(fds, nfds, static_cast(timespec_to_ms(timeout)), nullptr);
sigset_t all_signals, original_mask;
@@ -4410,6 +4422,8 @@ EXPORT int __ppoll_chk(struct pollfd *fds, nfds_t nfds, const struct timespec *t
EXPORT int select(int nfds, fd_set *readfds, fd_set *writefds,
fd_set *exceptfds, struct timeval *timeout) {
const auto my_select = next_symbol(Next::select);
+ if (!any_watched())
+ return my_select ? my_select(nfds, readfds, writefds, exceptfds, timeout) : -1;
fd_set original_readfds;
fd_set original_writefds;
diff --git a/app/src/main/cpp/shaders/SMAA.hlsl b/app/src/main/cpp/shaders/SMAA.hlsl
new file mode 100644
index 0000000000..d955d52401
--- /dev/null
+++ b/app/src/main/cpp/shaders/SMAA.hlsl
@@ -0,0 +1,1361 @@
+/**
+ * Copyright (C) 2013 Jorge Jimenez (jorge@iryoku.com)
+ * Copyright (C) 2013 Jose I. Echevarria (joseignacioechevarria@gmail.com)
+ * Copyright (C) 2013 Belen Masia (bmasia@unizar.es)
+ * Copyright (C) 2013 Fernando Navarro (fernandn@microsoft.com)
+ * Copyright (C) 2013 Diego Gutierrez (diegog@unizar.es)
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * this software and associated documentation files (the "Software"), to deal in
+ * the Software without restriction, including without limitation the rights to
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+ * of the Software, and to permit persons to whom the Software is furnished to
+ * do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software. As clarification, there
+ * is no requirement that the copyright notice and permission be included in
+ * binary distributions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+
+/**
+ * _______ ___ ___ ___ ___
+ * / || \/ | / \ / \
+ * | (---- | \ / | / ^ \ / ^ \
+ * \ \ | |\/| | / /_\ \ / /_\ \
+ * ----) | | | | | / _____ \ / _____ \
+ * |_______/ |__| |__| /__/ \__\ /__/ \__\
+ *
+ * E N H A N C E D
+ * S U B P I X E L M O R P H O L O G I C A L A N T I A L I A S I N G
+ *
+ * http://www.iryoku.com/smaa/
+ *
+ * Hi, welcome aboard!
+ *
+ * Here you'll find instructions to get the shader up and running as fast as
+ * possible.
+ *
+ * IMPORTANTE NOTICE: when updating, remember to update both this file and the
+ * precomputed textures! They may change from version to version.
+ *
+ * The shader has three passes, chained together as follows:
+ *
+ * |input|------------------·
+ * v |
+ * [ SMAA*EdgeDetection ] |
+ * v |
+ * |edgesTex| |
+ * v |
+ * [ SMAABlendingWeightCalculation ] |
+ * v |
+ * |blendTex| |
+ * v |
+ * [ SMAANeighborhoodBlending ] <------·
+ * v
+ * |output|
+ *
+ * Note that each [pass] has its own vertex and pixel shader. Remember to use
+ * oversized triangles instead of quads to avoid overshading along the
+ * diagonal.
+ *
+ * You've three edge detection methods to choose from: luma, color or depth.
+ * They represent different quality/performance and anti-aliasing/sharpness
+ * tradeoffs, so our recommendation is for you to choose the one that best
+ * suits your particular scenario:
+ *
+ * - Depth edge detection is usually the fastest but it may miss some edges.
+ *
+ * - Luma edge detection is usually more expensive than depth edge detection,
+ * but catches visible edges that depth edge detection can miss.
+ *
+ * - Color edge detection is usually the most expensive one but catches
+ * chroma-only edges.
+ *
+ * For quickstarters: just use luma edge detection.
+ *
+ * The general advice is to not rush the integration process and ensure each
+ * step is done correctly (don't try to integrate SMAA T2x with predicated edge
+ * detection from the start!). Ok then, let's go!
+ *
+ * 1. The first step is to create two RGBA temporal render targets for holding
+ * |edgesTex| and |blendTex|.
+ *
+ * In DX10 or DX11, you can use a RG render target for the edges texture.
+ * In the case of NVIDIA GPUs, using RG render targets seems to actually be
+ * slower.
+ *
+ * On the Xbox 360, you can use the same render target for resolving both
+ * |edgesTex| and |blendTex|, as they aren't needed simultaneously.
+ *
+ * 2. Both temporal render targets |edgesTex| and |blendTex| must be cleared
+ * each frame. Do not forget to clear the alpha channel!
+ *
+ * 3. The next step is loading the two supporting precalculated textures,
+ * 'areaTex' and 'searchTex'. You'll find them in the 'Textures' folder as
+ * C++ headers, and also as regular DDS files. They'll be needed for the
+ * 'SMAABlendingWeightCalculation' pass.
+ *
+ * If you use the C++ headers, be sure to load them in the format specified
+ * inside of them.
+ *
+ * You can also compress 'areaTex' and 'searchTex' using BC5 and BC4
+ * respectively, if you have that option in your content processor pipeline.
+ * When compressing then, you get a non-perceptible quality decrease, and a
+ * marginal performance increase.
+ *
+ * 4. All samplers must be set to linear filtering and clamp.
+ *
+ * After you get the technique working, remember that 64-bit inputs have
+ * half-rate linear filtering on GCN.
+ *
+ * If SMAA is applied to 64-bit color buffers, switching to point filtering
+ * when accesing them will increase the performance. Search for
+ * 'SMAASamplePoint' to see which textures may benefit from point
+ * filtering, and where (which is basically the color input in the edge
+ * detection and resolve passes).
+ *
+ * 5. All texture reads and buffer writes must be non-sRGB, with the exception
+ * of the input read and the output write in
+ * 'SMAANeighborhoodBlending' (and only in this pass!). If sRGB reads in
+ * this last pass are not possible, the technique will work anyway, but
+ * will perform antialiasing in gamma space.
+ *
+ * IMPORTANT: for best results the input read for the color/luma edge
+ * detection should *NOT* be sRGB.
+ *
+ * 6. Before including SMAA.h you'll have to setup the render target metrics,
+ * the target and any optional configuration defines. Optionally you can
+ * use a preset.
+ *
+ * You have the following targets available:
+ * SMAA_HLSL_3
+ * SMAA_HLSL_4
+ * SMAA_HLSL_4_1
+ * SMAA_GLSL_3 *
+ * SMAA_GLSL_4 *
+ *
+ * * (See SMAA_INCLUDE_VS and SMAA_INCLUDE_PS below).
+ *
+ * And four presets:
+ * SMAA_PRESET_LOW (%60 of the quality)
+ * SMAA_PRESET_MEDIUM (%80 of the quality)
+ * SMAA_PRESET_HIGH (%95 of the quality)
+ * SMAA_PRESET_ULTRA (%99 of the quality)
+ *
+ * For example:
+ * #define SMAA_RT_METRICS float4(1.0 / 1280.0, 1.0 / 720.0, 1280.0, 720.0)
+ * #define SMAA_HLSL_4
+ * #define SMAA_PRESET_HIGH
+ * #include "SMAA.h"
+ *
+ * Note that SMAA_RT_METRICS doesn't need to be a macro, it can be a
+ * uniform variable. The code is designed to minimize the impact of not
+ * using a constant value, but it is still better to hardcode it.
+ *
+ * Depending on how you encoded 'areaTex' and 'searchTex', you may have to
+ * add (and customize) the following defines before including SMAA.h:
+ * #define SMAA_AREATEX_SELECT(sample) sample.rg
+ * #define SMAA_SEARCHTEX_SELECT(sample) sample.r
+ *
+ * If your engine is already using porting macros, you can define
+ * SMAA_CUSTOM_SL, and define the porting functions by yourself.
+ *
+ * 7. Then, you'll have to setup the passes as indicated in the scheme above.
+ * You can take a look into SMAA.fx, to see how we did it for our demo.
+ * Checkout the function wrappers, you may want to copy-paste them!
+ *
+ * 8. It's recommended to validate the produced |edgesTex| and |blendTex|.
+ * You can use a screenshot from your engine to compare the |edgesTex|
+ * and |blendTex| produced inside of the engine with the results obtained
+ * with the reference demo.
+ *
+ * 9. After you get the last pass to work, it's time to optimize. You'll have
+ * to initialize a stencil buffer in the first pass (discard is already in
+ * the code), then mask execution by using it the second pass. The last
+ * pass should be executed in all pixels.
+ *
+ *
+ * After this point you can choose to enable predicated thresholding,
+ * temporal supersampling and motion blur integration:
+ *
+ * a) If you want to use predicated thresholding, take a look into
+ * SMAA_PREDICATION; you'll need to pass an extra texture in the edge
+ * detection pass.
+ *
+ * b) If you want to enable temporal supersampling (SMAA T2x):
+ *
+ * 1. The first step is to render using subpixel jitters. I won't go into
+ * detail, but it's as simple as moving each vertex position in the
+ * vertex shader, you can check how we do it in our DX10 demo.
+ *
+ * 2. Then, you must setup the temporal resolve. You may want to take a look
+ * into SMAAResolve for resolving 2x modes. After you get it working, you'll
+ * probably see ghosting everywhere. But fear not, you can enable the
+ * CryENGINE temporal reprojection by setting the SMAA_REPROJECTION macro.
+ * Check out SMAA_DECODE_VELOCITY if your velocity buffer is encoded.
+ *
+ * 3. The next step is to apply SMAA to each subpixel jittered frame, just as
+ * done for 1x.
+ *
+ * 4. At this point you should already have something usable, but for best
+ * results the proper area textures must be set depending on current jitter.
+ * For this, the parameter 'subsampleIndices' of
+ * 'SMAABlendingWeightCalculationPS' must be set as follows, for our T2x
+ * mode:
+ *
+ * @SUBSAMPLE_INDICES
+ *
+ * | S# | Camera Jitter | subsampleIndices |
+ * +----+------------------+---------------------+
+ * | 0 | ( 0.25, -0.25) | float4(1, 1, 1, 0) |
+ * | 1 | (-0.25, 0.25) | float4(2, 2, 2, 0) |
+ *
+ * These jitter positions assume a bottom-to-top y axis. S# stands for the
+ * sample number.
+ *
+ * More information about temporal supersampling here:
+ * http://iryoku.com/aacourse/downloads/13-Anti-Aliasing-Methods-in-CryENGINE-3.pdf
+ *
+ * c) If you want to enable spatial multisampling (SMAA S2x):
+ *
+ * 1. The scene must be rendered using MSAA 2x. The MSAA 2x buffer must be
+ * created with:
+ * - DX10: see below (*)
+ * - DX10.1: D3D10_STANDARD_MULTISAMPLE_PATTERN or
+ * - DX11: D3D11_STANDARD_MULTISAMPLE_PATTERN
+ *
+ * This allows to ensure that the subsample order matches the table in
+ * @SUBSAMPLE_INDICES.
+ *
+ * (*) In the case of DX10, we refer the reader to:
+ * - SMAA::detectMSAAOrder and
+ * - SMAA::msaaReorder
+ *
+ * These functions allow to match the standard multisample patterns by
+ * detecting the subsample order for a specific GPU, and reordering
+ * them appropriately.
+ *
+ * 2. A shader must be run to output each subsample into a separate buffer
+ * (DX10 is required). You can use SMAASeparate for this purpose, or just do
+ * it in an existing pass (for example, in the tone mapping pass, which has
+ * the advantage of feeding tone mapped subsamples to SMAA, which will yield
+ * better results).
+ *
+ * 3. The full SMAA 1x pipeline must be run for each separated buffer, storing
+ * the results in the final buffer. The second run should alpha blend with
+ * the existing final buffer using a blending factor of 0.5.
+ * 'subsampleIndices' must be adjusted as in the SMAA T2x case (see point
+ * b).
+ *
+ * d) If you want to enable temporal supersampling on top of SMAA S2x
+ * (which actually is SMAA 4x):
+ *
+ * 1. SMAA 4x consists on temporally jittering SMAA S2x, so the first step is
+ * to calculate SMAA S2x for current frame. In this case, 'subsampleIndices'
+ * must be set as follows:
+ *
+ * | F# | S# | Camera Jitter | Net Jitter | subsampleIndices |
+ * +----+----+--------------------+-------------------+----------------------+
+ * | 0 | 0 | ( 0.125, 0.125) | ( 0.375, -0.125) | float4(5, 3, 1, 3) |
+ * | 0 | 1 | ( 0.125, 0.125) | (-0.125, 0.375) | float4(4, 6, 2, 3) |
+ * +----+----+--------------------+-------------------+----------------------+
+ * | 1 | 2 | (-0.125, -0.125) | ( 0.125, -0.375) | float4(3, 5, 1, 4) |
+ * | 1 | 3 | (-0.125, -0.125) | (-0.375, 0.125) | float4(6, 4, 2, 4) |
+ *
+ * These jitter positions assume a bottom-to-top y axis. F# stands for the
+ * frame number. S# stands for the sample number.
+ *
+ * 2. After calculating SMAA S2x for current frame (with the new subsample
+ * indices), previous frame must be reprojected as in SMAA T2x mode (see
+ * point b).
+ *
+ * e) If motion blur is used, you may want to do the edge detection pass
+ * together with motion blur. This has two advantages:
+ *
+ * 1. Pixels under heavy motion can be omitted from the edge detection process.
+ * For these pixels we can just store "no edge", as motion blur will take
+ * care of them.
+ * 2. The center pixel tap is reused.
+ *
+ * Note that in this case depth testing should be used instead of stenciling,
+ * as we have to write all the pixels in the motion blur pass.
+ *
+ * That's it!
+ */
+
+//-----------------------------------------------------------------------------
+// SMAA Presets
+
+/**
+ * Note that if you use one of these presets, the following configuration
+ * macros will be ignored if set in the "Configurable Defines" section.
+ */
+
+#if defined(SMAA_PRESET_LOW)
+#define SMAA_THRESHOLD 0.15
+#define SMAA_MAX_SEARCH_STEPS 4
+#define SMAA_DISABLE_DIAG_DETECTION
+#define SMAA_DISABLE_CORNER_DETECTION
+#elif defined(SMAA_PRESET_MEDIUM)
+#define SMAA_THRESHOLD 0.1
+#define SMAA_MAX_SEARCH_STEPS 8
+#define SMAA_DISABLE_DIAG_DETECTION
+#define SMAA_DISABLE_CORNER_DETECTION
+#elif defined(SMAA_PRESET_HIGH)
+#define SMAA_THRESHOLD 0.1
+#define SMAA_MAX_SEARCH_STEPS 16
+#define SMAA_MAX_SEARCH_STEPS_DIAG 8
+#define SMAA_CORNER_ROUNDING 25
+#elif defined(SMAA_PRESET_ULTRA)
+#define SMAA_THRESHOLD 0.05
+#define SMAA_MAX_SEARCH_STEPS 32
+#define SMAA_MAX_SEARCH_STEPS_DIAG 16
+#define SMAA_CORNER_ROUNDING 25
+#endif
+
+//-----------------------------------------------------------------------------
+// Configurable Defines
+
+/**
+ * SMAA_THRESHOLD specifies the threshold or sensitivity to edges.
+ * Lowering this value you will be able to detect more edges at the expense of
+ * performance.
+ *
+ * Range: [0, 0.5]
+ * 0.1 is a reasonable value, and allows to catch most visible edges.
+ * 0.05 is a rather overkill value, that allows to catch 'em all.
+ *
+ * If temporal supersampling is used, 0.2 could be a reasonable value, as low
+ * contrast edges are properly filtered by just 2x.
+ */
+#ifndef SMAA_THRESHOLD
+#define SMAA_THRESHOLD 0.1
+#endif
+
+/**
+ * SMAA_DEPTH_THRESHOLD specifies the threshold for depth edge detection.
+ *
+ * Range: depends on the depth range of the scene.
+ */
+#ifndef SMAA_DEPTH_THRESHOLD
+#define SMAA_DEPTH_THRESHOLD (0.1 * SMAA_THRESHOLD)
+#endif
+
+/**
+ * SMAA_MAX_SEARCH_STEPS specifies the maximum steps performed in the
+ * horizontal/vertical pattern searches, at each side of the pixel.
+ *
+ * In number of pixels, it's actually the double. So the maximum line length
+ * perfectly handled by, for example 16, is 64 (by perfectly, we meant that
+ * longer lines won't look as good, but still antialiased).
+ *
+ * Range: [0, 112]
+ */
+#ifndef SMAA_MAX_SEARCH_STEPS
+#define SMAA_MAX_SEARCH_STEPS 16
+#endif
+
+/**
+ * SMAA_MAX_SEARCH_STEPS_DIAG specifies the maximum steps performed in the
+ * diagonal pattern searches, at each side of the pixel. In this case we jump
+ * one pixel at time, instead of two.
+ *
+ * Range: [0, 20]
+ *
+ * On high-end machines it is cheap (between a 0.8x and 0.9x slower for 16
+ * steps), but it can have a significant impact on older machines.
+ *
+ * Define SMAA_DISABLE_DIAG_DETECTION to disable diagonal processing.
+ */
+#ifndef SMAA_MAX_SEARCH_STEPS_DIAG
+#define SMAA_MAX_SEARCH_STEPS_DIAG 8
+#endif
+
+/**
+ * SMAA_CORNER_ROUNDING specifies how much sharp corners will be rounded.
+ *
+ * Range: [0, 100]
+ *
+ * Define SMAA_DISABLE_CORNER_DETECTION to disable corner processing.
+ */
+#ifndef SMAA_CORNER_ROUNDING
+#define SMAA_CORNER_ROUNDING 25
+#endif
+
+/**
+ * If there is an neighbor edge that has SMAA_LOCAL_CONTRAST_FACTOR times
+ * bigger contrast than current edge, current edge will be discarded.
+ *
+ * This allows to eliminate spurious crossing edges, and is based on the fact
+ * that, if there is too much contrast in a direction, that will hide
+ * perceptually contrast in the other neighbors.
+ */
+#ifndef SMAA_LOCAL_CONTRAST_ADAPTATION_FACTOR
+#define SMAA_LOCAL_CONTRAST_ADAPTATION_FACTOR 2.0
+#endif
+
+/**
+ * Predicated thresholding allows to better preserve texture details and to
+ * improve performance, by decreasing the number of detected edges using an
+ * additional buffer like the light accumulation buffer, object ids or even the
+ * depth buffer (the depth buffer usage may be limited to indoor or short range
+ * scenes).
+ *
+ * It locally decreases the luma or color threshold if an edge is found in an
+ * additional buffer (so the global threshold can be higher).
+ *
+ * This method was developed by Playstation EDGE MLAA team, and used in
+ * Killzone 3, by using the light accumulation buffer. More information here:
+ * http://iryoku.com/aacourse/downloads/06-MLAA-on-PS3.pptx
+ */
+#ifndef SMAA_PREDICATION
+#define SMAA_PREDICATION 0
+#endif
+
+/**
+ * Threshold to be used in the additional predication buffer.
+ *
+ * Range: depends on the input, so you'll have to find the magic number that
+ * works for you.
+ */
+#ifndef SMAA_PREDICATION_THRESHOLD
+#define SMAA_PREDICATION_THRESHOLD 0.01
+#endif
+
+/**
+ * How much to scale the global threshold used for luma or color edge
+ * detection when using predication.
+ *
+ * Range: [1, 5]
+ */
+#ifndef SMAA_PREDICATION_SCALE
+#define SMAA_PREDICATION_SCALE 2.0
+#endif
+
+/**
+ * How much to locally decrease the threshold.
+ *
+ * Range: [0, 1]
+ */
+#ifndef SMAA_PREDICATION_STRENGTH
+#define SMAA_PREDICATION_STRENGTH 0.4
+#endif
+
+/**
+ * Temporal reprojection allows to remove ghosting artifacts when using
+ * temporal supersampling. We use the CryEngine 3 method which also introduces
+ * velocity weighting. This feature is of extreme importance for totally
+ * removing ghosting. More information here:
+ * http://iryoku.com/aacourse/downloads/13-Anti-Aliasing-Methods-in-CryENGINE-3.pdf
+ *
+ * Note that you'll need to setup a velocity buffer for enabling reprojection.
+ * For static geometry, saving the previous depth buffer is a viable
+ * alternative.
+ */
+#ifndef SMAA_REPROJECTION
+#define SMAA_REPROJECTION 0
+#endif
+
+/**
+ * SMAA_REPROJECTION_WEIGHT_SCALE controls the velocity weighting. It allows to
+ * remove ghosting trails behind the moving object, which are not removed by
+ * just using reprojection. Using low values will exhibit ghosting, while using
+ * high values will disable temporal supersampling under motion.
+ *
+ * Behind the scenes, velocity weighting removes temporal supersampling when
+ * the velocity of the subsamples differs (meaning they are different objects).
+ *
+ * Range: [0, 80]
+ */
+#ifndef SMAA_REPROJECTION_WEIGHT_SCALE
+#define SMAA_REPROJECTION_WEIGHT_SCALE 30.0
+#endif
+
+/**
+ * On some compilers, discard cannot be used in vertex shaders. Thus, they need
+ * to be compiled separately.
+ */
+#ifndef SMAA_INCLUDE_VS
+#define SMAA_INCLUDE_VS 1
+#endif
+#ifndef SMAA_INCLUDE_PS
+#define SMAA_INCLUDE_PS 1
+#endif
+
+//-----------------------------------------------------------------------------
+// Texture Access Defines
+
+#ifndef SMAA_AREATEX_SELECT
+#if defined(SMAA_HLSL_3)
+#define SMAA_AREATEX_SELECT(sample) sample.ra
+#else
+#define SMAA_AREATEX_SELECT(sample) sample.rg
+#endif
+#endif
+
+#ifndef SMAA_SEARCHTEX_SELECT
+#define SMAA_SEARCHTEX_SELECT(sample) sample.r
+#endif
+
+#ifndef SMAA_DECODE_VELOCITY
+#define SMAA_DECODE_VELOCITY(sample) sample.rg
+#endif
+
+//-----------------------------------------------------------------------------
+// Non-Configurable Defines
+
+#define SMAA_AREATEX_MAX_DISTANCE 16
+#define SMAA_AREATEX_MAX_DISTANCE_DIAG 20
+#define SMAA_AREATEX_PIXEL_SIZE (1.0 / float2(160.0, 560.0))
+#define SMAA_AREATEX_SUBTEX_SIZE (1.0 / 7.0)
+#define SMAA_SEARCHTEX_SIZE float2(66.0, 33.0)
+#define SMAA_SEARCHTEX_PACKED_SIZE float2(64.0, 16.0)
+#define SMAA_CORNER_ROUNDING_NORM (float(SMAA_CORNER_ROUNDING) / 100.0)
+
+//-----------------------------------------------------------------------------
+// Porting Functions
+
+#if defined(SMAA_HLSL_3)
+#define SMAATexture2D(tex) sampler2D tex
+#define SMAATexturePass2D(tex) tex
+#define SMAASampleLevelZero(tex, coord) tex2Dlod(tex, float4(coord, 0.0, 0.0))
+#define SMAASampleLevelZeroPoint(tex, coord) tex2Dlod(tex, float4(coord, 0.0, 0.0))
+#define SMAASampleLevelZeroOffset(tex, coord, offset) tex2Dlod(tex, float4(coord + offset * SMAA_RT_METRICS.xy, 0.0, 0.0))
+#define SMAASample(tex, coord) tex2D(tex, coord)
+#define SMAASamplePoint(tex, coord) tex2D(tex, coord)
+#define SMAASampleOffset(tex, coord, offset) tex2D(tex, coord + offset * SMAA_RT_METRICS.xy)
+#define SMAA_FLATTEN [flatten]
+#define SMAA_BRANCH [branch]
+#endif
+#if defined(SMAA_HLSL_4) || defined(SMAA_HLSL_4_1)
+SamplerState LinearSampler { Filter = MIN_MAG_LINEAR_MIP_POINT; AddressU = Clamp; AddressV = Clamp; };
+SamplerState PointSampler { Filter = MIN_MAG_MIP_POINT; AddressU = Clamp; AddressV = Clamp; };
+#define SMAATexture2D(tex) Texture2D tex
+#define SMAATexturePass2D(tex) tex
+#define SMAASampleLevelZero(tex, coord) tex.SampleLevel(LinearSampler, coord, 0)
+#define SMAASampleLevelZeroPoint(tex, coord) tex.SampleLevel(PointSampler, coord, 0)
+#define SMAASampleLevelZeroOffset(tex, coord, offset) tex.SampleLevel(LinearSampler, coord, 0, offset)
+#define SMAASample(tex, coord) tex.Sample(LinearSampler, coord)
+#define SMAASamplePoint(tex, coord) tex.Sample(PointSampler, coord)
+#define SMAASampleOffset(tex, coord, offset) tex.Sample(LinearSampler, coord, offset)
+#define SMAA_FLATTEN [flatten]
+#define SMAA_BRANCH [branch]
+#define SMAATexture2DMS2(tex) Texture2DMS tex
+#define SMAALoad(tex, pos, sample) tex.Load(pos, sample)
+#if defined(SMAA_HLSL_4_1)
+#define SMAAGather(tex, coord) tex.Gather(LinearSampler, coord, 0)
+#endif
+#endif
+#if defined(SMAA_GLSL_3) || defined(SMAA_GLSL_4)
+#define SMAATexture2D(tex) sampler2D tex
+#define SMAATexturePass2D(tex) tex
+#define SMAASampleLevelZero(tex, coord) textureLod(tex, coord, 0.0)
+#define SMAASampleLevelZeroPoint(tex, coord) textureLod(tex, coord, 0.0)
+#define SMAASampleLevelZeroOffset(tex, coord, offset) textureLodOffset(tex, coord, 0.0, offset)
+#define SMAASample(tex, coord) texture(tex, coord)
+#define SMAASamplePoint(tex, coord) texture(tex, coord)
+#define SMAASampleOffset(tex, coord, offset) texture(tex, coord, offset)
+#define SMAA_FLATTEN
+#define SMAA_BRANCH
+#define lerp(a, b, t) mix(a, b, t)
+#define saturate(a) clamp(a, 0.0, 1.0)
+#if defined(SMAA_GLSL_4)
+#define mad(a, b, c) fma(a, b, c)
+#define SMAAGather(tex, coord) textureGather(tex, coord)
+#else
+#define mad(a, b, c) (a * b + c)
+#endif
+#define float2 vec2
+#define float3 vec3
+#define float4 vec4
+#define int2 ivec2
+#define int3 ivec3
+#define int4 ivec4
+#define bool2 bvec2
+#define bool3 bvec3
+#define bool4 bvec4
+#endif
+
+#if !defined(SMAA_HLSL_3) && !defined(SMAA_HLSL_4) && !defined(SMAA_HLSL_4_1) && !defined(SMAA_GLSL_3) && !defined(SMAA_GLSL_4) && !defined(SMAA_CUSTOM_SL)
+#error you must define the shading language: SMAA_HLSL_*, SMAA_GLSL_* or SMAA_CUSTOM_SL
+#endif
+
+//-----------------------------------------------------------------------------
+// Misc functions
+
+/**
+ * Gathers current pixel, and the top-left neighbors.
+ */
+float3 SMAAGatherNeighbours(float2 texcoord,
+ float4 offset[3],
+ SMAATexture2D(tex)) {
+ #ifdef SMAAGather
+ return SMAAGather(tex, texcoord + SMAA_RT_METRICS.xy * float2(-0.5, -0.5)).grb;
+ #else
+ float P = SMAASamplePoint(tex, texcoord).r;
+ float Pleft = SMAASamplePoint(tex, offset[0].xy).r;
+ float Ptop = SMAASamplePoint(tex, offset[0].zw).r;
+ return float3(P, Pleft, Ptop);
+ #endif
+}
+
+/**
+ * Adjusts the threshold by means of predication.
+ */
+float2 SMAACalculatePredicatedThreshold(float2 texcoord,
+ float4 offset[3],
+ SMAATexture2D(predicationTex)) {
+ float3 neighbours = SMAAGatherNeighbours(texcoord, offset, SMAATexturePass2D(predicationTex));
+ float2 delta = abs(neighbours.xx - neighbours.yz);
+ float2 edges = step(SMAA_PREDICATION_THRESHOLD, delta);
+ return SMAA_PREDICATION_SCALE * SMAA_THRESHOLD * (1.0 - SMAA_PREDICATION_STRENGTH * edges);
+}
+
+/**
+ * Conditional move:
+ */
+void SMAAMovc(bool2 cond, inout float2 variable, float2 value) {
+ SMAA_FLATTEN if (cond.x) variable.x = value.x;
+ SMAA_FLATTEN if (cond.y) variable.y = value.y;
+}
+
+void SMAAMovc(bool4 cond, inout float4 variable, float4 value) {
+ SMAAMovc(cond.xy, variable.xy, value.xy);
+ SMAAMovc(cond.zw, variable.zw, value.zw);
+}
+
+
+#if SMAA_INCLUDE_VS
+//-----------------------------------------------------------------------------
+// Vertex Shaders
+
+/**
+ * Edge Detection Vertex Shader
+ */
+void SMAAEdgeDetectionVS(float2 texcoord,
+ out float4 offset[3]) {
+ offset[0] = mad(SMAA_RT_METRICS.xyxy, float4(-1.0, 0.0, 0.0, -1.0), texcoord.xyxy);
+ offset[1] = mad(SMAA_RT_METRICS.xyxy, float4( 1.0, 0.0, 0.0, 1.0), texcoord.xyxy);
+ offset[2] = mad(SMAA_RT_METRICS.xyxy, float4(-2.0, 0.0, 0.0, -2.0), texcoord.xyxy);
+}
+
+/**
+ * Blend Weight Calculation Vertex Shader
+ */
+void SMAABlendingWeightCalculationVS(float2 texcoord,
+ out float2 pixcoord,
+ out float4 offset[3]) {
+ pixcoord = texcoord * SMAA_RT_METRICS.zw;
+
+ // We will use these offsets for the searches later on (see @PSEUDO_GATHER4):
+ offset[0] = mad(SMAA_RT_METRICS.xyxy, float4(-0.25, -0.125, 1.25, -0.125), texcoord.xyxy);
+ offset[1] = mad(SMAA_RT_METRICS.xyxy, float4(-0.125, -0.25, -0.125, 1.25), texcoord.xyxy);
+
+ // And these for the searches, they indicate the ends of the loops:
+ offset[2] = mad(SMAA_RT_METRICS.xxyy,
+ float4(-2.0, 2.0, -2.0, 2.0) * float(SMAA_MAX_SEARCH_STEPS),
+ float4(offset[0].xz, offset[1].yw));
+}
+
+/**
+ * Neighborhood Blending Vertex Shader
+ */
+void SMAANeighborhoodBlendingVS(float2 texcoord,
+ out float4 offset) {
+ offset = mad(SMAA_RT_METRICS.xyxy, float4( 1.0, 0.0, 0.0, 1.0), texcoord.xyxy);
+}
+#endif // SMAA_INCLUDE_VS
+
+#if SMAA_INCLUDE_PS
+//-----------------------------------------------------------------------------
+// Edge Detection Pixel Shaders (First Pass)
+
+/**
+ * Luma Edge Detection
+ *
+ * IMPORTANT NOTICE: luma edge detection requires gamma-corrected colors, and
+ * thus 'colorTex' should be a non-sRGB texture.
+ */
+float2 SMAALumaEdgeDetectionPS(float2 texcoord,
+ float4 offset[3],
+ SMAATexture2D(colorTex)
+ #if SMAA_PREDICATION
+ , SMAATexture2D(predicationTex)
+ #endif
+ ) {
+ // Calculate the threshold:
+ #if SMAA_PREDICATION
+ float2 threshold = SMAACalculatePredicatedThreshold(texcoord, offset, SMAATexturePass2D(predicationTex));
+ #else
+ float2 threshold = float2(SMAA_THRESHOLD, SMAA_THRESHOLD);
+ #endif
+
+ // Calculate lumas:
+ float3 weights = float3(0.2126, 0.7152, 0.0722);
+ float L = dot(SMAASamplePoint(colorTex, texcoord).rgb, weights);
+
+ float Lleft = dot(SMAASamplePoint(colorTex, offset[0].xy).rgb, weights);
+ float Ltop = dot(SMAASamplePoint(colorTex, offset[0].zw).rgb, weights);
+
+ // We do the usual threshold:
+ float4 delta;
+ delta.xy = abs(L - float2(Lleft, Ltop));
+ float2 edges = step(threshold, delta.xy);
+
+ // Then discard if there is no edge:
+ if (dot(edges, float2(1.0, 1.0)) == 0.0)
+ discard;
+
+ // Calculate right and bottom deltas:
+ float Lright = dot(SMAASamplePoint(colorTex, offset[1].xy).rgb, weights);
+ float Lbottom = dot(SMAASamplePoint(colorTex, offset[1].zw).rgb, weights);
+ delta.zw = abs(L - float2(Lright, Lbottom));
+
+ // Calculate the maximum delta in the direct neighborhood:
+ float2 maxDelta = max(delta.xy, delta.zw);
+
+ // Calculate left-left and top-top deltas:
+ float Lleftleft = dot(SMAASamplePoint(colorTex, offset[2].xy).rgb, weights);
+ float Ltoptop = dot(SMAASamplePoint(colorTex, offset[2].zw).rgb, weights);
+ delta.zw = abs(float2(Lleft, Ltop) - float2(Lleftleft, Ltoptop));
+
+ // Calculate the final maximum delta:
+ maxDelta = max(maxDelta.xy, delta.zw);
+ float finalDelta = max(maxDelta.x, maxDelta.y);
+
+ // Local contrast adaptation:
+ edges.xy *= step(finalDelta, SMAA_LOCAL_CONTRAST_ADAPTATION_FACTOR * delta.xy);
+
+ return edges;
+}
+
+/**
+ * Color Edge Detection
+ *
+ * IMPORTANT NOTICE: color edge detection requires gamma-corrected colors, and
+ * thus 'colorTex' should be a non-sRGB texture.
+ */
+float2 SMAAColorEdgeDetectionPS(float2 texcoord,
+ float4 offset[3],
+ SMAATexture2D(colorTex)
+ #if SMAA_PREDICATION
+ , SMAATexture2D(predicationTex)
+ #endif
+ ) {
+ // Calculate the threshold:
+ #if SMAA_PREDICATION
+ float2 threshold = SMAACalculatePredicatedThreshold(texcoord, offset, predicationTex);
+ #else
+ float2 threshold = float2(SMAA_THRESHOLD, SMAA_THRESHOLD);
+ #endif
+
+ // Calculate color deltas:
+ float4 delta;
+ float3 C = SMAASamplePoint(colorTex, texcoord).rgb;
+
+ float3 Cleft = SMAASamplePoint(colorTex, offset[0].xy).rgb;
+ float3 t = abs(C - Cleft);
+ delta.x = max(max(t.r, t.g), t.b);
+
+ float3 Ctop = SMAASamplePoint(colorTex, offset[0].zw).rgb;
+ t = abs(C - Ctop);
+ delta.y = max(max(t.r, t.g), t.b);
+
+ // We do the usual threshold:
+ float2 edges = step(threshold, delta.xy);
+
+ // Then discard if there is no edge:
+ if (dot(edges, float2(1.0, 1.0)) == 0.0)
+ discard;
+
+ // Calculate right and bottom deltas:
+ float3 Cright = SMAASamplePoint(colorTex, offset[1].xy).rgb;
+ t = abs(C - Cright);
+ delta.z = max(max(t.r, t.g), t.b);
+
+ float3 Cbottom = SMAASamplePoint(colorTex, offset[1].zw).rgb;
+ t = abs(C - Cbottom);
+ delta.w = max(max(t.r, t.g), t.b);
+
+ // Calculate the maximum delta in the direct neighborhood:
+ float2 maxDelta = max(delta.xy, delta.zw);
+
+ // Calculate left-left and top-top deltas:
+ float3 Cleftleft = SMAASamplePoint(colorTex, offset[2].xy).rgb;
+ t = abs(C - Cleftleft);
+ delta.z = max(max(t.r, t.g), t.b);
+
+ float3 Ctoptop = SMAASamplePoint(colorTex, offset[2].zw).rgb;
+ t = abs(C - Ctoptop);
+ delta.w = max(max(t.r, t.g), t.b);
+
+ // Calculate the final maximum delta:
+ maxDelta = max(maxDelta.xy, delta.zw);
+ float finalDelta = max(maxDelta.x, maxDelta.y);
+
+ // Local contrast adaptation:
+ edges.xy *= step(finalDelta, SMAA_LOCAL_CONTRAST_ADAPTATION_FACTOR * delta.xy);
+
+ return edges;
+}
+
+/**
+ * Depth Edge Detection
+ */
+float2 SMAADepthEdgeDetectionPS(float2 texcoord,
+ float4 offset[3],
+ SMAATexture2D(depthTex)) {
+ float3 neighbours = SMAAGatherNeighbours(texcoord, offset, SMAATexturePass2D(depthTex));
+ float2 delta = abs(neighbours.xx - float2(neighbours.y, neighbours.z));
+ float2 edges = step(SMAA_DEPTH_THRESHOLD, delta);
+
+ if (dot(edges, float2(1.0, 1.0)) == 0.0)
+ discard;
+
+ return edges;
+}
+
+//-----------------------------------------------------------------------------
+// Diagonal Search Functions
+
+#if !defined(SMAA_DISABLE_DIAG_DETECTION)
+
+/**
+ * Allows to decode two binary values from a bilinear-filtered access.
+ */
+float2 SMAADecodeDiagBilinearAccess(float2 e) {
+ // Bilinear access for fetching 'e' have a 0.25 offset, and we are
+ // interested in the R and G edges:
+ //
+ // +---G---+-------+
+ // | x o R x |
+ // +-------+-------+
+ //
+ // Then, if one of these edge is enabled:
+ // Red: (0.75 * X + 0.25 * 1) => 0.25 or 1.0
+ // Green: (0.75 * 1 + 0.25 * X) => 0.75 or 1.0
+ //
+ // This function will unpack the values (mad + mul + round):
+ // wolframalpha.com: round(x * abs(5 * x - 5 * 0.75)) plot 0 to 1
+ e.r = e.r * abs(5.0 * e.r - 5.0 * 0.75);
+ return round(e);
+}
+
+float4 SMAADecodeDiagBilinearAccess(float4 e) {
+ e.rb = e.rb * abs(5.0 * e.rb - 5.0 * 0.75);
+ return round(e);
+}
+
+/**
+ * These functions allows to perform diagonal pattern searches.
+ */
+float2 SMAASearchDiag1(SMAATexture2D(edgesTex), float2 texcoord, float2 dir, out float2 e) {
+ float4 coord = float4(texcoord, -1.0, 1.0);
+ float3 t = float3(SMAA_RT_METRICS.xy, 1.0);
+ while (coord.z < float(SMAA_MAX_SEARCH_STEPS_DIAG - 1) &&
+ coord.w > 0.9) {
+ coord.xyz = mad(t, float3(dir, 1.0), coord.xyz);
+ e = SMAASampleLevelZero(edgesTex, coord.xy).rg;
+ coord.w = dot(e, float2(0.5, 0.5));
+ }
+ return coord.zw;
+}
+
+float2 SMAASearchDiag2(SMAATexture2D(edgesTex), float2 texcoord, float2 dir, out float2 e) {
+ float4 coord = float4(texcoord, -1.0, 1.0);
+ coord.x += 0.25 * SMAA_RT_METRICS.x; // See @SearchDiag2Optimization
+ float3 t = float3(SMAA_RT_METRICS.xy, 1.0);
+ while (coord.z < float(SMAA_MAX_SEARCH_STEPS_DIAG - 1) &&
+ coord.w > 0.9) {
+ coord.xyz = mad(t, float3(dir, 1.0), coord.xyz);
+
+ // @SearchDiag2Optimization
+ // Fetch both edges at once using bilinear filtering:
+ e = SMAASampleLevelZero(edgesTex, coord.xy).rg;
+ e = SMAADecodeDiagBilinearAccess(e);
+
+ // Non-optimized version:
+ // e.g = SMAASampleLevelZero(edgesTex, coord.xy).g;
+ // e.r = SMAASampleLevelZeroOffset(edgesTex, coord.xy, int2(1, 0)).r;
+
+ coord.w = dot(e, float2(0.5, 0.5));
+ }
+ return coord.zw;
+}
+
+/**
+ * Similar to SMAAArea, this calculates the area corresponding to a certain
+ * diagonal distance and crossing edges 'e'.
+ */
+float2 SMAAAreaDiag(SMAATexture2D(areaTex), float2 dist, float2 e, float offset) {
+ float2 texcoord = mad(float2(SMAA_AREATEX_MAX_DISTANCE_DIAG, SMAA_AREATEX_MAX_DISTANCE_DIAG), e, dist);
+
+ // We do a scale and bias for mapping to texel space:
+ texcoord = mad(SMAA_AREATEX_PIXEL_SIZE, texcoord, 0.5 * SMAA_AREATEX_PIXEL_SIZE);
+
+ // Diagonal areas are on the second half of the texture:
+ texcoord.x += 0.5;
+
+ // Move to proper place, according to the subpixel offset:
+ texcoord.y += SMAA_AREATEX_SUBTEX_SIZE * offset;
+
+ // Do it!
+ return SMAA_AREATEX_SELECT(SMAASampleLevelZero(areaTex, texcoord));
+}
+
+/**
+ * This searches for diagonal patterns and returns the corresponding weights.
+ */
+float2 SMAACalculateDiagWeights(SMAATexture2D(edgesTex), SMAATexture2D(areaTex), float2 texcoord, float2 e, float4 subsampleIndices) {
+ float2 weights = float2(0.0, 0.0);
+
+ // Search for the line ends:
+ float4 d;
+ float2 end;
+ if (e.r > 0.0) {
+ d.xz = SMAASearchDiag1(SMAATexturePass2D(edgesTex), texcoord, float2(-1.0, 1.0), end);
+ d.x += float(end.y > 0.9);
+ } else
+ d.xz = float2(0.0, 0.0);
+ d.yw = SMAASearchDiag1(SMAATexturePass2D(edgesTex), texcoord, float2(1.0, -1.0), end);
+
+ SMAA_BRANCH
+ if (d.x + d.y > 2.0) { // d.x + d.y + 1 > 3
+ // Fetch the crossing edges:
+ float4 coords = mad(float4(-d.x + 0.25, d.x, d.y, -d.y - 0.25), SMAA_RT_METRICS.xyxy, texcoord.xyxy);
+ float4 c;
+ c.xy = SMAASampleLevelZeroOffset(edgesTex, coords.xy, int2(-1, 0)).rg;
+ c.zw = SMAASampleLevelZeroOffset(edgesTex, coords.zw, int2( 1, 0)).rg;
+ c.yxwz = SMAADecodeDiagBilinearAccess(c.xyzw);
+
+ // Non-optimized version:
+ // float4 coords = mad(float4(-d.x, d.x, d.y, -d.y), SMAA_RT_METRICS.xyxy, texcoord.xyxy);
+ // float4 c;
+ // c.x = SMAASampleLevelZeroOffset(edgesTex, coords.xy, int2(-1, 0)).g;
+ // c.y = SMAASampleLevelZeroOffset(edgesTex, coords.xy, int2( 0, 0)).r;
+ // c.z = SMAASampleLevelZeroOffset(edgesTex, coords.zw, int2( 1, 0)).g;
+ // c.w = SMAASampleLevelZeroOffset(edgesTex, coords.zw, int2( 1, -1)).r;
+
+ // Merge crossing edges at each side into a single value:
+ float2 cc = mad(float2(2.0, 2.0), c.xz, c.yw);
+
+ // Remove the crossing edge if we didn't found the end of the line:
+ SMAAMovc(bool2(step(0.9, d.zw)), cc, float2(0.0, 0.0));
+
+ // Fetch the areas for this line:
+ weights += SMAAAreaDiag(SMAATexturePass2D(areaTex), d.xy, cc, subsampleIndices.z);
+ }
+
+ // Search for the line ends:
+ d.xz = SMAASearchDiag2(SMAATexturePass2D(edgesTex), texcoord, float2(-1.0, -1.0), end);
+ if (SMAASampleLevelZeroOffset(edgesTex, texcoord, int2(1, 0)).r > 0.0) {
+ d.yw = SMAASearchDiag2(SMAATexturePass2D(edgesTex), texcoord, float2(1.0, 1.0), end);
+ d.y += float(end.y > 0.9);
+ } else
+ d.yw = float2(0.0, 0.0);
+
+ SMAA_BRANCH
+ if (d.x + d.y > 2.0) { // d.x + d.y + 1 > 3
+ // Fetch the crossing edges:
+ float4 coords = mad(float4(-d.x, -d.x, d.y, d.y), SMAA_RT_METRICS.xyxy, texcoord.xyxy);
+ float4 c;
+ c.x = SMAASampleLevelZeroOffset(edgesTex, coords.xy, int2(-1, 0)).g;
+ c.y = SMAASampleLevelZeroOffset(edgesTex, coords.xy, int2( 0, -1)).r;
+ c.zw = SMAASampleLevelZeroOffset(edgesTex, coords.zw, int2( 1, 0)).gr;
+ float2 cc = mad(float2(2.0, 2.0), c.xz, c.yw);
+
+ // Remove the crossing edge if we didn't found the end of the line:
+ SMAAMovc(bool2(step(0.9, d.zw)), cc, float2(0.0, 0.0));
+
+ // Fetch the areas for this line:
+ weights += SMAAAreaDiag(SMAATexturePass2D(areaTex), d.xy, cc, subsampleIndices.w).gr;
+ }
+
+ return weights;
+}
+#endif
+
+//-----------------------------------------------------------------------------
+// Horizontal/Vertical Search Functions
+
+/**
+ * This allows to determine how much length should we add in the last step
+ * of the searches. It takes the bilinearly interpolated edge (see
+ * @PSEUDO_GATHER4), and adds 0, 1 or 2, depending on which edges and
+ * crossing edges are active.
+ */
+float SMAASearchLength(SMAATexture2D(searchTex), float2 e, float offset) {
+ // The texture is flipped vertically, with left and right cases taking half
+ // of the space horizontally:
+ float2 scale = SMAA_SEARCHTEX_SIZE * float2(0.5, -1.0);
+ float2 bias = SMAA_SEARCHTEX_SIZE * float2(offset, 1.0);
+
+ // Scale and bias to access texel centers:
+ scale += float2(-1.0, 1.0);
+ bias += float2( 0.5, -0.5);
+
+ // Convert from pixel coordinates to texcoords:
+ // (We use SMAA_SEARCHTEX_PACKED_SIZE because the texture is cropped)
+ scale *= 1.0 / SMAA_SEARCHTEX_PACKED_SIZE;
+ bias *= 1.0 / SMAA_SEARCHTEX_PACKED_SIZE;
+
+ // Lookup the search texture:
+ return SMAA_SEARCHTEX_SELECT(SMAASampleLevelZero(searchTex, mad(scale, e, bias)));
+}
+
+/**
+ * Horizontal/vertical search functions for the 2nd pass.
+ */
+float SMAASearchXLeft(SMAATexture2D(edgesTex), SMAATexture2D(searchTex), float2 texcoord, float end) {
+ /**
+ * @PSEUDO_GATHER4
+ * This texcoord has been offset by (-0.25, -0.125) in the vertex shader to
+ * sample between edge, thus fetching four edges in a row.
+ * Sampling with different offsets in each direction allows to disambiguate
+ * which edges are active from the four fetched ones.
+ */
+ float2 e = float2(0.0, 1.0);
+ while (texcoord.x > end &&
+ e.g > 0.8281 && // Is there some edge not activated?
+ e.r == 0.0) { // Or is there a crossing edge that breaks the line?
+ e = SMAASampleLevelZero(edgesTex, texcoord).rg;
+ texcoord = mad(-float2(2.0, 0.0), SMAA_RT_METRICS.xy, texcoord);
+ }
+
+ float offset = mad(-(255.0 / 127.0), SMAASearchLength(SMAATexturePass2D(searchTex), e, 0.0), 3.25);
+ return mad(SMAA_RT_METRICS.x, offset, texcoord.x);
+
+ // Non-optimized version:
+ // We correct the previous (-0.25, -0.125) offset we applied:
+ // texcoord.x += 0.25 * SMAA_RT_METRICS.x;
+
+ // The searches are bias by 1, so adjust the coords accordingly:
+ // texcoord.x += SMAA_RT_METRICS.x;
+
+ // Disambiguate the length added by the last step:
+ // texcoord.x += 2.0 * SMAA_RT_METRICS.x; // Undo last step
+ // texcoord.x -= SMAA_RT_METRICS.x * (255.0 / 127.0) * SMAASearchLength(SMAATexturePass2D(searchTex), e, 0.0);
+ // return mad(SMAA_RT_METRICS.x, offset, texcoord.x);
+}
+
+float SMAASearchXRight(SMAATexture2D(edgesTex), SMAATexture2D(searchTex), float2 texcoord, float end) {
+ float2 e = float2(0.0, 1.0);
+ while (texcoord.x < end &&
+ e.g > 0.8281 && // Is there some edge not activated?
+ e.r == 0.0) { // Or is there a crossing edge that breaks the line?
+ e = SMAASampleLevelZero(edgesTex, texcoord).rg;
+ texcoord = mad(float2(2.0, 0.0), SMAA_RT_METRICS.xy, texcoord);
+ }
+ float offset = mad(-(255.0 / 127.0), SMAASearchLength(SMAATexturePass2D(searchTex), e, 0.5), 3.25);
+ return mad(-SMAA_RT_METRICS.x, offset, texcoord.x);
+}
+
+float SMAASearchYUp(SMAATexture2D(edgesTex), SMAATexture2D(searchTex), float2 texcoord, float end) {
+ float2 e = float2(1.0, 0.0);
+ while (texcoord.y > end &&
+ e.r > 0.8281 && // Is there some edge not activated?
+ e.g == 0.0) { // Or is there a crossing edge that breaks the line?
+ e = SMAASampleLevelZero(edgesTex, texcoord).rg;
+ texcoord = mad(-float2(0.0, 2.0), SMAA_RT_METRICS.xy, texcoord);
+ }
+ float offset = mad(-(255.0 / 127.0), SMAASearchLength(SMAATexturePass2D(searchTex), e.gr, 0.0), 3.25);
+ return mad(SMAA_RT_METRICS.y, offset, texcoord.y);
+}
+
+float SMAASearchYDown(SMAATexture2D(edgesTex), SMAATexture2D(searchTex), float2 texcoord, float end) {
+ float2 e = float2(1.0, 0.0);
+ while (texcoord.y < end &&
+ e.r > 0.8281 && // Is there some edge not activated?
+ e.g == 0.0) { // Or is there a crossing edge that breaks the line?
+ e = SMAASampleLevelZero(edgesTex, texcoord).rg;
+ texcoord = mad(float2(0.0, 2.0), SMAA_RT_METRICS.xy, texcoord);
+ }
+ float offset = mad(-(255.0 / 127.0), SMAASearchLength(SMAATexturePass2D(searchTex), e.gr, 0.5), 3.25);
+ return mad(-SMAA_RT_METRICS.y, offset, texcoord.y);
+}
+
+/**
+ * Ok, we have the distance and both crossing edges. So, what are the areas
+ * at each side of current edge?
+ */
+float2 SMAAArea(SMAATexture2D(areaTex), float2 dist, float e1, float e2, float offset) {
+ // Rounding prevents precision errors of bilinear filtering:
+ float2 texcoord = mad(float2(SMAA_AREATEX_MAX_DISTANCE, SMAA_AREATEX_MAX_DISTANCE), round(4.0 * float2(e1, e2)), dist);
+
+ // We do a scale and bias for mapping to texel space:
+ texcoord = mad(SMAA_AREATEX_PIXEL_SIZE, texcoord, 0.5 * SMAA_AREATEX_PIXEL_SIZE);
+
+ // Move to proper place, according to the subpixel offset:
+ texcoord.y = mad(SMAA_AREATEX_SUBTEX_SIZE, offset, texcoord.y);
+
+ // Do it!
+ return SMAA_AREATEX_SELECT(SMAASampleLevelZero(areaTex, texcoord));
+}
+
+//-----------------------------------------------------------------------------
+// Corner Detection Functions
+
+void SMAADetectHorizontalCornerPattern(SMAATexture2D(edgesTex), inout float2 weights, float4 texcoord, float2 d) {
+ #if !defined(SMAA_DISABLE_CORNER_DETECTION)
+ float2 leftRight = step(d.xy, d.yx);
+ float2 rounding = (1.0 - SMAA_CORNER_ROUNDING_NORM) * leftRight;
+
+ rounding /= leftRight.x + leftRight.y; // Reduce blending for pixels in the center of a line.
+
+ float2 factor = float2(1.0, 1.0);
+ factor.x -= rounding.x * SMAASampleLevelZeroOffset(edgesTex, texcoord.xy, int2(0, 1)).r;
+ factor.x -= rounding.y * SMAASampleLevelZeroOffset(edgesTex, texcoord.zw, int2(1, 1)).r;
+ factor.y -= rounding.x * SMAASampleLevelZeroOffset(edgesTex, texcoord.xy, int2(0, -2)).r;
+ factor.y -= rounding.y * SMAASampleLevelZeroOffset(edgesTex, texcoord.zw, int2(1, -2)).r;
+
+ weights *= saturate(factor);
+ #endif
+}
+
+void SMAADetectVerticalCornerPattern(SMAATexture2D(edgesTex), inout float2 weights, float4 texcoord, float2 d) {
+ #if !defined(SMAA_DISABLE_CORNER_DETECTION)
+ float2 leftRight = step(d.xy, d.yx);
+ float2 rounding = (1.0 - SMAA_CORNER_ROUNDING_NORM) * leftRight;
+
+ rounding /= leftRight.x + leftRight.y;
+
+ float2 factor = float2(1.0, 1.0);
+ factor.x -= rounding.x * SMAASampleLevelZeroOffset(edgesTex, texcoord.xy, int2( 1, 0)).g;
+ factor.x -= rounding.y * SMAASampleLevelZeroOffset(edgesTex, texcoord.zw, int2( 1, 1)).g;
+ factor.y -= rounding.x * SMAASampleLevelZeroOffset(edgesTex, texcoord.xy, int2(-2, 0)).g;
+ factor.y -= rounding.y * SMAASampleLevelZeroOffset(edgesTex, texcoord.zw, int2(-2, 1)).g;
+
+ weights *= saturate(factor);
+ #endif
+}
+
+//-----------------------------------------------------------------------------
+// Blending Weight Calculation Pixel Shader (Second Pass)
+
+float4 SMAABlendingWeightCalculationPS(float2 texcoord,
+ float2 pixcoord,
+ float4 offset[3],
+ SMAATexture2D(edgesTex),
+ SMAATexture2D(areaTex),
+ SMAATexture2D(searchTex),
+ float4 subsampleIndices) { // Just pass zero for SMAA 1x, see @SUBSAMPLE_INDICES.
+ float4 weights = float4(0.0, 0.0, 0.0, 0.0);
+
+ float2 e = SMAASample(edgesTex, texcoord).rg;
+
+ SMAA_BRANCH
+ if (e.g > 0.0) { // Edge at north
+ #if !defined(SMAA_DISABLE_DIAG_DETECTION)
+ // Diagonals have both north and west edges, so searching for them in
+ // one of the boundaries is enough.
+ weights.rg = SMAACalculateDiagWeights(SMAATexturePass2D(edgesTex), SMAATexturePass2D(areaTex), texcoord, e, subsampleIndices);
+
+ // We give priority to diagonals, so if we find a diagonal we skip
+ // horizontal/vertical processing.
+ SMAA_BRANCH
+ if (weights.r == -weights.g) { // weights.r + weights.g == 0.0
+ #endif
+
+ float2 d;
+
+ // Find the distance to the left:
+ float3 coords;
+ coords.x = SMAASearchXLeft(SMAATexturePass2D(edgesTex), SMAATexturePass2D(searchTex), offset[0].xy, offset[2].x);
+ coords.y = offset[1].y; // offset[1].y = texcoord.y - 0.25 * SMAA_RT_METRICS.y (@CROSSING_OFFSET)
+ d.x = coords.x;
+
+ // Now fetch the left crossing edges, two at a time using bilinear
+ // filtering. Sampling at -0.25 (see @CROSSING_OFFSET) enables to
+ // discern what value each edge has:
+ float e1 = SMAASampleLevelZero(edgesTex, coords.xy).r;
+
+ // Find the distance to the right:
+ coords.z = SMAASearchXRight(SMAATexturePass2D(edgesTex), SMAATexturePass2D(searchTex), offset[0].zw, offset[2].y);
+ d.y = coords.z;
+
+ // We want the distances to be in pixel units (doing this here allow to
+ // better interleave arithmetic and memory accesses):
+ d = abs(round(mad(SMAA_RT_METRICS.zz, d, -pixcoord.xx)));
+
+ // SMAAArea below needs a sqrt, as the areas texture is compressed
+ // quadratically:
+ float2 sqrt_d = sqrt(d);
+
+ // Fetch the right crossing edges:
+ float e2 = SMAASampleLevelZeroOffset(edgesTex, coords.zy, int2(1, 0)).r;
+
+ // Ok, we know how this pattern looks like, now it is time for getting
+ // the actual area:
+ weights.rg = SMAAArea(SMAATexturePass2D(areaTex), sqrt_d, e1, e2, subsampleIndices.y);
+
+ // Fix corners:
+ coords.y = texcoord.y;
+ SMAADetectHorizontalCornerPattern(SMAATexturePass2D(edgesTex), weights.rg, coords.xyzy, d);
+
+ #if !defined(SMAA_DISABLE_DIAG_DETECTION)
+ } else
+ e.r = 0.0; // Skip vertical processing.
+ #endif
+ }
+
+ SMAA_BRANCH
+ if (e.r > 0.0) { // Edge at west
+ float2 d;
+
+ // Find the distance to the top:
+ float3 coords;
+ coords.y = SMAASearchYUp(SMAATexturePass2D(edgesTex), SMAATexturePass2D(searchTex), offset[1].xy, offset[2].z);
+ coords.x = offset[0].x; // offset[1].x = texcoord.x - 0.25 * SMAA_RT_METRICS.x;
+ d.x = coords.y;
+
+ // Fetch the top crossing edges:
+ float e1 = SMAASampleLevelZero(edgesTex, coords.xy).g;
+
+ // Find the distance to the bottom:
+ coords.z = SMAASearchYDown(SMAATexturePass2D(edgesTex), SMAATexturePass2D(searchTex), offset[1].zw, offset[2].w);
+ d.y = coords.z;
+
+ // We want the distances to be in pixel units:
+ d = abs(round(mad(SMAA_RT_METRICS.ww, d, -pixcoord.yy)));
+
+ // SMAAArea below needs a sqrt, as the areas texture is compressed
+ // quadratically:
+ float2 sqrt_d = sqrt(d);
+
+ // Fetch the bottom crossing edges:
+ float e2 = SMAASampleLevelZeroOffset(edgesTex, coords.xz, int2(0, 1)).g;
+
+ // Get the area for this direction:
+ weights.ba = SMAAArea(SMAATexturePass2D(areaTex), sqrt_d, e1, e2, subsampleIndices.x);
+
+ // Fix corners:
+ coords.x = texcoord.x;
+ SMAADetectVerticalCornerPattern(SMAATexturePass2D(edgesTex), weights.ba, coords.xyxz, d);
+ }
+
+ return weights;
+}
+
+//-----------------------------------------------------------------------------
+// Neighborhood Blending Pixel Shader (Third Pass)
+
+float4 SMAANeighborhoodBlendingPS(float2 texcoord,
+ float4 offset,
+ SMAATexture2D(colorTex),
+ SMAATexture2D(blendTex)
+ #if SMAA_REPROJECTION
+ , SMAATexture2D(velocityTex)
+ #endif
+ ) {
+ // Fetch the blending weights for current pixel:
+ float4 a;
+ a.x = SMAASample(blendTex, offset.xy).a; // Right
+ a.y = SMAASample(blendTex, offset.zw).g; // Top
+ a.wz = SMAASample(blendTex, texcoord).xz; // Bottom / Left
+
+ // Is there any blending weight with a value greater than 0.0?
+ SMAA_BRANCH
+ if (dot(a, float4(1.0, 1.0, 1.0, 1.0)) < 1e-5) {
+ float4 color = SMAASampleLevelZero(colorTex, texcoord);
+
+ #if SMAA_REPROJECTION
+ float2 velocity = SMAA_DECODE_VELOCITY(SMAASampleLevelZero(velocityTex, texcoord));
+
+ // Pack velocity into the alpha channel:
+ color.a = sqrt(5.0 * length(velocity));
+ #endif
+
+ return color;
+ } else {
+ bool h = max(a.x, a.z) > max(a.y, a.w); // max(horizontal) > max(vertical)
+
+ // Calculate the blending offsets:
+ float4 blendingOffset = float4(0.0, a.y, 0.0, a.w);
+ float2 blendingWeight = a.yw;
+ SMAAMovc(bool4(h, h, h, h), blendingOffset, float4(a.x, 0.0, a.z, 0.0));
+ SMAAMovc(bool2(h, h), blendingWeight, a.xz);
+ blendingWeight /= dot(blendingWeight, float2(1.0, 1.0));
+
+ // Calculate the texture coordinates:
+ float4 blendingCoord = mad(blendingOffset, float4(SMAA_RT_METRICS.xy, -SMAA_RT_METRICS.xy), texcoord.xyxy);
+
+ // We exploit bilinear filtering to mix current pixel with the chosen
+ // neighbor:
+ float4 color = blendingWeight.x * SMAASampleLevelZero(colorTex, blendingCoord.xy);
+ color += blendingWeight.y * SMAASampleLevelZero(colorTex, blendingCoord.zw);
+
+ #if SMAA_REPROJECTION
+ // Antialias velocity for proper reprojection in a later stage:
+ float2 velocity = blendingWeight.x * SMAA_DECODE_VELOCITY(SMAASampleLevelZero(velocityTex, blendingCoord.xy));
+ velocity += blendingWeight.y * SMAA_DECODE_VELOCITY(SMAASampleLevelZero(velocityTex, blendingCoord.zw));
+
+ // Pack velocity into the alpha channel:
+ color.a = sqrt(5.0 * length(velocity));
+ #endif
+
+ return color;
+ }
+}
+
+//-----------------------------------------------------------------------------
+// Temporal Resolve Pixel Shader (Optional Pass)
+
+float4 SMAAResolvePS(float2 texcoord,
+ SMAATexture2D(currentColorTex),
+ SMAATexture2D(previousColorTex)
+ #if SMAA_REPROJECTION
+ , SMAATexture2D(velocityTex)
+ #endif
+ ) {
+ #if SMAA_REPROJECTION
+ // Velocity is assumed to be calculated for motion blur, so we need to
+ // inverse it for reprojection:
+ float2 velocity = -SMAA_DECODE_VELOCITY(SMAASamplePoint(velocityTex, texcoord).rg);
+
+ // Fetch current pixel:
+ float4 current = SMAASamplePoint(currentColorTex, texcoord);
+
+ // Reproject current coordinates and fetch previous pixel:
+ float4 previous = SMAASamplePoint(previousColorTex, texcoord + velocity);
+
+ // Attenuate the previous pixel if the velocity is different:
+ float delta = abs(current.a * current.a - previous.a * previous.a) / 5.0;
+ float weight = 0.5 * saturate(1.0 - sqrt(delta) * SMAA_REPROJECTION_WEIGHT_SCALE);
+
+ // Blend the pixels according to the calculated weight:
+ return lerp(current, previous, weight);
+ #else
+ // Just blend the pixels:
+ float4 current = SMAASamplePoint(currentColorTex, texcoord);
+ float4 previous = SMAASamplePoint(previousColorTex, texcoord);
+ return lerp(current, previous, 0.5);
+ #endif
+}
+
+//-----------------------------------------------------------------------------
+// Separate Multisamples Pixel Shader (Optional Pass)
+
+#ifdef SMAALoad
+void SMAASeparatePS(float4 position,
+ float2 texcoord,
+ out float4 target0,
+ out float4 target1,
+ SMAATexture2DMS2(colorTexMS)) {
+ int2 pos = int2(position.xy);
+ target0 = SMAALoad(colorTexMS, pos, 0);
+ target1 = SMAALoad(colorTexMS, pos, 1);
+}
+#endif
+
+//-----------------------------------------------------------------------------
+#endif // SMAA_INCLUDE_PS
diff --git a/app/src/main/cpp/shaders/THIRD_PARTY_NOTICES.txt b/app/src/main/cpp/shaders/THIRD_PARTY_NOTICES.txt
index 761743c464..ffbc6b370b 100644
--- a/app/src/main/cpp/shaders/THIRD_PARTY_NOTICES.txt
+++ b/app/src/main/cpp/shaders/THIRD_PARTY_NOTICES.txt
@@ -124,3 +124,33 @@ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
+
+SMAA (Enhanced Subpixel Morphological Antialiasing)
+---------------------------------------------------
+SMAA.hlsl and the lookup tables in smaa_tables.h are from the authors' reference
+implementation (github.com/iryoku/smaa).
+
+Copyright (C) 2013 Jorge Jimenez (jorge@iryoku.com)
+Copyright (C) 2013 Jose I. Echevarria (joseignacioechevarria@gmail.com)
+Copyright (C) 2013 Belen Masia (bmasia@unizar.es)
+Copyright (C) 2013 Fernando Navarro (fernandn@microsoft.com)
+Copyright (C) 2013 Diego Gutierrez (diegog@unizar.es)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software. As clarification, there is no
+requirement that the copyright notice and permission be included in binary
+distributions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/app/src/main/cpp/shaders/smaa_blend.frag b/app/src/main/cpp/shaders/smaa_blend.frag
index cf4a2302a6..cd36894637 100644
--- a/app/src/main/cpp/shaders/smaa_blend.frag
+++ b/app/src/main/cpp/shaders/smaa_blend.frag
@@ -1,4 +1,5 @@
#version 450
+#extension GL_GOOGLE_include_directive : require
layout(location = 0) in vec2 fragTexCoord;
layout(location = 0) out vec4 outColor;
@@ -6,25 +7,16 @@ layout(set = 0, binding = 0) uniform sampler2D InputTexture;
layout(set = 1, binding = 0) uniform sampler2D WeightTexture;
layout(push_constant) uniform Constants {
vec4 ndc;
- vec2 resolution;
- float extra;
- float pad;
+ vec4 metrics; // 1/width, 1/height, width, height
} pc;
+#define SMAA_RT_METRICS pc.metrics
+#define SMAA_GLSL_4
+#define SMAA_PRESET_HIGH
+#include "SMAA.hlsl"
+
void main() {
- vec2 px = 1.0 / max(pc.resolution, vec2(1.0));
- vec2 uv = clamp(fragTexCoord, px * 0.5, vec2(1.0) - px * 0.5);
- vec4 center = texture(InputTexture, uv);
- vec4 weights = texture(WeightTexture, uv);
- float weight = clamp(weights.r, 0.0, 0.42);
-
- if (weight <= 0.001) {
- outColor = center;
- return;
- }
-
- vec2 normal = weights.gb * 2.0 - 1.0;
- vec2 acrossUv = clamp(uv + normal * px, px * 0.5, vec2(1.0) - px * 0.5);
- vec3 across = texture(InputTexture, acrossUv).rgb;
- outColor = vec4(mix(center.rgb, across, weight), center.a);
+ vec4 offset;
+ SMAANeighborhoodBlendingVS(fragTexCoord, offset);
+ outColor = SMAANeighborhoodBlendingPS(fragTexCoord, offset, InputTexture, WeightTexture);
}
diff --git a/app/src/main/cpp/shaders/smaa_blend_frag.h b/app/src/main/cpp/shaders/smaa_blend_frag.h
index bcb4749618..55ca213931 100644
--- a/app/src/main/cpp/shaders/smaa_blend_frag.h
+++ b/app/src/main/cpp/shaders/smaa_blend_frag.h
@@ -1,88 +1,204 @@
- // 1116.3.0
+ // 1116.6.0
#pragma once
const uint32_t smaa_blend_code[] = {
- 0x07230203,0x00010000,0x0008000b,0x0000006b,0x00000000,0x00020011,0x00000001,0x0006000b,
+ 0x07230203,0x00010000,0x0008000b,0x000000f8,0x00000000,0x00020011,0x00000001,0x0006000b,
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
- 0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x0000001a,0x00000041,0x00030010,
- 0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,
- 0x00000000,0x00030005,0x00000009,0x00007870,0x00050005,0x0000000c,0x736e6f43,0x746e6174,
- 0x00000073,0x00040006,0x0000000c,0x00000000,0x0063646e,0x00060006,0x0000000c,0x00000001,
- 0x6f736572,0x6974756c,0x00006e6f,0x00050006,0x0000000c,0x00000002,0x72747865,0x00000061,
- 0x00040006,0x0000000c,0x00000003,0x00646170,0x00030005,0x0000000e,0x00006370,0x00030005,
- 0x00000018,0x00007675,0x00060005,0x0000001a,0x67617266,0x43786554,0x64726f6f,0x00000000,
- 0x00040005,0x00000024,0x746e6563,0x00007265,0x00060005,0x00000028,0x75706e49,0x78655474,
- 0x65727574,0x00000000,0x00040005,0x0000002c,0x67696577,0x00737468,0x00060005,0x0000002d,
- 0x67696557,0x65547468,0x72757478,0x00000065,0x00040005,0x00000032,0x67696577,0x00007468,
- 0x00050005,0x00000041,0x4374756f,0x726f6c6f,0x00000000,0x00040005,0x00000044,0x6d726f6e,
- 0x00006c61,0x00050005,0x0000004b,0x6f726361,0x76557373,0x00000000,0x00040005,0x00000059,
- 0x6f726361,0x00007373,0x00030047,0x0000000c,0x00000002,0x00050048,0x0000000c,0x00000000,
- 0x00000023,0x00000000,0x00050048,0x0000000c,0x00000001,0x00000023,0x00000010,0x00050048,
- 0x0000000c,0x00000002,0x00000023,0x00000018,0x00050048,0x0000000c,0x00000003,0x00000023,
- 0x0000001c,0x00040047,0x0000001a,0x0000001e,0x00000000,0x00040047,0x00000028,0x00000021,
- 0x00000000,0x00040047,0x00000028,0x00000022,0x00000000,0x00040047,0x0000002d,0x00000021,
- 0x00000000,0x00040047,0x0000002d,0x00000022,0x00000001,0x00040047,0x00000041,0x0000001e,
- 0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,0x00000006,
- 0x00000020,0x00040017,0x00000007,0x00000006,0x00000002,0x00040020,0x00000008,0x00000007,
- 0x00000007,0x0004002b,0x00000006,0x0000000a,0x3f800000,0x00040017,0x0000000b,0x00000006,
- 0x00000004,0x0006001e,0x0000000c,0x0000000b,0x00000007,0x00000006,0x00000006,0x00040020,
- 0x0000000d,0x00000009,0x0000000c,0x0004003b,0x0000000d,0x0000000e,0x00000009,0x00040015,
- 0x0000000f,0x00000020,0x00000001,0x0004002b,0x0000000f,0x00000010,0x00000001,0x00040020,
- 0x00000011,0x00000009,0x00000007,0x0005002c,0x00000007,0x00000014,0x0000000a,0x0000000a,
- 0x00040020,0x00000019,0x00000001,0x00000007,0x0004003b,0x00000019,0x0000001a,0x00000001,
- 0x0004002b,0x00000006,0x0000001d,0x3f000000,0x00040020,0x00000023,0x00000007,0x0000000b,
- 0x00090019,0x00000025,0x00000006,0x00000001,0x00000000,0x00000000,0x00000000,0x00000001,
- 0x00000000,0x0003001b,0x00000026,0x00000025,0x00040020,0x00000027,0x00000000,0x00000026,
- 0x0004003b,0x00000027,0x00000028,0x00000000,0x0004003b,0x00000027,0x0000002d,0x00000000,
- 0x00040020,0x00000031,0x00000007,0x00000006,0x00040015,0x00000033,0x00000020,0x00000000,
- 0x0004002b,0x00000033,0x00000034,0x00000000,0x0004002b,0x00000006,0x00000037,0x00000000,
- 0x0004002b,0x00000006,0x00000038,0x3ed70a3d,0x0004002b,0x00000006,0x0000003b,0x3a83126f,
- 0x00020014,0x0000003c,0x00040020,0x00000040,0x00000003,0x0000000b,0x0004003b,0x00000040,
- 0x00000041,0x00000003,0x0004002b,0x00000006,0x00000047,0x40000000,0x00040017,0x00000057,
- 0x00000006,0x00000003,0x00040020,0x00000058,0x00000007,0x00000057,0x0004002b,0x00000033,
- 0x00000064,0x00000003,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,
- 0x00000005,0x0004003b,0x00000008,0x00000009,0x00000007,0x0004003b,0x00000008,0x00000018,
- 0x00000007,0x0004003b,0x00000023,0x00000024,0x00000007,0x0004003b,0x00000023,0x0000002c,
- 0x00000007,0x0004003b,0x00000031,0x00000032,0x00000007,0x0004003b,0x00000008,0x00000044,
- 0x00000007,0x0004003b,0x00000008,0x0000004b,0x00000007,0x0004003b,0x00000058,0x00000059,
- 0x00000007,0x00050041,0x00000011,0x00000012,0x0000000e,0x00000010,0x0004003d,0x00000007,
- 0x00000013,0x00000012,0x0007000c,0x00000007,0x00000015,0x00000001,0x00000028,0x00000013,
- 0x00000014,0x00050050,0x00000007,0x00000016,0x0000000a,0x0000000a,0x00050088,0x00000007,
- 0x00000017,0x00000016,0x00000015,0x0003003e,0x00000009,0x00000017,0x0004003d,0x00000007,
- 0x0000001b,0x0000001a,0x0004003d,0x00000007,0x0000001c,0x00000009,0x0005008e,0x00000007,
- 0x0000001e,0x0000001c,0x0000001d,0x0004003d,0x00000007,0x0000001f,0x00000009,0x0005008e,
- 0x00000007,0x00000020,0x0000001f,0x0000001d,0x00050083,0x00000007,0x00000021,0x00000014,
- 0x00000020,0x0008000c,0x00000007,0x00000022,0x00000001,0x0000002b,0x0000001b,0x0000001e,
- 0x00000021,0x0003003e,0x00000018,0x00000022,0x0004003d,0x00000026,0x00000029,0x00000028,
- 0x0004003d,0x00000007,0x0000002a,0x00000018,0x00050057,0x0000000b,0x0000002b,0x00000029,
- 0x0000002a,0x0003003e,0x00000024,0x0000002b,0x0004003d,0x00000026,0x0000002e,0x0000002d,
- 0x0004003d,0x00000007,0x0000002f,0x00000018,0x00050057,0x0000000b,0x00000030,0x0000002e,
- 0x0000002f,0x0003003e,0x0000002c,0x00000030,0x00050041,0x00000031,0x00000035,0x0000002c,
- 0x00000034,0x0004003d,0x00000006,0x00000036,0x00000035,0x0008000c,0x00000006,0x00000039,
- 0x00000001,0x0000002b,0x00000036,0x00000037,0x00000038,0x0003003e,0x00000032,0x00000039,
- 0x0004003d,0x00000006,0x0000003a,0x00000032,0x000500bc,0x0000003c,0x0000003d,0x0000003a,
- 0x0000003b,0x000300f7,0x0000003f,0x00000000,0x000400fa,0x0000003d,0x0000003e,0x0000003f,
- 0x000200f8,0x0000003e,0x0004003d,0x0000000b,0x00000042,0x00000024,0x0003003e,0x00000041,
- 0x00000042,0x000100fd,0x000200f8,0x0000003f,0x0004003d,0x0000000b,0x00000045,0x0000002c,
- 0x0007004f,0x00000007,0x00000046,0x00000045,0x00000045,0x00000001,0x00000002,0x0005008e,
- 0x00000007,0x00000048,0x00000046,0x00000047,0x00050050,0x00000007,0x00000049,0x0000000a,
- 0x0000000a,0x00050083,0x00000007,0x0000004a,0x00000048,0x00000049,0x0003003e,0x00000044,
- 0x0000004a,0x0004003d,0x00000007,0x0000004c,0x00000018,0x0004003d,0x00000007,0x0000004d,
- 0x00000044,0x0004003d,0x00000007,0x0000004e,0x00000009,0x00050085,0x00000007,0x0000004f,
- 0x0000004d,0x0000004e,0x00050081,0x00000007,0x00000050,0x0000004c,0x0000004f,0x0004003d,
- 0x00000007,0x00000051,0x00000009,0x0005008e,0x00000007,0x00000052,0x00000051,0x0000001d,
- 0x0004003d,0x00000007,0x00000053,0x00000009,0x0005008e,0x00000007,0x00000054,0x00000053,
- 0x0000001d,0x00050083,0x00000007,0x00000055,0x00000014,0x00000054,0x0008000c,0x00000007,
- 0x00000056,0x00000001,0x0000002b,0x00000050,0x00000052,0x00000055,0x0003003e,0x0000004b,
- 0x00000056,0x0004003d,0x00000026,0x0000005a,0x00000028,0x0004003d,0x00000007,0x0000005b,
- 0x0000004b,0x00050057,0x0000000b,0x0000005c,0x0000005a,0x0000005b,0x0008004f,0x00000057,
- 0x0000005d,0x0000005c,0x0000005c,0x00000000,0x00000001,0x00000002,0x0003003e,0x00000059,
- 0x0000005d,0x0004003d,0x0000000b,0x0000005e,0x00000024,0x0008004f,0x00000057,0x0000005f,
- 0x0000005e,0x0000005e,0x00000000,0x00000001,0x00000002,0x0004003d,0x00000057,0x00000060,
- 0x00000059,0x0004003d,0x00000006,0x00000061,0x00000032,0x00060050,0x00000057,0x00000062,
- 0x00000061,0x00000061,0x00000061,0x0008000c,0x00000057,0x00000063,0x00000001,0x0000002e,
- 0x0000005f,0x00000060,0x00000062,0x00050041,0x00000031,0x00000065,0x00000024,0x00000064,
- 0x0004003d,0x00000006,0x00000066,0x00000065,0x00050051,0x00000006,0x00000067,0x00000063,
- 0x00000000,0x00050051,0x00000006,0x00000068,0x00000063,0x00000001,0x00050051,0x00000006,
- 0x00000069,0x00000063,0x00000002,0x00070050,0x0000000b,0x0000006a,0x00000067,0x00000068,
- 0x00000069,0x00000066,0x0003003e,0x00000041,0x0000006a,0x000100fd,0x00010038
+ 0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x000000e8,0x000000f0,0x00030010,
+ 0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x000a0004,0x475f4c47,0x4c474f4f,
+ 0x70635f45,0x74735f70,0x5f656c79,0x656e696c,0x7269645f,0x69746365,0x00006576,0x00080004,
+ 0x475f4c47,0x4c474f4f,0x6e695f45,0x64756c63,0x69645f65,0x74636572,0x00657669,0x00040005,
+ 0x00000004,0x6e69616d,0x00000000,0x00080005,0x00000010,0x41414d53,0x63766f4d,0x32627628,
+ 0x3266763b,0x3266763b,0x0000003b,0x00040005,0x0000000d,0x646e6f63,0x00000000,0x00050005,
+ 0x0000000e,0x69726176,0x656c6261,0x00000000,0x00040005,0x0000000f,0x756c6176,0x00000065,
+ 0x00080005,0x0000001a,0x41414d53,0x63766f4d,0x34627628,0x3466763b,0x3466763b,0x0000003b,
+ 0x00040005,0x00000017,0x646e6f63,0x00000000,0x00050005,0x00000018,0x69726176,0x656c6261,
+ 0x00000000,0x00040005,0x00000019,0x756c6176,0x00000065,0x000b0005,0x0000001f,0x41414d53,
+ 0x6769654e,0x726f6268,0x646f6f68,0x6e656c42,0x676e6964,0x76285356,0x763b3266,0x003b3466,
+ 0x00050005,0x0000001d,0x63786574,0x64726f6f,0x00000000,0x00040005,0x0000001e,0x7366666f,
+ 0x00007465,0x000d0005,0x00000029,0x41414d53,0x6769654e,0x726f6268,0x646f6f68,0x6e656c42,
+ 0x676e6964,0x76285350,0x763b3266,0x733b3466,0x733b3132,0x003b3132,0x00050005,0x00000025,
+ 0x63786574,0x64726f6f,0x00000000,0x00040005,0x00000026,0x7366666f,0x00007465,0x00050005,
+ 0x00000027,0x6f6c6f63,0x78655472,0x00000000,0x00050005,0x00000028,0x6e656c62,0x78655464,
+ 0x00000000,0x00040005,0x0000003e,0x61726170,0x0000006d,0x00040005,0x00000041,0x61726170,
+ 0x0000006d,0x00040005,0x00000044,0x61726170,0x0000006d,0x00040005,0x0000004d,0x61726170,
+ 0x0000006d,0x00040005,0x00000050,0x61726170,0x0000006d,0x00040005,0x00000053,0x61726170,
+ 0x0000006d,0x00050005,0x0000005e,0x736e6f43,0x746e6174,0x00000073,0x00040006,0x0000005e,
+ 0x00000000,0x0063646e,0x00050006,0x0000005e,0x00000001,0x7274656d,0x00736369,0x00030005,
+ 0x00000060,0x00006370,0x00030005,0x0000006d,0x00000061,0x00040005,0x00000089,0x6f6c6f63,
+ 0x00000072,0x00030005,0x00000090,0x00000068,0x00060005,0x0000009c,0x6e656c62,0x676e6964,
+ 0x7366664f,0x00007465,0x00060005,0x000000a2,0x6e656c62,0x676e6964,0x67696557,0x00007468,
+ 0x00040005,0x000000ac,0x61726170,0x0000006d,0x00040005,0x000000ad,0x61726170,0x0000006d,
+ 0x00040005,0x000000af,0x61726170,0x0000006d,0x00040005,0x000000b4,0x61726170,0x0000006d,
+ 0x00040005,0x000000b5,0x61726170,0x0000006d,0x00040005,0x000000b7,0x61726170,0x0000006d,
+ 0x00060005,0x000000c2,0x6e656c62,0x676e6964,0x726f6f43,0x00000064,0x00040005,0x000000d3,
+ 0x6f6c6f63,0x00000072,0x00060005,0x000000e8,0x67617266,0x43786554,0x64726f6f,0x00000000,
+ 0x00040005,0x000000e9,0x7366666f,0x00007465,0x00040005,0x000000ea,0x61726170,0x0000006d,
+ 0x00040005,0x000000ec,0x61726170,0x0000006d,0x00050005,0x000000f0,0x4374756f,0x726f6c6f,
+ 0x00000000,0x00060005,0x000000f1,0x75706e49,0x78655474,0x65727574,0x00000000,0x00060005,
+ 0x000000f2,0x67696557,0x65547468,0x72757478,0x00000065,0x00040005,0x000000f3,0x61726170,
+ 0x0000006d,0x00040005,0x000000f5,0x61726170,0x0000006d,0x00030047,0x0000005e,0x00000002,
+ 0x00050048,0x0000005e,0x00000000,0x00000023,0x00000000,0x00050048,0x0000005e,0x00000001,
+ 0x00000023,0x00000010,0x00040047,0x000000e8,0x0000001e,0x00000000,0x00040047,0x000000f0,
+ 0x0000001e,0x00000000,0x00040047,0x000000f1,0x00000021,0x00000000,0x00040047,0x000000f1,
+ 0x00000022,0x00000000,0x00040047,0x000000f2,0x00000021,0x00000000,0x00040047,0x000000f2,
+ 0x00000022,0x00000001,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00020014,
+ 0x00000006,0x00040017,0x00000007,0x00000006,0x00000002,0x00040020,0x00000008,0x00000007,
+ 0x00000007,0x00030016,0x00000009,0x00000020,0x00040017,0x0000000a,0x00000009,0x00000002,
+ 0x00040020,0x0000000b,0x00000007,0x0000000a,0x00060021,0x0000000c,0x00000002,0x00000008,
+ 0x0000000b,0x0000000b,0x00040017,0x00000012,0x00000006,0x00000004,0x00040020,0x00000013,
+ 0x00000007,0x00000012,0x00040017,0x00000014,0x00000009,0x00000004,0x00040020,0x00000015,
+ 0x00000007,0x00000014,0x00060021,0x00000016,0x00000002,0x00000013,0x00000015,0x00000015,
+ 0x00050021,0x0000001c,0x00000002,0x0000000b,0x00000015,0x00090019,0x00000021,0x00000009,
+ 0x00000001,0x00000000,0x00000000,0x00000000,0x00000001,0x00000000,0x0003001b,0x00000022,
+ 0x00000021,0x00040020,0x00000023,0x00000000,0x00000022,0x00070021,0x00000024,0x00000014,
+ 0x0000000b,0x00000015,0x00000023,0x00000023,0x00040015,0x0000002b,0x00000020,0x00000000,
+ 0x0004002b,0x0000002b,0x0000002c,0x00000000,0x00040020,0x0000002d,0x00000007,0x00000006,
+ 0x00040020,0x00000032,0x00000007,0x00000009,0x0004002b,0x0000002b,0x00000036,0x00000001,
+ 0x0004002b,0x0000002b,0x00000058,0x00000002,0x0004002b,0x0000002b,0x0000005b,0x00000003,
+ 0x0004001e,0x0000005e,0x00000014,0x00000014,0x00040020,0x0000005f,0x00000009,0x0000005e,
+ 0x0004003b,0x0000005f,0x00000060,0x00000009,0x00040015,0x00000061,0x00000020,0x00000001,
+ 0x0004002b,0x00000061,0x00000062,0x00000001,0x00040020,0x00000063,0x00000009,0x00000014,
+ 0x0004002b,0x00000009,0x00000067,0x3f800000,0x0004002b,0x00000009,0x00000068,0x00000000,
+ 0x0007002c,0x00000014,0x00000069,0x00000067,0x00000068,0x00000068,0x00000067,0x0007002c,
+ 0x00000014,0x00000083,0x00000067,0x00000067,0x00000067,0x00000067,0x0004002b,0x00000009,
+ 0x00000085,0x3727c5ac,0x0005002c,0x0000000a,0x000000bd,0x00000067,0x00000067,0x00040020,
+ 0x000000e7,0x00000001,0x0000000a,0x0004003b,0x000000e7,0x000000e8,0x00000001,0x00040020,
+ 0x000000ef,0x00000003,0x00000014,0x0004003b,0x000000ef,0x000000f0,0x00000003,0x0004003b,
+ 0x00000023,0x000000f1,0x00000000,0x0004003b,0x00000023,0x000000f2,0x00000000,0x00050036,
+ 0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,0x00000015,
+ 0x000000e9,0x00000007,0x0004003b,0x0000000b,0x000000ea,0x00000007,0x0004003b,0x00000015,
+ 0x000000ec,0x00000007,0x0004003b,0x0000000b,0x000000f3,0x00000007,0x0004003b,0x00000015,
+ 0x000000f5,0x00000007,0x0004003d,0x0000000a,0x000000eb,0x000000e8,0x0003003e,0x000000ea,
+ 0x000000eb,0x00060039,0x00000002,0x000000ed,0x0000001f,0x000000ea,0x000000ec,0x0004003d,
+ 0x00000014,0x000000ee,0x000000ec,0x0003003e,0x000000e9,0x000000ee,0x0004003d,0x0000000a,
+ 0x000000f4,0x000000e8,0x0003003e,0x000000f3,0x000000f4,0x0004003d,0x00000014,0x000000f6,
+ 0x000000e9,0x0003003e,0x000000f5,0x000000f6,0x00080039,0x00000014,0x000000f7,0x00000029,
+ 0x000000f3,0x000000f5,0x000000f1,0x000000f2,0x0003003e,0x000000f0,0x000000f7,0x000100fd,
+ 0x00010038,0x00050036,0x00000002,0x00000010,0x00000000,0x0000000c,0x00030037,0x00000008,
+ 0x0000000d,0x00030037,0x0000000b,0x0000000e,0x00030037,0x0000000b,0x0000000f,0x000200f8,
+ 0x00000011,0x00050041,0x0000002d,0x0000002e,0x0000000d,0x0000002c,0x0004003d,0x00000006,
+ 0x0000002f,0x0000002e,0x000300f7,0x00000031,0x00000000,0x000400fa,0x0000002f,0x00000030,
+ 0x00000031,0x000200f8,0x00000030,0x00050041,0x00000032,0x00000033,0x0000000f,0x0000002c,
+ 0x0004003d,0x00000009,0x00000034,0x00000033,0x00050041,0x00000032,0x00000035,0x0000000e,
+ 0x0000002c,0x0003003e,0x00000035,0x00000034,0x000200f9,0x00000031,0x000200f8,0x00000031,
+ 0x00050041,0x0000002d,0x00000037,0x0000000d,0x00000036,0x0004003d,0x00000006,0x00000038,
+ 0x00000037,0x000300f7,0x0000003a,0x00000000,0x000400fa,0x00000038,0x00000039,0x0000003a,
+ 0x000200f8,0x00000039,0x00050041,0x00000032,0x0000003b,0x0000000f,0x00000036,0x0004003d,
+ 0x00000009,0x0000003c,0x0000003b,0x00050041,0x00000032,0x0000003d,0x0000000e,0x00000036,
+ 0x0003003e,0x0000003d,0x0000003c,0x000200f9,0x0000003a,0x000200f8,0x0000003a,0x000100fd,
+ 0x00010038,0x00050036,0x00000002,0x0000001a,0x00000000,0x00000016,0x00030037,0x00000013,
+ 0x00000017,0x00030037,0x00000015,0x00000018,0x00030037,0x00000015,0x00000019,0x000200f8,
+ 0x0000001b,0x0004003b,0x00000008,0x0000003e,0x00000007,0x0004003b,0x0000000b,0x00000041,
+ 0x00000007,0x0004003b,0x0000000b,0x00000044,0x00000007,0x0004003b,0x00000008,0x0000004d,
+ 0x00000007,0x0004003b,0x0000000b,0x00000050,0x00000007,0x0004003b,0x0000000b,0x00000053,
+ 0x00000007,0x0004003d,0x00000012,0x0000003f,0x00000017,0x0007004f,0x00000007,0x00000040,
+ 0x0000003f,0x0000003f,0x00000000,0x00000001,0x0003003e,0x0000003e,0x00000040,0x0004003d,
+ 0x00000014,0x00000042,0x00000018,0x0007004f,0x0000000a,0x00000043,0x00000042,0x00000042,
+ 0x00000000,0x00000001,0x0003003e,0x00000041,0x00000043,0x0004003d,0x00000014,0x00000045,
+ 0x00000019,0x0007004f,0x0000000a,0x00000046,0x00000045,0x00000045,0x00000000,0x00000001,
+ 0x0003003e,0x00000044,0x00000046,0x00070039,0x00000002,0x00000047,0x00000010,0x0000003e,
+ 0x00000041,0x00000044,0x0004003d,0x0000000a,0x00000048,0x00000041,0x00050041,0x00000032,
+ 0x00000049,0x00000018,0x0000002c,0x00050051,0x00000009,0x0000004a,0x00000048,0x00000000,
+ 0x0003003e,0x00000049,0x0000004a,0x00050041,0x00000032,0x0000004b,0x00000018,0x00000036,
+ 0x00050051,0x00000009,0x0000004c,0x00000048,0x00000001,0x0003003e,0x0000004b,0x0000004c,
+ 0x0004003d,0x00000012,0x0000004e,0x00000017,0x0007004f,0x00000007,0x0000004f,0x0000004e,
+ 0x0000004e,0x00000002,0x00000003,0x0003003e,0x0000004d,0x0000004f,0x0004003d,0x00000014,
+ 0x00000051,0x00000018,0x0007004f,0x0000000a,0x00000052,0x00000051,0x00000051,0x00000002,
+ 0x00000003,0x0003003e,0x00000050,0x00000052,0x0004003d,0x00000014,0x00000054,0x00000019,
+ 0x0007004f,0x0000000a,0x00000055,0x00000054,0x00000054,0x00000002,0x00000003,0x0003003e,
+ 0x00000053,0x00000055,0x00070039,0x00000002,0x00000056,0x00000010,0x0000004d,0x00000050,
+ 0x00000053,0x0004003d,0x0000000a,0x00000057,0x00000050,0x00050041,0x00000032,0x00000059,
+ 0x00000018,0x00000058,0x00050051,0x00000009,0x0000005a,0x00000057,0x00000000,0x0003003e,
+ 0x00000059,0x0000005a,0x00050041,0x00000032,0x0000005c,0x00000018,0x0000005b,0x00050051,
+ 0x00000009,0x0000005d,0x00000057,0x00000001,0x0003003e,0x0000005c,0x0000005d,0x000100fd,
+ 0x00010038,0x00050036,0x00000002,0x0000001f,0x00000000,0x0000001c,0x00030037,0x0000000b,
+ 0x0000001d,0x00030037,0x00000015,0x0000001e,0x000200f8,0x00000020,0x00050041,0x00000063,
+ 0x00000064,0x00000060,0x00000062,0x0004003d,0x00000014,0x00000065,0x00000064,0x0009004f,
+ 0x00000014,0x00000066,0x00000065,0x00000065,0x00000000,0x00000001,0x00000000,0x00000001,
+ 0x0004003d,0x0000000a,0x0000006a,0x0000001d,0x0009004f,0x00000014,0x0000006b,0x0000006a,
+ 0x0000006a,0x00000000,0x00000001,0x00000000,0x00000001,0x0008000c,0x00000014,0x0000006c,
+ 0x00000001,0x00000032,0x00000066,0x00000069,0x0000006b,0x0003003e,0x0000001e,0x0000006c,
+ 0x000100fd,0x00010038,0x00050036,0x00000014,0x00000029,0x00000000,0x00000024,0x00030037,
+ 0x0000000b,0x00000025,0x00030037,0x00000015,0x00000026,0x00030037,0x00000023,0x00000027,
+ 0x00030037,0x00000023,0x00000028,0x000200f8,0x0000002a,0x0004003b,0x00000015,0x0000006d,
+ 0x00000007,0x0004003b,0x00000015,0x00000089,0x00000007,0x0004003b,0x0000002d,0x00000090,
+ 0x00000007,0x0004003b,0x00000015,0x0000009c,0x00000007,0x0004003b,0x0000000b,0x000000a2,
+ 0x00000007,0x0004003b,0x00000013,0x000000ac,0x00000007,0x0004003b,0x00000015,0x000000ad,
+ 0x00000007,0x0004003b,0x00000015,0x000000af,0x00000007,0x0004003b,0x00000008,0x000000b4,
+ 0x00000007,0x0004003b,0x0000000b,0x000000b5,0x00000007,0x0004003b,0x0000000b,0x000000b7,
+ 0x00000007,0x0004003b,0x00000015,0x000000c2,0x00000007,0x0004003b,0x00000015,0x000000d3,
+ 0x00000007,0x0004003d,0x00000022,0x0000006e,0x00000028,0x0004003d,0x00000014,0x0000006f,
+ 0x00000026,0x0007004f,0x0000000a,0x00000070,0x0000006f,0x0000006f,0x00000000,0x00000001,
+ 0x00050057,0x00000014,0x00000071,0x0000006e,0x00000070,0x00050051,0x00000009,0x00000072,
+ 0x00000071,0x00000003,0x00050041,0x00000032,0x00000073,0x0000006d,0x0000002c,0x0003003e,
+ 0x00000073,0x00000072,0x0004003d,0x00000022,0x00000074,0x00000028,0x0004003d,0x00000014,
+ 0x00000075,0x00000026,0x0007004f,0x0000000a,0x00000076,0x00000075,0x00000075,0x00000002,
+ 0x00000003,0x00050057,0x00000014,0x00000077,0x00000074,0x00000076,0x00050051,0x00000009,
+ 0x00000078,0x00000077,0x00000001,0x00050041,0x00000032,0x00000079,0x0000006d,0x00000036,
+ 0x0003003e,0x00000079,0x00000078,0x0004003d,0x00000022,0x0000007a,0x00000028,0x0004003d,
+ 0x0000000a,0x0000007b,0x00000025,0x00050057,0x00000014,0x0000007c,0x0000007a,0x0000007b,
+ 0x0007004f,0x0000000a,0x0000007d,0x0000007c,0x0000007c,0x00000000,0x00000002,0x00050041,
+ 0x00000032,0x0000007e,0x0000006d,0x0000005b,0x00050051,0x00000009,0x0000007f,0x0000007d,
+ 0x00000000,0x0003003e,0x0000007e,0x0000007f,0x00050041,0x00000032,0x00000080,0x0000006d,
+ 0x00000058,0x00050051,0x00000009,0x00000081,0x0000007d,0x00000001,0x0003003e,0x00000080,
+ 0x00000081,0x0004003d,0x00000014,0x00000082,0x0000006d,0x00050094,0x00000009,0x00000084,
+ 0x00000082,0x00000083,0x000500b8,0x00000006,0x00000086,0x00000084,0x00000085,0x000300f7,
+ 0x00000088,0x00000000,0x000400fa,0x00000086,0x00000087,0x0000008f,0x000200f8,0x00000087,
+ 0x0004003d,0x00000022,0x0000008a,0x00000027,0x0004003d,0x0000000a,0x0000008b,0x00000025,
+ 0x00070058,0x00000014,0x0000008c,0x0000008a,0x0000008b,0x00000002,0x00000068,0x0003003e,
+ 0x00000089,0x0000008c,0x0004003d,0x00000014,0x0000008d,0x00000089,0x000200fe,0x0000008d,
+ 0x000200f8,0x0000008f,0x00050041,0x00000032,0x00000091,0x0000006d,0x0000002c,0x0004003d,
+ 0x00000009,0x00000092,0x00000091,0x00050041,0x00000032,0x00000093,0x0000006d,0x00000058,
+ 0x0004003d,0x00000009,0x00000094,0x00000093,0x0007000c,0x00000009,0x00000095,0x00000001,
+ 0x00000028,0x00000092,0x00000094,0x00050041,0x00000032,0x00000096,0x0000006d,0x00000036,
+ 0x0004003d,0x00000009,0x00000097,0x00000096,0x00050041,0x00000032,0x00000098,0x0000006d,
+ 0x0000005b,0x0004003d,0x00000009,0x00000099,0x00000098,0x0007000c,0x00000009,0x0000009a,
+ 0x00000001,0x00000028,0x00000097,0x00000099,0x000500ba,0x00000006,0x0000009b,0x00000095,
+ 0x0000009a,0x0003003e,0x00000090,0x0000009b,0x00050041,0x00000032,0x0000009d,0x0000006d,
+ 0x00000036,0x0004003d,0x00000009,0x0000009e,0x0000009d,0x00050041,0x00000032,0x0000009f,
+ 0x0000006d,0x0000005b,0x0004003d,0x00000009,0x000000a0,0x0000009f,0x00070050,0x00000014,
+ 0x000000a1,0x00000068,0x0000009e,0x00000068,0x000000a0,0x0003003e,0x0000009c,0x000000a1,
+ 0x0004003d,0x00000014,0x000000a3,0x0000006d,0x0007004f,0x0000000a,0x000000a4,0x000000a3,
+ 0x000000a3,0x00000001,0x00000003,0x0003003e,0x000000a2,0x000000a4,0x0004003d,0x00000006,
+ 0x000000a5,0x00000090,0x00070050,0x00000012,0x000000a6,0x000000a5,0x000000a5,0x000000a5,
+ 0x000000a5,0x00050041,0x00000032,0x000000a7,0x0000006d,0x0000002c,0x0004003d,0x00000009,
+ 0x000000a8,0x000000a7,0x00050041,0x00000032,0x000000a9,0x0000006d,0x00000058,0x0004003d,
+ 0x00000009,0x000000aa,0x000000a9,0x00070050,0x00000014,0x000000ab,0x000000a8,0x00000068,
+ 0x000000aa,0x00000068,0x0003003e,0x000000ac,0x000000a6,0x0004003d,0x00000014,0x000000ae,
+ 0x0000009c,0x0003003e,0x000000ad,0x000000ae,0x0003003e,0x000000af,0x000000ab,0x00070039,
+ 0x00000002,0x000000b0,0x0000001a,0x000000ac,0x000000ad,0x000000af,0x0004003d,0x00000014,
+ 0x000000b1,0x000000ad,0x0003003e,0x0000009c,0x000000b1,0x0004003d,0x00000006,0x000000b2,
+ 0x00000090,0x00050050,0x00000007,0x000000b3,0x000000b2,0x000000b2,0x0003003e,0x000000b4,
+ 0x000000b3,0x0004003d,0x0000000a,0x000000b6,0x000000a2,0x0003003e,0x000000b5,0x000000b6,
+ 0x0004003d,0x00000014,0x000000b8,0x0000006d,0x0007004f,0x0000000a,0x000000b9,0x000000b8,
+ 0x000000b8,0x00000000,0x00000002,0x0003003e,0x000000b7,0x000000b9,0x00070039,0x00000002,
+ 0x000000ba,0x00000010,0x000000b4,0x000000b5,0x000000b7,0x0004003d,0x0000000a,0x000000bb,
+ 0x000000b5,0x0003003e,0x000000a2,0x000000bb,0x0004003d,0x0000000a,0x000000bc,0x000000a2,
+ 0x00050094,0x00000009,0x000000be,0x000000bc,0x000000bd,0x0004003d,0x0000000a,0x000000bf,
+ 0x000000a2,0x00050050,0x0000000a,0x000000c0,0x000000be,0x000000be,0x00050088,0x0000000a,
+ 0x000000c1,0x000000bf,0x000000c0,0x0003003e,0x000000a2,0x000000c1,0x0004003d,0x00000014,
+ 0x000000c3,0x0000009c,0x00050041,0x00000063,0x000000c4,0x00000060,0x00000062,0x0004003d,
+ 0x00000014,0x000000c5,0x000000c4,0x0007004f,0x0000000a,0x000000c6,0x000000c5,0x000000c5,
+ 0x00000000,0x00000001,0x00050041,0x00000063,0x000000c7,0x00000060,0x00000062,0x0004003d,
+ 0x00000014,0x000000c8,0x000000c7,0x0007004f,0x0000000a,0x000000c9,0x000000c8,0x000000c8,
+ 0x00000000,0x00000001,0x0004007f,0x0000000a,0x000000ca,0x000000c9,0x00050051,0x00000009,
+ 0x000000cb,0x000000c6,0x00000000,0x00050051,0x00000009,0x000000cc,0x000000c6,0x00000001,
+ 0x00050051,0x00000009,0x000000cd,0x000000ca,0x00000000,0x00050051,0x00000009,0x000000ce,
+ 0x000000ca,0x00000001,0x00070050,0x00000014,0x000000cf,0x000000cb,0x000000cc,0x000000cd,
+ 0x000000ce,0x0004003d,0x0000000a,0x000000d0,0x00000025,0x0009004f,0x00000014,0x000000d1,
+ 0x000000d0,0x000000d0,0x00000000,0x00000001,0x00000000,0x00000001,0x0008000c,0x00000014,
+ 0x000000d2,0x00000001,0x00000032,0x000000c3,0x000000cf,0x000000d1,0x0003003e,0x000000c2,
+ 0x000000d2,0x00050041,0x00000032,0x000000d4,0x000000a2,0x0000002c,0x0004003d,0x00000009,
+ 0x000000d5,0x000000d4,0x0004003d,0x00000022,0x000000d6,0x00000027,0x0004003d,0x00000014,
+ 0x000000d7,0x000000c2,0x0007004f,0x0000000a,0x000000d8,0x000000d7,0x000000d7,0x00000000,
+ 0x00000001,0x00070058,0x00000014,0x000000d9,0x000000d6,0x000000d8,0x00000002,0x00000068,
+ 0x0005008e,0x00000014,0x000000da,0x000000d9,0x000000d5,0x0003003e,0x000000d3,0x000000da,
+ 0x00050041,0x00000032,0x000000db,0x000000a2,0x00000036,0x0004003d,0x00000009,0x000000dc,
+ 0x000000db,0x0004003d,0x00000022,0x000000dd,0x00000027,0x0004003d,0x00000014,0x000000de,
+ 0x000000c2,0x0007004f,0x0000000a,0x000000df,0x000000de,0x000000de,0x00000002,0x00000003,
+ 0x00070058,0x00000014,0x000000e0,0x000000dd,0x000000df,0x00000002,0x00000068,0x0005008e,
+ 0x00000014,0x000000e1,0x000000e0,0x000000dc,0x0004003d,0x00000014,0x000000e2,0x000000d3,
+ 0x00050081,0x00000014,0x000000e3,0x000000e2,0x000000e1,0x0003003e,0x000000d3,0x000000e3,
+ 0x0004003d,0x00000014,0x000000e4,0x000000d3,0x000200fe,0x000000e4,0x000200f8,0x00000088,
+ 0x000100ff,0x00010038
};
diff --git a/app/src/main/cpp/shaders/smaa_edge.frag b/app/src/main/cpp/shaders/smaa_edge.frag
index 44073b00c4..b4e40a9dad 100644
--- a/app/src/main/cpp/shaders/smaa_edge.frag
+++ b/app/src/main/cpp/shaders/smaa_edge.frag
@@ -1,29 +1,21 @@
#version 450
+#extension GL_GOOGLE_include_directive : require
layout(location = 0) in vec2 fragTexCoord;
layout(location = 0) out vec4 outColor;
layout(set = 0, binding = 0) uniform sampler2D InputTexture;
layout(push_constant) uniform Constants {
vec4 ndc;
- vec2 resolution;
- float extra;
- float pad;
+ vec4 metrics; // 1/width, 1/height, width, height
} pc;
-float luma(vec3 c) {
- return dot(c, vec3(0.2126, 0.7152, 0.0722));
-}
+#define SMAA_RT_METRICS pc.metrics
+#define SMAA_GLSL_4
+#define SMAA_PRESET_HIGH
+#include "SMAA.hlsl"
void main() {
- vec2 px = 1.0 / max(pc.resolution, vec2(1.0));
- vec2 uv = clamp(fragTexCoord, px * 0.5, vec2(1.0) - px * 0.5);
- float center = luma(texture(InputTexture, uv).rgb);
- float left = luma(texture(InputTexture, uv - vec2(px.x, 0.0)).rgb);
- float right = luma(texture(InputTexture, uv + vec2(px.x, 0.0)).rgb);
- float up = luma(texture(InputTexture, uv - vec2(0.0, px.y)).rgb);
- float down = luma(texture(InputTexture, uv + vec2(0.0, px.y)).rgb);
-
- // Store directional edge strengths for the weight pass.
- outColor = vec4(abs(center - left), abs(center - right),
- abs(center - up), abs(center - down));
+ vec4 offset[3];
+ SMAAEdgeDetectionVS(fragTexCoord, offset);
+ outColor = vec4(SMAALumaEdgeDetectionPS(fragTexCoord, offset, InputTexture), 0.0, 0.0);
}
diff --git a/app/src/main/cpp/shaders/smaa_edge_frag.h b/app/src/main/cpp/shaders/smaa_edge_frag.h
index 7d133264c9..300a5ca064 100644
--- a/app/src/main/cpp/shaders/smaa_edge_frag.h
+++ b/app/src/main/cpp/shaders/smaa_edge_frag.h
@@ -1,102 +1,185 @@
- // 1116.3.0
+ // 1116.6.0
#pragma once
const uint32_t smaa_edge_code[] = {
- 0x07230203,0x00010000,0x0008000b,0x00000080,0x00000000,0x00020011,0x00000001,0x0006000b,
+ 0x07230203,0x00010000,0x0008000b,0x000000eb,0x00000000,0x00020011,0x00000001,0x0006000b,
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
- 0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x00000028,0x0000006e,0x00030010,
- 0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,
- 0x00000000,0x00050005,0x0000000b,0x616d756c,0x33667628,0x0000003b,0x00030005,0x0000000a,
- 0x00000063,0x00030005,0x00000017,0x00007870,0x00050005,0x0000001a,0x736e6f43,0x746e6174,
- 0x00000073,0x00040006,0x0000001a,0x00000000,0x0063646e,0x00060006,0x0000001a,0x00000001,
- 0x6f736572,0x6974756c,0x00006e6f,0x00050006,0x0000001a,0x00000002,0x72747865,0x00000061,
- 0x00040006,0x0000001a,0x00000003,0x00646170,0x00030005,0x0000001c,0x00006370,0x00030005,
- 0x00000026,0x00007675,0x00060005,0x00000028,0x67617266,0x43786554,0x64726f6f,0x00000000,
- 0x00040005,0x00000032,0x746e6563,0x00007265,0x00060005,0x00000036,0x75706e49,0x78655474,
- 0x65727574,0x00000000,0x00040005,0x0000003a,0x61726170,0x0000006d,0x00040005,0x0000003d,
- 0x7466656c,0x00000000,0x00040005,0x00000048,0x61726170,0x0000006d,0x00040005,0x0000004b,
- 0x68676972,0x00000074,0x00040005,0x00000053,0x61726170,0x0000006d,0x00030005,0x00000056,
- 0x00007075,0x00040005,0x0000005f,0x61726170,0x0000006d,0x00040005,0x00000062,0x6e776f64,
- 0x00000000,0x00040005,0x0000006a,0x61726170,0x0000006d,0x00050005,0x0000006e,0x4374756f,
- 0x726f6c6f,0x00000000,0x00030047,0x0000001a,0x00000002,0x00050048,0x0000001a,0x00000000,
- 0x00000023,0x00000000,0x00050048,0x0000001a,0x00000001,0x00000023,0x00000010,0x00050048,
- 0x0000001a,0x00000002,0x00000023,0x00000018,0x00050048,0x0000001a,0x00000003,0x00000023,
- 0x0000001c,0x00040047,0x00000028,0x0000001e,0x00000000,0x00040047,0x00000036,0x00000021,
- 0x00000000,0x00040047,0x00000036,0x00000022,0x00000000,0x00040047,0x0000006e,0x0000001e,
- 0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,0x00000006,
- 0x00000020,0x00040017,0x00000007,0x00000006,0x00000003,0x00040020,0x00000008,0x00000007,
- 0x00000007,0x00040021,0x00000009,0x00000006,0x00000008,0x0004002b,0x00000006,0x0000000e,
- 0x3e59b3d0,0x0004002b,0x00000006,0x0000000f,0x3f371759,0x0004002b,0x00000006,0x00000010,
- 0x3d93dd98,0x0006002c,0x00000007,0x00000011,0x0000000e,0x0000000f,0x00000010,0x00040017,
- 0x00000015,0x00000006,0x00000002,0x00040020,0x00000016,0x00000007,0x00000015,0x0004002b,
- 0x00000006,0x00000018,0x3f800000,0x00040017,0x00000019,0x00000006,0x00000004,0x0006001e,
- 0x0000001a,0x00000019,0x00000015,0x00000006,0x00000006,0x00040020,0x0000001b,0x00000009,
- 0x0000001a,0x0004003b,0x0000001b,0x0000001c,0x00000009,0x00040015,0x0000001d,0x00000020,
- 0x00000001,0x0004002b,0x0000001d,0x0000001e,0x00000001,0x00040020,0x0000001f,0x00000009,
- 0x00000015,0x0005002c,0x00000015,0x00000022,0x00000018,0x00000018,0x00040020,0x00000027,
- 0x00000001,0x00000015,0x0004003b,0x00000027,0x00000028,0x00000001,0x0004002b,0x00000006,
- 0x0000002b,0x3f000000,0x00040020,0x00000031,0x00000007,0x00000006,0x00090019,0x00000033,
- 0x00000006,0x00000001,0x00000000,0x00000000,0x00000000,0x00000001,0x00000000,0x0003001b,
- 0x00000034,0x00000033,0x00040020,0x00000035,0x00000000,0x00000034,0x0004003b,0x00000035,
- 0x00000036,0x00000000,0x00040015,0x00000040,0x00000020,0x00000000,0x0004002b,0x00000040,
- 0x00000041,0x00000000,0x0004002b,0x00000006,0x00000044,0x00000000,0x0004002b,0x00000040,
- 0x00000059,0x00000001,0x00040020,0x0000006d,0x00000003,0x00000019,0x0004003b,0x0000006d,
- 0x0000006e,0x00000003,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,
- 0x00000005,0x0004003b,0x00000016,0x00000017,0x00000007,0x0004003b,0x00000016,0x00000026,
- 0x00000007,0x0004003b,0x00000031,0x00000032,0x00000007,0x0004003b,0x00000008,0x0000003a,
- 0x00000007,0x0004003b,0x00000031,0x0000003d,0x00000007,0x0004003b,0x00000008,0x00000048,
- 0x00000007,0x0004003b,0x00000031,0x0000004b,0x00000007,0x0004003b,0x00000008,0x00000053,
- 0x00000007,0x0004003b,0x00000031,0x00000056,0x00000007,0x0004003b,0x00000008,0x0000005f,
- 0x00000007,0x0004003b,0x00000031,0x00000062,0x00000007,0x0004003b,0x00000008,0x0000006a,
- 0x00000007,0x00050041,0x0000001f,0x00000020,0x0000001c,0x0000001e,0x0004003d,0x00000015,
- 0x00000021,0x00000020,0x0007000c,0x00000015,0x00000023,0x00000001,0x00000028,0x00000021,
- 0x00000022,0x00050050,0x00000015,0x00000024,0x00000018,0x00000018,0x00050088,0x00000015,
- 0x00000025,0x00000024,0x00000023,0x0003003e,0x00000017,0x00000025,0x0004003d,0x00000015,
- 0x00000029,0x00000028,0x0004003d,0x00000015,0x0000002a,0x00000017,0x0005008e,0x00000015,
- 0x0000002c,0x0000002a,0x0000002b,0x0004003d,0x00000015,0x0000002d,0x00000017,0x0005008e,
- 0x00000015,0x0000002e,0x0000002d,0x0000002b,0x00050083,0x00000015,0x0000002f,0x00000022,
- 0x0000002e,0x0008000c,0x00000015,0x00000030,0x00000001,0x0000002b,0x00000029,0x0000002c,
- 0x0000002f,0x0003003e,0x00000026,0x00000030,0x0004003d,0x00000034,0x00000037,0x00000036,
- 0x0004003d,0x00000015,0x00000038,0x00000026,0x00050057,0x00000019,0x00000039,0x00000037,
- 0x00000038,0x0008004f,0x00000007,0x0000003b,0x00000039,0x00000039,0x00000000,0x00000001,
- 0x00000002,0x0003003e,0x0000003a,0x0000003b,0x00050039,0x00000006,0x0000003c,0x0000000b,
- 0x0000003a,0x0003003e,0x00000032,0x0000003c,0x0004003d,0x00000034,0x0000003e,0x00000036,
- 0x0004003d,0x00000015,0x0000003f,0x00000026,0x00050041,0x00000031,0x00000042,0x00000017,
- 0x00000041,0x0004003d,0x00000006,0x00000043,0x00000042,0x00050050,0x00000015,0x00000045,
- 0x00000043,0x00000044,0x00050083,0x00000015,0x00000046,0x0000003f,0x00000045,0x00050057,
- 0x00000019,0x00000047,0x0000003e,0x00000046,0x0008004f,0x00000007,0x00000049,0x00000047,
- 0x00000047,0x00000000,0x00000001,0x00000002,0x0003003e,0x00000048,0x00000049,0x00050039,
- 0x00000006,0x0000004a,0x0000000b,0x00000048,0x0003003e,0x0000003d,0x0000004a,0x0004003d,
- 0x00000034,0x0000004c,0x00000036,0x0004003d,0x00000015,0x0000004d,0x00000026,0x00050041,
- 0x00000031,0x0000004e,0x00000017,0x00000041,0x0004003d,0x00000006,0x0000004f,0x0000004e,
- 0x00050050,0x00000015,0x00000050,0x0000004f,0x00000044,0x00050081,0x00000015,0x00000051,
- 0x0000004d,0x00000050,0x00050057,0x00000019,0x00000052,0x0000004c,0x00000051,0x0008004f,
- 0x00000007,0x00000054,0x00000052,0x00000052,0x00000000,0x00000001,0x00000002,0x0003003e,
- 0x00000053,0x00000054,0x00050039,0x00000006,0x00000055,0x0000000b,0x00000053,0x0003003e,
- 0x0000004b,0x00000055,0x0004003d,0x00000034,0x00000057,0x00000036,0x0004003d,0x00000015,
- 0x00000058,0x00000026,0x00050041,0x00000031,0x0000005a,0x00000017,0x00000059,0x0004003d,
- 0x00000006,0x0000005b,0x0000005a,0x00050050,0x00000015,0x0000005c,0x00000044,0x0000005b,
- 0x00050083,0x00000015,0x0000005d,0x00000058,0x0000005c,0x00050057,0x00000019,0x0000005e,
- 0x00000057,0x0000005d,0x0008004f,0x00000007,0x00000060,0x0000005e,0x0000005e,0x00000000,
- 0x00000001,0x00000002,0x0003003e,0x0000005f,0x00000060,0x00050039,0x00000006,0x00000061,
- 0x0000000b,0x0000005f,0x0003003e,0x00000056,0x00000061,0x0004003d,0x00000034,0x00000063,
- 0x00000036,0x0004003d,0x00000015,0x00000064,0x00000026,0x00050041,0x00000031,0x00000065,
- 0x00000017,0x00000059,0x0004003d,0x00000006,0x00000066,0x00000065,0x00050050,0x00000015,
- 0x00000067,0x00000044,0x00000066,0x00050081,0x00000015,0x00000068,0x00000064,0x00000067,
- 0x00050057,0x00000019,0x00000069,0x00000063,0x00000068,0x0008004f,0x00000007,0x0000006b,
- 0x00000069,0x00000069,0x00000000,0x00000001,0x00000002,0x0003003e,0x0000006a,0x0000006b,
- 0x00050039,0x00000006,0x0000006c,0x0000000b,0x0000006a,0x0003003e,0x00000062,0x0000006c,
- 0x0004003d,0x00000006,0x0000006f,0x00000032,0x0004003d,0x00000006,0x00000070,0x0000003d,
- 0x00050083,0x00000006,0x00000071,0x0000006f,0x00000070,0x0006000c,0x00000006,0x00000072,
- 0x00000001,0x00000004,0x00000071,0x0004003d,0x00000006,0x00000073,0x00000032,0x0004003d,
- 0x00000006,0x00000074,0x0000004b,0x00050083,0x00000006,0x00000075,0x00000073,0x00000074,
- 0x0006000c,0x00000006,0x00000076,0x00000001,0x00000004,0x00000075,0x0004003d,0x00000006,
- 0x00000077,0x00000032,0x0004003d,0x00000006,0x00000078,0x00000056,0x00050083,0x00000006,
- 0x00000079,0x00000077,0x00000078,0x0006000c,0x00000006,0x0000007a,0x00000001,0x00000004,
- 0x00000079,0x0004003d,0x00000006,0x0000007b,0x00000032,0x0004003d,0x00000006,0x0000007c,
- 0x00000062,0x00050083,0x00000006,0x0000007d,0x0000007b,0x0000007c,0x0006000c,0x00000006,
- 0x0000007e,0x00000001,0x00000004,0x0000007d,0x00070050,0x00000019,0x0000007f,0x00000072,
- 0x00000076,0x0000007a,0x0000007e,0x0003003e,0x0000006e,0x0000007f,0x000100fd,0x00010038,
- 0x00050036,0x00000006,0x0000000b,0x00000000,0x00000009,0x00030037,0x00000008,0x0000000a,
- 0x000200f8,0x0000000c,0x0004003d,0x00000007,0x0000000d,0x0000000a,0x00050094,0x00000006,
- 0x00000012,0x0000000d,0x00000011,0x000200fe,0x00000012,0x00010038
+ 0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x000000d9,0x000000e1,0x00030010,
+ 0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x000a0004,0x475f4c47,0x4c474f4f,
+ 0x70635f45,0x74735f70,0x5f656c79,0x656e696c,0x7269645f,0x69746365,0x00006576,0x00080004,
+ 0x475f4c47,0x4c474f4f,0x6e695f45,0x64756c63,0x69645f65,0x74636572,0x00657669,0x00040005,
+ 0x00000004,0x6e69616d,0x00000000,0x000a0005,0x00000011,0x41414d53,0x65676445,0x65746544,
+ 0x6f697463,0x2853566e,0x3b326676,0x5b346676,0x003b5d33,0x00050005,0x0000000f,0x63786574,
+ 0x64726f6f,0x00000000,0x00040005,0x00000010,0x7366666f,0x00007465,0x000c0005,0x0000001a,
+ 0x41414d53,0x616d754c,0x65676445,0x65746544,0x6f697463,0x2853506e,0x3b326676,0x5b346676,
+ 0x733b5d33,0x003b3132,0x00050005,0x00000017,0x63786574,0x64726f6f,0x00000000,0x00040005,
+ 0x00000018,0x7366666f,0x00007465,0x00050005,0x00000019,0x6f6c6f63,0x78655472,0x00000000,
+ 0x00050005,0x0000001e,0x736e6f43,0x746e6174,0x00000073,0x00040006,0x0000001e,0x00000000,
+ 0x0063646e,0x00050006,0x0000001e,0x00000001,0x7274656d,0x00736369,0x00030005,0x00000020,
+ 0x00006370,0x00050005,0x00000041,0x65726874,0x6c6f6873,0x00000064,0x00040005,0x00000046,
+ 0x67696577,0x00737468,0x00030005,0x0000004c,0x0000004c,0x00040005,0x00000053,0x66656c4c,
+ 0x00000074,0x00040005,0x0000005c,0x706f744c,0x00000000,0x00040005,0x00000065,0x746c6564,
+ 0x00000061,0x00040005,0x00000073,0x65676465,0x00000073,0x00040005,0x00000080,0x6769724c,
+ 0x00007468,0x00040005,0x00000089,0x746f624c,0x006d6f74,0x00050005,0x0000009e,0x4478616d,
+ 0x61746c65,0x00000000,0x00050005,0x000000a4,0x66656c4c,0x66656c74,0x00000074,0x00040005,
+ 0x000000ad,0x706f744c,0x00706f74,0x00050005,0x000000c6,0x616e6966,0x6c65446c,0x00006174,
+ 0x00060005,0x000000d9,0x67617266,0x43786554,0x64726f6f,0x00000000,0x00040005,0x000000da,
+ 0x7366666f,0x00007465,0x00040005,0x000000db,0x61726170,0x0000006d,0x00040005,0x000000dd,
+ 0x61726170,0x0000006d,0x00050005,0x000000e1,0x4374756f,0x726f6c6f,0x00000000,0x00060005,
+ 0x000000e2,0x75706e49,0x78655474,0x65727574,0x00000000,0x00040005,0x000000e3,0x61726170,
+ 0x0000006d,0x00040005,0x000000e5,0x61726170,0x0000006d,0x00030047,0x0000001e,0x00000002,
+ 0x00050048,0x0000001e,0x00000000,0x00000023,0x00000000,0x00050048,0x0000001e,0x00000001,
+ 0x00000023,0x00000010,0x00040047,0x000000d9,0x0000001e,0x00000000,0x00040047,0x000000e1,
+ 0x0000001e,0x00000000,0x00040047,0x000000e2,0x00000021,0x00000000,0x00040047,0x000000e2,
+ 0x00000022,0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,
+ 0x00000006,0x00000020,0x00040017,0x00000007,0x00000006,0x00000002,0x00040020,0x00000008,
+ 0x00000007,0x00000007,0x00040017,0x00000009,0x00000006,0x00000004,0x00040015,0x0000000a,
+ 0x00000020,0x00000000,0x0004002b,0x0000000a,0x0000000b,0x00000003,0x0004001c,0x0000000c,
+ 0x00000009,0x0000000b,0x00040020,0x0000000d,0x00000007,0x0000000c,0x00050021,0x0000000e,
+ 0x00000002,0x00000008,0x0000000d,0x00090019,0x00000013,0x00000006,0x00000001,0x00000000,
+ 0x00000000,0x00000000,0x00000001,0x00000000,0x0003001b,0x00000014,0x00000013,0x00040020,
+ 0x00000015,0x00000000,0x00000014,0x00060021,0x00000016,0x00000007,0x00000008,0x0000000d,
+ 0x00000015,0x00040015,0x0000001c,0x00000020,0x00000001,0x0004002b,0x0000001c,0x0000001d,
+ 0x00000000,0x0004001e,0x0000001e,0x00000009,0x00000009,0x00040020,0x0000001f,0x00000009,
+ 0x0000001e,0x0004003b,0x0000001f,0x00000020,0x00000009,0x0004002b,0x0000001c,0x00000021,
+ 0x00000001,0x00040020,0x00000022,0x00000009,0x00000009,0x0004002b,0x00000006,0x00000026,
+ 0xbf800000,0x0004002b,0x00000006,0x00000027,0x00000000,0x0007002c,0x00000009,0x00000028,
+ 0x00000026,0x00000027,0x00000027,0x00000026,0x00040020,0x0000002c,0x00000007,0x00000009,
+ 0x0004002b,0x00000006,0x00000031,0x3f800000,0x0007002c,0x00000009,0x00000032,0x00000031,
+ 0x00000027,0x00000027,0x00000031,0x0004002b,0x0000001c,0x00000037,0x00000002,0x0004002b,
+ 0x00000006,0x0000003b,0xc0000000,0x0007002c,0x00000009,0x0000003c,0x0000003b,0x00000027,
+ 0x00000027,0x0000003b,0x0004002b,0x00000006,0x00000042,0x3dcccccd,0x0005002c,0x00000007,
+ 0x00000043,0x00000042,0x00000042,0x00040017,0x00000044,0x00000006,0x00000003,0x00040020,
+ 0x00000045,0x00000007,0x00000044,0x0004002b,0x00000006,0x00000047,0x3e59b3d0,0x0004002b,
+ 0x00000006,0x00000048,0x3f371759,0x0004002b,0x00000006,0x00000049,0x3d93dd98,0x0006002c,
+ 0x00000044,0x0000004a,0x00000047,0x00000048,0x00000049,0x00040020,0x0000004b,0x00000007,
+ 0x00000006,0x0004002b,0x0000000a,0x0000006d,0x00000000,0x0004002b,0x0000000a,0x00000070,
+ 0x00000001,0x0005002c,0x00000007,0x00000079,0x00000031,0x00000031,0x00020014,0x0000007b,
+ 0x0004002b,0x0000000a,0x00000099,0x00000002,0x0004002b,0x00000006,0x000000cd,0x40000000,
+ 0x00040020,0x000000d8,0x00000001,0x00000007,0x0004003b,0x000000d8,0x000000d9,0x00000001,
+ 0x00040020,0x000000e0,0x00000003,0x00000009,0x0004003b,0x000000e0,0x000000e1,0x00000003,
+ 0x0004003b,0x00000015,0x000000e2,0x00000000,0x00050036,0x00000002,0x00000004,0x00000000,
+ 0x00000003,0x000200f8,0x00000005,0x0004003b,0x0000000d,0x000000da,0x00000007,0x0004003b,
+ 0x00000008,0x000000db,0x00000007,0x0004003b,0x0000000d,0x000000dd,0x00000007,0x0004003b,
+ 0x00000008,0x000000e3,0x00000007,0x0004003b,0x0000000d,0x000000e5,0x00000007,0x0004003d,
+ 0x00000007,0x000000dc,0x000000d9,0x0003003e,0x000000db,0x000000dc,0x00060039,0x00000002,
+ 0x000000de,0x00000011,0x000000db,0x000000dd,0x0004003d,0x0000000c,0x000000df,0x000000dd,
+ 0x0003003e,0x000000da,0x000000df,0x0004003d,0x00000007,0x000000e4,0x000000d9,0x0003003e,
+ 0x000000e3,0x000000e4,0x0004003d,0x0000000c,0x000000e6,0x000000da,0x0003003e,0x000000e5,
+ 0x000000e6,0x00070039,0x00000007,0x000000e7,0x0000001a,0x000000e3,0x000000e5,0x000000e2,
+ 0x00050051,0x00000006,0x000000e8,0x000000e7,0x00000000,0x00050051,0x00000006,0x000000e9,
+ 0x000000e7,0x00000001,0x00070050,0x00000009,0x000000ea,0x000000e8,0x000000e9,0x00000027,
+ 0x00000027,0x0003003e,0x000000e1,0x000000ea,0x000100fd,0x00010038,0x00050036,0x00000002,
+ 0x00000011,0x00000000,0x0000000e,0x00030037,0x00000008,0x0000000f,0x00030037,0x0000000d,
+ 0x00000010,0x000200f8,0x00000012,0x00050041,0x00000022,0x00000023,0x00000020,0x00000021,
+ 0x0004003d,0x00000009,0x00000024,0x00000023,0x0009004f,0x00000009,0x00000025,0x00000024,
+ 0x00000024,0x00000000,0x00000001,0x00000000,0x00000001,0x0004003d,0x00000007,0x00000029,
+ 0x0000000f,0x0009004f,0x00000009,0x0000002a,0x00000029,0x00000029,0x00000000,0x00000001,
+ 0x00000000,0x00000001,0x0008000c,0x00000009,0x0000002b,0x00000001,0x00000032,0x00000025,
+ 0x00000028,0x0000002a,0x00050041,0x0000002c,0x0000002d,0x00000010,0x0000001d,0x0003003e,
+ 0x0000002d,0x0000002b,0x00050041,0x00000022,0x0000002e,0x00000020,0x00000021,0x0004003d,
+ 0x00000009,0x0000002f,0x0000002e,0x0009004f,0x00000009,0x00000030,0x0000002f,0x0000002f,
+ 0x00000000,0x00000001,0x00000000,0x00000001,0x0004003d,0x00000007,0x00000033,0x0000000f,
+ 0x0009004f,0x00000009,0x00000034,0x00000033,0x00000033,0x00000000,0x00000001,0x00000000,
+ 0x00000001,0x0008000c,0x00000009,0x00000035,0x00000001,0x00000032,0x00000030,0x00000032,
+ 0x00000034,0x00050041,0x0000002c,0x00000036,0x00000010,0x00000021,0x0003003e,0x00000036,
+ 0x00000035,0x00050041,0x00000022,0x00000038,0x00000020,0x00000021,0x0004003d,0x00000009,
+ 0x00000039,0x00000038,0x0009004f,0x00000009,0x0000003a,0x00000039,0x00000039,0x00000000,
+ 0x00000001,0x00000000,0x00000001,0x0004003d,0x00000007,0x0000003d,0x0000000f,0x0009004f,
+ 0x00000009,0x0000003e,0x0000003d,0x0000003d,0x00000000,0x00000001,0x00000000,0x00000001,
+ 0x0008000c,0x00000009,0x0000003f,0x00000001,0x00000032,0x0000003a,0x0000003c,0x0000003e,
+ 0x00050041,0x0000002c,0x00000040,0x00000010,0x00000037,0x0003003e,0x00000040,0x0000003f,
+ 0x000100fd,0x00010038,0x00050036,0x00000007,0x0000001a,0x00000000,0x00000016,0x00030037,
+ 0x00000008,0x00000017,0x00030037,0x0000000d,0x00000018,0x00030037,0x00000015,0x00000019,
+ 0x000200f8,0x0000001b,0x0004003b,0x00000008,0x00000041,0x00000007,0x0004003b,0x00000045,
+ 0x00000046,0x00000007,0x0004003b,0x0000004b,0x0000004c,0x00000007,0x0004003b,0x0000004b,
+ 0x00000053,0x00000007,0x0004003b,0x0000004b,0x0000005c,0x00000007,0x0004003b,0x0000002c,
+ 0x00000065,0x00000007,0x0004003b,0x00000008,0x00000073,0x00000007,0x0004003b,0x0000004b,
+ 0x00000080,0x00000007,0x0004003b,0x0000004b,0x00000089,0x00000007,0x0004003b,0x00000008,
+ 0x0000009e,0x00000007,0x0004003b,0x0000004b,0x000000a4,0x00000007,0x0004003b,0x0000004b,
+ 0x000000ad,0x00000007,0x0004003b,0x0000004b,0x000000c6,0x00000007,0x0003003e,0x00000041,
+ 0x00000043,0x0003003e,0x00000046,0x0000004a,0x0004003d,0x00000014,0x0000004d,0x00000019,
+ 0x0004003d,0x00000007,0x0000004e,0x00000017,0x00050057,0x00000009,0x0000004f,0x0000004d,
+ 0x0000004e,0x0008004f,0x00000044,0x00000050,0x0000004f,0x0000004f,0x00000000,0x00000001,
+ 0x00000002,0x0004003d,0x00000044,0x00000051,0x00000046,0x00050094,0x00000006,0x00000052,
+ 0x00000050,0x00000051,0x0003003e,0x0000004c,0x00000052,0x0004003d,0x00000014,0x00000054,
+ 0x00000019,0x00050041,0x0000002c,0x00000055,0x00000018,0x0000001d,0x0004003d,0x00000009,
+ 0x00000056,0x00000055,0x0007004f,0x00000007,0x00000057,0x00000056,0x00000056,0x00000000,
+ 0x00000001,0x00050057,0x00000009,0x00000058,0x00000054,0x00000057,0x0008004f,0x00000044,
+ 0x00000059,0x00000058,0x00000058,0x00000000,0x00000001,0x00000002,0x0004003d,0x00000044,
+ 0x0000005a,0x00000046,0x00050094,0x00000006,0x0000005b,0x00000059,0x0000005a,0x0003003e,
+ 0x00000053,0x0000005b,0x0004003d,0x00000014,0x0000005d,0x00000019,0x00050041,0x0000002c,
+ 0x0000005e,0x00000018,0x0000001d,0x0004003d,0x00000009,0x0000005f,0x0000005e,0x0007004f,
+ 0x00000007,0x00000060,0x0000005f,0x0000005f,0x00000002,0x00000003,0x00050057,0x00000009,
+ 0x00000061,0x0000005d,0x00000060,0x0008004f,0x00000044,0x00000062,0x00000061,0x00000061,
+ 0x00000000,0x00000001,0x00000002,0x0004003d,0x00000044,0x00000063,0x00000046,0x00050094,
+ 0x00000006,0x00000064,0x00000062,0x00000063,0x0003003e,0x0000005c,0x00000064,0x0004003d,
+ 0x00000006,0x00000066,0x0000004c,0x0004003d,0x00000006,0x00000067,0x00000053,0x0004003d,
+ 0x00000006,0x00000068,0x0000005c,0x00050050,0x00000007,0x00000069,0x00000067,0x00000068,
+ 0x00050050,0x00000007,0x0000006a,0x00000066,0x00000066,0x00050083,0x00000007,0x0000006b,
+ 0x0000006a,0x00000069,0x0006000c,0x00000007,0x0000006c,0x00000001,0x00000004,0x0000006b,
+ 0x00050041,0x0000004b,0x0000006e,0x00000065,0x0000006d,0x00050051,0x00000006,0x0000006f,
+ 0x0000006c,0x00000000,0x0003003e,0x0000006e,0x0000006f,0x00050041,0x0000004b,0x00000071,
+ 0x00000065,0x00000070,0x00050051,0x00000006,0x00000072,0x0000006c,0x00000001,0x0003003e,
+ 0x00000071,0x00000072,0x0004003d,0x00000007,0x00000074,0x00000041,0x0004003d,0x00000009,
+ 0x00000075,0x00000065,0x0007004f,0x00000007,0x00000076,0x00000075,0x00000075,0x00000000,
+ 0x00000001,0x0007000c,0x00000007,0x00000077,0x00000001,0x00000030,0x00000074,0x00000076,
+ 0x0003003e,0x00000073,0x00000077,0x0004003d,0x00000007,0x00000078,0x00000073,0x00050094,
+ 0x00000006,0x0000007a,0x00000078,0x00000079,0x000500b4,0x0000007b,0x0000007c,0x0000007a,
+ 0x00000027,0x000300f7,0x0000007e,0x00000000,0x000400fa,0x0000007c,0x0000007d,0x0000007e,
+ 0x000200f8,0x0000007d,0x000100fc,0x000200f8,0x0000007e,0x0004003d,0x00000014,0x00000081,
+ 0x00000019,0x00050041,0x0000002c,0x00000082,0x00000018,0x00000021,0x0004003d,0x00000009,
+ 0x00000083,0x00000082,0x0007004f,0x00000007,0x00000084,0x00000083,0x00000083,0x00000000,
+ 0x00000001,0x00050057,0x00000009,0x00000085,0x00000081,0x00000084,0x0008004f,0x00000044,
+ 0x00000086,0x00000085,0x00000085,0x00000000,0x00000001,0x00000002,0x0004003d,0x00000044,
+ 0x00000087,0x00000046,0x00050094,0x00000006,0x00000088,0x00000086,0x00000087,0x0003003e,
+ 0x00000080,0x00000088,0x0004003d,0x00000014,0x0000008a,0x00000019,0x00050041,0x0000002c,
+ 0x0000008b,0x00000018,0x00000021,0x0004003d,0x00000009,0x0000008c,0x0000008b,0x0007004f,
+ 0x00000007,0x0000008d,0x0000008c,0x0000008c,0x00000002,0x00000003,0x00050057,0x00000009,
+ 0x0000008e,0x0000008a,0x0000008d,0x0008004f,0x00000044,0x0000008f,0x0000008e,0x0000008e,
+ 0x00000000,0x00000001,0x00000002,0x0004003d,0x00000044,0x00000090,0x00000046,0x00050094,
+ 0x00000006,0x00000091,0x0000008f,0x00000090,0x0003003e,0x00000089,0x00000091,0x0004003d,
+ 0x00000006,0x00000092,0x0000004c,0x0004003d,0x00000006,0x00000093,0x00000080,0x0004003d,
+ 0x00000006,0x00000094,0x00000089,0x00050050,0x00000007,0x00000095,0x00000093,0x00000094,
+ 0x00050050,0x00000007,0x00000096,0x00000092,0x00000092,0x00050083,0x00000007,0x00000097,
+ 0x00000096,0x00000095,0x0006000c,0x00000007,0x00000098,0x00000001,0x00000004,0x00000097,
+ 0x00050041,0x0000004b,0x0000009a,0x00000065,0x00000099,0x00050051,0x00000006,0x0000009b,
+ 0x00000098,0x00000000,0x0003003e,0x0000009a,0x0000009b,0x00050041,0x0000004b,0x0000009c,
+ 0x00000065,0x0000000b,0x00050051,0x00000006,0x0000009d,0x00000098,0x00000001,0x0003003e,
+ 0x0000009c,0x0000009d,0x0004003d,0x00000009,0x0000009f,0x00000065,0x0007004f,0x00000007,
+ 0x000000a0,0x0000009f,0x0000009f,0x00000000,0x00000001,0x0004003d,0x00000009,0x000000a1,
+ 0x00000065,0x0007004f,0x00000007,0x000000a2,0x000000a1,0x000000a1,0x00000002,0x00000003,
+ 0x0007000c,0x00000007,0x000000a3,0x00000001,0x00000028,0x000000a0,0x000000a2,0x0003003e,
+ 0x0000009e,0x000000a3,0x0004003d,0x00000014,0x000000a5,0x00000019,0x00050041,0x0000002c,
+ 0x000000a6,0x00000018,0x00000037,0x0004003d,0x00000009,0x000000a7,0x000000a6,0x0007004f,
+ 0x00000007,0x000000a8,0x000000a7,0x000000a7,0x00000000,0x00000001,0x00050057,0x00000009,
+ 0x000000a9,0x000000a5,0x000000a8,0x0008004f,0x00000044,0x000000aa,0x000000a9,0x000000a9,
+ 0x00000000,0x00000001,0x00000002,0x0004003d,0x00000044,0x000000ab,0x00000046,0x00050094,
+ 0x00000006,0x000000ac,0x000000aa,0x000000ab,0x0003003e,0x000000a4,0x000000ac,0x0004003d,
+ 0x00000014,0x000000ae,0x00000019,0x00050041,0x0000002c,0x000000af,0x00000018,0x00000037,
+ 0x0004003d,0x00000009,0x000000b0,0x000000af,0x0007004f,0x00000007,0x000000b1,0x000000b0,
+ 0x000000b0,0x00000002,0x00000003,0x00050057,0x00000009,0x000000b2,0x000000ae,0x000000b1,
+ 0x0008004f,0x00000044,0x000000b3,0x000000b2,0x000000b2,0x00000000,0x00000001,0x00000002,
+ 0x0004003d,0x00000044,0x000000b4,0x00000046,0x00050094,0x00000006,0x000000b5,0x000000b3,
+ 0x000000b4,0x0003003e,0x000000ad,0x000000b5,0x0004003d,0x00000006,0x000000b6,0x00000053,
+ 0x0004003d,0x00000006,0x000000b7,0x0000005c,0x00050050,0x00000007,0x000000b8,0x000000b6,
+ 0x000000b7,0x0004003d,0x00000006,0x000000b9,0x000000a4,0x0004003d,0x00000006,0x000000ba,
+ 0x000000ad,0x00050050,0x00000007,0x000000bb,0x000000b9,0x000000ba,0x00050083,0x00000007,
+ 0x000000bc,0x000000b8,0x000000bb,0x0006000c,0x00000007,0x000000bd,0x00000001,0x00000004,
+ 0x000000bc,0x00050041,0x0000004b,0x000000be,0x00000065,0x00000099,0x00050051,0x00000006,
+ 0x000000bf,0x000000bd,0x00000000,0x0003003e,0x000000be,0x000000bf,0x00050041,0x0000004b,
+ 0x000000c0,0x00000065,0x0000000b,0x00050051,0x00000006,0x000000c1,0x000000bd,0x00000001,
+ 0x0003003e,0x000000c0,0x000000c1,0x0004003d,0x00000007,0x000000c2,0x0000009e,0x0004003d,
+ 0x00000009,0x000000c3,0x00000065,0x0007004f,0x00000007,0x000000c4,0x000000c3,0x000000c3,
+ 0x00000002,0x00000003,0x0007000c,0x00000007,0x000000c5,0x00000001,0x00000028,0x000000c2,
+ 0x000000c4,0x0003003e,0x0000009e,0x000000c5,0x00050041,0x0000004b,0x000000c7,0x0000009e,
+ 0x0000006d,0x0004003d,0x00000006,0x000000c8,0x000000c7,0x00050041,0x0000004b,0x000000c9,
+ 0x0000009e,0x00000070,0x0004003d,0x00000006,0x000000ca,0x000000c9,0x0007000c,0x00000006,
+ 0x000000cb,0x00000001,0x00000028,0x000000c8,0x000000ca,0x0003003e,0x000000c6,0x000000cb,
+ 0x0004003d,0x00000006,0x000000cc,0x000000c6,0x0004003d,0x00000009,0x000000ce,0x00000065,
+ 0x0007004f,0x00000007,0x000000cf,0x000000ce,0x000000ce,0x00000000,0x00000001,0x0005008e,
+ 0x00000007,0x000000d0,0x000000cf,0x000000cd,0x00050050,0x00000007,0x000000d1,0x000000cc,
+ 0x000000cc,0x0007000c,0x00000007,0x000000d2,0x00000001,0x00000030,0x000000d1,0x000000d0,
+ 0x0004003d,0x00000007,0x000000d3,0x00000073,0x00050085,0x00000007,0x000000d4,0x000000d3,
+ 0x000000d2,0x0003003e,0x00000073,0x000000d4,0x0004003d,0x00000007,0x000000d5,0x00000073,
+ 0x000200fe,0x000000d5,0x00010038
};
diff --git a/app/src/main/cpp/shaders/smaa_tables.h b/app/src/main/cpp/shaders/smaa_tables.h
new file mode 100644
index 0000000000..ebc28d815b
--- /dev/null
+++ b/app/src/main/cpp/shaders/smaa_tables.h
@@ -0,0 +1,1375 @@
+/**
+ * Copyright (C) 2013 Jorge Jimenez (jorge@iryoku.com)
+ * Copyright (C) 2013 Jose I. Echevarria (joseignacioechevarria@gmail.com)
+ * Copyright (C) 2013 Belen Masia (bmasia@unizar.es)
+ * Copyright (C) 2013 Fernando Navarro (fernandn@microsoft.com)
+ * Copyright (C) 2013 Diego Gutierrez (diegog@unizar.es)
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * this software and associated documentation files (the "Software"), to deal in
+ * the Software without restriction, including without limitation the rights to
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+ * of the Software, and to permit persons to whom the Software is furnished to
+ * do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software. As clarification, there
+ * is no requirement that the copyright notice and permission be included in
+ * binary distributions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+/* SMAA's lookup tables, from Textures/AreaTex.h and Textures/SearchTex.h of github.com/iryoku/smaa.
+ * SMAA 1x reads only the first 80 of the area table's 560 rows; the other rows are not included. */
+#pragma once
+
+#define SMAA_AREA_W 160
+#define SMAA_AREA_H 560
+#define SMAA_AREA_ROWS 80
+#define SMAA_SEARCH_W 64
+#define SMAA_SEARCH_H 16
+
+static const unsigned char kSmaaArea[SMAA_AREA_W * SMAA_AREA_ROWS * 2] = {
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x40,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x44,0x7b,0x41,0x5d,0x42,0x54,0x41,0x4f,0x42,0x4b,0x42,0x49,0x42,0x48,0x41,0x47,0x42,0x46,0x42,0x45,
+ 0x42,0x45,0x42,0x44,0x42,0x44,0x42,0x44,0x42,0x43,0x41,0x43,0x42,0x43,0x42,0x43,0x42,0x43,0x42,0x43,
+ 0x04,0x7f,0x22,0x3d,0x2b,0x3d,0x30,0x3d,0x33,0x3d,0x35,0x3d,0x37,0x3d,0x38,0x3d,0x39,0x3d,0x39,0x3d,
+ 0x3a,0x3d,0x3a,0x3d,0x3b,0x3d,0x3b,0x3d,0x3b,0x3d,0x3c,0x3d,0x3c,0x3d,0x3c,0x3d,0x3c,0x3d,0x3c,0x3d,
+ 0x40,0x7f,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3f,0x00,0x0a,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3f,0x00,0x0a,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x62,0x20,0x4d,0x2a,0x48,0x30,0x44,0x33,0x44,0x35,0x44,0x36,0x43,0x37,0x42,0x38,0x43,0x39,0x42,0x39,
+ 0x42,0x3a,0x42,0x3a,0x42,0x3b,0x42,0x3b,0x42,0x3b,0x41,0x3b,0x42,0x3c,0x42,0x3c,0x42,0x3c,0x42,0x3c,
+ 0x00,0x5d,0x0c,0x49,0x16,0x43,0x1d,0x41,0x22,0x40,0x26,0x3f,0x29,0x3f,0x2c,0x3f,0x2e,0x3e,0x2f,0x3e,
+ 0x31,0x3e,0x32,0x3e,0x33,0x3e,0x33,0x3e,0x34,0x3e,0x35,0x3e,0x35,0x3e,0x36,0x3e,0x37,0x3e,0x37,0x3e,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x00,0x3f,0x00,0x03,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x00,0x3f,0x00,
+ 0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x6d,0x0b,0x57,0x16,0x4f,0x1d,0x4a,0x22,0x48,0x26,0x47,0x29,0x46,0x2b,0x44,0x2d,0x44,0x2f,0x44,0x30,
+ 0x44,0x31,0x44,0x32,0x43,0x33,0x43,0x34,0x43,0x34,0x42,0x35,0x43,0x36,0x42,0x36,0x42,0x37,0x42,0x37,
+ 0x00,0x68,0x06,0x54,0x0d,0x4b,0x14,0x47,0x19,0x44,0x1d,0x43,0x20,0x41,0x23,0x41,0x26,0x40,0x27,0x40,
+ 0x29,0x3f,0x2b,0x3f,0x2c,0x3f,0x2d,0x3f,0x2e,0x3f,0x2f,0x3f,0x30,0x3f,0x30,0x3e,0x31,0x3e,0x32,0x3e,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x72,0x00,0x5c,0x00,0x2d,0x00,0x01,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x72,0x00,0x5c,0x00,
+ 0x2d,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x42,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x72,0x06,0x5f,0x0d,0x56,0x14,0x4f,0x19,0x4d,0x1d,0x4a,0x20,0x49,0x23,0x47,0x25,0x46,0x27,0x46,0x29,
+ 0x45,0x2a,0x45,0x2c,0x44,0x2d,0x44,0x2e,0x44,0x2f,0x43,0x30,0x44,0x30,0x44,0x31,0x43,0x32,0x43,0x33,
+ 0x00,0x6d,0x04,0x5b,0x09,0x51,0x0e,0x4c,0x13,0x48,0x17,0x46,0x1a,0x44,0x1d,0x43,0x1f,0x42,0x22,0x42,
+ 0x24,0x41,0x25,0x41,0x27,0x40,0x28,0x40,0x29,0x40,0x2a,0x3f,0x2b,0x3f,0x2c,0x3f,0x2d,0x3f,0x2e,0x3f,
+ 0x42,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x78,0x00,0x6a,0x00,0x48,0x00,0x22,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x78,0x00,0x6a,0x00,
+ 0x48,0x00,0x22,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x75,0x03,0x64,0x09,0x5a,0x0e,0x54,0x13,0x51,0x17,0x4e,0x1a,0x4c,0x1d,0x49,0x1f,0x49,0x22,0x48,0x23,
+ 0x47,0x25,0x46,0x26,0x46,0x28,0x45,0x29,0x45,0x2a,0x44,0x2b,0x44,0x2c,0x44,0x2d,0x44,0x2e,0x44,0x2e,
+ 0x00,0x70,0x02,0x60,0x07,0x56,0x0b,0x50,0x0f,0x4c,0x12,0x49,0x16,0x47,0x18,0x46,0x1b,0x45,0x1d,0x44,
+ 0x1f,0x43,0x21,0x42,0x22,0x42,0x24,0x41,0x25,0x41,0x26,0x40,0x27,0x40,0x28,0x40,0x29,0x40,0x2a,0x3f,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7a,0x00,0x71,0x00,0x59,0x00,0x3a,
+ 0x00,0x1b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7a,0x00,0x71,0x00,
+ 0x59,0x00,0x3a,0x00,0x1b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x77,0x02,0x68,0x06,0x5f,0x0b,0x58,0x0f,0x54,0x12,0x51,0x15,0x4f,0x18,0x4c,0x1b,0x4b,0x1d,0x4a,0x1f,
+ 0x49,0x21,0x48,0x22,0x48,0x23,0x47,0x25,0x46,0x26,0x45,0x27,0x45,0x28,0x45,0x29,0x45,0x2a,0x44,0x2b,
+ 0x00,0x72,0x02,0x64,0x05,0x5b,0x08,0x54,0x0c,0x50,0x0f,0x4d,0x12,0x4a,0x14,0x48,0x17,0x47,0x19,0x46,
+ 0x1b,0x45,0x1d,0x44,0x1f,0x44,0x20,0x42,0x21,0x42,0x22,0x42,0x24,0x41,0x25,0x41,0x26,0x41,0x27,0x40,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7c,0x00,0x75,0x00,0x63,0x00,0x4a,
+ 0x00,0x30,0x00,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7c,0x00,0x75,0x00,
+ 0x63,0x00,0x4a,0x00,0x30,0x00,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x78,0x02,0x6b,0x05,0x62,0x08,0x5b,0x0c,0x57,0x0f,0x54,0x12,0x51,0x14,0x4e,0x17,0x4d,0x19,0x4c,0x1b,
+ 0x4b,0x1d,0x4a,0x1e,0x49,0x20,0x48,0x21,0x48,0x22,0x46,0x24,0x46,0x25,0x46,0x26,0x46,0x27,0x45,0x27,
+ 0x00,0x74,0x01,0x66,0x04,0x5e,0x07,0x57,0x0a,0x53,0x0d,0x4f,0x10,0x4d,0x12,0x4b,0x14,0x49,0x16,0x48,
+ 0x18,0x46,0x1a,0x45,0x1b,0x45,0x1d,0x44,0x1e,0x44,0x20,0x43,0x21,0x42,0x22,0x42,0x23,0x42,0x24,0x41,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7c,0x00,0x78,0x00,0x6a,0x00,0x56,
+ 0x00,0x3f,0x00,0x28,0x00,0x13,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7c,0x00,0x78,0x00,
+ 0x6a,0x00,0x56,0x00,0x3f,0x00,0x28,0x00,0x13,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x79,0x01,0x6d,0x04,0x65,0x07,0x5e,0x0a,0x5a,0x0d,0x56,0x0f,0x54,0x12,0x51,0x14,0x4f,0x16,0x4e,0x18,
+ 0x4c,0x1a,0x4b,0x1b,0x4b,0x1d,0x4a,0x1e,0x49,0x1f,0x48,0x21,0x48,0x22,0x48,0x23,0x47,0x23,0x46,0x25,
+ 0x00,0x75,0x01,0x69,0x03,0x61,0x06,0x5a,0x08,0x56,0x0b,0x52,0x0d,0x4f,0x10,0x4d,0x12,0x4b,0x14,0x4a,
+ 0x16,0x48,0x17,0x47,0x19,0x46,0x1a,0x45,0x1c,0x45,0x1d,0x44,0x1e,0x44,0x1f,0x44,0x20,0x43,0x21,0x42,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7d,0x00,0x79,0x00,0x6e,0x00,0x5e,
+ 0x00,0x4b,0x00,0x37,0x00,0x23,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7d,0x00,0x79,0x00,
+ 0x6e,0x00,0x5e,0x00,0x4b,0x00,0x37,0x00,0x23,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x7a,0x01,0x6f,0x03,0x67,0x06,0x60,0x08,0x5d,0x0b,0x59,0x0d,0x56,0x10,0x53,0x11,0x51,0x14,0x50,0x15,
+ 0x4e,0x17,0x4d,0x19,0x4c,0x1a,0x4b,0x1b,0x4b,0x1d,0x48,0x1e,0x49,0x1f,0x49,0x20,0x48,0x21,0x48,0x22,
+ 0x00,0x76,0x01,0x6b,0x03,0x63,0x05,0x5d,0x07,0x58,0x09,0x54,0x0c,0x52,0x0e,0x4f,0x10,0x4d,0x11,0x4c,
+ 0x13,0x4a,0x15,0x49,0x17,0x48,0x18,0x47,0x19,0x46,0x1b,0x45,0x1c,0x45,0x1d,0x44,0x1e,0x44,0x1f,0x44,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7d,0x00,0x7a,0x00,0x72,0x00,0x64,
+ 0x00,0x54,0x00,0x42,0x00,0x30,0x00,0x1f,0x00,0x0e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7d,0x00,0x7a,0x00,
+ 0x72,0x00,0x64,0x00,0x54,0x00,0x42,0x00,0x30,0x00,0x1f,0x00,0x0e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x7b,0x01,0x71,0x02,0x69,0x05,0x63,0x07,0x5f,0x09,0x5b,0x0c,0x58,0x0e,0x55,0x10,0x53,0x11,0x52,0x13,
+ 0x50,0x15,0x4e,0x16,0x4e,0x18,0x4c,0x19,0x4c,0x1a,0x4a,0x1c,0x4b,0x1d,0x49,0x1e,0x49,0x1f,0x49,0x20,
+ 0x00,0x77,0x00,0x6c,0x02,0x65,0x04,0x5f,0x06,0x5a,0x08,0x57,0x0a,0x54,0x0c,0x51,0x0e,0x4f,0x10,0x4d,
+ 0x11,0x4c,0x13,0x4a,0x15,0x49,0x16,0x48,0x18,0x48,0x18,0x46,0x1a,0x46,0x1b,0x45,0x1c,0x45,0x1d,0x45,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7b,0x00,0x74,0x00,0x69,
+ 0x00,0x5b,0x00,0x4b,0x00,0x3b,0x00,0x2b,0x00,0x1b,0x00,0x0d,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7b,0x00,
+ 0x74,0x00,0x69,0x00,0x5b,0x00,0x4b,0x00,0x3b,0x00,0x2b,0x00,0x1b,0x00,0x0d,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x7b,0x00,0x72,0x02,0x6b,0x04,0x64,0x06,0x61,0x08,0x5d,0x0a,0x5a,0x0c,0x56,0x0e,0x55,0x10,0x53,0x11,
+ 0x52,0x13,0x50,0x15,0x4f,0x16,0x4e,0x17,0x4d,0x18,0x4b,0x1a,0x4b,0x1a,0x4b,0x1c,0x4b,0x1d,0x49,0x1d,
+ 0x00,0x77,0x00,0x6e,0x02,0x66,0x04,0x61,0x05,0x5c,0x07,0x59,0x09,0x56,0x0b,0x53,0x0d,0x51,0x0f,0x4f,
+ 0x10,0x4e,0x11,0x4c,0x13,0x4b,0x14,0x4a,0x15,0x48,0x17,0x48,0x18,0x47,0x19,0x46,0x1b,0x46,0x1b,0x45,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7c,0x00,0x76,0x00,0x6d,
+ 0x00,0x61,0x00,0x53,0x00,0x44,0x00,0x35,0x00,0x27,0x00,0x19,0x00,0x0c,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7c,0x00,
+ 0x76,0x00,0x6d,0x00,0x61,0x00,0x53,0x00,0x44,0x00,0x35,0x00,0x27,0x00,0x19,0x00,0x0c,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x7c,0x00,0x73,0x02,0x6c,0x03,0x66,0x05,0x63,0x07,0x5e,0x09,0x5c,0x0b,0x58,0x0c,0x57,0x0e,0x55,0x10,
+ 0x53,0x11,0x52,0x13,0x50,0x14,0x4f,0x15,0x4e,0x17,0x4c,0x18,0x4c,0x19,0x4c,0x1a,0x4b,0x1a,0x4b,0x1c,
+ 0x00,0x77,0x00,0x6f,0x02,0x68,0x03,0x63,0x05,0x5e,0x06,0x5a,0x08,0x57,0x0a,0x55,0x0b,0x53,0x0d,0x50,
+ 0x0f,0x4f,0x10,0x4e,0x11,0x4c,0x13,0x4b,0x14,0x4a,0x15,0x49,0x16,0x48,0x18,0x48,0x18,0x46,0x19,0x46,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7c,0x00,0x77,0x00,0x6f,
+ 0x00,0x65,0x00,0x59,0x00,0x4c,0x00,0x3e,0x00,0x30,0x00,0x23,0x00,0x16,0x00,0x0b,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7c,0x00,
+ 0x77,0x00,0x6f,0x00,0x65,0x00,0x59,0x00,0x4c,0x00,0x3e,0x00,0x30,0x00,0x23,0x00,0x16,0x00,0x0b,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x7c,0x00,0x74,0x02,0x6e,0x03,0x68,0x05,0x64,0x06,0x60,0x08,0x5d,0x0a,0x5a,0x0b,0x58,0x0d,0x56,0x0e,
+ 0x55,0x10,0x53,0x11,0x52,0x13,0x50,0x14,0x50,0x15,0x4d,0x16,0x4e,0x18,0x4c,0x18,0x4c,0x19,0x4c,0x1a,
+ 0x00,0x78,0x00,0x70,0x01,0x69,0x03,0x64,0x04,0x60,0x06,0x5c,0x07,0x59,0x09,0x56,0x0b,0x54,0x0c,0x52,
+ 0x0d,0x50,0x0f,0x4f,0x10,0x4e,0x11,0x4c,0x13,0x4b,0x13,0x4a,0x15,0x4a,0x15,0x48,0x17,0x48,0x18,0x47,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7d,0x00,0x78,0x00,0x71,
+ 0x00,0x68,0x00,0x5e,0x00,0x52,0x00,0x45,0x00,0x39,0x00,0x2c,0x00,0x20,0x00,0x15,0x00,0x0a,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7d,0x00,
+ 0x78,0x00,0x71,0x00,0x68,0x00,0x5e,0x00,0x52,0x00,0x45,0x00,0x39,0x00,0x2c,0x00,0x20,0x00,0x15,0x00,
+ 0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x7d,0x00,0x75,0x01,0x6f,0x02,0x69,0x04,0x65,0x06,0x62,0x07,0x5f,0x09,0x5b,0x0b,0x5a,0x0c,0x58,0x0d,
+ 0x56,0x0e,0x55,0x10,0x53,0x11,0x52,0x13,0x50,0x13,0x4f,0x15,0x4e,0x15,0x4e,0x17,0x4d,0x18,0x4c,0x18,
+ 0x00,0x78,0x00,0x71,0x01,0x6a,0x03,0x66,0x04,0x61,0x05,0x5d,0x06,0x5a,0x08,0x58,0x09,0x55,0x0b,0x53,
+ 0x0d,0x52,0x0e,0x50,0x0f,0x4e,0x10,0x4e,0x11,0x4c,0x13,0x4c,0x13,0x4a,0x15,0x4a,0x15,0x49,0x16,0x48,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7d,0x00,0x79,0x00,0x73,
+ 0x00,0x6b,0x00,0x62,0x00,0x57,0x00,0x4c,0x00,0x40,0x00,0x34,0x00,0x29,0x00,0x1e,0x00,0x13,0x00,0x09,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7d,0x00,
+ 0x79,0x00,0x73,0x00,0x6b,0x00,0x62,0x00,0x57,0x00,0x4c,0x00,0x40,0x00,0x34,0x00,0x29,0x00,0x1e,0x00,
+ 0x13,0x00,0x09,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x7d,0x00,0x76,0x01,0x70,0x02,0x6a,0x03,0x67,0x05,0x63,0x06,0x60,0x08,0x5d,0x09,0x5b,0x0b,0x59,0x0c,
+ 0x57,0x0d,0x55,0x0e,0x55,0x10,0x53,0x11,0x52,0x13,0x4f,0x13,0x50,0x15,0x4f,0x15,0x4e,0x16,0x4e,0x18,
+ 0x00,0x79,0x00,0x71,0x01,0x6c,0x02,0x66,0x04,0x62,0x05,0x5f,0x06,0x5c,0x07,0x59,0x09,0x57,0x0a,0x55,
+ 0x0b,0x53,0x0d,0x51,0x0e,0x50,0x0f,0x4e,0x11,0x4e,0x11,0x4c,0x13,0x4c,0x13,0x4b,0x14,0x4a,0x15,0x4a,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7d,0x00,0x7a,0x00,0x75,
+ 0x00,0x6e,0x00,0x65,0x00,0x5b,0x00,0x51,0x00,0x46,0x00,0x3b,0x00,0x30,0x00,0x26,0x00,0x1b,0x00,0x12,
+ 0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7d,0x00,
+ 0x7a,0x00,0x75,0x00,0x6e,0x00,0x65,0x00,0x5b,0x00,0x51,0x00,0x46,0x00,0x3b,0x00,0x30,0x00,0x26,0x00,
+ 0x1b,0x00,0x12,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x7d,0x00,0x76,0x01,0x71,0x02,0x6c,0x03,0x68,0x05,0x64,0x06,0x61,0x07,0x5e,0x09,0x5c,0x0a,0x5a,0x0b,
+ 0x59,0x0c,0x57,0x0e,0x55,0x0e,0x55,0x11,0x52,0x11,0x51,0x12,0x51,0x13,0x50,0x14,0x4f,0x15,0x4e,0x15,
+ 0x00,0x79,0x00,0x72,0x01,0x6d,0x02,0x68,0x03,0x63,0x04,0x60,0x06,0x5d,0x07,0x5b,0x08,0x58,0x09,0x56,
+ 0x0b,0x54,0x0c,0x53,0x0d,0x51,0x0e,0x50,0x0f,0x4e,0x11,0x4e,0x11,0x4c,0x12,0x4c,0x13,0x4b,0x14,0x4a,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x1f,0x00,0x3f,0x00,0x66,0x00,0x72,0x00,0x78,0x00,0x7a,0x00,0x7c,0x00,0x7c,0x00,0x7d,0x00,0x7d,
+ 0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x7d,0x00,0x58,0x00,0x70,0x00,0x77,
+ 0x00,0x79,0x00,0x7b,0x00,0x7c,0x00,0x7c,0x00,0x7d,0x00,0x7d,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x7e,
+ 0x00,0x7e,0x00,0x7e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0x1f,0x00,0x3f,
+ 0x00,0x66,0x00,0x72,0x00,0x78,0x00,0x7a,0x00,0x7c,0x00,0x7c,0x00,0x7d,0x00,0x7d,0x00,0x7e,0x00,0x7e,
+ 0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x1f,0x1f,0x00,0x3f,0x00,0x66,0x00,0x72,0x00,0x78,0x00,0x7a,
+ 0x00,0x7c,0x00,0x7c,0x00,0x7d,0x00,0x7d,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x7e,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x7d,0x00,0x77,0x01,0x72,0x02,0x6d,0x03,0x69,0x04,0x66,0x06,0x63,0x07,0x5f,0x08,0x5e,0x09,0x5c,0x0b,
+ 0x5a,0x0c,0x58,0x0c,0x57,0x0e,0x55,0x0f,0x54,0x11,0x51,0x11,0x52,0x12,0x51,0x13,0x50,0x14,0x50,0x15,
+ 0x00,0x79,0x00,0x73,0x01,0x6d,0x02,0x69,0x03,0x65,0x04,0x61,0x05,0x5e,0x06,0x5c,0x07,0x59,0x09,0x57,
+ 0x0a,0x55,0x0b,0x54,0x0d,0x53,0x0d,0x51,0x0f,0x50,0x0f,0x4e,0x11,0x4e,0x11,0x4c,0x12,0x4c,0x13,0x4b,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x0a,0x00,0x3f,0x00,0x5c,0x00,0x6a,0x00,0x71,0x00,0x75,0x00,0x78,0x00,0x79,0x00,0x7a,
+ 0x00,0x7b,0x00,0x7c,0x00,0x7c,0x00,0x7d,0x00,0x7d,0x00,0x7d,0x00,0x58,0x00,0x44,0x00,0x55,0x00,0x67,
+ 0x00,0x6e,0x00,0x72,0x00,0x75,0x00,0x78,0x00,0x79,0x00,0x7a,0x00,0x7b,0x00,0x7c,0x00,0x7c,0x00,0x7d,
+ 0x00,0x7d,0x00,0x7d,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3f,0x00,0x0a,0x0a,
+ 0x00,0x3f,0x00,0x5c,0x00,0x6a,0x00,0x71,0x00,0x75,0x00,0x78,0x00,0x79,0x00,0x7a,0x00,0x7b,0x00,0x7c,
+ 0x00,0x7c,0x00,0x7d,0x00,0x7d,0x00,0x7d,0x3f,0x00,0x0a,0x0a,0x00,0x3f,0x00,0x5c,0x00,0x6a,0x00,0x71,
+ 0x00,0x75,0x00,0x78,0x00,0x79,0x00,0x7a,0x00,0x7b,0x00,0x7c,0x00,0x7c,0x00,0x7d,0x00,0x7d,0x00,0x7d,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x7d,0x00,0x78,0x01,0x72,0x02,0x6e,0x02,0x6a,0x03,0x67,0x05,0x64,0x06,0x60,0x07,0x5f,0x09,0x5c,0x0a,
+ 0x5b,0x0b,0x5a,0x0c,0x57,0x0c,0x56,0x0e,0x55,0x0f,0x53,0x11,0x52,0x11,0x52,0x12,0x51,0x13,0x50,0x13,
+ 0x00,0x79,0x00,0x73,0x01,0x6e,0x02,0x69,0x03,0x66,0x04,0x62,0x05,0x5f,0x06,0x5d,0x07,0x5b,0x08,0x58,
+ 0x09,0x56,0x0b,0x55,0x0b,0x53,0x0d,0x52,0x0d,0x50,0x0f,0x50,0x0f,0x4e,0x11,0x4e,0x11,0x4d,0x12,0x4c,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x2d,0x00,0x48,0x00,0x59,0x00,0x63,0x00,0x6a,0x00,0x6e,0x00,0x72,
+ 0x00,0x74,0x00,0x76,0x00,0x77,0x00,0x78,0x00,0x79,0x00,0x7a,0x00,0x70,0x00,0x55,0x00,0x20,0x00,0x3e,
+ 0x00,0x50,0x00,0x5a,0x00,0x63,0x00,0x6a,0x00,0x6e,0x00,0x72,0x00,0x74,0x00,0x76,0x00,0x77,0x00,0x78,
+ 0x00,0x79,0x00,0x7a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x00,0x3f,0x00,
+ 0x03,0x03,0x00,0x2d,0x00,0x48,0x00,0x59,0x00,0x63,0x00,0x6a,0x00,0x6e,0x00,0x72,0x00,0x74,0x00,0x76,
+ 0x00,0x77,0x00,0x78,0x00,0x79,0x00,0x7a,0x66,0x00,0x3f,0x00,0x03,0x03,0x00,0x2d,0x00,0x48,0x00,0x59,
+ 0x00,0x63,0x00,0x6a,0x00,0x6e,0x00,0x72,0x00,0x74,0x00,0x76,0x00,0x77,0x00,0x78,0x00,0x79,0x00,0x7a,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x7e,0x00,0x78,0x01,0x73,0x02,0x6e,0x02,0x6b,0x03,0x68,0x05,0x65,0x06,0x61,0x07,0x5f,0x07,0x5e,0x09,
+ 0x5c,0x0b,0x5a,0x0b,0x59,0x0c,0x57,0x0d,0x56,0x0e,0x54,0x0f,0x54,0x11,0x52,0x11,0x52,0x12,0x51,0x13,
+ 0x00,0x79,0x00,0x74,0x00,0x6f,0x02,0x6a,0x03,0x66,0x04,0x63,0x05,0x60,0x05,0x5e,0x06,0x5b,0x07,0x59,
+ 0x09,0x58,0x09,0x55,0x0b,0x55,0x0c,0x53,0x0d,0x52,0x0d,0x50,0x0f,0x50,0x0f,0x4e,0x11,0x4e,0x11,0x4d,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x22,0x00,0x3a,0x00,0x4a,0x00,0x56,0x00,0x5e,0x00,0x64,
+ 0x00,0x69,0x00,0x6d,0x00,0x6f,0x00,0x71,0x00,0x73,0x00,0x75,0x00,0x77,0x00,0x67,0x00,0x3e,0x00,0x0d,
+ 0x00,0x28,0x00,0x3a,0x00,0x4a,0x00,0x56,0x00,0x5e,0x00,0x64,0x00,0x69,0x00,0x6d,0x00,0x6f,0x00,0x71,
+ 0x00,0x73,0x00,0x75,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x72,0x00,0x5c,0x00,
+ 0x2d,0x00,0x01,0x01,0x00,0x22,0x00,0x3a,0x00,0x4a,0x00,0x56,0x00,0x5e,0x00,0x64,0x00,0x69,0x00,0x6d,
+ 0x00,0x6f,0x00,0x71,0x00,0x73,0x00,0x75,0x72,0x00,0x5c,0x00,0x2d,0x00,0x01,0x01,0x00,0x22,0x00,0x3a,
+ 0x00,0x4a,0x00,0x56,0x00,0x5e,0x00,0x64,0x00,0x69,0x00,0x6d,0x00,0x6f,0x00,0x71,0x00,0x73,0x00,0x75,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x7e,0x00,0x78,0x00,0x74,0x01,0x6f,0x02,0x6c,0x03,0x68,0x04,0x65,0x05,0x62,0x06,0x61,0x07,0x5f,0x09,
+ 0x5c,0x09,0x5b,0x0b,0x5a,0x0b,0x58,0x0c,0x57,0x0d,0x55,0x0e,0x55,0x0f,0x54,0x11,0x52,0x11,0x52,0x12,
+ 0x00,0x79,0x00,0x74,0x00,0x70,0x01,0x6b,0x02,0x67,0x03,0x64,0x04,0x61,0x05,0x5f,0x06,0x5d,0x07,0x5b,
+ 0x08,0x58,0x09,0x57,0x0a,0x55,0x0b,0x54,0x0c,0x53,0x0d,0x51,0x0e,0x50,0x0f,0x50,0x0f,0x4e,0x11,0x4e,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1b,0x00,0x30,0x00,0x3f,0x00,0x4b,0x00,0x54,
+ 0x00,0x5b,0x00,0x61,0x00,0x65,0x00,0x68,0x00,0x6b,0x00,0x6e,0x00,0x79,0x00,0x6e,0x00,0x50,0x00,0x28,
+ 0x00,0x01,0x00,0x1b,0x00,0x30,0x00,0x3f,0x00,0x4b,0x00,0x54,0x00,0x5b,0x00,0x61,0x00,0x65,0x00,0x68,
+ 0x00,0x6b,0x00,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x78,0x00,0x6a,0x00,
+ 0x48,0x00,0x22,0x00,0x00,0x00,0x00,0x1b,0x00,0x30,0x00,0x3f,0x00,0x4b,0x00,0x54,0x00,0x5b,0x00,0x61,
+ 0x00,0x65,0x00,0x68,0x00,0x6b,0x00,0x6e,0x78,0x00,0x6a,0x00,0x48,0x00,0x22,0x00,0x00,0x00,0x00,0x1b,
+ 0x00,0x30,0x00,0x3f,0x00,0x4b,0x00,0x54,0x00,0x5b,0x00,0x61,0x00,0x65,0x00,0x68,0x00,0x6b,0x00,0x6e,
+ 0x21,0x5d,0x0c,0x68,0x06,0x6d,0x04,0x71,0x02,0x72,0x02,0x74,0x01,0x75,0x01,0x76,0x01,0x77,0x00,0x77,
+ 0x00,0x77,0x00,0x78,0x00,0x78,0x00,0x79,0x00,0x79,0x00,0x79,0x00,0x79,0x00,0x79,0x00,0x79,0x00,0x7a,
+ 0x42,0x40,0x17,0x55,0x0c,0x60,0x08,0x66,0x05,0x6a,0x04,0x6d,0x03,0x6f,0x02,0x71,0x02,0x73,0x01,0x73,
+ 0x01,0x74,0x01,0x75,0x01,0x76,0x01,0x77,0x00,0x77,0x00,0x77,0x00,0x78,0x00,0x78,0x00,0x78,0x00,0x78,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x21,0x5d,0x0c,0x68,0x06,0x6d,0x04,0x71,0x02,0x72,0x02,0x74,0x01,0x75,0x01,0x76,0x01,0x77,0x00,0x77,
+ 0x00,0x77,0x00,0x78,0x00,0x78,0x00,0x79,0x00,0x79,0x00,0x79,0x00,0x79,0x00,0x79,0x00,0x79,0x00,0x7a,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x16,0x00,0x28,0x00,0x37,0x00,0x42,
+ 0x00,0x4b,0x00,0x53,0x00,0x59,0x00,0x5e,0x00,0x62,0x00,0x65,0x00,0x7b,0x00,0x72,0x00,0x5a,0x00,0x3a,
+ 0x00,0x1b,0x00,0x01,0x00,0x16,0x00,0x28,0x00,0x37,0x00,0x42,0x00,0x4b,0x00,0x53,0x00,0x59,0x00,0x5e,
+ 0x00,0x62,0x00,0x65,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7a,0x00,0x71,0x00,
+ 0x59,0x00,0x3a,0x00,0x1b,0x00,0x00,0x00,0x00,0x16,0x00,0x28,0x00,0x37,0x00,0x42,0x00,0x4b,0x00,0x53,
+ 0x00,0x59,0x00,0x5e,0x00,0x62,0x00,0x65,0x7a,0x00,0x71,0x00,0x59,0x00,0x3a,0x00,0x1b,0x00,0x00,0x00,
+ 0x00,0x16,0x00,0x28,0x00,0x37,0x00,0x42,0x00,0x4b,0x00,0x53,0x00,0x59,0x00,0x5e,0x00,0x62,0x00,0x65,
+ 0x2b,0x49,0x16,0x53,0x0d,0x5b,0x09,0x60,0x07,0x64,0x05,0x67,0x04,0x69,0x03,0x6b,0x03,0x6c,0x02,0x6e,
+ 0x02,0x6f,0x02,0x70,0x01,0x71,0x01,0x71,0x01,0x72,0x01,0x73,0x01,0x73,0x01,0x74,0x00,0x74,0x00,0x75,
+ 0x57,0x16,0x2d,0x2c,0x1b,0x3b,0x12,0x45,0x0d,0x4d,0x0b,0x53,0x08,0x57,0x07,0x5b,0x05,0x5e,0x05,0x61,
+ 0x04,0x63,0x04,0x65,0x03,0x67,0x02,0x68,0x02,0x69,0x02,0x6b,0x02,0x6c,0x01,0x6d,0x01,0x6e,0x01,0x6f,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x2b,0x49,0x16,0x53,0x0d,0x5b,0x09,0x60,0x07,0x64,0x05,0x67,0x04,0x69,0x03,0x6b,0x03,0x6c,0x02,0x6e,
+ 0x02,0x6f,0x02,0x70,0x01,0x71,0x01,0x71,0x01,0x72,0x01,0x73,0x01,0x73,0x01,0x74,0x00,0x74,0x00,0x75,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x13,0x00,0x23,0x00,0x30,
+ 0x00,0x3b,0x00,0x44,0x00,0x4c,0x00,0x52,0x00,0x57,0x00,0x5b,0x00,0x7c,0x00,0x75,0x00,0x63,0x00,0x4a,
+ 0x00,0x30,0x00,0x16,0x00,0x00,0x00,0x13,0x00,0x23,0x00,0x30,0x00,0x3b,0x00,0x44,0x00,0x4c,0x00,0x52,
+ 0x00,0x57,0x00,0x5b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7c,0x00,0x75,0x00,
+ 0x63,0x00,0x4a,0x00,0x30,0x00,0x16,0x00,0x00,0x00,0x00,0x13,0x00,0x23,0x00,0x30,0x00,0x3b,0x00,0x44,
+ 0x00,0x4c,0x00,0x52,0x00,0x57,0x00,0x5b,0x7c,0x00,0x75,0x00,0x63,0x00,0x4a,0x00,0x30,0x00,0x16,0x00,
+ 0x00,0x00,0x00,0x13,0x00,0x23,0x00,0x30,0x00,0x3b,0x00,0x44,0x00,0x4c,0x00,0x52,0x00,0x57,0x00,0x5b,
+ 0x31,0x43,0x1d,0x4b,0x14,0x51,0x0e,0x56,0x0b,0x5b,0x08,0x5e,0x07,0x61,0x06,0x63,0x05,0x65,0x04,0x67,
+ 0x04,0x68,0x03,0x69,0x03,0x6a,0x03,0x6c,0x02,0x6d,0x02,0x6d,0x02,0x6e,0x02,0x6f,0x02,0x70,0x01,0x70,
+ 0x61,0x0c,0x3b,0x1b,0x28,0x28,0x1d,0x32,0x16,0x3a,0x11,0x41,0x0e,0x47,0x0c,0x4b,0x0a,0x4f,0x09,0x53,
+ 0x07,0x55,0x06,0x58,0x05,0x5a,0x05,0x5c,0x05,0x5e,0x04,0x60,0x04,0x61,0x04,0x63,0x03,0x64,0x02,0x66,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x31,0x43,0x1d,0x4b,0x14,0x51,0x0e,0x56,0x0b,0x5b,0x08,0x5e,0x07,0x61,0x06,0x63,0x05,0x65,0x04,0x67,
+ 0x04,0x68,0x03,0x69,0x03,0x6a,0x03,0x6c,0x02,0x6d,0x02,0x6d,0x02,0x6e,0x02,0x6f,0x02,0x70,0x01,0x70,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x1f,
+ 0x00,0x2b,0x00,0x35,0x00,0x3e,0x00,0x45,0x00,0x4c,0x00,0x51,0x00,0x7c,0x00,0x78,0x00,0x6a,0x00,0x56,
+ 0x00,0x3f,0x00,0x28,0x00,0x13,0x00,0x00,0x00,0x10,0x00,0x1f,0x00,0x2b,0x00,0x35,0x00,0x3e,0x00,0x45,
+ 0x00,0x4c,0x00,0x51,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7c,0x00,0x78,0x00,
+ 0x6a,0x00,0x56,0x00,0x3f,0x00,0x28,0x00,0x13,0x00,0x00,0x00,0x00,0x10,0x00,0x1f,0x00,0x2b,0x00,0x35,
+ 0x00,0x3e,0x00,0x45,0x00,0x4c,0x00,0x51,0x7c,0x00,0x78,0x00,0x6a,0x00,0x56,0x00,0x3f,0x00,0x28,0x00,
+ 0x13,0x00,0x00,0x00,0x00,0x10,0x00,0x1f,0x00,0x2b,0x00,0x35,0x00,0x3e,0x00,0x45,0x00,0x4c,0x00,0x51,
+ 0x33,0x41,0x22,0x46,0x19,0x4c,0x13,0x50,0x0f,0x54,0x0c,0x57,0x0a,0x5a,0x08,0x5d,0x07,0x5f,0x06,0x61,
+ 0x05,0x63,0x05,0x64,0x04,0x66,0x04,0x66,0x04,0x68,0x03,0x69,0x03,0x69,0x03,0x6a,0x03,0x6b,0x02,0x6c,
+ 0x67,0x07,0x45,0x12,0x32,0x1d,0x26,0x26,0x1e,0x2e,0x18,0x34,0x14,0x3a,0x11,0x3f,0x0f,0x44,0x0c,0x47,
+ 0x0b,0x4b,0x0a,0x4d,0x09,0x51,0x07,0x52,0x07,0x55,0x06,0x57,0x05,0x58,0x05,0x5a,0x05,0x5c,0x04,0x5d,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x33,0x41,0x22,0x46,0x19,0x4c,0x13,0x50,0x0f,0x54,0x0c,0x57,0x0a,0x5a,0x08,0x5d,0x07,0x5f,0x06,0x61,
+ 0x05,0x63,0x05,0x64,0x04,0x66,0x04,0x66,0x04,0x68,0x03,0x69,0x03,0x69,0x03,0x6a,0x03,0x6b,0x02,0x6c,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0e,
+ 0x00,0x1b,0x00,0x27,0x00,0x30,0x00,0x39,0x00,0x40,0x00,0x46,0x00,0x7d,0x00,0x79,0x00,0x6e,0x00,0x5e,
+ 0x00,0x4b,0x00,0x37,0x00,0x23,0x00,0x10,0x00,0x00,0x00,0x0e,0x00,0x1b,0x00,0x27,0x00,0x30,0x00,0x39,
+ 0x00,0x40,0x00,0x46,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7d,0x00,0x79,0x00,
+ 0x6e,0x00,0x5e,0x00,0x4b,0x00,0x37,0x00,0x23,0x00,0x10,0x00,0x00,0x00,0x00,0x0e,0x00,0x1b,0x00,0x27,
+ 0x00,0x30,0x00,0x39,0x00,0x40,0x00,0x46,0x7d,0x00,0x79,0x00,0x6e,0x00,0x5e,0x00,0x4b,0x00,0x37,0x00,
+ 0x23,0x00,0x10,0x00,0x00,0x00,0x00,0x0e,0x00,0x1b,0x00,0x27,0x00,0x30,0x00,0x39,0x00,0x40,0x00,0x46,
+ 0x35,0x40,0x27,0x44,0x1d,0x48,0x17,0x4c,0x12,0x50,0x0f,0x53,0x0d,0x56,0x0b,0x58,0x09,0x5a,0x08,0x5c,
+ 0x07,0x5e,0x06,0x60,0x06,0x61,0x05,0x62,0x05,0x63,0x04,0x65,0x04,0x66,0x04,0x66,0x04,0x67,0x03,0x68,
+ 0x6b,0x05,0x4d,0x0d,0x3b,0x16,0x2e,0x1e,0x25,0x25,0x1f,0x2b,0x1a,0x31,0x16,0x36,0x13,0x3a,0x10,0x3e,
+ 0x0f,0x42,0x0d,0x45,0x0c,0x47,0x0a,0x4a,0x0a,0x4c,0x09,0x4f,0x07,0x51,0x07,0x52,0x07,0x54,0x06,0x56,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x35,0x40,0x27,0x44,0x1d,0x48,0x17,0x4c,0x12,0x50,0x0f,0x53,0x0d,0x56,0x0b,0x58,0x09,0x5a,0x08,0x5c,
+ 0x07,0x5e,0x06,0x60,0x06,0x61,0x05,0x62,0x05,0x63,0x04,0x65,0x04,0x66,0x04,0x66,0x04,0x67,0x03,0x68,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x0d,0x00,0x19,0x00,0x23,0x00,0x2c,0x00,0x34,0x00,0x3b,0x00,0x7d,0x00,0x7a,0x00,0x72,0x00,0x64,
+ 0x00,0x54,0x00,0x42,0x00,0x30,0x00,0x1f,0x00,0x0e,0x00,0x00,0x00,0x0d,0x00,0x19,0x00,0x23,0x00,0x2c,
+ 0x00,0x34,0x00,0x3b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7d,0x00,0x7a,0x00,
+ 0x72,0x00,0x64,0x00,0x54,0x00,0x42,0x00,0x30,0x00,0x1f,0x00,0x0e,0x00,0x00,0x00,0x00,0x0d,0x00,0x19,
+ 0x00,0x23,0x00,0x2c,0x00,0x34,0x00,0x3b,0x7d,0x00,0x7a,0x00,0x72,0x00,0x64,0x00,0x54,0x00,0x42,0x00,
+ 0x30,0x00,0x1f,0x00,0x0e,0x00,0x00,0x00,0x00,0x0d,0x00,0x19,0x00,0x23,0x00,0x2c,0x00,0x34,0x00,0x3b,
+ 0x37,0x3f,0x29,0x43,0x21,0x46,0x1a,0x49,0x16,0x4d,0x12,0x50,0x10,0x52,0x0d,0x54,0x0c,0x57,0x0a,0x59,
+ 0x09,0x5a,0x08,0x5c,0x07,0x5d,0x06,0x5f,0x06,0x60,0x06,0x61,0x05,0x62,0x05,0x63,0x04,0x64,0x04,0x65,
+ 0x6e,0x04,0x53,0x0a,0x41,0x11,0x34,0x18,0x2b,0x1f,0x24,0x24,0x1f,0x29,0x1b,0x2e,0x17,0x33,0x15,0x37,
+ 0x12,0x3a,0x10,0x3d,0x0f,0x40,0x0d,0x43,0x0c,0x45,0x0c,0x48,0x0a,0x4a,0x0a,0x4c,0x09,0x4e,0x07,0x4f,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x37,0x3f,0x29,0x43,0x21,0x46,0x1a,0x49,0x16,0x4d,0x12,0x50,0x10,0x52,0x0d,0x54,0x0c,0x57,0x0a,0x59,
+ 0x09,0x5a,0x08,0x5c,0x07,0x5d,0x06,0x5f,0x06,0x60,0x06,0x61,0x05,0x62,0x05,0x63,0x04,0x64,0x04,0x65,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x0c,0x00,0x16,0x00,0x20,0x00,0x29,0x00,0x30,0x00,0x7e,0x00,0x7b,0x00,0x74,0x00,0x69,
+ 0x00,0x5b,0x00,0x4b,0x00,0x3b,0x00,0x2b,0x00,0x1b,0x00,0x0d,0x00,0x00,0x00,0x0c,0x00,0x16,0x00,0x20,
+ 0x00,0x29,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7b,0x00,
+ 0x74,0x00,0x69,0x00,0x5b,0x00,0x4b,0x00,0x3b,0x00,0x2b,0x00,0x1b,0x00,0x0d,0x00,0x00,0x00,0x00,0x0c,
+ 0x00,0x16,0x00,0x20,0x00,0x29,0x00,0x30,0x7e,0x00,0x7b,0x00,0x74,0x00,0x69,0x00,0x5b,0x00,0x4b,0x00,
+ 0x3b,0x00,0x2b,0x00,0x1b,0x00,0x0d,0x00,0x00,0x00,0x00,0x0c,0x00,0x16,0x00,0x20,0x00,0x29,0x00,0x30,
+ 0x38,0x3f,0x2c,0x41,0x23,0x44,0x1d,0x47,0x19,0x4a,0x14,0x4d,0x12,0x4f,0x10,0x52,0x0e,0x54,0x0c,0x56,
+ 0x0b,0x57,0x0a,0x59,0x09,0x5a,0x08,0x5c,0x07,0x5d,0x07,0x5e,0x06,0x5f,0x06,0x61,0x05,0x61,0x05,0x62,
+ 0x70,0x03,0x58,0x08,0x47,0x0e,0x3a,0x14,0x31,0x1a,0x29,0x1f,0x24,0x24,0x20,0x28,0x1c,0x2d,0x19,0x31,
+ 0x16,0x34,0x14,0x37,0x12,0x3a,0x10,0x3d,0x0f,0x3f,0x0e,0x42,0x0c,0x44,0x0c,0x46,0x0b,0x47,0x0a,0x4a,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x38,0x3f,0x2c,0x41,0x23,0x44,0x1d,0x47,0x19,0x4a,0x14,0x4d,0x12,0x4f,0x10,0x52,0x0e,0x54,0x0c,0x56,
+ 0x0b,0x57,0x0a,0x59,0x09,0x5a,0x08,0x5c,0x07,0x5d,0x07,0x5e,0x06,0x5f,0x06,0x61,0x05,0x61,0x05,0x62,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x0b,0x00,0x15,0x00,0x1e,0x00,0x26,0x00,0x7e,0x00,0x7c,0x00,0x76,0x00,0x6d,
+ 0x00,0x61,0x00,0x53,0x00,0x44,0x00,0x35,0x00,0x27,0x00,0x19,0x00,0x0c,0x00,0x00,0x00,0x0b,0x00,0x15,
+ 0x00,0x1e,0x00,0x26,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7c,0x00,
+ 0x76,0x00,0x6d,0x00,0x61,0x00,0x53,0x00,0x44,0x00,0x35,0x00,0x27,0x00,0x19,0x00,0x0c,0x00,0x00,0x00,
+ 0x00,0x0b,0x00,0x15,0x00,0x1e,0x00,0x26,0x7e,0x00,0x7c,0x00,0x76,0x00,0x6d,0x00,0x61,0x00,0x53,0x00,
+ 0x44,0x00,0x35,0x00,0x27,0x00,0x19,0x00,0x0c,0x00,0x00,0x00,0x00,0x0b,0x00,0x15,0x00,0x1e,0x00,0x26,
+ 0x39,0x3f,0x2e,0x41,0x26,0x43,0x20,0x46,0x1b,0x48,0x17,0x4b,0x14,0x4d,0x12,0x4f,0x10,0x51,0x0e,0x53,
+ 0x0d,0x55,0x0b,0x56,0x0b,0x58,0x09,0x59,0x09,0x5b,0x08,0x5b,0x07,0x5d,0x07,0x5e,0x06,0x5f,0x06,0x60,
+ 0x71,0x02,0x5b,0x07,0x4c,0x0c,0x3f,0x11,0x36,0x16,0x2e,0x1b,0x29,0x20,0x24,0x23,0x20,0x28,0x1d,0x2b,
+ 0x19,0x2f,0x17,0x32,0x16,0x35,0x12,0x37,0x12,0x3a,0x10,0x3c,0x0f,0x3f,0x0e,0x41,0x0c,0x42,0x0c,0x45,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x39,0x3f,0x2e,0x41,0x26,0x43,0x20,0x46,0x1b,0x48,0x17,0x4b,0x14,0x4d,0x12,0x4f,0x10,0x51,0x0e,0x53,
+ 0x0d,0x55,0x0b,0x56,0x0b,0x58,0x09,0x59,0x09,0x5b,0x08,0x5b,0x07,0x5d,0x07,0x5e,0x06,0x5f,0x06,0x60,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x13,0x00,0x1b,0x00,0x7e,0x00,0x7c,0x00,0x77,0x00,0x6f,
+ 0x00,0x65,0x00,0x59,0x00,0x4c,0x00,0x3e,0x00,0x30,0x00,0x23,0x00,0x16,0x00,0x0b,0x00,0x00,0x00,0x0a,
+ 0x00,0x13,0x00,0x1b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7c,0x00,
+ 0x77,0x00,0x6f,0x00,0x65,0x00,0x59,0x00,0x4c,0x00,0x3e,0x00,0x30,0x00,0x23,0x00,0x16,0x00,0x0b,0x00,
+ 0x00,0x00,0x00,0x0a,0x00,0x13,0x00,0x1b,0x7e,0x00,0x7c,0x00,0x77,0x00,0x6f,0x00,0x65,0x00,0x59,0x00,
+ 0x4c,0x00,0x3e,0x00,0x30,0x00,0x23,0x00,0x16,0x00,0x0b,0x00,0x00,0x00,0x00,0x0a,0x00,0x13,0x00,0x1b,
+ 0x39,0x3e,0x2f,0x40,0x28,0x42,0x22,0x45,0x1d,0x47,0x19,0x49,0x16,0x4b,0x14,0x4d,0x11,0x4f,0x10,0x51,
+ 0x0f,0x53,0x0d,0x54,0x0c,0x55,0x0b,0x57,0x0a,0x58,0x09,0x59,0x09,0x5b,0x08,0x5b,0x07,0x5c,0x07,0x5e,
+ 0x73,0x02,0x5e,0x05,0x4f,0x0a,0x44,0x0f,0x3a,0x13,0x33,0x18,0x2d,0x1c,0x27,0x20,0x23,0x23,0x20,0x27,
+ 0x1d,0x2a,0x1a,0x2d,0x18,0x30,0x16,0x33,0x14,0x35,0x12,0x38,0x12,0x3a,0x10,0x3c,0x0f,0x3e,0x0f,0x41,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x39,0x3e,0x2f,0x40,0x28,0x42,0x22,0x45,0x1d,0x47,0x19,0x49,0x16,0x4b,0x14,0x4d,0x11,0x4f,0x10,0x51,
+ 0x0f,0x53,0x0d,0x54,0x0c,0x55,0x0b,0x57,0x0a,0x58,0x09,0x59,0x09,0x5b,0x08,0x5b,0x07,0x5c,0x07,0x5e,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x12,0x00,0x7e,0x00,0x7d,0x00,0x78,0x00,0x71,
+ 0x00,0x68,0x00,0x5e,0x00,0x52,0x00,0x45,0x00,0x39,0x00,0x2c,0x00,0x20,0x00,0x15,0x00,0x0a,0x00,0x00,
+ 0x00,0x09,0x00,0x12,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7d,0x00,
+ 0x78,0x00,0x71,0x00,0x68,0x00,0x5e,0x00,0x52,0x00,0x45,0x00,0x39,0x00,0x2c,0x00,0x20,0x00,0x15,0x00,
+ 0x0a,0x00,0x00,0x00,0x00,0x09,0x00,0x12,0x7e,0x00,0x7d,0x00,0x78,0x00,0x71,0x00,0x68,0x00,0x5e,0x00,
+ 0x52,0x00,0x45,0x00,0x39,0x00,0x2c,0x00,0x20,0x00,0x15,0x00,0x0a,0x00,0x00,0x00,0x00,0x09,0x00,0x12,
+ 0x3a,0x3e,0x31,0x40,0x29,0x42,0x23,0x44,0x1f,0x46,0x1b,0x48,0x18,0x4a,0x15,0x4c,0x13,0x4d,0x11,0x4f,
+ 0x10,0x50,0x0f,0x52,0x0d,0x53,0x0d,0x55,0x0b,0x56,0x0b,0x57,0x0a,0x58,0x09,0x59,0x09,0x5b,0x08,0x5b,
+ 0x74,0x01,0x62,0x05,0x53,0x08,0x47,0x0c,0x3e,0x11,0x37,0x15,0x31,0x19,0x2b,0x1d,0x27,0x20,0x23,0x23,
+ 0x20,0x26,0x1d,0x2a,0x1b,0x2c,0x19,0x2f,0x16,0x31,0x16,0x34,0x13,0x35,0x12,0x38,0x12,0x3b,0x0f,0x3b,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x3a,0x3e,0x31,0x40,0x29,0x42,0x23,0x44,0x1f,0x46,0x1b,0x48,0x18,0x4a,0x15,0x4c,0x13,0x4d,0x11,0x4f,
+ 0x10,0x50,0x0f,0x52,0x0d,0x53,0x0d,0x55,0x0b,0x56,0x0b,0x57,0x0a,0x58,0x09,0x59,0x09,0x5b,0x08,0x5b,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x7e,0x00,0x7d,0x00,0x79,0x00,0x73,
+ 0x00,0x6b,0x00,0x62,0x00,0x57,0x00,0x4c,0x00,0x40,0x00,0x34,0x00,0x29,0x00,0x1e,0x00,0x13,0x00,0x09,
+ 0x00,0x00,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7d,0x00,
+ 0x79,0x00,0x73,0x00,0x6b,0x00,0x62,0x00,0x57,0x00,0x4c,0x00,0x40,0x00,0x34,0x00,0x29,0x00,0x1e,0x00,
+ 0x13,0x00,0x09,0x00,0x00,0x00,0x00,0x08,0x7e,0x00,0x7d,0x00,0x79,0x00,0x73,0x00,0x6b,0x00,0x62,0x00,
+ 0x57,0x00,0x4c,0x00,0x40,0x00,0x34,0x00,0x29,0x00,0x1e,0x00,0x13,0x00,0x09,0x00,0x00,0x00,0x00,0x08,
+ 0x3a,0x3e,0x32,0x3f,0x2b,0x41,0x25,0x43,0x21,0x45,0x1d,0x46,0x1a,0x48,0x17,0x4a,0x15,0x4c,0x13,0x4e,
+ 0x11,0x4f,0x10,0x50,0x0f,0x52,0x0e,0x53,0x0d,0x54,0x0c,0x55,0x0b,0x56,0x0b,0x58,0x09,0x58,0x09,0x59,
+ 0x75,0x01,0x64,0x04,0x56,0x07,0x4b,0x0b,0x42,0x0f,0x3a,0x12,0x34,0x16,0x2f,0x19,0x2a,0x1d,0x26,0x20,
+ 0x23,0x23,0x21,0x26,0x1d,0x29,0x1b,0x2b,0x19,0x2e,0x18,0x30,0x16,0x32,0x15,0x35,0x12,0x35,0x12,0x38,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x3a,0x3e,0x32,0x3f,0x2b,0x41,0x25,0x43,0x21,0x45,0x1d,0x46,0x1a,0x48,0x17,0x4a,0x15,0x4c,0x13,0x4e,
+ 0x11,0x4f,0x10,0x50,0x0f,0x52,0x0e,0x53,0x0d,0x54,0x0c,0x55,0x0b,0x56,0x0b,0x58,0x09,0x58,0x09,0x59,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7d,0x00,0x7a,0x00,0x75,
+ 0x00,0x6e,0x00,0x65,0x00,0x5b,0x00,0x51,0x00,0x46,0x00,0x3b,0x00,0x30,0x00,0x26,0x00,0x1b,0x00,0x12,
+ 0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7d,0x00,
+ 0x7a,0x00,0x75,0x00,0x6e,0x00,0x65,0x00,0x5b,0x00,0x51,0x00,0x46,0x00,0x3b,0x00,0x30,0x00,0x26,0x00,
+ 0x1b,0x00,0x12,0x00,0x08,0x00,0x00,0x00,0x7e,0x00,0x7d,0x00,0x7a,0x00,0x75,0x00,0x6e,0x00,0x65,0x00,
+ 0x5b,0x00,0x51,0x00,0x46,0x00,0x3b,0x00,0x30,0x00,0x26,0x00,0x1b,0x00,0x12,0x00,0x08,0x00,0x00,0x00,
+ 0x3b,0x3e,0x33,0x3f,0x2c,0x41,0x27,0x42,0x22,0x44,0x1f,0x45,0x1c,0x47,0x19,0x49,0x17,0x4a,0x15,0x4c,
+ 0x13,0x4e,0x11,0x4f,0x10,0x50,0x0f,0x51,0x0e,0x53,0x0d,0x54,0x0c,0x55,0x0b,0x55,0x0b,0x57,0x0a,0x58,
+ 0x76,0x01,0x66,0x04,0x58,0x06,0x4d,0x0a,0x45,0x0d,0x3e,0x10,0x37,0x14,0x32,0x17,0x2d,0x1a,0x2a,0x1d,
+ 0x26,0x21,0x22,0x22,0x21,0x26,0x1d,0x28,0x1c,0x2b,0x19,0x2c,0x19,0x30,0x16,0x30,0x16,0x33,0x14,0x35,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x3b,0x3e,0x33,0x3f,0x2c,0x41,0x27,0x42,0x22,0x44,0x1f,0x45,0x1c,0x47,0x19,0x49,0x17,0x4a,0x15,0x4c,
+ 0x13,0x4e,0x11,0x4f,0x10,0x50,0x0f,0x51,0x0e,0x53,0x0d,0x54,0x0c,0x55,0x0b,0x55,0x0b,0x57,0x0a,0x58,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x3b,0x3e,0x33,0x3f,0x2d,0x40,0x28,0x42,0x24,0x44,0x20,0x45,0x1d,0x46,0x1a,0x48,0x18,0x49,0x16,0x4b,
+ 0x14,0x4c,0x13,0x4e,0x11,0x4e,0x10,0x50,0x0f,0x51,0x0f,0x53,0x0d,0x53,0x0d,0x55,0x0b,0x55,0x0b,0x56,
+ 0x77,0x01,0x67,0x03,0x5a,0x05,0x51,0x09,0x48,0x0c,0x40,0x0f,0x3a,0x12,0x35,0x16,0x30,0x18,0x2c,0x1b,
+ 0x29,0x1d,0x26,0x21,0x22,0x22,0x21,0x26,0x1d,0x27,0x1d,0x2b,0x1a,0x2b,0x19,0x2e,0x17,0x30,0x16,0x31,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x3b,0x3e,0x33,0x3f,0x2d,0x40,0x28,0x42,0x24,0x44,0x20,0x45,0x1d,0x46,0x1a,0x48,0x18,0x49,0x16,0x4b,
+ 0x14,0x4c,0x13,0x4e,0x11,0x4e,0x10,0x50,0x0f,0x51,0x0f,0x53,0x0d,0x53,0x0d,0x55,0x0b,0x55,0x0b,0x56,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x3b,0x3e,0x34,0x3f,0x2e,0x40,0x29,0x41,0x25,0x43,0x21,0x44,0x1e,0x45,0x1c,0x47,0x19,0x48,0x18,0x4a,
+ 0x15,0x4b,0x14,0x4c,0x13,0x4e,0x11,0x4e,0x11,0x50,0x0f,0x50,0x0f,0x52,0x0d,0x53,0x0d,0x54,0x0c,0x55,
+ 0x77,0x01,0x68,0x02,0x5d,0x05,0x52,0x07,0x4a,0x0a,0x43,0x0d,0x3d,0x10,0x38,0x12,0x33,0x16,0x2f,0x19,
+ 0x2b,0x1b,0x28,0x1d,0x26,0x21,0x22,0x22,0x21,0x26,0x1e,0x26,0x1d,0x2a,0x1a,0x2b,0x19,0x2d,0x18,0x30,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x3b,0x3e,0x34,0x3f,0x2e,0x40,0x29,0x41,0x25,0x43,0x21,0x44,0x1e,0x45,0x1c,0x47,0x19,0x48,0x18,0x4a,
+ 0x15,0x4b,0x14,0x4c,0x13,0x4e,0x11,0x4e,0x11,0x50,0x0f,0x50,0x0f,0x52,0x0d,0x53,0x0d,0x54,0x0c,0x55,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x3c,0x3e,0x35,0x3f,0x2f,0x40,0x2a,0x41,0x26,0x42,0x22,0x44,0x20,0x45,0x1d,0x46,0x1b,0x48,0x18,0x48,
+ 0x17,0x4a,0x15,0x4b,0x13,0x4c,0x13,0x4e,0x11,0x4e,0x11,0x50,0x0f,0x50,0x0f,0x52,0x0d,0x53,0x0d,0x53,
+ 0x77,0x00,0x6a,0x02,0x5e,0x04,0x55,0x07,0x4c,0x0a,0x45,0x0c,0x40,0x0f,0x3a,0x12,0x35,0x14,0x31,0x16,
+ 0x2e,0x19,0x2b,0x1c,0x27,0x1d,0x26,0x22,0x21,0x22,0x21,0x25,0x1e,0x26,0x1d,0x29,0x1b,0x2b,0x19,0x2b,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x3c,0x3e,0x35,0x3f,0x2f,0x40,0x2a,0x41,0x26,0x42,0x22,0x44,0x20,0x45,0x1d,0x46,0x1b,0x48,0x18,0x48,
+ 0x17,0x4a,0x15,0x4b,0x13,0x4c,0x13,0x4e,0x11,0x4e,0x11,0x50,0x0f,0x50,0x0f,0x52,0x0d,0x53,0x0d,0x53,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x3c,0x3e,0x35,0x3f,0x30,0x3f,0x2b,0x40,0x27,0x42,0x24,0x43,0x21,0x44,0x1e,0x45,0x1c,0x46,0x1a,0x48,
+ 0x18,0x49,0x16,0x4a,0x15,0x4c,0x13,0x4c,0x13,0x4e,0x11,0x4e,0x11,0x50,0x0f,0x50,0x0f,0x51,0x0e,0x53,
+ 0x78,0x00,0x6b,0x02,0x60,0x04,0x57,0x06,0x4f,0x09,0x48,0x0c,0x42,0x0e,0x3c,0x10,0x38,0x12,0x34,0x16,
+ 0x30,0x18,0x2d,0x19,0x2b,0x1d,0x26,0x1e,0x25,0x22,0x21,0x22,0x21,0x25,0x1e,0x26,0x1d,0x28,0x1c,0x2b,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x3c,0x3e,0x35,0x3f,0x30,0x3f,0x2b,0x40,0x27,0x42,0x24,0x43,0x21,0x44,0x1e,0x45,0x1c,0x46,0x1a,0x48,
+ 0x18,0x49,0x16,0x4a,0x15,0x4c,0x13,0x4c,0x13,0x4e,0x11,0x4e,0x11,0x50,0x0f,0x50,0x0f,0x51,0x0e,0x53,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x3c,0x3e,0x36,0x3f,0x30,0x3f,0x2c,0x40,0x28,0x41,0x25,0x42,0x22,0x44,0x1f,0x45,0x1d,0x46,0x1b,0x47,
+ 0x19,0x48,0x18,0x4a,0x15,0x4a,0x15,0x4c,0x13,0x4c,0x13,0x4e,0x11,0x4e,0x11,0x50,0x0f,0x50,0x0f,0x51,
+ 0x78,0x00,0x6d,0x02,0x61,0x04,0x58,0x05,0x51,0x07,0x4a,0x0a,0x44,0x0c,0x3f,0x0f,0x3a,0x12,0x35,0x14,
+ 0x32,0x16,0x30,0x19,0x2b,0x19,0x2a,0x1d,0x26,0x1e,0x25,0x22,0x21,0x22,0x21,0x25,0x1e,0x26,0x1d,0x27,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x3c,0x3e,0x36,0x3f,0x30,0x3f,0x2c,0x40,0x28,0x41,0x25,0x42,0x22,0x44,0x1f,0x45,0x1d,0x46,0x1b,0x47,
+ 0x19,0x48,0x18,0x4a,0x15,0x4a,0x15,0x4c,0x13,0x4c,0x13,0x4e,0x11,0x4e,0x11,0x50,0x0f,0x50,0x0f,0x51,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x3c,0x3e,0x37,0x3e,0x31,0x3f,0x2d,0x40,0x29,0x41,0x26,0x42,0x23,0x44,0x20,0x45,0x1e,0x45,0x1c,0x46,
+ 0x1a,0x48,0x18,0x48,0x17,0x4a,0x15,0x4a,0x14,0x4c,0x13,0x4c,0x12,0x4e,0x11,0x4e,0x11,0x50,0x0f,0x50,
+ 0x78,0x00,0x6d,0x02,0x63,0x04,0x5a,0x05,0x53,0x07,0x4c,0x0a,0x46,0x0c,0x41,0x0f,0x3c,0x0f,0x38,0x12,
+ 0x35,0x16,0x30,0x16,0x2e,0x19,0x2b,0x1a,0x29,0x1d,0x26,0x1e,0x25,0x22,0x21,0x22,0x21,0x25,0x1f,0x26,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x3c,0x3e,0x37,0x3e,0x31,0x3f,0x2d,0x40,0x29,0x41,0x26,0x42,0x23,0x44,0x20,0x45,0x1e,0x45,0x1c,0x46,
+ 0x1a,0x48,0x18,0x48,0x17,0x4a,0x15,0x4a,0x14,0x4c,0x13,0x4c,0x12,0x4e,0x11,0x4e,0x11,0x50,0x0f,0x50,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x3c,0x3e,0x37,0x3e,0x32,0x3f,0x2e,0x40,0x2a,0x41,0x27,0x42,0x24,0x43,0x21,0x44,0x1f,0x45,0x1d,0x46,
+ 0x1b,0x47,0x1a,0x48,0x18,0x49,0x16,0x4a,0x15,0x4b,0x14,0x4c,0x13,0x4d,0x12,0x4e,0x11,0x4e,0x11,0x50,
+ 0x78,0x00,0x6e,0x01,0x65,0x03,0x5c,0x05,0x54,0x07,0x4e,0x09,0x48,0x0b,0x43,0x0c,0x3e,0x0f,0x3b,0x12,
+ 0x36,0x12,0x33,0x16,0x30,0x17,0x2d,0x19,0x2b,0x1b,0x28,0x1d,0x26,0x1e,0x25,0x22,0x21,0x22,0x21,0x24,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x3c,0x3e,0x37,0x3e,0x32,0x3f,0x2e,0x40,0x2a,0x41,0x27,0x42,0x24,0x43,0x21,0x44,0x1f,0x45,0x1d,0x46,
+ 0x1b,0x47,0x1a,0x48,0x18,0x49,0x16,0x4a,0x15,0x4b,0x14,0x4c,0x13,0x4d,0x12,0x4e,0x11,0x4e,0x11,0x50,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x3c,0x3e,0x37,0x3e,0x33,0x3f,0x2e,0x3f,0x2b,0x40,0x28,0x41,0x25,0x42,0x22,0x44,0x20,0x45,0x1e,0x45,
+ 0x1c,0x46,0x1b,0x48,0x19,0x48,0x18,0x4a,0x16,0x4a,0x15,0x4b,0x13,0x4c,0x13,0x4d,0x12,0x4e,0x11,0x4e,
+ 0x79,0x00,0x6f,0x01,0x66,0x02,0x5d,0x04,0x56,0x06,0x4f,0x07,0x4a,0x0a,0x45,0x0c,0x41,0x0f,0x3b,0x0f,
+ 0x38,0x12,0x35,0x14,0x31,0x16,0x30,0x18,0x2b,0x19,0x2b,0x1c,0x27,0x1d,0x26,0x1f,0x24,0x22,0x21,0x22,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,
+ 0x3c,0x3e,0x37,0x3e,0x33,0x3f,0x2e,0x3f,0x2b,0x40,0x28,0x41,0x25,0x42,0x22,0x44,0x20,0x45,0x1e,0x45,
+ 0x1c,0x46,0x1b,0x48,0x19,0x48,0x18,0x4a,0x16,0x4a,0x15,0x4b,0x13,0x4c,0x13,0x4d,0x12,0x4e,0x11,0x4e,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x62,0x00,0x6c,0x00,0x72,0x00,0x74,0x00,0x77,0x00,0x79,0x00,0x79,0x00,0x7a,0x00,0x7b,0x00,0x7b,0x00,
+ 0x7c,0x00,0x7c,0x00,0x7d,0x00,0x7d,0x00,0x7d,0x00,0x7c,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,
+ 0x81,0x00,0x82,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,
+ 0x08,0x00,0x44,0x00,0x56,0x00,0x61,0x00,0x67,0x00,0x6b,0x00,0x6e,0x00,0x70,0x00,0x71,0x00,0x73,0x00,
+ 0x74,0x00,0x75,0x00,0x76,0x00,0x76,0x00,0x77,0x00,0x77,0x00,0x77,0x00,0x78,0x00,0x78,0x00,0x78,0x00,
+ 0x44,0x00,0x63,0x00,0x6c,0x00,0x71,0x00,0x75,0x00,0x77,0x00,0x79,0x00,0x79,0x00,0x7a,0x00,0x7b,0x00,
+ 0x7b,0x00,0x7c,0x00,0x7c,0x00,0x7d,0x00,0x7d,0x00,0x7c,0x00,0x7d,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x4c,0x0b,0x57,0x06,0x5f,0x03,0x63,0x02,0x68,0x02,0x6b,0x01,0x6d,0x01,0x6e,0x01,0x71,0x00,0x72,0x00,
+ 0x73,0x00,0x74,0x00,0x75,0x00,0x76,0x00,0x76,0x00,0x76,0x00,0x78,0x00,0x78,0x00,0x78,0x00,0x79,0x00,
+ 0x82,0x00,0x82,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,
+ 0x00,0x40,0x17,0x17,0x2c,0x0c,0x3b,0x07,0x45,0x05,0x4d,0x04,0x53,0x03,0x57,0x02,0x5c,0x02,0x5e,0x01,
+ 0x61,0x01,0x63,0x01,0x66,0x01,0x67,0x01,0x68,0x00,0x69,0x00,0x6b,0x00,0x6c,0x00,0x6d,0x00,0x6e,0x00,
+ 0x41,0x20,0x4d,0x0b,0x58,0x06,0x5e,0x03,0x64,0x02,0x68,0x02,0x6b,0x01,0x6c,0x01,0x6f,0x01,0x71,0x00,
+ 0x72,0x00,0x73,0x00,0x74,0x00,0x75,0x00,0x76,0x00,0x75,0x00,0x77,0x00,0x78,0x00,0x78,0x00,0x78,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x47,0x15,0x4f,0x0d,0x56,0x09,0x59,0x06,0x5f,0x05,0x62,0x04,0x65,0x03,0x67,0x02,0x69,0x02,0x6b,0x02,
+ 0x6c,0x02,0x6e,0x01,0x6f,0x01,0x70,0x01,0x71,0x01,0x70,0x01,0x72,0x00,0x73,0x00,0x74,0x00,0x74,0x00,
+ 0x83,0x00,0x82,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,
+ 0x00,0x55,0x0c,0x2c,0x1b,0x1b,0x27,0x12,0x32,0x0d,0x3a,0x0b,0x41,0x08,0x47,0x07,0x4c,0x05,0x4f,0x05,
+ 0x53,0x04,0x56,0x04,0x58,0x03,0x5a,0x02,0x5d,0x02,0x5e,0x02,0x60,0x02,0x61,0x01,0x63,0x01,0x64,0x01,
+ 0x41,0x2a,0x47,0x16,0x4f,0x0d,0x54,0x09,0x5b,0x06,0x5f,0x05,0x62,0x04,0x64,0x03,0x67,0x02,0x69,0x02,
+ 0x6b,0x02,0x6c,0x02,0x6e,0x01,0x6f,0x01,0x70,0x01,0x70,0x01,0x71,0x01,0x72,0x00,0x73,0x00,0x74,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x45,0x1d,0x4a,0x14,0x50,0x0e,0x54,0x0b,0x59,0x08,0x5c,0x07,0x5f,0x06,0x60,0x05,0x64,0x04,0x65,0x03,
+ 0x67,0x03,0x68,0x02,0x6a,0x02,0x6b,0x02,0x6c,0x02,0x6c,0x02,0x6e,0x02,0x6f,0x01,0x70,0x01,0x70,0x01,
+ 0x83,0x00,0x82,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,
+ 0x00,0x60,0x08,0x3b,0x12,0x28,0x1d,0x1d,0x26,0x16,0x2e,0x11,0x34,0x0e,0x3a,0x0c,0x3f,0x0a,0x44,0x08,
+ 0x47,0x07,0x4b,0x06,0x4d,0x05,0x51,0x05,0x52,0x04,0x55,0x04,0x57,0x04,0x58,0x04,0x5a,0x03,0x5c,0x02,
+ 0x42,0x30,0x45,0x1d,0x4b,0x14,0x4f,0x0e,0x55,0x0b,0x59,0x08,0x5c,0x07,0x5e,0x06,0x61,0x05,0x64,0x04,
+ 0x65,0x03,0x67,0x03,0x68,0x02,0x6a,0x02,0x6b,0x02,0x6b,0x02,0x6d,0x02,0x6e,0x02,0x6f,0x01,0x70,0x01,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x44,0x22,0x48,0x19,0x4d,0x13,0x50,0x0f,0x54,0x0c,0x57,0x0a,0x5a,0x08,0x5c,0x07,0x5f,0x06,0x61,0x05,
+ 0x63,0x05,0x64,0x04,0x65,0x03,0x67,0x03,0x68,0x03,0x68,0x02,0x6a,0x02,0x6b,0x02,0x6c,0x02,0x6d,0x02,
+ 0x83,0x00,0x82,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,
+ 0x00,0x66,0x05,0x45,0x0d,0x32,0x16,0x26,0x1e,0x1e,0x25,0x18,0x2b,0x14,0x31,0x11,0x36,0x0f,0x3a,0x0c,
+ 0x3e,0x0b,0x42,0x0a,0x45,0x09,0x47,0x07,0x4a,0x07,0x4c,0x06,0x4f,0x05,0x51,0x05,0x52,0x05,0x54,0x04,
+ 0x41,0x33,0x44,0x22,0x48,0x19,0x4c,0x13,0x51,0x0f,0x54,0x0c,0x57,0x0a,0x59,0x08,0x5d,0x07,0x5f,0x06,
+ 0x61,0x05,0x63,0x05,0x64,0x04,0x65,0x03,0x67,0x03,0x67,0x03,0x69,0x02,0x6a,0x02,0x6b,0x02,0x6c,0x02,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x43,0x26,0x47,0x1d,0x4a,0x17,0x4d,0x12,0x51,0x0f,0x54,0x0d,0x56,0x0b,0x58,0x09,0x5b,0x08,0x5d,0x07,
+ 0x5f,0x06,0x60,0x06,0x62,0x05,0x63,0x05,0x64,0x04,0x65,0x03,0x67,0x03,0x67,0x03,0x68,0x03,0x69,0x02,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,
+ 0x00,0x6a,0x04,0x4d,0x0b,0x3a,0x11,0x2e,0x18,0x25,0x1f,0x1f,0x24,0x1a,0x29,0x16,0x2e,0x13,0x33,0x11,
+ 0x37,0x0f,0x3a,0x0d,0x3d,0x0c,0x40,0x0a,0x43,0x0a,0x45,0x09,0x48,0x07,0x4a,0x07,0x4c,0x07,0x4e,0x06,
+ 0x41,0x35,0x43,0x26,0x47,0x1d,0x49,0x17,0x4e,0x12,0x51,0x0f,0x54,0x0d,0x55,0x0b,0x59,0x09,0x5b,0x08,
+ 0x5d,0x07,0x5f,0x06,0x60,0x06,0x62,0x05,0x63,0x05,0x63,0x04,0x65,0x03,0x67,0x03,0x67,0x03,0x68,0x03,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x43,0x29,0x45,0x20,0x49,0x1a,0x4b,0x15,0x4f,0x12,0x51,0x0f,0x54,0x0d,0x55,0x0b,0x58,0x0a,0x5a,0x09,
+ 0x5b,0x08,0x5d,0x07,0x5f,0x06,0x60,0x06,0x61,0x05,0x62,0x05,0x64,0x05,0x65,0x04,0x65,0x03,0x66,0x03,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,
+ 0x00,0x6d,0x03,0x52,0x08,0x41,0x0e,0x34,0x14,0x2b,0x1a,0x24,0x1f,0x1f,0x24,0x1b,0x28,0x17,0x2d,0x15,
+ 0x31,0x12,0x34,0x10,0x37,0x0f,0x3a,0x0d,0x3d,0x0c,0x40,0x0b,0x42,0x0a,0x44,0x0a,0x46,0x09,0x47,0x07,
+ 0x41,0x36,0x43,0x29,0x46,0x20,0x48,0x1a,0x4c,0x15,0x4f,0x12,0x51,0x0f,0x53,0x0d,0x56,0x0b,0x58,0x0a,
+ 0x5a,0x09,0x5b,0x08,0x5d,0x07,0x5f,0x06,0x60,0x06,0x60,0x05,0x62,0x05,0x64,0x05,0x65,0x04,0x65,0x03,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x43,0x2b,0x45,0x23,0x48,0x1d,0x49,0x18,0x4d,0x14,0x4f,0x12,0x51,0x10,0x53,0x0e,0x55,0x0c,0x57,0x0b,
+ 0x59,0x0a,0x5a,0x09,0x5c,0x08,0x5d,0x07,0x5f,0x07,0x5f,0x06,0x61,0x06,0x62,0x05,0x63,0x05,0x64,0x05,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,
+ 0x00,0x6f,0x02,0x57,0x07,0x47,0x0c,0x3a,0x11,0x31,0x16,0x29,0x1b,0x24,0x20,0x20,0x23,0x1c,0x28,0x19,
+ 0x2b,0x16,0x2f,0x14,0x32,0x12,0x35,0x10,0x38,0x0f,0x3a,0x0e,0x3c,0x0c,0x3f,0x0c,0x41,0x0b,0x42,0x0a,
+ 0x41,0x37,0x43,0x2b,0x45,0x23,0x47,0x1d,0x4a,0x18,0x4d,0x14,0x4f,0x12,0x51,0x10,0x53,0x0e,0x55,0x0c,
+ 0x57,0x0b,0x59,0x0a,0x5a,0x09,0x5c,0x08,0x5d,0x07,0x5e,0x07,0x60,0x06,0x61,0x06,0x62,0x05,0x63,0x05,
+ 0x1f,0x00,0x3f,0x00,0x66,0x00,0x72,0x00,0x78,0x00,0x7a,0x00,0x7c,0x00,0x7c,0x00,0x7d,0x00,0x7d,0x00,
+ 0x7e,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x1f,0x1f,0x3f,0x00,0x66,0x00,0x72,0x00,
+ 0x78,0x00,0x7a,0x00,0x7c,0x00,0x7c,0x00,0x7d,0x00,0x7d,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,
+ 0x7e,0x00,0x7e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7d,0x00,0x58,0x00,
+ 0x70,0x00,0x77,0x00,0x79,0x00,0x7b,0x00,0x7c,0x00,0x7c,0x00,0x7d,0x00,0x7d,0x00,0x7e,0x00,0x7e,0x00,
+ 0x7e,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x1f,0x1f,0x3f,0x00,0x66,0x00,0x72,0x00,0x78,0x00,0x7a,0x00,
+ 0x7c,0x00,0x7c,0x00,0x7d,0x00,0x7d,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,
+ 0x43,0x2d,0x44,0x25,0x46,0x1f,0x48,0x1b,0x4b,0x17,0x4d,0x14,0x50,0x12,0x51,0x10,0x53,0x0e,0x55,0x0c,
+ 0x57,0x0b,0x58,0x0b,0x5a,0x09,0x5b,0x09,0x5c,0x08,0x5c,0x07,0x5f,0x07,0x60,0x06,0x61,0x06,0x62,0x06,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,
+ 0x00,0x71,0x02,0x5b,0x05,0x4b,0x0a,0x3f,0x0f,0x36,0x13,0x2e,0x18,0x29,0x1c,0x23,0x20,0x20,0x23,0x1d,
+ 0x27,0x19,0x2a,0x17,0x2d,0x16,0x30,0x12,0x33,0x12,0x35,0x10,0x38,0x0f,0x3b,0x0e,0x3c,0x0c,0x3e,0x0c,
+ 0x41,0x38,0x43,0x2d,0x44,0x25,0x45,0x1f,0x49,0x1b,0x4b,0x17,0x4d,0x14,0x4f,0x11,0x51,0x10,0x53,0x0e,
+ 0x55,0x0c,0x57,0x0b,0x58,0x0b,0x5a,0x09,0x5b,0x09,0x5b,0x08,0x5e,0x07,0x5f,0x07,0x60,0x06,0x61,0x06,
+ 0x00,0x00,0x0a,0x00,0x3f,0x00,0x5c,0x00,0x6a,0x00,0x71,0x00,0x75,0x00,0x78,0x00,0x79,0x00,0x7a,0x00,
+ 0x7b,0x00,0x7c,0x00,0x7c,0x00,0x7d,0x00,0x7d,0x00,0x7d,0x00,0x00,0x3f,0x0a,0x0a,0x3f,0x00,0x5c,0x00,
+ 0x6a,0x00,0x71,0x00,0x75,0x00,0x78,0x00,0x79,0x00,0x7a,0x00,0x7b,0x00,0x7c,0x00,0x7c,0x00,0x7d,0x00,
+ 0x7d,0x00,0x7d,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x58,0x00,0x44,0x00,
+ 0x55,0x00,0x67,0x00,0x6e,0x00,0x72,0x00,0x75,0x00,0x78,0x00,0x79,0x00,0x7a,0x00,0x7b,0x00,0x7c,0x00,
+ 0x7c,0x00,0x7d,0x00,0x7d,0x00,0x7d,0x00,0x00,0x3f,0x0a,0x0a,0x3f,0x00,0x5c,0x00,0x6a,0x00,0x71,0x00,
+ 0x75,0x00,0x78,0x00,0x79,0x00,0x7a,0x00,0x7b,0x00,0x7c,0x00,0x7c,0x00,0x7d,0x00,0x7d,0x00,0x7d,0x00,
+ 0x42,0x2f,0x44,0x27,0x46,0x22,0x47,0x1d,0x4a,0x19,0x4c,0x16,0x4e,0x13,0x4f,0x11,0x52,0x10,0x53,0x0e,
+ 0x55,0x0d,0x56,0x0c,0x58,0x0b,0x59,0x0a,0x5a,0x09,0x5b,0x09,0x5c,0x07,0x5e,0x07,0x5f,0x07,0x5f,0x06,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,
+ 0x00,0x73,0x01,0x5e,0x05,0x4f,0x08,0x44,0x0c,0x3a,0x10,0x33,0x15,0x2d,0x19,0x28,0x1d,0x23,0x20,0x20,
+ 0x23,0x1d,0x26,0x1a,0x2a,0x18,0x2c,0x16,0x2f,0x14,0x31,0x12,0x34,0x12,0x35,0x0f,0x38,0x0f,0x3b,0x0f,
+ 0x41,0x39,0x42,0x2f,0x44,0x27,0x45,0x22,0x48,0x1d,0x4a,0x19,0x4c,0x16,0x4d,0x14,0x50,0x11,0x52,0x10,
+ 0x53,0x0e,0x55,0x0d,0x56,0x0c,0x58,0x0b,0x59,0x0a,0x59,0x09,0x5c,0x09,0x5c,0x07,0x5e,0x07,0x5f,0x07,
+ 0x00,0x00,0x00,0x00,0x03,0x00,0x2d,0x00,0x48,0x00,0x59,0x00,0x63,0x00,0x6a,0x00,0x6e,0x00,0x72,0x00,
+ 0x74,0x00,0x76,0x00,0x77,0x00,0x78,0x00,0x79,0x00,0x7a,0x00,0x00,0x66,0x00,0x3f,0x03,0x03,0x2d,0x00,
+ 0x48,0x00,0x59,0x00,0x63,0x00,0x6a,0x00,0x6e,0x00,0x72,0x00,0x74,0x00,0x76,0x00,0x77,0x00,0x78,0x00,
+ 0x79,0x00,0x7a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0x55,0x00,
+ 0x20,0x00,0x3e,0x00,0x50,0x00,0x5a,0x00,0x63,0x00,0x6a,0x00,0x6e,0x00,0x72,0x00,0x74,0x00,0x76,0x00,
+ 0x77,0x00,0x78,0x00,0x79,0x00,0x7a,0x00,0x00,0x66,0x00,0x3f,0x03,0x03,0x2d,0x00,0x48,0x00,0x59,0x00,
+ 0x63,0x00,0x6a,0x00,0x6e,0x00,0x72,0x00,0x74,0x00,0x76,0x00,0x77,0x00,0x78,0x00,0x79,0x00,0x7a,0x00,
+ 0x42,0x30,0x44,0x29,0x45,0x23,0x46,0x1f,0x49,0x1b,0x4b,0x18,0x4c,0x15,0x4d,0x13,0x50,0x11,0x52,0x10,
+ 0x53,0x0e,0x55,0x0d,0x56,0x0c,0x57,0x0b,0x59,0x0b,0x59,0x09,0x5b,0x09,0x5c,0x09,0x5c,0x07,0x5e,0x07,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,
+ 0x00,0x73,0x01,0x61,0x04,0x52,0x07,0x47,0x0b,0x3e,0x0f,0x37,0x12,0x31,0x16,0x2b,0x19,0x27,0x1d,0x23,
+ 0x20,0x20,0x23,0x1d,0x26,0x1b,0x29,0x19,0x2b,0x16,0x2e,0x16,0x30,0x13,0x32,0x12,0x35,0x12,0x36,0x0f,
+ 0x41,0x39,0x42,0x30,0x44,0x29,0x44,0x23,0x47,0x1f,0x49,0x1b,0x4b,0x18,0x4c,0x15,0x4e,0x13,0x50,0x11,
+ 0x52,0x10,0x53,0x0e,0x55,0x0d,0x56,0x0c,0x57,0x0b,0x57,0x0b,0x5a,0x09,0x5b,0x09,0x5c,0x09,0x5c,0x07,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x22,0x00,0x3a,0x00,0x4a,0x00,0x56,0x00,0x5e,0x00,0x64,0x00,
+ 0x69,0x00,0x6d,0x00,0x6f,0x00,0x71,0x00,0x73,0x00,0x75,0x00,0x00,0x72,0x00,0x5c,0x00,0x2d,0x01,0x01,
+ 0x22,0x00,0x3a,0x00,0x4a,0x00,0x56,0x00,0x5e,0x00,0x64,0x00,0x69,0x00,0x6d,0x00,0x6f,0x00,0x71,0x00,
+ 0x73,0x00,0x75,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x77,0x00,0x67,0x00,
+ 0x3e,0x00,0x0d,0x00,0x28,0x00,0x3a,0x00,0x4a,0x00,0x56,0x00,0x5e,0x00,0x64,0x00,0x69,0x00,0x6d,0x00,
+ 0x6f,0x00,0x71,0x00,0x73,0x00,0x75,0x00,0x00,0x72,0x00,0x5c,0x00,0x2d,0x01,0x01,0x22,0x00,0x3a,0x00,
+ 0x4a,0x00,0x56,0x00,0x5e,0x00,0x64,0x00,0x69,0x00,0x6d,0x00,0x6f,0x00,0x71,0x00,0x73,0x00,0x75,0x00,
+ 0x42,0x32,0x44,0x2a,0x45,0x25,0x46,0x21,0x48,0x1d,0x4a,0x1a,0x4b,0x17,0x4c,0x15,0x4e,0x13,0x50,0x11,
+ 0x52,0x10,0x53,0x0e,0x55,0x0d,0x55,0x0c,0x57,0x0c,0x57,0x0b,0x5a,0x0a,0x5a,0x09,0x5b,0x09,0x5c,0x09,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,
+ 0x00,0x74,0x01,0x64,0x04,0x55,0x06,0x4a,0x0a,0x42,0x0d,0x3a,0x10,0x34,0x14,0x2f,0x17,0x2a,0x1a,0x26,
+ 0x1d,0x23,0x21,0x21,0x22,0x1d,0x26,0x1b,0x28,0x19,0x2b,0x18,0x2c,0x16,0x30,0x15,0x30,0x12,0x33,0x12,
+ 0x41,0x3a,0x42,0x32,0x44,0x2a,0x44,0x25,0x46,0x21,0x48,0x1d,0x4a,0x1a,0x4b,0x17,0x4d,0x15,0x4e,0x13,
+ 0x50,0x11,0x52,0x10,0x53,0x0e,0x55,0x0d,0x55,0x0c,0x56,0x0c,0x58,0x0b,0x5a,0x0a,0x5a,0x09,0x5b,0x09,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1b,0x00,0x30,0x00,0x3f,0x00,0x4b,0x00,0x54,0x00,
+ 0x5b,0x00,0x61,0x00,0x65,0x00,0x68,0x00,0x6b,0x00,0x6e,0x00,0x00,0x78,0x00,0x6a,0x00,0x48,0x00,0x22,
+ 0x00,0x00,0x1b,0x00,0x30,0x00,0x3f,0x00,0x4b,0x00,0x54,0x00,0x5b,0x00,0x61,0x00,0x65,0x00,0x68,0x00,
+ 0x6b,0x00,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x79,0x00,0x6e,0x00,
+ 0x50,0x00,0x28,0x00,0x01,0x00,0x1b,0x00,0x30,0x00,0x3f,0x00,0x4b,0x00,0x54,0x00,0x5b,0x00,0x61,0x00,
+ 0x65,0x00,0x68,0x00,0x6b,0x00,0x6e,0x00,0x00,0x78,0x00,0x6a,0x00,0x48,0x00,0x22,0x00,0x00,0x1b,0x00,
+ 0x30,0x00,0x3f,0x00,0x4b,0x00,0x54,0x00,0x5b,0x00,0x61,0x00,0x65,0x00,0x68,0x00,0x6b,0x00,0x6e,0x00,
+ 0x42,0x32,0x43,0x2c,0x44,0x26,0x45,0x22,0x48,0x1f,0x49,0x1b,0x4b,0x19,0x4c,0x16,0x4e,0x15,0x4f,0x13,
+ 0x50,0x11,0x52,0x10,0x53,0x0e,0x55,0x0e,0x55,0x0c,0x56,0x0c,0x57,0x0b,0x59,0x0b,0x5a,0x0a,0x5a,0x09,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,
+ 0x00,0x75,0x01,0x65,0x03,0x58,0x05,0x4d,0x09,0x45,0x0c,0x3e,0x0f,0x37,0x12,0x32,0x16,0x2d,0x18,0x2a,
+ 0x1b,0x26,0x1d,0x22,0x21,0x21,0x22,0x1d,0x26,0x1c,0x27,0x19,0x2b,0x19,0x2b,0x16,0x2e,0x16,0x30,0x14,
+ 0x41,0x3a,0x42,0x32,0x43,0x2c,0x44,0x26,0x46,0x22,0x48,0x1f,0x49,0x1b,0x4a,0x19,0x4c,0x16,0x4e,0x15,
+ 0x4f,0x13,0x50,0x11,0x52,0x10,0x53,0x0e,0x55,0x0e,0x54,0x0c,0x57,0x0c,0x57,0x0b,0x59,0x0b,0x5a,0x0a,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x16,0x00,0x28,0x00,0x37,0x00,0x42,0x00,
+ 0x4b,0x00,0x53,0x00,0x59,0x00,0x5e,0x00,0x62,0x00,0x65,0x00,0x00,0x7a,0x00,0x71,0x00,0x59,0x00,0x3a,
+ 0x00,0x1b,0x00,0x00,0x16,0x00,0x28,0x00,0x37,0x00,0x42,0x00,0x4b,0x00,0x53,0x00,0x59,0x00,0x5e,0x00,
+ 0x62,0x00,0x65,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7b,0x00,0x72,0x00,
+ 0x5a,0x00,0x3a,0x00,0x1b,0x00,0x01,0x00,0x16,0x00,0x28,0x00,0x37,0x00,0x42,0x00,0x4b,0x00,0x53,0x00,
+ 0x59,0x00,0x5e,0x00,0x62,0x00,0x65,0x00,0x00,0x7a,0x00,0x71,0x00,0x59,0x00,0x3a,0x00,0x1b,0x00,0x00,
+ 0x16,0x00,0x28,0x00,0x37,0x00,0x42,0x00,0x4b,0x00,0x53,0x00,0x59,0x00,0x5e,0x00,0x62,0x00,0x65,0x00,
+ 0x42,0x33,0x43,0x2d,0x44,0x28,0x45,0x23,0x47,0x20,0x48,0x1d,0x4a,0x1a,0x4a,0x18,0x4c,0x16,0x4e,0x14,
+ 0x4f,0x13,0x50,0x11,0x52,0x10,0x53,0x0e,0x55,0x0e,0x54,0x0d,0x57,0x0c,0x57,0x0b,0x58,0x0b,0x5a,0x0b,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,
+ 0x00,0x76,0x01,0x67,0x02,0x5a,0x05,0x50,0x07,0x47,0x0a,0x40,0x0d,0x3a,0x10,0x35,0x12,0x30,0x16,0x2c,
+ 0x19,0x29,0x1b,0x26,0x1d,0x22,0x21,0x21,0x22,0x1d,0x26,0x1d,0x26,0x1a,0x2a,0x19,0x2b,0x17,0x2d,0x16,
+ 0x41,0x3b,0x42,0x33,0x43,0x2d,0x44,0x28,0x45,0x23,0x47,0x20,0x48,0x1d,0x49,0x1a,0x4b,0x18,0x4c,0x16,
+ 0x4e,0x14,0x4f,0x13,0x50,0x11,0x52,0x10,0x53,0x0e,0x54,0x0e,0x55,0x0d,0x57,0x0c,0x57,0x0b,0x58,0x0b,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x13,0x00,0x23,0x00,0x30,0x00,
+ 0x3b,0x00,0x44,0x00,0x4c,0x00,0x52,0x00,0x57,0x00,0x5b,0x00,0x00,0x7c,0x00,0x75,0x00,0x63,0x00,0x4a,
+ 0x00,0x30,0x00,0x16,0x00,0x00,0x13,0x00,0x23,0x00,0x30,0x00,0x3b,0x00,0x44,0x00,0x4c,0x00,0x52,0x00,
+ 0x57,0x00,0x5b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7c,0x00,0x75,0x00,
+ 0x63,0x00,0x4a,0x00,0x30,0x00,0x16,0x00,0x00,0x00,0x13,0x00,0x23,0x00,0x30,0x00,0x3b,0x00,0x44,0x00,
+ 0x4c,0x00,0x52,0x00,0x57,0x00,0x5b,0x00,0x00,0x7c,0x00,0x75,0x00,0x63,0x00,0x4a,0x00,0x30,0x00,0x16,
+ 0x00,0x00,0x13,0x00,0x23,0x00,0x30,0x00,0x3b,0x00,0x44,0x00,0x4c,0x00,0x52,0x00,0x57,0x00,0x5b,0x00,
+ 0x42,0x34,0x43,0x2e,0x44,0x29,0x45,0x25,0x46,0x21,0x48,0x1e,0x49,0x1b,0x4a,0x19,0x4c,0x17,0x4d,0x15,
+ 0x4e,0x14,0x50,0x13,0x50,0x11,0x52,0x11,0x52,0x0f,0x53,0x0e,0x55,0x0d,0x56,0x0c,0x57,0x0c,0x57,0x0b,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,
+ 0x00,0x77,0x00,0x68,0x02,0x5c,0x05,0x52,0x07,0x4a,0x0a,0x43,0x0c,0x3d,0x0f,0x37,0x12,0x33,0x14,0x2f,
+ 0x16,0x2b,0x19,0x28,0x1c,0x26,0x1d,0x22,0x21,0x22,0x21,0x1e,0x25,0x1d,0x26,0x1a,0x29,0x19,0x2b,0x18,
+ 0x41,0x3b,0x42,0x34,0x43,0x2e,0x44,0x29,0x45,0x25,0x46,0x21,0x48,0x1e,0x48,0x1b,0x4b,0x19,0x4c,0x17,
+ 0x4d,0x15,0x4e,0x14,0x50,0x13,0x50,0x11,0x52,0x11,0x51,0x0f,0x54,0x0e,0x55,0x0d,0x56,0x0c,0x57,0x0c,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x1f,0x00,
+ 0x2b,0x00,0x35,0x00,0x3e,0x00,0x45,0x00,0x4c,0x00,0x51,0x00,0x00,0x7c,0x00,0x78,0x00,0x6a,0x00,0x56,
+ 0x00,0x3f,0x00,0x28,0x00,0x13,0x00,0x00,0x10,0x00,0x1f,0x00,0x2b,0x00,0x35,0x00,0x3e,0x00,0x45,0x00,
+ 0x4c,0x00,0x51,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7c,0x00,0x78,0x00,
+ 0x6a,0x00,0x56,0x00,0x3f,0x00,0x28,0x00,0x13,0x00,0x00,0x00,0x10,0x00,0x1f,0x00,0x2b,0x00,0x35,0x00,
+ 0x3e,0x00,0x45,0x00,0x4c,0x00,0x51,0x00,0x00,0x7c,0x00,0x78,0x00,0x6a,0x00,0x56,0x00,0x3f,0x00,0x28,
+ 0x00,0x13,0x00,0x00,0x10,0x00,0x1f,0x00,0x2b,0x00,0x35,0x00,0x3e,0x00,0x45,0x00,0x4c,0x00,0x51,0x00,
+ 0x42,0x34,0x43,0x2f,0x44,0x2a,0x44,0x26,0x46,0x22,0x47,0x1f,0x48,0x1d,0x49,0x1a,0x4b,0x18,0x4c,0x17,
+ 0x4e,0x15,0x4e,0x13,0x50,0x13,0x50,0x11,0x52,0x11,0x51,0x0f,0x54,0x0e,0x55,0x0d,0x56,0x0c,0x57,0x0c,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,
+ 0x00,0x77,0x00,0x69,0x02,0x5e,0x04,0x55,0x06,0x4c,0x09,0x45,0x0c,0x3f,0x0e,0x3a,0x10,0x35,0x12,0x31,
+ 0x16,0x2e,0x18,0x2b,0x19,0x27,0x1d,0x26,0x1e,0x22,0x21,0x22,0x21,0x1e,0x25,0x1d,0x26,0x1b,0x28,0x19,
+ 0x41,0x3b,0x42,0x34,0x43,0x2f,0x43,0x2a,0x45,0x26,0x46,0x22,0x47,0x1f,0x48,0x1d,0x4a,0x1a,0x4b,0x18,
+ 0x4c,0x17,0x4e,0x15,0x4e,0x13,0x50,0x13,0x50,0x11,0x51,0x11,0x52,0x0f,0x54,0x0e,0x55,0x0d,0x56,0x0c,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0e,0x00,
+ 0x1b,0x00,0x27,0x00,0x30,0x00,0x39,0x00,0x40,0x00,0x46,0x00,0x00,0x7d,0x00,0x79,0x00,0x6e,0x00,0x5e,
+ 0x00,0x4b,0x00,0x37,0x00,0x23,0x00,0x10,0x00,0x00,0x0e,0x00,0x1b,0x00,0x27,0x00,0x30,0x00,0x39,0x00,
+ 0x40,0x00,0x46,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7d,0x00,0x79,0x00,
+ 0x6e,0x00,0x5e,0x00,0x4b,0x00,0x37,0x00,0x23,0x00,0x10,0x00,0x00,0x00,0x0e,0x00,0x1b,0x00,0x27,0x00,
+ 0x30,0x00,0x39,0x00,0x40,0x00,0x46,0x00,0x00,0x7d,0x00,0x79,0x00,0x6e,0x00,0x5e,0x00,0x4b,0x00,0x37,
+ 0x00,0x23,0x00,0x10,0x00,0x00,0x0e,0x00,0x1b,0x00,0x27,0x00,0x30,0x00,0x39,0x00,0x40,0x00,0x46,0x00,
+ 0x42,0x35,0x43,0x30,0x44,0x2b,0x44,0x27,0x45,0x24,0x46,0x21,0x48,0x1e,0x48,0x1c,0x4b,0x1a,0x4b,0x18,
+ 0x4c,0x16,0x4e,0x15,0x4e,0x13,0x50,0x12,0x50,0x11,0x51,0x11,0x52,0x0f,0x54,0x0e,0x55,0x0e,0x55,0x0c,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,
+ 0x00,0x77,0x00,0x6b,0x02,0x60,0x04,0x57,0x05,0x4f,0x07,0x48,0x0a,0x42,0x0c,0x3c,0x0f,0x38,0x12,0x34,
+ 0x14,0x30,0x16,0x2c,0x19,0x2b,0x19,0x26,0x1d,0x25,0x1e,0x22,0x21,0x22,0x21,0x1e,0x25,0x1d,0x26,0x1c,
+ 0x41,0x3b,0x42,0x35,0x43,0x30,0x43,0x2b,0x44,0x27,0x45,0x24,0x46,0x21,0x47,0x1e,0x49,0x1c,0x4b,0x1a,
+ 0x4b,0x18,0x4c,0x16,0x4e,0x15,0x4e,0x13,0x50,0x12,0x50,0x11,0x52,0x11,0x52,0x0f,0x54,0x0e,0x55,0x0e,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x0d,0x00,0x19,0x00,0x23,0x00,0x2c,0x00,0x34,0x00,0x3b,0x00,0x00,0x7d,0x00,0x7a,0x00,0x72,0x00,0x64,
+ 0x00,0x54,0x00,0x42,0x00,0x30,0x00,0x1f,0x00,0x0e,0x00,0x00,0x0d,0x00,0x19,0x00,0x23,0x00,0x2c,0x00,
+ 0x34,0x00,0x3b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7d,0x00,0x7a,0x00,
+ 0x72,0x00,0x64,0x00,0x54,0x00,0x42,0x00,0x30,0x00,0x1f,0x00,0x0e,0x00,0x00,0x00,0x0d,0x00,0x19,0x00,
+ 0x23,0x00,0x2c,0x00,0x34,0x00,0x3b,0x00,0x00,0x7d,0x00,0x7a,0x00,0x72,0x00,0x64,0x00,0x54,0x00,0x42,
+ 0x00,0x30,0x00,0x1f,0x00,0x0e,0x00,0x00,0x0d,0x00,0x19,0x00,0x23,0x00,0x2c,0x00,0x34,0x00,0x3b,0x00,
+ 0x42,0x36,0x43,0x30,0x44,0x2c,0x44,0x28,0x45,0x25,0x46,0x22,0x48,0x1f,0x48,0x1d,0x49,0x1a,0x4b,0x19,
+ 0x4c,0x18,0x4d,0x15,0x4e,0x15,0x4f,0x13,0x50,0x12,0x50,0x11,0x52,0x11,0x52,0x0f,0x54,0x0e,0x55,0x0e,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,
+ 0x00,0x77,0x00,0x6c,0x02,0x61,0x04,0x58,0x05,0x51,0x07,0x4a,0x0a,0x44,0x0c,0x3f,0x0f,0x3a,0x10,0x35,
+ 0x12,0x32,0x16,0x30,0x16,0x2b,0x19,0x2a,0x1a,0x26,0x1d,0x25,0x1e,0x22,0x21,0x22,0x21,0x1e,0x25,0x1d,
+ 0x41,0x3b,0x42,0x36,0x43,0x30,0x43,0x2c,0x44,0x28,0x45,0x25,0x46,0x22,0x47,0x1f,0x49,0x1d,0x49,0x1a,
+ 0x4b,0x19,0x4c,0x18,0x4d,0x15,0x4e,0x15,0x4f,0x13,0x4f,0x12,0x51,0x11,0x52,0x11,0x52,0x0f,0x54,0x0e,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x0c,0x00,0x16,0x00,0x20,0x00,0x29,0x00,0x30,0x00,0x00,0x7e,0x00,0x7b,0x00,0x74,0x00,0x69,
+ 0x00,0x5b,0x00,0x4b,0x00,0x3b,0x00,0x2b,0x00,0x1b,0x00,0x0d,0x00,0x00,0x0c,0x00,0x16,0x00,0x20,0x00,
+ 0x29,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7b,0x00,
+ 0x74,0x00,0x69,0x00,0x5b,0x00,0x4b,0x00,0x3b,0x00,0x2b,0x00,0x1b,0x00,0x0d,0x00,0x00,0x00,0x0c,0x00,
+ 0x16,0x00,0x20,0x00,0x29,0x00,0x30,0x00,0x00,0x7e,0x00,0x7b,0x00,0x74,0x00,0x69,0x00,0x5b,0x00,0x4b,
+ 0x00,0x3b,0x00,0x2b,0x00,0x1b,0x00,0x0d,0x00,0x00,0x0c,0x00,0x16,0x00,0x20,0x00,0x29,0x00,0x30,0x00,
+ 0x42,0x36,0x42,0x31,0x43,0x2d,0x44,0x29,0x45,0x26,0x46,0x23,0x47,0x20,0x47,0x1e,0x49,0x1c,0x4b,0x1a,
+ 0x4b,0x18,0x4c,0x17,0x4d,0x15,0x4e,0x14,0x4f,0x13,0x4f,0x12,0x51,0x11,0x52,0x11,0x52,0x0f,0x54,0x0e,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,
+ 0x00,0x78,0x00,0x6d,0x01,0x62,0x03,0x5a,0x05,0x52,0x07,0x4c,0x09,0x46,0x0b,0x41,0x0c,0x3c,0x0f,0x38,
+ 0x12,0x35,0x12,0x30,0x16,0x2e,0x17,0x2b,0x19,0x29,0x1b,0x26,0x1d,0x25,0x1e,0x22,0x21,0x22,0x21,0x1f,
+ 0x41,0x3c,0x42,0x36,0x42,0x31,0x43,0x2d,0x44,0x29,0x45,0x26,0x46,0x23,0x46,0x20,0x48,0x1e,0x49,0x1c,
+ 0x4b,0x1a,0x4b,0x18,0x4c,0x17,0x4d,0x15,0x4e,0x14,0x4e,0x13,0x50,0x12,0x51,0x11,0x52,0x11,0x52,0x0f,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x0b,0x00,0x15,0x00,0x1e,0x00,0x26,0x00,0x00,0x7e,0x00,0x7c,0x00,0x76,0x00,0x6d,
+ 0x00,0x61,0x00,0x53,0x00,0x44,0x00,0x35,0x00,0x27,0x00,0x19,0x00,0x0c,0x00,0x00,0x0b,0x00,0x15,0x00,
+ 0x1e,0x00,0x26,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7c,0x00,
+ 0x76,0x00,0x6d,0x00,0x61,0x00,0x53,0x00,0x44,0x00,0x35,0x00,0x27,0x00,0x19,0x00,0x0c,0x00,0x00,0x00,
+ 0x0b,0x00,0x15,0x00,0x1e,0x00,0x26,0x00,0x00,0x7e,0x00,0x7c,0x00,0x76,0x00,0x6d,0x00,0x61,0x00,0x53,
+ 0x00,0x44,0x00,0x35,0x00,0x27,0x00,0x19,0x00,0x0c,0x00,0x00,0x0b,0x00,0x15,0x00,0x1e,0x00,0x26,0x00,
+ 0x42,0x37,0x42,0x32,0x43,0x2d,0x44,0x2a,0x45,0x27,0x45,0x23,0x46,0x21,0x47,0x1f,0x49,0x1d,0x49,0x1a,
+ 0x4b,0x19,0x4c,0x18,0x4c,0x16,0x4e,0x15,0x4e,0x14,0x4f,0x13,0x50,0x12,0x51,0x11,0x52,0x11,0x52,0x0f,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x82,0x00,0x83,0x00,0x83,0x00,
+ 0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x81,0x00,0x83,0x00,0x83,0x00,0x83,0x00,0x83,0x00,
+ 0x00,0x78,0x00,0x6e,0x01,0x64,0x02,0x5b,0x04,0x54,0x06,0x4e,0x07,0x47,0x0a,0x42,0x0c,0x3e,0x0f,0x3b,
+ 0x0f,0x35,0x12,0x33,0x14,0x30,0x16,0x2d,0x19,0x2b,0x19,0x28,0x1c,0x26,0x1d,0x25,0x1f,0x22,0x21,0x22,
+ 0x41,0x3c,0x42,0x37,0x42,0x32,0x43,0x2d,0x44,0x2a,0x45,0x27,0x45,0x23,0x46,0x21,0x48,0x1f,0x49,0x1d,
+ 0x49,0x1a,0x4b,0x19,0x4c,0x18,0x4c,0x16,0x4e,0x15,0x4d,0x14,0x50,0x13,0x50,0x12,0x51,0x11,0x52,0x11,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x13,0x00,0x1b,0x00,0x00,0x7e,0x00,0x7c,0x00,0x77,0x00,0x6f,
+ 0x00,0x65,0x00,0x59,0x00,0x4c,0x00,0x3e,0x00,0x30,0x00,0x23,0x00,0x16,0x00,0x0b,0x00,0x00,0x0a,0x00,
+ 0x13,0x00,0x1b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7c,0x00,
+ 0x77,0x00,0x6f,0x00,0x65,0x00,0x59,0x00,0x4c,0x00,0x3e,0x00,0x30,0x00,0x23,0x00,0x16,0x00,0x0b,0x00,
+ 0x00,0x00,0x0a,0x00,0x13,0x00,0x1b,0x00,0x00,0x7e,0x00,0x7c,0x00,0x77,0x00,0x6f,0x00,0x65,0x00,0x59,
+ 0x00,0x4c,0x00,0x3e,0x00,0x30,0x00,0x23,0x00,0x16,0x00,0x0b,0x00,0x00,0x0a,0x00,0x13,0x00,0x1b,0x00,
+ 0x40,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x61,0x20,0x4d,0x2a,0x48,0x30,0x44,0x33,0x44,0x35,0x44,0x36,0x43,0x37,0x42,0x38,0x43,0x39,0x42,0x39,
+ 0x42,0x3a,0x42,0x3a,0x42,0x3b,0x42,0x3b,0x42,0x3b,0x41,0x3b,0x42,0x3c,0x42,0x3c,0x42,0x3c,0x42,0x3c,
+ 0x04,0x3d,0x22,0x3d,0x2b,0x3d,0x30,0x3d,0x33,0x3d,0x35,0x3d,0x37,0x3d,0x38,0x3d,0x39,0x3d,0x39,0x3d,
+ 0x3a,0x3d,0x3a,0x3d,0x3b,0x3d,0x3b,0x3d,0x3b,0x3d,0x3c,0x3d,0x3c,0x3d,0x3c,0x3d,0x3c,0x3d,0x3c,0x3d,
+ 0x40,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x12,0x00,0x00,0x7e,0x00,0x7d,0x00,0x78,0x00,0x71,
+ 0x00,0x68,0x00,0x5e,0x00,0x52,0x00,0x45,0x00,0x39,0x00,0x2c,0x00,0x20,0x00,0x15,0x00,0x0a,0x00,0x00,
+ 0x09,0x00,0x12,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7d,0x00,
+ 0x78,0x00,0x71,0x00,0x68,0x00,0x5e,0x00,0x52,0x00,0x45,0x00,0x39,0x00,0x2c,0x00,0x20,0x00,0x15,0x00,
+ 0x0a,0x00,0x00,0x00,0x09,0x00,0x12,0x00,0x00,0x7e,0x00,0x7d,0x00,0x78,0x00,0x71,0x00,0x68,0x00,0x5e,
+ 0x00,0x52,0x00,0x45,0x00,0x39,0x00,0x2c,0x00,0x20,0x00,0x15,0x00,0x0a,0x00,0x00,0x09,0x00,0x12,0x00,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x6c,0x0b,0x57,0x16,0x4f,0x1d,0x4a,0x22,0x48,0x26,0x47,0x29,0x46,0x2b,0x44,0x2d,0x44,0x2f,0x44,0x30,
+ 0x44,0x31,0x44,0x32,0x43,0x33,0x43,0x34,0x43,0x34,0x42,0x35,0x43,0x36,0x42,0x36,0x42,0x37,0x42,0x37,
+ 0x00,0x5d,0x0c,0x49,0x16,0x43,0x1d,0x41,0x22,0x40,0x26,0x3f,0x29,0x3f,0x2c,0x3f,0x2e,0x3e,0x2f,0x3e,
+ 0x31,0x3e,0x32,0x3e,0x33,0x3e,0x33,0x3e,0x34,0x3e,0x35,0x3e,0x35,0x3e,0x36,0x3e,0x37,0x3e,0x37,0x3e,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x7e,0x00,0x7d,0x00,0x79,0x00,0x73,
+ 0x00,0x6b,0x00,0x62,0x00,0x57,0x00,0x4c,0x00,0x40,0x00,0x34,0x00,0x29,0x00,0x1e,0x00,0x13,0x00,0x09,
+ 0x00,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7d,0x00,
+ 0x79,0x00,0x73,0x00,0x6b,0x00,0x62,0x00,0x57,0x00,0x4c,0x00,0x40,0x00,0x34,0x00,0x29,0x00,0x1e,0x00,
+ 0x13,0x00,0x09,0x00,0x00,0x00,0x08,0x00,0x00,0x7e,0x00,0x7d,0x00,0x79,0x00,0x73,0x00,0x6b,0x00,0x62,
+ 0x00,0x57,0x00,0x4c,0x00,0x40,0x00,0x34,0x00,0x29,0x00,0x1e,0x00,0x13,0x00,0x09,0x00,0x00,0x08,0x00,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x72,0x06,0x5f,0x0d,0x56,0x14,0x4f,0x19,0x4d,0x1d,0x4a,0x20,0x49,0x23,0x47,0x25,0x46,0x27,0x46,0x29,
+ 0x45,0x2a,0x45,0x2c,0x44,0x2d,0x44,0x2e,0x44,0x2f,0x43,0x30,0x44,0x30,0x44,0x31,0x43,0x32,0x43,0x33,
+ 0x00,0x68,0x06,0x54,0x0d,0x4b,0x14,0x47,0x19,0x44,0x1d,0x43,0x20,0x41,0x23,0x41,0x26,0x40,0x27,0x40,
+ 0x29,0x3f,0x2b,0x3f,0x2c,0x3f,0x2d,0x3f,0x2e,0x3f,0x2f,0x3f,0x30,0x3f,0x30,0x3e,0x31,0x3e,0x32,0x3e,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7d,0x00,0x7a,0x00,0x75,
+ 0x00,0x6e,0x00,0x65,0x00,0x5b,0x00,0x51,0x00,0x46,0x00,0x3b,0x00,0x30,0x00,0x26,0x00,0x1b,0x00,0x12,
+ 0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7d,0x00,
+ 0x7a,0x00,0x75,0x00,0x6e,0x00,0x65,0x00,0x5b,0x00,0x51,0x00,0x46,0x00,0x3b,0x00,0x30,0x00,0x26,0x00,
+ 0x1b,0x00,0x12,0x00,0x08,0x00,0x00,0x00,0x00,0x7e,0x00,0x7d,0x00,0x7a,0x00,0x75,0x00,0x6e,0x00,0x65,
+ 0x00,0x5b,0x00,0x51,0x00,0x46,0x00,0x3b,0x00,0x30,0x00,0x26,0x00,0x1b,0x00,0x12,0x00,0x08,0x00,0x00,
+ 0x42,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x75,0x03,0x64,0x09,0x5a,0x0e,0x54,0x13,0x51,0x17,0x4e,0x1a,0x4c,0x1d,0x49,0x1f,0x49,0x22,0x48,0x23,
+ 0x47,0x25,0x46,0x26,0x46,0x28,0x45,0x29,0x45,0x2a,0x44,0x2b,0x44,0x2c,0x44,0x2d,0x44,0x2e,0x44,0x2e,
+ 0x00,0x6d,0x04,0x5b,0x09,0x51,0x0e,0x4c,0x13,0x48,0x17,0x46,0x1a,0x44,0x1d,0x43,0x1f,0x42,0x22,0x42,
+ 0x24,0x41,0x25,0x41,0x27,0x40,0x28,0x40,0x29,0x40,0x2a,0x3f,0x2b,0x3f,0x2c,0x3f,0x2d,0x3f,0x2e,0x3f,
+ 0x42,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0x1f,0x3f,0x00,0x66,0x00,0x72,0x00,
+ 0x78,0x00,0x7a,0x00,0x7c,0x00,0x7c,0x00,0x7d,0x00,0x7d,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,
+ 0x7e,0x00,0x7e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0x1f,0x00,0x3f,
+ 0x00,0x66,0x00,0x72,0x00,0x78,0x00,0x7a,0x00,0x7c,0x00,0x7c,0x00,0x7d,0x00,0x7d,0x00,0x7e,0x00,0x7e,
+ 0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x77,0x02,0x68,0x06,0x5f,0x0b,0x58,0x0f,0x54,0x12,0x51,0x15,0x4f,0x18,0x4c,0x1b,0x4b,0x1d,0x4a,0x1f,
+ 0x49,0x21,0x48,0x22,0x48,0x23,0x47,0x25,0x46,0x26,0x45,0x27,0x45,0x28,0x45,0x29,0x45,0x2a,0x44,0x2b,
+ 0x00,0x70,0x02,0x60,0x07,0x56,0x0b,0x50,0x0f,0x4c,0x12,0x49,0x16,0x47,0x18,0x46,0x1b,0x45,0x1d,0x44,
+ 0x1f,0x43,0x21,0x42,0x22,0x42,0x24,0x41,0x25,0x41,0x26,0x40,0x27,0x40,0x28,0x40,0x29,0x40,0x2a,0x3f,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3f,0x0a,0x0a,0x3f,0x00,0x5c,0x00,
+ 0x6a,0x00,0x71,0x00,0x75,0x00,0x78,0x00,0x79,0x00,0x7a,0x00,0x7b,0x00,0x7c,0x00,0x7c,0x00,0x7d,0x00,
+ 0x7d,0x00,0x7d,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3f,0x00,0x0a,0x0a,
+ 0x00,0x3f,0x00,0x5c,0x00,0x6a,0x00,0x71,0x00,0x75,0x00,0x78,0x00,0x79,0x00,0x7a,0x00,0x7b,0x00,0x7c,
+ 0x00,0x7c,0x00,0x7d,0x00,0x7d,0x00,0x7d,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x78,0x02,0x6b,0x05,0x62,0x08,0x5b,0x0c,0x57,0x0f,0x54,0x12,0x51,0x14,0x4e,0x17,0x4d,0x19,0x4c,0x1b,
+ 0x4b,0x1d,0x4a,0x1e,0x49,0x20,0x48,0x21,0x48,0x22,0x46,0x24,0x46,0x25,0x46,0x26,0x46,0x27,0x45,0x27,
+ 0x00,0x72,0x02,0x64,0x05,0x5b,0x08,0x54,0x0c,0x50,0x0f,0x4d,0x12,0x4a,0x14,0x48,0x17,0x47,0x19,0x46,
+ 0x1b,0x45,0x1d,0x44,0x1f,0x44,0x20,0x42,0x21,0x42,0x22,0x42,0x24,0x41,0x25,0x41,0x26,0x41,0x27,0x40,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x00,0x3f,0x03,0x03,0x2d,0x00,
+ 0x48,0x00,0x59,0x00,0x63,0x00,0x6a,0x00,0x6e,0x00,0x72,0x00,0x74,0x00,0x76,0x00,0x77,0x00,0x78,0x00,
+ 0x79,0x00,0x7a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x00,0x3f,0x00,
+ 0x03,0x03,0x00,0x2d,0x00,0x48,0x00,0x59,0x00,0x63,0x00,0x6a,0x00,0x6e,0x00,0x72,0x00,0x74,0x00,0x76,
+ 0x00,0x77,0x00,0x78,0x00,0x79,0x00,0x7a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x79,0x01,0x6d,0x04,0x65,0x07,0x5e,0x0a,0x5a,0x0d,0x56,0x0f,0x54,0x12,0x51,0x14,0x4f,0x16,0x4e,0x18,
+ 0x4c,0x1a,0x4b,0x1b,0x4b,0x1d,0x4a,0x1e,0x49,0x1f,0x48,0x21,0x48,0x22,0x48,0x23,0x47,0x23,0x46,0x25,
+ 0x00,0x74,0x01,0x66,0x04,0x5e,0x07,0x57,0x0a,0x53,0x0d,0x4f,0x10,0x4d,0x12,0x4b,0x14,0x49,0x16,0x48,
+ 0x18,0x46,0x1a,0x45,0x1b,0x45,0x1d,0x44,0x1e,0x44,0x20,0x43,0x21,0x42,0x22,0x42,0x23,0x42,0x24,0x41,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x72,0x00,0x5c,0x00,0x2d,0x01,0x01,
+ 0x22,0x00,0x3a,0x00,0x4a,0x00,0x56,0x00,0x5e,0x00,0x64,0x00,0x69,0x00,0x6d,0x00,0x6f,0x00,0x71,0x00,
+ 0x73,0x00,0x75,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x72,0x00,0x5c,0x00,
+ 0x2d,0x00,0x01,0x01,0x00,0x22,0x00,0x3a,0x00,0x4a,0x00,0x56,0x00,0x5e,0x00,0x64,0x00,0x69,0x00,0x6d,
+ 0x00,0x6f,0x00,0x71,0x00,0x73,0x00,0x75,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x7a,0x01,0x6f,0x03,0x67,0x06,0x60,0x08,0x5d,0x0b,0x59,0x0d,0x56,0x10,0x53,0x11,0x51,0x14,0x50,0x15,
+ 0x4e,0x17,0x4d,0x19,0x4c,0x1a,0x4b,0x1b,0x4b,0x1d,0x48,0x1e,0x49,0x1f,0x49,0x20,0x48,0x21,0x48,0x22,
+ 0x00,0x75,0x01,0x69,0x03,0x61,0x06,0x5a,0x08,0x56,0x0b,0x52,0x0d,0x4f,0x10,0x4d,0x12,0x4b,0x14,0x4a,
+ 0x16,0x48,0x17,0x47,0x19,0x46,0x1a,0x45,0x1c,0x45,0x1d,0x44,0x1e,0x44,0x1f,0x44,0x20,0x43,0x21,0x42,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x78,0x00,0x6a,0x00,0x48,0x00,0x22,
+ 0x00,0x00,0x1b,0x00,0x30,0x00,0x3f,0x00,0x4b,0x00,0x54,0x00,0x5b,0x00,0x61,0x00,0x65,0x00,0x68,0x00,
+ 0x6b,0x00,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x78,0x00,0x6a,0x00,
+ 0x48,0x00,0x22,0x00,0x00,0x00,0x00,0x1b,0x00,0x30,0x00,0x3f,0x00,0x4b,0x00,0x54,0x00,0x5b,0x00,0x61,
+ 0x00,0x65,0x00,0x68,0x00,0x6b,0x00,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x7b,0x01,0x71,0x02,0x69,0x05,0x62,0x07,0x5f,0x09,0x5b,0x0c,0x58,0x0e,0x55,0x10,0x53,0x11,0x52,0x13,
+ 0x50,0x15,0x4e,0x16,0x4e,0x18,0x4c,0x19,0x4c,0x1a,0x4a,0x1c,0x4b,0x1d,0x49,0x1e,0x49,0x1f,0x49,0x20,
+ 0x00,0x76,0x01,0x6b,0x03,0x63,0x05,0x5d,0x07,0x58,0x09,0x54,0x0c,0x52,0x0e,0x4f,0x10,0x4d,0x11,0x4c,
+ 0x13,0x4a,0x15,0x49,0x17,0x48,0x18,0x47,0x19,0x46,0x1b,0x45,0x1c,0x45,0x1d,0x44,0x1e,0x44,0x1f,0x44,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7a,0x00,0x71,0x00,0x59,0x00,0x3a,
+ 0x00,0x1b,0x00,0x00,0x16,0x00,0x28,0x00,0x37,0x00,0x42,0x00,0x4b,0x00,0x53,0x00,0x59,0x00,0x5e,0x00,
+ 0x62,0x00,0x65,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7a,0x00,0x71,0x00,
+ 0x59,0x00,0x3a,0x00,0x1b,0x00,0x00,0x00,0x00,0x16,0x00,0x28,0x00,0x37,0x00,0x42,0x00,0x4b,0x00,0x53,
+ 0x00,0x59,0x00,0x5e,0x00,0x62,0x00,0x65,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x7b,0x00,0x72,0x02,0x6b,0x04,0x64,0x06,0x61,0x08,0x5d,0x0a,0x5a,0x0c,0x56,0x0e,0x55,0x10,0x53,0x11,
+ 0x52,0x13,0x50,0x15,0x4f,0x16,0x4e,0x17,0x4d,0x18,0x4b,0x1a,0x4b,0x1a,0x4b,0x1c,0x4b,0x1d,0x49,0x1d,
+ 0x00,0x77,0x00,0x6c,0x02,0x65,0x04,0x5f,0x06,0x5a,0x08,0x57,0x0a,0x54,0x0c,0x51,0x0e,0x4f,0x10,0x4d,
+ 0x11,0x4c,0x13,0x4a,0x15,0x49,0x16,0x48,0x18,0x48,0x18,0x46,0x1a,0x46,0x1b,0x45,0x1c,0x45,0x1d,0x45,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7c,0x00,0x75,0x00,0x63,0x00,0x4a,
+ 0x00,0x30,0x00,0x16,0x00,0x00,0x13,0x00,0x23,0x00,0x30,0x00,0x3b,0x00,0x44,0x00,0x4c,0x00,0x52,0x00,
+ 0x57,0x00,0x5b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7c,0x00,0x75,0x00,
+ 0x63,0x00,0x4a,0x00,0x30,0x00,0x16,0x00,0x00,0x00,0x00,0x13,0x00,0x23,0x00,0x30,0x00,0x3b,0x00,0x44,
+ 0x00,0x4c,0x00,0x52,0x00,0x57,0x00,0x5b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x7c,0x00,0x73,0x02,0x6c,0x03,0x66,0x05,0x63,0x07,0x5e,0x09,0x5c,0x0b,0x58,0x0c,0x57,0x0e,0x55,0x10,
+ 0x53,0x11,0x52,0x13,0x50,0x14,0x4f,0x15,0x4e,0x17,0x4c,0x18,0x4c,0x19,0x4c,0x1a,0x4b,0x1a,0x4b,0x1c,
+ 0x00,0x77,0x00,0x6e,0x02,0x66,0x04,0x61,0x05,0x5c,0x07,0x59,0x09,0x56,0x0b,0x53,0x0d,0x51,0x0f,0x4f,
+ 0x10,0x4e,0x11,0x4c,0x13,0x4b,0x14,0x4a,0x15,0x48,0x17,0x48,0x18,0x47,0x19,0x46,0x1b,0x46,0x1b,0x45,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7c,0x00,0x78,0x00,0x6a,0x00,0x56,
+ 0x00,0x3f,0x00,0x28,0x00,0x13,0x00,0x00,0x10,0x00,0x1f,0x00,0x2b,0x00,0x35,0x00,0x3e,0x00,0x45,0x00,
+ 0x4c,0x00,0x51,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7c,0x00,0x78,0x00,
+ 0x6a,0x00,0x56,0x00,0x3f,0x00,0x28,0x00,0x13,0x00,0x00,0x00,0x00,0x10,0x00,0x1f,0x00,0x2b,0x00,0x35,
+ 0x00,0x3e,0x00,0x45,0x00,0x4c,0x00,0x51,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x7c,0x00,0x74,0x02,0x6e,0x03,0x68,0x05,0x64,0x06,0x60,0x08,0x5d,0x0a,0x5a,0x0b,0x58,0x0d,0x56,0x0e,
+ 0x55,0x10,0x53,0x11,0x52,0x13,0x50,0x14,0x50,0x15,0x4d,0x16,0x4e,0x18,0x4c,0x18,0x4c,0x19,0x4c,0x1a,
+ 0x00,0x77,0x00,0x6f,0x02,0x68,0x03,0x63,0x05,0x5e,0x06,0x5a,0x08,0x57,0x0a,0x55,0x0b,0x53,0x0d,0x50,
+ 0x0f,0x4f,0x10,0x4e,0x11,0x4c,0x13,0x4b,0x14,0x4a,0x15,0x49,0x16,0x48,0x18,0x48,0x18,0x46,0x19,0x46,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7d,0x00,0x79,0x00,0x6e,0x00,0x5e,
+ 0x00,0x4b,0x00,0x37,0x00,0x23,0x00,0x10,0x00,0x00,0x0e,0x00,0x1b,0x00,0x27,0x00,0x30,0x00,0x39,0x00,
+ 0x40,0x00,0x46,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7d,0x00,0x79,0x00,
+ 0x6e,0x00,0x5e,0x00,0x4b,0x00,0x37,0x00,0x23,0x00,0x10,0x00,0x00,0x00,0x00,0x0e,0x00,0x1b,0x00,0x27,
+ 0x00,0x30,0x00,0x39,0x00,0x40,0x00,0x46,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x7d,0x00,0x75,0x01,0x6f,0x02,0x69,0x04,0x65,0x06,0x62,0x07,0x5f,0x09,0x5b,0x0b,0x5a,0x0c,0x58,0x0d,
+ 0x56,0x0e,0x55,0x10,0x53,0x11,0x52,0x13,0x50,0x13,0x4f,0x15,0x4e,0x15,0x4e,0x17,0x4d,0x18,0x4c,0x18,
+ 0x00,0x78,0x00,0x70,0x01,0x69,0x03,0x64,0x04,0x60,0x06,0x5c,0x07,0x59,0x09,0x56,0x0b,0x54,0x0c,0x52,
+ 0x0d,0x50,0x0f,0x4f,0x10,0x4e,0x11,0x4c,0x13,0x4b,0x13,0x4a,0x15,0x4a,0x15,0x48,0x17,0x48,0x18,0x47,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7d,0x00,0x7a,0x00,0x72,0x00,0x64,
+ 0x00,0x54,0x00,0x42,0x00,0x30,0x00,0x1f,0x00,0x0e,0x00,0x00,0x0d,0x00,0x19,0x00,0x23,0x00,0x2c,0x00,
+ 0x34,0x00,0x3b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7d,0x00,0x7a,0x00,
+ 0x72,0x00,0x64,0x00,0x54,0x00,0x42,0x00,0x30,0x00,0x1f,0x00,0x0e,0x00,0x00,0x00,0x00,0x0d,0x00,0x19,
+ 0x00,0x23,0x00,0x2c,0x00,0x34,0x00,0x3b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x7d,0x00,0x76,0x01,0x70,0x02,0x6a,0x03,0x67,0x05,0x63,0x06,0x60,0x08,0x5d,0x09,0x5b,0x0b,0x59,0x0c,
+ 0x57,0x0d,0x55,0x0e,0x55,0x10,0x53,0x11,0x52,0x13,0x4f,0x13,0x50,0x15,0x4f,0x15,0x4e,0x16,0x4e,0x18,
+ 0x00,0x78,0x00,0x71,0x01,0x6a,0x03,0x66,0x04,0x61,0x05,0x5d,0x06,0x5a,0x08,0x58,0x09,0x55,0x0b,0x53,
+ 0x0d,0x52,0x0e,0x50,0x0f,0x4e,0x10,0x4e,0x11,0x4c,0x13,0x4c,0x13,0x4a,0x15,0x4a,0x15,0x49,0x16,0x48,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7b,0x00,0x74,0x00,0x69,
+ 0x00,0x5b,0x00,0x4b,0x00,0x3b,0x00,0x2b,0x00,0x1b,0x00,0x0d,0x00,0x00,0x0c,0x00,0x16,0x00,0x20,0x00,
+ 0x29,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7b,0x00,
+ 0x74,0x00,0x69,0x00,0x5b,0x00,0x4b,0x00,0x3b,0x00,0x2b,0x00,0x1b,0x00,0x0d,0x00,0x00,0x00,0x00,0x0c,
+ 0x00,0x16,0x00,0x20,0x00,0x29,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x7d,0x00,0x76,0x01,0x71,0x02,0x6c,0x03,0x68,0x05,0x64,0x06,0x61,0x07,0x5e,0x09,0x5c,0x0a,0x5a,0x0b,
+ 0x59,0x0c,0x57,0x0e,0x55,0x0e,0x55,0x11,0x52,0x11,0x51,0x12,0x51,0x13,0x50,0x14,0x4f,0x15,0x4e,0x15,
+ 0x00,0x79,0x00,0x71,0x01,0x6c,0x02,0x66,0x04,0x62,0x05,0x5f,0x06,0x5c,0x07,0x59,0x09,0x57,0x0a,0x55,
+ 0x0b,0x53,0x0d,0x51,0x0e,0x50,0x0f,0x4e,0x11,0x4e,0x11,0x4c,0x13,0x4c,0x13,0x4b,0x14,0x4a,0x15,0x4a,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7c,0x00,0x76,0x00,0x6d,
+ 0x00,0x61,0x00,0x53,0x00,0x44,0x00,0x35,0x00,0x27,0x00,0x19,0x00,0x0c,0x00,0x00,0x0b,0x00,0x15,0x00,
+ 0x1e,0x00,0x26,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7c,0x00,
+ 0x76,0x00,0x6d,0x00,0x61,0x00,0x53,0x00,0x44,0x00,0x35,0x00,0x27,0x00,0x19,0x00,0x0c,0x00,0x00,0x00,
+ 0x00,0x0b,0x00,0x15,0x00,0x1e,0x00,0x26,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x7d,0x00,0x77,0x01,0x72,0x02,0x6d,0x03,0x69,0x04,0x66,0x06,0x63,0x07,0x5f,0x08,0x5e,0x09,0x5c,0x0b,
+ 0x5a,0x0c,0x58,0x0c,0x57,0x0e,0x55,0x0f,0x54,0x11,0x51,0x11,0x52,0x12,0x51,0x13,0x50,0x14,0x50,0x15,
+ 0x00,0x79,0x00,0x72,0x01,0x6d,0x02,0x68,0x03,0x63,0x04,0x60,0x06,0x5d,0x07,0x5b,0x08,0x58,0x09,0x56,
+ 0x0b,0x54,0x0c,0x53,0x0d,0x51,0x0e,0x50,0x0f,0x4e,0x11,0x4e,0x11,0x4c,0x12,0x4c,0x13,0x4b,0x14,0x4a,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7c,0x00,0x77,0x00,0x6f,
+ 0x00,0x65,0x00,0x59,0x00,0x4c,0x00,0x3e,0x00,0x30,0x00,0x23,0x00,0x16,0x00,0x0b,0x00,0x00,0x0a,0x00,
+ 0x13,0x00,0x1b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7c,0x00,
+ 0x77,0x00,0x6f,0x00,0x65,0x00,0x59,0x00,0x4c,0x00,0x3e,0x00,0x30,0x00,0x23,0x00,0x16,0x00,0x0b,0x00,
+ 0x00,0x00,0x00,0x0a,0x00,0x13,0x00,0x1b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x7d,0x00,0x78,0x01,0x72,0x02,0x6e,0x02,0x6a,0x03,0x67,0x05,0x64,0x06,0x60,0x07,0x5f,0x09,0x5c,0x0a,
+ 0x5b,0x0b,0x5a,0x0c,0x57,0x0c,0x56,0x0e,0x55,0x0f,0x53,0x11,0x52,0x11,0x52,0x12,0x51,0x13,0x50,0x13,
+ 0x00,0x79,0x00,0x73,0x01,0x6d,0x02,0x69,0x03,0x65,0x04,0x61,0x05,0x5e,0x06,0x5c,0x07,0x59,0x09,0x57,
+ 0x0a,0x55,0x0b,0x54,0x0d,0x53,0x0d,0x51,0x0f,0x50,0x0f,0x4e,0x11,0x4e,0x11,0x4c,0x12,0x4c,0x13,0x4b,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7d,0x00,0x78,0x00,0x71,
+ 0x00,0x68,0x00,0x5e,0x00,0x52,0x00,0x45,0x00,0x39,0x00,0x2c,0x00,0x20,0x00,0x15,0x00,0x0a,0x00,0x00,
+ 0x09,0x00,0x12,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7d,0x00,
+ 0x78,0x00,0x71,0x00,0x68,0x00,0x5e,0x00,0x52,0x00,0x45,0x00,0x39,0x00,0x2c,0x00,0x20,0x00,0x15,0x00,
+ 0x0a,0x00,0x00,0x00,0x00,0x09,0x00,0x12,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x7e,0x00,0x78,0x01,0x73,0x02,0x6e,0x02,0x6b,0x03,0x68,0x05,0x65,0x06,0x62,0x07,0x5f,0x07,0x5e,0x09,
+ 0x5c,0x0b,0x5a,0x0b,0x59,0x0c,0x57,0x0d,0x56,0x0e,0x54,0x0f,0x54,0x11,0x52,0x11,0x52,0x12,0x51,0x13,
+ 0x00,0x79,0x00,0x73,0x01,0x6e,0x02,0x69,0x03,0x66,0x04,0x62,0x05,0x5f,0x06,0x5d,0x07,0x5b,0x08,0x58,
+ 0x09,0x56,0x0b,0x55,0x0b,0x53,0x0d,0x52,0x0d,0x50,0x0f,0x50,0x0f,0x4e,0x11,0x4e,0x11,0x4d,0x12,0x4c,
+ 0x41,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7d,0x00,0x79,0x00,0x73,
+ 0x00,0x6b,0x00,0x62,0x00,0x57,0x00,0x4c,0x00,0x40,0x00,0x34,0x00,0x29,0x00,0x1e,0x00,0x13,0x00,0x09,
+ 0x00,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7d,0x00,
+ 0x79,0x00,0x73,0x00,0x6b,0x00,0x62,0x00,0x57,0x00,0x4c,0x00,0x40,0x00,0x34,0x00,0x29,0x00,0x1e,0x00,
+ 0x13,0x00,0x09,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x7e,0x00,0x78,0x00,0x74,0x01,0x6f,0x02,0x6c,0x03,0x68,0x04,0x65,0x05,0x62,0x06,0x61,0x07,0x5f,0x09,
+ 0x5c,0x09,0x5b,0x0b,0x5a,0x0b,0x58,0x0c,0x57,0x0d,0x55,0x0e,0x55,0x0f,0x54,0x11,0x52,0x11,0x52,0x12,
+ 0x00,0x79,0x00,0x74,0x00,0x6f,0x02,0x6a,0x03,0x66,0x04,0x63,0x05,0x60,0x05,0x5e,0x06,0x5b,0x07,0x59,
+ 0x09,0x58,0x09,0x55,0x0b,0x55,0x0c,0x53,0x0d,0x52,0x0d,0x50,0x0f,0x50,0x0f,0x4e,0x11,0x4e,0x11,0x4d,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7d,0x00,0x7a,0x00,0x75,
+ 0x00,0x6e,0x00,0x65,0x00,0x5b,0x00,0x51,0x00,0x46,0x00,0x3b,0x00,0x30,0x00,0x26,0x00,0x1b,0x00,0x12,
+ 0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x7d,0x00,
+ 0x7a,0x00,0x75,0x00,0x6e,0x00,0x65,0x00,0x5b,0x00,0x51,0x00,0x46,0x00,0x3b,0x00,0x30,0x00,0x26,0x00,
+ 0x1b,0x00,0x12,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x7e,0x00,0x79,0x00,0x74,0x01,0x70,0x02,0x6c,0x03,0x69,0x03,0x66,0x05,0x63,0x06,0x62,0x07,0x5f,0x07,
+ 0x5e,0x09,0x5c,0x0a,0x5a,0x0b,0x5a,0x0c,0x57,0x0c,0x56,0x0e,0x55,0x0e,0x55,0x0f,0x54,0x11,0x52,0x11,
+ 0x00,0x79,0x00,0x74,0x00,0x70,0x01,0x6b,0x02,0x67,0x03,0x64,0x04,0x61,0x05,0x5f,0x06,0x5d,0x07,0x5b,
+ 0x08,0x58,0x09,0x57,0x0a,0x55,0x0b,0x54,0x0c,0x53,0x0d,0x51,0x0e,0x50,0x0f,0x50,0x0f,0x4e,0x11,0x4e,
+ 0x41,0x3d,0x41,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,
+ 0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x41,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,0x42,0x3d,
+};
+
+static const unsigned char kSmaaSearch[SMAA_SEARCH_W * SMAA_SEARCH_H] = {
+ 0xfe,0xfe,0x00,0x7f,0x7f,0x00,0x00,0xfe,0xfe,0x00,0x7f,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x7f,0x7f,0x00,0x7f,0x7f,0x00,0x00,0x7f,0x7f,0x00,0x7f,0x7f,0xfe,0x7f,0x00,0x00,0x00,0x00,0x00,
+ 0x7f,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0xfe,0xfe,0x00,0x7f,0x7f,0x00,0x00,0xfe,0xfe,0x00,0x7f,0x7f,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x7f,0x7f,0x00,0x7f,0x7f,0x00,0x00,0x7f,0x7f,0x00,0x7f,0x7f,0xfe,0x7f,0x00,
+ 0x00,0x00,0x00,0x00,0x7f,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0xfe,0x00,0x7f,0x7f,0x00,0x00,0xfe,
+ 0xfe,0x00,0x7f,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7f,0x7f,0x00,0x7f,0x7f,0x00,0x00,
+ 0x7f,0x7f,0x00,0x7f,0x7f,0xfe,0x7f,0x00,0x00,0x00,0x00,0x00,0x7f,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0xfe,0x00,0x7f,
+ 0x7f,0x00,0x00,0xfe,0xfe,0x00,0x7f,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7f,0x7f,0x00,
+ 0x7f,0x7f,0x00,0x00,0x7f,0x7f,0x00,0x7f,0x7f,0xfe,0x7f,0x00,0x00,0x00,0x00,0x00,0x7f,0x7f,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7f,0x7f,0x00,0x7f,0x7f,0x00,0x00,0x7f,0x7f,0x00,0x7f,0x7f,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7f,0x7f,0x00,0x7f,0x7f,0x00,0x00,0x7f,0x7f,0x00,0x7f,
+ 0x7f,0x7f,0x7f,0x00,0x00,0x00,0x00,0x00,0x7f,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7f,0x7f,0x00,0x7f,0x7f,0x00,0x00,0x7f,
+ 0x7f,0x00,0x7f,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7f,0x7f,0x00,0x7f,0x7f,0x00,0x00,
+ 0x7f,0x7f,0x00,0x7f,0x7f,0x7f,0x7f,0x00,0x00,0x00,0x00,0x00,0x7f,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x7f,0x7f,0x00,0x7f,0x7f,0x00,0x00,0x7f,0x7f,0x00,0x7f,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x7f,0x7f,0x00,0x7f,0x7f,0x00,0x00,0x7f,0x7f,0x00,0x7f,0x7f,0x7f,0x7f,0x00,0x00,0x00,0x00,0x00,
+ 0x7f,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x7f,0x7f,0x00,0x7f,0x7f,0x00,0x00,0x7f,0x7f,0x00,0x7f,0x7f,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x7f,0x7f,0x00,0x7f,0x7f,0x00,0x00,0x7f,0x7f,0x00,0x7f,0x7f,0x7f,0x7f,0x00,
+ 0x00,0x00,0x00,0x00,0x7f,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,
+};
diff --git a/app/src/main/cpp/shaders/smaa_weights.frag b/app/src/main/cpp/shaders/smaa_weights.frag
index 32e8b404cd..3d6bca5601 100644
--- a/app/src/main/cpp/shaders/smaa_weights.frag
+++ b/app/src/main/cpp/shaders/smaa_weights.frag
@@ -1,153 +1,25 @@
#version 450
+#extension GL_GOOGLE_include_directive : require
layout(location = 0) in vec2 fragTexCoord;
layout(location = 0) out vec4 outColor;
layout(set = 0, binding = 0) uniform sampler2D EdgeTexture;
+layout(set = 1, binding = 0) uniform sampler2D AreaTexture;
+layout(set = 2, binding = 0) uniform sampler2D SearchTexture;
layout(push_constant) uniform Constants {
vec4 ndc;
- vec2 resolution;
- float extra;
- float pad;
+ vec4 metrics; // 1/width, 1/height, width, height
} pc;
-vec4 edgeAt(vec2 uv, vec2 px) {
- vec2 edgeUV = clamp(uv, px * 0.5, vec2(1.0) - px * 0.5);
- vec4 e = textureLod(EdgeTexture, edgeUV, 0.0);
- e.a = edgeUV.y >= 1.0 - px.y ? 0.0 : e.a;
- return e;
-}
-
-float verticalEdge(vec2 uv, vec2 px) {
- vec4 e = edgeAt(uv, px);
- return max(e.r, e.g);
-}
-
-float horizontalEdge(vec2 uv, vec2 px) {
- vec4 e = edgeAt(uv, px);
- return max(e.b, e.a);
-}
-
-float measureRun(vec2 origin, vec2 texel, vec2 tangent,
- bool verticalLine, float limit, bool positive) {
- float run = 0.0;
- for (int i = 1; i <= 6; ++i) {
- vec2 probe = origin + tangent * float(i) * (positive ? 1.0 : -1.0);
- ivec2 index = ivec2(floor(probe * pc.resolution));
- ivec2 size = ivec2(pc.resolution);
- if (any(lessThan(index, ivec2(0))) ||
- any(greaterThanEqual(index, size))) {
- break;
- }
- float edge = verticalLine
- ? verticalEdge(probe, texel)
- : horizontalEdge(probe, texel);
- if (edge <= limit * 0.65) {
- break;
- }
- run = float(i);
- }
- return run;
-}
+#define SMAA_RT_METRICS pc.metrics
+#define SMAA_GLSL_4
+#define SMAA_PRESET_HIGH
+#include "SMAA.hlsl"
void main() {
- vec2 px = 1.0 / max(pc.resolution, vec2(1.0));
- vec2 uv = clamp(fragTexCoord, px * 0.5, vec2(1.0) - px * 0.5);
- vec4 e = edgeAt(uv, px);
-
- float dL = e.r;
- float dR = e.g;
- float dU = e.b;
- float dD = e.a;
- float vertical = max(dL, dR);
- float horizontal = max(dU, dD);
- float strongest = max(vertical, horizontal);
- float threshold = max(0.045, strongest * 0.12);
-
- if (strongest <= threshold) {
- outColor = vec4(0.0, 0.5, 0.5, 0.0);
- return;
- }
-
- bool verticalLine;
- float negativeRun = 0.0;
- float positiveRun = 0.0;
- bool runsMeasured = false;
-
- if (vertical > horizontal) {
- verticalLine = true;
- } else if (horizontal > vertical) {
- verticalLine = false;
- } else {
- float vNeg = measureRun(uv, px, vec2(0.0, px.y), true, threshold, false);
- float vPos = measureRun(uv, px, vec2(0.0, px.y), true, threshold, true);
- float hNeg = measureRun(uv, px, vec2(px.x, 0.0), false, threshold, false);
- float hPos = measureRun(uv, px, vec2(px.x, 0.0), false, threshold, true);
- verticalLine = (vNeg + vPos) >= (hNeg + hPos);
- negativeRun = verticalLine ? vNeg : hNeg;
- positiveRun = verticalLine ? vPos : hPos;
- runsMeasured = true;
- }
-
- vec2 tangent = verticalLine ? vec2(0.0, px.y) : vec2(px.x, 0.0);
- vec2 normal = verticalLine
- ? vec2(dL >= dR ? -1.0 : 1.0, 0.0)
- : vec2(0.0, dU >= dD ? -1.0 : 1.0);
-
- if (!runsMeasured) {
- negativeRun = measureRun(uv, px, tangent, verticalLine, threshold, false);
- positiveRun = measureRun(uv, px, tangent, verticalLine, threshold, true);
- }
-
- float span = negativeRun + positiveRun;
- float edgeConfidence = smoothstep(threshold, threshold * 2.5, strongest);
-
- vec4 nw = edgeAt(uv + vec2(-px.x, -px.y), px);
- vec4 ne = edgeAt(uv + vec2(px.x, -px.y), px);
- vec4 sw = edgeAt(uv + vec2(-px.x, px.y), px);
- vec4 se = edgeAt(uv + vec2(px.x, px.y), px);
-
- float runEndpointPattern = clamp(
- abs(negativeRun - positiveRun) / max(span, 1.0), 0.0, 1.0);
- float crossingA = verticalLine
- ? abs(nw.a - ne.a)
- : abs(nw.g - sw.g);
- float crossingB = verticalLine
- ? abs(sw.b - se.b)
- : abs(ne.r - se.r);
- float crossingContrast = abs(crossingA - crossingB);
- float crossingPattern = smoothstep(threshold, threshold * 2.5, crossingContrast);
- vec4 edgeMin = min(min(nw, ne), min(sw, se));
- vec4 edgeMax = max(max(nw, ne), max(sw, se));
- float edgeVariation = max(
- max(edgeMax.r - edgeMin.r, edgeMax.g - edgeMin.g),
- max(edgeMax.b - edgeMin.b, edgeMax.a - edgeMin.a));
- float balancedCrossing = edgeVariation > 0.01
- ? smoothstep(threshold, threshold * 2.5, min(crossingA, crossingB))
- : 0.0;
- float endpointPattern = runEndpointPattern > 0.01
- ? max(runEndpointPattern, balancedCrossing)
- : runEndpointPattern;
- float endpointArea = endpointPattern / (1.0 + span * 0.055);
- float areaWeight = 0.38 * crossingPattern * clamp(span / 4.0, 0.0, 1.0);
- float diagonalContrast = max(
- max(max(abs(nw.r - se.r), abs(nw.g - se.g)),
- max(abs(nw.b - se.b), abs(nw.a - se.a))),
- max(max(abs(ne.r - sw.r), abs(ne.g - sw.g)),
- max(abs(ne.b - sw.b), abs(ne.a - sw.a))));
- float cornerFactor = 1.0 - 0.35 * smoothstep(threshold, threshold * 3.0, diagonalContrast);
- float baseWeight = areaWeight * endpointArea * edgeConfidence * cornerFactor;
-
- float diagonalStrength = min(vertical, horizontal);
- float diagonalPattern = smoothstep(threshold, threshold * 2.5, diagonalStrength);
- float diagonalContinuity = smoothstep(1.0, 3.0, span);
- float shortDiagonalFallback =
- (span > 0.0 && span <= 1.0 && crossingContrast <= threshold && diagonalStrength > threshold)
- ? 1.0 : 0.0;
- float diagonalFallback = 0.16 * diagonalPattern * edgeConfidence
- * cornerFactor * max(
- diagonalContinuity * max(crossingPattern, balancedCrossing),
- shortDiagonalFallback);
-
- float weight = clamp(max(baseWeight, diagonalFallback), 0.0, 0.42);
- outColor = vec4(weight, normal.x * 0.5 + 0.5, normal.y * 0.5 + 0.5, 1.0);
+ vec2 pixcoord;
+ vec4 offset[3];
+ SMAABlendingWeightCalculationVS(fragTexCoord, pixcoord, offset);
+ outColor = SMAABlendingWeightCalculationPS(fragTexCoord, pixcoord, offset, EdgeTexture,
+ AreaTexture, SearchTexture, vec4(0.0));
}
diff --git a/app/src/main/cpp/shaders/smaa_weights_frag.h b/app/src/main/cpp/shaders/smaa_weights_frag.h
index be2681e8a2..5802838e6e 100644
--- a/app/src/main/cpp/shaders/smaa_weights_frag.h
+++ b/app/src/main/cpp/shaders/smaa_weights_frag.h
@@ -1,567 +1,986 @@
-// SPIR-V gerado
-#pragma once
+ // 1116.6.0
+ #pragma once
const uint32_t smaa_weights_code[] = {
- 0x07230203,0x00010000,0x0008000b,0x000002e6,0x00000000,0x00020011,0x00000001,0x0006000b,
+ 0x07230203,0x00010000,0x0008000b,0x000004fe,0x00000000,0x00020011,0x00000001,0x0006000b,
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
- 0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x000000cb,0x000000fd,0x00030010,
- 0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,
- 0x00000000,0x00060005,0x0000000d,0x65676465,0x76287441,0x763b3266,0x003b3266,0x00030005,
- 0x0000000b,0x00007675,0x00030005,0x0000000c,0x00007870,0x00080005,0x00000012,0x74726576,
- 0x6c616369,0x65676445,0x32667628,0x3266763b,0x0000003b,0x00030005,0x00000010,0x00007675,
- 0x00030005,0x00000011,0x00007870,0x00080005,0x00000016,0x69726f68,0x746e6f7a,0x64456c61,
- 0x76286567,0x763b3266,0x003b3266,0x00030005,0x00000014,0x00007675,0x00030005,0x00000015,
- 0x00007870,0x000b0005,0x00000022,0x7361656d,0x52657275,0x76286e75,0x763b3266,0x763b3266,
- 0x623b3266,0x31663b31,0x3b31623b,0x00000000,0x00040005,0x0000001c,0x6769726f,0x00006e69,
- 0x00040005,0x0000001d,0x65786574,0x0000006c,0x00040005,0x0000001e,0x676e6174,0x00746e65,
- 0x00060005,0x0000001f,0x74726576,0x6c616369,0x656e694c,0x00000000,0x00040005,0x00000020,
- 0x696d696c,0x00000074,0x00050005,0x00000021,0x69736f70,0x65766974,0x00000000,0x00040005,
- 0x00000024,0x65676465,0x00005655,0x00030005,0x00000030,0x00000065,0x00050005,0x00000034,
- 0x65676445,0x74786554,0x00657275,0x00030005,0x0000004d,0x00000065,0x00040005,0x0000004e,
- 0x61726170,0x0000006d,0x00040005,0x00000050,0x61726170,0x0000006d,0x00030005,0x0000005b,
- 0x00000065,0x00040005,0x0000005c,0x61726170,0x0000006d,0x00040005,0x0000005e,0x61726170,
- 0x0000006d,0x00030005,0x00000069,0x006e7572,0x00030005,0x0000006c,0x00000069,0x00040005,
- 0x00000076,0x626f7270,0x00000065,0x00040005,0x00000083,0x65646e69,0x00000078,0x00050005,
- 0x00000085,0x736e6f43,0x746e6174,0x00000073,0x00040006,0x00000085,0x00000000,0x0063646e,
- 0x00060006,0x00000085,0x00000001,0x6f736572,0x6974756c,0x00006e6f,0x00050006,0x00000085,
- 0x00000002,0x72747865,0x00000061,0x00040006,0x00000085,0x00000003,0x00646170,0x00030005,
- 0x00000087,0x00006370,0x00040005,0x0000008e,0x657a6973,0x00000000,0x00040005,0x000000a3,
- 0x65676465,0x00000000,0x00040005,0x000000a8,0x61726170,0x0000006d,0x00040005,0x000000aa,
- 0x61726170,0x0000006d,0x00040005,0x000000ae,0x61726170,0x0000006d,0x00040005,0x000000b0,
- 0x61726170,0x0000006d,0x00030005,0x000000c3,0x00007870,0x00030005,0x000000c9,0x00007675,
- 0x00060005,0x000000cb,0x67617266,0x43786554,0x64726f6f,0x00000000,0x00030005,0x000000d3,
- 0x00000065,0x00040005,0x000000d4,0x61726170,0x0000006d,0x00040005,0x000000d6,0x61726170,
- 0x0000006d,0x00030005,0x000000d9,0x00004c64,0x00030005,0x000000dc,0x00005264,0x00030005,
- 0x000000df,0x00005564,0x00030005,0x000000e2,0x00004464,0x00050005,0x000000e5,0x74726576,
- 0x6c616369,0x00000000,0x00050005,0x000000e9,0x69726f68,0x746e6f7a,0x00006c61,0x00050005,
- 0x000000ed,0x6f727473,0x7365676e,0x00000074,0x00050005,0x000000f1,0x65726874,0x6c6f6873,
- 0x00000064,0x00050005,0x000000fd,0x4374756f,0x726f6c6f,0x00000000,0x00050005,0x00000100,
- 0x6167656e,0x65766974,0x006e7552,0x00050005,0x00000101,0x69736f70,0x65766974,0x006e7552,
- 0x00060005,0x00000102,0x736e7572,0x7361654d,0x64657275,0x00000000,0x00060005,0x00000109,
- 0x74726576,0x6c616369,0x656e694c,0x00000000,0x00040005,0x00000112,0x67654e76,0x00000000,
- 0x00040005,0x00000116,0x61726170,0x0000006d,0x00040005,0x00000118,0x61726170,0x0000006d,
- 0x00040005,0x0000011a,0x61726170,0x0000006d,0x00040005,0x0000011b,0x61726170,0x0000006d,
- 0x00040005,0x0000011c,0x61726170,0x0000006d,0x00040005,0x0000011e,0x61726170,0x0000006d,
- 0x00040005,0x00000120,0x736f5076,0x00000000,0x00040005,0x00000124,0x61726170,0x0000006d,
- 0x00040005,0x00000126,0x61726170,0x0000006d,0x00040005,0x00000128,0x61726170,0x0000006d,
- 0x00040005,0x00000129,0x61726170,0x0000006d,0x00040005,0x0000012a,0x61726170,0x0000006d,
- 0x00040005,0x0000012c,0x61726170,0x0000006d,0x00040005,0x0000012e,0x67654e68,0x00000000,
- 0x00040005,0x00000132,0x61726170,0x0000006d,0x00040005,0x00000134,0x61726170,0x0000006d,
- 0x00040005,0x00000136,0x61726170,0x0000006d,0x00040005,0x00000137,0x61726170,0x0000006d,
- 0x00040005,0x00000138,0x61726170,0x0000006d,0x00040005,0x0000013a,0x61726170,0x0000006d,
- 0x00040005,0x0000013c,0x736f5068,0x00000000,0x00040005,0x00000140,0x61726170,0x0000006d,
- 0x00040005,0x00000142,0x61726170,0x0000006d,0x00040005,0x00000144,0x61726170,0x0000006d,
- 0x00040005,0x00000145,0x61726170,0x0000006d,0x00040005,0x00000146,0x61726170,0x0000006d,
- 0x00040005,0x00000148,0x61726170,0x0000006d,0x00040005,0x00000159,0x676e6174,0x00746e65,
- 0x00040005,0x00000166,0x6d726f6e,0x00006c61,0x00040005,0x0000017b,0x61726170,0x0000006d,
- 0x00040005,0x0000017d,0x61726170,0x0000006d,0x00040005,0x0000017f,0x61726170,0x0000006d,
- 0x00040005,0x00000181,0x61726170,0x0000006d,0x00040005,0x00000183,0x61726170,0x0000006d,
- 0x00040005,0x00000185,0x61726170,0x0000006d,0x00040005,0x00000187,0x61726170,0x0000006d,
- 0x00040005,0x00000189,0x61726170,0x0000006d,0x00040005,0x0000018b,0x61726170,0x0000006d,
- 0x00040005,0x0000018d,0x61726170,0x0000006d,0x00040005,0x0000018f,0x61726170,0x0000006d,
- 0x00040005,0x00000191,0x61726170,0x0000006d,0x00040005,0x00000193,0x6e617073,0x00000000,
- 0x00060005,0x00000197,0x65676465,0x666e6f43,0x6e656469,0x00006563,0x00030005,0x0000019e,
- 0x0000776e,0x00040005,0x000001a8,0x61726170,0x0000006d,0x00040005,0x000001a9,0x61726170,
- 0x0000006d,0x00030005,0x000001ac,0x0000656e,0x00040005,0x000001b5,0x61726170,0x0000006d,
- 0x00040005,0x000001b6,0x61726170,0x0000006d,0x00030005,0x000001b9,0x00007773,0x00040005,
- 0x000001c2,0x61726170,0x0000006d,0x00040005,0x000001c3,0x61726170,0x0000006d,0x00030005,
- 0x000001c6,0x00006573,0x00040005,0x000001ce,0x61726170,0x0000006d,0x00040005,0x000001cf,
- 0x61726170,0x0000006d,0x00070005,0x000001d2,0x456e7572,0x6f70646e,0x50746e69,0x65747461,
- 0x00006e72,0x00050005,0x000001db,0x736f7263,0x676e6973,0x00000041,0x00050005,0x000001ee,
- 0x736f7263,0x676e6973,0x00000042,0x00070005,0x00000201,0x736f7263,0x676e6973,0x746e6f43,
- 0x74736172,0x00000000,0x00060005,0x00000206,0x736f7263,0x676e6973,0x74746150,0x006e7265,
- 0x00040005,0x0000020c,0x65676465,0x006e694d,0x00040005,0x00000214,0x65676465,0x0078614d,
- 0x00060005,0x0000021c,0x65676465,0x69726156,0x6f697461,0x0000006e,0x00070005,0x00000234,
- 0x616c6162,0x6465636e,0x736f7243,0x676e6973,0x00000000,0x00060005,0x00000244,0x70646e65,
- 0x746e696f,0x74746150,0x006e7265,0x00060005,0x00000250,0x70646e65,0x746e696f,0x61657241,
- 0x00000000,0x00050005,0x00000257,0x61657261,0x67696557,0x00007468,0x00070005,0x00000260,
- 0x67616964,0x6c616e6f,0x746e6f43,0x74736172,0x00000000,0x00060005,0x00000298,0x6e726f63,
- 0x61467265,0x726f7463,0x00000000,0x00050005,0x000002a2,0x65736162,0x67696557,0x00007468,
- 0x00070005,0x000002aa,0x67616964,0x6c616e6f,0x65727453,0x6874676e,0x00000000,0x00060005,
- 0x000002ae,0x67616964,0x6c616e6f,0x74746150,0x006e7265,0x00070005,0x000002b4,0x67616964,
- 0x6c616e6f,0x746e6f43,0x69756e69,0x00007974,0x00080005,0x000002b7,0x726f6873,0x61694474,
- 0x616e6f67,0x6c61466c,0x6361626c,0x0000006b,0x00070005,0x000002c6,0x67616964,0x6c616e6f,
- 0x6c6c6146,0x6b636162,0x00000000,0x00040005,0x000002d6,0x67696577,0x00007468,0x00040047,
- 0x00000034,0x00000021,0x00000000,0x00040047,0x00000034,0x00000022,0x00000000,0x00030047,
- 0x00000085,0x00000002,0x00050048,0x00000085,0x00000000,0x00000023,0x00000000,0x00050048,
- 0x00000085,0x00000001,0x00000023,0x00000010,0x00050048,0x00000085,0x00000002,0x00000023,
- 0x00000018,0x00050048,0x00000085,0x00000003,0x00000023,0x0000001c,0x00040047,0x000000cb,
- 0x0000001e,0x00000000,0x00040047,0x000000fd,0x0000001e,0x00000000,0x00020013,0x00000002,
- 0x00030021,0x00000003,0x00000002,0x00030016,0x00000006,0x00000020,0x00040017,0x00000007,
- 0x00000006,0x00000002,0x00040020,0x00000008,0x00000007,0x00000007,0x00040017,0x00000009,
- 0x00000006,0x00000004,0x00050021,0x0000000a,0x00000009,0x00000008,0x00000008,0x00050021,
- 0x0000000f,0x00000006,0x00000008,0x00000008,0x00020014,0x00000018,0x00040020,0x00000019,
- 0x00000007,0x00000018,0x00040020,0x0000001a,0x00000007,0x00000006,0x00090021,0x0000001b,
- 0x00000006,0x00000008,0x00000008,0x00000008,0x00000019,0x0000001a,0x00000019,0x0004002b,
- 0x00000006,0x00000027,0x3f000000,0x0004002b,0x00000006,0x00000029,0x3f800000,0x0005002c,
- 0x00000007,0x0000002a,0x00000029,0x00000029,0x00040020,0x0000002f,0x00000007,0x00000009,
- 0x00090019,0x00000031,0x00000006,0x00000001,0x00000000,0x00000000,0x00000000,0x00000001,
- 0x00000000,0x0003001b,0x00000032,0x00000031,0x00040020,0x00000033,0x00000000,0x00000032,
- 0x0004003b,0x00000033,0x00000034,0x00000000,0x0004002b,0x00000006,0x00000037,0x00000000,
- 0x00040015,0x00000039,0x00000020,0x00000000,0x0004002b,0x00000039,0x0000003a,0x00000001,
- 0x0004002b,0x00000039,0x00000045,0x00000003,0x0004002b,0x00000039,0x00000053,0x00000000,
- 0x0004002b,0x00000039,0x00000061,0x00000002,0x00040015,0x0000006a,0x00000020,0x00000001,
- 0x00040020,0x0000006b,0x00000007,0x0000006a,0x0004002b,0x0000006a,0x0000006d,0x00000001,
- 0x0004002b,0x0000006a,0x00000074,0x00000006,0x0004002b,0x00000006,0x0000007d,0xbf800000,
- 0x00040017,0x00000081,0x0000006a,0x00000002,0x00040020,0x00000082,0x00000007,0x00000081,
- 0x0006001e,0x00000085,0x00000009,0x00000007,0x00000006,0x00000006,0x00040020,0x00000086,
- 0x00000009,0x00000085,0x0004003b,0x00000086,0x00000087,0x00000009,0x00040020,0x00000088,
- 0x00000009,0x00000007,0x0004002b,0x0000006a,0x00000093,0x00000000,0x0005002c,0x00000081,
- 0x00000094,0x00000093,0x00000093,0x00040017,0x00000095,0x00000018,0x00000002,0x0004002b,
- 0x00000006,0x000000b6,0x3f266666,0x00040020,0x000000ca,0x00000001,0x00000007,0x0004003b,
- 0x000000ca,0x000000cb,0x00000001,0x0004002b,0x00000006,0x000000f2,0x3d3851ec,0x0004002b,
- 0x00000006,0x000000f4,0x3df5c28f,0x00040020,0x000000fc,0x00000003,0x00000009,0x0004003b,
- 0x000000fc,0x000000fd,0x00000003,0x0007002c,0x00000009,0x000000fe,0x00000037,0x00000027,
- 0x00000027,0x00000037,0x0003002a,0x00000018,0x00000103,0x00030029,0x00000018,0x0000010a,
- 0x0004002b,0x00000006,0x0000019a,0x40200000,0x0004002b,0x00000006,0x00000236,0x3c23d70a,
- 0x0004002b,0x00000006,0x00000253,0x3d6147ae,0x0004002b,0x00000006,0x00000258,0x3ec28f5c,
- 0x0004002b,0x00000006,0x0000025c,0x40800000,0x0004002b,0x00000006,0x00000299,0x3eb33333,
- 0x0004002b,0x00000006,0x0000029c,0x40400000,0x0004002b,0x00000006,0x000002c7,0x3e23d70a,
- 0x0004002b,0x00000006,0x000002da,0x3ed70a3d,0x00050036,0x00000002,0x00000004,0x00000000,
- 0x00000003,0x000200f8,0x00000005,0x0004003b,0x00000008,0x000000c3,0x00000007,0x0004003b,
- 0x00000008,0x000000c9,0x00000007,0x0004003b,0x0000002f,0x000000d3,0x00000007,0x0004003b,
- 0x00000008,0x000000d4,0x00000007,0x0004003b,0x00000008,0x000000d6,0x00000007,0x0004003b,
- 0x0000001a,0x000000d9,0x00000007,0x0004003b,0x0000001a,0x000000dc,0x00000007,0x0004003b,
- 0x0000001a,0x000000df,0x00000007,0x0004003b,0x0000001a,0x000000e2,0x00000007,0x0004003b,
- 0x0000001a,0x000000e5,0x00000007,0x0004003b,0x0000001a,0x000000e9,0x00000007,0x0004003b,
- 0x0000001a,0x000000ed,0x00000007,0x0004003b,0x0000001a,0x000000f1,0x00000007,0x0004003b,
- 0x0000001a,0x00000100,0x00000007,0x0004003b,0x0000001a,0x00000101,0x00000007,0x0004003b,
- 0x00000019,0x00000102,0x00000007,0x0004003b,0x00000019,0x00000109,0x00000007,0x0004003b,
- 0x0000001a,0x00000112,0x00000007,0x0004003b,0x00000008,0x00000116,0x00000007,0x0004003b,
- 0x00000008,0x00000118,0x00000007,0x0004003b,0x00000008,0x0000011a,0x00000007,0x0004003b,
- 0x00000019,0x0000011b,0x00000007,0x0004003b,0x0000001a,0x0000011c,0x00000007,0x0004003b,
- 0x00000019,0x0000011e,0x00000007,0x0004003b,0x0000001a,0x00000120,0x00000007,0x0004003b,
- 0x00000008,0x00000124,0x00000007,0x0004003b,0x00000008,0x00000126,0x00000007,0x0004003b,
- 0x00000008,0x00000128,0x00000007,0x0004003b,0x00000019,0x00000129,0x00000007,0x0004003b,
- 0x0000001a,0x0000012a,0x00000007,0x0004003b,0x00000019,0x0000012c,0x00000007,0x0004003b,
- 0x0000001a,0x0000012e,0x00000007,0x0004003b,0x00000008,0x00000132,0x00000007,0x0004003b,
- 0x00000008,0x00000134,0x00000007,0x0004003b,0x00000008,0x00000136,0x00000007,0x0004003b,
- 0x00000019,0x00000137,0x00000007,0x0004003b,0x0000001a,0x00000138,0x00000007,0x0004003b,
- 0x00000019,0x0000013a,0x00000007,0x0004003b,0x0000001a,0x0000013c,0x00000007,0x0004003b,
- 0x00000008,0x00000140,0x00000007,0x0004003b,0x00000008,0x00000142,0x00000007,0x0004003b,
- 0x00000008,0x00000144,0x00000007,0x0004003b,0x00000019,0x00000145,0x00000007,0x0004003b,
- 0x0000001a,0x00000146,0x00000007,0x0004003b,0x00000019,0x00000148,0x00000007,0x0004003b,
- 0x00000008,0x00000159,0x00000007,0x0004003b,0x00000008,0x0000015b,0x00000007,0x0004003b,
- 0x00000008,0x00000166,0x00000007,0x0004003b,0x00000008,0x00000168,0x00000007,0x0004003b,
- 0x00000008,0x0000017b,0x00000007,0x0004003b,0x00000008,0x0000017d,0x00000007,0x0004003b,
- 0x00000008,0x0000017f,0x00000007,0x0004003b,0x00000019,0x00000181,0x00000007,0x0004003b,
- 0x0000001a,0x00000183,0x00000007,0x0004003b,0x00000019,0x00000185,0x00000007,0x0004003b,
- 0x00000008,0x00000187,0x00000007,0x0004003b,0x00000008,0x00000189,0x00000007,0x0004003b,
- 0x00000008,0x0000018b,0x00000007,0x0004003b,0x00000019,0x0000018d,0x00000007,0x0004003b,
- 0x0000001a,0x0000018f,0x00000007,0x0004003b,0x00000019,0x00000191,0x00000007,0x0004003b,
- 0x0000001a,0x00000193,0x00000007,0x0004003b,0x0000001a,0x00000197,0x00000007,0x0004003b,
- 0x0000002f,0x0000019e,0x00000007,0x0004003b,0x00000008,0x000001a8,0x00000007,0x0004003b,
- 0x00000008,0x000001a9,0x00000007,0x0004003b,0x0000002f,0x000001ac,0x00000007,0x0004003b,
- 0x00000008,0x000001b5,0x00000007,0x0004003b,0x00000008,0x000001b6,0x00000007,0x0004003b,
- 0x0000002f,0x000001b9,0x00000007,0x0004003b,0x00000008,0x000001c2,0x00000007,0x0004003b,
- 0x00000008,0x000001c3,0x00000007,0x0004003b,0x0000002f,0x000001c6,0x00000007,0x0004003b,
- 0x00000008,0x000001ce,0x00000007,0x0004003b,0x00000008,0x000001cf,0x00000007,0x0004003b,
- 0x0000001a,0x000001d2,0x00000007,0x0004003b,0x0000001a,0x000001db,0x00000007,0x0004003b,
- 0x0000001a,0x000001dd,0x00000007,0x0004003b,0x0000001a,0x000001ee,0x00000007,0x0004003b,
- 0x0000001a,0x000001f0,0x00000007,0x0004003b,0x0000001a,0x00000201,0x00000007,0x0004003b,
- 0x0000001a,0x00000206,0x00000007,0x0004003b,0x0000002f,0x0000020c,0x00000007,0x0004003b,
- 0x0000002f,0x00000214,0x00000007,0x0004003b,0x0000001a,0x0000021c,0x00000007,0x0004003b,
- 0x0000001a,0x00000234,0x00000007,0x0004003b,0x0000001a,0x00000238,0x00000007,0x0004003b,
- 0x0000001a,0x00000244,0x00000007,0x0004003b,0x0000001a,0x00000247,0x00000007,0x0004003b,
- 0x0000001a,0x00000250,0x00000007,0x0004003b,0x0000001a,0x00000257,0x00000007,0x0004003b,
- 0x0000001a,0x00000260,0x00000007,0x0004003b,0x0000001a,0x00000298,0x00000007,0x0004003b,
- 0x0000001a,0x000002a2,0x00000007,0x0004003b,0x0000001a,0x000002aa,0x00000007,0x0004003b,
- 0x0000001a,0x000002ae,0x00000007,0x0004003b,0x0000001a,0x000002b4,0x00000007,0x0004003b,
- 0x0000001a,0x000002b7,0x00000007,0x0004003b,0x0000001a,0x000002c6,0x00000007,0x0004003b,
- 0x0000001a,0x000002d6,0x00000007,0x00050041,0x00000088,0x000000c4,0x00000087,0x0000006d,
- 0x0004003d,0x00000007,0x000000c5,0x000000c4,0x0007000c,0x00000007,0x000000c6,0x00000001,
- 0x00000028,0x000000c5,0x0000002a,0x00050050,0x00000007,0x000000c7,0x00000029,0x00000029,
- 0x00050088,0x00000007,0x000000c8,0x000000c7,0x000000c6,0x0003003e,0x000000c3,0x000000c8,
- 0x0004003d,0x00000007,0x000000cc,0x000000cb,0x0004003d,0x00000007,0x000000cd,0x000000c3,
- 0x0005008e,0x00000007,0x000000ce,0x000000cd,0x00000027,0x0004003d,0x00000007,0x000000cf,
- 0x000000c3,0x0005008e,0x00000007,0x000000d0,0x000000cf,0x00000027,0x00050083,0x00000007,
- 0x000000d1,0x0000002a,0x000000d0,0x0008000c,0x00000007,0x000000d2,0x00000001,0x0000002b,
- 0x000000cc,0x000000ce,0x000000d1,0x0003003e,0x000000c9,0x000000d2,0x0004003d,0x00000007,
- 0x000000d5,0x000000c9,0x0003003e,0x000000d4,0x000000d5,0x0004003d,0x00000007,0x000000d7,
- 0x000000c3,0x0003003e,0x000000d6,0x000000d7,0x00060039,0x00000009,0x000000d8,0x0000000d,
- 0x000000d4,0x000000d6,0x0003003e,0x000000d3,0x000000d8,0x00050041,0x0000001a,0x000000da,
- 0x000000d3,0x00000053,0x0004003d,0x00000006,0x000000db,0x000000da,0x0003003e,0x000000d9,
- 0x000000db,0x00050041,0x0000001a,0x000000dd,0x000000d3,0x0000003a,0x0004003d,0x00000006,
- 0x000000de,0x000000dd,0x0003003e,0x000000dc,0x000000de,0x00050041,0x0000001a,0x000000e0,
- 0x000000d3,0x00000061,0x0004003d,0x00000006,0x000000e1,0x000000e0,0x0003003e,0x000000df,
- 0x000000e1,0x00050041,0x0000001a,0x000000e3,0x000000d3,0x00000045,0x0004003d,0x00000006,
- 0x000000e4,0x000000e3,0x0003003e,0x000000e2,0x000000e4,0x0004003d,0x00000006,0x000000e6,
- 0x000000d9,0x0004003d,0x00000006,0x000000e7,0x000000dc,0x0007000c,0x00000006,0x000000e8,
- 0x00000001,0x00000028,0x000000e6,0x000000e7,0x0003003e,0x000000e5,0x000000e8,0x0004003d,
- 0x00000006,0x000000ea,0x000000df,0x0004003d,0x00000006,0x000000eb,0x000000e2,0x0007000c,
- 0x00000006,0x000000ec,0x00000001,0x00000028,0x000000ea,0x000000eb,0x0003003e,0x000000e9,
- 0x000000ec,0x0004003d,0x00000006,0x000000ee,0x000000e5,0x0004003d,0x00000006,0x000000ef,
- 0x000000e9,0x0007000c,0x00000006,0x000000f0,0x00000001,0x00000028,0x000000ee,0x000000ef,
- 0x0003003e,0x000000ed,0x000000f0,0x0004003d,0x00000006,0x000000f3,0x000000ed,0x00050085,
- 0x00000006,0x000000f5,0x000000f3,0x000000f4,0x0007000c,0x00000006,0x000000f6,0x00000001,
- 0x00000028,0x000000f2,0x000000f5,0x0003003e,0x000000f1,0x000000f6,0x0004003d,0x00000006,
- 0x000000f7,0x000000ed,0x0004003d,0x00000006,0x000000f8,0x000000f1,0x000500bc,0x00000018,
- 0x000000f9,0x000000f7,0x000000f8,0x000300f7,0x000000fb,0x00000000,0x000400fa,0x000000f9,
- 0x000000fa,0x000000fb,0x000200f8,0x000000fa,0x0003003e,0x000000fd,0x000000fe,0x000100fd,
- 0x000200f8,0x000000fb,0x0003003e,0x00000100,0x00000037,0x0003003e,0x00000101,0x00000037,
- 0x0003003e,0x00000102,0x00000103,0x0004003d,0x00000006,0x00000104,0x000000e5,0x0004003d,
- 0x00000006,0x00000105,0x000000e9,0x000500ba,0x00000018,0x00000106,0x00000104,0x00000105,
- 0x000300f7,0x00000108,0x00000000,0x000400fa,0x00000106,0x00000107,0x0000010b,0x000200f8,
- 0x00000107,0x0003003e,0x00000109,0x0000010a,0x000200f9,0x00000108,0x000200f8,0x0000010b,
- 0x0004003d,0x00000006,0x0000010c,0x000000e9,0x0004003d,0x00000006,0x0000010d,0x000000e5,
- 0x000500ba,0x00000018,0x0000010e,0x0000010c,0x0000010d,0x000300f7,0x00000110,0x00000000,
- 0x000400fa,0x0000010e,0x0000010f,0x00000111,0x000200f8,0x0000010f,0x0003003e,0x00000109,
- 0x00000103,0x000200f9,0x00000110,0x000200f8,0x00000111,0x00050041,0x0000001a,0x00000113,
- 0x000000c3,0x0000003a,0x0004003d,0x00000006,0x00000114,0x00000113,0x00050050,0x00000007,
- 0x00000115,0x00000037,0x00000114,0x0004003d,0x00000007,0x00000117,0x000000c9,0x0003003e,
- 0x00000116,0x00000117,0x0004003d,0x00000007,0x00000119,0x000000c3,0x0003003e,0x00000118,
- 0x00000119,0x0003003e,0x0000011a,0x00000115,0x0003003e,0x0000011b,0x0000010a,0x0004003d,
- 0x00000006,0x0000011d,0x000000f1,0x0003003e,0x0000011c,0x0000011d,0x0003003e,0x0000011e,
- 0x00000103,0x000a0039,0x00000006,0x0000011f,0x00000022,0x00000116,0x00000118,0x0000011a,
- 0x0000011b,0x0000011c,0x0000011e,0x0003003e,0x00000112,0x0000011f,0x00050041,0x0000001a,
- 0x00000121,0x000000c3,0x0000003a,0x0004003d,0x00000006,0x00000122,0x00000121,0x00050050,
- 0x00000007,0x00000123,0x00000037,0x00000122,0x0004003d,0x00000007,0x00000125,0x000000c9,
- 0x0003003e,0x00000124,0x00000125,0x0004003d,0x00000007,0x00000127,0x000000c3,0x0003003e,
- 0x00000126,0x00000127,0x0003003e,0x00000128,0x00000123,0x0003003e,0x00000129,0x0000010a,
- 0x0004003d,0x00000006,0x0000012b,0x000000f1,0x0003003e,0x0000012a,0x0000012b,0x0003003e,
- 0x0000012c,0x0000010a,0x000a0039,0x00000006,0x0000012d,0x00000022,0x00000124,0x00000126,
- 0x00000128,0x00000129,0x0000012a,0x0000012c,0x0003003e,0x00000120,0x0000012d,0x00050041,
- 0x0000001a,0x0000012f,0x000000c3,0x00000053,0x0004003d,0x00000006,0x00000130,0x0000012f,
- 0x00050050,0x00000007,0x00000131,0x00000130,0x00000037,0x0004003d,0x00000007,0x00000133,
- 0x000000c9,0x0003003e,0x00000132,0x00000133,0x0004003d,0x00000007,0x00000135,0x000000c3,
- 0x0003003e,0x00000134,0x00000135,0x0003003e,0x00000136,0x00000131,0x0003003e,0x00000137,
- 0x00000103,0x0004003d,0x00000006,0x00000139,0x000000f1,0x0003003e,0x00000138,0x00000139,
- 0x0003003e,0x0000013a,0x00000103,0x000a0039,0x00000006,0x0000013b,0x00000022,0x00000132,
- 0x00000134,0x00000136,0x00000137,0x00000138,0x0000013a,0x0003003e,0x0000012e,0x0000013b,
- 0x00050041,0x0000001a,0x0000013d,0x000000c3,0x00000053,0x0004003d,0x00000006,0x0000013e,
- 0x0000013d,0x00050050,0x00000007,0x0000013f,0x0000013e,0x00000037,0x0004003d,0x00000007,
- 0x00000141,0x000000c9,0x0003003e,0x00000140,0x00000141,0x0004003d,0x00000007,0x00000143,
- 0x000000c3,0x0003003e,0x00000142,0x00000143,0x0003003e,0x00000144,0x0000013f,0x0003003e,
- 0x00000145,0x00000103,0x0004003d,0x00000006,0x00000147,0x000000f1,0x0003003e,0x00000146,
- 0x00000147,0x0003003e,0x00000148,0x0000010a,0x000a0039,0x00000006,0x00000149,0x00000022,
- 0x00000140,0x00000142,0x00000144,0x00000145,0x00000146,0x00000148,0x0003003e,0x0000013c,
- 0x00000149,0x0004003d,0x00000006,0x0000014a,0x00000112,0x0004003d,0x00000006,0x0000014b,
- 0x00000120,0x00050081,0x00000006,0x0000014c,0x0000014a,0x0000014b,0x0004003d,0x00000006,
- 0x0000014d,0x0000012e,0x0004003d,0x00000006,0x0000014e,0x0000013c,0x00050081,0x00000006,
- 0x0000014f,0x0000014d,0x0000014e,0x000500be,0x00000018,0x00000150,0x0000014c,0x0000014f,
- 0x0003003e,0x00000109,0x00000150,0x0004003d,0x00000018,0x00000151,0x00000109,0x0004003d,
- 0x00000006,0x00000152,0x00000112,0x0004003d,0x00000006,0x00000153,0x0000012e,0x000600a9,
- 0x00000006,0x00000154,0x00000151,0x00000152,0x00000153,0x0003003e,0x00000100,0x00000154,
- 0x0004003d,0x00000018,0x00000155,0x00000109,0x0004003d,0x00000006,0x00000156,0x00000120,
- 0x0004003d,0x00000006,0x00000157,0x0000013c,0x000600a9,0x00000006,0x00000158,0x00000155,
- 0x00000156,0x00000157,0x0003003e,0x00000101,0x00000158,0x0003003e,0x00000102,0x0000010a,
- 0x000200f9,0x00000110,0x000200f8,0x00000110,0x000200f9,0x00000108,0x000200f8,0x00000108,
- 0x0004003d,0x00000018,0x0000015a,0x00000109,0x000300f7,0x0000015d,0x00000000,0x000400fa,
- 0x0000015a,0x0000015c,0x00000161,0x000200f8,0x0000015c,0x00050041,0x0000001a,0x0000015e,
- 0x000000c3,0x0000003a,0x0004003d,0x00000006,0x0000015f,0x0000015e,0x00050050,0x00000007,
- 0x00000160,0x00000037,0x0000015f,0x0003003e,0x0000015b,0x00000160,0x000200f9,0x0000015d,
- 0x000200f8,0x00000161,0x00050041,0x0000001a,0x00000162,0x000000c3,0x00000053,0x0004003d,
- 0x00000006,0x00000163,0x00000162,0x00050050,0x00000007,0x00000164,0x00000163,0x00000037,
- 0x0003003e,0x0000015b,0x00000164,0x000200f9,0x0000015d,0x000200f8,0x0000015d,0x0004003d,
- 0x00000007,0x00000165,0x0000015b,0x0003003e,0x00000159,0x00000165,0x0004003d,0x00000018,
- 0x00000167,0x00000109,0x000300f7,0x0000016a,0x00000000,0x000400fa,0x00000167,0x00000169,
- 0x00000170,0x000200f8,0x00000169,0x0004003d,0x00000006,0x0000016b,0x000000d9,0x0004003d,
- 0x00000006,0x0000016c,0x000000dc,0x000500be,0x00000018,0x0000016d,0x0000016b,0x0000016c,
- 0x000600a9,0x00000006,0x0000016e,0x0000016d,0x0000007d,0x00000029,0x00050050,0x00000007,
- 0x0000016f,0x0000016e,0x00000037,0x0003003e,0x00000168,0x0000016f,0x000200f9,0x0000016a,
- 0x000200f8,0x00000170,0x0004003d,0x00000006,0x00000171,0x000000df,0x0004003d,0x00000006,
- 0x00000172,0x000000e2,0x000500be,0x00000018,0x00000173,0x00000171,0x00000172,0x000600a9,
- 0x00000006,0x00000174,0x00000173,0x0000007d,0x00000029,0x00050050,0x00000007,0x00000175,
- 0x00000037,0x00000174,0x0003003e,0x00000168,0x00000175,0x000200f9,0x0000016a,0x000200f8,
- 0x0000016a,0x0004003d,0x00000007,0x00000176,0x00000168,0x0003003e,0x00000166,0x00000176,
- 0x0004003d,0x00000018,0x00000177,0x00000102,0x000400a8,0x00000018,0x00000178,0x00000177,
- 0x000300f7,0x0000017a,0x00000000,0x000400fa,0x00000178,0x00000179,0x0000017a,0x000200f8,
- 0x00000179,0x0004003d,0x00000007,0x0000017c,0x000000c9,0x0003003e,0x0000017b,0x0000017c,
- 0x0004003d,0x00000007,0x0000017e,0x000000c3,0x0003003e,0x0000017d,0x0000017e,0x0004003d,
- 0x00000007,0x00000180,0x00000159,0x0003003e,0x0000017f,0x00000180,0x0004003d,0x00000018,
- 0x00000182,0x00000109,0x0003003e,0x00000181,0x00000182,0x0004003d,0x00000006,0x00000184,
- 0x000000f1,0x0003003e,0x00000183,0x00000184,0x0003003e,0x00000185,0x00000103,0x000a0039,
- 0x00000006,0x00000186,0x00000022,0x0000017b,0x0000017d,0x0000017f,0x00000181,0x00000183,
- 0x00000185,0x0003003e,0x00000100,0x00000186,0x0004003d,0x00000007,0x00000188,0x000000c9,
- 0x0003003e,0x00000187,0x00000188,0x0004003d,0x00000007,0x0000018a,0x000000c3,0x0003003e,
- 0x00000189,0x0000018a,0x0004003d,0x00000007,0x0000018c,0x00000159,0x0003003e,0x0000018b,
- 0x0000018c,0x0004003d,0x00000018,0x0000018e,0x00000109,0x0003003e,0x0000018d,0x0000018e,
- 0x0004003d,0x00000006,0x00000190,0x000000f1,0x0003003e,0x0000018f,0x00000190,0x0003003e,
- 0x00000191,0x0000010a,0x000a0039,0x00000006,0x00000192,0x00000022,0x00000187,0x00000189,
- 0x0000018b,0x0000018d,0x0000018f,0x00000191,0x0003003e,0x00000101,0x00000192,0x000200f9,
- 0x0000017a,0x000200f8,0x0000017a,0x0004003d,0x00000006,0x00000194,0x00000100,0x0004003d,
- 0x00000006,0x00000195,0x00000101,0x00050081,0x00000006,0x00000196,0x00000194,0x00000195,
- 0x0003003e,0x00000193,0x00000196,0x0004003d,0x00000006,0x00000198,0x000000f1,0x0004003d,
- 0x00000006,0x00000199,0x000000f1,0x00050085,0x00000006,0x0000019b,0x00000199,0x0000019a,
- 0x0004003d,0x00000006,0x0000019c,0x000000ed,0x0008000c,0x00000006,0x0000019d,0x00000001,
- 0x00000031,0x00000198,0x0000019b,0x0000019c,0x0003003e,0x00000197,0x0000019d,0x0004003d,
- 0x00000007,0x0000019f,0x000000c9,0x00050041,0x0000001a,0x000001a0,0x000000c3,0x00000053,
- 0x0004003d,0x00000006,0x000001a1,0x000001a0,0x0004007f,0x00000006,0x000001a2,0x000001a1,
- 0x00050041,0x0000001a,0x000001a3,0x000000c3,0x0000003a,0x0004003d,0x00000006,0x000001a4,
- 0x000001a3,0x0004007f,0x00000006,0x000001a5,0x000001a4,0x00050050,0x00000007,0x000001a6,
- 0x000001a2,0x000001a5,0x00050081,0x00000007,0x000001a7,0x0000019f,0x000001a6,0x0003003e,
- 0x000001a8,0x000001a7,0x0004003d,0x00000007,0x000001aa,0x000000c3,0x0003003e,0x000001a9,
- 0x000001aa,0x00060039,0x00000009,0x000001ab,0x0000000d,0x000001a8,0x000001a9,0x0003003e,
- 0x0000019e,0x000001ab,0x0004003d,0x00000007,0x000001ad,0x000000c9,0x00050041,0x0000001a,
- 0x000001ae,0x000000c3,0x00000053,0x0004003d,0x00000006,0x000001af,0x000001ae,0x00050041,
- 0x0000001a,0x000001b0,0x000000c3,0x0000003a,0x0004003d,0x00000006,0x000001b1,0x000001b0,
- 0x0004007f,0x00000006,0x000001b2,0x000001b1,0x00050050,0x00000007,0x000001b3,0x000001af,
- 0x000001b2,0x00050081,0x00000007,0x000001b4,0x000001ad,0x000001b3,0x0003003e,0x000001b5,
- 0x000001b4,0x0004003d,0x00000007,0x000001b7,0x000000c3,0x0003003e,0x000001b6,0x000001b7,
- 0x00060039,0x00000009,0x000001b8,0x0000000d,0x000001b5,0x000001b6,0x0003003e,0x000001ac,
- 0x000001b8,0x0004003d,0x00000007,0x000001ba,0x000000c9,0x00050041,0x0000001a,0x000001bb,
- 0x000000c3,0x00000053,0x0004003d,0x00000006,0x000001bc,0x000001bb,0x0004007f,0x00000006,
- 0x000001bd,0x000001bc,0x00050041,0x0000001a,0x000001be,0x000000c3,0x0000003a,0x0004003d,
- 0x00000006,0x000001bf,0x000001be,0x00050050,0x00000007,0x000001c0,0x000001bd,0x000001bf,
- 0x00050081,0x00000007,0x000001c1,0x000001ba,0x000001c0,0x0003003e,0x000001c2,0x000001c1,
- 0x0004003d,0x00000007,0x000001c4,0x000000c3,0x0003003e,0x000001c3,0x000001c4,0x00060039,
- 0x00000009,0x000001c5,0x0000000d,0x000001c2,0x000001c3,0x0003003e,0x000001b9,0x000001c5,
- 0x0004003d,0x00000007,0x000001c7,0x000000c9,0x00050041,0x0000001a,0x000001c8,0x000000c3,
- 0x00000053,0x0004003d,0x00000006,0x000001c9,0x000001c8,0x00050041,0x0000001a,0x000001ca,
- 0x000000c3,0x0000003a,0x0004003d,0x00000006,0x000001cb,0x000001ca,0x00050050,0x00000007,
- 0x000001cc,0x000001c9,0x000001cb,0x00050081,0x00000007,0x000001cd,0x000001c7,0x000001cc,
- 0x0003003e,0x000001ce,0x000001cd,0x0004003d,0x00000007,0x000001d0,0x000000c3,0x0003003e,
- 0x000001cf,0x000001d0,0x00060039,0x00000009,0x000001d1,0x0000000d,0x000001ce,0x000001cf,
- 0x0003003e,0x000001c6,0x000001d1,0x0004003d,0x00000006,0x000001d3,0x00000100,0x0004003d,
- 0x00000006,0x000001d4,0x00000101,0x00050083,0x00000006,0x000001d5,0x000001d3,0x000001d4,
- 0x0006000c,0x00000006,0x000001d6,0x00000001,0x00000004,0x000001d5,0x0004003d,0x00000006,
- 0x000001d7,0x00000193,0x0007000c,0x00000006,0x000001d8,0x00000001,0x00000028,0x000001d7,
- 0x00000029,0x00050088,0x00000006,0x000001d9,0x000001d6,0x000001d8,0x0008000c,0x00000006,
- 0x000001da,0x00000001,0x0000002b,0x000001d9,0x00000037,0x00000029,0x0003003e,0x000001d2,
- 0x000001da,0x0004003d,0x00000018,0x000001dc,0x00000109,0x000300f7,0x000001df,0x00000000,
- 0x000400fa,0x000001dc,0x000001de,0x000001e6,0x000200f8,0x000001de,0x00050041,0x0000001a,
- 0x000001e0,0x0000019e,0x00000045,0x0004003d,0x00000006,0x000001e1,0x000001e0,0x00050041,
- 0x0000001a,0x000001e2,0x000001ac,0x00000045,0x0004003d,0x00000006,0x000001e3,0x000001e2,
- 0x00050083,0x00000006,0x000001e4,0x000001e1,0x000001e3,0x0006000c,0x00000006,0x000001e5,
- 0x00000001,0x00000004,0x000001e4,0x0003003e,0x000001dd,0x000001e5,0x000200f9,0x000001df,
- 0x000200f8,0x000001e6,0x00050041,0x0000001a,0x000001e7,0x0000019e,0x0000003a,0x0004003d,
- 0x00000006,0x000001e8,0x000001e7,0x00050041,0x0000001a,0x000001e9,0x000001b9,0x0000003a,
- 0x0004003d,0x00000006,0x000001ea,0x000001e9,0x00050083,0x00000006,0x000001eb,0x000001e8,
- 0x000001ea,0x0006000c,0x00000006,0x000001ec,0x00000001,0x00000004,0x000001eb,0x0003003e,
- 0x000001dd,0x000001ec,0x000200f9,0x000001df,0x000200f8,0x000001df,0x0004003d,0x00000006,
- 0x000001ed,0x000001dd,0x0003003e,0x000001db,0x000001ed,0x0004003d,0x00000018,0x000001ef,
- 0x00000109,0x000300f7,0x000001f2,0x00000000,0x000400fa,0x000001ef,0x000001f1,0x000001f9,
- 0x000200f8,0x000001f1,0x00050041,0x0000001a,0x000001f3,0x000001b9,0x00000061,0x0004003d,
- 0x00000006,0x000001f4,0x000001f3,0x00050041,0x0000001a,0x000001f5,0x000001c6,0x00000061,
- 0x0004003d,0x00000006,0x000001f6,0x000001f5,0x00050083,0x00000006,0x000001f7,0x000001f4,
- 0x000001f6,0x0006000c,0x00000006,0x000001f8,0x00000001,0x00000004,0x000001f7,0x0003003e,
- 0x000001f0,0x000001f8,0x000200f9,0x000001f2,0x000200f8,0x000001f9,0x00050041,0x0000001a,
- 0x000001fa,0x000001ac,0x00000053,0x0004003d,0x00000006,0x000001fb,0x000001fa,0x00050041,
- 0x0000001a,0x000001fc,0x000001c6,0x00000053,0x0004003d,0x00000006,0x000001fd,0x000001fc,
- 0x00050083,0x00000006,0x000001fe,0x000001fb,0x000001fd,0x0006000c,0x00000006,0x000001ff,
- 0x00000001,0x00000004,0x000001fe,0x0003003e,0x000001f0,0x000001ff,0x000200f9,0x000001f2,
- 0x000200f8,0x000001f2,0x0004003d,0x00000006,0x00000200,0x000001f0,0x0003003e,0x000001ee,
- 0x00000200,0x0004003d,0x00000006,0x00000202,0x000001db,0x0004003d,0x00000006,0x00000203,
- 0x000001ee,0x00050083,0x00000006,0x00000204,0x00000202,0x00000203,0x0006000c,0x00000006,
- 0x00000205,0x00000001,0x00000004,0x00000204,0x0003003e,0x00000201,0x00000205,0x0004003d,
- 0x00000006,0x00000207,0x000000f1,0x0004003d,0x00000006,0x00000208,0x000000f1,0x00050085,
- 0x00000006,0x00000209,0x00000208,0x0000019a,0x0004003d,0x00000006,0x0000020a,0x00000201,
- 0x0008000c,0x00000006,0x0000020b,0x00000001,0x00000031,0x00000207,0x00000209,0x0000020a,
- 0x0003003e,0x00000206,0x0000020b,0x0004003d,0x00000009,0x0000020d,0x0000019e,0x0004003d,
- 0x00000009,0x0000020e,0x000001ac,0x0007000c,0x00000009,0x0000020f,0x00000001,0x00000025,
- 0x0000020d,0x0000020e,0x0004003d,0x00000009,0x00000210,0x000001b9,0x0004003d,0x00000009,
- 0x00000211,0x000001c6,0x0007000c,0x00000009,0x00000212,0x00000001,0x00000025,0x00000210,
- 0x00000211,0x0007000c,0x00000009,0x00000213,0x00000001,0x00000025,0x0000020f,0x00000212,
- 0x0003003e,0x0000020c,0x00000213,0x0004003d,0x00000009,0x00000215,0x0000019e,0x0004003d,
- 0x00000009,0x00000216,0x000001ac,0x0007000c,0x00000009,0x00000217,0x00000001,0x00000028,
- 0x00000215,0x00000216,0x0004003d,0x00000009,0x00000218,0x000001b9,0x0004003d,0x00000009,
- 0x00000219,0x000001c6,0x0007000c,0x00000009,0x0000021a,0x00000001,0x00000028,0x00000218,
- 0x00000219,0x0007000c,0x00000009,0x0000021b,0x00000001,0x00000028,0x00000217,0x0000021a,
- 0x0003003e,0x00000214,0x0000021b,0x00050041,0x0000001a,0x0000021d,0x00000214,0x00000053,
- 0x0004003d,0x00000006,0x0000021e,0x0000021d,0x00050041,0x0000001a,0x0000021f,0x0000020c,
- 0x00000053,0x0004003d,0x00000006,0x00000220,0x0000021f,0x00050083,0x00000006,0x00000221,
- 0x0000021e,0x00000220,0x00050041,0x0000001a,0x00000222,0x00000214,0x0000003a,0x0004003d,
- 0x00000006,0x00000223,0x00000222,0x00050041,0x0000001a,0x00000224,0x0000020c,0x0000003a,
- 0x0004003d,0x00000006,0x00000225,0x00000224,0x00050083,0x00000006,0x00000226,0x00000223,
- 0x00000225,0x0007000c,0x00000006,0x00000227,0x00000001,0x00000028,0x00000221,0x00000226,
- 0x00050041,0x0000001a,0x00000228,0x00000214,0x00000061,0x0004003d,0x00000006,0x00000229,
- 0x00000228,0x00050041,0x0000001a,0x0000022a,0x0000020c,0x00000061,0x0004003d,0x00000006,
- 0x0000022b,0x0000022a,0x00050083,0x00000006,0x0000022c,0x00000229,0x0000022b,0x00050041,
- 0x0000001a,0x0000022d,0x00000214,0x00000045,0x0004003d,0x00000006,0x0000022e,0x0000022d,
- 0x00050041,0x0000001a,0x0000022f,0x0000020c,0x00000045,0x0004003d,0x00000006,0x00000230,
- 0x0000022f,0x00050083,0x00000006,0x00000231,0x0000022e,0x00000230,0x0007000c,0x00000006,
- 0x00000232,0x00000001,0x00000028,0x0000022c,0x00000231,0x0007000c,0x00000006,0x00000233,
- 0x00000001,0x00000028,0x00000227,0x00000232,0x0003003e,0x0000021c,0x00000233,0x0004003d,
- 0x00000006,0x00000235,0x0000021c,0x000500ba,0x00000018,0x00000237,0x00000235,0x00000236,
- 0x000300f7,0x0000023a,0x00000000,0x000400fa,0x00000237,0x00000239,0x00000242,0x000200f8,
- 0x00000239,0x0004003d,0x00000006,0x0000023b,0x000000f1,0x0004003d,0x00000006,0x0000023c,
- 0x000000f1,0x00050085,0x00000006,0x0000023d,0x0000023c,0x0000019a,0x0004003d,0x00000006,
- 0x0000023e,0x000001db,0x0004003d,0x00000006,0x0000023f,0x000001ee,0x0007000c,0x00000006,
- 0x00000240,0x00000001,0x00000025,0x0000023e,0x0000023f,0x0008000c,0x00000006,0x00000241,
- 0x00000001,0x00000031,0x0000023b,0x0000023d,0x00000240,0x0003003e,0x00000238,0x00000241,
- 0x000200f9,0x0000023a,0x000200f8,0x00000242,0x0003003e,0x00000238,0x00000037,0x000200f9,
- 0x0000023a,0x000200f8,0x0000023a,0x0004003d,0x00000006,0x00000243,0x00000238,0x0003003e,
- 0x00000234,0x00000243,0x0004003d,0x00000006,0x00000245,0x000001d2,0x000500ba,0x00000018,
- 0x00000246,0x00000245,0x00000236,0x000300f7,0x00000249,0x00000000,0x000400fa,0x00000246,
- 0x00000248,0x0000024d,0x000200f8,0x00000248,0x0004003d,0x00000006,0x0000024a,0x000001d2,
- 0x0004003d,0x00000006,0x0000024b,0x00000234,0x0007000c,0x00000006,0x0000024c,0x00000001,
- 0x00000028,0x0000024a,0x0000024b,0x0003003e,0x00000247,0x0000024c,0x000200f9,0x00000249,
- 0x000200f8,0x0000024d,0x0004003d,0x00000006,0x0000024e,0x000001d2,0x0003003e,0x00000247,
- 0x0000024e,0x000200f9,0x00000249,0x000200f8,0x00000249,0x0004003d,0x00000006,0x0000024f,
- 0x00000247,0x0003003e,0x00000244,0x0000024f,0x0004003d,0x00000006,0x00000251,0x00000244,
- 0x0004003d,0x00000006,0x00000252,0x00000193,0x00050085,0x00000006,0x00000254,0x00000252,
- 0x00000253,0x00050081,0x00000006,0x00000255,0x00000029,0x00000254,0x00050088,0x00000006,
- 0x00000256,0x00000251,0x00000255,0x0003003e,0x00000250,0x00000256,0x0004003d,0x00000006,
- 0x00000259,0x00000206,0x00050085,0x00000006,0x0000025a,0x00000258,0x00000259,0x0004003d,
- 0x00000006,0x0000025b,0x00000193,0x00050088,0x00000006,0x0000025d,0x0000025b,0x0000025c,
- 0x0008000c,0x00000006,0x0000025e,0x00000001,0x0000002b,0x0000025d,0x00000037,0x00000029,
- 0x00050085,0x00000006,0x0000025f,0x0000025a,0x0000025e,0x0003003e,0x00000257,0x0000025f,
- 0x00050041,0x0000001a,0x00000261,0x0000019e,0x00000053,0x0004003d,0x00000006,0x00000262,
- 0x00000261,0x00050041,0x0000001a,0x00000263,0x000001c6,0x00000053,0x0004003d,0x00000006,
- 0x00000264,0x00000263,0x00050083,0x00000006,0x00000265,0x00000262,0x00000264,0x0006000c,
- 0x00000006,0x00000266,0x00000001,0x00000004,0x00000265,0x00050041,0x0000001a,0x00000267,
- 0x0000019e,0x0000003a,0x0004003d,0x00000006,0x00000268,0x00000267,0x00050041,0x0000001a,
- 0x00000269,0x000001c6,0x0000003a,0x0004003d,0x00000006,0x0000026a,0x00000269,0x00050083,
- 0x00000006,0x0000026b,0x00000268,0x0000026a,0x0006000c,0x00000006,0x0000026c,0x00000001,
- 0x00000004,0x0000026b,0x0007000c,0x00000006,0x0000026d,0x00000001,0x00000028,0x00000266,
- 0x0000026c,0x00050041,0x0000001a,0x0000026e,0x0000019e,0x00000061,0x0004003d,0x00000006,
- 0x0000026f,0x0000026e,0x00050041,0x0000001a,0x00000270,0x000001c6,0x00000061,0x0004003d,
- 0x00000006,0x00000271,0x00000270,0x00050083,0x00000006,0x00000272,0x0000026f,0x00000271,
- 0x0006000c,0x00000006,0x00000273,0x00000001,0x00000004,0x00000272,0x00050041,0x0000001a,
- 0x00000274,0x0000019e,0x00000045,0x0004003d,0x00000006,0x00000275,0x00000274,0x00050041,
- 0x0000001a,0x00000276,0x000001c6,0x00000045,0x0004003d,0x00000006,0x00000277,0x00000276,
- 0x00050083,0x00000006,0x00000278,0x00000275,0x00000277,0x0006000c,0x00000006,0x00000279,
- 0x00000001,0x00000004,0x00000278,0x0007000c,0x00000006,0x0000027a,0x00000001,0x00000028,
- 0x00000273,0x00000279,0x0007000c,0x00000006,0x0000027b,0x00000001,0x00000028,0x0000026d,
- 0x0000027a,0x00050041,0x0000001a,0x0000027c,0x000001ac,0x00000053,0x0004003d,0x00000006,
- 0x0000027d,0x0000027c,0x00050041,0x0000001a,0x0000027e,0x000001b9,0x00000053,0x0004003d,
- 0x00000006,0x0000027f,0x0000027e,0x00050083,0x00000006,0x00000280,0x0000027d,0x0000027f,
- 0x0006000c,0x00000006,0x00000281,0x00000001,0x00000004,0x00000280,0x00050041,0x0000001a,
- 0x00000282,0x000001ac,0x0000003a,0x0004003d,0x00000006,0x00000283,0x00000282,0x00050041,
- 0x0000001a,0x00000284,0x000001b9,0x0000003a,0x0004003d,0x00000006,0x00000285,0x00000284,
- 0x00050083,0x00000006,0x00000286,0x00000283,0x00000285,0x0006000c,0x00000006,0x00000287,
- 0x00000001,0x00000004,0x00000286,0x0007000c,0x00000006,0x00000288,0x00000001,0x00000028,
- 0x00000281,0x00000287,0x00050041,0x0000001a,0x00000289,0x000001ac,0x00000061,0x0004003d,
- 0x00000006,0x0000028a,0x00000289,0x00050041,0x0000001a,0x0000028b,0x000001b9,0x00000061,
- 0x0004003d,0x00000006,0x0000028c,0x0000028b,0x00050083,0x00000006,0x0000028d,0x0000028a,
- 0x0000028c,0x0006000c,0x00000006,0x0000028e,0x00000001,0x00000004,0x0000028d,0x00050041,
- 0x0000001a,0x0000028f,0x000001ac,0x00000045,0x0004003d,0x00000006,0x00000290,0x0000028f,
- 0x00050041,0x0000001a,0x00000291,0x000001b9,0x00000045,0x0004003d,0x00000006,0x00000292,
- 0x00000291,0x00050083,0x00000006,0x00000293,0x00000290,0x00000292,0x0006000c,0x00000006,
- 0x00000294,0x00000001,0x00000004,0x00000293,0x0007000c,0x00000006,0x00000295,0x00000001,
- 0x00000028,0x0000028e,0x00000294,0x0007000c,0x00000006,0x00000296,0x00000001,0x00000028,
- 0x00000288,0x00000295,0x0007000c,0x00000006,0x00000297,0x00000001,0x00000028,0x0000027b,
- 0x00000296,0x0003003e,0x00000260,0x00000297,0x0004003d,0x00000006,0x0000029a,0x000000f1,
- 0x0004003d,0x00000006,0x0000029b,0x000000f1,0x00050085,0x00000006,0x0000029d,0x0000029b,
- 0x0000029c,0x0004003d,0x00000006,0x0000029e,0x00000260,0x0008000c,0x00000006,0x0000029f,
- 0x00000001,0x00000031,0x0000029a,0x0000029d,0x0000029e,0x00050085,0x00000006,0x000002a0,
- 0x00000299,0x0000029f,0x00050083,0x00000006,0x000002a1,0x00000029,0x000002a0,0x0003003e,
- 0x00000298,0x000002a1,0x0004003d,0x00000006,0x000002a3,0x00000257,0x0004003d,0x00000006,
- 0x000002a4,0x00000250,0x00050085,0x00000006,0x000002a5,0x000002a3,0x000002a4,0x0004003d,
- 0x00000006,0x000002a6,0x00000197,0x00050085,0x00000006,0x000002a7,0x000002a5,0x000002a6,
- 0x0004003d,0x00000006,0x000002a8,0x00000298,0x00050085,0x00000006,0x000002a9,0x000002a7,
- 0x000002a8,0x0003003e,0x000002a2,0x000002a9,0x0004003d,0x00000006,0x000002ab,0x000000e5,
- 0x0004003d,0x00000006,0x000002ac,0x000000e9,0x0007000c,0x00000006,0x000002ad,0x00000001,
- 0x00000025,0x000002ab,0x000002ac,0x0003003e,0x000002aa,0x000002ad,0x0004003d,0x00000006,
- 0x000002af,0x000000f1,0x0004003d,0x00000006,0x000002b0,0x000000f1,0x00050085,0x00000006,
- 0x000002b1,0x000002b0,0x0000019a,0x0004003d,0x00000006,0x000002b2,0x000002aa,0x0008000c,
- 0x00000006,0x000002b3,0x00000001,0x00000031,0x000002af,0x000002b1,0x000002b2,0x0003003e,
- 0x000002ae,0x000002b3,0x0004003d,0x00000006,0x000002b5,0x00000193,0x0008000c,0x00000006,
- 0x000002b6,0x00000001,0x00000031,0x00000029,0x0000029c,0x000002b5,0x0003003e,0x000002b4,
- 0x000002b6,0x0004003d,0x00000006,0x000002b8,0x00000193,0x000500ba,0x00000018,0x000002b9,
- 0x000002b8,0x00000037,0x0004003d,0x00000006,0x000002ba,0x00000193,0x000500bc,0x00000018,
- 0x000002bb,0x000002ba,0x00000029,0x000500a7,0x00000018,0x000002bc,0x000002b9,0x000002bb,
- 0x0004003d,0x00000006,0x000002bd,0x00000201,0x0004003d,0x00000006,0x000002be,0x000000f1,
- 0x000500bc,0x00000018,0x000002bf,0x000002bd,0x000002be,0x000500a7,0x00000018,0x000002c0,
- 0x000002bc,0x000002bf,0x0004003d,0x00000006,0x000002c1,0x000002aa,0x0004003d,0x00000006,
- 0x000002c2,0x000000f1,0x000500ba,0x00000018,0x000002c3,0x000002c1,0x000002c2,0x000500a7,
- 0x00000018,0x000002c4,0x000002c0,0x000002c3,0x000600a9,0x00000006,0x000002c5,0x000002c4,
- 0x00000029,0x00000037,0x0003003e,0x000002b7,0x000002c5,0x0004003d,0x00000006,0x000002c8,
- 0x000002ae,0x00050085,0x00000006,0x000002c9,0x000002c7,0x000002c8,0x0004003d,0x00000006,
- 0x000002ca,0x00000197,0x00050085,0x00000006,0x000002cb,0x000002c9,0x000002ca,0x0004003d,
- 0x00000006,0x000002cc,0x00000298,0x00050085,0x00000006,0x000002cd,0x000002cb,0x000002cc,
- 0x0004003d,0x00000006,0x000002ce,0x000002b4,0x0004003d,0x00000006,0x000002cf,0x00000206,
- 0x0004003d,0x00000006,0x000002d0,0x00000234,0x0007000c,0x00000006,0x000002d1,0x00000001,
- 0x00000028,0x000002cf,0x000002d0,0x00050085,0x00000006,0x000002d2,0x000002ce,0x000002d1,
- 0x0004003d,0x00000006,0x000002d3,0x000002b7,0x0007000c,0x00000006,0x000002d4,0x00000001,
- 0x00000028,0x000002d2,0x000002d3,0x00050085,0x00000006,0x000002d5,0x000002cd,0x000002d4,
- 0x0003003e,0x000002c6,0x000002d5,0x0004003d,0x00000006,0x000002d7,0x000002a2,0x0004003d,
- 0x00000006,0x000002d8,0x000002c6,0x0007000c,0x00000006,0x000002d9,0x00000001,0x00000028,
- 0x000002d7,0x000002d8,0x0008000c,0x00000006,0x000002db,0x00000001,0x0000002b,0x000002d9,
- 0x00000037,0x000002da,0x0003003e,0x000002d6,0x000002db,0x0004003d,0x00000006,0x000002dc,
- 0x000002d6,0x00050041,0x0000001a,0x000002dd,0x00000166,0x00000053,0x0004003d,0x00000006,
- 0x000002de,0x000002dd,0x00050085,0x00000006,0x000002df,0x000002de,0x00000027,0x00050081,
- 0x00000006,0x000002e0,0x000002df,0x00000027,0x00050041,0x0000001a,0x000002e1,0x00000166,
- 0x0000003a,0x0004003d,0x00000006,0x000002e2,0x000002e1,0x00050085,0x00000006,0x000002e3,
- 0x000002e2,0x00000027,0x00050081,0x00000006,0x000002e4,0x000002e3,0x00000027,0x00070050,
- 0x00000009,0x000002e5,0x000002dc,0x000002e0,0x000002e4,0x00000029,0x0003003e,0x000000fd,
- 0x000002e5,0x000100fd,0x00010038,0x00050036,0x00000009,0x0000000d,0x00000000,0x0000000a,
- 0x00030037,0x00000008,0x0000000b,0x00030037,0x00000008,0x0000000c,0x000200f8,0x0000000e,
- 0x0004003b,0x00000008,0x00000024,0x00000007,0x0004003b,0x0000002f,0x00000030,0x00000007,
- 0x0004003b,0x0000001a,0x00000041,0x00000007,0x0004003d,0x00000007,0x00000025,0x0000000b,
- 0x0004003d,0x00000007,0x00000026,0x0000000c,0x0005008e,0x00000007,0x00000028,0x00000026,
- 0x00000027,0x0004003d,0x00000007,0x0000002b,0x0000000c,0x0005008e,0x00000007,0x0000002c,
- 0x0000002b,0x00000027,0x00050083,0x00000007,0x0000002d,0x0000002a,0x0000002c,0x0008000c,
- 0x00000007,0x0000002e,0x00000001,0x0000002b,0x00000025,0x00000028,0x0000002d,0x0003003e,
- 0x00000024,0x0000002e,0x0004003d,0x00000032,0x00000035,0x00000034,0x0004003d,0x00000007,
- 0x00000036,0x00000024,0x00070058,0x00000009,0x00000038,0x00000035,0x00000036,0x00000002,
- 0x00000037,0x0003003e,0x00000030,0x00000038,0x00050041,0x0000001a,0x0000003b,0x00000024,
- 0x0000003a,0x0004003d,0x00000006,0x0000003c,0x0000003b,0x00050041,0x0000001a,0x0000003d,
- 0x0000000c,0x0000003a,0x0004003d,0x00000006,0x0000003e,0x0000003d,0x00050083,0x00000006,
- 0x0000003f,0x00000029,0x0000003e,0x000500be,0x00000018,0x00000040,0x0000003c,0x0000003f,
- 0x000300f7,0x00000043,0x00000000,0x000400fa,0x00000040,0x00000042,0x00000044,0x000200f8,
- 0x00000042,0x0003003e,0x00000041,0x00000037,0x000200f9,0x00000043,0x000200f8,0x00000044,
- 0x00050041,0x0000001a,0x00000046,0x00000030,0x00000045,0x0004003d,0x00000006,0x00000047,
- 0x00000046,0x0003003e,0x00000041,0x00000047,0x000200f9,0x00000043,0x000200f8,0x00000043,
- 0x0004003d,0x00000006,0x00000048,0x00000041,0x00050041,0x0000001a,0x00000049,0x00000030,
- 0x00000045,0x0003003e,0x00000049,0x00000048,0x0004003d,0x00000009,0x0000004a,0x00000030,
- 0x000200fe,0x0000004a,0x00010038,0x00050036,0x00000006,0x00000012,0x00000000,0x0000000f,
- 0x00030037,0x00000008,0x00000010,0x00030037,0x00000008,0x00000011,0x000200f8,0x00000013,
- 0x0004003b,0x0000002f,0x0000004d,0x00000007,0x0004003b,0x00000008,0x0000004e,0x00000007,
- 0x0004003b,0x00000008,0x00000050,0x00000007,0x0004003d,0x00000007,0x0000004f,0x00000010,
- 0x0003003e,0x0000004e,0x0000004f,0x0004003d,0x00000007,0x00000051,0x00000011,0x0003003e,
- 0x00000050,0x00000051,0x00060039,0x00000009,0x00000052,0x0000000d,0x0000004e,0x00000050,
- 0x0003003e,0x0000004d,0x00000052,0x00050041,0x0000001a,0x00000054,0x0000004d,0x00000053,
- 0x0004003d,0x00000006,0x00000055,0x00000054,0x00050041,0x0000001a,0x00000056,0x0000004d,
- 0x0000003a,0x0004003d,0x00000006,0x00000057,0x00000056,0x0007000c,0x00000006,0x00000058,
- 0x00000001,0x00000028,0x00000055,0x00000057,0x000200fe,0x00000058,0x00010038,0x00050036,
- 0x00000006,0x00000016,0x00000000,0x0000000f,0x00030037,0x00000008,0x00000014,0x00030037,
- 0x00000008,0x00000015,0x000200f8,0x00000017,0x0004003b,0x0000002f,0x0000005b,0x00000007,
- 0x0004003b,0x00000008,0x0000005c,0x00000007,0x0004003b,0x00000008,0x0000005e,0x00000007,
- 0x0004003d,0x00000007,0x0000005d,0x00000014,0x0003003e,0x0000005c,0x0000005d,0x0004003d,
- 0x00000007,0x0000005f,0x00000015,0x0003003e,0x0000005e,0x0000005f,0x00060039,0x00000009,
- 0x00000060,0x0000000d,0x0000005c,0x0000005e,0x0003003e,0x0000005b,0x00000060,0x00050041,
- 0x0000001a,0x00000062,0x0000005b,0x00000061,0x0004003d,0x00000006,0x00000063,0x00000062,
- 0x00050041,0x0000001a,0x00000064,0x0000005b,0x00000045,0x0004003d,0x00000006,0x00000065,
- 0x00000064,0x0007000c,0x00000006,0x00000066,0x00000001,0x00000028,0x00000063,0x00000065,
- 0x000200fe,0x00000066,0x00010038,0x00050036,0x00000006,0x00000022,0x00000000,0x0000001b,
- 0x00030037,0x00000008,0x0000001c,0x00030037,0x00000008,0x0000001d,0x00030037,0x00000008,
- 0x0000001e,0x00030037,0x00000019,0x0000001f,0x00030037,0x0000001a,0x00000020,0x00030037,
- 0x00000019,0x00000021,0x000200f8,0x00000023,0x0004003b,0x0000001a,0x00000069,0x00000007,
- 0x0004003b,0x0000006b,0x0000006c,0x00000007,0x0004003b,0x00000008,0x00000076,0x00000007,
- 0x0004003b,0x00000082,0x00000083,0x00000007,0x0004003b,0x00000082,0x0000008e,0x00000007,
- 0x0004003b,0x0000001a,0x000000a3,0x00000007,0x0004003b,0x0000001a,0x000000a5,0x00000007,
- 0x0004003b,0x00000008,0x000000a8,0x00000007,0x0004003b,0x00000008,0x000000aa,0x00000007,
- 0x0004003b,0x00000008,0x000000ae,0x00000007,0x0004003b,0x00000008,0x000000b0,0x00000007,
- 0x0003003e,0x00000069,0x00000037,0x0003003e,0x0000006c,0x0000006d,0x000200f9,0x0000006e,
- 0x000200f8,0x0000006e,0x000400f6,0x00000070,0x00000071,0x00000000,0x000200f9,0x00000072,
- 0x000200f8,0x00000072,0x0004003d,0x0000006a,0x00000073,0x0000006c,0x000500b3,0x00000018,
- 0x00000075,0x00000073,0x00000074,0x000400fa,0x00000075,0x0000006f,0x00000070,0x000200f8,
- 0x0000006f,0x0004003d,0x00000007,0x00000077,0x0000001c,0x0004003d,0x00000007,0x00000078,
- 0x0000001e,0x0004003d,0x0000006a,0x00000079,0x0000006c,0x0004006f,0x00000006,0x0000007a,
- 0x00000079,0x0005008e,0x00000007,0x0000007b,0x00000078,0x0000007a,0x0004003d,0x00000018,
- 0x0000007c,0x00000021,0x000600a9,0x00000006,0x0000007e,0x0000007c,0x00000029,0x0000007d,
- 0x0005008e,0x00000007,0x0000007f,0x0000007b,0x0000007e,0x00050081,0x00000007,0x00000080,
- 0x00000077,0x0000007f,0x0003003e,0x00000076,0x00000080,0x0004003d,0x00000007,0x00000084,
- 0x00000076,0x00050041,0x00000088,0x00000089,0x00000087,0x0000006d,0x0004003d,0x00000007,
- 0x0000008a,0x00000089,0x00050085,0x00000007,0x0000008b,0x00000084,0x0000008a,0x0006000c,
- 0x00000007,0x0000008c,0x00000001,0x00000008,0x0000008b,0x0004006e,0x00000081,0x0000008d,
- 0x0000008c,0x0003003e,0x00000083,0x0000008d,0x00050041,0x00000088,0x0000008f,0x00000087,
- 0x0000006d,0x0004003d,0x00000007,0x00000090,0x0000008f,0x0004006e,0x00000081,0x00000091,
- 0x00000090,0x0003003e,0x0000008e,0x00000091,0x0004003d,0x00000081,0x00000092,0x00000083,
- 0x000500b1,0x00000095,0x00000096,0x00000092,0x00000094,0x0004009a,0x00000018,0x00000097,
- 0x00000096,0x000400a8,0x00000018,0x00000098,0x00000097,0x000300f7,0x0000009a,0x00000000,
- 0x000400fa,0x00000098,0x00000099,0x0000009a,0x000200f8,0x00000099,0x0004003d,0x00000081,
- 0x0000009b,0x00000083,0x0004003d,0x00000081,0x0000009c,0x0000008e,0x000500af,0x00000095,
- 0x0000009d,0x0000009b,0x0000009c,0x0004009a,0x00000018,0x0000009e,0x0000009d,0x000200f9,
- 0x0000009a,0x000200f8,0x0000009a,0x000700f5,0x00000018,0x0000009f,0x00000097,0x0000006f,
- 0x0000009e,0x00000099,0x000300f7,0x000000a1,0x00000000,0x000400fa,0x0000009f,0x000000a0,
- 0x000000a1,0x000200f8,0x000000a0,0x000200f9,0x00000070,0x000200f8,0x000000a1,0x0004003d,
- 0x00000018,0x000000a4,0x0000001f,0x000300f7,0x000000a7,0x00000000,0x000400fa,0x000000a4,
- 0x000000a6,0x000000ad,0x000200f8,0x000000a6,0x0004003d,0x00000007,0x000000a9,0x00000076,
- 0x0003003e,0x000000a8,0x000000a9,0x0004003d,0x00000007,0x000000ab,0x0000001d,0x0003003e,
- 0x000000aa,0x000000ab,0x00060039,0x00000006,0x000000ac,0x00000012,0x000000a8,0x000000aa,
- 0x0003003e,0x000000a5,0x000000ac,0x000200f9,0x000000a7,0x000200f8,0x000000ad,0x0004003d,
- 0x00000007,0x000000af,0x00000076,0x0003003e,0x000000ae,0x000000af,0x0004003d,0x00000007,
- 0x000000b1,0x0000001d,0x0003003e,0x000000b0,0x000000b1,0x00060039,0x00000006,0x000000b2,
- 0x00000016,0x000000ae,0x000000b0,0x0003003e,0x000000a5,0x000000b2,0x000200f9,0x000000a7,
- 0x000200f8,0x000000a7,0x0004003d,0x00000006,0x000000b3,0x000000a5,0x0003003e,0x000000a3,
- 0x000000b3,0x0004003d,0x00000006,0x000000b4,0x000000a3,0x0004003d,0x00000006,0x000000b5,
- 0x00000020,0x00050085,0x00000006,0x000000b7,0x000000b5,0x000000b6,0x000500bc,0x00000018,
- 0x000000b8,0x000000b4,0x000000b7,0x000300f7,0x000000ba,0x00000000,0x000400fa,0x000000b8,
- 0x000000b9,0x000000ba,0x000200f8,0x000000b9,0x000200f9,0x00000070,0x000200f8,0x000000ba,
- 0x0004003d,0x0000006a,0x000000bc,0x0000006c,0x0004006f,0x00000006,0x000000bd,0x000000bc,
- 0x0003003e,0x00000069,0x000000bd,0x000200f9,0x00000071,0x000200f8,0x00000071,0x0004003d,
- 0x0000006a,0x000000be,0x0000006c,0x00050080,0x0000006a,0x000000bf,0x000000be,0x0000006d,
- 0x0003003e,0x0000006c,0x000000bf,0x000200f9,0x0000006e,0x000200f8,0x00000070,0x0004003d,
- 0x00000006,0x000000c0,0x00000069,0x000200fe,0x000000c0,0x00010038,
+ 0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x000004e7,0x000004f2,0x00030010,
+ 0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x000a0004,0x475f4c47,0x4c474f4f,
+ 0x70635f45,0x74735f70,0x5f656c79,0x656e696c,0x7269645f,0x69746365,0x00006576,0x00080004,
+ 0x475f4c47,0x4c474f4f,0x6e695f45,0x64756c63,0x69645f65,0x74636572,0x00657669,0x00040005,
+ 0x00000004,0x6e69616d,0x00000000,0x00080005,0x00000010,0x41414d53,0x63766f4d,0x32627628,
+ 0x3266763b,0x3266763b,0x0000003b,0x00040005,0x0000000d,0x646e6f63,0x00000000,0x00050005,
+ 0x0000000e,0x69726176,0x656c6261,0x00000000,0x00040005,0x0000000f,0x756c6176,0x00000065,
+ 0x000e0005,0x0000001b,0x41414d53,0x6e656c42,0x676e6964,0x67696557,0x61437468,0x6c75636c,
+ 0x6f697461,0x2853566e,0x3b326676,0x3b326676,0x5b346676,0x003b5d33,0x00050005,0x00000018,
+ 0x63786574,0x64726f6f,0x00000000,0x00050005,0x00000019,0x63786970,0x64726f6f,0x00000000,
+ 0x00040005,0x0000001a,0x7366666f,0x00007465,0x000b0005,0x0000001f,0x41414d53,0x6f636544,
+ 0x69446564,0x69426761,0x656e696c,0x63417261,0x73736563,0x32667628,0x0000003b,0x00030005,
+ 0x0000001e,0x00000065,0x000b0005,0x00000024,0x41414d53,0x6f636544,0x69446564,0x69426761,
+ 0x656e696c,0x63417261,0x73736563,0x34667628,0x0000003b,0x00030005,0x00000023,0x00000065,
+ 0x000b0005,0x0000002e,0x41414d53,0x72616553,0x69446863,0x28316761,0x3b313273,0x3b326676,
+ 0x3b326676,0x3b326676,0x00000000,0x00050005,0x0000002a,0x65676465,0x78655473,0x00000000,
+ 0x00050005,0x0000002b,0x63786574,0x64726f6f,0x00000000,0x00030005,0x0000002c,0x00726964,
+ 0x00030005,0x0000002d,0x00000065,0x000b0005,0x00000034,0x41414d53,0x72616553,0x69446863,
+ 0x28326761,0x3b313273,0x3b326676,0x3b326676,0x3b326676,0x00000000,0x00050005,0x00000030,
+ 0x65676465,0x78655473,0x00000000,0x00050005,0x00000031,0x63786574,0x64726f6f,0x00000000,
+ 0x00030005,0x00000032,0x00726964,0x00030005,0x00000033,0x00000065,0x000a0005,0x0000003c,
+ 0x41414d53,0x61657241,0x67616944,0x31327328,0x3266763b,0x3266763b,0x3b31663b,0x00000000,
+ 0x00040005,0x00000038,0x61657261,0x00786554,0x00040005,0x00000039,0x74736964,0x00000000,
+ 0x00030005,0x0000003a,0x00000065,0x00040005,0x0000003b,0x7366666f,0x00007465,0x000e0005,
+ 0x00000044,0x41414d53,0x636c6143,0x74616c75,0x61694465,0x69655767,0x73746867,0x31327328,
+ 0x3132733b,0x3266763b,0x3266763b,0x3466763b,0x0000003b,0x00050005,0x0000003f,0x65676465,
+ 0x78655473,0x00000000,0x00040005,0x00000040,0x61657261,0x00786554,0x00050005,0x00000041,
+ 0x63786574,0x64726f6f,0x00000000,0x00030005,0x00000042,0x00000065,0x00070005,0x00000043,
+ 0x73627573,0x6c706d61,0x646e4965,0x73656369,0x00000000,0x000a0005,0x0000004a,0x41414d53,
+ 0x72616553,0x654c6863,0x6874676e,0x31327328,0x3266763b,0x3b31663b,0x00000000,0x00050005,
+ 0x00000047,0x72616573,0x65546863,0x00000078,0x00030005,0x00000048,0x00000065,0x00040005,
+ 0x00000049,0x7366666f,0x00007465,0x000a0005,0x00000051,0x41414d53,0x72616553,0x4c586863,
+ 0x28746665,0x3b313273,0x3b313273,0x3b326676,0x003b3166,0x00050005,0x0000004d,0x65676465,
+ 0x78655473,0x00000000,0x00050005,0x0000004e,0x72616573,0x65546863,0x00000078,0x00050005,
+ 0x0000004f,0x63786574,0x64726f6f,0x00000000,0x00030005,0x00000050,0x00646e65,0x000b0005,
+ 0x00000057,0x41414d53,0x72616553,0x52586863,0x74686769,0x31327328,0x3132733b,0x3266763b,
+ 0x3b31663b,0x00000000,0x00050005,0x00000053,0x65676465,0x78655473,0x00000000,0x00050005,
+ 0x00000054,0x72616573,0x65546863,0x00000078,0x00050005,0x00000055,0x63786574,0x64726f6f,
+ 0x00000000,0x00030005,0x00000056,0x00646e65,0x000a0005,0x0000005d,0x41414d53,0x72616553,
+ 0x55596863,0x32732870,0x32733b31,0x66763b31,0x31663b32,0x0000003b,0x00050005,0x00000059,
+ 0x65676465,0x78655473,0x00000000,0x00050005,0x0000005a,0x72616573,0x65546863,0x00000078,
+ 0x00050005,0x0000005b,0x63786574,0x64726f6f,0x00000000,0x00030005,0x0000005c,0x00646e65,
+ 0x000a0005,0x00000063,0x41414d53,0x72616553,0x44596863,0x286e776f,0x3b313273,0x3b313273,
+ 0x3b326676,0x003b3166,0x00050005,0x0000005f,0x65676465,0x78655473,0x00000000,0x00050005,
+ 0x00000060,0x72616573,0x65546863,0x00000078,0x00050005,0x00000061,0x63786574,0x64726f6f,
+ 0x00000000,0x00030005,0x00000062,0x00646e65,0x00090005,0x0000006b,0x41414d53,0x61657241,
+ 0x31327328,0x3266763b,0x3b31663b,0x663b3166,0x00003b31,0x00040005,0x00000066,0x61657261,
+ 0x00786554,0x00040005,0x00000067,0x74736964,0x00000000,0x00030005,0x00000068,0x00003165,
+ 0x00030005,0x00000069,0x00003265,0x00040005,0x0000006a,0x7366666f,0x00007465,0x000f0005,
+ 0x00000072,0x41414d53,0x65746544,0x6f487463,0x6f7a6972,0x6c61746e,0x6e726f43,0x61507265,
+ 0x72657474,0x3273286e,0x66763b31,0x66763b32,0x66763b34,0x00003b32,0x00050005,0x0000006e,
+ 0x65676465,0x78655473,0x00000000,0x00040005,0x0000006f,0x67696577,0x00737468,0x00050005,
+ 0x00000070,0x63786574,0x64726f6f,0x00000000,0x00030005,0x00000071,0x00000064,0x000f0005,
+ 0x00000078,0x41414d53,0x65746544,0x65567463,0x63697472,0x6f436c61,0x72656e72,0x74746150,
+ 0x286e7265,0x3b313273,0x3b326676,0x3b346676,0x3b326676,0x00000000,0x00050005,0x00000074,
+ 0x65676465,0x78655473,0x00000000,0x00040005,0x00000075,0x67696577,0x00737468,0x00050005,
+ 0x00000076,0x63786574,0x64726f6f,0x00000000,0x00030005,0x00000077,0x00000064,0x00120005,
+ 0x00000082,0x41414d53,0x6e656c42,0x676e6964,0x67696557,0x61437468,0x6c75636c,0x6f697461,
+ 0x2853506e,0x3b326676,0x3b326676,0x5b346676,0x733b5d33,0x733b3132,0x733b3132,0x763b3132,
+ 0x003b3466,0x00050005,0x0000007b,0x63786574,0x64726f6f,0x00000000,0x00050005,0x0000007c,
+ 0x63786970,0x64726f6f,0x00000000,0x00040005,0x0000007d,0x7366666f,0x00007465,0x00050005,
+ 0x0000007e,0x65676465,0x78655473,0x00000000,0x00040005,0x0000007f,0x61657261,0x00786554,
+ 0x00050005,0x00000080,0x72616573,0x65546863,0x00000078,0x00070005,0x00000081,0x73627573,
+ 0x6c706d61,0x646e4965,0x73656369,0x00000000,0x00050005,0x00000096,0x736e6f43,0x746e6174,
+ 0x00000073,0x00040006,0x00000096,0x00000000,0x0063646e,0x00050006,0x00000096,0x00000001,
+ 0x7274656d,0x00736369,0x00030005,0x00000098,0x00006370,0x00040005,0x000000e9,0x726f6f63,
+ 0x00000064,0x00030005,0x000000f2,0x00000074,0x00040005,0x00000126,0x726f6f63,0x00000064,
+ 0x00030005,0x00000134,0x00000074,0x00040005,0x0000015c,0x61726170,0x0000006d,0x00050005,
+ 0x00000166,0x63786574,0x64726f6f,0x00000000,0x00040005,0x00000185,0x67696577,0x00737468,
+ 0x00030005,0x0000018c,0x00000064,0x00030005,0x0000018e,0x00646e65,0x00040005,0x0000018f,
+ 0x61726170,0x0000006d,0x00040005,0x00000191,0x61726170,0x0000006d,0x00040005,0x00000192,
+ 0x61726170,0x0000006d,0x00040005,0x000001a7,0x61726170,0x0000006d,0x00040005,0x000001a9,
+ 0x61726170,0x0000006d,0x00040005,0x000001aa,0x61726170,0x0000006d,0x00040005,0x000001ba,
+ 0x726f6f63,0x00007364,0x00030005,0x000001ce,0x00000063,0x00040005,0x000001e5,0x61726170,
+ 0x0000006d,0x00030005,0x000001ea,0x00006363,0x00040005,0x000001f6,0x61726170,0x0000006d,
+ 0x00040005,0x000001f7,0x61726170,0x0000006d,0x00040005,0x000001f9,0x61726170,0x0000006d,
+ 0x00040005,0x000001fc,0x61726170,0x0000006d,0x00040005,0x000001ff,0x61726170,0x0000006d,
+ 0x00040005,0x00000201,0x61726170,0x0000006d,0x00040005,0x00000208,0x61726170,0x0000006d,
+ 0x00040005,0x0000020a,0x61726170,0x0000006d,0x00040005,0x0000020b,0x61726170,0x0000006d,
+ 0x00040005,0x0000021a,0x61726170,0x0000006d,0x00040005,0x0000021c,0x61726170,0x0000006d,
+ 0x00040005,0x0000021d,0x61726170,0x0000006d,0x00040005,0x00000239,0x726f6f63,0x00007364,
+ 0x00030005,0x0000024b,0x00000063,0x00030005,0x00000262,0x00006363,0x00040005,0x0000026d,
+ 0x61726170,0x0000006d,0x00040005,0x0000026e,0x61726170,0x0000006d,0x00040005,0x00000270,
+ 0x61726170,0x0000006d,0x00040005,0x00000273,0x61726170,0x0000006d,0x00040005,0x00000276,
+ 0x61726170,0x0000006d,0x00040005,0x00000278,0x61726170,0x0000006d,0x00040005,0x00000282,
+ 0x6c616373,0x00000065,0x00040005,0x00000286,0x73616962,0x00000000,0x00030005,0x000002a2,
+ 0x00000065,0x00040005,0x000002c6,0x7366666f,0x00007465,0x00040005,0x000002c8,0x61726170,
+ 0x0000006d,0x00040005,0x000002ca,0x61726170,0x0000006d,0x00030005,0x000002d6,0x00000065,
+ 0x00040005,0x000002f6,0x7366666f,0x00007465,0x00040005,0x000002f7,0x61726170,0x0000006d,
+ 0x00040005,0x000002f9,0x61726170,0x0000006d,0x00030005,0x00000305,0x00000065,0x00040005,
+ 0x00000326,0x7366666f,0x00007465,0x00040005,0x00000327,0x61726170,0x0000006d,0x00040005,
+ 0x0000032a,0x61726170,0x0000006d,0x00030005,0x00000335,0x00000065,0x00040005,0x00000355,
+ 0x7366666f,0x00007465,0x00040005,0x00000356,0x61726170,0x0000006d,0x00040005,0x00000359,
+ 0x61726170,0x0000006d,0x00050005,0x00000365,0x63786574,0x64726f6f,0x00000000,0x00050005,
+ 0x0000037d,0x7466656c,0x68676952,0x00000074,0x00050005,0x00000382,0x6e756f72,0x676e6964,
+ 0x00000000,0x00040005,0x0000038e,0x74636166,0x0000726f,0x00050005,0x000003ca,0x7466656c,
+ 0x68676952,0x00000074,0x00050005,0x000003cf,0x6e756f72,0x676e6964,0x00000000,0x00040005,
+ 0x000003da,0x74636166,0x0000726f,0x00040005,0x00000413,0x67696577,0x00737468,0x00030005,
+ 0x00000415,0x00000065,0x00040005,0x0000041f,0x61726170,0x0000006d,0x00040005,0x00000421,
+ 0x61726170,0x0000006d,0x00040005,0x00000423,0x61726170,0x0000006d,0x00040005,0x00000432,
+ 0x726f6f63,0x00007364,0x00040005,0x00000433,0x61726170,0x0000006d,0x00040005,0x00000437,
+ 0x61726170,0x0000006d,0x00030005,0x0000043f,0x00000064,0x00030005,0x00000443,0x00003165,
+ 0x00040005,0x00000449,0x61726170,0x0000006d,0x00040005,0x0000044d,0x61726170,0x0000006d,
+ 0x00040005,0x0000045f,0x74727173,0x0000645f,0x00030005,0x00000462,0x00003265,0x00040005,
+ 0x00000468,0x61726170,0x0000006d,0x00040005,0x0000046a,0x61726170,0x0000006d,0x00040005,
+ 0x0000046c,0x61726170,0x0000006d,0x00040005,0x0000046e,0x61726170,0x0000006d,0x00040005,
+ 0x00000479,0x61726170,0x0000006d,0x00040005,0x0000047c,0x61726170,0x0000006d,0x00040005,
+ 0x0000047f,0x61726170,0x0000006d,0x00040005,0x0000048e,0x726f6f63,0x00007364,0x00040005,
+ 0x0000048f,0x61726170,0x0000006d,0x00040005,0x00000493,0x61726170,0x0000006d,0x00030005,
+ 0x0000049b,0x00000064,0x00030005,0x0000049f,0x00003165,0x00040005,0x000004a5,0x61726170,
+ 0x0000006d,0x00040005,0x000004a9,0x61726170,0x0000006d,0x00040005,0x000004bb,0x74727173,
+ 0x0000645f,0x00030005,0x000004be,0x00003265,0x00040005,0x000004c4,0x61726170,0x0000006d,
+ 0x00040005,0x000004c6,0x61726170,0x0000006d,0x00040005,0x000004c8,0x61726170,0x0000006d,
+ 0x00040005,0x000004ca,0x61726170,0x0000006d,0x00040005,0x000004d5,0x61726170,0x0000006d,
+ 0x00040005,0x000004d8,0x61726170,0x0000006d,0x00040005,0x000004db,0x61726170,0x0000006d,
+ 0x00060005,0x000004e7,0x67617266,0x43786554,0x64726f6f,0x00000000,0x00050005,0x000004e8,
+ 0x63786970,0x64726f6f,0x00000000,0x00040005,0x000004e9,0x7366666f,0x00007465,0x00040005,
+ 0x000004ea,0x61726170,0x0000006d,0x00040005,0x000004ec,0x61726170,0x0000006d,0x00040005,
+ 0x000004ed,0x61726170,0x0000006d,0x00050005,0x000004f2,0x4374756f,0x726f6c6f,0x00000000,
+ 0x00050005,0x000004f3,0x65676445,0x74786554,0x00657275,0x00050005,0x000004f4,0x61657241,
+ 0x74786554,0x00657275,0x00060005,0x000004f5,0x72616553,0x65546863,0x72757478,0x00000065,
+ 0x00040005,0x000004f6,0x61726170,0x0000006d,0x00040005,0x000004f8,0x61726170,0x0000006d,
+ 0x00040005,0x000004fa,0x61726170,0x0000006d,0x00040005,0x000004fc,0x61726170,0x0000006d,
+ 0x00030047,0x00000096,0x00000002,0x00050048,0x00000096,0x00000000,0x00000023,0x00000000,
+ 0x00050048,0x00000096,0x00000001,0x00000023,0x00000010,0x00040047,0x000004e7,0x0000001e,
+ 0x00000000,0x00040047,0x000004f2,0x0000001e,0x00000000,0x00040047,0x000004f3,0x00000021,
+ 0x00000000,0x00040047,0x000004f3,0x00000022,0x00000000,0x00040047,0x000004f4,0x00000021,
+ 0x00000000,0x00040047,0x000004f4,0x00000022,0x00000001,0x00040047,0x000004f5,0x00000021,
+ 0x00000000,0x00040047,0x000004f5,0x00000022,0x00000002,0x00020013,0x00000002,0x00030021,
+ 0x00000003,0x00000002,0x00020014,0x00000006,0x00040017,0x00000007,0x00000006,0x00000002,
+ 0x00040020,0x00000008,0x00000007,0x00000007,0x00030016,0x00000009,0x00000020,0x00040017,
+ 0x0000000a,0x00000009,0x00000002,0x00040020,0x0000000b,0x00000007,0x0000000a,0x00060021,
+ 0x0000000c,0x00000002,0x00000008,0x0000000b,0x0000000b,0x00040017,0x00000012,0x00000009,
+ 0x00000004,0x00040015,0x00000013,0x00000020,0x00000000,0x0004002b,0x00000013,0x00000014,
+ 0x00000003,0x0004001c,0x00000015,0x00000012,0x00000014,0x00040020,0x00000016,0x00000007,
+ 0x00000015,0x00060021,0x00000017,0x00000002,0x0000000b,0x0000000b,0x00000016,0x00040021,
+ 0x0000001d,0x0000000a,0x0000000b,0x00040020,0x00000021,0x00000007,0x00000012,0x00040021,
+ 0x00000022,0x00000012,0x00000021,0x00090019,0x00000026,0x00000009,0x00000001,0x00000000,
+ 0x00000000,0x00000000,0x00000001,0x00000000,0x0003001b,0x00000027,0x00000026,0x00040020,
+ 0x00000028,0x00000000,0x00000027,0x00070021,0x00000029,0x0000000a,0x00000028,0x0000000b,
+ 0x0000000b,0x0000000b,0x00040020,0x00000036,0x00000007,0x00000009,0x00070021,0x00000037,
+ 0x0000000a,0x00000028,0x0000000b,0x0000000b,0x00000036,0x00080021,0x0000003e,0x0000000a,
+ 0x00000028,0x00000028,0x0000000b,0x0000000b,0x00000021,0x00060021,0x00000046,0x00000009,
+ 0x00000028,0x0000000b,0x00000036,0x00070021,0x0000004c,0x00000009,0x00000028,0x00000028,
+ 0x0000000b,0x00000036,0x00080021,0x00000065,0x0000000a,0x00000028,0x0000000b,0x00000036,
+ 0x00000036,0x00000036,0x00070021,0x0000006d,0x00000002,0x00000028,0x0000000b,0x00000021,
+ 0x0000000b,0x000a0021,0x0000007a,0x00000012,0x0000000b,0x0000000b,0x00000016,0x00000028,
+ 0x00000028,0x00000028,0x00000021,0x0004002b,0x00000013,0x00000084,0x00000000,0x00040020,
+ 0x00000085,0x00000007,0x00000006,0x0004002b,0x00000013,0x0000008d,0x00000001,0x0004001e,
+ 0x00000096,0x00000012,0x00000012,0x00040020,0x00000097,0x00000009,0x00000096,0x0004003b,
+ 0x00000097,0x00000098,0x00000009,0x00040015,0x00000099,0x00000020,0x00000001,0x0004002b,
+ 0x00000099,0x0000009a,0x00000001,0x00040020,0x0000009b,0x00000009,0x00000012,0x0004002b,
+ 0x00000099,0x000000a0,0x00000000,0x0004002b,0x00000009,0x000000a4,0xbe800000,0x0004002b,
+ 0x00000009,0x000000a5,0xbe000000,0x0004002b,0x00000009,0x000000a6,0x3fa00000,0x0007002c,
+ 0x00000012,0x000000a7,0x000000a4,0x000000a5,0x000000a6,0x000000a5,0x0007002c,0x00000012,
+ 0x000000af,0x000000a5,0x000000a4,0x000000a5,0x000000a6,0x0004002b,0x00000099,0x000000b4,
+ 0x00000002,0x0004002b,0x00000009,0x000000b8,0xc2000000,0x0004002b,0x00000009,0x000000b9,
+ 0x42000000,0x0007002c,0x00000012,0x000000ba,0x000000b8,0x000000b9,0x000000b8,0x000000b9,
+ 0x0004002b,0x00000009,0x000000ca,0x40a00000,0x0004002b,0x00000009,0x000000ce,0x40700000,
+ 0x0004002b,0x00000013,0x000000e2,0x00000002,0x0004002b,0x00000009,0x000000eb,0xbf800000,
+ 0x0004002b,0x00000009,0x000000ec,0x3f800000,0x00040017,0x000000f0,0x00000009,0x00000003,
+ 0x00040020,0x000000f1,0x00000007,0x000000f0,0x0004002b,0x00000009,0x00000100,0x40e00000,
+ 0x0004002b,0x00000009,0x00000106,0x3f666666,0x0004002b,0x00000009,0x0000011a,0x00000000,
+ 0x0004002b,0x00000009,0x0000011e,0x3f000000,0x0005002c,0x0000000a,0x0000011f,0x0000011e,
+ 0x0000011e,0x0004002b,0x00000009,0x0000012b,0x3e800000,0x00040020,0x0000012c,0x00000009,
+ 0x00000009,0x0004002b,0x00000009,0x00000167,0x41a00000,0x0005002c,0x0000000a,0x00000168,
+ 0x00000167,0x00000167,0x0004002b,0x00000009,0x0000016c,0x3bcccccd,0x0004002b,0x00000009,
+ 0x0000016d,0x3aea0ea1,0x0005002c,0x0000000a,0x0000016e,0x0000016c,0x0000016d,0x0004002b,
+ 0x00000009,0x00000170,0x3b4ccccd,0x0004002b,0x00000009,0x00000171,0x3a6a0ea1,0x0005002c,
+ 0x0000000a,0x00000172,0x00000170,0x00000171,0x0004002b,0x00000009,0x00000178,0x3e124925,
+ 0x0005002c,0x0000000a,0x00000186,0x0000011a,0x0000011a,0x0005002c,0x0000000a,0x0000018d,
+ 0x000000eb,0x000000ec,0x0005002c,0x0000000a,0x000001a6,0x000000ec,0x000000eb,0x0004002b,
+ 0x00000009,0x000001b6,0x40000000,0x00040017,0x000001d2,0x00000099,0x00000002,0x0004002b,
+ 0x00000099,0x000001d3,0xffffffff,0x0005002c,0x000001d2,0x000001d4,0x000001d3,0x000000a0,
+ 0x0005002c,0x000001d2,0x000001de,0x0000009a,0x000000a0,0x0005002c,0x0000000a,0x000001eb,
+ 0x000001b6,0x000001b6,0x0005002c,0x0000000a,0x00000207,0x000000eb,0x000000eb,0x0005002c,
+ 0x0000000a,0x00000219,0x000000ec,0x000000ec,0x0005002c,0x000001d2,0x00000255,0x000000a0,
+ 0x000001d3,0x0004002b,0x00000009,0x00000283,0x42040000,0x0004002b,0x00000009,0x00000284,
+ 0xc2040000,0x0005002c,0x0000000a,0x00000285,0x00000283,0x00000284,0x0004002b,0x00000009,
+ 0x00000287,0x42840000,0x0005002c,0x0000000a,0x00000288,0x00000287,0x00000283,0x0004002b,
+ 0x00000009,0x0000028e,0xbf000000,0x0005002c,0x0000000a,0x0000028f,0x0000011e,0x0000028e,
+ 0x0004002b,0x00000009,0x00000292,0x3c800000,0x0004002b,0x00000009,0x00000293,0x3d800000,
+ 0x0005002c,0x0000000a,0x00000294,0x00000292,0x00000293,0x0005002c,0x0000000a,0x000002a3,
+ 0x0000011a,0x000000ec,0x0004002b,0x00000009,0x000002b1,0x3f53fe5d,0x0004002b,0x00000009,
+ 0x000002be,0xc0000000,0x0004002b,0x00000009,0x000002bf,0x80000000,0x0005002c,0x0000000a,
+ 0x000002c0,0x000002be,0x000002bf,0x0004002b,0x00000009,0x000002c7,0xc0008102,0x0004002b,
+ 0x00000009,0x000002cc,0x40500000,0x0005002c,0x0000000a,0x000002f0,0x000001b6,0x0000011a,
+ 0x0005002c,0x0000000a,0x00000306,0x000000ec,0x0000011a,0x0005002c,0x0000000a,0x00000320,
+ 0x000002bf,0x000002be,0x0005002c,0x0000000a,0x0000034f,0x0000011a,0x000001b6,0x0004002b,
+ 0x00000009,0x00000366,0x41800000,0x0005002c,0x0000000a,0x00000367,0x00000366,0x00000366,
+ 0x0004002b,0x00000009,0x00000368,0x40800000,0x0004002b,0x00000009,0x00000383,0x3f400000,
+ 0x0005002c,0x000001d2,0x00000394,0x000000a0,0x0000009a,0x0005002c,0x000001d2,0x000003a1,
+ 0x0000009a,0x0000009a,0x0004002b,0x00000099,0x000003ae,0xfffffffe,0x0005002c,0x000001d2,
+ 0x000003af,0x000000a0,0x000003ae,0x0005002c,0x000001d2,0x000003bc,0x0000009a,0x000003ae,
+ 0x0005002c,0x000001d2,0x000003f8,0x000003ae,0x000000a0,0x0005002c,0x000001d2,0x00000405,
+ 0x000003ae,0x0000009a,0x0007002c,0x00000012,0x00000414,0x0000011a,0x0000011a,0x0000011a,
+ 0x0000011a,0x00040020,0x000004e6,0x00000001,0x0000000a,0x0004003b,0x000004e6,0x000004e7,
+ 0x00000001,0x00040020,0x000004f1,0x00000003,0x00000012,0x0004003b,0x000004f1,0x000004f2,
+ 0x00000003,0x0004003b,0x00000028,0x000004f3,0x00000000,0x0004003b,0x00000028,0x000004f4,
+ 0x00000000,0x0004003b,0x00000028,0x000004f5,0x00000000,0x00050036,0x00000002,0x00000004,
+ 0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,0x0000000b,0x000004e8,0x00000007,
+ 0x0004003b,0x00000016,0x000004e9,0x00000007,0x0004003b,0x0000000b,0x000004ea,0x00000007,
+ 0x0004003b,0x0000000b,0x000004ec,0x00000007,0x0004003b,0x00000016,0x000004ed,0x00000007,
+ 0x0004003b,0x0000000b,0x000004f6,0x00000007,0x0004003b,0x0000000b,0x000004f8,0x00000007,
+ 0x0004003b,0x00000016,0x000004fa,0x00000007,0x0004003b,0x00000021,0x000004fc,0x00000007,
+ 0x0004003d,0x0000000a,0x000004eb,0x000004e7,0x0003003e,0x000004ea,0x000004eb,0x00070039,
+ 0x00000002,0x000004ee,0x0000001b,0x000004ea,0x000004ec,0x000004ed,0x0004003d,0x0000000a,
+ 0x000004ef,0x000004ec,0x0003003e,0x000004e8,0x000004ef,0x0004003d,0x00000015,0x000004f0,
+ 0x000004ed,0x0003003e,0x000004e9,0x000004f0,0x0004003d,0x0000000a,0x000004f7,0x000004e7,
+ 0x0003003e,0x000004f6,0x000004f7,0x0004003d,0x0000000a,0x000004f9,0x000004e8,0x0003003e,
+ 0x000004f8,0x000004f9,0x0004003d,0x00000015,0x000004fb,0x000004e9,0x0003003e,0x000004fa,
+ 0x000004fb,0x0003003e,0x000004fc,0x00000414,0x000b0039,0x00000012,0x000004fd,0x00000082,
+ 0x000004f6,0x000004f8,0x000004fa,0x000004f3,0x000004f4,0x000004f5,0x000004fc,0x0003003e,
+ 0x000004f2,0x000004fd,0x000100fd,0x00010038,0x00050036,0x00000002,0x00000010,0x00000000,
+ 0x0000000c,0x00030037,0x00000008,0x0000000d,0x00030037,0x0000000b,0x0000000e,0x00030037,
+ 0x0000000b,0x0000000f,0x000200f8,0x00000011,0x00050041,0x00000085,0x00000086,0x0000000d,
+ 0x00000084,0x0004003d,0x00000006,0x00000087,0x00000086,0x000300f7,0x00000089,0x00000000,
+ 0x000400fa,0x00000087,0x00000088,0x00000089,0x000200f8,0x00000088,0x00050041,0x00000036,
+ 0x0000008a,0x0000000f,0x00000084,0x0004003d,0x00000009,0x0000008b,0x0000008a,0x00050041,
+ 0x00000036,0x0000008c,0x0000000e,0x00000084,0x0003003e,0x0000008c,0x0000008b,0x000200f9,
+ 0x00000089,0x000200f8,0x00000089,0x00050041,0x00000085,0x0000008e,0x0000000d,0x0000008d,
+ 0x0004003d,0x00000006,0x0000008f,0x0000008e,0x000300f7,0x00000091,0x00000000,0x000400fa,
+ 0x0000008f,0x00000090,0x00000091,0x000200f8,0x00000090,0x00050041,0x00000036,0x00000092,
+ 0x0000000f,0x0000008d,0x0004003d,0x00000009,0x00000093,0x00000092,0x00050041,0x00000036,
+ 0x00000094,0x0000000e,0x0000008d,0x0003003e,0x00000094,0x00000093,0x000200f9,0x00000091,
+ 0x000200f8,0x00000091,0x000100fd,0x00010038,0x00050036,0x00000002,0x0000001b,0x00000000,
+ 0x00000017,0x00030037,0x0000000b,0x00000018,0x00030037,0x0000000b,0x00000019,0x00030037,
+ 0x00000016,0x0000001a,0x000200f8,0x0000001c,0x0004003d,0x0000000a,0x00000095,0x00000018,
+ 0x00050041,0x0000009b,0x0000009c,0x00000098,0x0000009a,0x0004003d,0x00000012,0x0000009d,
+ 0x0000009c,0x0007004f,0x0000000a,0x0000009e,0x0000009d,0x0000009d,0x00000002,0x00000003,
+ 0x00050085,0x0000000a,0x0000009f,0x00000095,0x0000009e,0x0003003e,0x00000019,0x0000009f,
+ 0x00050041,0x0000009b,0x000000a1,0x00000098,0x0000009a,0x0004003d,0x00000012,0x000000a2,
+ 0x000000a1,0x0009004f,0x00000012,0x000000a3,0x000000a2,0x000000a2,0x00000000,0x00000001,
+ 0x00000000,0x00000001,0x0004003d,0x0000000a,0x000000a8,0x00000018,0x0009004f,0x00000012,
+ 0x000000a9,0x000000a8,0x000000a8,0x00000000,0x00000001,0x00000000,0x00000001,0x0008000c,
+ 0x00000012,0x000000aa,0x00000001,0x00000032,0x000000a3,0x000000a7,0x000000a9,0x00050041,
+ 0x00000021,0x000000ab,0x0000001a,0x000000a0,0x0003003e,0x000000ab,0x000000aa,0x00050041,
+ 0x0000009b,0x000000ac,0x00000098,0x0000009a,0x0004003d,0x00000012,0x000000ad,0x000000ac,
+ 0x0009004f,0x00000012,0x000000ae,0x000000ad,0x000000ad,0x00000000,0x00000001,0x00000000,
+ 0x00000001,0x0004003d,0x0000000a,0x000000b0,0x00000018,0x0009004f,0x00000012,0x000000b1,
+ 0x000000b0,0x000000b0,0x00000000,0x00000001,0x00000000,0x00000001,0x0008000c,0x00000012,
+ 0x000000b2,0x00000001,0x00000032,0x000000ae,0x000000af,0x000000b1,0x00050041,0x00000021,
+ 0x000000b3,0x0000001a,0x0000009a,0x0003003e,0x000000b3,0x000000b2,0x00050041,0x0000009b,
+ 0x000000b5,0x00000098,0x0000009a,0x0004003d,0x00000012,0x000000b6,0x000000b5,0x0009004f,
+ 0x00000012,0x000000b7,0x000000b6,0x000000b6,0x00000000,0x00000000,0x00000001,0x00000001,
+ 0x00050041,0x00000021,0x000000bb,0x0000001a,0x000000a0,0x0004003d,0x00000012,0x000000bc,
+ 0x000000bb,0x0007004f,0x0000000a,0x000000bd,0x000000bc,0x000000bc,0x00000000,0x00000002,
+ 0x00050041,0x00000021,0x000000be,0x0000001a,0x0000009a,0x0004003d,0x00000012,0x000000bf,
+ 0x000000be,0x0007004f,0x0000000a,0x000000c0,0x000000bf,0x000000bf,0x00000001,0x00000003,
+ 0x00050051,0x00000009,0x000000c1,0x000000bd,0x00000000,0x00050051,0x00000009,0x000000c2,
+ 0x000000bd,0x00000001,0x00050051,0x00000009,0x000000c3,0x000000c0,0x00000000,0x00050051,
+ 0x00000009,0x000000c4,0x000000c0,0x00000001,0x00070050,0x00000012,0x000000c5,0x000000c1,
+ 0x000000c2,0x000000c3,0x000000c4,0x0008000c,0x00000012,0x000000c6,0x00000001,0x00000032,
+ 0x000000b7,0x000000ba,0x000000c5,0x00050041,0x00000021,0x000000c7,0x0000001a,0x000000b4,
+ 0x0003003e,0x000000c7,0x000000c6,0x000100fd,0x00010038,0x00050036,0x0000000a,0x0000001f,
+ 0x00000000,0x0000001d,0x00030037,0x0000000b,0x0000001e,0x000200f8,0x00000020,0x00050041,
+ 0x00000036,0x000000c8,0x0000001e,0x00000084,0x0004003d,0x00000009,0x000000c9,0x000000c8,
+ 0x00050041,0x00000036,0x000000cb,0x0000001e,0x00000084,0x0004003d,0x00000009,0x000000cc,
+ 0x000000cb,0x00050085,0x00000009,0x000000cd,0x000000ca,0x000000cc,0x00050083,0x00000009,
+ 0x000000cf,0x000000cd,0x000000ce,0x0006000c,0x00000009,0x000000d0,0x00000001,0x00000004,
+ 0x000000cf,0x00050085,0x00000009,0x000000d1,0x000000c9,0x000000d0,0x00050041,0x00000036,
+ 0x000000d2,0x0000001e,0x00000084,0x0003003e,0x000000d2,0x000000d1,0x0004003d,0x0000000a,
+ 0x000000d3,0x0000001e,0x0006000c,0x0000000a,0x000000d4,0x00000001,0x00000001,0x000000d3,
+ 0x000200fe,0x000000d4,0x00010038,0x00050036,0x00000012,0x00000024,0x00000000,0x00000022,
+ 0x00030037,0x00000021,0x00000023,0x000200f8,0x00000025,0x0004003d,0x00000012,0x000000d7,
+ 0x00000023,0x0007004f,0x0000000a,0x000000d8,0x000000d7,0x000000d7,0x00000000,0x00000002,
+ 0x0004003d,0x00000012,0x000000d9,0x00000023,0x0007004f,0x0000000a,0x000000da,0x000000d9,
+ 0x000000d9,0x00000000,0x00000002,0x0005008e,0x0000000a,0x000000db,0x000000da,0x000000ca,
+ 0x00050050,0x0000000a,0x000000dc,0x000000ce,0x000000ce,0x00050083,0x0000000a,0x000000dd,
+ 0x000000db,0x000000dc,0x0006000c,0x0000000a,0x000000de,0x00000001,0x00000004,0x000000dd,
+ 0x00050085,0x0000000a,0x000000df,0x000000d8,0x000000de,0x00050041,0x00000036,0x000000e0,
+ 0x00000023,0x00000084,0x00050051,0x00000009,0x000000e1,0x000000df,0x00000000,0x0003003e,
+ 0x000000e0,0x000000e1,0x00050041,0x00000036,0x000000e3,0x00000023,0x000000e2,0x00050051,
+ 0x00000009,0x000000e4,0x000000df,0x00000001,0x0003003e,0x000000e3,0x000000e4,0x0004003d,
+ 0x00000012,0x000000e5,0x00000023,0x0006000c,0x00000012,0x000000e6,0x00000001,0x00000001,
+ 0x000000e5,0x000200fe,0x000000e6,0x00010038,0x00050036,0x0000000a,0x0000002e,0x00000000,
+ 0x00000029,0x00030037,0x00000028,0x0000002a,0x00030037,0x0000000b,0x0000002b,0x00030037,
+ 0x0000000b,0x0000002c,0x00030037,0x0000000b,0x0000002d,0x000200f8,0x0000002f,0x0004003b,
+ 0x00000021,0x000000e9,0x00000007,0x0004003b,0x000000f1,0x000000f2,0x00000007,0x0004003d,
+ 0x0000000a,0x000000ea,0x0000002b,0x00050051,0x00000009,0x000000ed,0x000000ea,0x00000000,
+ 0x00050051,0x00000009,0x000000ee,0x000000ea,0x00000001,0x00070050,0x00000012,0x000000ef,
+ 0x000000ed,0x000000ee,0x000000eb,0x000000ec,0x0003003e,0x000000e9,0x000000ef,0x00050041,
+ 0x0000009b,0x000000f3,0x00000098,0x0000009a,0x0004003d,0x00000012,0x000000f4,0x000000f3,
+ 0x0007004f,0x0000000a,0x000000f5,0x000000f4,0x000000f4,0x00000000,0x00000001,0x00050051,
+ 0x00000009,0x000000f6,0x000000f5,0x00000000,0x00050051,0x00000009,0x000000f7,0x000000f5,
+ 0x00000001,0x00060050,0x000000f0,0x000000f8,0x000000f6,0x000000f7,0x000000ec,0x0003003e,
+ 0x000000f2,0x000000f8,0x000200f9,0x000000f9,0x000200f8,0x000000f9,0x000400f6,0x000000fb,
+ 0x000000fc,0x00000000,0x000200f9,0x000000fd,0x000200f8,0x000000fd,0x00050041,0x00000036,
+ 0x000000fe,0x000000e9,0x000000e2,0x0004003d,0x00000009,0x000000ff,0x000000fe,0x000500b8,
+ 0x00000006,0x00000101,0x000000ff,0x00000100,0x000300f7,0x00000103,0x00000000,0x000400fa,
+ 0x00000101,0x00000102,0x00000103,0x000200f8,0x00000102,0x00050041,0x00000036,0x00000104,
+ 0x000000e9,0x00000014,0x0004003d,0x00000009,0x00000105,0x00000104,0x000500ba,0x00000006,
+ 0x00000107,0x00000105,0x00000106,0x000200f9,0x00000103,0x000200f8,0x00000103,0x000700f5,
+ 0x00000006,0x00000108,0x00000101,0x000000fd,0x00000107,0x00000102,0x000400fa,0x00000108,
+ 0x000000fa,0x000000fb,0x000200f8,0x000000fa,0x0004003d,0x000000f0,0x00000109,0x000000f2,
+ 0x0004003d,0x0000000a,0x0000010a,0x0000002c,0x00050051,0x00000009,0x0000010b,0x0000010a,
+ 0x00000000,0x00050051,0x00000009,0x0000010c,0x0000010a,0x00000001,0x00060050,0x000000f0,
+ 0x0000010d,0x0000010b,0x0000010c,0x000000ec,0x0004003d,0x00000012,0x0000010e,0x000000e9,
+ 0x0008004f,0x000000f0,0x0000010f,0x0000010e,0x0000010e,0x00000000,0x00000001,0x00000002,
+ 0x0008000c,0x000000f0,0x00000110,0x00000001,0x00000032,0x00000109,0x0000010d,0x0000010f,
+ 0x00050041,0x00000036,0x00000111,0x000000e9,0x00000084,0x00050051,0x00000009,0x00000112,
+ 0x00000110,0x00000000,0x0003003e,0x00000111,0x00000112,0x00050041,0x00000036,0x00000113,
+ 0x000000e9,0x0000008d,0x00050051,0x00000009,0x00000114,0x00000110,0x00000001,0x0003003e,
+ 0x00000113,0x00000114,0x00050041,0x00000036,0x00000115,0x000000e9,0x000000e2,0x00050051,
+ 0x00000009,0x00000116,0x00000110,0x00000002,0x0003003e,0x00000115,0x00000116,0x0004003d,
+ 0x00000027,0x00000117,0x0000002a,0x0004003d,0x00000012,0x00000118,0x000000e9,0x0007004f,
+ 0x0000000a,0x00000119,0x00000118,0x00000118,0x00000000,0x00000001,0x00070058,0x00000012,
+ 0x0000011b,0x00000117,0x00000119,0x00000002,0x0000011a,0x0007004f,0x0000000a,0x0000011c,
+ 0x0000011b,0x0000011b,0x00000000,0x00000001,0x0003003e,0x0000002d,0x0000011c,0x0004003d,
+ 0x0000000a,0x0000011d,0x0000002d,0x00050094,0x00000009,0x00000120,0x0000011d,0x0000011f,
+ 0x00050041,0x00000036,0x00000121,0x000000e9,0x00000014,0x0003003e,0x00000121,0x00000120,
+ 0x000200f9,0x000000fc,0x000200f8,0x000000fc,0x000200f9,0x000000f9,0x000200f8,0x000000fb,
+ 0x0004003d,0x00000012,0x00000122,0x000000e9,0x0007004f,0x0000000a,0x00000123,0x00000122,
+ 0x00000122,0x00000002,0x00000003,0x000200fe,0x00000123,0x00010038,0x00050036,0x0000000a,
+ 0x00000034,0x00000000,0x00000029,0x00030037,0x00000028,0x00000030,0x00030037,0x0000000b,
+ 0x00000031,0x00030037,0x0000000b,0x00000032,0x00030037,0x0000000b,0x00000033,0x000200f8,
+ 0x00000035,0x0004003b,0x00000021,0x00000126,0x00000007,0x0004003b,0x000000f1,0x00000134,
+ 0x00000007,0x0004003b,0x0000000b,0x0000015c,0x00000007,0x0004003d,0x0000000a,0x00000127,
+ 0x00000031,0x00050051,0x00000009,0x00000128,0x00000127,0x00000000,0x00050051,0x00000009,
+ 0x00000129,0x00000127,0x00000001,0x00070050,0x00000012,0x0000012a,0x00000128,0x00000129,
+ 0x000000eb,0x000000ec,0x0003003e,0x00000126,0x0000012a,0x00060041,0x0000012c,0x0000012d,
+ 0x00000098,0x0000009a,0x00000084,0x0004003d,0x00000009,0x0000012e,0x0000012d,0x00050085,
+ 0x00000009,0x0000012f,0x0000012b,0x0000012e,0x00050041,0x00000036,0x00000130,0x00000126,
+ 0x00000084,0x0004003d,0x00000009,0x00000131,0x00000130,0x00050081,0x00000009,0x00000132,
+ 0x00000131,0x0000012f,0x00050041,0x00000036,0x00000133,0x00000126,0x00000084,0x0003003e,
+ 0x00000133,0x00000132,0x00050041,0x0000009b,0x00000135,0x00000098,0x0000009a,0x0004003d,
+ 0x00000012,0x00000136,0x00000135,0x0007004f,0x0000000a,0x00000137,0x00000136,0x00000136,
+ 0x00000000,0x00000001,0x00050051,0x00000009,0x00000138,0x00000137,0x00000000,0x00050051,
+ 0x00000009,0x00000139,0x00000137,0x00000001,0x00060050,0x000000f0,0x0000013a,0x00000138,
+ 0x00000139,0x000000ec,0x0003003e,0x00000134,0x0000013a,0x000200f9,0x0000013b,0x000200f8,
+ 0x0000013b,0x000400f6,0x0000013d,0x0000013e,0x00000000,0x000200f9,0x0000013f,0x000200f8,
+ 0x0000013f,0x00050041,0x00000036,0x00000140,0x00000126,0x000000e2,0x0004003d,0x00000009,
+ 0x00000141,0x00000140,0x000500b8,0x00000006,0x00000142,0x00000141,0x00000100,0x000300f7,
+ 0x00000144,0x00000000,0x000400fa,0x00000142,0x00000143,0x00000144,0x000200f8,0x00000143,
+ 0x00050041,0x00000036,0x00000145,0x00000126,0x00000014,0x0004003d,0x00000009,0x00000146,
+ 0x00000145,0x000500ba,0x00000006,0x00000147,0x00000146,0x00000106,0x000200f9,0x00000144,
+ 0x000200f8,0x00000144,0x000700f5,0x00000006,0x00000148,0x00000142,0x0000013f,0x00000147,
+ 0x00000143,0x000400fa,0x00000148,0x0000013c,0x0000013d,0x000200f8,0x0000013c,0x0004003d,
+ 0x000000f0,0x00000149,0x00000134,0x0004003d,0x0000000a,0x0000014a,0x00000032,0x00050051,
+ 0x00000009,0x0000014b,0x0000014a,0x00000000,0x00050051,0x00000009,0x0000014c,0x0000014a,
+ 0x00000001,0x00060050,0x000000f0,0x0000014d,0x0000014b,0x0000014c,0x000000ec,0x0004003d,
+ 0x00000012,0x0000014e,0x00000126,0x0008004f,0x000000f0,0x0000014f,0x0000014e,0x0000014e,
+ 0x00000000,0x00000001,0x00000002,0x0008000c,0x000000f0,0x00000150,0x00000001,0x00000032,
+ 0x00000149,0x0000014d,0x0000014f,0x00050041,0x00000036,0x00000151,0x00000126,0x00000084,
+ 0x00050051,0x00000009,0x00000152,0x00000150,0x00000000,0x0003003e,0x00000151,0x00000152,
+ 0x00050041,0x00000036,0x00000153,0x00000126,0x0000008d,0x00050051,0x00000009,0x00000154,
+ 0x00000150,0x00000001,0x0003003e,0x00000153,0x00000154,0x00050041,0x00000036,0x00000155,
+ 0x00000126,0x000000e2,0x00050051,0x00000009,0x00000156,0x00000150,0x00000002,0x0003003e,
+ 0x00000155,0x00000156,0x0004003d,0x00000027,0x00000157,0x00000030,0x0004003d,0x00000012,
+ 0x00000158,0x00000126,0x0007004f,0x0000000a,0x00000159,0x00000158,0x00000158,0x00000000,
+ 0x00000001,0x00070058,0x00000012,0x0000015a,0x00000157,0x00000159,0x00000002,0x0000011a,
+ 0x0007004f,0x0000000a,0x0000015b,0x0000015a,0x0000015a,0x00000000,0x00000001,0x0003003e,
+ 0x00000033,0x0000015b,0x0004003d,0x0000000a,0x0000015d,0x00000033,0x0003003e,0x0000015c,
+ 0x0000015d,0x00050039,0x0000000a,0x0000015e,0x0000001f,0x0000015c,0x0003003e,0x00000033,
+ 0x0000015e,0x0004003d,0x0000000a,0x0000015f,0x00000033,0x00050094,0x00000009,0x00000160,
+ 0x0000015f,0x0000011f,0x00050041,0x00000036,0x00000161,0x00000126,0x00000014,0x0003003e,
+ 0x00000161,0x00000160,0x000200f9,0x0000013e,0x000200f8,0x0000013e,0x000200f9,0x0000013b,
+ 0x000200f8,0x0000013d,0x0004003d,0x00000012,0x00000162,0x00000126,0x0007004f,0x0000000a,
+ 0x00000163,0x00000162,0x00000162,0x00000002,0x00000003,0x000200fe,0x00000163,0x00010038,
+ 0x00050036,0x0000000a,0x0000003c,0x00000000,0x00000037,0x00030037,0x00000028,0x00000038,
+ 0x00030037,0x0000000b,0x00000039,0x00030037,0x0000000b,0x0000003a,0x00030037,0x00000036,
+ 0x0000003b,0x000200f8,0x0000003d,0x0004003b,0x0000000b,0x00000166,0x00000007,0x0004003d,
+ 0x0000000a,0x00000169,0x0000003a,0x0004003d,0x0000000a,0x0000016a,0x00000039,0x0008000c,
+ 0x0000000a,0x0000016b,0x00000001,0x00000032,0x00000168,0x00000169,0x0000016a,0x0003003e,
+ 0x00000166,0x0000016b,0x0004003d,0x0000000a,0x0000016f,0x00000166,0x0008000c,0x0000000a,
+ 0x00000173,0x00000001,0x00000032,0x0000016e,0x0000016f,0x00000172,0x0003003e,0x00000166,
+ 0x00000173,0x00050041,0x00000036,0x00000174,0x00000166,0x00000084,0x0004003d,0x00000009,
+ 0x00000175,0x00000174,0x00050081,0x00000009,0x00000176,0x00000175,0x0000011e,0x00050041,
+ 0x00000036,0x00000177,0x00000166,0x00000084,0x0003003e,0x00000177,0x00000176,0x0004003d,
+ 0x00000009,0x00000179,0x0000003b,0x00050085,0x00000009,0x0000017a,0x00000178,0x00000179,
+ 0x00050041,0x00000036,0x0000017b,0x00000166,0x0000008d,0x0004003d,0x00000009,0x0000017c,
+ 0x0000017b,0x00050081,0x00000009,0x0000017d,0x0000017c,0x0000017a,0x00050041,0x00000036,
+ 0x0000017e,0x00000166,0x0000008d,0x0003003e,0x0000017e,0x0000017d,0x0004003d,0x00000027,
+ 0x0000017f,0x00000038,0x0004003d,0x0000000a,0x00000180,0x00000166,0x00070058,0x00000012,
+ 0x00000181,0x0000017f,0x00000180,0x00000002,0x0000011a,0x0007004f,0x0000000a,0x00000182,
+ 0x00000181,0x00000181,0x00000000,0x00000001,0x000200fe,0x00000182,0x00010038,0x00050036,
+ 0x0000000a,0x00000044,0x00000000,0x0000003e,0x00030037,0x00000028,0x0000003f,0x00030037,
+ 0x00000028,0x00000040,0x00030037,0x0000000b,0x00000041,0x00030037,0x0000000b,0x00000042,
+ 0x00030037,0x00000021,0x00000043,0x000200f8,0x00000045,0x0004003b,0x0000000b,0x00000185,
+ 0x00000007,0x0004003b,0x00000021,0x0000018c,0x00000007,0x0004003b,0x0000000b,0x0000018e,
+ 0x00000007,0x0004003b,0x0000000b,0x0000018f,0x00000007,0x0004003b,0x0000000b,0x00000191,
+ 0x00000007,0x0004003b,0x0000000b,0x00000192,0x00000007,0x0004003b,0x0000000b,0x000001a7,
+ 0x00000007,0x0004003b,0x0000000b,0x000001a9,0x00000007,0x0004003b,0x0000000b,0x000001aa,
+ 0x00000007,0x0004003b,0x00000021,0x000001ba,0x00000007,0x0004003b,0x00000021,0x000001ce,
+ 0x00000007,0x0004003b,0x00000021,0x000001e5,0x00000007,0x0004003b,0x0000000b,0x000001ea,
+ 0x00000007,0x0004003b,0x00000008,0x000001f6,0x00000007,0x0004003b,0x0000000b,0x000001f7,
+ 0x00000007,0x0004003b,0x0000000b,0x000001f9,0x00000007,0x0004003b,0x0000000b,0x000001fc,
+ 0x00000007,0x0004003b,0x0000000b,0x000001ff,0x00000007,0x0004003b,0x00000036,0x00000201,
+ 0x00000007,0x0004003b,0x0000000b,0x00000208,0x00000007,0x0004003b,0x0000000b,0x0000020a,
+ 0x00000007,0x0004003b,0x0000000b,0x0000020b,0x00000007,0x0004003b,0x0000000b,0x0000021a,
+ 0x00000007,0x0004003b,0x0000000b,0x0000021c,0x00000007,0x0004003b,0x0000000b,0x0000021d,
+ 0x00000007,0x0004003b,0x00000021,0x00000239,0x00000007,0x0004003b,0x00000021,0x0000024b,
+ 0x00000007,0x0004003b,0x0000000b,0x00000262,0x00000007,0x0004003b,0x00000008,0x0000026d,
+ 0x00000007,0x0004003b,0x0000000b,0x0000026e,0x00000007,0x0004003b,0x0000000b,0x00000270,
+ 0x00000007,0x0004003b,0x0000000b,0x00000273,0x00000007,0x0004003b,0x0000000b,0x00000276,
+ 0x00000007,0x0004003b,0x00000036,0x00000278,0x00000007,0x0003003e,0x00000185,0x00000186,
+ 0x00050041,0x00000036,0x00000187,0x00000042,0x00000084,0x0004003d,0x00000009,0x00000188,
+ 0x00000187,0x000500ba,0x00000006,0x00000189,0x00000188,0x0000011a,0x000300f7,0x0000018b,
+ 0x00000000,0x000400fa,0x00000189,0x0000018a,0x000001a1,0x000200f8,0x0000018a,0x0004003d,
+ 0x0000000a,0x00000190,0x00000041,0x0003003e,0x0000018f,0x00000190,0x0003003e,0x00000191,
+ 0x0000018d,0x00080039,0x0000000a,0x00000193,0x0000002e,0x0000003f,0x0000018f,0x00000191,
+ 0x00000192,0x0004003d,0x0000000a,0x00000194,0x00000192,0x0003003e,0x0000018e,0x00000194,
+ 0x00050041,0x00000036,0x00000195,0x0000018c,0x00000084,0x00050051,0x00000009,0x00000196,
+ 0x00000193,0x00000000,0x0003003e,0x00000195,0x00000196,0x00050041,0x00000036,0x00000197,
+ 0x0000018c,0x000000e2,0x00050051,0x00000009,0x00000198,0x00000193,0x00000001,0x0003003e,
+ 0x00000197,0x00000198,0x00050041,0x00000036,0x00000199,0x0000018e,0x0000008d,0x0004003d,
+ 0x00000009,0x0000019a,0x00000199,0x000500ba,0x00000006,0x0000019b,0x0000019a,0x00000106,
+ 0x000600a9,0x00000009,0x0000019c,0x0000019b,0x000000ec,0x0000011a,0x00050041,0x00000036,
+ 0x0000019d,0x0000018c,0x00000084,0x0004003d,0x00000009,0x0000019e,0x0000019d,0x00050081,
+ 0x00000009,0x0000019f,0x0000019e,0x0000019c,0x00050041,0x00000036,0x000001a0,0x0000018c,
+ 0x00000084,0x0003003e,0x000001a0,0x0000019f,0x000200f9,0x0000018b,0x000200f8,0x000001a1,
+ 0x00050041,0x00000036,0x000001a2,0x0000018c,0x00000084,0x00050051,0x00000009,0x000001a3,
+ 0x00000186,0x00000000,0x0003003e,0x000001a2,0x000001a3,0x00050041,0x00000036,0x000001a4,
+ 0x0000018c,0x000000e2,0x00050051,0x00000009,0x000001a5,0x00000186,0x00000001,0x0003003e,
+ 0x000001a4,0x000001a5,0x000200f9,0x0000018b,0x000200f8,0x0000018b,0x0004003d,0x0000000a,
+ 0x000001a8,0x00000041,0x0003003e,0x000001a7,0x000001a8,0x0003003e,0x000001a9,0x000001a6,
+ 0x00080039,0x0000000a,0x000001ab,0x0000002e,0x0000003f,0x000001a7,0x000001a9,0x000001aa,
+ 0x0004003d,0x0000000a,0x000001ac,0x000001aa,0x0003003e,0x0000018e,0x000001ac,0x00050041,
+ 0x00000036,0x000001ad,0x0000018c,0x0000008d,0x00050051,0x00000009,0x000001ae,0x000001ab,
+ 0x00000000,0x0003003e,0x000001ad,0x000001ae,0x00050041,0x00000036,0x000001af,0x0000018c,
+ 0x00000014,0x00050051,0x00000009,0x000001b0,0x000001ab,0x00000001,0x0003003e,0x000001af,
+ 0x000001b0,0x00050041,0x00000036,0x000001b1,0x0000018c,0x00000084,0x0004003d,0x00000009,
+ 0x000001b2,0x000001b1,0x00050041,0x00000036,0x000001b3,0x0000018c,0x0000008d,0x0004003d,
+ 0x00000009,0x000001b4,0x000001b3,0x00050081,0x00000009,0x000001b5,0x000001b2,0x000001b4,
+ 0x000500ba,0x00000006,0x000001b7,0x000001b5,0x000001b6,0x000300f7,0x000001b9,0x00000000,
+ 0x000400fa,0x000001b7,0x000001b8,0x000001b9,0x000200f8,0x000001b8,0x00050041,0x00000036,
+ 0x000001bb,0x0000018c,0x00000084,0x0004003d,0x00000009,0x000001bc,0x000001bb,0x0004007f,
+ 0x00000009,0x000001bd,0x000001bc,0x00050081,0x00000009,0x000001be,0x000001bd,0x0000012b,
+ 0x00050041,0x00000036,0x000001bf,0x0000018c,0x00000084,0x0004003d,0x00000009,0x000001c0,
+ 0x000001bf,0x00050041,0x00000036,0x000001c1,0x0000018c,0x0000008d,0x0004003d,0x00000009,
+ 0x000001c2,0x000001c1,0x00050041,0x00000036,0x000001c3,0x0000018c,0x0000008d,0x0004003d,
+ 0x00000009,0x000001c4,0x000001c3,0x0004007f,0x00000009,0x000001c5,0x000001c4,0x00050083,
+ 0x00000009,0x000001c6,0x000001c5,0x0000012b,0x00070050,0x00000012,0x000001c7,0x000001be,
+ 0x000001c0,0x000001c2,0x000001c6,0x00050041,0x0000009b,0x000001c8,0x00000098,0x0000009a,
+ 0x0004003d,0x00000012,0x000001c9,0x000001c8,0x0009004f,0x00000012,0x000001ca,0x000001c9,
+ 0x000001c9,0x00000000,0x00000001,0x00000000,0x00000001,0x0004003d,0x0000000a,0x000001cb,
+ 0x00000041,0x0009004f,0x00000012,0x000001cc,0x000001cb,0x000001cb,0x00000000,0x00000001,
+ 0x00000000,0x00000001,0x0008000c,0x00000012,0x000001cd,0x00000001,0x00000032,0x000001c7,
+ 0x000001ca,0x000001cc,0x0003003e,0x000001ba,0x000001cd,0x0004003d,0x00000027,0x000001cf,
+ 0x0000003f,0x0004003d,0x00000012,0x000001d0,0x000001ba,0x0007004f,0x0000000a,0x000001d1,
+ 0x000001d0,0x000001d0,0x00000000,0x00000001,0x00080058,0x00000012,0x000001d5,0x000001cf,
+ 0x000001d1,0x0000000a,0x0000011a,0x000001d4,0x0007004f,0x0000000a,0x000001d6,0x000001d5,
+ 0x000001d5,0x00000000,0x00000001,0x00050041,0x00000036,0x000001d7,0x000001ce,0x00000084,
+ 0x00050051,0x00000009,0x000001d8,0x000001d6,0x00000000,0x0003003e,0x000001d7,0x000001d8,
+ 0x00050041,0x00000036,0x000001d9,0x000001ce,0x0000008d,0x00050051,0x00000009,0x000001da,
+ 0x000001d6,0x00000001,0x0003003e,0x000001d9,0x000001da,0x0004003d,0x00000027,0x000001db,
+ 0x0000003f,0x0004003d,0x00000012,0x000001dc,0x000001ba,0x0007004f,0x0000000a,0x000001dd,
+ 0x000001dc,0x000001dc,0x00000002,0x00000003,0x00080058,0x00000012,0x000001df,0x000001db,
+ 0x000001dd,0x0000000a,0x0000011a,0x000001de,0x0007004f,0x0000000a,0x000001e0,0x000001df,
+ 0x000001df,0x00000000,0x00000001,0x00050041,0x00000036,0x000001e1,0x000001ce,0x000000e2,
+ 0x00050051,0x00000009,0x000001e2,0x000001e0,0x00000000,0x0003003e,0x000001e1,0x000001e2,
+ 0x00050041,0x00000036,0x000001e3,0x000001ce,0x00000014,0x00050051,0x00000009,0x000001e4,
+ 0x000001e0,0x00000001,0x0003003e,0x000001e3,0x000001e4,0x0004003d,0x00000012,0x000001e6,
+ 0x000001ce,0x0003003e,0x000001e5,0x000001e6,0x00050039,0x00000012,0x000001e7,0x00000024,
+ 0x000001e5,0x0004003d,0x00000012,0x000001e8,0x000001ce,0x0009004f,0x00000012,0x000001e9,
+ 0x000001e8,0x000001e7,0x00000005,0x00000004,0x00000007,0x00000006,0x0003003e,0x000001ce,
+ 0x000001e9,0x0004003d,0x00000012,0x000001ec,0x000001ce,0x0007004f,0x0000000a,0x000001ed,
+ 0x000001ec,0x000001ec,0x00000000,0x00000002,0x0004003d,0x00000012,0x000001ee,0x000001ce,
+ 0x0007004f,0x0000000a,0x000001ef,0x000001ee,0x000001ee,0x00000001,0x00000003,0x0008000c,
+ 0x0000000a,0x000001f0,0x00000001,0x00000032,0x000001eb,0x000001ed,0x000001ef,0x0003003e,
+ 0x000001ea,0x000001f0,0x0004003d,0x00000012,0x000001f1,0x0000018c,0x0007004f,0x0000000a,
+ 0x000001f2,0x000001f1,0x000001f1,0x00000002,0x00000003,0x00050050,0x0000000a,0x000001f3,
+ 0x00000106,0x00000106,0x0007000c,0x0000000a,0x000001f4,0x00000001,0x00000030,0x000001f3,
+ 0x000001f2,0x000500b7,0x00000007,0x000001f5,0x000001f4,0x00000186,0x0003003e,0x000001f6,
+ 0x000001f5,0x0004003d,0x0000000a,0x000001f8,0x000001ea,0x0003003e,0x000001f7,0x000001f8,
+ 0x0003003e,0x000001f9,0x00000186,0x00070039,0x00000002,0x000001fa,0x00000010,0x000001f6,
+ 0x000001f7,0x000001f9,0x0004003d,0x0000000a,0x000001fb,0x000001f7,0x0003003e,0x000001ea,
+ 0x000001fb,0x0004003d,0x00000012,0x000001fd,0x0000018c,0x0007004f,0x0000000a,0x000001fe,
+ 0x000001fd,0x000001fd,0x00000000,0x00000001,0x0003003e,0x000001fc,0x000001fe,0x0004003d,
+ 0x0000000a,0x00000200,0x000001ea,0x0003003e,0x000001ff,0x00000200,0x00050041,0x00000036,
+ 0x00000202,0x00000043,0x000000e2,0x0004003d,0x00000009,0x00000203,0x00000202,0x0003003e,
+ 0x00000201,0x00000203,0x00080039,0x0000000a,0x00000204,0x0000003c,0x00000040,0x000001fc,
+ 0x000001ff,0x00000201,0x0004003d,0x0000000a,0x00000205,0x00000185,0x00050081,0x0000000a,
+ 0x00000206,0x00000205,0x00000204,0x0003003e,0x00000185,0x00000206,0x000200f9,0x000001b9,
+ 0x000200f8,0x000001b9,0x0004003d,0x0000000a,0x00000209,0x00000041,0x0003003e,0x00000208,
+ 0x00000209,0x0003003e,0x0000020a,0x00000207,0x00080039,0x0000000a,0x0000020c,0x00000034,
+ 0x0000003f,0x00000208,0x0000020a,0x0000020b,0x0004003d,0x0000000a,0x0000020d,0x0000020b,
+ 0x0003003e,0x0000018e,0x0000020d,0x00050041,0x00000036,0x0000020e,0x0000018c,0x00000084,
+ 0x00050051,0x00000009,0x0000020f,0x0000020c,0x00000000,0x0003003e,0x0000020e,0x0000020f,
+ 0x00050041,0x00000036,0x00000210,0x0000018c,0x000000e2,0x00050051,0x00000009,0x00000211,
+ 0x0000020c,0x00000001,0x0003003e,0x00000210,0x00000211,0x0004003d,0x00000027,0x00000212,
+ 0x0000003f,0x0004003d,0x0000000a,0x00000213,0x00000041,0x00080058,0x00000012,0x00000214,
+ 0x00000212,0x00000213,0x0000000a,0x0000011a,0x000001de,0x00050051,0x00000009,0x00000215,
+ 0x00000214,0x00000000,0x000500ba,0x00000006,0x00000216,0x00000215,0x0000011a,0x000300f7,
+ 0x00000218,0x00000000,0x000400fa,0x00000216,0x00000217,0x0000022c,0x000200f8,0x00000217,
+ 0x0004003d,0x0000000a,0x0000021b,0x00000041,0x0003003e,0x0000021a,0x0000021b,0x0003003e,
+ 0x0000021c,0x00000219,0x00080039,0x0000000a,0x0000021e,0x00000034,0x0000003f,0x0000021a,
+ 0x0000021c,0x0000021d,0x0004003d,0x0000000a,0x0000021f,0x0000021d,0x0003003e,0x0000018e,
+ 0x0000021f,0x00050041,0x00000036,0x00000220,0x0000018c,0x0000008d,0x00050051,0x00000009,
+ 0x00000221,0x0000021e,0x00000000,0x0003003e,0x00000220,0x00000221,0x00050041,0x00000036,
+ 0x00000222,0x0000018c,0x00000014,0x00050051,0x00000009,0x00000223,0x0000021e,0x00000001,
+ 0x0003003e,0x00000222,0x00000223,0x00050041,0x00000036,0x00000224,0x0000018e,0x0000008d,
+ 0x0004003d,0x00000009,0x00000225,0x00000224,0x000500ba,0x00000006,0x00000226,0x00000225,
+ 0x00000106,0x000600a9,0x00000009,0x00000227,0x00000226,0x000000ec,0x0000011a,0x00050041,
+ 0x00000036,0x00000228,0x0000018c,0x0000008d,0x0004003d,0x00000009,0x00000229,0x00000228,
+ 0x00050081,0x00000009,0x0000022a,0x00000229,0x00000227,0x00050041,0x00000036,0x0000022b,
+ 0x0000018c,0x0000008d,0x0003003e,0x0000022b,0x0000022a,0x000200f9,0x00000218,0x000200f8,
+ 0x0000022c,0x00050041,0x00000036,0x0000022d,0x0000018c,0x0000008d,0x00050051,0x00000009,
+ 0x0000022e,0x00000186,0x00000000,0x0003003e,0x0000022d,0x0000022e,0x00050041,0x00000036,
+ 0x0000022f,0x0000018c,0x00000014,0x00050051,0x00000009,0x00000230,0x00000186,0x00000001,
+ 0x0003003e,0x0000022f,0x00000230,0x000200f9,0x00000218,0x000200f8,0x00000218,0x00050041,
+ 0x00000036,0x00000231,0x0000018c,0x00000084,0x0004003d,0x00000009,0x00000232,0x00000231,
+ 0x00050041,0x00000036,0x00000233,0x0000018c,0x0000008d,0x0004003d,0x00000009,0x00000234,
+ 0x00000233,0x00050081,0x00000009,0x00000235,0x00000232,0x00000234,0x000500ba,0x00000006,
+ 0x00000236,0x00000235,0x000001b6,0x000300f7,0x00000238,0x00000000,0x000400fa,0x00000236,
+ 0x00000237,0x00000238,0x000200f8,0x00000237,0x00050041,0x00000036,0x0000023a,0x0000018c,
+ 0x00000084,0x0004003d,0x00000009,0x0000023b,0x0000023a,0x0004007f,0x00000009,0x0000023c,
+ 0x0000023b,0x00050041,0x00000036,0x0000023d,0x0000018c,0x00000084,0x0004003d,0x00000009,
+ 0x0000023e,0x0000023d,0x0004007f,0x00000009,0x0000023f,0x0000023e,0x00050041,0x00000036,
+ 0x00000240,0x0000018c,0x0000008d,0x0004003d,0x00000009,0x00000241,0x00000240,0x00050041,
+ 0x00000036,0x00000242,0x0000018c,0x0000008d,0x0004003d,0x00000009,0x00000243,0x00000242,
+ 0x00070050,0x00000012,0x00000244,0x0000023c,0x0000023f,0x00000241,0x00000243,0x00050041,
+ 0x0000009b,0x00000245,0x00000098,0x0000009a,0x0004003d,0x00000012,0x00000246,0x00000245,
+ 0x0009004f,0x00000012,0x00000247,0x00000246,0x00000246,0x00000000,0x00000001,0x00000000,
+ 0x00000001,0x0004003d,0x0000000a,0x00000248,0x00000041,0x0009004f,0x00000012,0x00000249,
+ 0x00000248,0x00000248,0x00000000,0x00000001,0x00000000,0x00000001,0x0008000c,0x00000012,
+ 0x0000024a,0x00000001,0x00000032,0x00000244,0x00000247,0x00000249,0x0003003e,0x00000239,
+ 0x0000024a,0x0004003d,0x00000027,0x0000024c,0x0000003f,0x0004003d,0x00000012,0x0000024d,
+ 0x00000239,0x0007004f,0x0000000a,0x0000024e,0x0000024d,0x0000024d,0x00000000,0x00000001,
+ 0x00080058,0x00000012,0x0000024f,0x0000024c,0x0000024e,0x0000000a,0x0000011a,0x000001d4,
+ 0x00050051,0x00000009,0x00000250,0x0000024f,0x00000001,0x00050041,0x00000036,0x00000251,
+ 0x0000024b,0x00000084,0x0003003e,0x00000251,0x00000250,0x0004003d,0x00000027,0x00000252,
+ 0x0000003f,0x0004003d,0x00000012,0x00000253,0x00000239,0x0007004f,0x0000000a,0x00000254,
+ 0x00000253,0x00000253,0x00000000,0x00000001,0x00080058,0x00000012,0x00000256,0x00000252,
+ 0x00000254,0x0000000a,0x0000011a,0x00000255,0x00050051,0x00000009,0x00000257,0x00000256,
+ 0x00000000,0x00050041,0x00000036,0x00000258,0x0000024b,0x0000008d,0x0003003e,0x00000258,
+ 0x00000257,0x0004003d,0x00000027,0x00000259,0x0000003f,0x0004003d,0x00000012,0x0000025a,
+ 0x00000239,0x0007004f,0x0000000a,0x0000025b,0x0000025a,0x0000025a,0x00000002,0x00000003,
+ 0x00080058,0x00000012,0x0000025c,0x00000259,0x0000025b,0x0000000a,0x0000011a,0x000001de,
+ 0x0007004f,0x0000000a,0x0000025d,0x0000025c,0x0000025c,0x00000001,0x00000000,0x00050041,
+ 0x00000036,0x0000025e,0x0000024b,0x000000e2,0x00050051,0x00000009,0x0000025f,0x0000025d,
+ 0x00000000,0x0003003e,0x0000025e,0x0000025f,0x00050041,0x00000036,0x00000260,0x0000024b,
+ 0x00000014,0x00050051,0x00000009,0x00000261,0x0000025d,0x00000001,0x0003003e,0x00000260,
+ 0x00000261,0x0004003d,0x00000012,0x00000263,0x0000024b,0x0007004f,0x0000000a,0x00000264,
+ 0x00000263,0x00000263,0x00000000,0x00000002,0x0004003d,0x00000012,0x00000265,0x0000024b,
+ 0x0007004f,0x0000000a,0x00000266,0x00000265,0x00000265,0x00000001,0x00000003,0x0008000c,
+ 0x0000000a,0x00000267,0x00000001,0x00000032,0x000001eb,0x00000264,0x00000266,0x0003003e,
+ 0x00000262,0x00000267,0x0004003d,0x00000012,0x00000268,0x0000018c,0x0007004f,0x0000000a,
+ 0x00000269,0x00000268,0x00000268,0x00000002,0x00000003,0x00050050,0x0000000a,0x0000026a,
+ 0x00000106,0x00000106,0x0007000c,0x0000000a,0x0000026b,0x00000001,0x00000030,0x0000026a,
+ 0x00000269,0x000500b7,0x00000007,0x0000026c,0x0000026b,0x00000186,0x0003003e,0x0000026d,
+ 0x0000026c,0x0004003d,0x0000000a,0x0000026f,0x00000262,0x0003003e,0x0000026e,0x0000026f,
+ 0x0003003e,0x00000270,0x00000186,0x00070039,0x00000002,0x00000271,0x00000010,0x0000026d,
+ 0x0000026e,0x00000270,0x0004003d,0x0000000a,0x00000272,0x0000026e,0x0003003e,0x00000262,
+ 0x00000272,0x0004003d,0x00000012,0x00000274,0x0000018c,0x0007004f,0x0000000a,0x00000275,
+ 0x00000274,0x00000274,0x00000000,0x00000001,0x0003003e,0x00000273,0x00000275,0x0004003d,
+ 0x0000000a,0x00000277,0x00000262,0x0003003e,0x00000276,0x00000277,0x00050041,0x00000036,
+ 0x00000279,0x00000043,0x00000014,0x0004003d,0x00000009,0x0000027a,0x00000279,0x0003003e,
+ 0x00000278,0x0000027a,0x00080039,0x0000000a,0x0000027b,0x0000003c,0x00000040,0x00000273,
+ 0x00000276,0x00000278,0x0007004f,0x0000000a,0x0000027c,0x0000027b,0x0000027b,0x00000001,
+ 0x00000000,0x0004003d,0x0000000a,0x0000027d,0x00000185,0x00050081,0x0000000a,0x0000027e,
+ 0x0000027d,0x0000027c,0x0003003e,0x00000185,0x0000027e,0x000200f9,0x00000238,0x000200f8,
+ 0x00000238,0x0004003d,0x0000000a,0x0000027f,0x00000185,0x000200fe,0x0000027f,0x00010038,
+ 0x00050036,0x00000009,0x0000004a,0x00000000,0x00000046,0x00030037,0x00000028,0x00000047,
+ 0x00030037,0x0000000b,0x00000048,0x00030037,0x00000036,0x00000049,0x000200f8,0x0000004b,
+ 0x0004003b,0x0000000b,0x00000282,0x00000007,0x0004003b,0x0000000b,0x00000286,0x00000007,
+ 0x0003003e,0x00000282,0x00000285,0x0004003d,0x00000009,0x00000289,0x00000049,0x00050050,
+ 0x0000000a,0x0000028a,0x00000289,0x000000ec,0x00050085,0x0000000a,0x0000028b,0x00000288,
+ 0x0000028a,0x0003003e,0x00000286,0x0000028b,0x0004003d,0x0000000a,0x0000028c,0x00000282,
+ 0x00050081,0x0000000a,0x0000028d,0x0000028c,0x0000018d,0x0003003e,0x00000282,0x0000028d,
+ 0x0004003d,0x0000000a,0x00000290,0x00000286,0x00050081,0x0000000a,0x00000291,0x00000290,
+ 0x0000028f,0x0003003e,0x00000286,0x00000291,0x0004003d,0x0000000a,0x00000295,0x00000282,
+ 0x00050085,0x0000000a,0x00000296,0x00000295,0x00000294,0x0003003e,0x00000282,0x00000296,
+ 0x0004003d,0x0000000a,0x00000297,0x00000286,0x00050085,0x0000000a,0x00000298,0x00000297,
+ 0x00000294,0x0003003e,0x00000286,0x00000298,0x0004003d,0x00000027,0x00000299,0x00000047,
+ 0x0004003d,0x0000000a,0x0000029a,0x00000282,0x0004003d,0x0000000a,0x0000029b,0x00000048,
+ 0x0004003d,0x0000000a,0x0000029c,0x00000286,0x0008000c,0x0000000a,0x0000029d,0x00000001,
+ 0x00000032,0x0000029a,0x0000029b,0x0000029c,0x00070058,0x00000012,0x0000029e,0x00000299,
+ 0x0000029d,0x00000002,0x0000011a,0x00050051,0x00000009,0x0000029f,0x0000029e,0x00000000,
+ 0x000200fe,0x0000029f,0x00010038,0x00050036,0x00000009,0x00000051,0x00000000,0x0000004c,
+ 0x00030037,0x00000028,0x0000004d,0x00030037,0x00000028,0x0000004e,0x00030037,0x0000000b,
+ 0x0000004f,0x00030037,0x00000036,0x00000050,0x000200f8,0x00000052,0x0004003b,0x0000000b,
+ 0x000002a2,0x00000007,0x0004003b,0x00000036,0x000002c6,0x00000007,0x0004003b,0x0000000b,
+ 0x000002c8,0x00000007,0x0004003b,0x00000036,0x000002ca,0x00000007,0x0003003e,0x000002a2,
+ 0x000002a3,0x000200f9,0x000002a4,0x000200f8,0x000002a4,0x000400f6,0x000002a6,0x000002a7,
+ 0x00000000,0x000200f9,0x000002a8,0x000200f8,0x000002a8,0x00050041,0x00000036,0x000002a9,
+ 0x0000004f,0x00000084,0x0004003d,0x00000009,0x000002aa,0x000002a9,0x0004003d,0x00000009,
+ 0x000002ab,0x00000050,0x000500ba,0x00000006,0x000002ac,0x000002aa,0x000002ab,0x000300f7,
+ 0x000002ae,0x00000000,0x000400fa,0x000002ac,0x000002ad,0x000002ae,0x000200f8,0x000002ad,
+ 0x00050041,0x00000036,0x000002af,0x000002a2,0x0000008d,0x0004003d,0x00000009,0x000002b0,
+ 0x000002af,0x000500ba,0x00000006,0x000002b2,0x000002b0,0x000002b1,0x000200f9,0x000002ae,
+ 0x000200f8,0x000002ae,0x000700f5,0x00000006,0x000002b3,0x000002ac,0x000002a8,0x000002b2,
+ 0x000002ad,0x000300f7,0x000002b5,0x00000000,0x000400fa,0x000002b3,0x000002b4,0x000002b5,
+ 0x000200f8,0x000002b4,0x00050041,0x00000036,0x000002b6,0x000002a2,0x00000084,0x0004003d,
+ 0x00000009,0x000002b7,0x000002b6,0x000500b4,0x00000006,0x000002b8,0x000002b7,0x0000011a,
+ 0x000200f9,0x000002b5,0x000200f8,0x000002b5,0x000700f5,0x00000006,0x000002b9,0x000002b3,
+ 0x000002ae,0x000002b8,0x000002b4,0x000400fa,0x000002b9,0x000002a5,0x000002a6,0x000200f8,
+ 0x000002a5,0x0004003d,0x00000027,0x000002ba,0x0000004d,0x0004003d,0x0000000a,0x000002bb,
+ 0x0000004f,0x00070058,0x00000012,0x000002bc,0x000002ba,0x000002bb,0x00000002,0x0000011a,
+ 0x0007004f,0x0000000a,0x000002bd,0x000002bc,0x000002bc,0x00000000,0x00000001,0x0003003e,
+ 0x000002a2,0x000002bd,0x00050041,0x0000009b,0x000002c1,0x00000098,0x0000009a,0x0004003d,
+ 0x00000012,0x000002c2,0x000002c1,0x0007004f,0x0000000a,0x000002c3,0x000002c2,0x000002c2,
+ 0x00000000,0x00000001,0x0004003d,0x0000000a,0x000002c4,0x0000004f,0x0008000c,0x0000000a,
+ 0x000002c5,0x00000001,0x00000032,0x000002c0,0x000002c3,0x000002c4,0x0003003e,0x0000004f,
+ 0x000002c5,0x000200f9,0x000002a7,0x000200f8,0x000002a7,0x000200f9,0x000002a4,0x000200f8,
+ 0x000002a6,0x0004003d,0x0000000a,0x000002c9,0x000002a2,0x0003003e,0x000002c8,0x000002c9,
+ 0x0003003e,0x000002ca,0x0000011a,0x00070039,0x00000009,0x000002cb,0x0000004a,0x0000004e,
+ 0x000002c8,0x000002ca,0x0008000c,0x00000009,0x000002cd,0x00000001,0x00000032,0x000002c7,
+ 0x000002cb,0x000002cc,0x0003003e,0x000002c6,0x000002cd,0x00060041,0x0000012c,0x000002ce,
+ 0x00000098,0x0000009a,0x00000084,0x0004003d,0x00000009,0x000002cf,0x000002ce,0x0004003d,
+ 0x00000009,0x000002d0,0x000002c6,0x00050041,0x00000036,0x000002d1,0x0000004f,0x00000084,
+ 0x0004003d,0x00000009,0x000002d2,0x000002d1,0x0008000c,0x00000009,0x000002d3,0x00000001,
+ 0x00000032,0x000002cf,0x000002d0,0x000002d2,0x000200fe,0x000002d3,0x00010038,0x00050036,
+ 0x00000009,0x00000057,0x00000000,0x0000004c,0x00030037,0x00000028,0x00000053,0x00030037,
+ 0x00000028,0x00000054,0x00030037,0x0000000b,0x00000055,0x00030037,0x00000036,0x00000056,
+ 0x000200f8,0x00000058,0x0004003b,0x0000000b,0x000002d6,0x00000007,0x0004003b,0x00000036,
+ 0x000002f6,0x00000007,0x0004003b,0x0000000b,0x000002f7,0x00000007,0x0004003b,0x00000036,
+ 0x000002f9,0x00000007,0x0003003e,0x000002d6,0x000002a3,0x000200f9,0x000002d7,0x000200f8,
+ 0x000002d7,0x000400f6,0x000002d9,0x000002da,0x00000000,0x000200f9,0x000002db,0x000200f8,
+ 0x000002db,0x00050041,0x00000036,0x000002dc,0x00000055,0x00000084,0x0004003d,0x00000009,
+ 0x000002dd,0x000002dc,0x0004003d,0x00000009,0x000002de,0x00000056,0x000500b8,0x00000006,
+ 0x000002df,0x000002dd,0x000002de,0x000300f7,0x000002e1,0x00000000,0x000400fa,0x000002df,
+ 0x000002e0,0x000002e1,0x000200f8,0x000002e0,0x00050041,0x00000036,0x000002e2,0x000002d6,
+ 0x0000008d,0x0004003d,0x00000009,0x000002e3,0x000002e2,0x000500ba,0x00000006,0x000002e4,
+ 0x000002e3,0x000002b1,0x000200f9,0x000002e1,0x000200f8,0x000002e1,0x000700f5,0x00000006,
+ 0x000002e5,0x000002df,0x000002db,0x000002e4,0x000002e0,0x000300f7,0x000002e7,0x00000000,
+ 0x000400fa,0x000002e5,0x000002e6,0x000002e7,0x000200f8,0x000002e6,0x00050041,0x00000036,
+ 0x000002e8,0x000002d6,0x00000084,0x0004003d,0x00000009,0x000002e9,0x000002e8,0x000500b4,
+ 0x00000006,0x000002ea,0x000002e9,0x0000011a,0x000200f9,0x000002e7,0x000200f8,0x000002e7,
+ 0x000700f5,0x00000006,0x000002eb,0x000002e5,0x000002e1,0x000002ea,0x000002e6,0x000400fa,
+ 0x000002eb,0x000002d8,0x000002d9,0x000200f8,0x000002d8,0x0004003d,0x00000027,0x000002ec,
+ 0x00000053,0x0004003d,0x0000000a,0x000002ed,0x00000055,0x00070058,0x00000012,0x000002ee,
+ 0x000002ec,0x000002ed,0x00000002,0x0000011a,0x0007004f,0x0000000a,0x000002ef,0x000002ee,
+ 0x000002ee,0x00000000,0x00000001,0x0003003e,0x000002d6,0x000002ef,0x00050041,0x0000009b,
+ 0x000002f1,0x00000098,0x0000009a,0x0004003d,0x00000012,0x000002f2,0x000002f1,0x0007004f,
+ 0x0000000a,0x000002f3,0x000002f2,0x000002f2,0x00000000,0x00000001,0x0004003d,0x0000000a,
+ 0x000002f4,0x00000055,0x0008000c,0x0000000a,0x000002f5,0x00000001,0x00000032,0x000002f0,
+ 0x000002f3,0x000002f4,0x0003003e,0x00000055,0x000002f5,0x000200f9,0x000002da,0x000200f8,
+ 0x000002da,0x000200f9,0x000002d7,0x000200f8,0x000002d9,0x0004003d,0x0000000a,0x000002f8,
+ 0x000002d6,0x0003003e,0x000002f7,0x000002f8,0x0003003e,0x000002f9,0x0000011e,0x00070039,
+ 0x00000009,0x000002fa,0x0000004a,0x00000054,0x000002f7,0x000002f9,0x0008000c,0x00000009,
+ 0x000002fb,0x00000001,0x00000032,0x000002c7,0x000002fa,0x000002cc,0x0003003e,0x000002f6,
+ 0x000002fb,0x00060041,0x0000012c,0x000002fc,0x00000098,0x0000009a,0x00000084,0x0004003d,
+ 0x00000009,0x000002fd,0x000002fc,0x0004007f,0x00000009,0x000002fe,0x000002fd,0x0004003d,
+ 0x00000009,0x000002ff,0x000002f6,0x00050041,0x00000036,0x00000300,0x00000055,0x00000084,
+ 0x0004003d,0x00000009,0x00000301,0x00000300,0x0008000c,0x00000009,0x00000302,0x00000001,
+ 0x00000032,0x000002fe,0x000002ff,0x00000301,0x000200fe,0x00000302,0x00010038,0x00050036,
+ 0x00000009,0x0000005d,0x00000000,0x0000004c,0x00030037,0x00000028,0x00000059,0x00030037,
+ 0x00000028,0x0000005a,0x00030037,0x0000000b,0x0000005b,0x00030037,0x00000036,0x0000005c,
+ 0x000200f8,0x0000005e,0x0004003b,0x0000000b,0x00000305,0x00000007,0x0004003b,0x00000036,
+ 0x00000326,0x00000007,0x0004003b,0x0000000b,0x00000327,0x00000007,0x0004003b,0x00000036,
+ 0x0000032a,0x00000007,0x0003003e,0x00000305,0x00000306,0x000200f9,0x00000307,0x000200f8,
+ 0x00000307,0x000400f6,0x00000309,0x0000030a,0x00000000,0x000200f9,0x0000030b,0x000200f8,
+ 0x0000030b,0x00050041,0x00000036,0x0000030c,0x0000005b,0x0000008d,0x0004003d,0x00000009,
+ 0x0000030d,0x0000030c,0x0004003d,0x00000009,0x0000030e,0x0000005c,0x000500ba,0x00000006,
+ 0x0000030f,0x0000030d,0x0000030e,0x000300f7,0x00000311,0x00000000,0x000400fa,0x0000030f,
+ 0x00000310,0x00000311,0x000200f8,0x00000310,0x00050041,0x00000036,0x00000312,0x00000305,
+ 0x00000084,0x0004003d,0x00000009,0x00000313,0x00000312,0x000500ba,0x00000006,0x00000314,
+ 0x00000313,0x000002b1,0x000200f9,0x00000311,0x000200f8,0x00000311,0x000700f5,0x00000006,
+ 0x00000315,0x0000030f,0x0000030b,0x00000314,0x00000310,0x000300f7,0x00000317,0x00000000,
+ 0x000400fa,0x00000315,0x00000316,0x00000317,0x000200f8,0x00000316,0x00050041,0x00000036,
+ 0x00000318,0x00000305,0x0000008d,0x0004003d,0x00000009,0x00000319,0x00000318,0x000500b4,
+ 0x00000006,0x0000031a,0x00000319,0x0000011a,0x000200f9,0x00000317,0x000200f8,0x00000317,
+ 0x000700f5,0x00000006,0x0000031b,0x00000315,0x00000311,0x0000031a,0x00000316,0x000400fa,
+ 0x0000031b,0x00000308,0x00000309,0x000200f8,0x00000308,0x0004003d,0x00000027,0x0000031c,
+ 0x00000059,0x0004003d,0x0000000a,0x0000031d,0x0000005b,0x00070058,0x00000012,0x0000031e,
+ 0x0000031c,0x0000031d,0x00000002,0x0000011a,0x0007004f,0x0000000a,0x0000031f,0x0000031e,
+ 0x0000031e,0x00000000,0x00000001,0x0003003e,0x00000305,0x0000031f,0x00050041,0x0000009b,
+ 0x00000321,0x00000098,0x0000009a,0x0004003d,0x00000012,0x00000322,0x00000321,0x0007004f,
+ 0x0000000a,0x00000323,0x00000322,0x00000322,0x00000000,0x00000001,0x0004003d,0x0000000a,
+ 0x00000324,0x0000005b,0x0008000c,0x0000000a,0x00000325,0x00000001,0x00000032,0x00000320,
+ 0x00000323,0x00000324,0x0003003e,0x0000005b,0x00000325,0x000200f9,0x0000030a,0x000200f8,
+ 0x0000030a,0x000200f9,0x00000307,0x000200f8,0x00000309,0x0004003d,0x0000000a,0x00000328,
+ 0x00000305,0x0007004f,0x0000000a,0x00000329,0x00000328,0x00000328,0x00000001,0x00000000,
+ 0x0003003e,0x00000327,0x00000329,0x0003003e,0x0000032a,0x0000011a,0x00070039,0x00000009,
+ 0x0000032b,0x0000004a,0x0000005a,0x00000327,0x0000032a,0x0008000c,0x00000009,0x0000032c,
+ 0x00000001,0x00000032,0x000002c7,0x0000032b,0x000002cc,0x0003003e,0x00000326,0x0000032c,
+ 0x00060041,0x0000012c,0x0000032d,0x00000098,0x0000009a,0x0000008d,0x0004003d,0x00000009,
+ 0x0000032e,0x0000032d,0x0004003d,0x00000009,0x0000032f,0x00000326,0x00050041,0x00000036,
+ 0x00000330,0x0000005b,0x0000008d,0x0004003d,0x00000009,0x00000331,0x00000330,0x0008000c,
+ 0x00000009,0x00000332,0x00000001,0x00000032,0x0000032e,0x0000032f,0x00000331,0x000200fe,
+ 0x00000332,0x00010038,0x00050036,0x00000009,0x00000063,0x00000000,0x0000004c,0x00030037,
+ 0x00000028,0x0000005f,0x00030037,0x00000028,0x00000060,0x00030037,0x0000000b,0x00000061,
+ 0x00030037,0x00000036,0x00000062,0x000200f8,0x00000064,0x0004003b,0x0000000b,0x00000335,
+ 0x00000007,0x0004003b,0x00000036,0x00000355,0x00000007,0x0004003b,0x0000000b,0x00000356,
+ 0x00000007,0x0004003b,0x00000036,0x00000359,0x00000007,0x0003003e,0x00000335,0x00000306,
+ 0x000200f9,0x00000336,0x000200f8,0x00000336,0x000400f6,0x00000338,0x00000339,0x00000000,
+ 0x000200f9,0x0000033a,0x000200f8,0x0000033a,0x00050041,0x00000036,0x0000033b,0x00000061,
+ 0x0000008d,0x0004003d,0x00000009,0x0000033c,0x0000033b,0x0004003d,0x00000009,0x0000033d,
+ 0x00000062,0x000500b8,0x00000006,0x0000033e,0x0000033c,0x0000033d,0x000300f7,0x00000340,
+ 0x00000000,0x000400fa,0x0000033e,0x0000033f,0x00000340,0x000200f8,0x0000033f,0x00050041,
+ 0x00000036,0x00000341,0x00000335,0x00000084,0x0004003d,0x00000009,0x00000342,0x00000341,
+ 0x000500ba,0x00000006,0x00000343,0x00000342,0x000002b1,0x000200f9,0x00000340,0x000200f8,
+ 0x00000340,0x000700f5,0x00000006,0x00000344,0x0000033e,0x0000033a,0x00000343,0x0000033f,
+ 0x000300f7,0x00000346,0x00000000,0x000400fa,0x00000344,0x00000345,0x00000346,0x000200f8,
+ 0x00000345,0x00050041,0x00000036,0x00000347,0x00000335,0x0000008d,0x0004003d,0x00000009,
+ 0x00000348,0x00000347,0x000500b4,0x00000006,0x00000349,0x00000348,0x0000011a,0x000200f9,
+ 0x00000346,0x000200f8,0x00000346,0x000700f5,0x00000006,0x0000034a,0x00000344,0x00000340,
+ 0x00000349,0x00000345,0x000400fa,0x0000034a,0x00000337,0x00000338,0x000200f8,0x00000337,
+ 0x0004003d,0x00000027,0x0000034b,0x0000005f,0x0004003d,0x0000000a,0x0000034c,0x00000061,
+ 0x00070058,0x00000012,0x0000034d,0x0000034b,0x0000034c,0x00000002,0x0000011a,0x0007004f,
+ 0x0000000a,0x0000034e,0x0000034d,0x0000034d,0x00000000,0x00000001,0x0003003e,0x00000335,
+ 0x0000034e,0x00050041,0x0000009b,0x00000350,0x00000098,0x0000009a,0x0004003d,0x00000012,
+ 0x00000351,0x00000350,0x0007004f,0x0000000a,0x00000352,0x00000351,0x00000351,0x00000000,
+ 0x00000001,0x0004003d,0x0000000a,0x00000353,0x00000061,0x0008000c,0x0000000a,0x00000354,
+ 0x00000001,0x00000032,0x0000034f,0x00000352,0x00000353,0x0003003e,0x00000061,0x00000354,
+ 0x000200f9,0x00000339,0x000200f8,0x00000339,0x000200f9,0x00000336,0x000200f8,0x00000338,
+ 0x0004003d,0x0000000a,0x00000357,0x00000335,0x0007004f,0x0000000a,0x00000358,0x00000357,
+ 0x00000357,0x00000001,0x00000000,0x0003003e,0x00000356,0x00000358,0x0003003e,0x00000359,
+ 0x0000011e,0x00070039,0x00000009,0x0000035a,0x0000004a,0x00000060,0x00000356,0x00000359,
+ 0x0008000c,0x00000009,0x0000035b,0x00000001,0x00000032,0x000002c7,0x0000035a,0x000002cc,
+ 0x0003003e,0x00000355,0x0000035b,0x00060041,0x0000012c,0x0000035c,0x00000098,0x0000009a,
+ 0x0000008d,0x0004003d,0x00000009,0x0000035d,0x0000035c,0x0004007f,0x00000009,0x0000035e,
+ 0x0000035d,0x0004003d,0x00000009,0x0000035f,0x00000355,0x00050041,0x00000036,0x00000360,
+ 0x00000061,0x0000008d,0x0004003d,0x00000009,0x00000361,0x00000360,0x0008000c,0x00000009,
+ 0x00000362,0x00000001,0x00000032,0x0000035e,0x0000035f,0x00000361,0x000200fe,0x00000362,
+ 0x00010038,0x00050036,0x0000000a,0x0000006b,0x00000000,0x00000065,0x00030037,0x00000028,
+ 0x00000066,0x00030037,0x0000000b,0x00000067,0x00030037,0x00000036,0x00000068,0x00030037,
+ 0x00000036,0x00000069,0x00030037,0x00000036,0x0000006a,0x000200f8,0x0000006c,0x0004003b,
+ 0x0000000b,0x00000365,0x00000007,0x0004003d,0x00000009,0x00000369,0x00000068,0x0004003d,
+ 0x00000009,0x0000036a,0x00000069,0x00050050,0x0000000a,0x0000036b,0x00000369,0x0000036a,
+ 0x0005008e,0x0000000a,0x0000036c,0x0000036b,0x00000368,0x0006000c,0x0000000a,0x0000036d,
+ 0x00000001,0x00000001,0x0000036c,0x0004003d,0x0000000a,0x0000036e,0x00000067,0x0008000c,
+ 0x0000000a,0x0000036f,0x00000001,0x00000032,0x00000367,0x0000036d,0x0000036e,0x0003003e,
+ 0x00000365,0x0000036f,0x0004003d,0x0000000a,0x00000370,0x00000365,0x0008000c,0x0000000a,
+ 0x00000371,0x00000001,0x00000032,0x0000016e,0x00000370,0x00000172,0x0003003e,0x00000365,
+ 0x00000371,0x0004003d,0x00000009,0x00000372,0x0000006a,0x00050041,0x00000036,0x00000373,
+ 0x00000365,0x0000008d,0x0004003d,0x00000009,0x00000374,0x00000373,0x0008000c,0x00000009,
+ 0x00000375,0x00000001,0x00000032,0x00000178,0x00000372,0x00000374,0x00050041,0x00000036,
+ 0x00000376,0x00000365,0x0000008d,0x0003003e,0x00000376,0x00000375,0x0004003d,0x00000027,
+ 0x00000377,0x00000066,0x0004003d,0x0000000a,0x00000378,0x00000365,0x00070058,0x00000012,
+ 0x00000379,0x00000377,0x00000378,0x00000002,0x0000011a,0x0007004f,0x0000000a,0x0000037a,
+ 0x00000379,0x00000379,0x00000000,0x00000001,0x000200fe,0x0000037a,0x00010038,0x00050036,
+ 0x00000002,0x00000072,0x00000000,0x0000006d,0x00030037,0x00000028,0x0000006e,0x00030037,
+ 0x0000000b,0x0000006f,0x00030037,0x00000021,0x00000070,0x00030037,0x0000000b,0x00000071,
+ 0x000200f8,0x00000073,0x0004003b,0x0000000b,0x0000037d,0x00000007,0x0004003b,0x0000000b,
+ 0x00000382,0x00000007,0x0004003b,0x0000000b,0x0000038e,0x00000007,0x0004003d,0x0000000a,
+ 0x0000037e,0x00000071,0x0004003d,0x0000000a,0x0000037f,0x00000071,0x0007004f,0x0000000a,
+ 0x00000380,0x0000037f,0x0000037f,0x00000001,0x00000000,0x0007000c,0x0000000a,0x00000381,
+ 0x00000001,0x00000030,0x0000037e,0x00000380,0x0003003e,0x0000037d,0x00000381,0x0004003d,
+ 0x0000000a,0x00000384,0x0000037d,0x0005008e,0x0000000a,0x00000385,0x00000384,0x00000383,
+ 0x0003003e,0x00000382,0x00000385,0x00050041,0x00000036,0x00000386,0x0000037d,0x00000084,
+ 0x0004003d,0x00000009,0x00000387,0x00000386,0x00050041,0x00000036,0x00000388,0x0000037d,
+ 0x0000008d,0x0004003d,0x00000009,0x00000389,0x00000388,0x00050081,0x00000009,0x0000038a,
+ 0x00000387,0x00000389,0x0004003d,0x0000000a,0x0000038b,0x00000382,0x00050050,0x0000000a,
+ 0x0000038c,0x0000038a,0x0000038a,0x00050088,0x0000000a,0x0000038d,0x0000038b,0x0000038c,
+ 0x0003003e,0x00000382,0x0000038d,0x0003003e,0x0000038e,0x00000219,0x00050041,0x00000036,
+ 0x0000038f,0x00000382,0x00000084,0x0004003d,0x00000009,0x00000390,0x0000038f,0x0004003d,
+ 0x00000027,0x00000391,0x0000006e,0x0004003d,0x00000012,0x00000392,0x00000070,0x0007004f,
+ 0x0000000a,0x00000393,0x00000392,0x00000392,0x00000000,0x00000001,0x00080058,0x00000012,
+ 0x00000395,0x00000391,0x00000393,0x0000000a,0x0000011a,0x00000394,0x00050051,0x00000009,
+ 0x00000396,0x00000395,0x00000000,0x00050085,0x00000009,0x00000397,0x00000390,0x00000396,
+ 0x00050041,0x00000036,0x00000398,0x0000038e,0x00000084,0x0004003d,0x00000009,0x00000399,
+ 0x00000398,0x00050083,0x00000009,0x0000039a,0x00000399,0x00000397,0x00050041,0x00000036,
+ 0x0000039b,0x0000038e,0x00000084,0x0003003e,0x0000039b,0x0000039a,0x00050041,0x00000036,
+ 0x0000039c,0x00000382,0x0000008d,0x0004003d,0x00000009,0x0000039d,0x0000039c,0x0004003d,
+ 0x00000027,0x0000039e,0x0000006e,0x0004003d,0x00000012,0x0000039f,0x00000070,0x0007004f,
+ 0x0000000a,0x000003a0,0x0000039f,0x0000039f,0x00000002,0x00000003,0x00080058,0x00000012,
+ 0x000003a2,0x0000039e,0x000003a0,0x0000000a,0x0000011a,0x000003a1,0x00050051,0x00000009,
+ 0x000003a3,0x000003a2,0x00000000,0x00050085,0x00000009,0x000003a4,0x0000039d,0x000003a3,
+ 0x00050041,0x00000036,0x000003a5,0x0000038e,0x00000084,0x0004003d,0x00000009,0x000003a6,
+ 0x000003a5,0x00050083,0x00000009,0x000003a7,0x000003a6,0x000003a4,0x00050041,0x00000036,
+ 0x000003a8,0x0000038e,0x00000084,0x0003003e,0x000003a8,0x000003a7,0x00050041,0x00000036,
+ 0x000003a9,0x00000382,0x00000084,0x0004003d,0x00000009,0x000003aa,0x000003a9,0x0004003d,
+ 0x00000027,0x000003ab,0x0000006e,0x0004003d,0x00000012,0x000003ac,0x00000070,0x0007004f,
+ 0x0000000a,0x000003ad,0x000003ac,0x000003ac,0x00000000,0x00000001,0x00080058,0x00000012,
+ 0x000003b0,0x000003ab,0x000003ad,0x0000000a,0x0000011a,0x000003af,0x00050051,0x00000009,
+ 0x000003b1,0x000003b0,0x00000000,0x00050085,0x00000009,0x000003b2,0x000003aa,0x000003b1,
+ 0x00050041,0x00000036,0x000003b3,0x0000038e,0x0000008d,0x0004003d,0x00000009,0x000003b4,
+ 0x000003b3,0x00050083,0x00000009,0x000003b5,0x000003b4,0x000003b2,0x00050041,0x00000036,
+ 0x000003b6,0x0000038e,0x0000008d,0x0003003e,0x000003b6,0x000003b5,0x00050041,0x00000036,
+ 0x000003b7,0x00000382,0x0000008d,0x0004003d,0x00000009,0x000003b8,0x000003b7,0x0004003d,
+ 0x00000027,0x000003b9,0x0000006e,0x0004003d,0x00000012,0x000003ba,0x00000070,0x0007004f,
+ 0x0000000a,0x000003bb,0x000003ba,0x000003ba,0x00000002,0x00000003,0x00080058,0x00000012,
+ 0x000003bd,0x000003b9,0x000003bb,0x0000000a,0x0000011a,0x000003bc,0x00050051,0x00000009,
+ 0x000003be,0x000003bd,0x00000000,0x00050085,0x00000009,0x000003bf,0x000003b8,0x000003be,
+ 0x00050041,0x00000036,0x000003c0,0x0000038e,0x0000008d,0x0004003d,0x00000009,0x000003c1,
+ 0x000003c0,0x00050083,0x00000009,0x000003c2,0x000003c1,0x000003bf,0x00050041,0x00000036,
+ 0x000003c3,0x0000038e,0x0000008d,0x0003003e,0x000003c3,0x000003c2,0x0004003d,0x0000000a,
+ 0x000003c4,0x0000038e,0x00050050,0x0000000a,0x000003c5,0x0000011a,0x0000011a,0x00050050,
+ 0x0000000a,0x000003c6,0x000000ec,0x000000ec,0x0008000c,0x0000000a,0x000003c7,0x00000001,
+ 0x0000002b,0x000003c4,0x000003c5,0x000003c6,0x0004003d,0x0000000a,0x000003c8,0x0000006f,
+ 0x00050085,0x0000000a,0x000003c9,0x000003c8,0x000003c7,0x0003003e,0x0000006f,0x000003c9,
+ 0x000100fd,0x00010038,0x00050036,0x00000002,0x00000078,0x00000000,0x0000006d,0x00030037,
+ 0x00000028,0x00000074,0x00030037,0x0000000b,0x00000075,0x00030037,0x00000021,0x00000076,
+ 0x00030037,0x0000000b,0x00000077,0x000200f8,0x00000079,0x0004003b,0x0000000b,0x000003ca,
+ 0x00000007,0x0004003b,0x0000000b,0x000003cf,0x00000007,0x0004003b,0x0000000b,0x000003da,
+ 0x00000007,0x0004003d,0x0000000a,0x000003cb,0x00000077,0x0004003d,0x0000000a,0x000003cc,
+ 0x00000077,0x0007004f,0x0000000a,0x000003cd,0x000003cc,0x000003cc,0x00000001,0x00000000,
+ 0x0007000c,0x0000000a,0x000003ce,0x00000001,0x00000030,0x000003cb,0x000003cd,0x0003003e,
+ 0x000003ca,0x000003ce,0x0004003d,0x0000000a,0x000003d0,0x000003ca,0x0005008e,0x0000000a,
+ 0x000003d1,0x000003d0,0x00000383,0x0003003e,0x000003cf,0x000003d1,0x00050041,0x00000036,
+ 0x000003d2,0x000003ca,0x00000084,0x0004003d,0x00000009,0x000003d3,0x000003d2,0x00050041,
+ 0x00000036,0x000003d4,0x000003ca,0x0000008d,0x0004003d,0x00000009,0x000003d5,0x000003d4,
+ 0x00050081,0x00000009,0x000003d6,0x000003d3,0x000003d5,0x0004003d,0x0000000a,0x000003d7,
+ 0x000003cf,0x00050050,0x0000000a,0x000003d8,0x000003d6,0x000003d6,0x00050088,0x0000000a,
+ 0x000003d9,0x000003d7,0x000003d8,0x0003003e,0x000003cf,0x000003d9,0x0003003e,0x000003da,
+ 0x00000219,0x00050041,0x00000036,0x000003db,0x000003cf,0x00000084,0x0004003d,0x00000009,
+ 0x000003dc,0x000003db,0x0004003d,0x00000027,0x000003dd,0x00000074,0x0004003d,0x00000012,
+ 0x000003de,0x00000076,0x0007004f,0x0000000a,0x000003df,0x000003de,0x000003de,0x00000000,
+ 0x00000001,0x00080058,0x00000012,0x000003e0,0x000003dd,0x000003df,0x0000000a,0x0000011a,
+ 0x000001de,0x00050051,0x00000009,0x000003e1,0x000003e0,0x00000001,0x00050085,0x00000009,
+ 0x000003e2,0x000003dc,0x000003e1,0x00050041,0x00000036,0x000003e3,0x000003da,0x00000084,
+ 0x0004003d,0x00000009,0x000003e4,0x000003e3,0x00050083,0x00000009,0x000003e5,0x000003e4,
+ 0x000003e2,0x00050041,0x00000036,0x000003e6,0x000003da,0x00000084,0x0003003e,0x000003e6,
+ 0x000003e5,0x00050041,0x00000036,0x000003e7,0x000003cf,0x0000008d,0x0004003d,0x00000009,
+ 0x000003e8,0x000003e7,0x0004003d,0x00000027,0x000003e9,0x00000074,0x0004003d,0x00000012,
+ 0x000003ea,0x00000076,0x0007004f,0x0000000a,0x000003eb,0x000003ea,0x000003ea,0x00000002,
+ 0x00000003,0x00080058,0x00000012,0x000003ec,0x000003e9,0x000003eb,0x0000000a,0x0000011a,
+ 0x000003a1,0x00050051,0x00000009,0x000003ed,0x000003ec,0x00000001,0x00050085,0x00000009,
+ 0x000003ee,0x000003e8,0x000003ed,0x00050041,0x00000036,0x000003ef,0x000003da,0x00000084,
+ 0x0004003d,0x00000009,0x000003f0,0x000003ef,0x00050083,0x00000009,0x000003f1,0x000003f0,
+ 0x000003ee,0x00050041,0x00000036,0x000003f2,0x000003da,0x00000084,0x0003003e,0x000003f2,
+ 0x000003f1,0x00050041,0x00000036,0x000003f3,0x000003cf,0x00000084,0x0004003d,0x00000009,
+ 0x000003f4,0x000003f3,0x0004003d,0x00000027,0x000003f5,0x00000074,0x0004003d,0x00000012,
+ 0x000003f6,0x00000076,0x0007004f,0x0000000a,0x000003f7,0x000003f6,0x000003f6,0x00000000,
+ 0x00000001,0x00080058,0x00000012,0x000003f9,0x000003f5,0x000003f7,0x0000000a,0x0000011a,
+ 0x000003f8,0x00050051,0x00000009,0x000003fa,0x000003f9,0x00000001,0x00050085,0x00000009,
+ 0x000003fb,0x000003f4,0x000003fa,0x00050041,0x00000036,0x000003fc,0x000003da,0x0000008d,
+ 0x0004003d,0x00000009,0x000003fd,0x000003fc,0x00050083,0x00000009,0x000003fe,0x000003fd,
+ 0x000003fb,0x00050041,0x00000036,0x000003ff,0x000003da,0x0000008d,0x0003003e,0x000003ff,
+ 0x000003fe,0x00050041,0x00000036,0x00000400,0x000003cf,0x0000008d,0x0004003d,0x00000009,
+ 0x00000401,0x00000400,0x0004003d,0x00000027,0x00000402,0x00000074,0x0004003d,0x00000012,
+ 0x00000403,0x00000076,0x0007004f,0x0000000a,0x00000404,0x00000403,0x00000403,0x00000002,
+ 0x00000003,0x00080058,0x00000012,0x00000406,0x00000402,0x00000404,0x0000000a,0x0000011a,
+ 0x00000405,0x00050051,0x00000009,0x00000407,0x00000406,0x00000001,0x00050085,0x00000009,
+ 0x00000408,0x00000401,0x00000407,0x00050041,0x00000036,0x00000409,0x000003da,0x0000008d,
+ 0x0004003d,0x00000009,0x0000040a,0x00000409,0x00050083,0x00000009,0x0000040b,0x0000040a,
+ 0x00000408,0x00050041,0x00000036,0x0000040c,0x000003da,0x0000008d,0x0003003e,0x0000040c,
+ 0x0000040b,0x0004003d,0x0000000a,0x0000040d,0x000003da,0x00050050,0x0000000a,0x0000040e,
+ 0x0000011a,0x0000011a,0x00050050,0x0000000a,0x0000040f,0x000000ec,0x000000ec,0x0008000c,
+ 0x0000000a,0x00000410,0x00000001,0x0000002b,0x0000040d,0x0000040e,0x0000040f,0x0004003d,
+ 0x0000000a,0x00000411,0x00000075,0x00050085,0x0000000a,0x00000412,0x00000411,0x00000410,
+ 0x0003003e,0x00000075,0x00000412,0x000100fd,0x00010038,0x00050036,0x00000012,0x00000082,
+ 0x00000000,0x0000007a,0x00030037,0x0000000b,0x0000007b,0x00030037,0x0000000b,0x0000007c,
+ 0x00030037,0x00000016,0x0000007d,0x00030037,0x00000028,0x0000007e,0x00030037,0x00000028,
+ 0x0000007f,0x00030037,0x00000028,0x00000080,0x00030037,0x00000021,0x00000081,0x000200f8,
+ 0x00000083,0x0004003b,0x00000021,0x00000413,0x00000007,0x0004003b,0x0000000b,0x00000415,
+ 0x00000007,0x0004003b,0x0000000b,0x0000041f,0x00000007,0x0004003b,0x0000000b,0x00000421,
+ 0x00000007,0x0004003b,0x00000021,0x00000423,0x00000007,0x0004003b,0x000000f1,0x00000432,
+ 0x00000007,0x0004003b,0x0000000b,0x00000433,0x00000007,0x0004003b,0x00000036,0x00000437,
+ 0x00000007,0x0004003b,0x0000000b,0x0000043f,0x00000007,0x0004003b,0x00000036,0x00000443,
+ 0x00000007,0x0004003b,0x0000000b,0x00000449,0x00000007,0x0004003b,0x00000036,0x0000044d,
+ 0x00000007,0x0004003b,0x0000000b,0x0000045f,0x00000007,0x0004003b,0x00000036,0x00000462,
+ 0x00000007,0x0004003b,0x0000000b,0x00000468,0x00000007,0x0004003b,0x00000036,0x0000046a,
+ 0x00000007,0x0004003b,0x00000036,0x0000046c,0x00000007,0x0004003b,0x00000036,0x0000046e,
+ 0x00000007,0x0004003b,0x0000000b,0x00000479,0x00000007,0x0004003b,0x00000021,0x0000047c,
+ 0x00000007,0x0004003b,0x0000000b,0x0000047f,0x00000007,0x0004003b,0x000000f1,0x0000048e,
+ 0x00000007,0x0004003b,0x0000000b,0x0000048f,0x00000007,0x0004003b,0x00000036,0x00000493,
+ 0x00000007,0x0004003b,0x0000000b,0x0000049b,0x00000007,0x0004003b,0x00000036,0x0000049f,
+ 0x00000007,0x0004003b,0x0000000b,0x000004a5,0x00000007,0x0004003b,0x00000036,0x000004a9,
+ 0x00000007,0x0004003b,0x0000000b,0x000004bb,0x00000007,0x0004003b,0x00000036,0x000004be,
+ 0x00000007,0x0004003b,0x0000000b,0x000004c4,0x00000007,0x0004003b,0x00000036,0x000004c6,
+ 0x00000007,0x0004003b,0x00000036,0x000004c8,0x00000007,0x0004003b,0x00000036,0x000004ca,
+ 0x00000007,0x0004003b,0x0000000b,0x000004d5,0x00000007,0x0004003b,0x00000021,0x000004d8,
+ 0x00000007,0x0004003b,0x0000000b,0x000004db,0x00000007,0x0003003e,0x00000413,0x00000414,
+ 0x0004003d,0x00000027,0x00000416,0x0000007e,0x0004003d,0x0000000a,0x00000417,0x0000007b,
+ 0x00050057,0x00000012,0x00000418,0x00000416,0x00000417,0x0007004f,0x0000000a,0x00000419,
+ 0x00000418,0x00000418,0x00000000,0x00000001,0x0003003e,0x00000415,0x00000419,0x00050041,
+ 0x00000036,0x0000041a,0x00000415,0x0000008d,0x0004003d,0x00000009,0x0000041b,0x0000041a,
+ 0x000500ba,0x00000006,0x0000041c,0x0000041b,0x0000011a,0x000300f7,0x0000041e,0x00000000,
+ 0x000400fa,0x0000041c,0x0000041d,0x0000041e,0x000200f8,0x0000041d,0x0004003d,0x0000000a,
+ 0x00000420,0x0000007b,0x0003003e,0x0000041f,0x00000420,0x0004003d,0x0000000a,0x00000422,
+ 0x00000415,0x0003003e,0x00000421,0x00000422,0x0004003d,0x00000012,0x00000424,0x00000081,
+ 0x0003003e,0x00000423,0x00000424,0x00090039,0x0000000a,0x00000425,0x00000044,0x0000007e,
+ 0x0000007f,0x0000041f,0x00000421,0x00000423,0x00050041,0x00000036,0x00000426,0x00000413,
+ 0x00000084,0x00050051,0x00000009,0x00000427,0x00000425,0x00000000,0x0003003e,0x00000426,
+ 0x00000427,0x00050041,0x00000036,0x00000428,0x00000413,0x0000008d,0x00050051,0x00000009,
+ 0x00000429,0x00000425,0x00000001,0x0003003e,0x00000428,0x00000429,0x00050041,0x00000036,
+ 0x0000042a,0x00000413,0x00000084,0x0004003d,0x00000009,0x0000042b,0x0000042a,0x00050041,
+ 0x00000036,0x0000042c,0x00000413,0x0000008d,0x0004003d,0x00000009,0x0000042d,0x0000042c,
+ 0x0004007f,0x00000009,0x0000042e,0x0000042d,0x000500b4,0x00000006,0x0000042f,0x0000042b,
+ 0x0000042e,0x000300f7,0x00000431,0x00000000,0x000400fa,0x0000042f,0x00000430,0x00000487,
+ 0x000200f8,0x00000430,0x00050041,0x00000021,0x00000434,0x0000007d,0x000000a0,0x0004003d,
+ 0x00000012,0x00000435,0x00000434,0x0007004f,0x0000000a,0x00000436,0x00000435,0x00000435,
+ 0x00000000,0x00000001,0x0003003e,0x00000433,0x00000436,0x00060041,0x00000036,0x00000438,
+ 0x0000007d,0x000000b4,0x00000084,0x0004003d,0x00000009,0x00000439,0x00000438,0x0003003e,
+ 0x00000437,0x00000439,0x00080039,0x00000009,0x0000043a,0x00000051,0x0000007e,0x00000080,
+ 0x00000433,0x00000437,0x00050041,0x00000036,0x0000043b,0x00000432,0x00000084,0x0003003e,
+ 0x0000043b,0x0000043a,0x00060041,0x00000036,0x0000043c,0x0000007d,0x0000009a,0x0000008d,
+ 0x0004003d,0x00000009,0x0000043d,0x0000043c,0x00050041,0x00000036,0x0000043e,0x00000432,
+ 0x0000008d,0x0003003e,0x0000043e,0x0000043d,0x00050041,0x00000036,0x00000440,0x00000432,
+ 0x00000084,0x0004003d,0x00000009,0x00000441,0x00000440,0x00050041,0x00000036,0x00000442,
+ 0x0000043f,0x00000084,0x0003003e,0x00000442,0x00000441,0x0004003d,0x00000027,0x00000444,
+ 0x0000007e,0x0004003d,0x000000f0,0x00000445,0x00000432,0x0007004f,0x0000000a,0x00000446,
+ 0x00000445,0x00000445,0x00000000,0x00000001,0x00070058,0x00000012,0x00000447,0x00000444,
+ 0x00000446,0x00000002,0x0000011a,0x00050051,0x00000009,0x00000448,0x00000447,0x00000000,
+ 0x0003003e,0x00000443,0x00000448,0x00050041,0x00000021,0x0000044a,0x0000007d,0x000000a0,
+ 0x0004003d,0x00000012,0x0000044b,0x0000044a,0x0007004f,0x0000000a,0x0000044c,0x0000044b,
+ 0x0000044b,0x00000002,0x00000003,0x0003003e,0x00000449,0x0000044c,0x00060041,0x00000036,
+ 0x0000044e,0x0000007d,0x000000b4,0x0000008d,0x0004003d,0x00000009,0x0000044f,0x0000044e,
+ 0x0003003e,0x0000044d,0x0000044f,0x00080039,0x00000009,0x00000450,0x00000057,0x0000007e,
+ 0x00000080,0x00000449,0x0000044d,0x00050041,0x00000036,0x00000451,0x00000432,0x000000e2,
+ 0x0003003e,0x00000451,0x00000450,0x00050041,0x00000036,0x00000452,0x00000432,0x000000e2,
+ 0x0004003d,0x00000009,0x00000453,0x00000452,0x00050041,0x00000036,0x00000454,0x0000043f,
+ 0x0000008d,0x0003003e,0x00000454,0x00000453,0x00050041,0x0000009b,0x00000455,0x00000098,
+ 0x0000009a,0x0004003d,0x00000012,0x00000456,0x00000455,0x0007004f,0x0000000a,0x00000457,
+ 0x00000456,0x00000456,0x00000002,0x00000002,0x0004003d,0x0000000a,0x00000458,0x0000043f,
+ 0x0004003d,0x0000000a,0x00000459,0x0000007c,0x0007004f,0x0000000a,0x0000045a,0x00000459,
+ 0x00000459,0x00000000,0x00000000,0x0004007f,0x0000000a,0x0000045b,0x0000045a,0x0008000c,
+ 0x0000000a,0x0000045c,0x00000001,0x00000032,0x00000457,0x00000458,0x0000045b,0x0006000c,
+ 0x0000000a,0x0000045d,0x00000001,0x00000001,0x0000045c,0x0006000c,0x0000000a,0x0000045e,
+ 0x00000001,0x00000004,0x0000045d,0x0003003e,0x0000043f,0x0000045e,0x0004003d,0x0000000a,
+ 0x00000460,0x0000043f,0x0006000c,0x0000000a,0x00000461,0x00000001,0x0000001f,0x00000460,
+ 0x0003003e,0x0000045f,0x00000461,0x0004003d,0x00000027,0x00000463,0x0000007e,0x0004003d,
+ 0x000000f0,0x00000464,0x00000432,0x0007004f,0x0000000a,0x00000465,0x00000464,0x00000464,
+ 0x00000002,0x00000001,0x00080058,0x00000012,0x00000466,0x00000463,0x00000465,0x0000000a,
+ 0x0000011a,0x000001de,0x00050051,0x00000009,0x00000467,0x00000466,0x00000000,0x0003003e,
+ 0x00000462,0x00000467,0x0004003d,0x0000000a,0x00000469,0x0000045f,0x0003003e,0x00000468,
+ 0x00000469,0x0004003d,0x00000009,0x0000046b,0x00000443,0x0003003e,0x0000046a,0x0000046b,
+ 0x0004003d,0x00000009,0x0000046d,0x00000462,0x0003003e,0x0000046c,0x0000046d,0x00050041,
+ 0x00000036,0x0000046f,0x00000081,0x0000008d,0x0004003d,0x00000009,0x00000470,0x0000046f,
+ 0x0003003e,0x0000046e,0x00000470,0x00090039,0x0000000a,0x00000471,0x0000006b,0x0000007f,
+ 0x00000468,0x0000046a,0x0000046c,0x0000046e,0x00050041,0x00000036,0x00000472,0x00000413,
+ 0x00000084,0x00050051,0x00000009,0x00000473,0x00000471,0x00000000,0x0003003e,0x00000472,
+ 0x00000473,0x00050041,0x00000036,0x00000474,0x00000413,0x0000008d,0x00050051,0x00000009,
+ 0x00000475,0x00000471,0x00000001,0x0003003e,0x00000474,0x00000475,0x00050041,0x00000036,
+ 0x00000476,0x0000007b,0x0000008d,0x0004003d,0x00000009,0x00000477,0x00000476,0x00050041,
+ 0x00000036,0x00000478,0x00000432,0x0000008d,0x0003003e,0x00000478,0x00000477,0x0004003d,
+ 0x00000012,0x0000047a,0x00000413,0x0007004f,0x0000000a,0x0000047b,0x0000047a,0x0000047a,
+ 0x00000000,0x00000001,0x0003003e,0x00000479,0x0000047b,0x0004003d,0x000000f0,0x0000047d,
+ 0x00000432,0x0009004f,0x00000012,0x0000047e,0x0000047d,0x0000047d,0x00000000,0x00000001,
+ 0x00000002,0x00000001,0x0003003e,0x0000047c,0x0000047e,0x0004003d,0x0000000a,0x00000480,
+ 0x0000043f,0x0003003e,0x0000047f,0x00000480,0x00080039,0x00000002,0x00000481,0x00000072,
+ 0x0000007e,0x00000479,0x0000047c,0x0000047f,0x0004003d,0x0000000a,0x00000482,0x00000479,
+ 0x00050041,0x00000036,0x00000483,0x00000413,0x00000084,0x00050051,0x00000009,0x00000484,
+ 0x00000482,0x00000000,0x0003003e,0x00000483,0x00000484,0x00050041,0x00000036,0x00000485,
+ 0x00000413,0x0000008d,0x00050051,0x00000009,0x00000486,0x00000482,0x00000001,0x0003003e,
+ 0x00000485,0x00000486,0x000200f9,0x00000431,0x000200f8,0x00000487,0x00050041,0x00000036,
+ 0x00000488,0x00000415,0x00000084,0x0003003e,0x00000488,0x0000011a,0x000200f9,0x00000431,
+ 0x000200f8,0x00000431,0x000200f9,0x0000041e,0x000200f8,0x0000041e,0x00050041,0x00000036,
+ 0x00000489,0x00000415,0x00000084,0x0004003d,0x00000009,0x0000048a,0x00000489,0x000500ba,
+ 0x00000006,0x0000048b,0x0000048a,0x0000011a,0x000300f7,0x0000048d,0x00000000,0x000400fa,
+ 0x0000048b,0x0000048c,0x0000048d,0x000200f8,0x0000048c,0x00050041,0x00000021,0x00000490,
+ 0x0000007d,0x0000009a,0x0004003d,0x00000012,0x00000491,0x00000490,0x0007004f,0x0000000a,
+ 0x00000492,0x00000491,0x00000491,0x00000000,0x00000001,0x0003003e,0x0000048f,0x00000492,
+ 0x00060041,0x00000036,0x00000494,0x0000007d,0x000000b4,0x000000e2,0x0004003d,0x00000009,
+ 0x00000495,0x00000494,0x0003003e,0x00000493,0x00000495,0x00080039,0x00000009,0x00000496,
+ 0x0000005d,0x0000007e,0x00000080,0x0000048f,0x00000493,0x00050041,0x00000036,0x00000497,
+ 0x0000048e,0x0000008d,0x0003003e,0x00000497,0x00000496,0x00060041,0x00000036,0x00000498,
+ 0x0000007d,0x000000a0,0x00000084,0x0004003d,0x00000009,0x00000499,0x00000498,0x00050041,
+ 0x00000036,0x0000049a,0x0000048e,0x00000084,0x0003003e,0x0000049a,0x00000499,0x00050041,
+ 0x00000036,0x0000049c,0x0000048e,0x0000008d,0x0004003d,0x00000009,0x0000049d,0x0000049c,
+ 0x00050041,0x00000036,0x0000049e,0x0000049b,0x00000084,0x0003003e,0x0000049e,0x0000049d,
+ 0x0004003d,0x00000027,0x000004a0,0x0000007e,0x0004003d,0x000000f0,0x000004a1,0x0000048e,
+ 0x0007004f,0x0000000a,0x000004a2,0x000004a1,0x000004a1,0x00000000,0x00000001,0x00070058,
+ 0x00000012,0x000004a3,0x000004a0,0x000004a2,0x00000002,0x0000011a,0x00050051,0x00000009,
+ 0x000004a4,0x000004a3,0x00000001,0x0003003e,0x0000049f,0x000004a4,0x00050041,0x00000021,
+ 0x000004a6,0x0000007d,0x0000009a,0x0004003d,0x00000012,0x000004a7,0x000004a6,0x0007004f,
+ 0x0000000a,0x000004a8,0x000004a7,0x000004a7,0x00000002,0x00000003,0x0003003e,0x000004a5,
+ 0x000004a8,0x00060041,0x00000036,0x000004aa,0x0000007d,0x000000b4,0x00000014,0x0004003d,
+ 0x00000009,0x000004ab,0x000004aa,0x0003003e,0x000004a9,0x000004ab,0x00080039,0x00000009,
+ 0x000004ac,0x00000063,0x0000007e,0x00000080,0x000004a5,0x000004a9,0x00050041,0x00000036,
+ 0x000004ad,0x0000048e,0x000000e2,0x0003003e,0x000004ad,0x000004ac,0x00050041,0x00000036,
+ 0x000004ae,0x0000048e,0x000000e2,0x0004003d,0x00000009,0x000004af,0x000004ae,0x00050041,
+ 0x00000036,0x000004b0,0x0000049b,0x0000008d,0x0003003e,0x000004b0,0x000004af,0x00050041,
+ 0x0000009b,0x000004b1,0x00000098,0x0000009a,0x0004003d,0x00000012,0x000004b2,0x000004b1,
+ 0x0007004f,0x0000000a,0x000004b3,0x000004b2,0x000004b2,0x00000003,0x00000003,0x0004003d,
+ 0x0000000a,0x000004b4,0x0000049b,0x0004003d,0x0000000a,0x000004b5,0x0000007c,0x0007004f,
+ 0x0000000a,0x000004b6,0x000004b5,0x000004b5,0x00000001,0x00000001,0x0004007f,0x0000000a,
+ 0x000004b7,0x000004b6,0x0008000c,0x0000000a,0x000004b8,0x00000001,0x00000032,0x000004b3,
+ 0x000004b4,0x000004b7,0x0006000c,0x0000000a,0x000004b9,0x00000001,0x00000001,0x000004b8,
+ 0x0006000c,0x0000000a,0x000004ba,0x00000001,0x00000004,0x000004b9,0x0003003e,0x0000049b,
+ 0x000004ba,0x0004003d,0x0000000a,0x000004bc,0x0000049b,0x0006000c,0x0000000a,0x000004bd,
+ 0x00000001,0x0000001f,0x000004bc,0x0003003e,0x000004bb,0x000004bd,0x0004003d,0x00000027,
+ 0x000004bf,0x0000007e,0x0004003d,0x000000f0,0x000004c0,0x0000048e,0x0007004f,0x0000000a,
+ 0x000004c1,0x000004c0,0x000004c0,0x00000000,0x00000002,0x00080058,0x00000012,0x000004c2,
+ 0x000004bf,0x000004c1,0x0000000a,0x0000011a,0x00000394,0x00050051,0x00000009,0x000004c3,
+ 0x000004c2,0x00000001,0x0003003e,0x000004be,0x000004c3,0x0004003d,0x0000000a,0x000004c5,
+ 0x000004bb,0x0003003e,0x000004c4,0x000004c5,0x0004003d,0x00000009,0x000004c7,0x0000049f,
+ 0x0003003e,0x000004c6,0x000004c7,0x0004003d,0x00000009,0x000004c9,0x000004be,0x0003003e,
+ 0x000004c8,0x000004c9,0x00050041,0x00000036,0x000004cb,0x00000081,0x00000084,0x0004003d,
+ 0x00000009,0x000004cc,0x000004cb,0x0003003e,0x000004ca,0x000004cc,0x00090039,0x0000000a,
+ 0x000004cd,0x0000006b,0x0000007f,0x000004c4,0x000004c6,0x000004c8,0x000004ca,0x00050041,
+ 0x00000036,0x000004ce,0x00000413,0x000000e2,0x00050051,0x00000009,0x000004cf,0x000004cd,
+ 0x00000000,0x0003003e,0x000004ce,0x000004cf,0x00050041,0x00000036,0x000004d0,0x00000413,
+ 0x00000014,0x00050051,0x00000009,0x000004d1,0x000004cd,0x00000001,0x0003003e,0x000004d0,
+ 0x000004d1,0x00050041,0x00000036,0x000004d2,0x0000007b,0x00000084,0x0004003d,0x00000009,
+ 0x000004d3,0x000004d2,0x00050041,0x00000036,0x000004d4,0x0000048e,0x00000084,0x0003003e,
+ 0x000004d4,0x000004d3,0x0004003d,0x00000012,0x000004d6,0x00000413,0x0007004f,0x0000000a,
+ 0x000004d7,0x000004d6,0x000004d6,0x00000002,0x00000003,0x0003003e,0x000004d5,0x000004d7,
+ 0x0004003d,0x000000f0,0x000004d9,0x0000048e,0x0009004f,0x00000012,0x000004da,0x000004d9,
+ 0x000004d9,0x00000000,0x00000001,0x00000000,0x00000002,0x0003003e,0x000004d8,0x000004da,
+ 0x0004003d,0x0000000a,0x000004dc,0x0000049b,0x0003003e,0x000004db,0x000004dc,0x00080039,
+ 0x00000002,0x000004dd,0x00000078,0x0000007e,0x000004d5,0x000004d8,0x000004db,0x0004003d,
+ 0x0000000a,0x000004de,0x000004d5,0x00050041,0x00000036,0x000004df,0x00000413,0x000000e2,
+ 0x00050051,0x00000009,0x000004e0,0x000004de,0x00000000,0x0003003e,0x000004df,0x000004e0,
+ 0x00050041,0x00000036,0x000004e1,0x00000413,0x00000014,0x00050051,0x00000009,0x000004e2,
+ 0x000004de,0x00000001,0x0003003e,0x000004e1,0x000004e2,0x000200f9,0x0000048d,0x000200f8,
+ 0x0000048d,0x0004003d,0x00000012,0x000004e3,0x00000413,0x000200fe,0x000004e3,0x00010038
};
diff --git a/app/src/main/cpp/waylandcomp/src/compositor.c b/app/src/main/cpp/waylandcomp/src/compositor.c
index 112f731f5a..f17591cb16 100644
--- a/app/src/main/cpp/waylandcomp/src/compositor.c
+++ b/app/src/main/cpp/waylandcomp/src/compositor.c
@@ -343,6 +343,7 @@ volatile int g_hide_shell;
volatile int g_zero_copy;
static int g_zero_copy_paused;
+static int g_mirror_capture;
extern volatile int g_display_buffer_driver;
extern void droiddeck_on_overlay_planes(int planes);
static int g_overlay_planes_told = -1;
@@ -2961,7 +2962,7 @@ static void hdr_note_route(int route, const struct hdr_scene *hs) {
static int said = -1, said_tm = -1;
static const char *said_why;
const int tm = route != 0 && !droiddeck_color_output();
- if (route == said && tm == said_tm && (route != 1 || hs->why == said_why)) return;
+ if (route == said && tm == said_tm && (route < 1 || route > 2 || hs->why == said_why)) return;
int was = said;
said = route; said_why = hs->why; said_tm = tm;
char name[160] = "the HDR game";
@@ -2978,6 +2979,10 @@ static void hdr_note_route(int route, const struct hdr_scene *hs) {
"BT2020_PQ", name, hs->why ? hs->why : "?", droiddeck_color_sdr_white());
break;
case 2:
+ if (g_mirror_capture) {
+ droiddeck_log("color", "Mirror: %s is composed through the screen swapchain", name);
+ break;
+ }
if (tm)
droiddeck_log("color", "HDR with frame generation for %s, HDR output switched off: the scene is tone-mapped to "
"SDR and presented through an SDR screen swapchain", name);
@@ -3198,6 +3203,11 @@ static void render_scene(void) {
const int cardboard = vkp_cardboard_active();
struct hdr_scene hs;
int hdr_route = hdr_plan(&dl, w, h, fx_on, framegen, &hs);
+ /* Mirror's PixelCopy cannot see the separate game layer. Keep unimportable frames visible on top. */
+ if (g_mirror_capture && hdr_route != 3 && hs.n_hdr > 0) {
+ hdr_route = 2;
+ hs.why = "Mirror needs the screen swapchain";
+ }
const char *hdr_copy = NULL;
if (droiddeck_color_hdr_open()) {
hdr_note_route(hdr_route, &hs);
@@ -3263,16 +3273,16 @@ static void render_scene(void) {
else if (rendered && how == 2) droiddeck_color_frame_shown(hs.color, DROIDDECK_HDR_TONEMAPPED, 0);
else if (rendered) hdr_copy = "the HDR composition pass is unavailable on this driver";
}
- if (hdr_route == 0 && vkp_quest_layer_presentation() && !framegen && !cardboard && !cursor_on &&
+ if (hdr_route == 0 && !g_mirror_capture && vkp_quest_layer_presentation() && !framegen && !cardboard && !cursor_on &&
!ahb_only) {
settle_unwaited();
rendered = vkp_render(w, h, dl.d, dl.n) == 0;
} else if (hdr_route == 0 || hdr_route == 3) {
const int pass_on = fx_on || framegen;
tell_overlay_planes();
- const int fg_layer = framegen && hdr_route == 0 && framegen_fits_layer();
+ const int fg_layer = framegen && !g_mirror_capture && hdr_route == 0 && framegen_fits_layer();
g_framegen_layer = fg_layer;
- int li = (g_zero_copy && (!framegen || fg_layer) && !bfi && !cardboard && !cursor_on) ? layer_candidate(&dl, w, h) : -1;
+ int li = (g_zero_copy && !g_mirror_capture && (!framegen || fg_layer) && !bfi && !cardboard && !cursor_on) ? layer_candidate(&dl, w, h) : -1;
int over = li >= 0 ? dl.n - 1 - li : 0;
const int fx_blocks = (li >= 0 && fx_on && over > 0);
if (fx_blocks) { li = -1; over = 0; }
@@ -5002,6 +5012,12 @@ const char *droiddeck_client_name(struct wl_client *client) { return client_name
struct wl_display *droiddeck_get_display(void) { return g_display; }
void droiddeck_request_redraw(void) { schedule_render(); }
+void droiddeck_set_mirror_capture(int on) {
+ if (g_mirror_capture == on) return;
+ g_mirror_capture = on;
+ schedule_render();
+}
+
struct wl_resource *droiddeck_ime_target(void) {
struct surface *s;
if (g_ime_click && g_ime_click->mapped) return g_ime_click->resource;
diff --git a/app/src/main/cpp/waylandcomp/src/droiddeck_ext.c b/app/src/main/cpp/waylandcomp/src/droiddeck_ext.c
index 041f9c6c2b..e4ce7e201d 100644
--- a/app/src/main/cpp/waylandcomp/src/droiddeck_ext.c
+++ b/app/src/main/cpp/waylandcomp/src/droiddeck_ext.c
@@ -11,7 +11,7 @@
#include "ahb_swapchain.h"
#include "droiddeck_color.h"
-enum host_kind { HOST_CLIPBOARD = 1, HOST_TEXT_COMMIT, HOST_TEXT_PREEDIT, HOST_TEXT_DELETE, HOST_ZERO_COPY, HOST_HDR_OUTPUT, HOST_KEY, HOST_SELECT_GAME_FIELD };
+enum host_kind { HOST_CLIPBOARD = 1, HOST_TEXT_COMMIT, HOST_TEXT_PREEDIT, HOST_TEXT_DELETE, HOST_ZERO_COPY, HOST_HDR_OUTPUT, HOST_KEY, HOST_SELECT_GAME_FIELD, HOST_MIRROR_CAPTURE };
struct host_msg {
enum host_kind kind;
@@ -91,6 +91,9 @@ void droiddeck_host_text_delete(int before, int after) {
void droiddeck_host_zero_copy(int on, int live) {
host_post(HOST_ZERO_COPY, NULL, 0, on, live);
}
+void droiddeck_host_mirror_capture(int on) {
+ host_post(HOST_MIRROR_CAPTURE, NULL, 0, on, 0);
+}
void droiddeck_host_hdr_output(int on) {
host_post(HOST_HDR_OUTPUT, NULL, 0, on, 0);
}
@@ -271,6 +274,9 @@ static int on_wake(int fd, uint32_t mask, void *data) {
case HOST_ZERO_COPY:
ahb_swapchain_set_mode(m->a, m->b);
break;
+ case HOST_MIRROR_CAPTURE:
+ droiddeck_set_mirror_capture(m->a);
+ break;
case HOST_HDR_OUTPUT:
droiddeck_color_set_output(m->a);
break;
diff --git a/app/src/main/cpp/waylandcomp/src/droiddeck_ext.h b/app/src/main/cpp/waylandcomp/src/droiddeck_ext.h
index d7813eb7eb..bc67469eff 100644
--- a/app/src/main/cpp/waylandcomp/src/droiddeck_ext.h
+++ b/app/src/main/cpp/waylandcomp/src/droiddeck_ext.h
@@ -29,6 +29,8 @@ void droiddeck_host_text_commit_and_submit(const char *utf8, int len);
void droiddeck_host_text_preedit(const char *utf8, int len, int cursor_begin, int cursor_end);
void droiddeck_host_text_delete(int before, int after);
void droiddeck_host_zero_copy(int on, int live);
+void droiddeck_host_mirror_capture(int on);
+void droiddeck_set_mirror_capture(int on);
void droiddeck_host_hdr_output(int on);
void droiddeck_host_key(int evdev, int state);
void droiddeck_host_select_game_field(int copy);
diff --git a/app/src/main/cpp/waylandcomp/src/effects_chain.c b/app/src/main/cpp/waylandcomp/src/effects_chain.c
index 6d307dcd7d..90423d2441 100644
--- a/app/src/main/cpp/waylandcomp/src/effects_chain.c
+++ b/app/src/main/cpp/waylandcomp/src/effects_chain.c
@@ -22,6 +22,7 @@
#include "smaa_edge_frag.h"
#include "smaa_weights_frag.h"
#include "smaa_blend_frag.h"
+#include "smaa_tables.h"
#include "toon_frag.h"
#include "toon_color_frag.h"
#include "hdr_frag.h"
@@ -196,6 +197,7 @@ struct pc_sgsr { float ndc[4]; float vp[4]; float edge; };
struct pc_easu { float ndc[4]; uint32_t con0[4], con1[4], con2[4], con3[4]; float outW, outH; };
struct pc_rcas { float ndc[4]; uint32_t con[4]; float outW, outH; };
struct pc_res { float ndc[4]; float res[2]; float extra; float pad; };
+struct pc_smaa { float ndc[4]; float metrics[4]; };
struct pc_color { float ndc[4]; float b, c, g, s; };
struct pc_toon_color {
float ndc[4]; float res[2]; float b, c, g, s;
@@ -230,7 +232,7 @@ static VkDevice g_dev;
static VkPhysicalDevice g_pd;
static VkPhysicalDeviceMemoryProperties g_mp;
static int g_ready;
-static VkRenderPass g_rp, g_smaa_rp;
+static VkRenderPass g_rp, g_smaa_edge_rp, g_smaa_weights_rp;
static VkDescriptorSetLayout g_dsl;
static VkPipelineLayout g_pl;
static VkDescriptorPool g_dpool;
@@ -247,7 +249,9 @@ static int g_context;
#define g_t (g_contexts[g_context].targets)
#define g_mid (g_contexts[g_context].mid)
#define g_nissrc (g_contexts[g_context].nissrc)
-static struct fx_target g_smaa_edges, g_smaa_weights;
+static struct fx_target g_smaa_edges, g_smaa_weights, g_smaa_area, g_smaa_search;
+static VkBuffer g_smaa_buf;
+static VkDeviceMemory g_smaa_mem;
/* Half set: NIS = nis_luma prepass (scene rgb + luma in alpha, scene size) into g_nissrc, then
* nis3 gathers its luma from that alpha, its coefficient banks (nis_coef.h) in a uniform buffer
* at descriptor set 1 (g_pl_nis = {g_dsl, g_coef_dsl}, same push-constant range as g_pl).
@@ -311,6 +315,7 @@ static void target_destroy(struct fx_target *t) {
#define FX_TARGET_USAGE (VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_SAMPLED_BIT | \
VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT)
#define FX_SCRATCH_USAGE (VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_SAMPLED_BIT)
+#define SMAA_EDGE_FORMAT VK_FORMAT_R8G8_UNORM
static int target_ensure_format(struct fx_target *t, int w, int h,
VkImageUsageFlags usage, const char *what,
@@ -318,8 +323,9 @@ static int target_ensure_format(struct fx_target *t, int w, int h,
if (t->img && t->w == w && t->h == h) return 0;
target_destroy(t);
VkImageCreateInfo ii = {.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO,
- .flags = VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT, .imageType = VK_IMAGE_TYPE_2D,
- .format = format, .extent = {(uint32_t)w, (uint32_t)h, 1}, .mipLevels = 1,
+ /* SMAA's own images need no views in other formats, and the GPU is faster without the flag. */
+ .flags = render_pass == g_rp ? VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT : 0,
+ .imageType = VK_IMAGE_TYPE_2D, .format = format, .extent = {(uint32_t)w, (uint32_t)h, 1}, .mipLevels = 1,
.arrayLayers = 1, .samples = VK_SAMPLE_COUNT_1_BIT, .tiling = VK_IMAGE_TILING_OPTIMAL,
.usage = usage,
.sharingMode = VK_SHARING_MODE_EXCLUSIVE, .initialLayout = VK_IMAGE_LAYOUT_UNDEFINED};
@@ -337,12 +343,16 @@ static int target_ensure_format(struct fx_target *t, int w, int h,
(unsigned long long)req.size, (int)r);
target_destroy(t); return -1;
}
- g_vk.BindImageMemory(g_dev, t->img, t->mem, 0);
+ r = g_vk.BindImageMemory(g_dev, t->img, t->mem, 0);
+ if (r != VK_SUCCESS) {
+ droiddeck_log("error", "effects: %s image %dx%d: vkBindImageMemory %d", what, w, h, (int)r);
+ target_destroy(t); return -1;
+ }
if (!(t->view = make_view(t->img, format))) { target_destroy(t); return -1; }
VkFramebufferCreateInfo fi = {.sType = VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO, .renderPass = render_pass,
.attachmentCount = 1, .pAttachments = &t->view, .width = (uint32_t)w,
.height = (uint32_t)h, .layers = 1};
- if (g_vk.CreateFramebuffer(g_dev, &fi, NULL, &t->fb) != VK_SUCCESS) { target_destroy(t); return -1; }
+ if (render_pass && g_vk.CreateFramebuffer(g_dev, &fi, NULL, &t->fb) != VK_SUCCESS) { target_destroy(t); return -1; }
if (!(t->ds = alloc_ds(t->view))) { target_destroy(t); return -1; }
t->w = w; t->h = h;
return 0;
@@ -461,6 +471,22 @@ static VkPipeline post_pipeline_for_renderpass(VkShaderModule vert,
return p;
}
+/* The mapped memory of a new host-visible buffer. On failure: NULL, and the caller frees what there is. */
+static void *host_buffer(VkDeviceSize size, VkBufferUsageFlags usage, VkBuffer *buf, VkDeviceMemory *mem) {
+ VkBufferCreateInfo bci = {.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO, .size = size,
+ .usage = usage, .sharingMode = VK_SHARING_MODE_EXCLUSIVE};
+ if (g_vk.CreateBuffer(g_dev, &bci, NULL, buf) != VK_SUCCESS) return NULL;
+ VkMemoryRequirements req;
+ g_vk.GetBufferMemoryRequirements(g_dev, *buf, &req);
+ int idx = memtype(req.memoryTypeBits, VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT);
+ if (idx < 0) return NULL;
+ VkMemoryAllocateInfo mai = {.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO, .allocationSize = req.size, .memoryTypeIndex = (uint32_t)idx};
+ if (g_vk.AllocateMemory(g_dev, &mai, NULL, mem) != VK_SUCCESS) return NULL;
+ if (g_vk.BindBufferMemory(g_dev, *buf, *mem, 0) != VK_SUCCESS) return NULL;
+ void *p = NULL;
+ return g_vk.MapMemory(g_dev, *mem, 0, size, 0, &p) == VK_SUCCESS ? p : NULL;
+}
+
static void coef_destroy(void) {
if (g_coef_pool) g_vk.DestroyDescriptorPool(g_dev, g_coef_pool, NULL); /* frees g_coef_ds */
if (g_coef_buf) g_vk.DestroyBuffer(g_dev, g_coef_buf, NULL);
@@ -482,18 +508,8 @@ static int coef_create(void) {
VkPipelineLayoutCreateInfo pli = {.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO, .setLayoutCount = 2, .pSetLayouts = sets,
.pushConstantRangeCount = 1, .pPushConstantRanges = &pcr};
if (g_vk.CreatePipelineLayout(g_dev, &pli, NULL, &g_pl_nis) != VK_SUCCESS) goto fail;
- VkBufferCreateInfo bci = {.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO, .size = 4096,
- .usage = VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT, .sharingMode = VK_SHARING_MODE_EXCLUSIVE};
- if (g_vk.CreateBuffer(g_dev, &bci, NULL, &g_coef_buf) != VK_SUCCESS) goto fail;
- VkMemoryRequirements req;
- g_vk.GetBufferMemoryRequirements(g_dev, g_coef_buf, &req);
- int idx = memtype(req.memoryTypeBits, VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT);
- if (idx < 0) goto fail;
- VkMemoryAllocateInfo mai = {.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO, .allocationSize = req.size, .memoryTypeIndex = (uint32_t)idx};
- if (g_vk.AllocateMemory(g_dev, &mai, NULL, &g_coef_mem) != VK_SUCCESS) goto fail;
- if (g_vk.BindBufferMemory(g_dev, g_coef_buf, g_coef_mem, 0) != VK_SUCCESS) goto fail;
- void *p = NULL;
- if (g_vk.MapMemory(g_dev, g_coef_mem, 0, 4096, 0, &p) != VK_SUCCESS || !p) goto fail;
+ void *p = host_buffer(4096, VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT, &g_coef_buf, &g_coef_mem);
+ if (!p) goto fail;
memcpy(p, kNisCoefScale, sizeof(kNisCoefScale));
memcpy((char *)p + sizeof(kNisCoefScale), kNisCoefUsm, sizeof(kNisCoefUsm));
g_vk.UnmapMemory(g_dev, g_coef_mem);
@@ -513,6 +529,29 @@ fail:
return -1;
}
+static void smaa_tables_destroy(void) {
+ target_destroy(&g_smaa_area); target_destroy(&g_smaa_search);
+ if (g_smaa_buf) g_vk.DestroyBuffer(g_dev, g_smaa_buf, NULL);
+ if (g_smaa_mem) g_vk.FreeMemory(g_dev, g_smaa_mem, NULL);
+ g_smaa_buf = VK_NULL_HANDLE; g_smaa_mem = VK_NULL_HANDLE;
+}
+
+static int smaa_tables_ensure(void) {
+ if (g_smaa_buf) return 0;
+ const VkImageUsageFlags usage = VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT;
+ unsigned char *p = NULL;
+ if (target_ensure_format(&g_smaa_area, SMAA_AREA_W, SMAA_AREA_H, usage, "SMAA area table",
+ VK_FORMAT_R8G8_UNORM, VK_NULL_HANDLE) == 0 &&
+ target_ensure_format(&g_smaa_search, SMAA_SEARCH_W, SMAA_SEARCH_H, usage, "SMAA search table",
+ VK_FORMAT_R8_UNORM, VK_NULL_HANDLE) == 0)
+ p = host_buffer(sizeof(kSmaaArea) + sizeof(kSmaaSearch), VK_BUFFER_USAGE_TRANSFER_SRC_BIT, &g_smaa_buf, &g_smaa_mem);
+ if (!p) { smaa_tables_destroy(); return -1; }
+ memcpy(p, kSmaaArea, sizeof(kSmaaArea));
+ memcpy(p + sizeof(kSmaaArea), kSmaaSearch, sizeof(kSmaaSearch));
+ g_vk.UnmapMemory(g_dev, g_smaa_mem);
+ return 0;
+}
+
/* nis_luma keeps luma in the target's alpha: only formats with at least 8 alpha bits (not the
* 2-bit alpha of the 10-bit HDR composition format) can hold it. */
static int fx_alpha_holds_luma(VkFormat f) {
@@ -540,16 +579,19 @@ static void objects_destroy(void) {
}
g_context = saved;
target_destroy(&g_smaa_edges); target_destroy(&g_smaa_weights);
+ smaa_tables_destroy();
for (int i = 0; i < P_COUNT; i++) { if (g_pipe[i]) g_vk.DestroyPipeline(g_dev, g_pipe[i], NULL); g_pipe[i] = VK_NULL_HANDLE; }
if (g_dpool) g_vk.DestroyDescriptorPool(g_dev, g_dpool, NULL);
if (g_pl) g_vk.DestroyPipelineLayout(g_dev, g_pl, NULL);
coef_destroy();
if (g_dsl) g_vk.DestroyDescriptorSetLayout(g_dev, g_dsl, NULL);
if (g_sampler) g_vk.DestroySampler(g_dev, g_sampler, NULL);
- if (g_smaa_rp) g_vk.DestroyRenderPass(g_dev, g_smaa_rp, NULL);
+ if (g_smaa_edge_rp) g_vk.DestroyRenderPass(g_dev, g_smaa_edge_rp, NULL);
+ if (g_smaa_weights_rp) g_vk.DestroyRenderPass(g_dev, g_smaa_weights_rp, NULL);
if (g_rp) g_vk.DestroyRenderPass(g_dev, g_rp, NULL);
g_dpool = VK_NULL_HANDLE; g_pl = VK_NULL_HANDLE; g_dsl = VK_NULL_HANDLE;
- g_sampler = VK_NULL_HANDLE; g_rp = VK_NULL_HANDLE; g_smaa_rp = VK_NULL_HANDLE;
+ g_sampler = VK_NULL_HANDLE; g_rp = VK_NULL_HANDLE;
+ g_smaa_edge_rp = VK_NULL_HANDLE; g_smaa_weights_rp = VK_NULL_HANDLE;
g_nis_fast = 0; g_nis_attempted = 0; g_upscale_half = 0;
g_ready = 0;
}
@@ -603,9 +645,12 @@ static int objects_ensure(void) {
VkAttachmentDescription smaa_att = att;
smaa_att.format = FX_FORMAT;
+ smaa_att.loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR; /* SMAA.hlsl discards pixels without an edge */
VkRenderPassCreateInfo smaa_rci = rci;
smaa_rci.pAttachments = &smaa_att;
- if (g_vk.CreateRenderPass(g_dev, &smaa_rci, NULL, &g_smaa_rp) != VK_SUCCESS) goto fail;
+ if (g_vk.CreateRenderPass(g_dev, &smaa_rci, NULL, &g_smaa_weights_rp) != VK_SUCCESS) goto fail;
+ smaa_att.format = SMAA_EDGE_FORMAT;
+ if (g_vk.CreateRenderPass(g_dev, &smaa_rci, NULL, &g_smaa_edge_rp) != VK_SUCCESS) goto fail;
VkSamplerCreateInfo sci = {.sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO, .magFilter = VK_FILTER_LINEAR,
.minFilter = VK_FILTER_LINEAR, .mipmapMode = VK_SAMPLER_MIPMAP_MODE_NEAREST,
@@ -619,13 +664,13 @@ static int objects_ensure(void) {
VkDescriptorSetLayoutCreateInfo dli = {.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO, .bindingCount = 1, .pBindings = &b};
if (g_vk.CreateDescriptorSetLayout(g_dev, &dli, NULL, &g_dsl) != VK_SUCCESS) goto fail;
VkPushConstantRange pcr = {.stageFlags = VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT, .offset = 0, .size = PC_MAX_SIZE};
- VkDescriptorSetLayout set_layouts[2] = {g_dsl, g_dsl};
- VkPipelineLayoutCreateInfo pli = {.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO, .setLayoutCount = 2, .pSetLayouts = set_layouts,
+ VkDescriptorSetLayout set_layouts[3] = {g_dsl, g_dsl, g_dsl};
+ VkPipelineLayoutCreateInfo pli = {.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO, .setLayoutCount = 3, .pSetLayouts = set_layouts,
.pushConstantRangeCount = 1, .pPushConstantRanges = &pcr};
if (g_vk.CreatePipelineLayout(g_dev, &pli, NULL, &g_pl) != VK_SUCCESS) goto fail;
- VkDescriptorPoolSize ps = {VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, FX_CONTEXTS * 5 + 2};
+ VkDescriptorPoolSize ps = {VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, FX_CONTEXTS * 5 + 4};
VkDescriptorPoolCreateInfo dpi = {.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO,
- .flags = VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, .maxSets = FX_CONTEXTS * 5 + 2,
+ .flags = VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, .maxSets = FX_CONTEXTS * 5 + 4,
.poolSizeCount = 1, .pPoolSizes = &ps};
if (g_vk.CreateDescriptorPool(g_dev, &dpi, NULL, &g_dpool) != VK_SUCCESS) goto fail;
@@ -712,8 +757,8 @@ static int pipelines_ensure(int spatial, const struct fx_settings *s) {
if (s->color_on && !(s->toon && g_fx_fmt == FX_FORMAT)) MK(1, P_COLOR, color_code, "color");
if (s->aa_mode == 1 || s->aa_mode == 2) MK(1, P_FXAA, fxaa_code, "fxaa");
if (s->aa_mode == 2) {
- MKL(1, P_SMAA_EDGE, smaa_edge_code, "smaa_edge", g_smaa_rp, g_pl);
- MKL(1, P_SMAA_WEIGHTS, smaa_weights_code, "smaa_weights", g_smaa_rp, g_pl);
+ MKL(1, P_SMAA_EDGE, smaa_edge_code, "smaa_edge", g_smaa_edge_rp, g_pl);
+ MKL(1, P_SMAA_WEIGHTS, smaa_weights_code, "smaa_weights", g_smaa_weights_rp, g_pl);
MK(1, P_SMAA_BLEND, smaa_blend_code, "smaa_blend");
}
if (s->toon && s->color_on && g_fx_fmt == FX_FORMAT) MK(1, P_TOON_COLOR, toon_color_code, "toon_color");
@@ -742,14 +787,32 @@ static void barrier(VkCommandBuffer cmd, VkImage img, VkImageLayout from, VkImag
g_vk.CmdPipelineBarrier(cmd, src_stage, dst_stage, 0, 0, NULL, 0, NULL, 1, &b);
}
-static void pass_renderpass(VkCommandBuffer cmd, VkRenderPass render_pass,
- VkPipeline p, struct fx_target *dst, VkDescriptorSet src,
- const void *pc, uint32_t pcsz) {
+/* The tables are copied into place in every frame: a recorded frame can be dropped before it is submitted. */
+static void smaa_tables_copy(VkCommandBuffer cmd) {
+ const VkBufferImageCopy area = {.imageSubresource = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 0, 1},
+ .imageExtent = {SMAA_AREA_W, SMAA_AREA_ROWS, 1}};
+ const VkBufferImageCopy search = {.bufferOffset = sizeof(kSmaaArea), .imageSubresource = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 0, 1},
+ .imageExtent = {SMAA_SEARCH_W, SMAA_SEARCH_H, 1}};
+ const struct { VkImage img; const VkBufferImageCopy *copy; } t[2] = {{g_smaa_area.img, &area}, {g_smaa_search.img, &search}};
+ for (int i = 0; i < 2; i++) {
+ barrier(cmd, t[i].img, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL,
+ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, 0, VK_PIPELINE_STAGE_TRANSFER_BIT, VK_ACCESS_TRANSFER_WRITE_BIT);
+ g_vk.CmdCopyBufferToImage(cmd, g_smaa_buf, t[i].img, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, 1, t[i].copy);
+ barrier(cmd, t[i].img, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL,
+ VK_PIPELINE_STAGE_TRANSFER_BIT, VK_ACCESS_TRANSFER_WRITE_BIT,
+ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, VK_ACCESS_SHADER_READ_BIT);
+ }
+}
+
+static void pass_sets(VkCommandBuffer cmd, VkRenderPass render_pass, VkPipeline p, struct fx_target *dst,
+ const VkDescriptorSet *src, uint32_t count, const void *pc, uint32_t pcsz) {
+ const VkClearValue clear = {0};
VkRenderPassBeginInfo rpi = {.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO, .renderPass = render_pass, .framebuffer = dst->fb,
- .renderArea = {{0, 0}, {(uint32_t)dst->w, (uint32_t)dst->h}}};
+ .renderArea = {{0, 0}, {(uint32_t)dst->w, (uint32_t)dst->h}},
+ .clearValueCount = 1, .pClearValues = &clear};
g_vk.CmdBeginRenderPass(cmd, &rpi, VK_SUBPASS_CONTENTS_INLINE);
g_vk.CmdBindPipeline(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, p);
- g_vk.CmdBindDescriptorSets(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, g_pl, 0, 1, &src, 0, NULL);
+ g_vk.CmdBindDescriptorSets(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, g_pl, 0, count, src, 0, NULL);
if (g_nis_fast && p == g_pipe[P_NIS] && g_coef_ds) /* nis3: coefficient banks at set 1 */
g_vk.CmdBindDescriptorSets(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, g_pl_nis, 1, 1, &g_coef_ds, 0, NULL);
g_vk.CmdPushConstants(cmd, g_pl, VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT, 0, pcsz, pc);
@@ -759,21 +822,7 @@ static void pass_renderpass(VkCommandBuffer cmd, VkRenderPass render_pass,
static void pass(VkCommandBuffer cmd, VkPipeline p, struct fx_target *dst,
VkDescriptorSet src, const void *pc, uint32_t pcsz) {
- pass_renderpass(cmd, g_rp, p, dst, src, pc, pcsz);
-}
-
-static void pass_dual(VkCommandBuffer cmd, VkPipeline p, struct fx_target *dst,
- VkDescriptorSet src, VkDescriptorSet second,
- const void *pc, uint32_t pcsz) {
- VkRenderPassBeginInfo rpi = {.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO, .renderPass = g_rp, .framebuffer = dst->fb,
- .renderArea = {{0, 0}, {(uint32_t)dst->w, (uint32_t)dst->h}}};
- VkDescriptorSet sets[2] = {src, second};
- g_vk.CmdBeginRenderPass(cmd, &rpi, VK_SUBPASS_CONTENTS_INLINE);
- g_vk.CmdBindPipeline(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, p);
- g_vk.CmdBindDescriptorSets(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, g_pl, 0, 2, sets, 0, NULL);
- g_vk.CmdPushConstants(cmd, g_pl, VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT, 0, pcsz, pc);
- g_vk.CmdDraw(cmd, 4, 1, 0, 0);
- g_vk.CmdEndRenderPass(cmd);
+ pass_sets(cmd, g_rp, p, dst, &src, 1, pc, pcsz);
}
static const float FULL_NDC[4] = {-1.0f, -1.0f, 1.0f, 1.0f};
@@ -785,6 +834,12 @@ struct fx_source_state {
VkAccessFlags access;
};
+/* NIS here is the SDR implementation and is documented for <=2x upscales: other outputs run FSR instead. */
+static int nis_falls_back(int scene_w, int scene_h, int cw, int ch) {
+ return g_scene_is_pq || cw < scene_w || ch < scene_h || (double)cw > (double)scene_w * 2.0 ||
+ (double)ch > (double)scene_h * 2.0;
+}
+
static VkImage effects_run(VkCommandBuffer cmd, VkImage scene, int scene_w, int scene_h,
int out_w, int out_h, int *res_w, int *res_h,
VkImageLayout input_layout, const struct fx_settings *frozen,
@@ -810,11 +865,7 @@ static VkImage effects_run(VkCommandBuffer cmd, VkImage scene, int scene_w, int
const int upscaling = cw > scene_w || ch > scene_h;
int spatial = 0;
if (spatial_mode(s->scaling) && (s->scaling == 6 || upscaling)) spatial = s->scaling;
- /* NIS here is the SDR implementation and is documented for <=2x upscales. */
- const int nis_fallback = spatial == 7 &&
- (g_scene_is_pq || cw < scene_w || ch < scene_h ||
- (double)cw > (double)scene_w * 2.0 ||
- (double)ch > (double)scene_h * 2.0);
+ const int nis_fallback = spatial == 7 && nis_falls_back(scene_w, scene_h, cw, ch);
static int last_nis_fallback = 0;
const int was_nis_fallback =
__atomic_exchange_n(&last_nis_fallback, nis_fallback, __ATOMIC_RELAXED);
@@ -839,9 +890,10 @@ static VkImage effects_run(VkCommandBuffer cmd, VkImage scene, int scene_w, int
target_ensure(&g_mid, cw, ch, FX_SCRATCH_USAGE, "EASU") == 0)) {
if (s->aa_mode == 2 &&
(target_ensure_format(&g_smaa_edges, cw, ch, FX_SCRATCH_USAGE,
- "SMAA edges", FX_FORMAT, g_smaa_rp) != 0 ||
+ "SMAA edges", SMAA_EDGE_FORMAT, g_smaa_edge_rp) != 0 ||
target_ensure_format(&g_smaa_weights, cw, ch, FX_SCRATCH_USAGE,
- "SMAA weights", FX_FORMAT, g_smaa_rp) != 0)) {
+ "SMAA weights", FX_FORMAT, g_smaa_weights_rp) != 0 ||
+ smaa_tables_ensure() != 0)) {
droiddeck_log("error", "effects: SMAA scratch allocation failed; falling back to FXAA");
snapshot.aa_mode = 1;
s = &snapshot;
@@ -969,14 +1021,17 @@ static VkImage effects_run(VkCommandBuffer cmd, VkImage scene, int scene_w, int
switch (order[i]) {
case FX_FXAA: pass(cmd, g_pipe[P_FXAA], dst, cur_ds, &pr, sizeof(pr)); break;
case FX_FXAA_TOON: pass(cmd, g_pipe[P_FXAA_TOON], dst, cur_ds, &pr, sizeof(pr)); break;
- case FX_SMAA:
- pass_renderpass(cmd, g_smaa_rp, g_pipe[P_SMAA_EDGE],
- &g_smaa_edges, cur_ds, &pr, sizeof(pr));
- pass_renderpass(cmd, g_smaa_rp, g_pipe[P_SMAA_WEIGHTS],
- &g_smaa_weights, g_smaa_edges.ds, &pr, sizeof(pr));
- pass_dual(cmd, g_pipe[P_SMAA_BLEND], dst, cur_ds,
- g_smaa_weights.ds, &pr, sizeof(pr));
+ case FX_SMAA: {
+ struct pc_smaa pc = {.metrics = {1.0f / (float)cw, 1.0f / (float)ch, (float)cw, (float)ch}};
+ const VkDescriptorSet weigh[3] = {g_smaa_edges.ds, g_smaa_area.ds, g_smaa_search.ds};
+ const VkDescriptorSet blend[2] = {cur_ds, g_smaa_weights.ds};
+ SET_NDC(pc);
+ smaa_tables_copy(cmd);
+ pass_sets(cmd, g_smaa_edge_rp, g_pipe[P_SMAA_EDGE], &g_smaa_edges, &cur_ds, 1, &pc, sizeof(pc));
+ pass_sets(cmd, g_smaa_weights_rp, g_pipe[P_SMAA_WEIGHTS], &g_smaa_weights, weigh, 3, &pc, sizeof(pc));
+ pass_sets(cmd, g_rp, g_pipe[P_SMAA_BLEND], dst, blend, 2, &pc, sizeof(pc));
break;
+ }
case FX_TOON: pass(cmd, g_pipe[P_TOON], dst, cur_ds, &pr, sizeof(pr)); break;
case FX_TOON_COLOR: {
struct pc_toon_color pc = {0};
@@ -1037,13 +1092,23 @@ VkImage vkp_effects_run(VkCommandBuffer cmd, VkImage scene, int scene_w, int sce
VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, NULL, NULL);
}
-int vkp_effects_prepare_generated(void) {
+int vkp_effects_prepare_generated(int in_w, int in_h, int out_w, int out_h) {
vkp_effects_sync();
pthread_mutex_lock(&g_lock);
g_generated_settings = g_cur;
pthread_mutex_unlock(&g_lock);
- return spatial_mode(g_generated_settings.scaling) && g_generated_settings.scaling != 6 &&
- effect_count(&g_generated_settings) == 0;
+ int spatial = g_generated_settings.scaling;
+ if (!spatial_mode(spatial) || spatial == 6 || effect_count(&g_generated_settings) != 0) return 0;
+ /* Build the spatial filter's pipelines now, before frame generation records commands that sample the
+ * chain's views: one failing later in the same pass would tear the chain down (chain_failed) under a
+ * recorded command buffer. Build only what effects_run will use for this output, as it decides it:
+ * NIS on an output it hands to FSR builds FSR, so a NIS that cannot build here costs nothing. */
+ int cw = out_w > FX_MAX_DIM ? FX_MAX_DIM : out_w < 1 ? 1 : out_w;
+ int ch = out_h > FX_MAX_DIM ? FX_MAX_DIM : out_h < 1 ? 1 : out_h;
+ if (cw <= in_w && ch <= in_h) return 1; /* clamped, it no longer upscales: effects_run builds no filter */
+ if (spatial == 7 && nis_falls_back(in_w, in_h, cw, ch)) spatial = 4;
+ if (objects_ensure() != 0 || pipelines_ensure(spatial, &g_generated_settings) != 0) return 0;
+ return 1;
}
VkImage vkp_effects_run_before_generated(VkCommandBuffer cmd, VkImage scene, int w, int h,
diff --git a/app/src/main/cpp/waylandcomp/src/effects_chain.h b/app/src/main/cpp/waylandcomp/src/effects_chain.h
index a0aba31138..b85becc0a5 100644
--- a/app/src/main/cpp/waylandcomp/src/effects_chain.h
+++ b/app/src/main/cpp/waylandcomp/src/effects_chain.h
@@ -18,7 +18,7 @@ VkFilter vkp_effects_blit_filter(void);
VkImage vkp_effects_run(VkCommandBuffer cmd, VkImage scene, int scene_w, int scene_h,
int out_w, int out_h, int *res_w, int *res_h);
-int vkp_effects_prepare_generated(void);
+int vkp_effects_prepare_generated(int in_w, int in_h, int out_w, int out_h);
void vkp_effects_release_generated_sources(void);
VkImage vkp_effects_run_before_generated(VkCommandBuffer cmd, VkImage scene, int w, int h,
int *res_w, int *res_h);
diff --git a/app/src/main/cpp/waylandcomp/src/framegen_bridge.c b/app/src/main/cpp/waylandcomp/src/framegen_bridge.c
index 7745c3ddc0..b402dc0a8a 100644
--- a/app/src/main/cpp/waylandcomp/src/framegen_bridge.c
+++ b/app/src/main/cpp/waylandcomp/src/framegen_bridge.c
@@ -79,6 +79,24 @@ static int format_refused(VkFormat f) {
static _Atomic unsigned g_stat_generated;
static uint64_t g_total_generated;
+
+#define FG_PROVEN_FRAMES 120
+#define FG_HANG_STRIKES 2
+static _Atomic int g_hang_strikes;
+static int g_submitted_since_ready;
+static uint64_t g_generated_at_ready;
+
+// A driver that hangs on the engine's shaders loses the device on its first generated frame after every
+// recovery, so the compositor would recover and hang again for as long as frame generation stays armed.
+static int framegen_loss_strike(int submitted, uint64_t completed_since_ready) {
+ if (!submitted || completed_since_ready >= FG_PROVEN_FRAMES) {
+ atomic_store(&g_hang_strikes, 0);
+ return 0;
+ }
+ if (atomic_fetch_add(&g_hang_strikes, 1) + 1 < FG_HANG_STRIKES) return 0;
+ atomic_store(&g_hang_strikes, 0);
+ return 1;
+}
static float g_presented_rate, g_source_rate;
static uint32_t g_present_accum, g_source_accum;
static int64_t g_window_start_ns;
@@ -95,6 +113,7 @@ static int g_layer_path;
static int g_out_gens;
static int64_t g_out_planned[VKP_FG_MAX_GENERATIONS + 1];
static int64_t g_completion_issue;
+static int g_paced_route = 1;
void vkp_framegen_set_pacer(int on) {
if (atomic_exchange(&g_pacer_on, on ? 1 : 0) != (on ? 1 : 0)) {
@@ -129,6 +148,7 @@ void vkp_framegen_set_engine(int kind) {
atomic_store(&g_kind, kind);
atomic_store(&g_failed_kind, -1);
atomic_store(&g_cfg_dirty, 1);
+ atomic_store(&g_hang_strikes, 0);
}
void vkp_framegen_set_armed(int armed, int multiplier, int target_fps) {
@@ -159,6 +179,17 @@ void vkp_framegen_set_layer_timing(int layer) {
fge_set_layer_timing(layer);
}
+void vkp_framegen_set_paced_route(int composed) {
+ composed = composed != 0;
+ if (composed == g_paced_route) return;
+ g_paced_route = composed;
+ if (atomic_load(&g_pacer_on)) {
+ fge_pacer_reset();
+ FGLOG("ZeroPacer %s", composed ? "times the layer's frames again (composed route)"
+ : "waits: the direct route presents the real frame on its own timing");
+ }
+}
+
void vkp_framegen_set_tuning(float flow_scale, float refresh_hz) {
if (flow_scale < 0.25f) flow_scale = 0.25f;
if (flow_scale > 1.0f) flow_scale = 1.0f;
@@ -230,6 +261,8 @@ void vkp_framegen_device_ready(VkDevice dev, VkQueue queue, uint32_t qfam, int f
atomic_store(&g_caps_ddfg_ok, fge_caps_ok(VKP_FG_ENGINE_DDFG));
atomic_store(&g_caps_zero_ok, fge_caps_ok(VKP_FG_ENGINE_ZEROFG));
atomic_store(&g_dev_lost, 0);
+ g_submitted_since_ready = 0;
+ g_generated_at_ready = g_total_generated;
atomic_store(&g_dev_ready,
vk.CreateImage && vk.CreateImageView && vk.CmdPipelineBarrier);
FGLOG("engines ready on compositor device: LSFG %s, DD-FG %s, ZeroFG %s",
@@ -238,8 +271,21 @@ void vkp_framegen_device_ready(VkDevice dev, VkQueue queue, uint32_t qfam, int f
fge_caps_ok(VKP_FG_ENGINE_ZEROFG) ? "available" : "unavailable");
}
+// The compositor reports one loss twice: when it happens and again while releasing the lost device.
+static int framegen_count_loss(void) {
+ if (atomic_exchange(&g_dev_lost, 1)) return 0;
+ int failed = framegen_loss_strike(g_submitted_since_ready, g_total_generated - g_generated_at_ready);
+ g_submitted_since_ready = 0;
+ return failed;
+}
+
void vkp_framegen_device_lost(void) {
- atomic_store(&g_dev_lost, 1);
+ if (framegen_count_loss()) {
+ int kind = atomic_load(&g_kind);
+ mark_failed(kind);
+ FGLOG("%s lost the GPU %d times in a row before its frames completed; frame generation stays off "
+ "until it is set again", fge_engine_name(kind), FG_HANG_STRIKES);
+ }
atomic_store(&g_dev_ready, 0);
fge_device_lost();
if (g_dev) {
@@ -483,7 +529,7 @@ int vkp_framegen_run(VkCommandBuffer cmd, VkImage scene, VkImageView scene_view,
}
}
fge_set_phases(NULL, 0);
- if (kind == VKP_FG_ENGINE_ZEROFG && pacer_wanted() && g_layer_path) {
+ if (kind == VKP_FG_ENGINE_ZEROFG && pacer_wanted() && g_layer_path && g_paced_route) {
int64_t vsync = 0, period = 0;
sc_layer_timeline(&vsync, &period);
int64_t planned[VKP_FG_MAX_GENERATIONS + 1];
@@ -523,6 +569,7 @@ int vkp_framegen_run(VkCommandBuffer cmd, VkImage scene, VkImageView scene_view,
VK_PIPELINE_STAGE_TRANSFER_BIT | VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT,
0, 0, NULL, 0, NULL, nb, bars);
+ if (n_gen) g_submitted_since_ready = 1;
fge_process(cmd, scene, scene_view, (uint32_t)w, (uint32_t)h, fmt, planning_sequence, n_gen);
for (uint32_t g = 0; g < n_gen; g++) {
fge_generate(cmd, g, n_gen, g_ring[g].img, g_ring[g].view, (uint32_t)w, (uint32_t)h);
diff --git a/app/src/main/cpp/waylandcomp/src/framegen_bridge.h b/app/src/main/cpp/waylandcomp/src/framegen_bridge.h
index 3412eda7f1..4b7e215446 100644
--- a/app/src/main/cpp/waylandcomp/src/framegen_bridge.h
+++ b/app/src/main/cpp/waylandcomp/src/framegen_bridge.h
@@ -30,6 +30,9 @@ int vkp_framegen_extra_images(void);
void vkp_framegen_set_layer_timing(int layer);
/* ZeroFG's pacer (include/zerofg/inline_pacer.h) times the layer's frames instead of the layer's own spacing. */
void vkp_framegen_set_pacer(int on);
+/* 1 when the layer pass presents the real frame itself after its generated frames (the composed route): only
+ * then can the pacer time the whole group. The direct route keeps the layer's own timing. */
+void vkp_framegen_set_paced_route(int composed);
/* Reset pacing history when a planned real-frame pair is aborted before presentation. */
void vkp_framegen_pacer_abort(void);
/* Refresh planned for output k of the last run (k == gens: its real frame; 0: use layer timing). */
diff --git a/app/src/main/cpp/waylandcomp/src/framegen_zerofg.cpp b/app/src/main/cpp/waylandcomp/src/framegen_zerofg.cpp
index 786c830964..b0da6b2af1 100644
--- a/app/src/main/cpp/waylandcomp/src/framegen_zerofg.cpp
+++ b/app/src/main/cpp/waylandcomp/src/framegen_zerofg.cpp
@@ -55,6 +55,15 @@ VkImage g_current = VK_NULL_HANDLE;
VkImageView g_current_view = VK_NULL_HANDLE;
uint64_t g_current_sequence = 0;
bool g_pair_pending = false;
+// The interpolator keeps per-pair work and the prepared Real by sequence. A pass dropped after recording
+// Interpolate never ran on the GPU, so the next pair's A gets a fresh identity no record has seen: nothing the
+// dropped pass would have prepared is reused, nor its flow start. The identity is stable for the whole pair, so
+// its phases still share their work (and ReallyZero sees one pair, not a first picture per phase).
+bool g_interpolate_uncommitted = false;
+bool g_record_stale = false;
+uint64_t g_pair_anonymous = 0; // the recovery pair's A identity, 0 for an ordinary pair
+uint64_t g_anonymous_count = 0;
+constexpr uint64_t kAnonymousSequence = 1ull << 63; // above any frame sequence the compositor hands out
// Pacing. The compositor presents a pair's generated frames and its real frame back to back in FIFO,
// so they reach the panel on consecutive refreshes right after the tick that drew them.
@@ -475,6 +484,9 @@ int zfg_prepare(uint32_t width, uint32_t height, VkFormat format) {
return 0;
}
if (g_width == width && g_height == height && g_format == format && g_history) return 1;
+ // ReallyZero's Resize accepts 64..16384 per side: refuse this frame only, before touching the
+ // engine's state, so a supported size later still generates.
+ if (width < 64 || height < 64 || width > 16384 || height > 16384) return 0;
if (g_DeviceWaitIdle) g_DeviceWaitIdle(g_device);
destroy_history();
const zerofg::Status resized = g_interpolator->Resize(width, height, format, format);
@@ -540,6 +552,8 @@ void zfg_process(VkCommandBuffer cmd, VkImage source, VkImageView source_view,
g_current_view = source_view;
g_current_sequence = sequence;
g_pair_pending = true;
+ g_pair_anonymous = g_record_stale ? (kAnonymousSequence | ++g_anonymous_count) : 0;
+ g_record_stale = false;
}
void zfg_generate(VkCommandBuffer cmd, uint32_t index, uint32_t count,
@@ -564,6 +578,8 @@ void zfg_generate(VkCommandBuffer cmd, uint32_t index, uint32_t count,
result.width = width; result.height = height;
result.usage = VK_IMAGE_USAGE_STORAGE_BIT | VK_IMAGE_USAGE_SAMPLED_BIT |
VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT;
+ if (g_pair_anonymous) previous.sequence = g_pair_anonymous;
+ g_interpolate_uncommitted = true;
const zerofg::Status status =
g_interpolator->Interpolate(cmd, index, previous, current, phase, result);
@@ -579,6 +595,7 @@ void zfg_generate(VkCommandBuffer cmd, uint32_t index, uint32_t count,
}
void zfg_commit_history_update(void) {
+ g_interpolate_uncommitted = false;
if (!g_history_recorded_pending) return;
g_history_layout_defined = true;
g_history_valid = true;
@@ -589,10 +606,15 @@ void zfg_commit_history_update(void) {
void zfg_discard_history_update(void) {
g_history_recorded_pending = false;
g_history_recorded_sequence = 0;
+ if (g_interpolate_uncommitted) g_record_stale = true;
+ g_interpolate_uncommitted = false;
+ g_pair_pending = false;
}
void zfg_forget_targets(void) {
g_pair_pending = false;
+ if (g_interpolate_uncommitted) g_record_stale = true;
+ g_interpolate_uncommitted = false;
g_history_recorded_pending = false;
g_history_recorded_sequence = 0;
g_history_valid = false;
diff --git a/app/src/main/cpp/waylandcomp/src/sc_layer.c b/app/src/main/cpp/waylandcomp/src/sc_layer.c
index d38cc7ede5..fb93305e4b 100644
--- a/app/src/main/cpp/waylandcomp/src/sc_layer.c
+++ b/app/src/main/cpp/waylandcomp/src/sc_layer.c
@@ -1138,6 +1138,7 @@ int sc_layer_present_generated(const struct vkp_draw *draws, int n_draws, const
if (vkp_update_map(scene_w, scene_h) != 0) return -1;
const int deep = hf && !hf->tonemap;
if (hf) composed = 1;
+ vkp_framegen_set_paced_route(composed);
if (hf && hf->tonemap) color = NULL;
int n = vkp_pass_begin_generate(scene_w, scene_h, draws, n_draws, hf, &rw, &rh);
if (n < 0) return -1;
diff --git a/app/src/main/cpp/waylandcomp/src/vk_present.c b/app/src/main/cpp/waylandcomp/src/vk_present.c
index ab0d50bea6..8801c87286 100644
--- a/app/src/main/cpp/waylandcomp/src/vk_present.c
+++ b/app/src/main/cpp/waylandcomp/src/vk_present.c
@@ -2769,8 +2769,8 @@ static int render_impl(int scene_w, int scene_h, const struct vkp_draw *draws, i
const int upscale_w = (int)(scene_w * g_map.kx + 0.5f);
const int upscale_h = (int)(scene_h * g_map.ky + 0.5f);
const int post_upscale = fx && fg && !hf && !cb && vkp_effects_upscaling() &&
- vkp_effects_prepare_generated() &&
- (upscale_w > input_w || upscale_h > input_h);
+ (upscale_w > input_w || upscale_h > input_h) &&
+ vkp_effects_prepare_generated(input_w, input_h, upscale_w, upscale_h);
if (post_upscale) {
static int last_input_w, last_input_h, last_output_w, last_output_h;
if (input_w != last_input_w || input_h != last_input_h ||
@@ -3545,7 +3545,8 @@ static int pass_begin_impl(int scene_w, int scene_h, const struct vkp_draw *draw
int mapped_w = (int)(scene_w * g_map.kx + 0.5f), mapped_h = (int)(scene_h * g_map.ky + 0.5f);
g_pass.post_upscale = generate && !hf && vkp_effects_active() && vkp_effects_upscaling() &&
- vkp_effects_prepare_generated() && (mapped_w > input_w || mapped_h > input_h);
+ (mapped_w > input_w || mapped_h > input_h) &&
+ vkp_effects_prepare_generated(input_w, input_h, mapped_w, mapped_h);
if (g_pass.post_upscale) {
static int last_input_w, last_input_h, last_output_w, last_output_h;
if (input_w != last_input_w || input_h != last_input_h || mapped_w != last_output_w || mapped_h != last_output_h) {
diff --git a/app/src/main/cpp/waylandcomp/src/waylandcomp_jni.c b/app/src/main/cpp/waylandcomp/src/waylandcomp_jni.c
index 6d8754e4e5..f22865c110 100644
--- a/app/src/main/cpp/waylandcomp/src/waylandcomp_jni.c
+++ b/app/src/main/cpp/waylandcomp/src/waylandcomp_jni.c
@@ -461,6 +461,11 @@ Java_com_droiddeck_launcher_wayland_WaylandCompositor_nativeSetZeroCopy(JNIEnv *
__android_log_print(ANDROID_LOG_INFO, TAG, "zero-copy layer mode %s%s", on ? "on" : "off", live ? " (live)" : "");
}
+JNIEXPORT void JNICALL
+Java_com_droiddeck_launcher_wayland_WaylandCompositor_nativeSetMirrorCapture(JNIEnv *env, jclass clazz, jboolean on) {
+ droiddeck_host_mirror_capture(on ? 1 : 0);
+}
+
JNIEXPORT void JNICALL
Java_com_droiddeck_launcher_wayland_WaylandCompositor_nativeSetDisplayBufferDriver(JNIEnv *env, jclass clazz, jboolean on) {
g_display_buffer_driver = on ? 1 : 0;
diff --git a/app/src/main/java/com/droiddeck/launcher/FrontEndActivity.kt b/app/src/main/java/com/droiddeck/launcher/FrontEndActivity.kt
index 8c9657f1f5..08b966e98b 100644
--- a/app/src/main/java/com/droiddeck/launcher/FrontEndActivity.kt
+++ b/app/src/main/java/com/droiddeck/launcher/FrontEndActivity.kt
@@ -52,6 +52,7 @@ import com.droiddeck.launcher.ui.ComponentsPage
import com.droiddeck.launcher.session.GameSaves
import com.droiddeck.launcher.session.SessionLogShare
import com.droiddeck.launcher.session.SessionPaths
+import com.droiddeck.launcher.session.FullscreenMode
import com.droiddeck.launcher.session.SessionPrefs
import com.droiddeck.launcher.session.SteamRepair
import com.droiddeck.launcher.session.LaunchCoordinator
@@ -208,7 +209,8 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
private var orientation by mutableStateOf(android.content.pm.ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE)
private var launcherOrientation by mutableStateOf(android.content.pm.ActivityInfo.SCREEN_ORIENTATION_USER)
private var homePage by mutableStateOf(com.droiddeck.launcher.core.AppUiPrefs.HOME_PAGE_STEAM)
- private var launcherFullscreen by mutableStateOf(true)
+ private var launcherFullscreenMode by mutableStateOf(FullscreenMode.ALWAYS)
+ private var sessionFullscreenMode by mutableStateOf(FullscreenMode.ALWAYS)
private var launcherFrost by mutableStateOf(false)
private var frostWallpaper by mutableStateOf(true)
private var frostCards by mutableStateOf(true)
@@ -1366,8 +1368,12 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
orientation = SessionPrefs.orientation(this)
launcherOrientation = com.droiddeck.launcher.core.AppUiPrefs.orientation(this)
requestedOrientation = launcherOrientation
+ launcherFullscreenMode = SessionPrefs.launcherFullscreenMode(this)
+ sessionFullscreenMode = SessionPrefs.sessionFullscreenMode(this)
+ applyLauncherFullscreen()
homePage = com.droiddeck.launcher.core.AppUiPrefs.homePage(this)
- launcherFullscreen = SessionPrefs.launcherFullscreen(this)
+ launcherFullscreenMode = SessionPrefs.launcherFullscreenMode(this)
+ sessionFullscreenMode = SessionPrefs.sessionFullscreenMode(this)
launcherFrost = SessionPrefs.launcherFrost(this)
frostWallpaper = SessionPrefs.frostWallpaper(this)
frostCards = SessionPrefs.frostCards(this)
@@ -1482,7 +1488,8 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
orientation = orientation,
launcherOrientation = launcherOrientation,
homePage = homePage,
- launcherFullscreen = launcherFullscreen,
+ launcherFullscreenMode = launcherFullscreenMode,
+ sessionFullscreenMode = sessionFullscreenMode,
launcherFrost = launcherFrost,
frostWallpaper = frostWallpaper,
frostCards = frostCards,
@@ -1758,13 +1765,14 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
}
}, "delete-session-logs").start()
},
- onClearLogs = {
+ onClearLogs = { done ->
Thread({
val cleared = runCatching { SessionArtifacts.clearAll(this) }.getOrDefault(0)
ui.post {
android.widget.Toast.makeText(this,
if (cleared == 0) getString(R.string.main_no_logs_to_clear) else resources.getQuantityString(R.plurals.main_logs_cleared, cleared, cleared),
android.widget.Toast.LENGTH_SHORT).show()
+ done()
}
}, "clear-logs").start()
},
@@ -1816,11 +1824,15 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
homePage = value
},
onControllerHaptics = { on -> SessionPrefs.setControllerHaptics(this, on); controllerHaptics = on },
- onLauncherFullscreen = { on ->
- SessionPrefs.setLauncherFullscreen(this, on)
- launcherFullscreen = on
+ onLauncherFullscreenMode = { mode ->
+ SessionPrefs.setLauncherFullscreenMode(this, mode)
+ launcherFullscreenMode = mode
applyLauncherFullscreen()
},
+ onSessionFullscreenMode = { mode ->
+ SessionPrefs.setSessionFullscreenMode(this, mode)
+ sessionFullscreenMode = mode
+ },
onLauncherFrost = { on ->
SessionPrefs.setLauncherFrost(this, on)
launcherFrost = on
@@ -2152,7 +2164,13 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
private fun frostShown(): Boolean =
launcherFrost && frostWallpaper && frost.prepared && frost.available && theme != com.droiddeck.launcher.ui.Themes.TRUE_BLACK
- private fun applyLauncherFullscreen() {
+ override fun onConfigurationChanged(newConfig: android.content.res.Configuration) {
+ super.onConfigurationChanged(newConfig)
+ applyLauncherFullscreen(newConfig)
+ }
+
+ private fun applyLauncherFullscreen(config: android.content.res.Configuration = resources.configuration) {
+ val launcherFullscreen = launcherFullscreenMode.hidesSystemBars(config.orientation)
@Suppress("DEPRECATION")
window.decorView.systemUiVisibility = if (launcherFullscreen) {
(View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
diff --git a/app/src/main/java/com/droiddeck/launcher/ProtonMenu.kt b/app/src/main/java/com/droiddeck/launcher/ProtonMenu.kt
index 385081cc7d..b6799bd315 100644
--- a/app/src/main/java/com/droiddeck/launcher/ProtonMenu.kt
+++ b/app/src/main/java/com/droiddeck/launcher/ProtonMenu.kt
@@ -45,6 +45,7 @@ internal class ProtonMenu(
var experimentalReleases by Operation.experimentalReleases
companion object {
const val EXPERIMENTAL = "experimental"
+ private val REMEMBERED = setOf(ProtonExtras.OWN, ProtonExtras.ANTICHEAT)
}
@VisibleForTesting internal var latestCheck: (Boolean) -> Boolean = { force -> ProtonExtras.checkLatest(activity, force) }
@VisibleForTesting internal var experimentalRefresh: () -> List? = { ExperimentalProtons.refresh(activity) }
@@ -66,7 +67,7 @@ internal class ProtonMenu(
ui.post { protonStage = label; protonPercent = value }
}
}.getOrElse { it.message ?: it.javaClass.simpleName }
- if (problem == null && !automatic && tool.id == ProtonExtras.OWN) ProtonExtras.setDeclined(activity, false)
+ if (problem == null && !automatic && tool.id in REMEMBERED) ProtonExtras.setDeclined(activity, false, tool.id)
if (tool.id == ProtonExtras.OWN) {
if (problem == null) Onboarding.finish(Onboarding.Step.PROTON) else Onboarding.fail(Onboarding.Step.PROTON, problem)
Onboarding.recheck(activity)
@@ -96,7 +97,7 @@ internal class ProtonMenu(
protonPercent = -1
Thread({
if (older) ProtonExtras.removeOlder(activity, tool) else ProtonExtras.remove(activity, tool, dir)
- if (tool.id == ProtonExtras.OWN && ProtonExtras.installedAll(activity, tool).isEmpty()) ProtonExtras.setDeclined(activity, true)
+ if (tool.id in REMEMBERED && ProtonExtras.installedAll(activity, tool).isEmpty()) ProtonExtras.setDeclined(activity, true, tool.id)
ui.post {
protonBusyId = null
protonStage = null
@@ -158,7 +159,7 @@ internal class ProtonMenu(
refreshExperimental()
protonRows = ProtonExtras.offered(activity).map {
val all = ProtonExtras.installedAll(activity, it)
- ProtonRow(it.id, it.name, all.lastOrNull(), ProtonExtras.queued(activity, it), all, ProtonExtras.update(activity, it))
+ ProtonRow(it.id, if (it.label != 0) activity.getString(it.label) else it.name, all.lastOrNull(), ProtonExtras.queued(activity, it), all, ProtonExtras.update(activity, it))
}
}
diff --git a/app/src/main/java/com/droiddeck/launcher/SessionActivity.kt b/app/src/main/java/com/droiddeck/launcher/SessionActivity.kt
index 6cf2f43a9f..371d200f47 100644
--- a/app/src/main/java/com/droiddeck/launcher/SessionActivity.kt
+++ b/app/src/main/java/com/droiddeck/launcher/SessionActivity.kt
@@ -100,6 +100,12 @@ import com.droiddeck.launcher.input.SteamControllerBle
import com.droiddeck.launcher.input.DirectTouchHold
import com.droiddeck.launcher.input.GestureTouchStreamGate
import com.droiddeck.launcher.input.PenRouter
+import com.droiddeck.launcher.input.AirTrigger
+import com.droiddeck.launcher.input.AirTriggerButtons
+import com.droiddeck.launcher.input.AirTriggerInput
+import com.droiddeck.launcher.input.AirTriggerPrefs
+import com.droiddeck.launcher.input.AirTriggerSetup
+import com.droiddeck.launcher.input.RedMagicAirTriggers
import com.droiddeck.launcher.input.PenStream
import com.droiddeck.launcher.input.PointerGestures
import com.droiddeck.launcher.input.PointerSpace
@@ -122,6 +128,7 @@ import com.droiddeck.launcher.session.GpuClockPin
import com.droiddeck.launcher.session.GameProfileFollowState
import com.droiddeck.launcher.session.GameProfileInventoryCache
import com.droiddeck.launcher.session.GameProfileRefreshState
+import com.droiddeck.launcher.session.FullscreenMode
import com.droiddeck.launcher.session.SessionPrefs
import com.droiddeck.launcher.session.SessionEvents
import com.droiddeck.launcher.session.SessionArtifacts
@@ -241,6 +248,10 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
private lateinit var sessionRoot: FrameLayout
private var inputRouter: InputRouter? = null
private var physicalInputBindings: com.droiddeck.launcher.input.PhysicalInputBindings? = null
+ private var airTriggerInput: AirTriggerInput? = null
+ private var airTriggersOpen = false
+ private var airTriggerMenu by mutableStateOf(null)
+ private var airTriggerGlow: com.droiddeck.launcher.ui.AirTriggerGlow? = null
private var inputSettingsOpen by mutableStateOf(false)
@Volatile private var inputUsesLocalActions = false
private var inputUsesPointer = false
@@ -633,6 +644,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
private var drawerControllerActive by mutableStateOf(false)
private var backHold by mutableStateOf(true)
private var dockedMenuController by mutableStateOf(false)
+ private var sessionFullscreenMode by mutableStateOf(FullscreenMode.ALWAYS)
private var sessionOrientation by mutableStateOf(android.content.pm.ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE)
private var dualScreenSessionMode by mutableStateOf(com.droiddeck.launcher.input.DualScreen.MODE_AUTO)
private var backActionsInverted by mutableStateOf(false)
@@ -661,6 +673,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
private var effects by mutableStateOf(ScreenEffects.OFF)
private var observedScreenEffectsProfileId by mutableStateOf(null)
private var screenEffectsTarget by mutableStateOf(SCREEN_EFFECTS_TARGET_AUTO)
+ private var screenEffectsProfileRevision by mutableIntStateOf(0)
private var cardboard by mutableStateOf(Cardboard.OFF)
private var headTracker: HeadTracker? = null
private var steamVrStatus by mutableStateOf(null)
@@ -929,7 +942,8 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
}
applyFollowChoice()
applyFollowOrientation(resources.configuration)
- goFullscreen()
+ sessionFullscreenMode = SessionPrefs.sessionFullscreenMode(this)
+ applySessionFullscreen()
volumeControlStream = android.media.AudioManager.STREAM_MUSIC
displayManager = getSystemService(DISPLAY_SERVICE) as DisplayManager
refreshSecondScreenDisplays()
@@ -973,6 +987,10 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
bridge.setBuiltinPad(SessionState.mode != SessionService.MODE_STEAM || SessionPrefs.builtinPad(this))
padBridge = bridge
inputRouter = InputRouter(inputOutput).also { bridge.setInputRouter(it); DeckControls.setRouter(it); physicalInputBindings = com.droiddeck.launcher.input.PhysicalInputBindings(it) }
+ if (RedMagicAirTriggers.supported(this)) {
+ airTriggerInput = AirTriggerInput(bridge, ::holdOnScreen, ::airTriggerTouched)
+ RedMagicAirTriggers.restore(this)
+ }
refreshInputProfile()
bridge.setOnChordInput(backQamInput::onChordInput)
SessionState.padBridge = bridge
@@ -1098,6 +1116,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
override fun onResolvePointerIcon(event: MotionEvent, pointerIndex: Int): android.view.PointerIcon? =
if (platformPointerShown == true) super.onResolvePointerIcon(event, pointerIndex) else null
}.apply { addView(sessionOverlay) })
+ if (airTriggerInput != null) airTriggerGlow = com.droiddeck.launcher.ui.AirTriggerGlow(this).also { root.addView(it) }
setContentView(root)
glassesScope.launch { Glasses.state.collect {
glasses = it
@@ -1382,6 +1401,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
}
LaunchedEffect(drawerOpen, menuOwnsController, pcKeyboardOpen, achievementsOpen, gestureSettingsOpen, inputSettingsOpen, pipUi, SessionState.suspended, resumed, appTextFocus) {
updateOnScreenControls()
+ refreshAirTriggers()
padBridge?.setInputEnabled(resumed && !menuOwnsController && !pcKeyboardOpen && !achievementsOpen && !gestureSettingsOpen && !inputSettingsOpen && !pipUi && !appTextFocus && !SessionState.suspended)
if (!drawerOpen && backTapOpenedDrawer) {
backTaps.cancel()
@@ -1641,8 +1661,11 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
effects = effects,
screenEffectsTarget = screenEffectsTarget,
screenEffectsTargets = screenEffectsTargetOptions(),
- screenEffectsCanDelete = screenEffectsProfileIdForTarget(screenEffectsTarget)?.let {
- SessionPrefs.hasScreenEffectsOverride(this@SessionActivity, it)
+ screenEffectsCanDelete = screenEffectsProfileRevision.let {
+ screenEffectsProfileIdForTarget(screenEffectsTarget)?.let {
+ SessionPrefs.hasScreenEffectsOverride(this@SessionActivity, it) ||
+ SessionPrefs.hasScreenEffectsUpscalerOverride(this@SessionActivity, it)
+ }
} == true,
cardboard = cardboard,
cardboardSensor = hasRotationSensor,
@@ -1748,6 +1771,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
} else {
val profileId = screenEffectsProfileIdForTarget(target)
SessionPrefs.setScreenEffectsUpscaler(this@SessionActivity, profileId, m)
+ screenEffectsProfileRevision++
if (target == screenEffectsTarget) {
upscaler = m
@@ -1783,6 +1807,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
} else {
val profileId = screenEffectsProfileIdForTarget(target)
SessionPrefs.setScreenEffectsUpscaler(this@SessionActivity, profileId, m)
+ screenEffectsProfileRevision++
if (target == screenEffectsTarget) {
upscaler = m
if (screenEffectsUpscalerTargetAppliesToLiveOutput(target)) {
@@ -1829,7 +1854,22 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
val profileId = screenEffectsProfileIdForTarget(editorTarget)
SessionPrefs.setScreenEffects(this@SessionActivity, profileId, e)
effects = e
- if (screenEffectsTargetAppliesToLiveOutput(editorTarget)) e.push(upscaler)
+ if (screenEffectsTargetAppliesToLiveOutput(editorTarget)) {
+ val upscalerAppliesToLiveOutput =
+ screenEffectsUpscalerTargetAppliesToLiveOutput(editorTarget)
+ val liveUpscaler = if (upscalerAppliesToLiveOutput) {
+ SessionPrefs.screenEffectsUpscaler(
+ this@SessionActivity,
+ screenEffectsProfileIdForTarget(editorTarget)
+ )
+ } else {
+ SessionPrefs.screenEffectsUpscaler(
+ this@SessionActivity,
+ currentScreenEffectsProfileId()
+ )
+ }
+ e.push(liveUpscaler)
+ }
}
}
},
@@ -1886,7 +1926,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
onBlackFrameInsertion = { on ->
SessionPrefs.setBlackFrameInsertion(this@SessionActivity, on)
blackFrameInsertion = on
- CompositorHost.setBlackFrameInsertion(on, refreshHz(), compositorFpsLimit())
+ CompositorHost.setBlackFrameInsertion(on, refreshHz(), compositorFpsLimit(), outputFpsLimit())
},
hdr = hdrWanted,
hdrAvailable = hdrAvailable,
@@ -1915,6 +1955,27 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
wowChat = wowChat.remembered,
onWowChat = wowChat::choose,
controller = controllerSettings,
+ airTriggers = airTriggerMenu,
+ onAirTriggers = { on -> AirTriggerPrefs.setEnabled(this@SessionActivity, on); refreshAirTriggers() },
+ onAirTriggerButton = { trigger, id ->
+ AirTriggerPrefs.setButton(this@SessionActivity, primaryInputLayout?.id.orEmpty(), trigger, id)
+ refreshAirTriggers()
+ },
+ onAirTriggerAction = { trigger, action ->
+ AirTriggerPrefs.setAction(this@SessionActivity, primaryInputLayout?.id.orEmpty(), trigger, action)
+ refreshAirTriggers()
+ },
+ onAirTriggerRate = { trigger, rate ->
+ AirTriggerPrefs.setRate(this@SessionActivity, primaryInputLayout?.id.orEmpty(), trigger, rate)
+ refreshAirTriggers()
+ },
+ onAirTriggerVibration = { on -> AirTriggerPrefs.setVibration(this@SessionActivity, on); refreshAirTriggers() },
+ onAirTriggerScreenLight = { on -> AirTriggerPrefs.setScreenLight(this@SessionActivity, on); refreshAirTriggers() },
+ onAirTriggerLed = { led ->
+ AirTriggerPrefs.setLed(this@SessionActivity, led)
+ if (airTriggersOpen) RedMagicAirTriggers.open(this@SessionActivity)
+ refreshAirTriggers()
+ },
onControllerSize = { percent -> updateControllerPrefs { ControllerPrefs.setSize(this@SessionActivity, percent) } },
onControllerOpacity = { percent ->
ControllerPrefs.setOnScreenOpacity(this@SessionActivity, percent)
@@ -2045,6 +2106,12 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
onPause = ::pauseNow,
paused = SessionState.suspended || SessionState.manualPause,
onResume = { SessionService.resume(this@SessionActivity) },
+ fullscreenMode = sessionFullscreenMode,
+ onFullscreenMode = { mode ->
+ SessionPrefs.setSessionFullscreenMode(this@SessionActivity, mode)
+ sessionFullscreenMode = mode
+ applySessionFullscreen()
+ },
orientation = sessionOrientation,
onOrientation = { value ->
when (SessionState.mode) {
@@ -2648,10 +2715,21 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
val targetUpscaler = SessionPrefs.screenEffectsUpscaler(this, profileId)
effects = targetEffects
upscaler = targetUpscaler
+ val upscalerAppliesToLiveOutput = screenEffectsUpscalerTargetAppliesToLiveOutput(target)
+ val liveUpscaler = if (upscalerAppliesToLiveOutput) {
+ targetUpscaler
+ } else {
+ SessionPrefs.screenEffectsUpscaler(this, currentScreenEffectsProfileId())
+ }
+ if (upscalerAppliesToLiveOutput) {
+ WaylandCompositor.nativeSetUpscaler(liveUpscaler)
+ }
if (screenEffectsTargetAppliesToLiveOutput(target)) {
- WaylandCompositor.nativeSetUpscaler(targetUpscaler)
- WaylandCompositor.nativeSetLookName(ScreenEffectLooks.match(targetEffects, targetUpscaler)?.name)
- targetEffects.push(targetUpscaler)
+ WaylandCompositor.nativeSetLookName(ScreenEffectLooks.match(targetEffects, liveUpscaler)?.name)
+ targetEffects.push(liveUpscaler)
+ } else if (upscalerAppliesToLiveOutput) {
+ val liveEffects = SessionPrefs.screenEffects(this, currentScreenEffectsProfileId())
+ WaylandCompositor.nativeSetLookName(ScreenEffectLooks.match(liveEffects, liveUpscaler)?.name)
}
}
@@ -2664,6 +2742,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
private fun resetScreenEffectsTarget(target: String) {
if (target != screenEffectsTarget) return
SessionPrefs.resetScreenEffectsProfile(this, screenEffectsProfileIdForTarget(target))
+ screenEffectsProfileRevision++
syncScreenEffectsTarget(target)
}
@@ -2671,6 +2750,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
if (target != screenEffectsTarget) return
val profileId = screenEffectsProfileIdForTarget(target) ?: return
SessionPrefs.deleteScreenEffectsProfile(this, profileId)
+ screenEffectsProfileRevision++
syncScreenEffectsTarget(target)
}
@@ -3123,7 +3203,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
CompositorHost.startOrAttach(
this, holder.surface, runtimeDir.path,
driverId?.let { turnip.driverPath(it) }, driverId?.let { turnip.libraryName(it) },
- applicationInfo.nativeLibraryDir, size.first, size.second, refreshHz(holder), compositorFpsLimit(),
+ applicationInfo.nativeLibraryDir, size.first, size.second, refreshHz(holder), compositorFpsLimit(), outputFpsLimit(),
)
onOutputAttached(holder)
if (SessionState.running && size != previous) {
@@ -3238,6 +3318,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
override fun onConfigurationChanged(newConfig: android.content.res.Configuration) {
super.onConfigurationChanged(newConfig)
+ if (!pipUi && !isInPictureInPictureMode) applySessionFullscreen(newConfig)
picturePosition = SessionPrefs.picturePosition(this, picturePortrait(newConfig))
if (refreshActivityDisplayId() && started) {
SessionService.setActivityDisplay(this, sessionActivityDisplayId)
@@ -3398,7 +3479,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
)
val hz = refreshHz()
val changed = kotlin.math.abs(SessionState.refreshHz - hz) > 0.1f
- CompositorHost.updatePacing(hz, compositorFpsLimit())
+ CompositorHost.updatePacing(hz, compositorFpsLimit(), outputFpsLimit())
pushCardboard(activeCardboard)
if (changed && ::surfaceView.isInitialized) applyFrameGen()
}
@@ -3646,6 +3727,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
private fun onSessionEnded(status: Int) {
ended = true
+ runOnUiThread { refreshAirTriggers() }
++steamVrRequestGeneration
if (isInPictureInPictureMode) {
runOnUiThread { finish() }
@@ -3703,6 +3785,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
private fun releasePads(keepBackTap: Boolean = false) {
inputMotion.stop()
physicalInputBindings?.release()
+ airTriggerInput?.release()
com.droiddeck.launcher.input.HomeButtonShortcuts.cancel(this)
backQamInput.cancel(keepTap = keepBackTap)
padBridge?.releaseAll()
@@ -3835,6 +3918,9 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
return dispatchSessionKeyEvent(normalized, orderedImeKey)
}
+ private fun physicalInputAccepted() = resumed && !menuOwnsController && !pcKeyboardOpen && !achievementsOpen &&
+ !inputSettingsOpen && !gestureSettingsOpen && !SessionState.suspended && !loading.visible
+
private fun dispatchSessionKeyEvent(event: KeyEvent, orderedImeKey: Boolean): Boolean {
if (com.droiddeck.launcher.ui.AgentPet.handleBack(this, event)) return true
when (event.keyCode) {
@@ -3854,10 +3940,10 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
}
}
if (penStream.holdsKey(event) || (penSettings.mode != SessionPrefs.PEN_TOUCH && PenStream.isPenKey(event))) return penStream.onKey(event)
+ if (airTriggerInput?.onKey(event) { physicalInputAccepted() && !pipUi && !appTextFocus } == true) return true
if (appTextFocus) return super.dispatchKeyEvent(event)
if (!pipUi) {
- if (physicalInputBindings?.onKey(event, resumed && !menuOwnsController && !pcKeyboardOpen && !achievementsOpen &&
- !inputSettingsOpen && !gestureSettingsOpen && !SessionState.suspended && !loading.visible) == true) return true
+ if (physicalInputBindings?.onKey(event, physicalInputAccepted()) == true) return true
if (physicalShortcuts.onKey(
event,
enabled = resumed && SessionState.running && !SessionState.suspended &&
@@ -5082,6 +5168,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|| inputProfile.keys.any { it.action is InputAction.MouseButton }
physicalInputBindings?.configure(inputProfile.keys)
padBridge?.setInputProfile(inputProfile)
+ refreshAirTriggers()
DeckControls.refresh()
onScreenControls?.updateLayout(primaryInputLayout)
bottomInputControls?.updateLayout(primaryInputLayout)
@@ -5092,6 +5179,32 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
secondScreenPresentation?.refreshControls()
}
+ private fun refreshAirTriggers() {
+ val input = airTriggerInput ?: return
+ val layout = primaryInputLayout
+ val layoutId = layout?.id.orEmpty()
+ val enabled = AirTriggerPrefs.enabled(this)
+ val chosen = AirTrigger.entries.associateWith {
+ AirTriggerSetup(AirTriggerButtons.resolve(layout, it, AirTriggerPrefs.button(this, layoutId, it)),
+ AirTriggerPrefs.action(this, layoutId, it), AirTriggerPrefs.rate(this, layoutId, it))
+ }
+ val active = enabled && resumed && !ended && !SessionState.suspended
+ input.configure(if (active) chosen else emptyMap())
+ if (active != airTriggersOpen) {
+ airTriggersOpen = active
+ if (active) RedMagicAirTriggers.open(this) else RedMagicAirTriggers.restore(this)
+ }
+ airTriggerMenu = com.droiddeck.launcher.ui.AirTriggerMenu(enabled, chosen.mapValues { it.value.element.id },
+ AirTriggerButtons.options(layout).map { it.id to it.name }, AirTriggerPrefs.vibration(this), AirTriggerPrefs.screenLight(this),
+ AirTriggerPrefs.led(this), chosen.mapValues { it.value.action }, chosen.mapValues { it.value.rate })
+ }
+
+ private fun airTriggerTouched(trigger: AirTrigger, down: Boolean) {
+ RedMagicAirTriggers.light(if (down) trigger.pressLight else trigger.releaseLight)
+ if (down && AirTriggerPrefs.vibration(this)) com.droiddeck.launcher.ui.ControllerHaptics.click(this)
+ airTriggerGlow?.show(trigger, down && AirTriggerPrefs.screenLight(this))
+ }
+
private fun tapQam() {
if (SessionState.mode == SessionService.MODE_STEAM) padBridge?.triggerQam()
}
@@ -5548,10 +5661,20 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
private var sessionTouchDown = false
private var screenTapsClick = true
- private fun onScreenLeftMouseButtonShown(): Boolean = listOfNotNull(
+ private fun inputSurfaces() = listOfNotNull(
onScreenControls?.inputSurface, bottomInputControls?.inputSurface, unfoldedPanel?.inputSurface, unfoldedDeckSurface,
secondScreenPresentation?.controlsView, swappedInputSurface,
- ).any { it.isShown && inputProfile.showsLeftMouseButton(it.inputRole, it.shownElements, stockInputProfile) }
+ )
+
+ private fun onScreenLeftMouseButtonShown(): Boolean =
+ inputSurfaces().any { it.isShown && inputProfile.showsLeftMouseButton(it.inputRole, it.shownElements, stockInputProfile) }
+
+ private fun holdOnScreen(elementId: String, trigger: AirTrigger, held: Boolean, cancelled: Boolean): Boolean {
+ val surfaces = inputSurfaces().filter { it.inputRole == InputRole.PRIMARY }
+ if (held) return surfaces.any { it.isShown && it.hold(elementId, trigger.ordinal, true) }
+ surfaces.forEach { it.hold(elementId, trigger.ordinal, false, cancelled) }
+ return true
+ }
override fun onTouchEvent(event: MotionEvent): Boolean = inSurfaceSpace(event) { handleTouch(event) }
@@ -6348,7 +6471,12 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
}
private fun holdComposedOutput(hold: Boolean) {
+ val wasHeld = composedHolds > 0
composedHolds = (composedHolds + if (hold) 1 else -1).coerceAtLeast(0)
+ val held = composedHolds > 0
+ if (held == wasHeld) return
+ WaylandCompositor.nativeSetMirrorCapture(held)
+ // Importable HDR is redirected by the compositor hold. Keep its layer-only fallback available.
if (zeroCopyActive()) WaylandCompositor.nativeSetZeroCopy(composedOutputFree())
}
@@ -6495,7 +6623,13 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
displayManager.unregisterDisplayListener(displayListener)
com.droiddeck.launcher.input.DualScreen.unwatchTaken(bottomScreenListener)
contentResolver.unregisterContentObserver(refreshSettingObserver)
- if (!screenIsOff()) closeSecondScreen(reset = false)
+ // Closing the presentation removes the docked Agent page and unregisters its picker.
+ if (com.droiddeck.launcher.session.SessionVisibilityPolicy.shouldCloseSecondScreenOnStop(
+ screenOff = screenIsOff(),
+ dockedDrawerOpen = menuShownOnBottom(),
+ attachmentPickerOpen = com.droiddeck.launcher.agent.AgentAttachments.picking,
+ )
+ ) closeSecondScreen(reset = false)
sessionTextInput.stop()
startedScreens = (startedScreens - 1).coerceAtLeast(0)
updateGlassesScreen()
@@ -6532,6 +6666,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
override fun onResume() {
super.onResume()
+ com.droiddeck.launcher.agent.AgentAttachments.picking = false
drawerGameInventoryRevision++
com.droiddeck.launcher.input.SystemKeyCapture.attach(this, { hasWindowFocus() && !appUiOwnsPointer() && CompositorHost.isStarted }) { event ->
com.droiddeck.launcher.input.GuestKeys.send(event) { code, down -> sendGuestKey(code, down, 8) }
@@ -6544,6 +6679,8 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
uiHandler.removeCallbacks(questSteamVrRequest)
if (com.droiddeck.launcher.session.QuestExperimental.isSupported()) uiHandler.post(questSteamVrRequest)
if (runtimeRemovalBlocked) return
+ sessionFullscreenMode = SessionPrefs.sessionFullscreenMode(this)
+ if (!pipUi && !isInPictureInPictureMode) applySessionFullscreen()
if (!SessionState.suspended) pausedFrame = null
com.droiddeck.launcher.ui.Motion.refresh(this)
refreshHomeApp()
@@ -6645,7 +6782,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
heldButtons.clear()
if (!screenOff) {
val menuUp = menuShownOnBottom()
- drawerOpen = false
+ if (!com.droiddeck.launcher.agent.AgentAttachments.picking) drawerOpen = false
if (menuUp) SessionState.bottomMenu = true
pcKeyboardOpen = false
achievementsOpen = false
@@ -6657,6 +6794,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
if (::scrollTouch.isInitialized) scrollTouch.cancel()
if (::padMouse.isInitialized) padMouse.reset()
resumed = false
+ refreshAirTriggers()
boostGpuClock(false)
updateKeyboardRoute()
updatePointerCapture()
@@ -7250,10 +7388,13 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
if (!hasFocus) {
cancelTouchGestures()
releaseHeldGuestInput()
+ airTriggerInput?.release()
}
+ // Game Space clears the distribute state when the launcher or Game Space itself comes to the front.
+ if (hasFocus && airTriggersOpen) RedMagicAirTriggers.open(this)
if (hasFocus && !pipUi) {
retryFieldKeyboard(true)
- goFullscreen()
+ applySessionFullscreen()
refreshClipboard()
}
updatePointerCapture()
@@ -7263,19 +7404,24 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
if (resumed) sessionClipboard.refresh()
}
- private fun goFullscreen() {
+ private fun applySessionFullscreen(config: android.content.res.Configuration = resources.configuration) {
+ val fullscreen = sessionFullscreenMode.hidesSystemBars(config.orientation)
+ if (fullscreen) window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN)
+ else window.clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN)
@Suppress("DEPRECATION")
- window.decorView.systemUiVisibility = (View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
+ window.decorView.systemUiVisibility = if (fullscreen) (View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
or View.SYSTEM_UI_FLAG_FULLSCREEN
or View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
or View.SYSTEM_UI_FLAG_LAYOUT_STABLE
or View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
- or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION)
+ or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION) else View.SYSTEM_UI_FLAG_LAYOUT_STABLE
if (Build.VERSION.SDK_INT >= 28) {
window.attributes = window.attributes.apply {
- layoutInDisplayCutoutMode = if (Build.VERSION.SDK_INT >= 30)
- WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS
- else WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
+ layoutInDisplayCutoutMode = when {
+ !fullscreen -> WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_DEFAULT
+ Build.VERSION.SDK_INT >= 30 -> WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS
+ else -> WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
+ }
}
}
}
@@ -7338,6 +7484,9 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
inputMotion.stop()
padBridge?.setInputEnabled(false)
physicalInputBindings?.close()
+ airTriggerInput?.close()
+ airTriggerInput = null
+ if (airTriggersOpen) RedMagicAirTriggers.restore(this)
padBridge?.stop()
DeckControls.clearRouter(inputRouter)
inputRouter = null
diff --git a/app/src/main/java/com/droiddeck/launcher/agent/AgentAccess.kt b/app/src/main/java/com/droiddeck/launcher/agent/AgentAccess.kt
index 2113161467..9c4659a550 100644
--- a/app/src/main/java/com/droiddeck/launcher/agent/AgentAccess.kt
+++ b/app/src/main/java/com/droiddeck/launcher/agent/AgentAccess.kt
@@ -23,7 +23,7 @@ object AgentAccess {
fun requireCommands(context: Context) {
if (!commandsAllowed(context)) throw AgentException(
"AGENT_COMMANDS_DISABLED",
- "Debugging tools are off: turn on Setup > Developer > Debugging tools on the device",
+ "droiddeckctl is off: turn on Setup > Developer > droiddeckctl on the device",
)
}
diff --git a/app/src/main/java/com/droiddeck/launcher/agent/AgentAttachments.kt b/app/src/main/java/com/droiddeck/launcher/agent/AgentAttachments.kt
index b4f9a09dff..9c9dd5c150 100644
--- a/app/src/main/java/com/droiddeck/launcher/agent/AgentAttachments.kt
+++ b/app/src/main/java/com/droiddeck/launcher/agent/AgentAttachments.kt
@@ -19,6 +19,15 @@ object AgentAttachments {
/** Guest paths waiting to go with the next message. */
val pending = mutableStateListOf()
+ /** True while the file picker is open over a session: it answers the drawer's agent page, so the drawer must stay. */
+ @Volatile var picking = false
+
+ /** Launches a system screen that answers the agent page, keeping the drawer for it; the result callback clears [picking]. */
+ fun pick(launch: () -> Unit) {
+ picking = true
+ if (runCatching(launch).isFailure) picking = false
+ }
+
private const val NEW = "new"
private const val GUEST_DIR = "/root/.cache/droiddeck/attachments"
private val IMAGE = setOf("png", "jpg", "jpeg", "webp", "gif", "bmp")
@@ -35,14 +44,17 @@ object AgentAttachments {
val folder = chat ?: NEW
val dir = File(hostDir(app), folder).apply { mkdirs() }
return uris.mapNotNull { uri ->
+ var target: File? = null
runCatching {
val name = displayName(app, uri).replace(Regex("[^A-Za-z0-9._-]"), "_").ifEmpty { "file" }
- var target = File(dir, name)
+ var candidate = File(dir, name)
var n = 1
- while (target.exists()) target = File(dir, "${name.substringBeforeLast('.')}-${n++}${name.substringAfterLast('.', "").let { if (it.isEmpty()) "" else ".$it" }}")
- app.contentResolver.openInputStream(uri)!!.use { input -> target.outputStream().use { input.copyTo(it) } }
- "$GUEST_DIR/$folder/${target.name}"
- }.getOrNull()
+ // Created atomically, so copies running side by side never pick the same name.
+ while (!candidate.createNewFile()) candidate = File(dir, "${name.substringBeforeLast('.')}-${n++}${name.substringAfterLast('.', "").let { if (it.isEmpty()) "" else ".$it" }}")
+ target = candidate
+ app.contentResolver.openInputStream(uri)!!.use { input -> candidate.outputStream().use { input.copyTo(it) } }
+ "$GUEST_DIR/$folder/${candidate.name}"
+ }.onFailure { target?.delete() }.getOrNull()
}
}
diff --git a/app/src/main/java/com/droiddeck/launcher/core/DeviceReport.kt b/app/src/main/java/com/droiddeck/launcher/core/DeviceReport.kt
index db8ab970a2..4beeec8d45 100644
--- a/app/src/main/java/com/droiddeck/launcher/core/DeviceReport.kt
+++ b/app/src/main/java/com/droiddeck/launcher/core/DeviceReport.kt
@@ -27,6 +27,7 @@ import java.io.File
import java.text.SimpleDateFormat
import java.util.Date
import java.util.Locale
+import java.util.TimeZone
object DeviceReport {
private const val TAG = "DeviceReport"
@@ -36,6 +37,10 @@ object DeviceReport {
.map { it.substringAfter(':').trim().split(Regex("\\s+")).filter(String::isNotEmpty).joinToString(" ") }
.filter(String::isNotEmpty).distinct().joinToString(" | ").ifEmpty { "not reported" }
+ internal fun buildDate(millis: Long): String? = millis.takeIf { it > 0 }?.let {
+ SimpleDateFormat("yyyy-MM-dd HH:mm 'UTC'", Locale.US).apply { timeZone = TimeZone.getTimeZone("UTC") }.format(Date(it))
+ }
+
fun write(context: Context, target: File, mode: String) {
try {
target.writeText(build(context, mode))
@@ -129,6 +134,7 @@ object DeviceReport {
k("Android", "${Build.VERSION.RELEASE} (API ${Build.VERSION.SDK_INT})")
k("Security patch", Build.VERSION.SECURITY_PATCH)
k("Build", Build.DISPLAY)
+ k("Build date", buildDate(Build.TIME))
k("Fingerprint", Build.FINGERPRINT)
k("Kernel", System.getProperty("os.version"))
k("ABIs", Build.SUPPORTED_ABIS.joinToString(", "))
@@ -186,6 +192,7 @@ object DeviceReport {
val fs = StatFs(Environment.getExternalStorageDirectory().path)
k("Shared storage free", FileUtils.sizeToString(fs.availableBlocksLong * fs.blockSizeLong))
}
+ k("All files access", runCatching { com.droiddeck.launcher.files.AllFilesAccess.state() }.getOrNull())
h("GPU")
k("KGSL gpu_model", readSys("/sys/class/kgsl/kgsl-3d0/gpu_model"))
diff --git a/app/src/main/java/com/droiddeck/launcher/core/WirelessAdbFix.kt b/app/src/main/java/com/droiddeck/launcher/core/WirelessAdbFix.kt
index 64087a24f3..e9f8bbdfaa 100644
--- a/app/src/main/java/com/droiddeck/launcher/core/WirelessAdbFix.kt
+++ b/app/src/main/java/com/droiddeck/launcher/core/WirelessAdbFix.kt
@@ -119,7 +119,7 @@ object WirelessAdbFix {
* socket table, and mDNS often advertises nothing, so the ephemeral range Linux gives adbd is
* scanned on loopback (closed ports refuse at once) and the open ports are tried with our key.
*/
- private fun loopbackAdbPort(app: Context): Int? {
+ private fun loopbackAdbPort(app: Context, exclude: Int? = null): Int? {
val open = java.util.concurrent.ConcurrentLinkedQueue()
val workers = 32
val range = EPHEMERAL_PORTS
@@ -127,7 +127,7 @@ object WirelessAdbFix {
Thread {
var port = range.first + worker
while (port <= range.last) {
- if (answers(LOOPBACK, port, 150)) open += port
+ if (port != exclude && answers(LOOPBACK, port, 150)) open += port
port += workers
}
}.apply { start() }
@@ -162,8 +162,28 @@ object WirelessAdbFix {
}.getOrDefault(address is Inet4Address)
fun localConnectPort(context: Context): Int? =
- tlsPortProperty()
- ?: findConnectPort(context, LOOPBACK)
+ discoverConnectPort(context, LOOPBACK)
+
+ private fun discoverConnectPort(context: Context, host: String, exclude: Int? = null): Int? =
+ chooseConnectPort(host, exclude,
+ property = ::tlsPortProperty,
+ advertised = { acceptable -> findConnectPort(context, host, accept = acceptable) },
+ answers = { port -> answers(host, port) },
+ // Some local devices never advertise their connect port. Try only
+ // loopback and require the app's existing paired key to authenticate.
+ authenticatedLocal = { loopbackAdbPort(context.applicationContext, exclude) },
+ )
+
+ internal fun chooseConnectPort(
+ host: String, exclude: Int?,
+ property: () -> Int?, advertised: ((Int) -> Boolean) -> Int?,
+ answers: (Int) -> Boolean, authenticatedLocal: () -> Int?,
+ ): Int? {
+ val local = host == LOOPBACK
+ val acceptable: (Int) -> Boolean = { port -> port != exclude && (!local || answers(port)) }
+ val propertyPort = if (local) property()?.takeIf(acceptable) else null
+ return propertyPort ?: advertised(acceptable) ?: if (local) authenticatedLocal() else null
+ }
private fun tlsPortProperty(): Int? = runCatching {
Class.forName("android.os.SystemProperties").getMethod("get", String::class.java)
@@ -301,14 +321,14 @@ object WirelessAdbFix {
if (cachedPort != null) {
val cachedResult = runCatching { action(appContext, saved.host, cachedPort) }
if (cachedResult.isSuccess) return
- val discoveredPort = findConnectPort(appContext, saved.host)
+ val discoveredPort = discoverConnectPort(appContext, saved.host, exclude = cachedPort)
if (discoveredPort != null && discoveredPort != cachedPort) {
action(appContext, saved.host, discoveredPort)
} else {
cachedResult.getOrThrow()
}
} else {
- val discoveredPort = findConnectPort(appContext, saved.host)
+ val discoveredPort = discoverConnectPort(appContext, saved.host)
?: error(appContext.getString(R.string.adbfix_enter_address))
action(appContext, saved.host, discoveredPort)
}
diff --git a/app/src/main/java/com/droiddeck/launcher/core/WirelessAdbPairingService.kt b/app/src/main/java/com/droiddeck/launcher/core/WirelessAdbPairingService.kt
index f7097dce7c..d1e2d911e8 100644
--- a/app/src/main/java/com/droiddeck/launcher/core/WirelessAdbPairingService.kt
+++ b/app/src/main/java/com/droiddeck/launcher/core/WirelessAdbPairingService.kt
@@ -4,20 +4,23 @@ import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
-import android.app.RemoteInput
import android.app.Service
import android.content.Context
import android.content.Intent
+import android.net.Uri
import android.net.nsd.NsdManager
import android.net.nsd.NsdServiceInfo
import android.os.Build
import android.os.Handler
import android.os.IBinder
import android.os.Looper
+import android.util.TypedValue
+import android.widget.RemoteViews
import com.droiddeck.launcher.FrontEndActivity
import com.droiddeck.launcher.R
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
+import java.util.UUID
class WirelessAdbPairingService : Service() {
override fun attachBaseContext(newBase: android.content.Context) =
@@ -37,6 +40,8 @@ class WirelessAdbPairingService : Service() {
private var discovery: NsdManager.DiscoveryListener? = null
private var pairingHost: String? = null
private var pairingPort: Int? = null
+ private val keypad = WirelessPairingKeypad()
+ private var keypadToken = UUID.randomUUID().toString()
@Volatile private var working = false
@Volatile private var limitEnabled = false
@Volatile private var session = 0
@@ -46,13 +51,21 @@ class WirelessAdbPairingService : Service() {
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
when (intent?.action) {
- ACTION_CODE -> {
- val code = RemoteInput.getResultsFromIntent(intent)?.getCharSequence(KEY_CODE)
- ?.filter(Char::isDigit)?.toString().orEmpty()
- onCode(code)
+ ACTION_KEYPAD -> {
+ if (intent.data?.host == keypadToken && current.value is Stage.CodeNeeded && !working) {
+ val key = intent.data?.lastPathSegment?.toIntOrNull()
+ if (key == WirelessPairingKeypad.SUBMIT) {
+ if (keypad.ready && pairingPort != null) onCode(keypad.digits)
+ } else if (key != null && keypad.press(key)) {
+ show(current.value, quietUpdate = true)
+ }
+ } else if (current.value == Stage.Idle) {
+ stopSelf(startId)
+ }
}
ACTION_CANCEL -> finish(Stage.Idle)
- else -> begin(intent?.getBooleanExtra(EXTRA_ENABLE_LIMIT, false) == true)
+ null -> begin(intent?.getBooleanExtra(EXTRA_ENABLE_LIMIT, false) == true)
+ else -> if (discovery == null && !working) stopSelf(startId)
}
return START_NOT_STICKY
}
@@ -60,11 +73,13 @@ class WirelessAdbPairingService : Service() {
private fun begin(enableLimit: Boolean) {
if (working) return
session++
+ resetKeypad()
limitEnabled = enableLimit
pairingHost = null
pairingPort = null
working = false
publish(Stage.Waiting)
+ getSystemService(NotificationManager::class.java)?.cancel(KEYPAD_NOTIFICATION_ID)
startForeground(NOTIFICATION_ID, notification(Stage.Waiting))
startDiscovery()
main.removeCallbacks(timeout)
@@ -101,9 +116,13 @@ class WirelessAdbPairingService : Service() {
if (!WirelessAdbFix.isLocalAddress(address)) return
main.post {
if (owner != session || working || current.value == Stage.Done) return@post
+ val endpointChanged = pairingHost != address.hostAddress || pairingPort != serviceInfo.port
pairingHost = address.hostAddress
pairingPort = serviceInfo.port
- if (current.value !is Stage.CodeNeeded) show(Stage.CodeNeeded())
+ if (endpointChanged) {
+ resetKeypad()
+ show(Stage.CodeNeeded())
+ }
}
}
}
@@ -117,11 +136,12 @@ class WirelessAdbPairingService : Service() {
show(Stage.Waiting)
return
}
- if (code.length != 6) {
+ if (code.length != WirelessPairingKeypad.LENGTH) {
show(Stage.CodeNeeded(getString(R.string.adbpair_six_digits)))
return
}
working = true
+ resetKeypad()
val owner = session
val enable = limitEnabled
show(Stage.Working(getString(R.string.adbpair_pairing)))
@@ -155,17 +175,34 @@ class WirelessAdbPairingService : Service() {
}, "wireless-adb-pairing").start()
}
- private fun show(stage: Stage) {
+ private fun show(stage: Stage, quietUpdate: Boolean = false) {
publish(stage)
- getSystemService(NotificationManager::class.java)?.notify(NOTIFICATION_ID, notification(stage))
+ val manager = getSystemService(NotificationManager::class.java) ?: return
+ if (stage is Stage.CodeNeeded) {
+ // A new high-priority notification can pop over Settings. Updating the
+ // quiet foreground-service notification can leave the keypad in the shade.
+ // End any previous indeterminate progress even if this is a code retry.
+ if (!quietUpdate) manager.notify(NOTIFICATION_ID, notification(stage, foregroundCodeEntry = true))
+ manager.notify(KEYPAD_NOTIFICATION_ID, notification(stage, quietUpdate))
+ } else {
+ manager.cancel(KEYPAD_NOTIFICATION_ID)
+ manager.notify(NOTIFICATION_ID, notification(stage, quietUpdate))
+ }
+ }
+
+ private fun resetKeypad() {
+ keypad.clear()
+ keypadToken = UUID.randomUUID().toString()
}
private fun finish(stage: Stage) {
session++
+ resetKeypad()
main.removeCallbacks(timeout)
stopDiscovery()
publish(stage)
val manager = getSystemService(NotificationManager::class.java)
+ manager?.cancel(KEYPAD_NOTIFICATION_ID)
if (stage is Stage.Done || stage is Stage.Failed) {
manager?.notify(NOTIFICATION_ID, notification(stage))
stopForeground(STOP_FOREGROUND_DETACH)
@@ -183,13 +220,16 @@ class WirelessAdbPairingService : Service() {
}
override fun onDestroy() {
+ getSystemService(NotificationManager::class.java)?.cancel(KEYPAD_NOTIFICATION_ID)
main.removeCallbacks(timeout)
stopDiscovery()
if (current.value.let { it is Stage.Waiting || it is Stage.CodeNeeded || it is Stage.Working }) publish(Stage.Idle)
super.onDestroy()
}
- private fun notification(stage: Stage): Notification {
+ private fun notification(
+ stage: Stage, quietUpdate: Boolean = false, foregroundCodeEntry: Boolean = false,
+ ): Notification {
val manager = getSystemService(NotificationManager::class.java)
manager?.createNotificationChannel(NotificationChannel(CHANNEL_ID, getString(R.string.adbpair_channel_name),
NotificationManager.IMPORTANCE_HIGH).apply {
@@ -205,7 +245,7 @@ class WirelessAdbPairingService : Service() {
PendingIntent.FLAG_IMMUTABLE)
val cancel = PendingIntent.getService(this, 1,
Intent(this, WirelessAdbPairingService::class.java).setAction(ACTION_CANCEL), PendingIntent.FLAG_IMMUTABLE)
- val quiet = stage == Stage.Waiting || stage == Stage.Idle || stage is Stage.Working
+ val quiet = foregroundCodeEntry || stage == Stage.Waiting || stage == Stage.Idle || stage is Stage.Working
val builder = Notification.Builder(this, if (quiet) PROGRESS_CHANNEL_ID else CHANNEL_ID)
.setSmallIcon(R.drawable.ic_stat_session)
.setContentIntent(open)
@@ -220,19 +260,31 @@ class WirelessAdbPairingService : Service() {
.setOnlyAlertOnce(true)
.addAction(Notification.Action.Builder(null, getString(R.string.common_cancel), cancel).build())
is Stage.CodeNeeded -> {
- val reply = PendingIntent.getService(this, 2,
- Intent(this, WirelessAdbPairingService::class.java).setAction(ACTION_CODE),
- if (Build.VERSION.SDK_INT >= 31) PendingIntent.FLAG_MUTABLE or PendingIntent.FLAG_UPDATE_CURRENT
- else PendingIntent.FLAG_UPDATE_CURRENT)
- val input = RemoteInput.Builder(KEY_CODE).setLabel(getString(R.string.adbpair_code_label)).build()
- val text = stage.error ?: getString(R.string.adbpair_code_hint)
builder
- .setContentTitle(getString(if (stage.error == null) R.string.adbpair_title_code else R.string.adbpair_title_retry))
- .setContentText(text)
- .setStyle(Notification.BigTextStyle().bigText(text))
+ .setContentTitle(getString(if (foregroundCodeEntry) R.string.adbpair_title_pair
+ else if (stage.error == null) R.string.adbpair_title_code else R.string.adbpair_title_retry))
+ .setContentIntent(null)
+ .setVisibility(Notification.VISIBILITY_SECRET)
+ .setLocalOnly(true)
.setOngoing(true)
- .addAction(Notification.Action.Builder(null, getString(R.string.adbpair_enter_code), reply).addRemoteInput(input).build())
- .addAction(Notification.Action.Builder(null, getString(R.string.common_cancel), cancel).build())
+ .setOnlyAlertOnce(foregroundCodeEntry || quietUpdate)
+ if (!foregroundCodeEntry) {
+ // Keep the keypad separate from status/install notifications. Android owns
+ // the heads-up timeout; the drawer remains usable without expanding a group.
+ builder.setGroup(KEYPAD_GROUP)
+ .addAction(Notification.Action.Builder(null, getString(R.string.common_cancel), cancel).build())
+ if (stage.error != null && pairingPort == null) {
+ builder.setContentText(stage.error)
+ .setStyle(Notification.BigTextStyle().bigText(stage.error))
+ } else {
+ builder.setStyle(Notification.DecoratedCustomViewStyle())
+ .setCustomBigContentView(pairingKeypad())
+ .setCustomHeadsUpContentView(pairingKeypad(keyHeightDp = 24))
+ if (Build.VERSION.SDK_INT >= 31) {
+ builder.setCustomContentView(pairingKeypad(keyHeightDp = 21))
+ }
+ }
+ }
}
is Stage.Working -> builder
.setContentTitle(getString(R.string.adbpair_title_working))
@@ -254,14 +306,39 @@ class WirelessAdbPairingService : Service() {
return builder.build()
}
+ private fun pairingKeypad(keyHeightDp: Int? = null): RemoteViews = RemoteViews(packageName, R.layout.wireless_pairing_keypad).apply {
+ val ids = intArrayOf(R.id.pair_key_0, R.id.pair_key_1, R.id.pair_key_2, R.id.pair_key_3, R.id.pair_key_4,
+ R.id.pair_key_5, R.id.pair_key_6, R.id.pair_key_7, R.id.pair_key_8, R.id.pair_key_9,
+ R.id.pair_key_delete, R.id.pair_key_submit)
+ ids.forEachIndexed { key, id ->
+ if (keyHeightDp != null && Build.VERSION.SDK_INT >= 31) {
+ // Fit both rows inside the system template's heads-up or collapsed height.
+ setViewLayoutHeight(id, keyHeightDp.toFloat(), TypedValue.COMPLEX_UNIT_DIP)
+ setViewLayoutMargin(id, RemoteViews.MARGIN_TOP, 1f, TypedValue.COMPLEX_UNIT_DIP)
+ setViewLayoutMargin(id, RemoteViews.MARGIN_BOTTOM, 1f, TypedValue.COMPLEX_UNIT_DIP)
+ setTextViewTextSize(id, TypedValue.COMPLEX_UNIT_SP, if (keyHeightDp < 24) 14f else 15f)
+ }
+ val intent = Intent(this@WirelessAdbPairingService, WirelessAdbPairingService::class.java)
+ .setAction(ACTION_KEYPAD)
+ .setData(Uri.Builder().scheme("droiddeck-pairing").authority(keypadToken).appendPath(key.toString()).build())
+ val press = PendingIntent.getService(this@WirelessAdbPairingService, key, intent, PendingIntent.FLAG_IMMUTABLE)
+ setOnClickPendingIntent(id, press)
+ }
+ setTextViewText(R.id.pair_key_code, keypad.display)
+ setContentDescription(R.id.pair_key_code, getString(R.string.adbpair_keypad_entered, keypad.digits.length))
+ setBoolean(R.id.pair_key_delete, "setEnabled", keypad.digits.isNotEmpty())
+ setBoolean(R.id.pair_key_submit, "setEnabled", keypad.ready && pairingPort != null)
+ }
+
companion object {
private const val CHANNEL_ID = "wireless-adb-pairing"
private const val PROGRESS_CHANNEL_ID = "wireless-adb-pairing-progress"
private const val NOTIFICATION_ID = 3
+ private const val KEYPAD_NOTIFICATION_ID = 3403
+ private const val KEYPAD_GROUP = "wireless-adb-keypad"
private const val PAIRING_TYPE = "_adb-tls-pairing._tcp"
- private const val ACTION_CODE = "com.droiddeck.launcher.action.WIRELESS_ADB_CODE"
+ private const val ACTION_KEYPAD = "com.droiddeck.launcher.action.WIRELESS_ADB_KEYPAD"
private const val ACTION_CANCEL = "com.droiddeck.launcher.action.WIRELESS_ADB_CANCEL"
- private const val KEY_CODE = "code"
private const val EXTRA_ENABLE_LIMIT = "enable_limit"
private const val TIMEOUT_MS = 5 * 60_000L
@@ -288,7 +365,7 @@ class WirelessAdbPairingService : Service() {
fun notificationsEnabled(context: Context): Boolean =
context.getSystemService(NotificationManager::class.java)?.areNotificationsEnabled() != false && !channelBlocked(context)
- /** The code is typed into a notification on this channel; a channel the user switched off leaves pairing with nothing to type into. */
+ /** Pairing needs this notification channel to show the keypad over Android Settings. */
fun channelBlocked(context: Context): Boolean =
context.getSystemService(NotificationManager::class.java)?.getNotificationChannel(CHANNEL_ID)?.importance == NotificationManager.IMPORTANCE_NONE
diff --git a/app/src/main/java/com/droiddeck/launcher/core/WirelessPairingKeypad.kt b/app/src/main/java/com/droiddeck/launcher/core/WirelessPairingKeypad.kt
new file mode 100644
index 0000000000..942911a78d
--- /dev/null
+++ b/app/src/main/java/com/droiddeck/launcher/core/WirelessPairingKeypad.kt
@@ -0,0 +1,29 @@
+package com.droiddeck.launcher.core
+
+internal class WirelessPairingKeypad {
+ var digits = ""
+ private set
+ val ready: Boolean get() = digits.length == LENGTH
+ val display: String get() = digits.padEnd(LENGTH, '–')
+
+ fun press(key: Int): Boolean {
+ val next = when {
+ key == DELETE -> digits.dropLast(1)
+ key in 0..9 && !ready -> digits + key
+ else -> digits
+ }
+ if (next == digits) return false
+ digits = next
+ return true
+ }
+
+ fun clear() {
+ digits = ""
+ }
+
+ companion object {
+ const val LENGTH = 6
+ const val DELETE = 10
+ const val SUBMIT = 11
+ }
+}
diff --git a/app/src/main/java/com/droiddeck/launcher/files/AllFilesAccess.kt b/app/src/main/java/com/droiddeck/launcher/files/AllFilesAccess.kt
index 2c9529f4ed..94ea2e33f9 100644
--- a/app/src/main/java/com/droiddeck/launcher/files/AllFilesAccess.kt
+++ b/app/src/main/java/com/droiddeck/launcher/files/AllFilesAccess.kt
@@ -14,6 +14,15 @@ object AllFilesAccess {
fun missing(sdk: Int = Build.VERSION.SDK_INT, granted: () -> Boolean = { Environment.isExternalStorageManager() }): Boolean =
sdk >= Build.VERSION_CODES.R && !granted()
+ fun state(sdk: Int = Build.VERSION.SDK_INT, granted: () -> Boolean = { Environment.isExternalStorageManager() }): String = when {
+ sdk < Build.VERSION_CODES.R -> "not needed"
+ granted() -> "granted"
+ else -> "missing"
+ }
+
+ fun mayHideFilesIn(path: String, sdk: Int = Build.VERSION.SDK_INT, granted: () -> Boolean = { Environment.isExternalStorageManager() }): Boolean =
+ covers(path) && missing(sdk, granted)
+
/** Whether reading [path] takes all-files access: shared storage, outside the per-app folders directly under a volume's root, which Android always lets the app use. */
fun covers(path: String): Boolean {
val inside = VOLUME.matchEntire(path)?.groupValues?.get(2) ?: return false
diff --git a/app/src/main/java/com/droiddeck/launcher/input/RedMagicAirTriggers.kt b/app/src/main/java/com/droiddeck/launcher/input/RedMagicAirTriggers.kt
new file mode 100644
index 0000000000..051e745945
--- /dev/null
+++ b/app/src/main/java/com/droiddeck/launcher/input/RedMagicAirTriggers.kt
@@ -0,0 +1,324 @@
+package com.droiddeck.launcher.input
+
+import android.content.Context
+import android.content.SharedPreferences
+import android.net.Uri
+import android.os.Build
+import android.os.Handler
+import android.os.IBinder
+import android.os.Looper
+import android.os.Parcel
+import android.provider.Settings
+import android.util.Log
+import android.view.InputDevice
+import android.view.KeyEvent
+import java.util.EnumMap
+import java.util.EnumSet
+import java.util.concurrent.Executor
+import java.util.concurrent.LinkedBlockingQueue
+import java.util.concurrent.ThreadPoolExecutor
+import java.util.concurrent.TimeUnit
+import org.json.JSONObject
+
+enum class AirTrigger(val keyCode: Int, val control: InputControl, val pressLight: Int, val releaseLight: Int) {
+ LEFT(KeyEvent.KEYCODE_F7, InputControl.LT, 106, 107), RIGHT(KeyEvent.KEYCODE_F8, InputControl.RT, 108, 109);
+
+ companion object {
+ private const val DEVICE_PREFIX = "nubia_tgk"
+
+ internal fun isTriggerDevice(device: InputDevice?): Boolean {
+ if (device == null) return false
+ if (device.name.startsWith(DEVICE_PREFIX)) return true
+ // Some RedMagic firmware merges the trigger sensors with an unnamed built-in keyboard.
+ return Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q &&
+ device.name.isEmpty() && !device.isVirtual && !device.isExternal &&
+ device.supportsSource(InputDevice.SOURCE_KEYBOARD) &&
+ device.hasKeys(LEFT.keyCode, RIGHT.keyCode).all { it }
+ }
+
+ internal fun of(keyCode: Int, device: InputDevice?): AirTrigger? =
+ entries.firstOrNull { it.keyCode == keyCode }?.takeIf { isTriggerDevice(device) }
+ }
+}
+
+/** Game Space's single tap holds the button while the trigger is touched; its long press latches it until the next touch. */
+enum class AirTriggerAction { TAP, LATCH, RAPID }
+
+/** Game Space's rapid fire counts for its low, normal and high click frequency. */
+enum class RapidFireRate(val clicksPerSecond: Int) { LOW(2), NORMAL(5), HIGH(10) }
+
+/** Game Space's touch atmosphere lamp cases, by their name in RedMagic's shoulder light settings. */
+enum class AirTriggerLed(val effect: String, val fallback: String) {
+ OFF("close", "02000000"), STEADY("steady", "02101000"), PULSE("pulse", "02102000")
+}
+
+data class AirTriggerSetup(
+ val element: InputSurfaceElement,
+ val action: AirTriggerAction = AirTriggerAction.TAP,
+ val rate: RapidFireRate = RapidFireRate.NORMAL,
+) {
+ /** Long press and rapid fire decide when the button is let go, so they press a toggle button as a plain one. */
+ internal val target get() = if (action != AirTriggerAction.TAP && element.toggle) element.copy(toggle = false) else element
+}
+
+object AirTriggerButtons {
+ fun options(layout: SavedInputLayout?): List {
+ val placed = layout?.let { (it.elements + it.rotated).distinctBy { element -> element.id } }.orEmpty()
+ .filter { it.kind == InputElementKind.BUTTON || it.kind == InputElementKind.TRIGGER }
+ return placed + AirTrigger.entries.filter { trigger -> placed.none { it.control == trigger.control } }
+ .map { InputSurfaceElement(it.control, 0f, 0f, 0f, 0f) }
+ }
+
+ fun resolve(layout: SavedInputLayout?, trigger: AirTrigger, chosen: String?): InputSurfaceElement {
+ val options = options(layout)
+ return chosen?.let { id -> options.firstOrNull { it.id == id } } ?: options.first { it.control == trigger.control }
+ }
+}
+
+object AirTriggerPrefs {
+ private const val FILE = "redmagic-air-triggers"
+ private const val ENABLED = "enabled"
+ private const val VIBRATION = "vibration"
+ private const val SCREEN_LIGHT = "screen-light"
+ private const val LED = "led"
+ internal const val OWNED = "distribute-owned"
+
+ fun prefs(context: Context): SharedPreferences = context.getSharedPreferences(FILE, Context.MODE_PRIVATE)
+ fun enabled(context: Context) = prefs(context).getBoolean(ENABLED, false)
+ fun setEnabled(context: Context, on: Boolean) = prefs(context).edit().putBoolean(ENABLED, on).apply()
+ fun button(context: Context, layoutId: String, trigger: AirTrigger): String? = prefs(context).getString(key(layoutId, trigger), null)
+ fun setButton(context: Context, layoutId: String, trigger: AirTrigger, elementId: String) =
+ prefs(context).edit().putString(key(layoutId, trigger), elementId).apply()
+ fun action(context: Context, layoutId: String, trigger: AirTrigger) = read(context, key(layoutId, trigger, "action"), AirTriggerAction.TAP)
+ fun setAction(context: Context, layoutId: String, trigger: AirTrigger, action: AirTriggerAction) =
+ prefs(context).edit().putString(key(layoutId, trigger, "action"), action.name).apply()
+ fun rate(context: Context, layoutId: String, trigger: AirTrigger) = read(context, key(layoutId, trigger, "rate"), RapidFireRate.NORMAL)
+ fun setRate(context: Context, layoutId: String, trigger: AirTrigger, rate: RapidFireRate) =
+ prefs(context).edit().putString(key(layoutId, trigger, "rate"), rate.name).apply()
+ fun vibration(context: Context) = prefs(context).getBoolean(VIBRATION, false)
+ fun setVibration(context: Context, on: Boolean) = prefs(context).edit().putBoolean(VIBRATION, on).apply()
+ fun screenLight(context: Context) = prefs(context).getBoolean(SCREEN_LIGHT, false)
+ fun setScreenLight(context: Context, on: Boolean) = prefs(context).edit().putBoolean(SCREEN_LIGHT, on).apply()
+ fun led(context: Context) = read(context, LED, AirTriggerLed.STEADY)
+ fun setLed(context: Context, led: AirTriggerLed) = prefs(context).edit().putString(LED, led.name).apply()
+
+ private inline fun > read(context: Context, key: String, default: E): E =
+ prefs(context).getString(key, null)?.let { name -> enumValues().firstOrNull { it.name == name } } ?: default
+
+ private fun key(layoutId: String, trigger: AirTrigger, setting: String? = null) =
+ listOfNotNull(trigger.name.lowercase(), setting).joinToString("-") + ".$layoutId"
+}
+
+/** Game Space's exported provider switches the triggers to plain F7/F8 keys without its panel, and needs no permission. */
+object RedMagicAirTriggers {
+ private const val TAG = "AirTriggers"
+ private const val AUTHORITY = "cn.nubia.tgk.data.TgkDataProvider"
+ private val URI = Uri.parse("content://$AUTHORITY")
+ private const val OPEN = "openTouchGameKeyDistribute"
+ private const val CLOSE = "closeTouchGameKeyDistribute"
+ private const val SHOULDER_LIGHT_ON = 110
+ private const val SHOULDER_LIGHT_OFF = 111
+ private const val SHOULDER_SETTINGS = "lighting_shoulder_config_json"
+ private val REAPPLY_MS = longArrayOf(1_000, 5_000)
+ internal var worker: Executor = ThreadPoolExecutor(0, 1, 10, TimeUnit.SECONDS, LinkedBlockingQueue()) { Thread(it, "air-triggers") }
+ internal var lights: TriggerLights = ColorfulLights
+ private val main = Handler(Looper.getMainLooper())
+ private var reapply: Runnable? = null
+
+ @Suppress("DEPRECATION")
+ fun supported(context: Context) = context.packageManager.resolveContentProvider(AUTHORITY, 0) != null &&
+ InputDevice.getDeviceIds().any { AirTrigger.isTriggerDevice(InputDevice.getDevice(it)) }
+
+ /** Call on the main thread. */
+ fun open(context: Context) {
+ val app = context.applicationContext
+ cancelReapply()
+ worker.execute { apply(app) }
+ // Game Space runs its own trigger setup for the app that comes to the front, which switches the trigger keys and lights off again.
+ val again = Runnable { worker.execute { apply(app) } }
+ reapply = again
+ REAPPLY_MS.forEach { main.postDelayed(again, it) }
+ }
+
+ private fun apply(app: Context) {
+ val prefs = AirTriggerPrefs.prefs(app)
+ if (!prefs.getBoolean(AirTriggerPrefs.OWNED, false) && Settings.Global.getInt(app.contentResolver, OPEN, 0) != 1)
+ prefs.edit().putBoolean(AirTriggerPrefs.OWNED, true).commit()
+ call(app, OPEN)
+ if (!prefs.getBoolean(AirTriggerPrefs.OWNED, false)) return
+ lights.request(SHOULDER_LIGHT_ON)
+ // The light service drops every trigger light until an effect is set, which Game Space only does from its own view.
+ lights.setEffect(shoulderEffect(Settings.Global.getString(app.contentResolver, SHOULDER_SETTINGS), AirTriggerPrefs.led(app)))
+ // Entering the scene turns the lights off; the release actions show the idle light picked in RedMagic's lighting settings.
+ AirTrigger.entries.forEach { lights.request(it.releaseLight) }
+ }
+
+ /** The code RedMagic's shoulder light settings give the effect, such as "02101000" for steady. */
+ internal fun shoulderEffect(settings: String?, led: AirTriggerLed): String = settings
+ ?.let { runCatching { JSONObject(it).optJSONObject("shoulder_effects")?.optString(led.effect) }.getOrNull() }
+ ?.takeIf { it.length == 8 } ?: led.fallback
+
+ /** Closes only what this app opened, so a distribute another app turned on stays on. Call on the main thread. */
+ fun restore(context: Context) {
+ val app = context.applicationContext
+ cancelReapply()
+ worker.execute {
+ val prefs = AirTriggerPrefs.prefs(app)
+ if (!prefs.getBoolean(AirTriggerPrefs.OWNED, false)) return@execute
+ lights.request(SHOULDER_LIGHT_OFF)
+ if (call(app, CLOSE)) prefs.edit().remove(AirTriggerPrefs.OWNED).commit()
+ }
+ }
+
+ fun light(code: Int) = worker.execute { lights.request(code) }
+
+ private fun cancelReapply() {
+ reapply?.let(main::removeCallbacks)
+ reapply = null
+ }
+
+ private fun call(context: Context, method: String) = runCatching { context.contentResolver.call(URI, method, null, null) != null }
+ .onFailure { Log.w(TAG, "$method failed", it) }.getOrDefault(false)
+}
+
+internal interface TriggerLights {
+ fun request(action: Int)
+ fun setEffect(effect: String)
+}
+
+private object ColorfulLights : TriggerLights {
+ private const val TAG = "AirTriggers"
+ private const val SERVICE = "ColorfulLightService"
+ private const val INTERFACE = "com.zte.hardware.IColorfulLightManager"
+ // IColorfulLightManager transaction codes; its ColorfulLightManager wrapper is a blocked hidden API.
+ private const val REQUEST_LIGHT = IBinder.FIRST_CALL_TRANSACTION
+ private const val SET_SHOULDER_EFFECT = IBinder.FIRST_CALL_TRANSACTION + 2
+ private val binder: IBinder? by lazy {
+ runCatching { Class.forName("android.os.ServiceManager").getMethod("getService", String::class.java).invoke(null, SERVICE) as IBinder? }
+ .getOrNull()?.takeIf { runCatching { it.interfaceDescriptor }.getOrNull() == INTERFACE }
+ }
+
+ override fun request(action: Int) = transact(REQUEST_LIGHT) { writeInt(action) }
+ override fun setEffect(effect: String) = transact(SET_SHOULDER_EFFECT) { writeString(effect) }
+
+ private fun transact(code: Int, write: Parcel.() -> Unit) {
+ val binder = binder ?: return
+ val data = Parcel.obtain()
+ val reply = Parcel.obtain()
+ try {
+ data.writeInterfaceToken(INTERFACE)
+ data.write()
+ binder.transact(code, data, reply, 0)
+ reply.readException()
+ } catch (e: Exception) {
+ Log.w(TAG, "light call $code failed", e)
+ } finally {
+ data.recycle()
+ reply.recycle()
+ }
+ }
+}
+
+/** Presses the chosen button on screen when it is shown, so it animates and keeps one toggle state; otherwise uses a source of its own. */
+class AirTriggerInput(
+ private val pad: PadBridge,
+ private val onScreen: (elementId: String, trigger: AirTrigger, held: Boolean, cancelled: Boolean) -> Boolean = { _, _, _, _ -> false },
+ private val touched: (AirTrigger, Boolean) -> Unit = { _, _ -> },
+ private val handler: Handler = Handler(Looper.getMainLooper()),
+) {
+ private val sources = EnumMap(AirTrigger::class.java)
+ private val setups = EnumMap(AirTrigger::class.java)
+ private val held = EnumSet.noneOf(AirTrigger::class.java)
+ private val pressed = EnumSet.noneOf(AirTrigger::class.java)
+ private val heldOnScreen = EnumMap(AirTrigger::class.java)
+ private val timers = EnumMap(AirTrigger::class.java)
+
+ fun configure(setups: Map) {
+ for (trigger in AirTrigger.entries) {
+ val setup = setups[trigger]
+ if (this.setups[trigger] == setup) continue
+ stop(trigger)
+ if (sources[trigger]?.element != setup?.target) {
+ pressed.remove(trigger)
+ heldOnScreen.remove(trigger)?.let { onScreen(it, trigger, false, true) }
+ sources.remove(trigger)?.close()
+ if (setup != null) sources[trigger] = InputSurfaceSource(pad, InputRole.PRIMARY, setup.target)
+ } else if (trigger in pressed) unpress(trigger, cancelled = true)
+ if (setup != null) this.setups[trigger] = setup else this.setups.remove(trigger)
+ }
+ }
+
+ fun onKey(event: KeyEvent, enabled: () -> Boolean): Boolean {
+ if (event.keyCode != AirTrigger.LEFT.keyCode && event.keyCode != AirTrigger.RIGHT.keyCode) return false
+ val trigger = AirTrigger.of(event.keyCode, event.device) ?: return false
+ return onKey(trigger, event.action, event.repeatCount, event.action == KeyEvent.ACTION_DOWN && enabled())
+ }
+
+ fun onKey(trigger: AirTrigger, action: Int, repeatCount: Int, enabled: Boolean): Boolean {
+ val source = sources[trigger]
+ when (action) {
+ KeyEvent.ACTION_DOWN -> if (source != null && enabled && repeatCount == 0 && held.add(trigger)) {
+ touched(trigger, true)
+ val setup = setups[trigger]
+ if (setup?.action == AirTriggerAction.LATCH && trigger in pressed) unpress(trigger, cancelled = false)
+ else if (trigger !in pressed) {
+ press(trigger, source)
+ if (setup?.action == AirTriggerAction.RAPID) rapid(trigger, 500L / setup.rate.clicksPerSecond)
+ }
+ }
+ KeyEvent.ACTION_UP -> if (held.remove(trigger)) {
+ touched(trigger, false)
+ if (setups[trigger]?.action != AirTriggerAction.LATCH) {
+ stop(trigger)
+ if (trigger in pressed) unpress(trigger, cancelled = false)
+ }
+ return true
+ }
+ }
+ return source != null
+ }
+
+ private fun rapid(trigger: AirTrigger, halfPeriod: Long) {
+ val tick = object : Runnable {
+ override fun run() {
+ if (trigger in pressed) unpress(trigger, cancelled = false) else sources[trigger]?.let { press(trigger, it) }
+ handler.postDelayed(this, halfPeriod)
+ }
+ }
+ timers[trigger] = tick
+ handler.postDelayed(tick, halfPeriod)
+ }
+
+ private fun stop(trigger: AirTrigger) {
+ timers.remove(trigger)?.let(handler::removeCallbacks)
+ }
+
+ private fun press(trigger: AirTrigger, source: InputSurfaceSource) {
+ pressed += trigger
+ if (source.element == setups[trigger]?.element && onScreen(source.element.id, trigger, true, false)) {
+ heldOnScreen[trigger] = source.element.id
+ // The router counts held keys, so a toggle latched while its button was hidden is released before the button takes over.
+ if (source.latched) source.release()
+ } else source.update(1f)
+ }
+
+ private fun unpress(trigger: AirTrigger, cancelled: Boolean) {
+ pressed -= trigger
+ heldOnScreen.remove(trigger)?.let { onScreen(it, trigger, false, cancelled) }
+ ?: sources[trigger]?.let { if (cancelled) it.cancel() else it.update(0f) }
+ }
+
+ fun release() {
+ AirTrigger.entries.forEach(::stop)
+ held.toList().forEach { held.remove(it); touched(it, false) }
+ pressed.toList().forEach { unpress(it, cancelled = true) }
+ sources.values.forEach { it.release() }
+ }
+
+ fun close() {
+ release()
+ sources.values.forEach { it.close() }
+ sources.clear()
+ setups.clear()
+ }
+}
diff --git a/app/src/main/java/com/droiddeck/launcher/session/EnhancedSessionLogShare.kt b/app/src/main/java/com/droiddeck/launcher/session/EnhancedSessionLogShare.kt
index c9c55f9c27..566f2bf20f 100644
--- a/app/src/main/java/com/droiddeck/launcher/session/EnhancedSessionLogShare.kt
+++ b/app/src/main/java/com/droiddeck/launcher/session/EnhancedSessionLogShare.kt
@@ -268,7 +268,7 @@ internal object EnhancedSessionLogShare {
val out = outputDirectory.apply { deleteRecursively(); mkdirs() }
val redactionLearningComplete = LogRedactor.learnFromRuntime(LinuxRuntime.rootDir(context))
val discovery = collect(context, folder, limits.maxDiscoveredFiles, legacy = true)
- val candidates = discovery.candidates.filter { it.linePrefix == null }
+ val candidates = discovery.candidates.filter { it.linePrefix == null }.sortedBy(::sharePriority)
if (candidates.isEmpty()) {
out.deleteRecursively()
return null
@@ -697,15 +697,6 @@ internal object EnhancedSessionLogShare {
Category.GAMES, "DROIDDECK_DIAGNOSTICS event=game_",
)
}
- if (SessionPaths.current()?.canonicalFile == folder.canonicalFile && !File(folder, "steam").exists()) {
- val steam = File(SessionPrefs.activeSteamRoot(context), "logs")
- val scan = directFiles(steam, remaining(maxFiles, out.size))
- truncated = truncated || scan.truncated
- partial = partial || scan.partial
- scan.files.forEach {
- add(it, steam, "${folder.name}/steam/${it.name}", "live-steam")
- }
- }
val logs = LinuxRuntime.logDir(context)
for ((name, root) in listOf(SessionLogShare.STORES_DIR to File(logs, SessionLogShare.STORES_DIR), SessionPaths.TOOLS_DIR to File(logs, SessionPaths.TOOLS_DIR))) {
val scan = directFiles(root, STORE_LOG_SCAN)
@@ -742,9 +733,24 @@ internal object EnhancedSessionLogShare {
if (relative == EnhancedDiagnostics.MANIFEST_FILE) return@forEach
add(file, folder, "${folder.name}/$relative", "session")
}
+ if (SessionPaths.current()?.canonicalFile == folder.canonicalFile && !File(folder, "steam").exists()) {
+ val steam = File(SessionPrefs.activeSteamRoot(context), "logs")
+ val scan = directFiles(steam, remaining(maxFiles, out.size))
+ truncated = truncated || scan.truncated
+ partial = partial || scan.partial
+ scan.files.forEach {
+ add(it, steam, "${folder.name}/steam/${it.name}", "live-steam")
+ }
+ }
return CollectionResult(out.values.toList(), truncated, partial)
}
+ private fun sharePriority(candidate: Candidate): Int = when {
+ candidate.origin == "session-critical" -> 0
+ candidate.origin == "session" && candidate.category == Category.GAMES -> 1
+ else -> 2
+ }
+
private fun remaining(maxFiles: Int, found: Int): Int = (maxFiles - found + 1).coerceAtLeast(0)
private fun walk(root: File, limit: Int): ScanResult {
diff --git a/app/src/main/java/com/droiddeck/launcher/session/FullscreenMode.kt b/app/src/main/java/com/droiddeck/launcher/session/FullscreenMode.kt
new file mode 100644
index 0000000000..9d3cdd2e21
--- /dev/null
+++ b/app/src/main/java/com/droiddeck/launcher/session/FullscreenMode.kt
@@ -0,0 +1,18 @@
+package com.droiddeck.launcher.session
+
+import android.content.res.Configuration
+import androidx.annotation.StringRes
+import com.droiddeck.launcher.R
+
+enum class FullscreenMode(@StringRes val label: Int) {
+ ALWAYS(R.string.widgets_on),
+ LANDSCAPE_ONLY(R.string.setup_fullscreen_landscape_only),
+ OFF(R.string.widgets_off);
+
+ fun hidesSystemBars(orientation: Int): Boolean =
+ this == ALWAYS || (this == LANDSCAPE_ONLY && orientation == Configuration.ORIENTATION_LANDSCAPE)
+
+ companion object {
+ fun fromStored(value: String?): FullscreenMode? = entries.firstOrNull { it.name == value }
+ }
+}
diff --git a/app/src/main/java/com/droiddeck/launcher/session/ProtonExtras.kt b/app/src/main/java/com/droiddeck/launcher/session/ProtonExtras.kt
index 412fc79627..756a721a7a 100644
--- a/app/src/main/java/com/droiddeck/launcher/session/ProtonExtras.kt
+++ b/app/src/main/java/com/droiddeck/launcher/session/ProtonExtras.kt
@@ -9,6 +9,8 @@ import com.droiddeck.launcher.core.Downloader
import com.droiddeck.launcher.core.FileUtils
import com.droiddeck.launcher.runtime.LinuxRuntime
import com.droiddeck.launcher.runtime.NativeGuest
+import com.droiddeck.launcher.storage.SteamStorage
+import com.droiddeck.launcher.stores.steam.SteamClient
import java.io.File
import java.util.Locale
import org.json.JSONArray
@@ -34,7 +36,9 @@ object ProtonExtras {
private var replacing = false
class Tool(val id: String, val name: String, val prefix: String, val repo: String, val assetPattern: Regex,
- val prereleases: Boolean = false)
+ val prereleases: Boolean = false, val x86_64: Boolean = false, val label: Int = 0) {
+ val arch: String get() = if (x86_64) "x86-64" else "ARM64"
+ }
internal data class Asset(val tag: String, val name: String, val url: String, val sha512: String?, val size: Long,
val sha256: String? = null, val releaseName: String = tag)
@@ -42,11 +46,13 @@ object ProtonExtras {
const val OWN = "droiddeck"
const val BIONIC = "bionic"
+ const val ANTICHEAT = "anticheat"
val tools = listOf(
Tool("ge", "GE-Proton", "GE-Proton", "GloriousEggroll/proton-ge-custom", Regex("aarch64\\.tar\\.(gz|xz)$")),
Tool("cachyos", "proton-cachyos", "proton-cachyos", "CachyOS/proton-cachyos", Regex("arm64\\.tar\\.(gz|xz)$")),
Tool("droiddeck", "DroidDeck-Proton", "DroidDeck-Proton", "Droid-Deck/DroidDeck-Proton", Regex("^DroidDeck-Proton-.*aarch64\\.tar\\.(gz|xz)$")),
+ Tool(ANTICHEAT, "DroidDeck-Proton x86-64", "DroidDeck-Proton", "Droid-Deck/DroidDeck-Proton", Regex("^DroidDeck-Proton-.*x86_64\\.tar\\.(gz|xz)$"), x86_64 = true, label = R.string.pextra_anticheat),
// Bionic (Android libc) Proton started outside the Linux userland; test builds are prereleases. No-proot only.
Tool(BIONIC, "DroidDeck-Bionic", "DroidDeck-Bionic", "Droid-Deck/DroidDeck-Proton", Regex("^DroidDeck-Bionic-.*aarch64\\.tar\\.(gz|xz)$"), prereleases = true),
)
@@ -66,11 +72,14 @@ object ProtonExtras {
internal fun installedIn(dir: File, tool: Tool): List =
dir.listFiles()
- ?.filter { it.isDirectory && it.name.startsWith(tool.prefix) && usable(it) }
+ ?.filter { it.isDirectory && it.name.startsWith(tool.prefix) && x86_64Build(it) == tool.x86_64 && usable(it) }
?.map { it.name }
?.sortedWith { a, b -> compareVersions(a, b) }
?: emptyList()
+ internal fun x86_64Build(dir: File): Boolean =
+ File(dir, "files/lib/wine/x86_64-unix").isDirectory && !File(dir, "files/bin-arm64").isDirectory
+
private fun usable(dir: File): Boolean {
val manifest = runCatching { File(dir, "toolmanifest.vdf").readText() }.getOrNull() ?: return false
val command = Regex("\\\"commandline\\\"\\s+\\\"/?([^\\\" ]+)").find(manifest)?.groupValues?.getOrNull(1) ?: return false
@@ -108,15 +117,31 @@ object ProtonExtras {
fun update(context: Context, tool: Tool): String? = updateFor(installedTags(context, tool), cachedLatest(context, tool))
- fun missing(context: Context, tool: Tool): String? =
- if (tool.id == OWN && !declined(context) && installedAll(context, tool).isEmpty()) cachedLatest(context, tool) else null
+ fun missing(context: Context, tool: Tool): String? = missing(context, tool) { antiCheatRuntimeInstalled(context) }
+
+ internal fun missing(context: Context, tool: Tool, antiCheat: () -> Boolean): String? = when {
+ declined(context, tool.id) || installedAll(context, tool).isNotEmpty() -> null
+ tool.id == OWN || tool.id == ANTICHEAT && antiCheat() -> cachedLatest(context, tool)
+ else -> null
+ }
+
+ private fun antiCheatRuntimeInstalled(context: Context): Boolean =
+ antiCheatRuntimeIn(listOf("arm64", SteamClient.X86_64).flatMap { arch ->
+ runCatching { SteamClient.libraries(context, arch).map { it.host } }.getOrDefault(emptyList())
+ } + listOfNotNull(GameStorage.effective(context)?.let { File(it.path) }, GameStorage.x64CardLibrary(context)))
+
+ internal fun antiCheatRuntimeIn(libraries: List): Boolean = libraries.any { library ->
+ ANTICHEAT_RUNTIMES.any { File(library, "steamapps/appmanifest_$it.acf").isFile }
+ }
+
+ private val ANTICHEAT_RUNTIMES = listOf(SteamStorage.EAC_RUNTIME, SteamStorage.BATTLEYE_RUNTIME)
private fun choices(context: Context) = context.getSharedPreferences("proton-auto-updates", Context.MODE_PRIVATE)
- fun declined(context: Context): Boolean = choices(context).getBoolean("$OWN.declined", false)
+ fun declined(context: Context, id: String = OWN): Boolean = choices(context).getBoolean("$id.declined", false)
- fun setDeclined(context: Context, declined: Boolean) {
- choices(context).edit().putBoolean("$OWN.declined", declined).apply()
+ fun setDeclined(context: Context, declined: Boolean, id: String = OWN) {
+ choices(context).edit().putBoolean("$id.declined", declined).apply()
}
fun cachedLatest(context: Context, tool: Tool): String? =
@@ -220,8 +245,8 @@ object ProtonExtras {
if (runCatching { ComponentsManager.carryOver(context, old, newest) }.onFailure { Log.w(TAG, "components of $old", it) }.isFailure) continue
if (runCatching { keepUserSettings(context, old, newest) }.onFailure { Log.w(TAG, "user settings of $old", it) }.isFailure) continue
if (runCatching { ProtonDefault.moveGames(context, setOf(old), newest) }.onFailure { Log.w(TAG, "per-game picks of $old", it) }.isFailure) continue
- // DroidDeck-Bionic only: the guest finds no default for a deleted Bionic build and falls back to DroidDeck-Proton
- if (tool.id == BIONIC && runCatching { ProtonDefault.moveDefault(context, setOf(old), newest) }.onFailure { Log.w(TAG, "default pick of $old", it) }.isFailure) continue
+ // DroidDeck-Bionic and the x86-64 build: the guest finds no default for a deleted build and falls back to DroidDeck-Proton
+ if ((tool.id == BIONIC || tool.id == ANTICHEAT) && runCatching { ProtonDefault.moveDefault(context, setOf(old), newest) }.onFailure { Log.w(TAG, "default pick of $old", it) }.isFailure) continue
if (deleteTool(context, old)) ComponentsManager.forgetProton(context, old)
else Log.w(TAG, "could not remove $old")
}
@@ -288,7 +313,7 @@ object ProtonExtras {
}
private fun prefetchNow(context: Context, tool: Tool, onProgress: (String, Int) -> Unit): String? {
- val asset = releases(tool)?.let { pickAsset(tool, it) } ?: return context.getString(R.string.pextra_no_release, tool.name)
+ val asset = releases(tool)?.let { pickAsset(tool, it) } ?: return context.getString(R.string.pextra_no_release, tool.name, tool.arch)
val downloads = File(context.filesDir, "proton-downloads").apply { mkdirs() }
val archive = File(downloads, "${tool.id}-${asset.name}")
if (asset.size > 0 && archive.length() > asset.size) archive.delete()
@@ -305,7 +330,7 @@ object ProtonExtras {
if (SessionState.running) return context.getString(R.string.pextra_stop_session)
if (!LinuxRuntime.isInstalled(context)) return context.getString(R.string.user_apps_runtime_required)
- val asset = releases(tool)?.let { pickAsset(tool, it) } ?: return context.getString(R.string.pextra_no_release, tool.name)
+ val asset = releases(tool)?.let { pickAsset(tool, it) } ?: return context.getString(R.string.pextra_no_release, tool.name, tool.arch)
val downloads = File(context.filesDir, "proton-downloads").apply { mkdirs() }
val archive = File(downloads, "${tool.id}-${asset.name}")
if (asset.size > 0 && archive.length() > asset.size) archive.delete()
@@ -374,7 +399,7 @@ object ProtonExtras {
archive.delete()
unqueue(context, tool)
record(context, tool, placed, asset.tag)
- if (tool.id == OWN || tool.id == BIONIC) replaceOlder(context, tool)
+ if (tool.id == OWN || tool.id == BIONIC || tool.id == ANTICHEAT) replaceOlder(context, tool)
if (EsyncPacks.enabled(context)) {
onProgress(context.getString(R.string.esync_fetching), -1)
try {
diff --git a/app/src/main/java/com/droiddeck/launcher/session/SessionPrefs.kt b/app/src/main/java/com/droiddeck/launcher/session/SessionPrefs.kt
index b2cc52bcee..e42c8f48a5 100644
--- a/app/src/main/java/com/droiddeck/launcher/session/SessionPrefs.kt
+++ b/app/src/main/java/com/droiddeck/launcher/session/SessionPrefs.kt
@@ -112,10 +112,21 @@ object SessionPrefs {
else -> false
}
- fun launcherFullscreen(context: Context): Boolean = prefs(context).getBoolean("launcherFullscreen", true)
+ fun launcherFullscreenMode(context: Context): FullscreenMode {
+ val preferences = prefs(context)
+ return FullscreenMode.fromStored(preferences.getString("launcherFullscreenMode", null))
+ ?: if (preferences.getBoolean("launcherFullscreen", true)) FullscreenMode.ALWAYS else FullscreenMode.OFF
+ }
- fun setLauncherFullscreen(context: Context, on: Boolean) {
- prefs(context).edit().putBoolean("launcherFullscreen", on).apply()
+ fun setLauncherFullscreenMode(context: Context, mode: FullscreenMode) {
+ prefs(context).edit().putString("launcherFullscreenMode", mode.name).apply()
+ }
+
+ fun sessionFullscreenMode(context: Context): FullscreenMode =
+ FullscreenMode.fromStored(prefs(context).getString("sessionFullscreenMode", null)) ?: FullscreenMode.ALWAYS
+
+ fun setSessionFullscreenMode(context: Context, mode: FullscreenMode) {
+ prefs(context).edit().putString("sessionFullscreenMode", mode.name).apply()
}
fun launcherFrost(context: Context): Boolean = prefs(context).getBoolean("launcherFrost", false)
@@ -1912,6 +1923,9 @@ object SessionPrefs {
return if (pip && mirrorRefreshLimit <= 0 && (limit <= 0 || limit > PIP_FPS)) PIP_FPS else limit
}
+ fun layerFrameRate(ownLimit: Int, refreshHz: Float, blackFrameInsertion: Boolean): Float =
+ if (ownLimit > 0 && !blackFrameInsertion) ownLimit.toFloat() else refreshHz
+
/** The per-app rate Android holds this window to (Game Mode's FPS override), or 0 when the panel's rate applies. */
fun hostFrameCap(overrideHz: Float, panelHz: Float): Int =
if (overrideHz > 1f && panelHz - overrideHz > 1f) Math.round(overrideHz) else 0
@@ -2011,24 +2025,84 @@ object SessionPrefs {
sessionPrefs.edit().putString(SCREEN_EFFECTS_PROFILES_KEY, profiles.toString()).apply()
}
+ private const val GAME_UPSCALER_OVERRIDES_KEY = "upscaler.gameOverrides"
+
+ private fun gameUpscalerOverrides(context: Context): JSONObject = runCatching {
+ JSONObject(prefs(context).getString(GAME_UPSCALER_OVERRIDES_KEY, null) ?: "{}")
+ }.getOrDefault(JSONObject())
+
+ private fun legacyScreenEffectsUpscaler(context: Context, profileId: String): Int? =
+ runCatching {
+ val profiles = JSONObject(prefs(context).getString(SCREEN_EFFECTS_PROFILES_KEY, null) ?: "{}")
+ val profile = profiles.optJSONObject(profileId)
+ if (profile?.has(SCREEN_EFFECTS_PROFILE_UPSCALER_KEY) == true) {
+ profile.optInt(SCREEN_EFFECTS_PROFILE_UPSCALER_KEY, -1).takeIf { it >= 0 }
+ } else null
+ }.getOrNull()?.let(::canonicalUpscaler)
+
+ private fun clearLegacyScreenEffectsUpscaler(context: Context, profileId: String) {
+ val sessionPrefs = prefs(context)
+ val profiles = runCatching {
+ JSONObject(sessionPrefs.getString(SCREEN_EFFECTS_PROFILES_KEY, null) ?: "{}")
+ }.getOrNull() ?: return
+ val profile = profiles.optJSONObject(profileId) ?: return
+ if (!profile.has(SCREEN_EFFECTS_PROFILE_UPSCALER_KEY)) return
+ profile.remove(SCREEN_EFFECTS_PROFILE_UPSCALER_KEY)
+ if (profile.length() == 0) profiles.remove(profileId)
+ sessionPrefs.edit().apply {
+ if (profiles.length() == 0) remove(SCREEN_EFFECTS_PROFILES_KEY)
+ else putString(SCREEN_EFFECTS_PROFILES_KEY, profiles.toString())
+ }.apply()
+ }
+
+ fun hasGameUpscalerOverride(context: Context, gameId: String): Boolean {
+ if (gameId.isBlank()) return false
+ val stored = gameUpscalerOverrides(context)
+ return (stored.has(gameId) && stored.optInt(gameId, -1) >= 0) ||
+ legacyScreenEffectsUpscaler(context, "game:$gameId") != null
+ }
+
+ fun setGameUpscaler(context: Context, gameId: String, mode: Int) {
+ if (gameId.isBlank()) return
+ val overrides = gameUpscalerOverrides(context)
+ overrides.put(gameId, canonicalUpscaler(mode))
+ prefs(context).edit().putString(GAME_UPSCALER_OVERRIDES_KEY, overrides.toString()).apply()
+ clearLegacyScreenEffectsUpscaler(context, "game:$gameId")
+ }
+
+ fun clearGameUpscaler(context: Context, gameId: String) {
+ if (gameId.isBlank()) return
+ val sessionPrefs = prefs(context)
+ val overrides = gameUpscalerOverrides(context)
+ if (overrides.has(gameId)) {
+ overrides.remove(gameId)
+ sessionPrefs.edit().apply {
+ if (overrides.length() == 0) remove(GAME_UPSCALER_OVERRIDES_KEY)
+ else putString(GAME_UPSCALER_OVERRIDES_KEY, overrides.toString())
+ }.apply()
+ }
+ clearLegacyScreenEffectsUpscaler(context, "game:$gameId")
+ }
+
fun hasScreenEffectsUpscalerOverride(context: Context, profileId: String?): Boolean {
if (profileId.isNullOrBlank()) return false
- return runCatching {
- val profiles = JSONObject(prefs(context).getString(SCREEN_EFFECTS_PROFILES_KEY, null) ?: "{}")
- profiles.optJSONObject(profileId)?.has(SCREEN_EFFECTS_PROFILE_UPSCALER_KEY) == true
- }.getOrDefault(false)
+ if (profileId.startsWith("game:")) {
+ return hasGameUpscalerOverride(context, profileId.removePrefix("game:"))
+ }
+ return legacyScreenEffectsUpscaler(context, profileId) != null
}
fun screenEffectsUpscaler(context: Context, profileId: String?): Int {
if (profileId.isNullOrBlank()) return upscaler(context)
- val stored = runCatching {
- val profiles = JSONObject(prefs(context).getString(SCREEN_EFFECTS_PROFILES_KEY, null) ?: "{}")
- val profile = profiles.optJSONObject(profileId)
- if (profile?.has(SCREEN_EFFECTS_PROFILE_UPSCALER_KEY) == true) {
- profile.optInt(SCREEN_EFFECTS_PROFILE_UPSCALER_KEY, -1)
- } else -1
- }.getOrDefault(-1)
- return if (stored >= 0) canonicalUpscaler(stored) else upscaler(context)
+ if (profileId.startsWith("game:")) {
+ val gameId = profileId.removePrefix("game:")
+ val overrides = gameUpscalerOverrides(context)
+ if (overrides.has(gameId)) {
+ val stored = overrides.optInt(gameId, -1)
+ if (stored >= 0) return canonicalUpscaler(stored)
+ }
+ }
+ return legacyScreenEffectsUpscaler(context, profileId) ?: upscaler(context)
}
fun setScreenEffectsUpscaler(context: Context, profileId: String?, mode: Int) {
@@ -2036,6 +2110,10 @@ object SessionPrefs {
setUpscaler(context, mode)
return
}
+ if (profileId.startsWith("game:")) {
+ setGameUpscaler(context, profileId.removePrefix("game:"), mode)
+ return
+ }
val sessionPrefs = prefs(context)
val profiles = runCatching {
JSONObject(sessionPrefs.getString(SCREEN_EFFECTS_PROFILES_KEY, null) ?: "{}")
@@ -2072,6 +2150,7 @@ object SessionPrefs {
val profiles = runCatching {
JSONObject(sessionPrefs.getString(SCREEN_EFFECTS_PROFILES_KEY, null) ?: "{}")
}.getOrElse { JSONObject() }
+ if (profileId.startsWith("game:")) clearGameUpscaler(context, profileId.removePrefix("game:"))
if (!profiles.has(profileId)) return
profiles.remove(profileId)
sessionPrefs.edit().apply {
diff --git a/app/src/main/java/com/droiddeck/launcher/session/SessionService.kt b/app/src/main/java/com/droiddeck/launcher/session/SessionService.kt
index 5d2946d2d8..f97b479138 100644
--- a/app/src/main/java/com/droiddeck/launcher/session/SessionService.kt
+++ b/app/src/main/java/com/droiddeck/launcher/session/SessionService.kt
@@ -945,11 +945,15 @@ class SessionService : Service() {
return
}
if (gen == sessionGen && SessionState.running) {
+ val workers = ownWorkers
suspendController = SessionSuspendController(
sessionRoot = { sessionPid },
+ // Programs handed off to worker processes are not descendants of the session root, and
+ // the clock shift applied at resume would move their monotonic time backwards.
helperRoots = {
components.mapNotNull { it.suspendPid().takeIf { pid -> pid > 1 } } +
- listOfNotNull(BottomDesktop.suspendPid.takeIf { it > 1 })
+ listOfNotNull(BottomDesktop.suspendPid.takeIf { it > 1 }) +
+ (if (workers > 0) com.droiddeck.launcher.runtime.GuestWorkers.guestPids(workers) else emptyList())
},
suspendAudio = {
if (!pulse.setSinkSuspended(true)) Log.w(TAG, "could not suspend audio sink")
@@ -1353,10 +1357,17 @@ class SessionService : Service() {
if (controllersOn) components.add(RumbleComponent().also { it.attach(this) })
val home = File(LinuxRuntime.rootDir(this), "root")
File(home, "Storage").mkdirs()
+ val addedExeFolders = com.droiddeck.launcher.frontend.AddedExes.list(this).map { File(it.folder) }.distinctBy { it.path }
+ val addedGameRoots = com.droiddeck.launcher.frontend.AddedGames.roots(this)
+ val addedFolders = (addedExeFolders + addedGameRoots.map { it.host }).distinctBy { it.path }
+ for (folder in addedFolders) {
+ if (com.droiddeck.launcher.files.AllFilesAccess.mayHideFilesIn(folder.path))
+ Log.w(TAG, "added games: Android may hide .exe files in $folder because All files access is missing")
+ }
if (sharedStorage != null) {
binds.add(sharedStorage.path + ":/root/Storage")
} else {
- for (folder in com.droiddeck.launcher.frontend.AddedExes.list(this).map { File(it.folder) }.distinctBy { it.path }) {
+ for (folder in addedExeFolders) {
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()
@@ -1407,7 +1418,7 @@ class SessionService : Service() {
Log.w(TAG, "storage diagnostics: selected library could not be identified; metadata snapshot only")
}
}
- for (root in com.droiddeck.launcher.frontend.AddedGames.roots(this)) {
+ for (root in addedGameRoots) {
if (root.host.isDirectory && root.host.canRead()) {
File(LinuxRuntime.rootDir(this), root.guest.removePrefix("/")).mkdirs()
binds.add(root.host.path + ":" + root.guest)
diff --git a/app/src/main/java/com/droiddeck/launcher/session/SessionVisibilityPolicy.kt b/app/src/main/java/com/droiddeck/launcher/session/SessionVisibilityPolicy.kt
index 90630ebbcd..79cc595af9 100644
--- a/app/src/main/java/com/droiddeck/launcher/session/SessionVisibilityPolicy.kt
+++ b/app/src/main/java/com/droiddeck/launcher/session/SessionVisibilityPolicy.kt
@@ -1,6 +1,12 @@
package com.droiddeck.launcher.session
internal object SessionVisibilityPolicy {
+ fun shouldCloseSecondScreenOnStop(
+ screenOff: Boolean,
+ dockedDrawerOpen: Boolean,
+ attachmentPickerOpen: Boolean,
+ ): Boolean = !screenOff && !(dockedDrawerOpen && attachmentPickerOpen)
+
fun isHidden(
activityStarted: Boolean,
defaultDisplayOn: Boolean,
diff --git a/app/src/main/java/com/droiddeck/launcher/session/SettingsReset.kt b/app/src/main/java/com/droiddeck/launcher/session/SettingsReset.kt
index e4fb6ed9c3..c9852d4b8b 100644
--- a/app/src/main/java/com/droiddeck/launcher/session/SettingsReset.kt
+++ b/app/src/main/java/com/droiddeck/launcher/session/SettingsReset.kt
@@ -12,7 +12,7 @@ object SettingsReset {
private const val TAG = "SettingsReset"
internal val SESSION_KEYS = setOf(
- "orientation", "launcherFullscreen", "launcherFrost", "frostWallpaper", "frostCards", "frostTransparency", "frostCardTransparency", "controllerHaptics", "animations", "lowStorageWarning", "theme", "runSteamAtStartup", "startupSession", "addedGamesArt",
+ "orientation", "launcherFullscreen", "launcherFullscreenMode", "sessionFullscreenMode", "launcherFrost", "frostWallpaper", "frostCards", "frostTransparency", "frostCardTransparency", "controllerHaptics", "animations", "lowStorageWarning", "theme", "runSteamAtStartup", "startupSession", "addedGamesArt",
"drawerWidthDp", "dualScreenMode", "dualScreenSessionMode", "dualScreenLauncher", "dualScreenSessionControls", "androidTextFieldKeyboard",
"soundtracksIngame", "gameStoresSpeedTier", "gameStoresParallel", "storesOpenTab", "storesShowMature",
"storesInstallLanguage",
diff --git a/app/src/main/java/com/droiddeck/launcher/ui/AgentPage.kt b/app/src/main/java/com/droiddeck/launcher/ui/AgentPage.kt
index 439422fee7..b2793e5ba1 100644
--- a/app/src/main/java/com/droiddeck/launcher/ui/AgentPage.kt
+++ b/app/src/main/java/com/droiddeck/launcher/ui/AgentPage.kt
@@ -5,7 +5,9 @@ import android.content.ContextWrapper
import android.os.Build
import android.view.KeyEvent
import android.view.WindowManager
+import androidx.activity.compose.BackHandler
import androidx.activity.compose.LocalActivityResultRegistryOwner
+import androidx.activity.compose.LocalOnBackPressedDispatcherOwner
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.animation.expandVertically
@@ -50,12 +52,12 @@ import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.outlined.Send
import androidx.compose.material.icons.outlined.Extension
-import androidx.compose.material.icons.outlined.PhotoCamera
import androidx.compose.material.icons.outlined.MicOff
import androidx.compose.material.icons.outlined.Mic
import androidx.compose.material.icons.outlined.Add
import androidx.compose.material.icons.outlined.ArrowDownward
import androidx.compose.material.icons.outlined.AttachFile
+import androidx.compose.material.icons.outlined.Keyboard
import androidx.compose.material.icons.outlined.Terminal
import androidx.compose.material.icons.outlined.Build
import androidx.compose.material.icons.outlined.Close
@@ -79,6 +81,7 @@ import androidx.compose.runtime.MutableState
import androidx.compose.runtime.Stable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableIntStateOf
+import androidx.compose.runtime.mutableStateMapOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberCoroutineScope
@@ -108,6 +111,7 @@ import androidx.compose.ui.input.pointer.pointerInput
import androidx.compose.ui.layout.onGloballyPositioned
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.platform.LocalDensity
+import androidx.compose.ui.platform.LocalConfiguration
import androidx.compose.ui.platform.LocalFocusManager
import androidx.compose.ui.platform.LocalView
import androidx.compose.ui.platform.testTag
@@ -301,7 +305,7 @@ private fun AgentPageContent(
readingBack = false
scope.launch { list.scrollToItem(maxOf(0, list.layoutInfo.totalItemsCount - 1), Int.MAX_VALUE / 2) }
}
- val hidden = !composer.focused && !composer.hasUnconsumedFocusRequest() && readingBack && AgentHost.entries.isNotEmpty() &&
+ val hidden = !composer.focused && !composer.tray && !composer.hasUnconsumedFocusRequest() && readingBack && AgentHost.entries.isNotEmpty() &&
AgentHost.approvals.isEmpty()
var listHeight by remember { mutableIntStateOf(0) }
Box(
@@ -319,6 +323,7 @@ private fun AgentPageContent(
awaitEachGesture {
awaitFirstDown(requireUnconsumed = false, pass = PointerEventPass.Initial)
if (panel == AgentPanel.MODEL || panel == AgentPanel.USAGE) panel = AgentPanel.NONE
+ composer.tray = false
// Forced: the unforced path walks the focus chain and throws ("ActiveParent with no focused child") when a tap lands while focus is moving.
if (composer.focused) focusManager.clearFocus(force = true)
}
@@ -344,6 +349,12 @@ private fun AgentPageContent(
@Stable
private class ComposerState {
var focused by mutableStateOf(false)
+ /** The photo tray stands in for the keyboard, at the height the keyboard last had. */
+ var tray by mutableStateOf(false)
+ var keyboardHeight by mutableStateOf(0.dp)
+ /** Tray photos copied, or being copied, for this conversation, so reopening the tray keeps their marks and copies nothing twice. */
+ val photoCopies = mutableStateMapOf()
+ val photosCopying = mutableStateMapOf()
var focusRequests by mutableIntStateOf(0)
private set
private var consumedFocusRequests by mutableIntStateOf(0)
@@ -390,7 +401,7 @@ private fun ModelChip(panel: AgentPanel, onPanel: (AgentPanel) -> Unit, firstCon
.clickable { onPanel(AgentPanel.MODEL) }.padding(horizontal = 8.dp).testTag("agent-model"),
) {
val mode = AgentHost.harness.permissions.drop(1).firstOrNull { it.id == AgentHost.permission }?.let { stringResource(it.label) }
- val parts = if (compact) listOfNotNull(mode ?: model)
+ val parts = if (compact) listOf(model)
else listOfNotNull(
AgentHost.harness.name, model, AgentHost.effort, mode,
stringResource(R.string.agent_plan_short).takeIf { AgentHost.plan && AgentHost.harness.plans },
@@ -748,6 +759,8 @@ private fun AgentComposer(
if (text.isEmpty() && AgentAttachments.pending.isEmpty()) return@send
AgentHost.send(context, text, AgentAttachments.pending.toList())
AgentAttachments.pending.clear()
+ composer.photosCopying.clear()
+ composer.tray = false
onSent()
}
}
@@ -813,7 +826,34 @@ private fun AgentEditor(composer: ComposerState, draftState: MutableState composer.keyboardHeight) composer.keyboardHeight = height
+ }
+ LaunchedEffect(hideAttach) { if (hideAttach) composer.tray = false }
+ LaunchedEffect(AgentHost.chat) {
+ composer.photoCopies.clear()
+ composer.photosCopying.clear()
+ }
+ // BackHandler throws where the host provides no back dispatcher: the front end and the floating pet.
+ if (LocalOnBackPressedDispatcherOwner.current != null) BackHandler(composer.tray) { composer.tray = false }
+ val focusManager = LocalFocusManager.current
+ val files = if (picks) rememberLauncherForActivityResult(ActivityResultContracts.OpenMultipleDocuments()) {
+ AgentAttachments.picking = false
+ attachUris(context, it)
+ } else null
+ val toggleTray = {
+ if (composer.tray) {
+ composer.tray = false
+ composer.open()
+ } else {
+ focusManager.clearFocus(force = true)
+ composer.tray = true
+ }
+ }
BoxWithConstraints(
Modifier.fillMaxWidth().padding(top = 8.dp).clip(Shape16).background(colors.surface)
.border(if (focused) 2.dp else 1.dp, if (focused) pal.primary else pal.line, Shape16).padding(6.dp),
@@ -841,6 +881,7 @@ private fun AgentEditor(composer: ComposerState, draftState: MutableState 0.dp) composer.keyboardHeight else 280.dp).coerceAtLeast(160.dp).coerceAtMost(most)
+ AgentPhotoTray(height, composer.photoCopies, composer.photosCopying, files?.let { { AgentAttachments.pick { it.launch(arrayOf("*/*")) } } })
+ }
}
/**
@@ -974,51 +1018,15 @@ private fun VoiceButton(voice: AgentVoice, onStart: () -> Unit, onSend: () -> Un
}
}
-/** Attaches what the running game shows, taken from its own surface so nothing drawn over it is in the picture. */
+/** Opens the photo tray in place of the keyboard; while it is open, brings the keyboard back. */
@Composable
-private fun GameFrameButton() {
- val context = LocalContext.current
+private fun AttachButton(trayOpen: Boolean, onClick: () -> Unit) {
val pal = LocalPalette.current
- RoundButton(Icons.Outlined.PhotoCamera, stringResource(R.string.agent_attach_game), pal.surfaceVariant, pal.onBackground, "agent-game-frame") {
- val grab = AgentAttachments.gameFrame ?: return@RoundButton
- val chat = AgentHost.chat
- grab frame@{ frame ->
- if (frame == null) {
- android.widget.Toast.makeText(context, R.string.agent_attach_game_failed, android.widget.Toast.LENGTH_SHORT).show()
- return@frame
- }
- Thread({
- val path = AgentAttachments.saveFrame(context, chat, frame)
- frame.recycle()
- android.os.Handler(android.os.Looper.getMainLooper()).post {
- when {
- path == null -> android.widget.Toast.makeText(context, R.string.agent_attach_game_failed, android.widget.Toast.LENGTH_SHORT).show()
- AgentHost.chat == chat -> AgentAttachments.pending.add(path)
- else -> AgentAttachments.discard(context, listOf(path))
- }
- }
- }, "agent-game-frame").start()
- }
- }
-}
-
-@Composable
-private fun AttachButton() {
- val context = LocalContext.current
- val pal = LocalPalette.current
- val picker = rememberLauncherForActivityResult(ActivityResultContracts.OpenMultipleDocuments()) { uris ->
- if (uris.isEmpty()) return@rememberLauncherForActivityResult
- val chat = AgentHost.chat
- Thread({
- val paths = AgentAttachments.copy(context, chat, uris)
- android.os.Handler(android.os.Looper.getMainLooper()).post {
- if (AgentHost.chat == chat) AgentAttachments.pending.addAll(paths) else AgentAttachments.discard(context, paths)
- }
- }, "agent-attach").start()
- }
- RoundButton(Icons.Outlined.AttachFile, stringResource(R.string.agent_attach), pal.surfaceVariant, pal.onBackground, "agent-attach") {
- runCatching { picker.launch(arrayOf("*/*")) }
- }
+ RoundButton(
+ if (trayOpen) Icons.Outlined.Keyboard else Icons.Outlined.AttachFile,
+ stringResource(if (trayOpen) R.string.agent_keyboard else R.string.agent_attach),
+ if (trayOpen) pal.primary else pal.surfaceVariant, if (trayOpen) pal.onPrimary else pal.onBackground, "agent-attach", onClick = onClick,
+ )
}
@Composable
diff --git a/app/src/main/java/com/droiddeck/launcher/ui/AgentPanels.kt b/app/src/main/java/com/droiddeck/launcher/ui/AgentPanels.kt
index a462fca130..db538977f5 100644
--- a/app/src/main/java/com/droiddeck/launcher/ui/AgentPanels.kt
+++ b/app/src/main/java/com/droiddeck/launcher/ui/AgentPanels.kt
@@ -67,13 +67,18 @@ import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
import kotlinx.coroutines.withContext
+@Composable
+private fun agentPanelFrame(): Modifier =
+ Modifier.fillMaxWidth().clip(Shape14).background(MaterialTheme.colorScheme.surface)
+ .border(1.dp, LocalPalette.current.line, Shape14).padding(horizontal = 14.dp, vertical = 10.dp)
+
/** The model, reasoning effort, permissions and plan mode for the next turns; a conversation keeps going with whatever is chosen. */
@Composable
internal fun AgentModelPicker() {
val context = LocalContext.current
val pal = LocalPalette.current
val models = remember(AgentHost.harness) { AgentHost.models(context) }
- Column(Modifier.fillMaxWidth().padding(bottom = 10.dp), verticalArrangement = Arrangement.spacedBy(10.dp)) {
+ Column(agentPanelFrame(), verticalArrangement = Arrangement.spacedBy(10.dp)) {
Row(horizontalArrangement = Arrangement.spacedBy(8.dp), modifier = Modifier.horizontalScroll(rememberScrollState())) {
val choices = listOf(AgentHarness.Model("", stringResource(R.string.agent_model_default))) + models
for (choice in choices) {
@@ -269,12 +274,8 @@ internal fun AgentProcessList(modifier: Modifier) {
@Composable
internal fun AgentUsage() {
val context = LocalContext.current
- val colors = MaterialTheme.colorScheme
val pal = LocalPalette.current
- Column(
- Modifier.fillMaxWidth().clip(Shape14).background(colors.surface).border(1.dp, pal.line, Shape14).padding(horizontal = 14.dp, vertical = 10.dp),
- verticalArrangement = Arrangement.spacedBy(8.dp),
- ) {
+ Column(agentPanelFrame(), verticalArrangement = Arrangement.spacedBy(8.dp)) {
if (AgentHost.window > 0) UsageRow(
stringResource(R.string.agent_usage_context),
stringResource(R.string.agent_usage_of, tokens(AgentHost.context), tokens(AgentHost.window)),
diff --git a/app/src/main/java/com/droiddeck/launcher/ui/AgentPhotoTray.kt b/app/src/main/java/com/droiddeck/launcher/ui/AgentPhotoTray.kt
new file mode 100644
index 0000000000..d6c5dabe68
--- /dev/null
+++ b/app/src/main/java/com/droiddeck/launcher/ui/AgentPhotoTray.kt
@@ -0,0 +1,280 @@
+package com.droiddeck.launcher.ui
+
+import android.Manifest
+import android.content.ContentUris
+import android.content.Context
+import android.content.Intent
+import android.content.pm.PackageManager
+import android.net.Uri
+import android.os.Build
+import android.os.Environment
+import android.provider.MediaStore
+import android.provider.Settings
+import android.widget.Toast
+import androidx.activity.compose.LocalActivityResultRegistryOwner
+import androidx.activity.compose.rememberLauncherForActivityResult
+import androidx.activity.result.contract.ActivityResultContracts
+import androidx.compose.foundation.background
+import androidx.compose.foundation.border
+import androidx.compose.foundation.clickable
+import androidx.compose.foundation.layout.Arrangement
+import androidx.compose.foundation.layout.Box
+import androidx.compose.foundation.layout.Column
+import androidx.compose.foundation.layout.aspectRatio
+import androidx.compose.foundation.layout.fillMaxSize
+import androidx.compose.foundation.layout.fillMaxWidth
+import androidx.compose.foundation.layout.height
+import androidx.compose.foundation.layout.padding
+import androidx.compose.foundation.layout.size
+import androidx.compose.foundation.lazy.grid.GridCells
+import androidx.compose.foundation.lazy.grid.GridItemSpan
+import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
+import androidx.compose.foundation.lazy.grid.items
+import androidx.compose.foundation.shape.CircleShape
+import androidx.compose.material.icons.Icons
+import androidx.compose.material.icons.outlined.Check
+import androidx.compose.material.icons.outlined.FolderOpen
+import androidx.compose.material.icons.outlined.PhotoCamera
+import androidx.compose.material.icons.outlined.PhotoLibrary
+import androidx.compose.material3.Icon
+import androidx.compose.material3.Text
+import androidx.compose.runtime.Composable
+import androidx.compose.runtime.DisposableEffect
+import androidx.compose.runtime.LaunchedEffect
+import androidx.compose.runtime.getValue
+import androidx.compose.runtime.mutableStateOf
+import androidx.compose.runtime.remember
+import androidx.compose.runtime.setValue
+import androidx.compose.runtime.snapshots.SnapshotStateMap
+import androidx.compose.ui.Alignment
+import androidx.compose.ui.Modifier
+import androidx.compose.ui.draw.clip
+import androidx.compose.ui.graphics.vector.ImageVector
+import androidx.compose.ui.layout.ContentScale
+import androidx.compose.ui.platform.LocalContext
+import androidx.compose.ui.platform.LocalLifecycleOwner
+import androidx.compose.ui.platform.testTag
+import androidx.compose.ui.semantics.contentDescription
+import androidx.compose.ui.semantics.selected
+import androidx.compose.ui.semantics.semantics
+import androidx.compose.ui.res.stringResource
+import androidx.compose.ui.text.style.TextAlign
+import androidx.compose.ui.text.style.TextOverflow
+import androidx.compose.ui.unit.Dp
+import androidx.compose.ui.unit.dp
+import androidx.compose.ui.unit.sp
+import androidx.lifecycle.Lifecycle
+import androidx.lifecycle.LifecycleEventObserver
+import coil.compose.AsyncImage
+import coil.request.ImageRequest
+import com.droiddeck.launcher.R
+import com.droiddeck.launcher.agent.AgentAttachments
+import com.droiddeck.launcher.agent.AgentHost
+import kotlinx.coroutines.Dispatchers
+import kotlinx.coroutines.withContext
+
+/** The device's photos, newest first, as MediaStore lets the app see them. */
+internal object AgentPhotos {
+ enum class Access { NONE, SELECTED, ALL }
+
+ /** Android stops showing the request after repeated denials and answers it at once, so a denied request sends later ones to Settings. */
+ var refused = false
+
+ fun permissions(sdk: Int = Build.VERSION.SDK_INT): Array = when {
+ sdk >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE -> arrayOf(Manifest.permission.READ_MEDIA_IMAGES, Manifest.permission.READ_MEDIA_VISUAL_USER_SELECTED)
+ sdk >= Build.VERSION_CODES.TIRAMISU -> arrayOf(Manifest.permission.READ_MEDIA_IMAGES)
+ else -> arrayOf(Manifest.permission.READ_EXTERNAL_STORAGE)
+ }
+
+ fun access(context: Context): Access {
+ fun granted(permission: String) = context.checkSelfPermission(permission) == PackageManager.PERMISSION_GRANTED
+ val all = permissions().first()
+ return when {
+ Build.VERSION.SDK_INT >= Build.VERSION_CODES.R && Environment.isExternalStorageManager() -> Access.ALL
+ granted(all) -> Access.ALL
+ Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE && granted(Manifest.permission.READ_MEDIA_VISUAL_USER_SELECTED) -> Access.SELECTED
+ else -> Access.NONE
+ }
+ }
+
+ class Photo(val uri: Uri, val name: String)
+
+ fun recent(context: Context, limit: Int = 300): List = runCatching {
+ val images = MediaStore.Images.Media.EXTERNAL_CONTENT_URI
+ context.contentResolver.query(
+ images, arrayOf(MediaStore.Images.Media._ID, MediaStore.Images.Media.DISPLAY_NAME), null, null, "${MediaStore.Images.Media.DATE_ADDED} DESC",
+ )?.use { c ->
+ buildList {
+ while (size < limit && c.moveToNext()) add(Photo(ContentUris.withAppendedId(images, c.getLong(0)), c.getString(1).orEmpty()))
+ }
+ }.orEmpty()
+ }.getOrDefault(emptyList())
+}
+
+/**
+ * Copies [uris] into the conversation's attachments off the main thread, then hands [onCopied] what was attached: nothing if the
+ * conversation changed meanwhile or [current] says the copy was superseded.
+ */
+internal fun attachUris(context: Context, uris: List, current: () -> Boolean = { true }, onCopied: (List>) -> Unit = {}) {
+ if (uris.isEmpty()) return
+ val chat = AgentHost.chat
+ Thread({
+ val copied = uris.mapNotNull { uri -> AgentAttachments.copy(context, chat, listOf(uri)).firstOrNull()?.let { uri to it } }
+ android.os.Handler(android.os.Looper.getMainLooper()).post {
+ val paths = copied.map { it.second }
+ if (AgentHost.chat == chat && current()) {
+ AgentAttachments.pending.addAll(paths)
+ onCopied(copied)
+ } else {
+ AgentAttachments.discard(context, paths)
+ onCopied(emptyList())
+ }
+ }
+ }, "agent-attach").start()
+}
+
+/** Attaches what the running game shows, taken from its own surface so nothing drawn over it is in the picture. */
+private fun attachGameFrame(context: Context) {
+ val grab = AgentAttachments.gameFrame ?: return
+ val chat = AgentHost.chat
+ grab frame@{ frame ->
+ if (frame == null) {
+ Toast.makeText(context, R.string.agent_attach_game_failed, Toast.LENGTH_SHORT).show()
+ return@frame
+ }
+ Thread({
+ val path = AgentAttachments.saveFrame(context, chat, frame)
+ frame.recycle()
+ android.os.Handler(android.os.Looper.getMainLooper()).post {
+ when {
+ path == null -> Toast.makeText(context, R.string.agent_attach_game_failed, Toast.LENGTH_SHORT).show()
+ AgentHost.chat == chat -> AgentAttachments.pending.add(path)
+ else -> AgentAttachments.discard(context, listOf(path))
+ }
+ }
+ }, "agent-game-frame").start()
+ }
+}
+
+/** Shown in place of the keyboard: recent photos to tap onto the message, and the system picker for anything else. */
+@Composable
+internal fun AgentPhotoTray(height: Dp, copies: SnapshotStateMap, copying: SnapshotStateMap, onFiles: (() -> Unit)?) {
+ val context = LocalContext.current
+ val pal = LocalPalette.current
+ var access by remember { mutableStateOf(AgentPhotos.access(context)) }
+ var photos by remember { mutableStateOf?>(null) }
+ var reloads by remember { mutableStateOf(0) }
+ // A window no activity owns (the floating pet's chat) cannot ask for a permission, so it sends the user to the app's settings.
+ val launcher = if (LocalActivityResultRegistryOwner.current != null) {
+ rememberLauncherForActivityResult(ActivityResultContracts.RequestMultiplePermissions()) {
+ AgentAttachments.picking = false
+ access = AgentPhotos.access(context)
+ if (access == AgentPhotos.Access.NONE) AgentPhotos.refused = true
+ reloads++
+ }
+ } else null
+ val request = {
+ if (launcher != null && !AgentPhotos.refused) {
+ AgentAttachments.pick { launcher.launch(AgentPhotos.permissions()) }
+ } else {
+ val details = Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS, Uri.parse("package:" + context.packageName)).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
+ runCatching { context.startActivity(details) }
+ }
+ Unit
+ }
+ // Access can change in Settings, and new pictures arrive, while the app is in the background.
+ val lifecycle = LocalLifecycleOwner.current.lifecycle
+ DisposableEffect(lifecycle) {
+ val observer = LifecycleEventObserver { _, event ->
+ if (event == Lifecycle.Event.ON_RESUME) {
+ access = AgentPhotos.access(context)
+ reloads++
+ }
+ }
+ lifecycle.addObserver(observer)
+ onDispose { lifecycle.removeObserver(observer) }
+ }
+ LaunchedEffect(access, reloads) {
+ photos = if (access == AgentPhotos.Access.NONE) emptyList() else withContext(Dispatchers.IO) { AgentPhotos.recent(context) }
+ }
+ LazyVerticalGrid(
+ GridCells.Adaptive(96.dp),
+ Modifier.fillMaxWidth().height(height).padding(top = 8.dp).testTag("agent-photo-tray"),
+ horizontalArrangement = Arrangement.spacedBy(4.dp),
+ verticalArrangement = Arrangement.spacedBy(4.dp),
+ ) {
+ if (AgentAttachments.gameFrame != null) item {
+ TrayTile(Icons.Outlined.PhotoCamera, stringResource(R.string.agent_attach_game), "agent-game-frame") { attachGameFrame(context) }
+ }
+ if (onFiles != null) item { TrayTile(Icons.Outlined.FolderOpen, stringResource(R.string.agent_attach_files), "agent-attach-files", onFiles) }
+ if (access != AgentPhotos.Access.ALL) item {
+ TrayTile(
+ Icons.Outlined.PhotoLibrary,
+ stringResource(if (access == AgentPhotos.Access.NONE) R.string.agent_photos_allow else R.string.agent_photos_more),
+ "agent-photos-allow",
+ onClick = request,
+ )
+ }
+ val list = photos
+ if (list != null && list.isEmpty() && access != AgentPhotos.Access.NONE) item(span = { GridItemSpan(maxLineSpan) }) {
+ Text(
+ stringResource(R.string.agent_photos_empty), fontSize = 13.sp, color = pal.onSurfaceVariant, textAlign = TextAlign.Center,
+ modifier = Modifier.fillMaxWidth().padding(16.dp),
+ )
+ }
+ items(list.orEmpty(), key = { it.uri.toString() }) { photo ->
+ val uri = photo.uri
+ val path = copies[uri]
+ val selected = path != null && path in AgentAttachments.pending
+ Box(
+ Modifier.aspectRatio(1f).clip(Shape12).background(pal.surfaceVariant)
+ .then(if (selected) Modifier.border(3.dp, pal.primary, Shape12) else Modifier)
+ .clickable {
+ when {
+ selected -> AgentAttachments.pending.remove(path)
+ path != null && AgentAttachments.host(context, path).exists() -> AgentAttachments.pending.add(path)
+ uri in copying -> Unit
+ else -> {
+ // Leaving the conversation clears the markers, so a copy started before that is no longer current even back in it.
+ val copy = Any()
+ copying[uri] = copy
+ attachUris(context, listOf(uri), current = { copying[uri] === copy }) { copied ->
+ copied.forEach { (u, p) -> copies[u] = p }
+ if (copying[uri] === copy) copying.remove(uri)
+ }
+ }
+ }
+ }.semantics {
+ contentDescription = photo.name
+ this.selected = selected
+ }.testTag("agent-photo"),
+ ) {
+ AsyncImage(
+ model = ImageRequest.Builder(context).data(uri).size(320).build(), contentDescription = null,
+ contentScale = ContentScale.Crop, modifier = Modifier.fillMaxSize(),
+ )
+ if (selected) Box(
+ contentAlignment = Alignment.Center,
+ modifier = Modifier.align(Alignment.TopEnd).padding(6.dp).size(22.dp).clip(CircleShape).background(pal.primary),
+ ) {
+ Icon(Icons.Outlined.Check, null, tint = pal.onPrimary, modifier = Modifier.size(16.dp))
+ }
+ }
+ }
+ }
+}
+
+@Composable
+private fun TrayTile(icon: ImageVector, label: String, tag: String, onClick: () -> Unit) {
+ val pal = LocalPalette.current
+ Column(
+ horizontalAlignment = Alignment.CenterHorizontally, verticalArrangement = Arrangement.Center,
+ modifier = Modifier.aspectRatio(1f).clip(Shape12).background(pal.surfaceVariant).clickable(onClick = onClick).padding(8.dp).testTag(tag),
+ ) {
+ Icon(icon, null, tint = pal.onBackground, modifier = Modifier.size(26.dp))
+ Text(
+ label, fontSize = 12.sp, color = pal.onBackground, textAlign = TextAlign.Center, maxLines = 3, overflow = TextOverflow.Ellipsis,
+ modifier = Modifier.padding(top = 6.dp),
+ )
+ }
+}
diff --git a/app/src/main/java/com/droiddeck/launcher/ui/AirTriggerGlow.kt b/app/src/main/java/com/droiddeck/launcher/ui/AirTriggerGlow.kt
new file mode 100644
index 0000000000..d4d734fa02
--- /dev/null
+++ b/app/src/main/java/com/droiddeck/launcher/ui/AirTriggerGlow.kt
@@ -0,0 +1,62 @@
+package com.droiddeck.launcher.ui
+
+import android.annotation.SuppressLint
+import android.content.Context
+import android.graphics.Canvas
+import android.graphics.Color
+import android.graphics.LinearGradient
+import android.graphics.Paint
+import android.graphics.Shader
+import android.view.View
+import android.widget.FrameLayout
+import com.droiddeck.launcher.input.AirTrigger
+import java.util.EnumMap
+import java.util.EnumSet
+
+@SuppressLint("ViewConstructor")
+class AirTriggerGlow(context: Context) : View(context) {
+ private val lit = EnumSet.noneOf(AirTrigger::class.java)
+ private val density = resources.displayMetrics.density
+ private val paints = EnumMap(AirTrigger::class.java)
+
+ init {
+ isClickable = false
+ isFocusable = false
+ importantForAccessibility = IMPORTANT_FOR_ACCESSIBILITY_NO
+ layoutParams = FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.MATCH_PARENT)
+ val top = TOP_DP * density
+ for ((trigger, look) in mapOf(AirTrigger.LEFT to LEFT, AirTrigger.RIGHT to RIGHT)) {
+ val (color, fade) = look
+ paints[trigger] = Paint().apply {
+ shader = LinearGradient(0f, top, 0f, top + HEIGHT_DP * density,
+ fade.map { Color.argb(it, Color.red(color), Color.green(color), Color.blue(color)) }.toIntArray(),
+ STOPS, Shader.TileMode.CLAMP)
+ }
+ }
+ }
+
+ fun show(trigger: AirTrigger, on: Boolean) {
+ if (if (on) lit.add(trigger) else lit.remove(trigger)) invalidate()
+ }
+
+ override fun onDraw(canvas: Canvas) {
+ val width = WIDTH_DP * density
+ val margin = SIDE_DP * density
+ val top = TOP_DP * density
+ for (trigger in lit) {
+ val left = if (trigger == AirTrigger.LEFT) margin else this.width - margin - width
+ canvas.drawRect(left, top, left + width, top + HEIGHT_DP * density, paints.getValue(trigger))
+ }
+ }
+
+ private companion object {
+ // Game Space's tgk_*_top_pressed images and their landscape placement on a 2688 x 1216 RedMagic screen.
+ const val WIDTH_DP = 78f
+ const val HEIGHT_DP = 33f
+ const val SIDE_DP = 37f
+ const val TOP_DP = 2f
+ val STOPS = floatArrayOf(0f, 0.04f, 0.05f, 0.2f, 0.4f, 0.6f, 0.8f, 1f)
+ val LEFT = Color.rgb(230, 23, 57) to listOf(255, 255, 150, 102, 55, 36, 18, 0)
+ val RIGHT = Color.rgb(23, 91, 230) to listOf(255, 255, 151, 94, 41, 27, 14, 0)
+ }
+}
diff --git a/app/src/main/java/com/droiddeck/launcher/ui/ControllerHaptics.kt b/app/src/main/java/com/droiddeck/launcher/ui/ControllerHaptics.kt
index da1d8d4bb4..b954512fff 100644
--- a/app/src/main/java/com/droiddeck/launcher/ui/ControllerHaptics.kt
+++ b/app/src/main/java/com/droiddeck/launcher/ui/ControllerHaptics.kt
@@ -24,7 +24,11 @@ object ControllerHaptics {
tick(context)
}
- fun tick(context: Context) {
+ fun tick(context: Context) = vibrate(context, VibrationEffect.EFFECT_TICK, 10)
+
+ fun click(context: Context) = vibrate(context, VibrationEffect.EFFECT_CLICK, 20)
+
+ private fun vibrate(context: Context, predefined: Int, fallbackMs: Long) {
val vibrator = if (Build.VERSION.SDK_INT >= 31) {
context.getSystemService(VibratorManager::class.java)?.defaultVibrator
} else {
@@ -32,11 +36,11 @@ object ControllerHaptics {
} ?: return
if (!vibrator.hasVibrator()) return
if (Build.VERSION.SDK_INT >= 29) {
- vibrator.vibrate(VibrationEffect.createPredefined(VibrationEffect.EFFECT_TICK))
+ vibrator.vibrate(VibrationEffect.createPredefined(predefined))
} else if (Build.VERSION.SDK_INT >= 26) {
- vibrator.vibrate(VibrationEffect.createOneShot(10, VibrationEffect.DEFAULT_AMPLITUDE))
+ vibrator.vibrate(VibrationEffect.createOneShot(fallbackMs, VibrationEffect.DEFAULT_AMPLITUDE))
} else {
- @Suppress("DEPRECATION") vibrator.vibrate(10)
+ @Suppress("DEPRECATION") vibrator.vibrate(fallbackMs)
}
}
}
diff --git a/app/src/main/java/com/droiddeck/launcher/ui/FrontEndScreen.kt b/app/src/main/java/com/droiddeck/launcher/ui/FrontEndScreen.kt
index 917a46e71d..b7bf1caaa0 100644
--- a/app/src/main/java/com/droiddeck/launcher/ui/FrontEndScreen.kt
+++ b/app/src/main/java/com/droiddeck/launcher/ui/FrontEndScreen.kt
@@ -88,6 +88,7 @@ import com.droiddeck.launcher.input.SecondScreenDisplay
import com.droiddeck.launcher.core.DownloadSource
import com.droiddeck.launcher.core.PhantomProcessLimit
import com.droiddeck.launcher.core.PhantomProcessStatus
+import com.droiddeck.launcher.session.FullscreenMode
import com.droiddeck.launcher.session.SessionPrefs
import kotlin.math.roundToInt
import kotlinx.coroutines.withTimeoutOrNull
@@ -176,7 +177,8 @@ class FrontEndState(
val orientation: Int = android.content.pm.ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE,
val launcherOrientation: Int = android.content.pm.ActivityInfo.SCREEN_ORIENTATION_USER,
val homePage: String = com.droiddeck.launcher.core.AppUiPrefs.HOME_PAGE_STEAM,
- val launcherFullscreen: Boolean = true,
+ val launcherFullscreenMode: FullscreenMode = FullscreenMode.ALWAYS,
+ val sessionFullscreenMode: FullscreenMode = FullscreenMode.ALWAYS,
val launcherFrost: Boolean = false,
val frostWallpaper: Boolean = true,
val frostCards: Boolean = true,
@@ -276,7 +278,7 @@ class FrontEndActions(
val onShareSessionLog: (File) -> Unit = {},
val onSaveSessionLog: (File) -> Unit = {},
val onDeleteSessionLog: (File, () -> Unit) -> Unit = { _, done -> done() },
- val onClearLogs: () -> Unit = {},
+ val onClearLogs: (() -> Unit) -> Unit = {},
val onResetSettings: () -> Unit = {},
val onOffline: () -> Unit,
val onOfflineAuto: () -> Unit = {},
@@ -288,7 +290,8 @@ class FrontEndActions(
val onOrientation: (Int) -> Unit = {},
val onLauncherOrientation: (Int) -> Unit = {},
val onHomePage: (String) -> Unit = {},
- val onLauncherFullscreen: (Boolean) -> Unit = {},
+ val onLauncherFullscreenMode: (FullscreenMode) -> Unit = {},
+ val onSessionFullscreenMode: (FullscreenMode) -> Unit = {},
val onLauncherFrost: (Boolean) -> Unit = {},
val onFrostWallpaper: (Boolean) -> Unit = {},
val onFrostCards: (Boolean) -> Unit = {},
@@ -711,9 +714,12 @@ private fun FrontEndScreenBody(s: FrontEndState, a: FrontEndActions, page: (@Com
if (anyFocused) return
}
}
+ val launcherFullscreen = s.launcherFullscreenMode.hidesSystemBars(
+ androidx.compose.ui.platform.LocalConfiguration.current.orientation,
+ )
androidx.compose.foundation.layout.BoxWithConstraints(
modifier = Modifier.fillMaxSize().background(if (LocalFrost.current != null) Color.Transparent else colors.background)
- .windowInsetsPadding(if (s.launcherFullscreen) WindowInsets.displayCutout else WindowInsets.systemBars)
+ .windowInsetsPadding(if (launcherFullscreen) WindowInsets.displayCutout else WindowInsets.systemBars)
.onFocusChanged { anyFocused = it.hasFocus },
) {
val bottomNavigation = maxHeight > maxWidth
diff --git a/app/src/main/java/com/droiddeck/launcher/ui/FrontEndSetup.kt b/app/src/main/java/com/droiddeck/launcher/ui/FrontEndSetup.kt
index 10af8742bb..d590bb1cba 100644
--- a/app/src/main/java/com/droiddeck/launcher/ui/FrontEndSetup.kt
+++ b/app/src/main/java/com/droiddeck/launcher/ui/FrontEndSetup.kt
@@ -85,6 +85,7 @@ import com.droiddeck.launcher.core.DeviceSupport
import com.droiddeck.launcher.core.DownloadSource
import com.droiddeck.launcher.core.PhantomProcessLimit
import com.droiddeck.launcher.core.PhantomProcessStatus
+import com.droiddeck.launcher.session.FullscreenMode
import com.droiddeck.launcher.session.SessionPrefs
import com.droiddeck.launcher.stores.download.StoreDownloadTier
import com.droiddeck.launcher.R
@@ -586,11 +587,17 @@ internal fun SetupPanel(
SessionPrefs.setOrientation(ctx, "desktop", value)
},
)
- ToggleRow(
- host, "launcher-fullscreen", stringResource(R.string.setup_fullscreen),
- if (s.launcherFullscreen) stringResource(R.string.setup_fullscreen_on) else stringResource(R.string.setup_fullscreen_off),
- s.launcherFullscreen,
- ) { a.onLauncherFullscreen(it) }
+ val fullscreenModes = FullscreenMode.entries.map { it to stringResource(it.label) }
+ ChoiceRow(
+ host, "launcher-fullscreen", stringResource(R.string.setup_launcher_fullscreen),
+ stringResource(R.string.setup_fullscreen_on),
+ fullscreenModes, s.launcherFullscreenMode, onPick = a.onLauncherFullscreenMode,
+ )
+ ChoiceRow(
+ host, "session-fullscreen", stringResource(R.string.setup_session_fullscreen),
+ stringResource(R.string.setup_fullscreen_on),
+ fullscreenModes, s.sessionFullscreenMode, onPick = a.onSessionFullscreenMode,
+ )
ToggleRow(
host, "page-swipe", stringResource(R.string.setup_page_swipe),
stringResource(R.string.setup_page_swipe_hint), PageSwipe.on,
@@ -678,89 +685,102 @@ internal fun SetupPanel(
}
}
DEVELOPER_TAB -> {
- val devContext = LocalContext.current
+ var manageLogs by rememberSaveable { mutableStateOf(false) }
SettingsGroup(stringResource(R.string.dev_tools_title)) {
- ToggleRow(host, "developer-tools", stringResource(R.string.dev_tools_title), stringResource(R.string.dev_tools_hint), DeveloperTools.on) {
- DeveloperTools.set(devContext, it)
+ ToggleRow(host, "developer-tools", stringResource(R.string.dev_tools_show), stringResource(R.string.dev_tools_hint), DeveloperTools.on, sideBySide = true) {
+ DeveloperTools.set(ctx, it)
+ }
+ if (DeveloperTools.on) ToggleRow(host, "agent-commands", stringResource(R.string.setup_agent_commands), stringResource(R.string.setup_agent_commands_hint), s.agentCommands, sideBySide = true) { a.onAgentCommands() }
+ if (DeveloperTools.on && com.droiddeck.launcher.agent.AgentHost.available) {
+ ToggleRow(host, "agent-pet", stringResource(R.string.rail_agent), stringResource(R.string.dev_harness_overlay_hint), AgentPet.enabled, sideBySide = true) {
+ AgentPet.set(ctx, it)
+ }
+ if (AgentPet.enabled && !AgentPet.allowed && AgentPet.usesOverlayWindows(com.droiddeck.launcher.session.QuestExperimental.isSupported())) ActionRow(
+ stringResource(R.string.setup_agent_pet_float), stringResource(R.string.setup_agent_pet_float_hint),
+ stringResource(R.string.setup_agent_pet_allow), onClick = { AgentPet.requestFloating(ctx) }, sideBySide = true,
+ )
}
- if (DeveloperTools.on) ActionRow(
- stringResource(R.string.dev_ui_zoo), stringResource(R.string.dev_ui_zoo_hint), stringResource(R.string.dev_ui_zoo_open),
- onClick = { DevPreview.zoo = true }, modifier = Modifier.testTag("dev-ui-zoo"),
- )
- if (DeveloperTools.on) ToggleRow(
- host, "preview-shortcuts", stringResource(R.string.dev_preview_shortcuts), stringResource(R.string.dev_preview_shortcuts_hint),
- DevPreview.shortcuts,
- ) { DevPreview.setShortcuts(devContext, it) }
}
- SettingsGroup(stringResource(R.string.dev_group_logs)) {
- ToggleRow(host, "logs", stringResource(R.string.setup_logs), stringResource(R.string.setup_logs_hint), s.logsEnabled) { a.onLogs() }
+ if (DeveloperTools.on) SettingsGroup(stringResource(R.string.dev_group_previews)) {
+ ActionRow(
+ stringResource(R.string.dev_ui_zoo), stringResource(R.string.dev_ui_zoo_hint), stringResource(R.string.dev_ui_zoo_open),
+ onClick = { DevPreview.zoo = true }, modifier = Modifier.testTag("dev-ui-zoo"), sideBySide = true,
+ )
+ ToggleRow(
+ host, "preview-shortcuts", stringResource(R.string.dev_preview_shortcuts), stringResource(R.string.dev_preview_shortcuts_hint),
+ DevPreview.shortcuts, sideBySide = true,
+ ) { DevPreview.setShortcuts(ctx, it) }
+ }
+ SettingsGroup(stringResource(R.string.dev_group_diagnostics)) {
+ ToggleRow(host, "logs", stringResource(R.string.setup_logs), stringResource(R.string.setup_logs_hint), s.logsEnabled, sideBySide = true) { a.onLogs() }
if (DeveloperTools.on) ToggleRow(
host, "enhanced-diagnostics", stringResource(R.string.setup_enhanced_diagnostics),
- stringResource(R.string.setup_enhanced_diagnostics_hint), s.enhancedDiagnosticsArmed,
+ stringResource(R.string.setup_enhanced_diagnostics_hint), s.enhancedDiagnosticsArmed, sideBySide = true,
) { a.onEnhancedDiagnostics() }
ToggleRow(
host, "game-debug-logs", stringResource(R.string.setup_game_debug_logs),
stringResource(if (s.gameDebugLogsNeedsRestart) R.string.setup_game_debug_logs_restart else R.string.setup_game_debug_logs_hint),
s.gameDebugLogsEnabled,
- enabled = s.logsEnabled,
+ enabled = s.logsEnabled, sideBySide = true,
) { a.onGameDebugLogs() }
- if (DeveloperTools.on) ToggleRow(host, "vacdiag", stringResource(R.string.setup_vac_diag), stringResource(R.string.setup_vac_diag_hint), s.vacDiagnostics) { a.onVacDiagnostics() }
- if (DeveloperTools.on) ToggleRow(host, "agent-commands", stringResource(R.string.setup_agent_commands), null, s.agentCommands) { a.onAgentCommands() }
- if (DeveloperTools.on && com.droiddeck.launcher.agent.AgentHost.available) {
- val agentContext = androidx.compose.ui.platform.LocalContext.current
- ToggleRow(host, "agent-pet", stringResource(R.string.setup_agent_pet), stringResource(R.string.setup_agent_pet_hint), AgentPet.enabled) {
- AgentPet.set(agentContext, it)
- }
- if (AgentPet.enabled && !AgentPet.allowed && AgentPet.usesOverlayWindows(com.droiddeck.launcher.session.QuestExperimental.isSupported())) ActionRow(
- stringResource(R.string.setup_agent_pet_float), stringResource(R.string.setup_agent_pet_float_hint),
- stringResource(R.string.setup_agent_pet_allow), onClick = { AgentPet.requestFloating(agentContext) },
- )
- }
- if (DeveloperTools.on) ToggleRow(host, "graphics-logs", stringResource(R.string.setup_graphics_logs), stringResource(R.string.setup_graphics_logs_hint), s.graphicsLogs) { a.onGraphicsLogs() }
- if (DeveloperTools.on && !s.adreno && com.droiddeck.launcher.session.SessionPrefs.steamGpuCompositingAllowed()) ToggleRow(host, "steam-gpu-drawing", stringResource(R.string.setup_steam_gpu_drawing), stringResource(R.string.setup_steam_gpu_drawing_hint), s.steamGpuDrawing) { a.onSteamGpuDrawing() }
+ if (DeveloperTools.on) ToggleRow(host, "vacdiag", stringResource(R.string.setup_vac_diag), stringResource(R.string.setup_vac_diag_hint), s.vacDiagnostics, sideBySide = true) { a.onVacDiagnostics() }
+ if (DeveloperTools.on) ToggleRow(host, "graphics-logs", stringResource(R.string.setup_graphics_logs), stringResource(R.string.setup_graphics_logs_hint), s.graphicsLogs, sideBySide = true) { a.onGraphicsLogs() }
+ if (DeveloperTools.on && !s.adreno && com.droiddeck.launcher.session.SessionPrefs.steamGpuCompositingAllowed()) ToggleRow(host, "steam-gpu-drawing", stringResource(R.string.setup_steam_gpu_drawing), stringResource(R.string.setup_steam_gpu_drawing_hint), s.steamGpuDrawing, sideBySide = true) { a.onSteamGpuDrawing() }
+ }
+ SettingsGroup(stringResource(R.string.dev_group_log_files)) {
ActionRow(stringResource(R.string.setup_latest_logs), stringResource(R.string.drawer_logs_hint), stringResource(R.string.drawer_share_logs), a.onShareLogs,
- progress = com.droiddeck.launcher.session.SessionLogShare.progress)
- androidx.compose.material3.HorizontalDivider()
- Text(stringResource(R.string.setup_log_sessions), fontSize = 13.sp, fontWeight = FontWeight.SemiBold,
- color = MaterialTheme.colorScheme.onSurfaceVariant, modifier = Modifier.padding(horizontal = 14.dp, vertical = 10.dp))
- Text(stringResource(R.string.setup_log_export_hint), fontSize = 12.sp, color = MaterialTheme.colorScheme.onSurfaceVariant,
- modifier = Modifier.padding(start = 14.dp, end = 14.dp, bottom = 8.dp))
- val sessionLogs = remember(ctx, logsRefresh) { com.droiddeck.launcher.session.SessionLogShare.sessions(ctx).asReversed() }
- if (sessionLogs.isEmpty()) {
- Text(stringResource(R.string.setup_log_empty), fontSize = 13.sp, color = MaterialTheme.colorScheme.onSurfaceVariant,
- modifier = Modifier.padding(horizontal = 14.dp, vertical = 10.dp))
- }
- sessionLogs.forEach { folder ->
- val active = folder == com.droiddeck.launcher.session.SessionPaths.current()
- var details by remember(folder) { mutableStateOf(null) }
- LaunchedEffect(folder, logsRefresh) {
- details = kotlinx.coroutines.withContext(kotlinx.coroutines.Dispatchers.IO) {
- com.droiddeck.launcher.session.SessionLogShare.details(folder)
- }
+ progress = com.droiddeck.launcher.session.SessionLogShare.progress, sideBySide = true)
+ ActionRow(
+ stringResource(R.string.setup_saved_logs), stringResource(R.string.dev_log_manage_hint),
+ stringResource(if (manageLogs) R.string.common_close else R.string.setup_manage),
+ onClick = { manageLogs = !manageLogs }, sideBySide = true,
+ )
+ if (manageLogs) {
+ Text(stringResource(R.string.setup_log_sessions), fontSize = 13.sp, fontWeight = FontWeight.SemiBold,
+ color = MaterialTheme.colorScheme.onSurfaceVariant, modifier = Modifier.padding(horizontal = 14.dp, vertical = 10.dp))
+ Text(stringResource(R.string.setup_log_export_hint), fontSize = 12.sp, color = MaterialTheme.colorScheme.onSurfaceVariant,
+ modifier = Modifier.padding(start = 14.dp, end = 14.dp, bottom = 8.dp))
+ val sessionLogs = remember(ctx, logsRefresh) { com.droiddeck.launcher.session.SessionLogShare.sessions(ctx).asReversed() }
+ if (sessionLogs.isEmpty()) {
+ Text(stringResource(R.string.setup_log_empty), fontSize = 13.sp, color = MaterialTheme.colorScheme.onSurfaceVariant,
+ modifier = Modifier.padding(horizontal = 14.dp, vertical = 10.dp))
}
- Column(Modifier.fillMaxWidth().padding(horizontal = 14.dp, vertical = 8.dp)) {
- Text(folder.name, fontSize = 14.sp, fontWeight = FontWeight.SemiBold, color = MaterialTheme.colorScheme.onBackground,
- maxLines = 1, overflow = TextOverflow.Ellipsis)
- details?.let { detail ->
- Text(
- stringResource(R.string.setup_log_size_date,
- android.text.format.Formatter.formatShortFileSize(ctx, detail.sizeBytes),
- "${android.text.format.DateFormat.getDateFormat(ctx).format(java.util.Date(detail.modifiedAt))} ${android.text.format.DateFormat.getTimeFormat(ctx).format(java.util.Date(detail.modifiedAt))}"),
- fontSize = 12.sp, color = MaterialTheme.colorScheme.onSurfaceVariant,
- )
+ sessionLogs.forEach { folder ->
+ val active = folder == com.droiddeck.launcher.session.SessionPaths.current()
+ var details by remember(folder) { mutableStateOf(null) }
+ LaunchedEffect(folder, logsRefresh) {
+ details = kotlinx.coroutines.withContext(kotlinx.coroutines.Dispatchers.IO) {
+ com.droiddeck.launcher.session.SessionLogShare.details(folder)
+ }
}
- if (active) Text(stringResource(R.string.setup_log_current), fontSize = 12.sp, color = MaterialTheme.colorScheme.primary)
- Row(Modifier.fillMaxWidth().padding(top = 6.dp), horizontalArrangement = Arrangement.spacedBy(8.dp)) {
- SecondaryButton(stringResource(R.string.setup_log_share), enabled = com.droiddeck.launcher.session.SessionLogShare.progress == null, compact = true, modifier = Modifier.weight(1f)) { a.onShareSessionLog(folder) }
- SecondaryButton(stringResource(R.string.setup_log_save), enabled = com.droiddeck.launcher.session.SessionLogShare.progress == null, compact = true, modifier = Modifier.weight(1f)) { a.onSaveSessionLog(folder) }
- SecondaryButton(stringResource(R.string.setup_log_delete), compact = true, enabled = !active, modifier = Modifier.weight(1f)) { deleteSessionLogs = folder }
+ Column(Modifier.fillMaxWidth().padding(horizontal = 14.dp, vertical = 8.dp)) {
+ Text(folder.name, fontSize = 14.sp, fontWeight = FontWeight.SemiBold, color = MaterialTheme.colorScheme.onBackground,
+ maxLines = 1, overflow = TextOverflow.Ellipsis)
+ details?.let { detail ->
+ Text(
+ stringResource(R.string.setup_log_size_date,
+ android.text.format.Formatter.formatShortFileSize(ctx, detail.sizeBytes),
+ "${android.text.format.DateFormat.getDateFormat(ctx).format(java.util.Date(detail.modifiedAt))} ${android.text.format.DateFormat.getTimeFormat(ctx).format(java.util.Date(detail.modifiedAt))}"),
+ fontSize = 12.sp, color = MaterialTheme.colorScheme.onSurfaceVariant,
+ )
+ }
+ if (active) Text(stringResource(R.string.setup_log_current), fontSize = 12.sp, color = MaterialTheme.colorScheme.primary)
+ Row(Modifier.fillMaxWidth().padding(top = 6.dp), horizontalArrangement = Arrangement.spacedBy(8.dp)) {
+ SecondaryButton(stringResource(R.string.setup_log_share), enabled = com.droiddeck.launcher.session.SessionLogShare.progress == null, compact = true, modifier = Modifier.weight(1f)) { a.onShareSessionLog(folder) }
+ SecondaryButton(stringResource(R.string.setup_log_save), enabled = com.droiddeck.launcher.session.SessionLogShare.progress == null, compact = true, modifier = Modifier.weight(1f)) { a.onSaveSessionLog(folder) }
+ SecondaryButton(stringResource(R.string.setup_log_delete), compact = true, enabled = !active, modifier = Modifier.weight(1f)) { deleteSessionLogs = folder }
+ }
}
+ androidx.compose.material3.HorizontalDivider()
}
- androidx.compose.material3.HorizontalDivider()
+ ActionRow(stringResource(R.string.setup_saved_logs_hint, com.droiddeck.launcher.session.SessionPaths.KEEP_SESSIONS),
+ null, stringResource(R.string.setup_clear_logs),
+ onClick = { a.onClearLogs { logsRefresh++ } }, sideBySide = true)
}
- ActionRow(stringResource(R.string.setup_saved_logs), stringResource(R.string.setup_saved_logs_hint, com.droiddeck.launcher.session.SessionPaths.KEEP_SESSIONS), stringResource(R.string.setup_clear_logs), a.onClearLogs)
+ }
+ SettingsGroup(stringResource(R.string.dev_group_reset)) {
ActionRow(stringResource(R.string.setup_reset_settings), stringResource(R.string.setup_reset_settings_hint),
- stringResource(R.string.setup_reset_settings_button), a.onResetSettings)
+ stringResource(R.string.setup_reset_settings_button), a.onResetSettings, sideBySide = true)
}
}
GLASSES_TAB -> GlassesSetupPanel()
@@ -881,6 +901,28 @@ internal fun LaunchSettings(s: FrontEndState, a: FrontEndActions, host: MenuHost
com.droiddeck.launcher.gpu.FrameGen.hasGameOverride(context, it)
} ?: false)
}
+ val scalingFilterChoices = SessionPrefs.upscalerChoices(context)
+ var gameUpscaler by remember(frameGenProfileKey) {
+ mutableStateOf(frameGenProfileKey?.let {
+ SessionPrefs.screenEffectsUpscaler(context, "game:$it")
+ } ?: SessionPrefs.upscaler(context))
+ }
+ var gameUpscalerOverride by remember(frameGenProfileKey) {
+ mutableStateOf(frameGenProfileKey?.let { SessionPrefs.hasGameUpscalerOverride(context, it) } ?: false)
+ }
+ val lifecycleOwner = LocalLifecycleOwner.current
+ DisposableEffect(lifecycleOwner, frameGenProfileKey) {
+ val observer = LifecycleEventObserver { _, event ->
+ if (event == Lifecycle.Event.ON_RESUME) {
+ frameGenProfileKey?.let { key ->
+ gameUpscaler = SessionPrefs.screenEffectsUpscaler(context, "game:$key")
+ gameUpscalerOverride = SessionPrefs.hasGameUpscalerOverride(context, key)
+ }
+ }
+ }
+ lifecycleOwner.lifecycle.addObserver(observer)
+ onDispose { lifecycleOwner.lifecycle.removeObserver(observer) }
+ }
var wincompOpen by remember(wincompKey) { mutableStateOf(null) }
val wincompPicks = remember(wincompKey, wincompOpen) { wincompKey?.let { com.droiddeck.launcher.session.WinComponents.picks(context, it) }.orEmpty() }
val steamScope = game?.let { com.droiddeck.launcher.session.NoSteamLaunch.scope(it) }
@@ -914,6 +956,25 @@ internal fun LaunchSettings(s: FrontEndState, a: FrontEndActions, host: MenuHost
},
)
}
+ val scalingFilterMenuContent: @Composable () -> Unit = {
+ val key = frameGenProfileKey
+ if (key != null) ScalingFilterMenu(
+ mode = gameUpscaler,
+ options = scalingFilterChoices,
+ hasGameOverride = gameUpscalerOverride,
+ onPick = { mode ->
+ SessionPrefs.setGameUpscaler(context, key, mode)
+ gameUpscaler = SessionPrefs.screenEffectsUpscaler(context, "game:$key")
+ gameUpscalerOverride = SessionPrefs.hasGameUpscalerOverride(context, key)
+ },
+ onResetGame = {
+ SessionPrefs.clearGameUpscaler(context, key)
+ gameUpscaler = SessionPrefs.upscaler(context)
+ gameUpscalerOverride = false
+ },
+ gameName = game?.name,
+ )
+ }
val cards = if (game?.library == com.droiddeck.launcher.frontend.Library.EPIC_LAUNCHER) listOfNotNull(steamCard) else buildList<@Composable (Modifier) -> Unit> {
add { m ->
val back = stringResource(R.string.hop_from_games)
@@ -938,6 +999,17 @@ internal fun LaunchSettings(s: FrontEndState, a: FrontEndActions, host: MenuHost
}
}
+ if (frameGenProfileKey != null) add { m ->
+ Box(m) {
+ SettingCard(
+ stringResource(R.string.display_filter),
+ scalingFilterChoices.firstOrNull { it.first == gameUpscaler }?.second ?: scalingFilterChoices.first().second,
+ "card:scaling-filter", Modifier.fillMaxSize(),
+ ) {
+ host.open = if (host.open == "scaling-filter") null else "scaling-filter"
+ }
+ }
+ }
if (controller != null) add { m -> SettingCard(stringResource(R.string.setup_card_controls), stringResource(R.string.setup_card_controls_hint), "card:controls", m, controller.onMapping) }
if (steamCard != null) add(steamCard)
val cardStore = com.droiddeck.launcher.stores.Store.byId(game?.source.orEmpty())?.takeIf { it == com.droiddeck.launcher.stores.Store.EPIC || it == com.droiddeck.launcher.stores.Store.GOG }
@@ -972,6 +1044,11 @@ internal fun LaunchSettings(s: FrontEndState, a: FrontEndActions, host: MenuHost
frameGenMenuContent()
}
}
+ if (host.open == "scaling-filter") {
+ Box(Modifier.fillMaxWidth().padding(top = 4.dp)) {
+ scalingFilterMenuContent()
+ }
+ }
}
}
diff --git a/app/src/main/java/com/droiddeck/launcher/ui/FrontEndWidgets.kt b/app/src/main/java/com/droiddeck/launcher/ui/FrontEndWidgets.kt
index 4245236747..adfa9eebcd 100644
--- a/app/src/main/java/com/droiddeck/launcher/ui/FrontEndWidgets.kt
+++ b/app/src/main/java/com/droiddeck/launcher/ui/FrontEndWidgets.kt
@@ -308,7 +308,8 @@ internal fun SecondaryButton(text: String, enabled: Boolean = true, compact: Boo
Box(
contentAlignment = Alignment.Center,
modifier = modifier.paneItem("btn:$text").downToFirstTile().heightIn(min = if (pill) 40.dp else if (compact) 44.dp else 48.dp).graphicsLayer { scaleX = scale; scaleY = scale }.clip(shape).background(fill).glideBorder(hot, shape, pal.signal, if (pill) Color.White.copy(alpha = 0.14f) else pal.line2)
- .alpha(if (enabled) 1f else 0.5f)
+ // The label always gets a layer of its own: sharing one with the fill and outline, they did not draw under the agent's latest reply.
+ .graphicsLayer { alpha = if (enabled) 1f else 0.5f }
.hoverable(src).clickable(role = androidx.compose.ui.semantics.Role.Button, interactionSource = src, indication = LocalIndication.current, enabled = enabled, onClick = onClick)
.controllerConfirm(enabled = enabled, onClick = onClick)
.padding(horizontal = if (pill) 16.dp else if (compact) 10.dp else 16.dp, vertical = if (pill) 8.dp else if (compact) 7.dp else 11.dp),
diff --git a/app/src/main/java/com/droiddeck/launcher/ui/InputSurfaceView.kt b/app/src/main/java/com/droiddeck/launcher/ui/InputSurfaceView.kt
index e0d0207ff3..b57dddc10d 100644
--- a/app/src/main/java/com/droiddeck/launcher/ui/InputSurfaceView.kt
+++ b/app/src/main/java/com/droiddeck/launcher/ui/InputSurfaceView.kt
@@ -137,7 +137,7 @@ class InputSurfaceView(
val views = owners.values.distinct()
owners.clear()
for (view in views) {
- if (view is HoldButton) { view.cancel(); continue }
+ if (view is HoldButton) { view.cancelTouches(); continue }
val cancel = MotionEvent.obtain(event.downTime, event.eventTime, MotionEvent.ACTION_CANCEL, 0f, 0f, 0)
try { view.dispatchTouchEvent(cancel) } finally { cancel.recycle() }
}
@@ -176,10 +176,23 @@ class InputSurfaceView(
val now = android.os.SystemClock.uptimeMillis()
val cancel = MotionEvent.obtain(now, now, MotionEvent.ACTION_CANCEL, 0f, 0f, 0)
try { cancelOwners(cancel) } finally { cancel.recycle() }
+ customCanvas?.let { canvas -> for (i in 0 until canvas.childCount) (canvas.getChildAt(i) as? HoldButton)?.cancel() }
forwardedPointers = 0
elementSources.forEach { it.release() }
}
+ /** Presses a button as a finger would, for input from outside the screen; [holder] tells holds apart. */
+ fun hold(elementId: String, holder: Int, held: Boolean, cancelled: Boolean = false): Boolean {
+ val canvas = customCanvas ?: return false
+ for (i in 0 until canvas.childCount) {
+ val button = canvas.getChildAt(i) as? HoldButton ?: continue
+ if ((button.tag as? InputSurfaceElement)?.id != elementId) continue
+ button.press(-1 - holder, held, cancelled)
+ return true
+ }
+ return false
+ }
+
override fun onVisibilityChanged(changedView: View, visibility: Int) {
super.onVisibilityChanged(changedView, visibility)
if (visibility != VISIBLE) releaseInputs()
@@ -482,17 +495,22 @@ class InputSurfaceView(
fun press(pointer: Int, pressed: Boolean, cancelled: Boolean = false) {
if (pressed) pointers.add(pointer) else pointers.remove(pointer)
- set(pointers.isNotEmpty(), cancelled)
+ set(pointers.isNotEmpty(), cancelled, touch = pointer >= 0)
}
fun cancel() { pointers.clear(); set(false, cancelled = true); source?.release() }
+ fun cancelTouches() {
+ pointers.removeAll { it >= 0 }
+ if (pointers.isEmpty()) cancel()
+ }
+
override fun onDetachedFromWindow() { cancel(); super.onDetachedFromWindow() }
- private fun set(pressed: Boolean, cancelled: Boolean = false) {
+ private fun set(pressed: Boolean, cancelled: Boolean = false, touch: Boolean = true) {
if (down == pressed) return
down = pressed
- if (pressed) feedback(this, HapticFeedbackConstants.VIRTUAL_KEY)
+ if (pressed && touch) feedback(this, HapticFeedbackConstants.VIRTUAL_KEY)
if (!pressed && cancelled) source?.cancel() else source?.update(if (pressed) 1f else 0f)
invalidate()
if (artwork != null && this in artworkDpad) customCanvas?.invalidate()
diff --git a/app/src/main/java/com/droiddeck/launcher/ui/LabBuilds.kt b/app/src/main/java/com/droiddeck/launcher/ui/LabBuilds.kt
index 8bfc59306b..c813b4fa1c 100644
--- a/app/src/main/java/com/droiddeck/launcher/ui/LabBuilds.kt
+++ b/app/src/main/java/com/droiddeck/launcher/ui/LabBuilds.kt
@@ -3,6 +3,9 @@ package com.droiddeck.launcher.ui
import android.text.format.DateUtils
import androidx.compose.foundation.background
import androidx.compose.foundation.border
+import androidx.compose.foundation.clickable
+import androidx.compose.foundation.hoverable
+import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
@@ -26,8 +29,11 @@ import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
+import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.LocalContext
+import androidx.compose.ui.res.pluralStringResource
import androidx.compose.ui.res.stringResource
+import androidx.compose.ui.semantics.Role
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
@@ -41,7 +47,7 @@ import com.droiddeck.launcher.lab.LabOverlay
* [onRebuild] offers to build a kept one again for this install, when something can.
*/
@Composable
-internal fun LabBuilds(sessionRunning: Boolean = false, onRebuild: ((LabOverlay.Info) -> Unit)? = null) {
+internal fun LabBuilds(sessionRunning: Boolean = false, header: (@Composable () -> Unit)? = null, onRebuild: ((LabOverlay.Info) -> Unit)? = null) {
val context = LocalContext.current
var version by remember { mutableIntStateOf(0) }
var busy by remember { mutableStateOf(false) }
@@ -54,6 +60,7 @@ internal fun LabBuilds(sessionRunning: Boolean = false, onRebuild: ((LabOverlay.
val paused = active == null && current != null && LabOverlay.skipped == LabOverlay.SKIPPED_APP_IMAGE
val restartFailed = stringResource(R.string.lab_restart_failed)
val canRestart = !busy && !sessionRunning
+ var showKept by androidx.compose.runtime.saveable.rememberSaveable { mutableStateOf(false) }
/** Android may have given the APK an app image again, which a Lab build cannot load over. */
fun restart() {
@@ -73,8 +80,8 @@ internal fun LabBuilds(sessionRunning: Boolean = false, onRebuild: ((LabOverlay.
val colors = MaterialTheme.colorScheme
val pal = LocalPalette.current
- Column(Modifier.fillMaxWidth().padding(top = 18.dp)) {
- Text(
+ Column(Modifier.fillMaxWidth().padding(top = if (header == null) 18.dp else 0.dp)) {
+ if (header != null) header() else Text(
stringResource(R.string.lab_builds).uppercase(), fontSize = 12.sp, fontWeight = FontWeight.SemiBold, letterSpacing = 1.5.sp,
color = colors.onSurfaceVariant, modifier = Modifier.padding(start = 2.dp, top = 2.dp, bottom = 10.dp),
)
@@ -99,7 +106,29 @@ internal fun LabBuilds(sessionRunning: Boolean = false, onRebuild: ((LabOverlay.
PrimaryButton(stringResource(R.string.lab_restart), compact = true, enabled = canRestart) { restart() }
}
}
- for (build in saved) rows += {
+ val foldKept = (current != null || pending != null) && saved.isNotEmpty()
+ if (foldKept) rows += {
+ val src = remember { MutableInteractionSource() }
+ val toggle = { showKept = !showKept }
+ Row(
+ verticalAlignment = Alignment.CenterVertically,
+ modifier = Modifier.fillMaxWidth().paneItem("lab:kept")
+ .background(if (rememberHot(src)) pal.signal.copy(alpha = 0.14f) else Color.Transparent)
+ .hoverable(src).clickable(interactionSource = src, indication = null, role = Role.Button, onClick = toggle)
+ .controllerConfirm(onClick = toggle)
+ .padding(horizontal = 14.dp, vertical = 12.dp),
+ ) {
+ Text(
+ pluralStringResource(R.plurals.lab_kept_count, saved.size, saved.size), fontSize = 14.sp,
+ color = colors.onSurfaceVariant, modifier = Modifier.weight(1f),
+ )
+ Text(
+ stringResource(if (showKept) R.string.common_hide else R.string.common_show), fontSize = 13.5.sp,
+ fontWeight = FontWeight.SemiBold, color = pal.signal,
+ )
+ }
+ }
+ if (!foldKept || showKept) for (build in saved) rows += {
var armed by remember(build.dir) { mutableStateOf(false) }
val info = build.info
BuildRow(
diff --git a/app/src/main/java/com/droiddeck/launcher/ui/ScalingFilterMenu.kt b/app/src/main/java/com/droiddeck/launcher/ui/ScalingFilterMenu.kt
new file mode 100644
index 0000000000..b012bb1292
--- /dev/null
+++ b/app/src/main/java/com/droiddeck/launcher/ui/ScalingFilterMenu.kt
@@ -0,0 +1,69 @@
+package com.droiddeck.launcher.ui
+
+import androidx.compose.foundation.layout.Column
+import androidx.compose.foundation.layout.PaddingValues
+import androidx.compose.foundation.layout.fillMaxWidth
+import androidx.compose.foundation.layout.padding
+import androidx.compose.material3.ButtonDefaults
+import androidx.compose.material3.MaterialTheme
+import androidx.compose.material3.OutlinedButton
+import androidx.compose.material3.Text
+import androidx.compose.runtime.Composable
+import androidx.compose.ui.Modifier
+import androidx.compose.ui.res.stringResource
+import androidx.compose.ui.unit.dp
+import com.droiddeck.launcher.R
+
+@Composable
+internal fun ScalingFilterMenu(
+ mode: Int,
+ options: List>,
+ hasGameOverride: Boolean,
+ onPick: (Int) -> Unit,
+ onResetGame: () -> Unit,
+ gameName: String? = null,
+) {
+ val colors = MaterialTheme.colorScheme
+ Column(Modifier.fillMaxWidth().padding(start = 10.dp, end = 10.dp, bottom = 8.dp)) {
+ val selectedLabel = options.firstOrNull { it.first == mode }?.second ?: mode.toString()
+ Text(
+ stringResource(
+ if (hasGameOverride) R.string.display_filter_game_profile else R.string.display_filter_default_profile,
+ if (hasGameOverride) gameName.orEmpty() else selectedLabel,
+ selectedLabel,
+ ),
+ color = colors.onSurfaceVariant,
+ style = MaterialTheme.typography.bodySmall,
+ modifier = Modifier.padding(bottom = 6.dp),
+ )
+ options.forEachIndexed { index, (option, label) ->
+ val selected = mode == option
+ val pick = { onPick(option) }
+ OutlinedButton(
+ onClick = pick,
+ modifier = Modifier.fillMaxWidth()
+ .padding(top = if (index == 0) 0.dp else 6.dp)
+ .controllerConfirm(onClick = pick),
+ contentPadding = PaddingValues(horizontal = 12.dp, vertical = 8.dp),
+ colors = ButtonDefaults.outlinedButtonColors(
+ containerColor = if (selected) colors.primary.copy(alpha = 0.16f) else colors.surface,
+ contentColor = if (selected) colors.primary else colors.onSurface,
+ ),
+ ) { Text(label) }
+ }
+ Text(
+ stringResource(R.string.display_filter_note),
+ color = colors.onSurfaceVariant,
+ style = MaterialTheme.typography.bodySmall,
+ modifier = Modifier.padding(top = 6.dp),
+ )
+ OutlinedButton(
+ onClick = onResetGame,
+ modifier = Modifier.fillMaxWidth().padding(top = 6.dp)
+ .controllerConfirm(onClick = onResetGame),
+ contentPadding = PaddingValues(horizontal = 12.dp, vertical = 8.dp),
+ ) {
+ Text(stringResource(R.string.comp_game_use_general) + if (hasGameOverride) "" else " ✓")
+ }
+ }
+}
diff --git a/app/src/main/java/com/droiddeck/launcher/ui/SessionOverlay.kt b/app/src/main/java/com/droiddeck/launcher/ui/SessionOverlay.kt
index e7c1070d62..706f0258e5 100644
--- a/app/src/main/java/com/droiddeck/launcher/ui/SessionOverlay.kt
+++ b/app/src/main/java/com/droiddeck/launcher/ui/SessionOverlay.kt
@@ -16,6 +16,8 @@ import androidx.compose.ui.input.key.key
import androidx.compose.ui.input.key.onPreviewKeyEvent
import androidx.compose.ui.input.key.type
import androidx.compose.ui.layout.LayoutCoordinates
+import androidx.compose.ui.unit.Constraints
+import androidx.compose.ui.layout.Layout
import androidx.compose.ui.layout.onSizeChanged
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.platform.LocalLayoutDirection
@@ -75,6 +77,7 @@ import androidx.compose.foundation.interaction.PressInteraction
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Column
+import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxHeight
@@ -84,6 +87,7 @@ import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
+import androidx.compose.foundation.systemGestureExclusion
import androidx.compose.foundation.ScrollState
import androidx.compose.foundation.horizontalScroll
import androidx.compose.foundation.rememberScrollState
@@ -112,6 +116,10 @@ import androidx.compose.foundation.shape.CircleShape
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.droiddeck.launcher.HomeApp
+import com.droiddeck.launcher.input.AirTrigger
+import com.droiddeck.launcher.input.AirTriggerAction
+import com.droiddeck.launcher.input.AirTriggerLed
+import com.droiddeck.launcher.input.RapidFireRate
import com.droiddeck.launcher.input.ControllerPrefs
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.animateColorAsState
@@ -169,6 +177,7 @@ import com.droiddeck.launcher.gpu.ScreenEffectLooks
import com.droiddeck.launcher.gpu.Cardboard
import com.droiddeck.launcher.gpu.SteamVr
import com.droiddeck.launcher.gpu.ScreenEffects
+import com.droiddeck.launcher.session.FullscreenMode
import com.droiddeck.launcher.session.SessionPrefs
import com.droiddeck.launcher.session.ComponentsManager
import com.droiddeck.launcher.input.PC_KEY_GROUP_IDS
@@ -234,6 +243,12 @@ private class DrawerFocus {
fun forget(page: SessionDrawerPage) { last.remove(page) }
}
+data class AirTriggerMenu(
+ val enabled: Boolean, val selected: Map, val buttons: List>,
+ val vibration: Boolean = false, val screenLight: Boolean = false, val led: AirTriggerLed = AirTriggerLed.STEADY,
+ val actions: Map = emptyMap(), val rates: Map = emptyMap(),
+)
+
class DrawerActions(
val steam: Boolean,
val desktop: Boolean,
@@ -339,6 +354,14 @@ class DrawerActions(
val onControllerSize: (Int) -> Unit = {},
val onControllerOpacity: (Int) -> Unit = {},
val onRumble: (Boolean) -> Unit = {},
+ val airTriggers: AirTriggerMenu? = null,
+ val onAirTriggers: (Boolean) -> Unit = {},
+ val onAirTriggerButton: (AirTrigger, String) -> Unit = { _, _ -> },
+ val onAirTriggerAction: (AirTrigger, AirTriggerAction) -> Unit = { _, _ -> },
+ val onAirTriggerRate: (AirTrigger, RapidFireRate) -> Unit = { _, _ -> },
+ val onAirTriggerVibration: (Boolean) -> Unit = {},
+ val onAirTriggerScreenLight: (Boolean) -> Unit = {},
+ val onAirTriggerLed: (AirTriggerLed) -> Unit = {},
val onSuspendPolicy: (String) -> Unit,
val onSteamDownloadsInBackground: (Boolean) -> Unit = {},
val onBackActionsInverted: (Boolean) -> Unit,
@@ -384,6 +407,8 @@ class DrawerActions(
val paused: Boolean = false,
val orientation: Int = android.content.pm.ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE,
val onOrientation: (Int) -> Unit = {},
+ val fullscreenMode: FullscreenMode = FullscreenMode.ALWAYS,
+ val onFullscreenMode: (FullscreenMode) -> Unit = {},
val onResume: () -> Unit = {},
val onPipAutoEnter: (Boolean) -> Unit = {},
val unfoldedControls: Boolean? = null,
@@ -452,6 +477,7 @@ internal fun SessionDrawer(open: Boolean, requestedPage: SessionDrawerPage, cont
remember { DrawerSectionState.load(drawerContext) }
var appToChooseDisplay by remember { mutableStateOf(null) }
var confirmStop by remember { mutableStateOf(false) }
+ var airTriggersShown by remember { mutableStateOf(false) }
var sheetCoords by remember { mutableStateOf(null) }
val widthContext = LocalContext.current
var savedWidth by remember { mutableStateOf(SessionPrefs.drawerWidthDp(widthContext)) }
@@ -463,15 +489,17 @@ internal fun SessionDrawer(open: Boolean, requestedPage: SessionDrawerPage, cont
val focusManager = LocalFocusManager.current
// A page kept inside More is one step deeper than the strip: back returns to More before it closes the menu.
val insideMore = page in pages.inMore()
+ val airPanel = airTriggersShown && page == SessionDrawerPage.CONTROLLER && a.airTriggers != null
BackHandler(enabled = open) {
when {
host.open != null -> host.open = null
+ airPanel -> airTriggersShown = false
insideMore -> onPageChange(SessionDrawerPage.MORE)
else -> a.onClose()
}
}
BackHandler(enabled = open && confirmStop) { confirmStop = false }
- val layerOpen = open && (host.open != null || appToChooseDisplay != null || confirmStop || insideMore)
+ val layerOpen = open && (host.open != null || appToChooseDisplay != null || confirmStop || insideMore || airPanel)
LaunchedEffect(layerOpen) { onLayerChange(layerOpen) }
var seenBackRequest by remember { mutableStateOf(backRequest) }
LaunchedEffect(backRequest) {
@@ -481,10 +509,23 @@ internal fun SessionDrawer(open: Boolean, requestedPage: SessionDrawerPage, cont
confirmStop -> confirmStop = false
appToChooseDisplay != null -> appToChooseDisplay = null
host.open != null -> host.open = null
+ airPanel -> airTriggersShown = false
insideMore -> onPageChange(SessionDrawerPage.MORE)
}
}
- LaunchedEffect(page) { host.open = null; appToChooseDisplay = null; managing = false }
+ LaunchedEffect(page) { host.open = null; appToChooseDisplay = null; managing = false; airTriggersShown = false }
+ var airPanelFocused by remember { mutableStateOf(airPanel) }
+ LaunchedEffect(airPanel) {
+ val moved = airPanel != airPanelFocused
+ airPanelFocused = airPanel
+ if (!moved || !open || !controllerActive) return@LaunchedEffect
+ val target = if (airPanel) "air-triggers-toggle" else "air-triggers"
+ repeat(24) {
+ androidx.compose.runtime.withFrameNanos { }
+ focus.request(target)
+ if (focus.focused == target) return@LaunchedEffect
+ }
+ }
LaunchedEffect(host.open) {
if (host.open == "frame-generation") repeat(24) {
androidx.compose.runtime.withFrameNanos { }
@@ -548,8 +589,8 @@ internal fun SessionDrawer(open: Boolean, requestedPage: SessionDrawerPage, cont
}
androidx.compose.foundation.layout.BoxWithConstraints(modifier = Modifier.fillMaxSize().exposeTestTags(), contentAlignment = Alignment.CenterEnd) {
val short = maxHeight < 440.dp
- // The handle keeps a strip on the left free, so a sheet dragged wide can always be dragged back.
- val maxSheet = (maxWidth - DRAWER_EDGE_GAP).coerceAtLeast(0.dp)
+ // At full width the handle's strip sits on the screen's left edge, so the sheet can still be dragged back.
+ val maxSheet = (maxWidth - DRAWER_HANDLE_STRIP).coerceAtLeast(0.dp)
val minSheet = minOf(DRAWER_MIN_WIDTH, maxSheet)
val defaultSheet = minOf(420.dp, maxWidth * 0.92f)
val sheetWidth = if (docked) maxWidth else (savedWidth?.dp ?: defaultSheet).coerceIn(minSheet, maxSheet)
@@ -570,6 +611,7 @@ internal fun SessionDrawer(open: Boolean, requestedPage: SessionDrawerPage, cont
.controllerBack {
when {
host.open != null -> host.open = null
+ airPanel -> airTriggersShown = false
managing -> DrawerPages.heldFrom?.let { held ->
DrawerPages.rearrange(drawerContext, held)
releaseSignal++
@@ -646,7 +688,9 @@ internal fun SessionDrawer(open: Boolean, requestedPage: SessionDrawerPage, cont
host.open = null; onPageChange(pages.strip().step(pages.tabFor(page), 1))
}
}
- if (insideMore && !managing) DrawerMoreBack(stringResource(page.title), focus.track(page, "more-back")) { host.open = null; onPageChange(SessionDrawerPage.MORE) }
+ if (insideMore && !managing && !airPanel) DrawerMoreBack(stringResource(page.title), focus.track(page, "more-back")) { host.open = null; onPageChange(SessionDrawerPage.MORE) }
+ if (airPanel && !managing) DrawerMoreBack(stringResource(R.string.air_triggers_title), focus.track(page, "air-triggers-back"),
+ parent = stringResource(page.title)) { host.open = null; airTriggersShown = false }
if (managing) ManageDrawerPages(
offeredDrawerPages(a.achievementsGame != null),
Modifier.weight(1f).fillMaxWidth().padding(top = 8.dp, start = 14.dp, end = 14.dp),
@@ -665,8 +709,13 @@ internal fun SessionDrawer(open: Boolean, requestedPage: SessionDrawerPage, cont
val track: (String) -> Modifier = { key -> focus.track(page, key) }
val sections = remember(page) { DrawerSections(drawerContext, track) }
CompositionLocalProvider(LocalChipMinWidth provides 96.dp, LocalCompactSettings provides true, LocalDrawerSections provides sections) {
+ DrawerColumns(two = sheetWidth >= DRAWER_TWO_COLUMN_WIDTH && page.inColumns) {
when (page) {
- SessionDrawerPage.CONTROLLER -> DrawerControllerPage(host, a, a.controllerConnected || controllerActive, track)
+ SessionDrawerPage.CONTROLLER -> {
+ val airTriggers = a.airTriggers
+ if (airPanel && airTriggers != null) AirTriggersPanel(host, airTriggers, a, track)
+ else DrawerControllerPage(host, a, a.controllerConnected || controllerActive, track) { host.open = null; airTriggersShown = true }
+ }
SessionDrawerPage.HUD -> DrawerPerformancePage(host, a, track)
SessionDrawerPage.FRAMEGEN -> DrawerFrameGenPage(host, a, track)
SessionDrawerPage.DISPLAY -> DrawerDisplayPage(host, a, track)
@@ -681,6 +730,7 @@ internal fun SessionDrawer(open: Boolean, requestedPage: SessionDrawerPage, cont
SessionDrawerPage.ACHIEVEMENTS -> a.achievementsGame?.let { DrawerAchievementsPage(it, a.achievementsTitle, track) }
SessionDrawerPage.AGENT -> Unit
}
+ }
} }
}
}
@@ -725,7 +775,7 @@ internal fun SessionDrawer(open: Boolean, requestedPage: SessionDrawerPage, cont
}
@Composable
-private fun DrawerControllerPage(host: MenuHost, a: DrawerActions, padConnected: Boolean, track: (String) -> Modifier) {
+private fun DrawerControllerPage(host: MenuHost, a: DrawerActions, padConnected: Boolean, track: (String) -> Modifier, onAirTriggers: () -> Unit) {
val on = stringResource(R.string.widgets_on)
val off = stringResource(R.string.widgets_off)
val padTag = if (padConnected) stringResource(R.string.drawer_tag_controller) else null
@@ -740,9 +790,12 @@ private fun DrawerControllerPage(host: MenuHost, a: DrawerActions, padConnected:
SessionPrefs.CONTROLLER_DUALSENSE to stringResource(R.string.mode_controller_dualsense),
SessionPrefs.CONTROLLER_XBOX360 to stringResource(R.string.mode_controller_x360))
val rumbleLabel = stringResource(R.string.ctrl_rumble)
- if (a.padType != null || c != null) SettingsGroup(
+ val airTriggers = a.airTriggers
+ val airTriggersLabel = stringResource(R.string.air_triggers_title)
+ if (a.padType != null || c != null || airTriggers != null) SettingsGroup(
stringResource(R.string.input_device_settings), key = "controller-pad", tag = padTag,
- detail = summary(a.padType?.let { padTypes.labelOf(it) }, c?.let { "$rumbleLabel ${if (it.rumble) on else off}" }),
+ detail = summary(a.padType?.let { padTypes.labelOf(it) }, c?.let { "$rumbleLabel ${if (it.rumble) on else off}" },
+ airTriggers?.let { "$airTriggersLabel ${if (it.enabled) on else off}" }),
) {
a.padType?.let { type ->
ChoiceRow(host, "pad-type", stringResource(R.string.input_virtual_controller), stringResource(R.string.input_virtual_controller_hint),
@@ -751,6 +804,10 @@ private fun DrawerControllerPage(host: MenuHost, a: DrawerActions, padConnected:
c?.let {
ToggleRow(host, "rumble", rumbleLabel, null, it.rumble, chipModifier = track("rumble"), onChange = a.onRumble)
}
+ airTriggers?.let {
+ ActionRow(airTriggersLabel, if (it.enabled) on else off, stringResource(R.string.air_triggers_open), onAirTriggers,
+ modifier = track("air-triggers"))
+ }
}
val oscChoices = if (a.steam) listOf(SessionPrefs.OSC_AUTO to stringResource(R.string.common_auto), SessionPrefs.OSC_ALWAYS to stringResource(R.string.common_always), SessionPrefs.OSC_STEAM_TOUCH to stringResource(R.string.osc_steam_touch), SessionPrefs.OSC_STEAM_QAM to stringResource(R.string.mode_osc_qam), SessionPrefs.OSC_NEVER to stringResource(R.string.common_never))
else listOf(SessionPrefs.OSC_AUTO to stringResource(R.string.common_auto), SessionPrefs.OSC_ALWAYS to stringResource(R.string.common_always), SessionPrefs.OSC_NEVER to stringResource(R.string.common_never))
@@ -955,6 +1012,10 @@ private fun DrawerDisplayPage(host: MenuHost, a: DrawerActions, track: (String)
if (a.gameZoomAvailable) GameZoomRow(a.gameZoom, track, a.onGameZoom)
ChoiceRow(host, "orientation", stringResource(R.string.setup_session_orientation), null,
orientations, a.orientation, chipModifier = track("orientation"), onPick = a.onOrientation)
+ ChoiceRow(host, "session-fullscreen", stringResource(R.string.setup_session_fullscreen),
+ stringResource(R.string.setup_fullscreen_on),
+ FullscreenMode.entries.map { it to stringResource(it.label) }, a.fullscreenMode,
+ chipModifier = track("session-fullscreen"), onPick = a.onFullscreenMode)
if (a.steam) PicturePositionRow(host, a.picturePosition, track("picture-position"), onPick = a.onPicturePosition)
}
val filters = SessionPrefs.upscalerChoices(LocalContext.current)
@@ -1317,15 +1378,15 @@ private fun DrawerPageTabs(page: SessionDrawerPage, pages: List Unit) {
+private fun DrawerMoreBack(title: String, modifier: Modifier, parent: String = stringResource(R.string.drawer_page_more), onBack: () -> Unit) {
val colors = MaterialTheme.colorScheme
val pal = LocalPalette.current
val source = remember { MutableInteractionSource() }
val hot = source.collectIsFocusedAsState().value || source.collectIsHoveredAsState().value
val shape = RoundedCornerShape(12.dp)
- val label = stringResource(R.string.drawer_more_back, stringResource(R.string.drawer_page_more))
+ val label = stringResource(R.string.drawer_more_back, parent)
Row(
verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(8.dp),
modifier = modifier.padding(top = 8.dp, start = 14.dp, end = 14.dp).fillMaxWidth().heightIn(min = 44.dp).clip(shape)
@@ -1339,12 +1400,105 @@ private fun DrawerMoreBack(title: String, modifier: Modifier, onBack: () -> Unit
.padding(horizontal = 8.dp),
) {
Icon(Icons.AutoMirrored.Outlined.ArrowBack, null, tint = colors.onSurfaceVariant, modifier = Modifier.size(22.dp))
- Text(stringResource(R.string.drawer_page_more), fontSize = 13.sp, color = colors.onSurfaceVariant)
+ Text(parent, fontSize = 13.sp, color = colors.onSurfaceVariant)
Text("·", fontSize = 13.sp, color = colors.onSurfaceVariant)
Text(title, fontSize = 15.sp, fontWeight = FontWeight.SemiBold, color = colors.onBackground, maxLines = 1)
}
}
+@Composable
+private fun AirTriggersPanel(host: MenuHost, t: AirTriggerMenu, a: DrawerActions, track: (String) -> Modifier) {
+ CompositionLocalProvider(LocalDrawerSections provides null) { SettingsGroup(stringResource(R.string.air_triggers_title)) {
+ ToggleRow(host, "air-triggers-toggle", stringResource(R.string.air_triggers_use), stringResource(R.string.air_triggers_use_hint), t.enabled,
+ chipModifier = track("air-triggers-toggle"), onChange = a.onAirTriggers)
+ ToggleRow(host, "air-triggers-vibration", stringResource(R.string.air_triggers_vibration), stringResource(R.string.air_triggers_vibration_hint),
+ t.vibration, enabled = t.enabled, chipModifier = track("air-triggers-vibration"), onChange = a.onAirTriggerVibration)
+ ToggleRow(host, "air-triggers-screen-light", stringResource(R.string.air_triggers_screen_light), stringResource(R.string.air_triggers_screen_light_hint),
+ t.screenLight, enabled = t.enabled, chipModifier = track("air-triggers-screen-light"), onChange = a.onAirTriggerScreenLight)
+ val leds = listOf(AirTriggerLed.OFF to R.string.air_triggers_led_off, AirTriggerLed.STEADY to R.string.air_triggers_led_steady,
+ AirTriggerLed.PULSE to R.string.air_triggers_led_pulse).map { (led, text) -> led to stringResource(text) }
+ ChoiceRow(host, "air-triggers-led", stringResource(R.string.air_triggers_led), null, leds, t.led,
+ enabled = t.enabled, chipModifier = track("air-triggers-led"), onPick = a.onAirTriggerLed)
+ for (trigger in AirTrigger.entries) {
+ val key = "air-trigger-${trigger.name.lowercase()}"
+ val left = trigger == AirTrigger.LEFT
+ val label = stringResource(if (left) R.string.air_trigger_left else R.string.air_trigger_right)
+ ChoiceRow(host, key, label, stringResource(R.string.air_trigger_button_hint), t.buttons, t.selected.getValue(trigger),
+ enabled = t.enabled, chipModifier = track(key)) { a.onAirTriggerButton(trigger, it) }
+ AirTriggerActionRow(host, "$key-action", stringResource(if (left) R.string.air_trigger_left_action else R.string.air_trigger_right_action),
+ t.actions[trigger] ?: AirTriggerAction.TAP, t.rates[trigger] ?: RapidFireRate.NORMAL, t.enabled, track("$key-action"),
+ onAction = { a.onAirTriggerAction(trigger, it) }, onRate = { a.onAirTriggerRate(trigger, it) })
+ }
+ } }
+}
+
+@Composable
+private fun AirTriggerActionRow(
+ host: MenuHost, key: String, label: String, action: AirTriggerAction, rate: RapidFireRate, enabled: Boolean, chipModifier: Modifier,
+ onAction: (AirTriggerAction) -> Unit, onRate: (RapidFireRate) -> Unit,
+) {
+ val open = host.open == key
+ var rateOpen by remember { mutableStateOf(false) }
+ LaunchedEffect(open) { if (!open) rateOpen = false }
+ val actions = listOf(AirTriggerAction.TAP to R.string.air_trigger_action_tap, AirTriggerAction.LATCH to R.string.air_trigger_action_hold,
+ AirTriggerAction.RAPID to R.string.air_trigger_action_rapid).map { (value, text) -> value to stringResource(text) }
+ val rates = listOf(R.string.air_trigger_rate_low, R.string.air_trigger_rate_normal, R.string.air_trigger_rate_high).map { stringResource(it) }
+ val rapidLabel = actions.last().second
+ val frequency = stringResource(R.string.air_trigger_rapid_frequency)
+ SettingsRow(label, null, highlighted = open) { Box {
+ ValueChip(actions.first { it.first == action }.second, open, enabled, modifier = chipModifier.testTag("setting-$key")) {
+ host.open = if (open) null else key
+ }
+ AnchoredMenu(open, onDismiss = { if (host.open == key) host.open = null }, title = if (rateOpen) null else label) { first ->
+ val arrowFocus = remember { FocusRequester() }
+ val keyboard = LocalInputModeManager.current.inputMode == InputMode.Keyboard
+ var shown by remember { mutableStateOf(rateOpen) }
+ LaunchedEffect(rateOpen) {
+ if (shown == rateOpen) return@LaunchedEffect
+ shown = rateOpen
+ withFrameNanos { }
+ if (keyboard) runCatching { (if (rateOpen) first else arrowFocus).requestFocus() }
+ }
+ if (rateOpen) {
+ Row(verticalAlignment = Alignment.CenterVertically, modifier = Modifier.fillMaxWidth().padding(start = 10.dp)) {
+ Text(rapidLabel.uppercase(), fontSize = 12.sp, fontWeight = FontWeight.SemiBold, letterSpacing = 1.5.sp,
+ color = MaterialTheme.colorScheme.onSurfaceVariant, modifier = Modifier.weight(1f))
+ MenuGlyphButton("✕", stringResource(R.string.common_close), Modifier.testTag("$key-rate-close")) { rateOpen = false }
+ }
+ ValueSlider(rate.ordinal, 0..RapidFireRate.entries.lastIndex, 1, true, frequency, { rates[it] },
+ modifier = Modifier.focusRequester(first).testTag("$key-rate")) { if (it != rate.ordinal) onRate(RapidFireRate.entries[it]) }
+ } else actions.forEachIndexed { index, (value, text) ->
+ val pick = { onAction(value); host.open = null }
+ if (value != AirTriggerAction.RAPID) MenuItem(text, checked = value == action, focusRequester = if (index == 0) first else null, onClick = pick)
+ else Row(verticalAlignment = Alignment.CenterVertically) {
+ MenuItem(text, checked = value == action, modifier = Modifier.weight(1f), onClick = pick)
+ MenuGlyphButton("›", stringResource(R.string.air_trigger_rapid_settings),
+ Modifier.focusRequester(arrowFocus).testTag("$key-rate-open")) { rateOpen = true }
+ }
+ }
+ }
+ } }
+}
+
+@Composable
+private fun MenuGlyphButton(glyph: String, description: String, modifier: Modifier = Modifier, onClick: () -> Unit) {
+ val pal = LocalPalette.current
+ val src = remember { MutableInteractionSource() }
+ val hot = src.collectIsFocusedAsState().value || src.collectIsHoveredAsState().value
+ val shape = RoundedCornerShape(8.dp)
+ Box(
+ contentAlignment = Alignment.Center,
+ modifier = modifier.size(40.dp).clip(shape)
+ .background(if (hot) Color.White.copy(alpha = 0.07f) else Color.Transparent)
+ .glideBorder(hot, shape, pal.signal)
+ .hoverable(src).clickable(interactionSource = src, indication = LocalIndication.current, role = Role.Button, onClick = onClick)
+ .controllerConfirm(onClick = onClick)
+ .semantics { contentDescription = description },
+ ) {
+ Text(glyph, fontSize = 18.sp, fontWeight = FontWeight.SemiBold, color = MaterialTheme.colorScheme.onBackground)
+ }
+}
+
/** The pages kept inside More, and the way into arranging which pages sit on the strip and which here. */
@Composable
private fun DrawerMorePage(host: MenuHost, pages: List, a: DrawerActions, onOpen: (SessionDrawerPage) -> Unit, onEdit: () -> Unit, track: (String) -> Modifier) {
@@ -1557,7 +1711,44 @@ internal fun secondScreenModes(none: Boolean, deckPad: Boolean, dashboard: Boole
private val DRAWER_MIN_WIDTH = 300.dp
private val DRAWER_HANDLE_STRIP = 24.dp
-private val DRAWER_EDGE_GAP = 80.dp
+private val DRAWER_COLUMN_GAP = 10.dp
+// Two columns once each would be as wide as the narrowest single-column sheet.
+private val DRAWER_TWO_COLUMN_WIDTH = DRAWER_MIN_WIDTH * 2 + DRAWER_COLUMN_GAP
+
+private val SessionDrawerPage.inColumns: Boolean
+ get() = this != SessionDrawerPage.MORE && this != SessionDrawerPage.ACHIEVEMENTS
+
+/**
+ * On a wide sheet, lays a page's groups out in two columns, the first half on the left. The split is by count, not
+ * height, so a group keeps its column while others fold and unfold.
+ */
+@Composable
+internal fun DrawerColumns(two: Boolean, content: @Composable () -> Unit) {
+ // Keep a single composition so resizing only remeasures existing children.
+ Layout(content, Modifier.fillMaxWidth()) { measurables, constraints ->
+ val width = constraints.maxWidth
+ if (!two || measurables.size < 2) {
+ val placeables = measurables.map { it.measure(constraints.copy(minWidth = 0, minHeight = 0)) }
+ return@Layout layout(width, placeables.sumOf { it.height }) {
+ var y = 0
+ placeables.forEach { it.placeRelative(0, y); y += it.height }
+ }
+ }
+ val gap = DRAWER_COLUMN_GAP.roundToPx()
+ val column = ((width - gap) / 2).coerceAtLeast(0)
+ val child = Constraints(maxWidth = column)
+ val placeables = measurables.map { it.measure(child) }
+ val half = (placeables.size + 1) / 2
+ val left = placeables.take(half)
+ val right = placeables.drop(half)
+ layout(width, maxOf(left.sumOf { it.height }, right.sumOf { it.height })) {
+ var y = 0
+ left.forEach { it.placeRelative(0, y); y += it.height }
+ y = 0
+ right.forEach { it.placeRelative(column + gap, y); y += it.height }
+ }
+ }
+}
/** A grip on the sheet's left edge: dragging it, or pressing left and right on a controller, resizes the sheet. */
@Composable
@@ -1579,6 +1770,8 @@ private fun DrawerResizeHandle(width: Dp, min: Dp, max: Dp, onWidth: (Dp) -> Uni
contentAlignment = Alignment.Center,
modifier = modifier.width(24.dp).height(96.dp)
.onGloballyPositioned { coords = it }
+ // On the screen's edge, Android's back swipe would take the drag.
+ .systemGestureExclusion()
.focusable(true, source)
.onPreviewKeyEvent { event ->
val key = event.nativeKeyEvent
@@ -1938,7 +2131,7 @@ private fun ComponentsDrawerPage(host: MenuHost, a: DrawerActions, track: (Strin
}
return
}
- SettingsGroup(stringResource(R.string.drawer_page_components), key = "game-components") {
+ DrawerComponentSettingsGroup(stringResource(R.string.drawer_game_components_note, gameProfile.name)) {
DrawerStackedChoice(
host = host,
key = "game-cmp-proton",
@@ -1981,12 +2174,6 @@ private fun ComponentsDrawerPage(host: MenuHost, a: DrawerActions, track: (Strin
)
}
}
- Text(
- stringResource(R.string.drawer_game_components_note, gameProfile.name),
- fontSize = 12.sp,
- color = colors.onSurfaceVariant,
- modifier = Modifier.padding(horizontal = 4.dp, vertical = 12.dp),
- )
return
}
val running = snap.protons.filter { it.inUseByGame }
@@ -2027,7 +2214,7 @@ private fun ComponentsDrawerPage(host: MenuHost, a: DrawerActions, track: (Strin
return
}
val p = view.proton
- SettingsGroup(stringResource(R.string.drawer_page_components), key = "game-components") {
+ DrawerComponentSettingsGroup(stringResource(R.string.drawer_components_note)) {
DrawerStackedChoice(
host, "cmp-proton", stringResource(R.string.comp_proton),
listOfNotNull(
@@ -2063,10 +2250,16 @@ private fun ComponentsDrawerPage(host: MenuHost, a: DrawerActions, track: (Strin
)
}
}
- Text(
- stringResource(R.string.drawer_components_note),
- fontSize = 12.sp, color = colors.onSurfaceVariant, modifier = Modifier.padding(horizontal = 4.dp, vertical = 12.dp),
- )
+}
+
+@Composable
+internal fun DrawerComponentSettingsGroup(note: String, content: @Composable ColumnScope.() -> Unit) {
+ // The note stays visible when collapsed, but both belong to one drawer column item.
+ Column(Modifier.fillMaxWidth()) {
+ SettingsGroup(stringResource(R.string.drawer_page_components), key = "game-components", content = content)
+ Text(note, fontSize = 12.sp, color = MaterialTheme.colorScheme.onSurfaceVariant,
+ modifier = Modifier.padding(horizontal = 4.dp, vertical = 12.dp))
+ }
}
@Composable
diff --git a/app/src/main/java/com/droiddeck/launcher/ui/SettingsIndex.kt b/app/src/main/java/com/droiddeck/launcher/ui/SettingsIndex.kt
index 5983063e1e..2bd881af35 100644
--- a/app/src/main/java/com/droiddeck/launcher/ui/SettingsIndex.kt
+++ b/app/src/main/java/com/droiddeck/launcher/ui/SettingsIndex.kt
@@ -116,7 +116,8 @@ internal object SettingsIndex {
s(SettingsSection.LAUNCHER, R.string.setup_home, "home screen", "launcher"),
s(SettingsSection.LAUNCHER, R.string.setup_launcher_orientation, "rotate", "portrait"),
s(SettingsSection.LAUNCHER, R.string.setup_session_orientation, "rotate", "portrait"),
- s(SettingsSection.LAUNCHER, R.string.setup_fullscreen),
+ s(SettingsSection.LAUNCHER, R.string.setup_launcher_fullscreen, "status bar", "navigation bar", "portrait"),
+ s(SettingsSection.LAUNCHER, R.string.setup_session_fullscreen, "status bar", "navigation bar", "portrait"),
s(SettingsSection.LAUNCHER, R.string.setup_page_swipe, "gesture"),
s(SettingsSection.LAUNCHER, R.string.setup_controller_haptics, "vibration", "rumble"),
s(SettingsSection.LAUNCHER, R.string.setup_dual_screen_launcher, "thor", "second screen", "bottom screen"),
@@ -130,7 +131,8 @@ internal object SettingsIndex {
s(SettingsSection.DEVELOPER, R.string.setup_game_debug_logs, "logs", "wine", "proton"),
SettingsEntry(SettingsPlace.SETTINGS, R.string.setup_enhanced_diagnostics, section = SettingsSection.DEVELOPER, words = listOf("logs"), developer = true),
s(SettingsSection.DEVELOPER, R.string.setup_reset_settings, "default"),
- s(SettingsSection.DEVELOPER, R.string.dev_tools_title, "agent", "ai", "claude", "codex"),
+ s(SettingsSection.DEVELOPER, R.string.dev_tools_show, "agent", "ai", "claude", "codex"),
+ SettingsEntry(SettingsPlace.SETTINGS, R.string.setup_agent_commands, section = SettingsSection.DEVELOPER, words = listOf("debugging tools", "cli"), developer = true),
SettingsEntry(SettingsPlace.SETTINGS, R.string.setup_graphics_logs, section = SettingsSection.DEVELOPER, words = listOf("logs", "gpu"), developer = true),
d(R.string.drawer_page_display, R.string.drawer_frame_limit, "fps", "cap", "limit", "non-steam", "desktop"),
diff --git a/app/src/main/java/com/droiddeck/launcher/ui/SettingsJump.kt b/app/src/main/java/com/droiddeck/launcher/ui/SettingsJump.kt
new file mode 100644
index 0000000000..cf50f10701
--- /dev/null
+++ b/app/src/main/java/com/droiddeck/launcher/ui/SettingsJump.kt
@@ -0,0 +1,62 @@
+package com.droiddeck.launcher.ui
+
+import android.os.SystemClock
+import androidx.compose.animation.core.Animatable
+import androidx.compose.animation.core.tween
+import androidx.compose.foundation.relocation.BringIntoViewRequester
+import androidx.compose.foundation.relocation.bringIntoViewRequester
+import androidx.compose.runtime.Composable
+import androidx.compose.runtime.LaunchedEffect
+import androidx.compose.runtime.SideEffect
+import androidx.compose.runtime.getValue
+import androidx.compose.runtime.mutableStateOf
+import androidx.compose.runtime.staticCompositionLocalOf
+import androidx.compose.runtime.remember
+import androidx.compose.runtime.setValue
+import androidx.compose.runtime.withFrameNanos
+import androidx.compose.ui.Modifier
+import androidx.compose.ui.draw.drawBehind
+
+/** The row a settings search result opens, so the page it lands on can scroll to it and flash it. */
+internal object SettingsJump {
+ class Target(val label: String, val at: Long = SystemClock.uptimeMillis())
+
+ var target: Target? by mutableStateOf(null)
+
+ fun to(label: String) { target = Target(label) }
+}
+
+private const val JUMP_WINDOW_MS = 5_000L
+
+/** False in the search results, whose rows carry the same labels as the rows they open. */
+internal val LocalSearchTargets = staticCompositionLocalOf { true }
+
+@OptIn(androidx.compose.foundation.ExperimentalFoundationApi::class)
+@Composable
+internal fun Modifier.searchTarget(label: String): Modifier {
+ val pal = LocalPalette.current
+ val flash = remember { Animatable(0f) }
+ val reveal = remember { BringIntoViewRequester() }
+ var claimed by remember { mutableStateOf(null) }
+ val target = SettingsJump.target.takeIf { LocalSearchTargets.current }
+ if (target != null && target.label == label) SideEffect {
+ if (SettingsJump.target === target) {
+ SettingsJump.target = null
+ if (SystemClock.uptimeMillis() - target.at <= JUMP_WINDOW_MS) claimed = target
+ }
+ }
+ claimed?.let { mine ->
+ LaunchedEffect(mine) {
+ withFrameNanos { }
+ reveal.bringIntoView()
+ repeat(2) {
+ flash.animateTo(1f, tween(220))
+ flash.animateTo(0f, tween(420))
+ }
+ claimed = null
+ }
+ }
+ return bringIntoViewRequester(reveal).drawBehind {
+ if (flash.value > 0f) drawRect(pal.signal.copy(alpha = 0.28f * flash.value))
+ }
+}
diff --git a/app/src/main/java/com/droiddeck/launcher/ui/SettingsSearch.kt b/app/src/main/java/com/droiddeck/launcher/ui/SettingsSearch.kt
index e195b4ee8e..b76a5157f9 100644
--- a/app/src/main/java/com/droiddeck/launcher/ui/SettingsSearch.kt
+++ b/app/src/main/java/com/droiddeck/launcher/ui/SettingsSearch.kt
@@ -103,7 +103,7 @@ internal fun SettingsSearchResults(query: String, frost: Boolean, onOpen: (Setti
Note(stringResource(R.string.settings_search_none, query.trim()))
return
}
- Column {
+ androidx.compose.runtime.CompositionLocalProvider(LocalSearchTargets provides false) { Column {
found.groupBy { it.place }.forEach { (place, entries) ->
SettingsGroup(stringResource(place.title)) {
entries.forEach { entry ->
@@ -112,9 +112,10 @@ internal fun SettingsSearchResults(query: String, frost: Boolean, onOpen: (Setti
val section = entry.section
val tab = entry.tab
if (section != null) {
- ActionRow(title, within, stringResource(R.string.store_open), onClick = { onOpen(section) })
+ ActionRow(title, within, stringResource(R.string.store_open), onClick = { SettingsJump.to(title); onOpen(section) })
} else if (tab != null) {
ActionRow(title, within, stringResource(R.string.store_open), onClick = {
+ SettingsJump.to(title)
if (tab == NavTabs.MORE) MoreTabs.editing = true
if (tab == "downloads") DownloadsNav.showSettings = true
RailRequest.key = tab
@@ -125,5 +126,5 @@ internal fun SettingsSearchResults(query: String, frost: Boolean, onOpen: (Setti
}
}
}
- }
+ } }
}
diff --git a/app/src/main/java/com/droiddeck/launcher/ui/SettingsWidgets.kt b/app/src/main/java/com/droiddeck/launcher/ui/SettingsWidgets.kt
index 5d09490e39..b9ddae4311 100644
--- a/app/src/main/java/com/droiddeck/launcher/ui/SettingsWidgets.kt
+++ b/app/src/main/java/com/droiddeck/launcher/ui/SettingsWidgets.kt
@@ -456,12 +456,13 @@ fun MenuItem(
.padding(horizontal = 10.dp, vertical = 9.dp),
) {
Text("✓", fontSize = 12.sp, color = pal.signal, modifier = Modifier.width(18.dp).alpha(if (checked) 1f else 0f).clearAndSetSemantics {})
+ val ink = if (checked) pal.signal else colors.onBackground
if (leading != null) {
- leading()
+ androidx.compose.runtime.CompositionLocalProvider(androidx.compose.material3.LocalContentColor provides ink) { leading() }
Spacer(Modifier.width(8.dp))
}
Column(modifier = Modifier.weight(1f)) {
- Text(label, fontSize = 13.5.sp, color = if (checked) pal.signal else colors.onBackground, maxLines = 2, overflow = TextOverflow.Ellipsis)
+ Text(label, fontSize = 13.5.sp, color = ink, maxLines = 2, overflow = TextOverflow.Ellipsis)
if (detail != null) Text(detail, fontSize = 12.sp, color = colors.onSurfaceVariant, maxLines = 2, overflow = TextOverflow.Ellipsis)
}
if (trailing != null) { Spacer(Modifier.width(8.dp)); trailing() }
@@ -525,7 +526,7 @@ fun SettingsGroup(title: String, compact: Boolean = false, detail: String? = nul
}
@Composable
-fun SettingsRow(label: String, hint: String?, highlighted: Boolean = false, hintLines: Int? = null, stacked: Boolean = false, tightControlSpacing: Boolean = false, control: @Composable () -> Unit) {
+fun SettingsRow(label: String, hint: String?, highlighted: Boolean = false, hintLines: Int? = null, stacked: Boolean = false, tightControlSpacing: Boolean = false, sideBySide: Boolean = false, control: @Composable () -> Unit) {
val compact = LocalCompactSettings.current
val colors = MaterialTheme.colorScheme
val pal = LocalPalette.current
@@ -535,8 +536,8 @@ fun SettingsRow(label: String, hint: String?, highlighted: Boolean = false, hint
lineHeight = if (compact) 14.sp else androidx.compose.ui.unit.TextUnit.Unspecified,
minLines = hintLines ?: 1, maxLines = hintLines ?: Int.MAX_VALUE, overflow = TextOverflow.Ellipsis)
}
- if (compact && !stacked) Column(
- modifier = Modifier.fillMaxWidth().background(bg).padding(horizontal = 10.dp, vertical = 6.dp),
+ if (compact && !stacked && !sideBySide) Column(
+ modifier = Modifier.searchTarget(label).fillMaxWidth().background(bg).padding(horizontal = 10.dp, vertical = 6.dp),
) {
Row(verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(8.dp)) {
Text(label, fontSize = 13.sp, lineHeight = 16.sp, fontWeight = FontWeight.SemiBold, color = colors.onBackground,
@@ -544,8 +545,8 @@ fun SettingsRow(label: String, hint: String?, highlighted: Boolean = false, hint
control()
}
if (hint != null || hintLines != null) hintText(11.sp)
- } else if (stacked || LocalNarrowPane.current) Column(
- modifier = Modifier.fillMaxWidth().background(bg).padding(
+ } else if (stacked || (LocalNarrowPane.current && !sideBySide)) Column(
+ modifier = Modifier.searchTarget(label).fillMaxWidth().background(bg).padding(
horizontal = if (compact) 10.dp else 14.dp,
vertical = if (tightControlSpacing) 2.dp else if (compact) 6.dp else 12.dp),
) {
@@ -556,7 +557,7 @@ fun SettingsRow(label: String, hint: String?, highlighted: Boolean = false, hint
Box(Modifier.padding(top = if (tightControlSpacing) 2.dp else if (compact) 6.dp else 8.dp)) { control() }
} else Row(
verticalAlignment = Alignment.CenterVertically,
- modifier = Modifier.fillMaxWidth().background(bg).padding(horizontal = 14.dp, vertical = 11.dp),
+ modifier = Modifier.searchTarget(label).fillMaxWidth().background(bg).padding(horizontal = 14.dp, vertical = 11.dp),
) {
Column(modifier = Modifier.weight(1f).padding(end = 12.dp)) {
Text(label, fontSize = 15.sp, fontWeight = FontWeight.SemiBold, color = colors.onBackground)
@@ -612,8 +613,8 @@ fun UncertainMark(description: String) {
}
@Composable
-fun ToggleRow(host: MenuHost, key: String, label: String, hint: String?, checked: Boolean, enabled: Boolean = true, chipModifier: Modifier = Modifier, onChange: (Boolean) -> Unit) =
- SettingsRow(label, hint) {
+fun ToggleRow(host: MenuHost, key: String, label: String, hint: String?, checked: Boolean, enabled: Boolean = true, chipModifier: Modifier = Modifier, sideBySide: Boolean = false, onChange: (Boolean) -> Unit) =
+ SettingsRow(label, hint, sideBySide = sideBySide) {
ToggleSwitch(checked, enabled, label, chipModifier.testTag("setting-$key")) { host.open = null; onChange(it) }
}
@@ -660,7 +661,7 @@ fun SliderRow(
) {
val colors = MaterialTheme.colorScheme
val pal = LocalPalette.current
- Column(Modifier.fillMaxWidth()) {
+ Column(Modifier.searchTarget(label).fillMaxWidth()) {
ValueSlider(value, range, step, enabled, label, format,
modifier = modifier.padding(horizontal = 6.dp, vertical = 3.dp), onChange = onChange)
if (hint != null) Text(hint, fontSize = 12.5.sp, color = colors.onSurfaceVariant,
@@ -773,8 +774,10 @@ fun MultiRow(
}
@Composable
-fun ActionRow(label: String, hint: String?, button: String, onClick: () -> Unit, progress: Float? = null, modifier: Modifier = Modifier) {
- SettingsRow(label, hint) { SecondaryButton(button, modifier = modifier, progress = progress, onClick = onClick) }
+fun ActionRow(label: String, hint: String?, button: String, onClick: () -> Unit, progress: Float? = null, modifier: Modifier = Modifier, sideBySide: Boolean = false) {
+ SettingsRow(label, hint, sideBySide = sideBySide) {
+ SecondaryButton(button, compact = sideBySide, modifier = modifier, progress = progress, onClick = onClick)
+ }
}
@Composable
diff --git a/app/src/main/java/com/droiddeck/launcher/ui/TabMenu.kt b/app/src/main/java/com/droiddeck/launcher/ui/TabMenu.kt
index c5c31a203c..1a05328069 100644
--- a/app/src/main/java/com/droiddeck/launcher/ui/TabMenu.kt
+++ b/app/src/main/java/com/droiddeck/launcher/ui/TabMenu.kt
@@ -88,7 +88,9 @@ internal fun TabMenu(
.controllerConfirm(onClick = toggle)
.padding(start = 14.dp, end = 10.dp),
) {
- if (selected in labels.indices) leading?.invoke(selected, false)
+ if (selected in labels.indices) androidx.compose.runtime.CompositionLocalProvider(androidx.compose.material3.LocalContentColor provides colors.onBackground) {
+ leading?.invoke(selected, false)
+ }
Text(label, fontSize = 14.sp, fontWeight = FontWeight.Bold, color = colors.onBackground, maxLines = 1,
overflow = TextOverflow.Ellipsis, modifier = Modifier.weight(1f, fill = false))
Icon(if (open) Icons.Outlined.ExpandLess else Icons.Outlined.ExpandMore, contentDescription = null,
diff --git a/app/src/main/java/com/droiddeck/launcher/ui/UpdatesPage.kt b/app/src/main/java/com/droiddeck/launcher/ui/UpdatesPage.kt
index c454dfe2db..f15b69287b 100644
--- a/app/src/main/java/com/droiddeck/launcher/ui/UpdatesPage.kt
+++ b/app/src/main/java/com/droiddeck/launcher/ui/UpdatesPage.kt
@@ -20,6 +20,7 @@ import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ExperimentalLayoutApi
import androidx.compose.foundation.layout.FlowRow
import androidx.compose.foundation.layout.Row
+import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
@@ -114,36 +115,49 @@ internal fun UpdatesPage(s: FrontEndState, a: FrontEndActions, modifier: Modifie
Column(modifier = modifier) {
BoxWithConstraints(Modifier.weight(1f).fillMaxWidth()) {
val stacked = LocalNarrowPane.current || maxWidth < 600.dp
- Column(modifier = Modifier.fillMaxSize().verticalScroll(rememberScrollState()).padding(bottom = 16.dp)) {
+ val context = LocalContext.current
+ val agentReady = com.droiddeck.launcher.agent.AgentHost.installed &&
+ (com.droiddeck.launcher.agent.AgentSetup.ready || com.droiddeck.launcher.agent.AgentSetup.completed(context))
+ val installed: @Composable () -> Unit = {
SectionLabel(stringResource(R.string.upd_installed_label))
InstalledCard(s, u, me)
CheckRow(u, ua)
- SectionLabel(stringResource(R.string.upd_channel))
- if (stacked) {
- ChannelPicker(u, ua)
- Box(Modifier.height(14.dp))
- StatusPanel(s, u, ua, me)
- } else {
- Row(horizontalArrangement = Arrangement.spacedBy(18.dp)) {
- Box(Modifier.weight(1f)) { ChannelPicker(u, ua) }
- Box(Modifier.weight(1.15f)) { StatusPanel(s, u, ua, me) }
- }
- }
- SectionLabel(stringResource(R.string.upd_testers), top = 22.dp)
- ToggleRow(
- host, "build-watermark", stringResource(R.string.setup_build_watermark),
- stringResource(R.string.setup_build_watermark_hint), s.buildWatermark,
- ) { a.onBuildWatermark() }
- val context = LocalContext.current
- val agentReady = com.droiddeck.launcher.agent.AgentHost.installed &&
- (com.droiddeck.launcher.agent.AgentSetup.ready || com.droiddeck.launcher.agent.AgentSetup.completed(context))
- LabBuilds(s.sessionRunning, onRebuild = if (agentReady) { info ->
+ LabBuilds(s.sessionRunning, header = { SectionLabel(stringResource(R.string.lab_builds)) }, onRebuild = if (agentReady) { info ->
com.droiddeck.launcher.agent.AgentHost.send(context, context.getString(R.string.agent_rebuild_lab, info.label))
context.startActivity(android.content.Intent(context, com.droiddeck.launcher.FrontEndActivity::class.java)
.putExtra(com.droiddeck.launcher.stores.download.StoreDownloadService.EXTRA_NAV, "agent")
.addFlags(android.content.Intent.FLAG_ACTIVITY_SINGLE_TOP or android.content.Intent.FLAG_ACTIVITY_REORDER_TO_FRONT))
} else null)
}
+ val channel: @Composable () -> Unit = {
+ SectionLabel(stringResource(R.string.upd_channel))
+ ChannelPicker(u, ua) { StatusPanel(s, u, ua, me, embedded = it) }
+ }
+ val testers: @Composable () -> Unit = {
+ SectionLabel(stringResource(R.string.upd_testers), top = 22.dp)
+ ToggleRow(
+ host, "build-watermark", stringResource(R.string.setup_build_watermark),
+ stringResource(R.string.setup_build_watermark_hint), s.buildWatermark,
+ ) { a.onBuildWatermark() }
+ }
+ if (stacked) {
+ Column(modifier = Modifier.fillMaxSize().verticalScroll(rememberScrollState()).padding(bottom = 16.dp)) {
+ installed()
+ Box(Modifier.height(18.dp))
+ channel()
+ testers()
+ }
+ } else {
+ Row(Modifier.fillMaxSize(), horizontalArrangement = Arrangement.spacedBy(24.dp)) {
+ Column(Modifier.weight(1f).fillMaxHeight().verticalScroll(rememberScrollState()).padding(bottom = 16.dp)) {
+ installed()
+ testers()
+ }
+ Column(Modifier.weight(1.15f).fillMaxHeight().verticalScroll(rememberScrollState()).padding(bottom = 16.dp)) {
+ channel()
+ }
+ }
+ }
}
}
if (u.askPermission) AlertDialog(
@@ -266,7 +280,7 @@ private fun CheckRow(u: UpdatesState, ua: UpdatesActions) {
}
@Composable
-private fun StatusPanel(s: FrontEndState, u: UpdatesState, ua: UpdatesActions, me: AppUpdates.Installed) {
+private fun StatusPanel(s: FrontEndState, u: UpdatesState, ua: UpdatesActions, me: AppUpdates.Installed, embedded: Boolean = false) {
val colors = MaterialTheme.colorScheme
val pal = LocalPalette.current
val catalog = u.catalog
@@ -292,13 +306,14 @@ private fun StatusPanel(s: FrontEndState, u: UpdatesState, ua: UpdatesActions, m
else -> Look(pal.good, stringResource(R.string.upd_current_status), stringResource(R.string.upd_current_headline, name), null)
}
Column(
- modifier = Modifier.fillMaxWidth().clip(Shape16).background(colors.surface).border(1.dp, pal.line, Shape16).padding(18.dp),
+ modifier = if (embedded) Modifier.fillMaxWidth().padding(start = 12.dp, end = 12.dp, bottom = 14.dp)
+ else Modifier.fillMaxWidth().clip(Shape16).background(colors.surface).border(1.dp, pal.line, Shape16).padding(18.dp),
) {
Row(verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(7.dp)) {
Box(Modifier.size(7.dp).clip(CircleShape).background(look.tint))
Text(look.status, fontSize = 13.sp, fontWeight = FontWeight.SemiBold, color = look.tint)
}
- Text(look.headline, fontSize = 22.sp, fontWeight = FontWeight.Bold, color = colors.onBackground, modifier = Modifier.padding(top = 4.dp))
+ if (!embedded) Text(look.headline, fontSize = 22.sp, fontWeight = FontWeight.Bold, color = colors.onBackground, modifier = Modifier.padding(top = 4.dp))
if (offered) {
val size = release!!.apk?.size?.takeIf { it > 0 }?.let { megabytes(it) }
Text(
@@ -419,7 +434,7 @@ private fun changeTitle(t: String): String =
private fun megabytes(bytes: Long) = stringResource(R.string.upd_mb, ((bytes + 524_288) / 1_048_576).toInt())
@Composable
-private fun ChannelPicker(u: UpdatesState, ua: UpdatesActions) {
+private fun ChannelPicker(u: UpdatesState, ua: UpdatesActions, status: @Composable (embedded: Boolean) -> Unit) {
val colors = MaterialTheme.colorScheme
val pal = LocalPalette.current
val catalog = u.catalog
@@ -455,8 +470,9 @@ private fun ChannelPicker(u: UpdatesState, ua: UpdatesActions) {
}
Text(hint, fontSize = 12.5.sp, color = colors.onSurfaceVariant, modifier = Modifier.padding(horizontal = 4.dp))
if (tests.isEmpty() && catalog != null && showTests) Text(stringResource(R.string.upd_tests_none), fontSize = 12.5.sp, color = colors.onSurfaceVariant)
+ if (!listing) status(false)
AnimatedVisibility(listing, enter = expandVertically(Motion.sp(1f)) + fadeIn(Motion.sp(1f)), exit = shrinkVertically(Motion.sp(1f)) + fadeOut(Motion.sp(1f))) {
- TestList(tests, me, u, ua)
+ TestList(tests, me, u, ua, status)
}
}
}
@@ -675,7 +691,7 @@ private fun LinkPill(label: String, url: String) {
}
@Composable
-private fun TestList(tests: List, me: AppUpdates.Installed, u: UpdatesState, ua: UpdatesActions) {
+private fun TestList(tests: List, me: AppUpdates.Installed, u: UpdatesState, ua: UpdatesActions, status: @Composable (embedded: Boolean) -> Unit) {
val colors = MaterialTheme.colorScheme
var query by rememberSaveable { mutableStateOf("") }
val needle = query.trim().removePrefix("#").removePrefix("@")
@@ -686,18 +702,25 @@ private fun TestList(tests: List, me: AppUpdates.Installed, u: UpdatesS
val (ready, old) = matches.partition { it.versionCode >= me.versionCode }
val followedOld = u.follow.channel == Channel.TEST && old.any { it.pr == u.follow.pr }
var showOld by rememberSaveable { mutableStateOf(false) }
- Column(Modifier.padding(start = 18.dp), verticalArrangement = Arrangement.spacedBy(6.dp)) {
- if (tests.size > 5 || query.isNotEmpty()) AdbTextField(
- value = query, onValueChange = { query = it }, label = stringResource(R.string.upd_tests_find),
- keyboardType = KeyboardType.Text, imeAction = ImeAction.Search, compact = true, showLabel = false,
- placeholder = stringResource(R.string.upd_tests_find), modifier = Modifier.fillMaxWidth(),
- )
- if (matches.isEmpty()) Text(stringResource(R.string.upd_tests_no_match), fontSize = 12.5.sp, color = colors.onSurfaceVariant, modifier = Modifier.padding(4.dp))
- ready.forEach { t -> TestRow(t, u.follow.pr == t.pr && u.follow.channel == Channel.TEST) { ua.onFollow(Follow(Channel.TEST, t.pr)) } }
- if (old.isNotEmpty()) {
- MoreLink(stringResource(R.string.upd_tests_old, old.size, me.versionCode), "tests:old") { showOld = !showOld }
- if (showOld || followedOld || needle.isNotEmpty()) old.forEach { t ->
- TestRow(t, u.follow.pr == t.pr && u.follow.channel == Channel.TEST, tooOld = true) { ua.onFollow(Follow(Channel.TEST, t.pr)) }
+ val oldShown = showOld || followedOld || needle.isNotEmpty()
+ val followed = u.follow.pr.takeIf { u.follow.channel == Channel.TEST }
+ val rowShown = followed != null && (ready.any { it.pr == followed } || (oldShown && old.any { it.pr == followed }))
+ Column(verticalArrangement = Arrangement.spacedBy(10.dp)) {
+ // A followed test's row carries the status; browsing Tests while following Stable or Preview shows it only for an install running or failed.
+ if (if (followed != null) !rowShown else u.stage != null || u.error != null) status(false)
+ Column(Modifier.padding(start = 18.dp), verticalArrangement = Arrangement.spacedBy(6.dp)) {
+ if (tests.size > 5 || query.isNotEmpty()) AdbTextField(
+ value = query, onValueChange = { query = it }, label = stringResource(R.string.upd_tests_find),
+ keyboardType = KeyboardType.Text, imeAction = ImeAction.Search, compact = true, showLabel = false,
+ placeholder = stringResource(R.string.upd_tests_find), modifier = Modifier.fillMaxWidth(),
+ )
+ if (matches.isEmpty()) Text(stringResource(R.string.upd_tests_no_match), fontSize = 12.5.sp, color = colors.onSurfaceVariant, modifier = Modifier.padding(4.dp))
+ ready.forEach { t -> TestRow(t, followed == t.pr, status = status) { ua.onFollow(Follow(Channel.TEST, t.pr)) } }
+ if (old.isNotEmpty()) {
+ MoreLink(stringResource(R.string.upd_tests_old, old.size, me.versionCode), "tests:old") { showOld = !showOld }
+ if (oldShown) old.forEach { t ->
+ TestRow(t, followed == t.pr, tooOld = true, status = status) { ua.onFollow(Follow(Channel.TEST, t.pr)) }
+ }
}
}
}
@@ -712,40 +735,46 @@ private fun RadioDot(selected: Boolean, size: androidx.compose.ui.unit.Dp = 22.d
}
@Composable
-private fun TestRow(t: Release, selected: Boolean, tooOld: Boolean = false, onClick: () -> Unit) {
+private fun TestRow(t: Release, selected: Boolean, tooOld: Boolean = false, status: @Composable (embedded: Boolean) -> Unit, onClick: () -> Unit) {
val colors = MaterialTheme.colorScheme
val pal = LocalPalette.current
val src = remember { MutableInteractionSource() }
val hot = rememberHot(src)
- Row(
- verticalAlignment = Alignment.CenterVertically,
- horizontalArrangement = Arrangement.spacedBy(12.dp),
- modifier = Modifier.fillMaxWidth().paneItem("test:${t.pr}")
- .heightIn(min = 52.dp)
- .clip(Shape12)
- .background(colors.surface).background(if (hot) pal.signal.copy(alpha = 0.14f) else Color.Transparent)
- .glideBorder(hot, Shape12, pal.signal, pal.line)
- .alpha(if (tooOld && !selected) 0.6f else 1f)
- .hoverable(src)
- .clickable(interactionSource = src, indication = null, role = Role.RadioButton, onClick = onClick)
- .controllerConfirm(onClick = onClick)
- .padding(horizontal = 12.dp, vertical = 8.dp),
+ Column(
+ Modifier.fillMaxWidth().clip(Shape12).background(colors.surface)
+ .glideBorder(hot, Shape12, pal.signal, if (selected) pal.signal.copy(alpha = 0.5f) else pal.line),
) {
- Text("#${t.pr}", fontSize = 13.sp, fontWeight = FontWeight.Bold, color = if (selected) pal.signal else colors.onSurfaceVariant)
- Column(Modifier.weight(1f)) {
- Text(changeTitle(t.title.ifBlank { stringResource(R.string.upd_pr, t.pr) }), fontSize = 13.5.sp, fontWeight = FontWeight.SemiBold, color = colors.onBackground, maxLines = 1, overflow = TextOverflow.Ellipsis)
- val detail = when {
- t.apk == null -> stringResource(R.string.upd_not_built)
- tooOld -> stringResource(R.string.upd_tests_old_row, t.versionCode)
- else -> stringResource(R.string.upd_updated, ago(t.builtAt.takeIf { it > 0 } ?: t.publishedAt))
+ Row(
+ verticalAlignment = Alignment.CenterVertically,
+ horizontalArrangement = Arrangement.spacedBy(12.dp),
+ modifier = Modifier.fillMaxWidth().paneItem("test:${t.pr}")
+ .heightIn(min = 52.dp)
+ .background(if (hot) pal.signal.copy(alpha = 0.14f) else Color.Transparent)
+ .alpha(if (tooOld && !selected) 0.6f else 1f)
+ .hoverable(src)
+ .clickable(interactionSource = src, indication = null, role = Role.RadioButton, onClick = onClick)
+ .controllerConfirm(onClick = onClick)
+ .padding(horizontal = 12.dp, vertical = 8.dp),
+ ) {
+ Text("#${t.pr}", fontSize = 13.sp, fontWeight = FontWeight.Bold, color = if (selected) pal.signal else colors.onSurfaceVariant)
+ Column(Modifier.weight(1f)) {
+ Text(changeTitle(t.title.ifBlank { stringResource(R.string.upd_pr, t.pr) }), fontSize = 13.5.sp, fontWeight = FontWeight.SemiBold, color = colors.onBackground, maxLines = 1, overflow = TextOverflow.Ellipsis)
+ val detail = when {
+ t.apk == null -> stringResource(R.string.upd_not_built)
+ tooOld -> stringResource(R.string.upd_tests_old_row, t.versionCode)
+ else -> stringResource(R.string.upd_updated, ago(t.builtAt.takeIf { it > 0 } ?: t.publishedAt))
+ }
+ Text(
+ listOfNotNull(detail, t.author.takeIf { it.isNotEmpty() }?.let { "@$it" }, t.shortCommit).joinToString(" · "),
+ fontSize = 12.sp, color = colors.onSurfaceVariant, maxLines = 1, overflow = TextOverflow.Ellipsis,
+ )
+ if (t.newerCommitPushed) Text(stringResource(R.string.upd_newer_commit_short), fontSize = 12.sp, color = AttentionAmber, maxLines = 1, overflow = TextOverflow.Ellipsis)
}
- Text(
- listOfNotNull(detail, t.author.takeIf { it.isNotEmpty() }?.let { "@$it" }, t.shortCommit).joinToString(" · "),
- fontSize = 12.sp, color = colors.onSurfaceVariant, maxLines = 1, overflow = TextOverflow.Ellipsis,
- )
- if (t.newerCommitPushed) Text(stringResource(R.string.upd_newer_commit_short), fontSize = 12.sp, color = AttentionAmber, maxLines = 1, overflow = TextOverflow.Ellipsis)
+ RadioDot(selected, 20.dp)
+ }
+ AnimatedVisibility(selected, enter = expandVertically(Motion.sp(1f)) + fadeIn(Motion.sp(1f)), exit = shrinkVertically(Motion.sp(1f)) + fadeOut(Motion.sp(1f))) {
+ status(true)
}
- RadioDot(selected, 20.dp)
}
}
diff --git a/app/src/main/java/com/droiddeck/launcher/wayland/CompositorHost.kt b/app/src/main/java/com/droiddeck/launcher/wayland/CompositorHost.kt
index d9d2eb111f..d193c2b025 100644
--- a/app/src/main/java/com/droiddeck/launcher/wayland/CompositorHost.kt
+++ b/app/src/main/java/com/droiddeck/launcher/wayland/CompositorHost.kt
@@ -67,13 +67,14 @@ object CompositorHost {
outputHeight: Int,
refreshHz: Float,
fpsLimit: Int,
+ layerFpsLimit: Int = fpsLimit,
): Boolean {
WaylandCompositor.nativeSetClockControl(java.io.File(context.filesDir, "${com.droiddeck.launcher.runtime.LinuxRuntime.DIR}/tmp/.dd-clock").path)
ownVsyncThread = SessionPrefs.vsyncThread(context)
WaylandCompositor.nativeSetRenderOnCommit(SessionPrefs.renderOnCommit(context))
blackFrameInsertion = SessionPrefs.blackFrameInsertion(context)
WaylandCompositor.nativeSetBlackFrameInsertion(blackFrameInsertion)
- pace(refreshHz, fpsLimit)
+ pace(refreshHz, fpsLimit, layerFpsLimit)
if (!SessionState.running) WaylandCompositor.nativeSetOutputSize(outputWidth, outputHeight)
if (started) {
attached = surface
@@ -95,23 +96,23 @@ object CompositorHost {
private var blackFrameInsertion = false
private var pictureHolds = 0
- private fun pace(refreshHz: Float, fpsLimit: Int) {
+ private fun pace(refreshHz: Float, fpsLimit: Int, layerFpsLimit: Int) {
WaylandCompositor.nativeSetFpsLimit(fpsLimit)
- WaylandCompositor.nativeSetLayerFrameRate(if (fpsLimit > 0 && !blackFrameInsertion) fpsLimit.toFloat() else refreshHz)
+ WaylandCompositor.nativeSetLayerFrameRate(SessionPrefs.layerFrameRate(layerFpsLimit, refreshHz, blackFrameInsertion))
WaylandCompositor.nativeSetOutputRefreshRate(refreshHz)
SessionState.refreshHz = refreshHz
}
@Synchronized
- fun updatePacing(refreshHz: Float, fpsLimit: Int) {
- if (started) pace(refreshHz, fpsLimit)
+ fun updatePacing(refreshHz: Float, fpsLimit: Int, layerFpsLimit: Int = fpsLimit) {
+ if (started) pace(refreshHz, fpsLimit, layerFpsLimit)
}
@Synchronized
- fun setBlackFrameInsertion(on: Boolean, refreshHz: Float, fpsLimit: Int) {
+ fun setBlackFrameInsertion(on: Boolean, refreshHz: Float, fpsLimit: Int, layerFpsLimit: Int = fpsLimit) {
blackFrameInsertion = on
WaylandCompositor.nativeSetBlackFrameInsertion(on)
- if (started) pace(refreshHz, fpsLimit)
+ if (started) pace(refreshHz, fpsLimit, layerFpsLimit)
}
/** Presents only pictures until the matching release; false when nothing is strobing. */
diff --git a/app/src/main/java/com/droiddeck/launcher/wayland/WaylandCompositor.java b/app/src/main/java/com/droiddeck/launcher/wayland/WaylandCompositor.java
index 2cc0ecd638..a2676304d9 100644
--- a/app/src/main/java/com/droiddeck/launcher/wayland/WaylandCompositor.java
+++ b/app/src/main/java/com/droiddeck/launcher/wayland/WaylandCompositor.java
@@ -333,6 +333,8 @@ public final class WaylandCompositor {
public static native void nativeSetZeroCopy(boolean on);
+ public static native void nativeSetMirrorCapture(boolean on);
+
public static native void nativeSetDisplayBufferDriver(boolean on);
public static native int nativeZeroCopyFrames();
diff --git a/app/src/main/res/color/wireless_pairing_key_text.xml b/app/src/main/res/color/wireless_pairing_key_text.xml
new file mode 100644
index 0000000000..62b63fbefb
--- /dev/null
+++ b/app/src/main/res/color/wireless_pairing_key_text.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/app/src/main/res/drawable/wireless_pairing_key.xml b/app/src/main/res/drawable/wireless_pairing_key.xml
new file mode 100644
index 0000000000..51bffe4ff2
--- /dev/null
+++ b/app/src/main/res/drawable/wireless_pairing_key.xml
@@ -0,0 +1,15 @@
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
diff --git a/app/src/main/res/drawable/wireless_pairing_panel.xml b/app/src/main/res/drawable/wireless_pairing_panel.xml
new file mode 100644
index 0000000000..4e88b9b826
--- /dev/null
+++ b/app/src/main/res/drawable/wireless_pairing_panel.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/app/src/main/res/layout/wireless_pairing_keypad.xml b/app/src/main/res/layout/wireless_pairing_keypad.xml
new file mode 100644
index 0000000000..159a4e75fd
--- /dev/null
+++ b/app/src/main/res/layout/wireless_pairing_keypad.xml
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/values-ar/strings.xml b/app/src/main/res/values-ar/strings.xml
index ea85ca5c12..84fc3b2afd 100644
--- a/app/src/main/res/values-ar/strings.xml
+++ b/app/src/main/res/values-ar/strings.xml
@@ -891,7 +891,6 @@
تضمين بيانات تشخيص Proton وWine والرسومات عند تشغيل اللعبة التالية. قد يقلّل الأداء ويستهلك مساحة تخزين أكبر.
أعِد تشغيل هذه الجلسة لحفظ سجلات تصحيح الألعاب
تعذّر تحديث التسجيل. تحقّق من المفتاح وحاول مرة أخرى.
- أدوات تصحيح الأخطاء
سجلات رسوميات مفصلة
واجهة Steam: الرسم عبر GPU
مع زوج مشغّلات Xclipse، ترسم Steam صفحاتها برمجيًا (أظهر الرسم عبر GPU مربعات مشوهة). شغّله للحصول على واجهة Steam أسرع إذا بدت الصورة سليمة على هذا الهاتف.
@@ -1180,6 +1179,11 @@
أدوات الوكيل غير مثبتة: %1$s
لا تُرسل
إرفاق
+ الملفات
+ السماح بالوصول إلى الصور
+ اختيار المزيد من الصور
+ لا توجد صور بعد
+ لوحة المفاتيح
إزالة
الافتراضي
جهد الاستدلال
@@ -1332,6 +1336,31 @@
حجم الأزرار
عصي تكيّفية
اهتزاز اللعبة
+ Redmagic Air Triggers
+ فتح
+ استخدام Air Triggers
+ يشغّل أزرار الكتف دون لوحة الأزرار أو العلامات من RedMagic، وتضغط بدلاً من ذلك أزرار تخطيط اللمس.
+ Air Trigger الأيسر
+ Air Trigger الأيمن
+ محفوظ لهذا التخطيط
+ الاهتزاز
+ يهتز عند لمس Air Trigger
+ تأثير الإضاءة على الشاشة
+ يضيء حافة الشاشة أسفل Air Trigger عند لمسه
+ تأثيرات إضاءة LED عند اللمس
+ إيقاف
+ ثابت
+ نبض
+ إجراء Air Trigger الأيسر
+ إجراء Air Trigger الأيمن
+ نقرة واحدة
+ ضغط مطوّل
+ إطلاق سريع
+ إعدادات الإطلاق السريع
+ معدل النقر
+ منخفض
+ عادي
+ مرتفع
المنطقة الميتة لعصا التحكم
زر Steam
زر QAM
@@ -2389,7 +2418,6 @@
فعِّل تصحيح الأخطاء اللاسلكي، ثم اضغط على «إقران الجهاز برمز الإقران».
فعِّل تصحيح الأخطاء اللاسلكي، ثم اضغط على «إقران الجهاز برمز الإقران». ابقَ في الإعدادات: يُكتب الرمز في هذا الإشعار.
رمز الإقران المكوَّن من 6 أرقام
- اضغط على «إدخال الرمز» وأدخِل الأرقام الستة الظاهرة في الإعدادات.
أدخِل رمز إقران Wi-Fi
أعِد تجربة الرمز
إدخال الرمز
@@ -2416,7 +2444,8 @@
جارٍ تنزيل عميل Steam · %1$s
يوجد تثبيت لأداة توافق قيد التنفيذ بالفعل
أوقِف الجلسة النشطة قبل تثبيت أدوات التوافق
- تعذّر العثور على إصدار ARM64 لـ %1$s
+ تعذّر العثور على إصدار %2$s لـ %1$s
+ مكافحة الغش
يلزم توفُّر 4 GB على الأقل بالإضافة إلى حجم التنزيل لتثبيت %1$s
جارٍ تنزيل %1$s %2$s
جارٍ إعادة محاولة التنزيل · المحاولة %1$d من %2$d
@@ -4325,4 +4354,6 @@
اختصار داخل اللعبة
إظهار اختصار النظارات الذكية
إظهار زر النظارات الذكية العائم فوق اللعبة.
+ استخدام ملف تعريف %1$s: %2$s
+ استخدام الملف التعريفي الافتراضي: %1$s
diff --git a/app/src/main/res/values-b+es+419/strings.xml b/app/src/main/res/values-b+es+419/strings.xml
index 12254b5715..eeae44f24d 100644
--- a/app/src/main/res/values-b+es+419/strings.xml
+++ b/app/src/main/res/values-b+es+419/strings.xml
@@ -909,7 +909,6 @@
Incluye diagnósticos de Proton, Wine y gráficos en el próximo inicio de un juego. Puede reducir el rendimiento y usar más almacenamiento.
Reinicia esta sesión para guardar los registros de depuración de juegos
No se pudo actualizar el registro. Revisa el interruptor e inténtalo de nuevo.
- Herramientas de depuración
Registros detallados de gráficos
Interfaz de Steam: dibujo con GPU
Con el par de controladores Xclipse, Steam dibuja sus páginas por software (el dibujo con GPU mostraba mosaicos con errores). Actívalo para una interfaz de Steam más rápida si se ve bien en este teléfono.
@@ -1198,6 +1197,11 @@
Herramientas del agente sin instalar: %1$s
No enviar
Adjuntar
+ Archivos
+ Permitir acceso a fotos
+ Elegir más fotos
+ Aún no hay fotos
+ Teclado
Quitar
Predeterminado
Esfuerzo de razonamiento
@@ -1338,6 +1342,31 @@
Tamaño de botones
Sticks adaptables
Vibración en juegos
+ Redmagic Air Triggers
+ Abrir
+ Usar los Air Triggers
+ Activa los gatillos de hombro sin el panel ni los marcadores de RedMagic. En su lugar, presionan botones de la disposición táctil.
+ Air Trigger izquierdo
+ Air Trigger derecho
+ Se guarda para esta disposición
+ Vibración
+ Vibra al tocar un Air Trigger
+ Efecto de luz en pantalla
+ Ilumina el borde de la pantalla debajo de un Air Trigger al tocarlo
+ Efectos LED de ambiente al tocar
+ Apagado
+ Fijo
+ Pulso
+ Acción del Air Trigger izquierdo
+ Acción del Air Trigger derecho
+ Toque único
+ Mantener presionado
+ Disparo rápido
+ Configuración de disparo rápido
+ Frecuencia de clics
+ Baja
+ Normal
+ Alta
Zona muerta de la palanca
Botón Steam
Botón QAM
@@ -2381,7 +2410,6 @@
Activa la Depuración inalámbrica y toca “Vincular dispositivo con código de vinculación”.
Activa la Depuración inalámbrica y toca “Vincular dispositivo con código de vinculación”. Quédate en Ajustes: el código se ingresa en esta notificación.
Código de vinculación de 6 dígitos
- Toca Ingresar código y escribe los 6 dígitos que muestra Ajustes.
Ingresa el código de vinculación Wi-Fi
Vuelve a probar el código
Ingresar código
@@ -2408,7 +2436,8 @@
Descargando el cliente de Steam · %1$s
Ya se está instalando una herramienta de compatibilidad
Detén la sesión activa antes de instalar herramientas de compatibilidad
- No se encontró una versión ARM64 de %1$s
+ No se encontró una versión %2$s de %1$s
+ Antitrampas
Para instalar %1$s se necesitan al menos 4 GB libres más el tamaño de la descarga
Descargando %1$s %2$s
Reintentando la descarga · intento %1$d de %2$d
@@ -4203,4 +4232,6 @@
Acceso directo en el juego
Mostrar acceso directo de Smart Glasses
Mostrar el botón flotante de Smart Glasses sobre el juego.
+ Usando el perfil %1$s: %2$s
+ Usando el perfil predeterminado: %1$s
diff --git a/app/src/main/res/values-bg/strings.xml b/app/src/main/res/values-bg/strings.xml
index bb4ff12581..c534d118b4 100644
--- a/app/src/main/res/values-bg/strings.xml
+++ b/app/src/main/res/values-bg/strings.xml
@@ -879,7 +879,6 @@
Включва диагностика на Proton, Wine и графиката при следващото стартиране на игра. Може да намали производителността и да заеме повече място.
Рестартирайте тази сесия, за да запазите дневниците за дебъгване на игри
Записването в дневник не можа да бъде променено. Проверете превключвателя и опитайте пак.
- Инструменти за отстраняване на грешки
Подробни дневници за графиката
Интерфейс на Steam: изрисуване чрез GPU
При двойката драйвери Xclipse Steam изрисува страниците си софтуерно (изрисуването чрез GPU даваше разбити плочки). Включи за по-бърз интерфейс на Steam, ако изглежда правилно на този телефон.
@@ -1168,6 +1167,11 @@
Инструментите на агента не са инсталирани: %1$s
Не изпращай
Прикачи
+ Файлове
+ Разрешаване на достъп до снимки
+ Избор на още снимки
+ Все още няма снимки
+ Клавиатура
Премахни
По подразбиране
Усилие за разсъждение
@@ -1304,6 +1308,31 @@
Размер на бутоните
Адаптивни стикове
Вибрация от играта
+ Redmagic Air Triggers
+ Отвори
+ Използвай Air Triggers
+ Включва раменните спусъци без панела и маркерите на RedMagic. Вместо това те натискат бутони от сензорното разположение.
+ Ляв Air Trigger
+ Десен Air Trigger
+ Запазва се за това разположение
+ Вибрация
+ Вибрира при докосване на Air Trigger
+ Светлинен ефект на екрана
+ Осветява ръба на екрана под Air Trigger при докосване
+ LED ефекти на атмосферата при докосване
+ Изключено
+ Постоянно
+ Пулсиране
+ Действие на левия Air Trigger
+ Действие на десния Air Trigger
+ Еднократно докосване
+ Продължително натискане
+ Бърза стрелба
+ Настройки за бърза стрелба
+ Честота на щракване
+ Ниска
+ Нормална
+ Висока
Мъртва зона на стика
Бутон Steam
Бутон QAM
@@ -2285,7 +2314,6 @@
Включи безжичното отстраняване на грешки, после докосни „Чифтосване на устройство с код за чифтосване“.
Включи безжичното отстраняване на грешки, после докосни „Чифтосване на устройство с код за чифтосване“. Остани в Настройки: кодът ще се появи в това известие.
6-цифрен код за чифтосване
- Докосни „Въвеждане на код“ и напиши 6-те цифри, показани в Настройки.
Въведи кода за чифтосване по Wi-Fi
Опитай кода отново
Въвеждане на код
@@ -2312,7 +2340,8 @@
Изтегляне на клиента на Steam · %1$s
Вече тече инсталация на инструмент за съвместимост
Спри активната сесия, преди да инсталираш инструменти за съвместимост
- Не беше намерена ARM64 версия на %1$s
+ Не беше намерена %2$s версия на %1$s
+ Анти-чийт
За инсталирането на %1$s са необходими поне 4 GB свободно място плюс размера на изтеглянето
Изтегляне на %1$s %2$s
Повторен опит за изтегляне · опит %1$d от %2$d
@@ -4165,4 +4194,6 @@
Пряк път в играта
Показване на прекия път за Smart Glasses
Показва плаващия бутон за Smart Glasses върху играта.
+ Използва се профил %1$s: %2$s
+ Използва се профилът по подразбиране: %1$s
diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml
index 02d5c6d00d..d6215c068f 100644
--- a/app/src/main/res/values-cs/strings.xml
+++ b/app/src/main/res/values-cs/strings.xml
@@ -885,7 +885,6 @@
Při dalším spuštění hry zahrnout diagnostiku Protonu, Wine a grafiky. Může snížit výkon a zabrat více úložiště.
Pro ukládání ladicích protokolů her restartujte tuto relaci
Protokolování se nepodařilo změnit. Zkontrolujte přepínač a zkuste to znovu.
- Nástroje pro ladění
Podrobné protokoly grafiky
Rozhraní Steam: vykreslování na GPU
S párem ovladačů Xclipse vykresluje Steam své stránky softwarově (vykreslování na GPU zobrazovalo poškozené dlaždice). Pokud na tomto telefonu vypadá správně, zapněte tuto možnost pro rychlejší rozhraní Steam.
@@ -1174,6 +1173,11 @@
Nástroje agenta nejsou nainstalované: %1$s
Neposílat
Přiložit
+ Soubory
+ Povolit přístup k fotkám
+ Vybrat další fotky
+ Zatím žádné fotky
+ Klávesnice
Odebrat
Výchozí
Náročnost uvažování
@@ -1318,6 +1322,31 @@
Velikost tlačítek
Adaptivní páčky
Vibrace ve hře
+ Redmagic Air Triggers
+ Otevřít
+ Používat Air Triggers
+ Zapne ramenní triggery bez panelu a značek RedMagic. Místo toho mačkají tlačítka dotykového rozložení.
+ Levý Air Trigger
+ Pravý Air Trigger
+ Uloženo pro toto rozložení
+ Vibrace
+ Při dotyku Air Triggeru zavibruje
+ Světelný efekt na obrazovce
+ Při dotyku rozsvítí okraj obrazovky pod Air Triggerem
+ LED efekty atmosféry při dotyku
+ Vypnuto
+ Stálé
+ Pulzování
+ Akce levého Air Triggeru
+ Akce pravého Air Triggeru
+ Jedno klepnutí
+ Dlouhé stisknutí
+ Rychlá palba
+ Nastavení rychlé palby
+ Frekvence kliknutí
+ Nízká
+ Normální
+ Vysoká
Mrtvá zóna páčky
Tlačítko Steam
Tlačítko QAM
@@ -2337,7 +2366,6 @@
Zapněte bezdrátové ladění a pak klepněte na „Párování zařízení pomocí párovacího kódu“.
Zapněte bezdrátové ladění a pak klepněte na „Párování zařízení pomocí párovacího kódu“. Zůstaňte v Nastavení: kód se zobrazí v tomto oznámení.
6místný párovací kód
- Klepněte na Zadat kód a napište 6 číslic zobrazených v Nastavení.
Zadejte párovací kód Wi-Fi
Zkusit kód znovu
Zadat kód
@@ -2364,7 +2392,8 @@
Stahování klienta Steam · %1$s
Instalace nástroje kompatibility už běží
Před instalací nástrojů kompatibility zastavte aktivní relaci
- Nepodařilo se najít vydání ARM64 pro %1$s
+ Nepodařilo se najít vydání %2$s pro %1$s
+ Anti-cheat
Pro instalaci %1$s je potřeba alespoň 4 GB volného místa navíc k velikosti stahování
Stahování %1$s %2$s
Opakování stahování · pokus %1$d z %2$d
@@ -4245,4 +4274,6 @@
Zkratka ve hře
Zobrazit zkratku Smart Glasses
Zobrazit plovoucí tlačítko Smart Glasses nad hrou.
+ Používá se profil %1$s: %2$s
+ Používá se výchozí profil: %1$s
diff --git a/app/src/main/res/values-da/strings.xml b/app/src/main/res/values-da/strings.xml
index f3383e6768..044fc5e95e 100644
--- a/app/src/main/res/values-da/strings.xml
+++ b/app/src/main/res/values-da/strings.xml
@@ -879,7 +879,6 @@
Medtag Proton-, Wine- og grafikdiagnostik ved næste spilstart. Kan reducere ydelsen og bruge mere lagerplads.
Genstart denne session for at gemme fejlfindingslogs for spil
Kunne ikke opdatere logning. Tjek kontakten, og prøv igen.
- Fejlfindingsværktøjer
Detaljerede grafiklogfiler
Steam-brugerflade: GPU-tegning
Med Xclipse-driverparret tegner Steam sine sider i software (GPU-tegning gav ødelagte fliser). Slå til for en hurtigere Steam-brugerflade, hvis det ser rigtigt ud på denne telefon.
@@ -1168,6 +1167,11 @@
Agentens værktøjer er ikke installeret: %1$s
Send ikke
Vedhæft
+ Filer
+ Tillad adgang til billeder
+ Vælg flere billeder
+ Ingen billeder endnu
+ Tastatur
Fjern
Standard
Ræsonneringsindsats
@@ -1304,6 +1308,31 @@
Knapstørrelse
Adaptive styrepinde
Spilvibration
+ Redmagic Air Triggers
+ Åbn
+ Brug Air Triggers
+ Tænder skuldertriggerne uden RedMagics triggerpanel eller markører. De trykker i stedet på knapper i touch-layoutet.
+ Venstre Air Trigger
+ Højre Air Trigger
+ Gemt for dette layout
+ Vibration
+ Vibrerer, når en Air Trigger berøres
+ Lyseffekt på skærmen
+ Lyser skærmkanten op under en Air Trigger, når den berøres
+ LED-stemningseffekter ved berøring
+ Fra
+ Konstant
+ Puls
+ Handling for venstre Air Trigger
+ Handling for højre Air Trigger
+ Enkelt tryk
+ Langt tryk
+ Hurtig affyring
+ Indstillinger for hurtig affyring
+ Klikfrekvens
+ Lav
+ Normal
+ Høj
Dødzone for styrepind
Steam-knap
QAM-knap
@@ -2285,7 +2314,6 @@
Tænd Trådløs fejlretning, og tryk derefter på „Par enhed med parringskode“.
Tænd Trådløs fejlretning, og tryk derefter på „Par enhed med parringskode“. Bliv i Indstillinger: koden vises i denne notifikation.
6-cifret parringskode
- Tryk på Indtast kode, og skriv de 6 cifre, der vises i Indstillinger.
Indtast Wi-Fi-parringskoden
Forsøg koden igen
Indtast kode
@@ -2312,7 +2340,8 @@
Downloader Steam-klienten · %1$s
En installation af et kompatibilitetsværktøj er allerede i gang
Stop den aktive session, før du installerer kompatibilitetsværktøjer
- Kunne ikke finde en ARM64-udgivelse af %1$s
+ Kunne ikke finde en %2$s-udgivelse af %1$s
+ Anti-cheat
Mindst 4 GB ledig plads plus downloadets størrelse er nødvendig for at installere %1$s
Downloader %1$s %2$s
Forsøger download igen · forsøg %1$d af %2$d
@@ -4165,4 +4194,6 @@
Genvej i spillet
Vis Smart Glasses-genvej
Vis den flydende Smart Glasses-knap oven på spillet.
+ Bruger profilen %1$s: %2$s
+ Bruger standardprofilen: %1$s
diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml
index ce45ef01d4..98c0f73cf9 100644
--- a/app/src/main/res/values-de/strings.xml
+++ b/app/src/main/res/values-de/strings.xml
@@ -879,7 +879,6 @@
Beim nächsten Spielstart Diagnosen von Proton, Wine und Grafik einschließen. Kann die Leistung mindern und mehr Speicher belegen.
Starte diese Sitzung neu, um Spiel-Debug-Logs zu speichern
Protokollierung konnte nicht aktualisiert werden. Prüfe den Schalter und versuch es erneut.
- Debugging-Tools
Detaillierte Grafik-Protokolle
Steam-Oberfläche: Zeichnen mit der GPU
Mit dem Xclipse-Treiberpaar zeichnet Steam seine Seiten per Software (Zeichnen mit der GPU zeigte fehlerhafte Kacheln). Für eine schnellere Steam-Oberfläche einschalten, wenn die Darstellung auf diesem Telefon stimmt.
@@ -1160,6 +1159,11 @@
Agent-Werkzeuge nicht installiert: %1$s
Nicht senden
Anhängen
+ Dateien
+ Zugriff auf Fotos erlauben
+ Weitere Fotos auswählen
+ Noch keine Fotos
+ Tastatur
Entfernen
Standard
Denkaufwand
@@ -1296,6 +1300,31 @@
Tastengröße
Adaptive Sticks
Spielvibration
+ Redmagic Air Triggers
+ Öffnen
+ Air Triggers verwenden
+ Schaltet die Schultertrigger ohne das Trigger-Panel und die Markierungen von RedMagic ein. Sie drücken stattdessen Tasten des Touch-Layouts.
+ Linker Air Trigger
+ Rechter Air Trigger
+ Für dieses Layout gespeichert
+ Vibration
+ Vibriert, wenn ein Air Trigger berührt wird
+ Lichteffekt auf dem Bildschirm
+ Lässt den Bildschirmrand unter einem Air Trigger aufleuchten, wenn er berührt wird
+ LED-Atmosphäreneffekte bei Berührung
+ Aus
+ Dauerhaft
+ Pulsieren
+ Aktion des linken Air Triggers
+ Aktion des rechten Air Triggers
+ Einmal tippen
+ Lange drücken
+ Dauerfeuer
+ Dauerfeuer-Einstellungen
+ Klickfrequenz
+ Niedrig
+ Normal
+ Hoch
Stick-Totzone
Steam-Taste
QAM-Taste
@@ -2277,7 +2306,6 @@
Aktiviere Debugging über WLAN und tippe dann auf „Gerät mit Kopplungscode koppeln“.
Aktiviere Debugging über WLAN und tippe dann auf „Gerät mit Kopplungscode koppeln“. Bleib in den Einstellungen: Der Code wird in dieser Benachrichtigung eingegeben.
6-stelliger Kopplungscode
- Tippe auf „Code eingeben“ und gib die 6 Ziffern aus den Einstellungen ein.
WLAN-Kopplungscode eingeben
Code noch einmal eingeben
Code eingeben
@@ -2304,7 +2332,8 @@
Steam-Client wird heruntergeladen · %1$s
Es läuft bereits die Installation eines Kompatibilitätstools
Beende die aktive Sitzung, bevor du Kompatibilitätstools installierst
- Kein ARM64-Release für %1$s gefunden
+ Kein %2$s-Release für %1$s gefunden
+ Anti-Cheat
Zum Installieren von %1$s werden mindestens 4 GB freier Speicherplatz plus die Downloadgröße benötigt
%1$s %2$s wird heruntergeladen
Download wird wiederholt · Versuch %1$d von %2$d
@@ -4165,4 +4194,6 @@
Ingame-Verknüpfung
Smart-Glasses-Verknüpfung anzeigen
Die schwebende Smart-Glasses-Schaltfläche über dem Spiel anzeigen.
+ Profil %1$s wird verwendet: %2$s
+ Standardprofil wird verwendet: %1$s
diff --git a/app/src/main/res/values-el/strings.xml b/app/src/main/res/values-el/strings.xml
index 7205dd9940..e4b272d302 100644
--- a/app/src/main/res/values-el/strings.xml
+++ b/app/src/main/res/values-el/strings.xml
@@ -879,7 +879,6 @@
Συμπερίληψη διαγνωστικών Proton, Wine και γραφικών στην επόμενη εκκίνηση παιχνιδιού. Μπορεί να μειώσει την απόδοση και να χρησιμοποιήσει περισσότερο χώρο.
Επανεκκινήστε αυτή τη συνεδρία για να αποθηκεύσετε αρχεία καταγραφής εντοπισμού σφαλμάτων παιχνιδιών
Δεν ήταν δυνατή η ενημέρωση της καταγραφής. Ελέγξτε τον διακόπτη και δοκιμάστε ξανά.
- Εργαλεία εντοπισμού σφαλμάτων
Λεπτομερή αρχεία καταγραφής γραφικών
Διεπαφή Steam: σχεδίαση με GPU
Με το ζεύγος προγραμμάτων οδήγησης Xclipse, το Steam σχεδιάζει τις σελίδες του μέσω λογισμικού (η σχεδίαση με GPU εμφάνιζε σπασμένα πλακίδια). Ενεργοποιήστε το για ταχύτερη διεπαφή Steam, αν φαίνεται σωστή σε αυτό το τηλέφωνο.
@@ -1168,6 +1167,11 @@
Τα εργαλεία του πράκτορα δεν εγκαταστάθηκαν: %1$s
Να μην σταλεί
Επισύναψη
+ Αρχεία
+ Να επιτρέπεται η πρόσβαση στις φωτογραφίες
+ Επιλογή περισσότερων φωτογραφιών
+ Δεν υπάρχουν φωτογραφίες ακόμα
+ Πληκτρολόγιο
Αφαίρεση
Προεπιλογή
Προσπάθεια συλλογισμού
@@ -1304,6 +1308,31 @@
Μέγεθος κουμπιών
Προσαρμοστικοί μοχλοί
Κραδασμός παιχνιδιού
+ Redmagic Air Triggers
+ Άνοιγμα
+ Χρήση Air Triggers
+ Ενεργοποιεί τις σκανδάλες ώμου χωρίς τον πίνακα ή τους δείκτες του RedMagic. Αντί γι\' αυτό πατούν κουμπιά της διάταξης αφής.
+ Αριστερό Air Trigger
+ Δεξί Air Trigger
+ Αποθηκεύεται για αυτή τη διάταξη
+ Δόνηση
+ Δονείται όταν αγγίζετε ένα Air Trigger
+ Εφέ φωτισμού οθόνης
+ Φωτίζει την άκρη της οθόνης κάτω από ένα Air Trigger όταν το αγγίζετε
+ Εφέ ατμόσφαιρας LED με την αφή
+ Ανενεργό
+ Σταθερό
+ Παλμός
+ Ενέργεια αριστερού Air Trigger
+ Ενέργεια δεξιού Air Trigger
+ Μονό πάτημα
+ Παρατεταμένο πάτημα
+ Ταχεία βολή
+ Ρυθμίσεις ταχείας βολής
+ Συχνότητα κλικ
+ Χαμηλή
+ Κανονική
+ Υψηλή
Νεκρή ζώνη μοχλού
Κουμπί Steam
Κουμπί QAM
@@ -2285,7 +2314,6 @@
Ενεργοποιήστε τον ασύρματο εντοπισμό σφαλμάτων και πατήστε «Σύζευξη συσκευής με κωδικό σύζευξης».
Ενεργοποιήστε τον ασύρματο εντοπισμό σφαλμάτων και πατήστε «Σύζευξη συσκευής με κωδικό σύζευξης». Παραμείνετε στις Ρυθμίσεις: ο κωδικός εμφανίζεται σε αυτή την ειδοποίηση.
Εξαψήφιος κωδικός σύζευξης
- Πατήστε Εισαγωγή κωδικού και πληκτρολογήστε τα 6 ψηφία που εμφανίζονται στις Ρυθμίσεις.
Εισαγάγετε τον κωδικό σύζευξης Wi-Fi
Δοκιμάστε ξανά τον κωδικό
Εισαγωγή κωδικού
@@ -2312,7 +2340,8 @@
Λήψη του πελάτη Steam · %1$s
Μια εγκατάσταση εργαλείου συμβατότητας εκτελείται ήδη
Διακόψτε την ενεργή συνεδρία πριν εγκαταστήσετε εργαλεία συμβατότητας
- Δεν βρέθηκε κυκλοφορία ARM64 για το %1$s
+ Δεν βρέθηκε κυκλοφορία %2$s για το %1$s
+ Anti-cheat
Απαιτούνται τουλάχιστον 4 GB ελεύθερα συν το μέγεθος της λήψης για να εγκατασταθεί το %1$s
Λήψη %1$s %2$s
Επανάληψη λήψης · προσπάθεια %1$d από %2$d
@@ -4165,4 +4194,6 @@
Συντόμευση μέσα στο παιχνίδι
Εμφάνιση συντόμευσης Smart Glasses
Εμφάνιση του αιωρούμενου κουμπιού Smart Glasses πάνω από το παιχνίδι.
+ Χρήση προφίλ %1$s: %2$s
+ Χρήση προεπιλεγμένου προφίλ: %1$s
diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml
index 71e10bdab3..0e347c900f 100644
--- a/app/src/main/res/values-es/strings.xml
+++ b/app/src/main/res/values-es/strings.xml
@@ -882,7 +882,6 @@
Incluye diagnósticos de Proton, Wine y gráficos en el próximo inicio de un juego. Puede reducir el rendimiento y usar más almacenamiento.
Reinicia esta sesión para guardar los registros de depuración de juegos
No se ha podido actualizar el registro. Comprueba el interruptor y vuelve a intentarlo.
- Herramientas de depuración
Registros detallados de gráficos
Interfaz de Steam: dibujo con GPU
Con el par de controladores Xclipse, Steam dibuja sus páginas por software (el dibujo con GPU mostraba teselas corruptas). Activa esta opción para una interfaz de Steam más rápida si se ve bien en este teléfono.
@@ -1171,6 +1170,11 @@
Herramientas del agente sin instalar: %1$s
No enviar
Adjuntar
+ Archivos
+ Permitir acceso a las fotos
+ Elegir más fotos
+ Aún no hay fotos
+ Teclado
Quitar
Predeterminado
Esfuerzo de razonamiento
@@ -1311,6 +1315,31 @@
Tamaño de botones
Sticks adaptables
Vibración en juegos
+ Redmagic Air Triggers
+ Abrir
+ Usar los Air Triggers
+ Activa los gatillos de hombro sin el panel ni los marcadores de RedMagic. En su lugar, pulsan botones de la disposición táctil.
+ Air Trigger izquierdo
+ Air Trigger derecho
+ Se guarda para esta disposición
+ Vibración
+ Vibra al tocar un Air Trigger
+ Efecto de luz en pantalla
+ Ilumina el borde de la pantalla debajo de un Air Trigger al tocarlo
+ Efectos LED de ambiente al tocar
+ Apagado
+ Fijo
+ Pulso
+ Acción del Air Trigger izquierdo
+ Acción del Air Trigger derecho
+ Toque único
+ Mantener pulsado
+ Disparo rápido
+ Ajustes de disparo rápido
+ Frecuencia de clics
+ Baja
+ Normal
+ Alta
Zona muerta de la palanca
Botón Steam
Botón QAM
@@ -2311,7 +2340,6 @@
Activa la Depuración inalámbrica y toca “Vincular dispositivo con código de vinculación”.
Activa la Depuración inalámbrica y toca “Vincular dispositivo con código de vinculación”. Quédate en Ajustes: el código se introduce en esta notificación.
Código de vinculación de 6 dígitos
- Toca Introducir código y escribe los 6 dígitos que muestra Ajustes.
Introduce el código de vinculación Wi-Fi
Vuelve a probar el código
Introducir código
@@ -2338,7 +2366,8 @@
Descargando el cliente de Steam · %1$s
Ya se está instalando una herramienta de compatibilidad
Detén la sesión activa antes de instalar herramientas de compatibilidad
- No se encontró una versión ARM64 de %1$s
+ No se encontró una versión %2$s de %1$s
+ Antitrampas
Para instalar %1$s se necesitan al menos 4 GB libres más el tamaño de la descarga
Descargando %1$s %2$s
Reintentando la descarga · intento %1$d de %2$d
@@ -4205,4 +4234,6 @@
Acceso directo en el juego
Mostrar acceso directo de Smart Glasses
Mostrar el botón flotante de Smart Glasses sobre el juego.
+ Usando el perfil %1$s: %2$s
+ Usando el perfil predeterminado: %1$s
diff --git a/app/src/main/res/values-fi/strings.xml b/app/src/main/res/values-fi/strings.xml
index 464e2576be..d9b1fa8e29 100644
--- a/app/src/main/res/values-fi/strings.xml
+++ b/app/src/main/res/values-fi/strings.xml
@@ -879,7 +879,6 @@
Sisällytä Protonin, Winen ja grafiikan diagnostiikka seuraavaan pelin käynnistykseen. Voi heikentää suorituskykyä ja käyttää enemmän tallennustilaa.
Käynnistä tämä istunto uudelleen tallentaaksesi pelien vianmäärityslokit
Lokitusta ei voitu päivittää. Tarkista kytkin ja yritä uudelleen.
- Vianmääritystyökalut
Yksityiskohtaiset grafiikkalokit
Steam-käyttöliittymä: GPU-piirto
Xclipse-ajuriparin kanssa Steam piirtää sivunsa ohjelmistollisesti (GPU-piirto näytti rikkinäisiä laattoja). Ota käyttöön nopeampaa Steam-käyttöliittymää varten, jos käyttöliittymä näyttää tässä puhelimessa virheettömältä.
@@ -1168,6 +1167,11 @@
Agentin työkaluja ei ole asennettu: %1$s
Älä lähetä
Liitä
+ Tiedostot
+ Salli kuvien käyttö
+ Valitse lisää kuvia
+ Ei vielä kuvia
+ Näppäimistö
Poista
Oletus
Päättelyteho
@@ -1304,6 +1308,31 @@
Painikkeiden koko
Mukautuvat sauvat
Pelin tärinä
+ Redmagic Air Triggers
+ Avaa
+ Käytä Air Triggereitä
+ Ottaa olkaliipaisimet käyttöön ilman RedMagicin liipaisinpaneelia tai merkkejä. Ne painavat sen sijaan kosketusasettelun painikkeita.
+ Vasen Air Trigger
+ Oikea Air Trigger
+ Tallennetaan tälle asettelulle
+ Värinä
+ Värisee, kun Air Triggeriä kosketetaan
+ Näytön valoefekti
+ Valaisee näytön reunan Air Triggerin alla, kun sitä kosketetaan
+ Kosketuksen tunnelma-LED-efektit
+ Pois
+ Tasainen
+ Sykkivä
+ Vasemman Air Triggerin toiminto
+ Oikean Air Triggerin toiminto
+ Yksi napautus
+ Pitkä painallus
+ Sarjatuli
+ Sarjatulen asetukset
+ Napsautustiheys
+ Matala
+ Normaali
+ Korkea
Ohjaussauvan kuollut alue
Steam-painike
QAM-painike
@@ -2285,7 +2314,6 @@
Ota langaton virheenkorjaus käyttöön ja napauta ”Yhdistä laite paritunnuksella”.
Ota langaton virheenkorjaus käyttöön ja napauta ”Yhdistä laite paritunnuksella”. Pysy Asetuksissa: koodi syötetään tähän ilmoitukseen.
6-numeroinen paritunnus
- Napauta Syötä koodi ja kirjoita Asetuksissa näkyvät 6 numeroa.
Anna Wi-Fi-paritunnus
Yritä koodia uudelleen
Syötä koodi
@@ -2312,7 +2340,8 @@
Ladataan Steam-asiakasohjelmaa · %1$s
Yhteensopivuustyökalun asennus on jo käynnissä
Pysäytä käynnissä oleva istunto ennen yhteensopivuustyökalujen asentamista
- ARM64-julkaisua kohteelle %1$s ei löytynyt
+ %2$s-julkaisua kohteelle %1$s ei löytynyt
+ Huijauksenesto
Kohteen %1$s asentaminen vaatii vähintään 4 GB vapaata tilaa latauksen koon lisäksi
Ladataan %1$s %2$s
Yritetään latausta uudelleen · yritys %1$d/%2$d
@@ -4165,4 +4194,6 @@
Pelin aikainen pikakuvake
Näytä Smart Glasses -pikakuvake
Näytä pelin päällä kelluva Smart Glasses -painike.
+ Käytössä profiili %1$s: %2$s
+ Käytössä oletusprofiili: %1$s
diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml
index 7c1c1ef44d..2a57e4bbe0 100644
--- a/app/src/main/res/values-fr/strings.xml
+++ b/app/src/main/res/values-fr/strings.xml
@@ -882,7 +882,6 @@
Inclure les diagnostics Proton, Wine et graphiques au prochain lancement d\'un jeu. Peut réduire les performances et utiliser plus de stockage.
Redémarrez cette session pour enregistrer les journaux de débogage des jeux
Impossible de modifier la journalisation. Vérifiez l\'interrupteur et réessayez.
- Outils de débogage
Journaux graphiques détaillés
Interface Steam : rendu GPU
Avec la paire de pilotes Xclipse, Steam dessine ses pages en logiciel : le rendu GPU produisait des tuiles corrompues. Activez cette option pour accélérer l\'interface Steam si l\'affichage est correct sur ce téléphone.
@@ -1171,6 +1170,11 @@
Outils de l’agent non installés : %1$s
Ne pas envoyer
Joindre
+ Fichiers
+ Autoriser l\'accès aux photos
+ Choisir d\'autres photos
+ Aucune photo pour l\'instant
+ Clavier
Supprimer
Par défaut
Effort de raisonnement
@@ -1310,6 +1314,31 @@
Taille des boutons
Joystick adaptatif
Vibration du jeu
+ Redmagic Air Triggers
+ Ouvrir
+ Utiliser les Air Triggers
+ Active les gâchettes d\'épaule sans le panneau ni les repères de RedMagic. Elles appuient à la place sur des boutons de la disposition tactile.
+ Air Trigger gauche
+ Air Trigger droit
+ Enregistré pour cette disposition
+ Vibration
+ Vibre quand un Air Trigger est touché
+ Effet lumineux à l\'écran
+ Illumine le bord de l\'écran sous un Air Trigger quand il est touché
+ Effets LED d\'ambiance au toucher
+ Désactivé
+ Fixe
+ Pulsation
+ Action de l\'Air Trigger gauche
+ Action de l\'Air Trigger droit
+ Appui simple
+ Appui long
+ Tir rapide
+ Réglages du tir rapide
+ Fréquence des clics
+ Faible
+ Normale
+ Élevée
Zone morte du stick
Bouton Steam
Bouton QAM
@@ -2310,7 +2339,6 @@
Activez le débogage sans fil, puis appuyez sur « Associer l\'appareil avec un code d\'appairage ».
Activez le débogage sans fil, puis appuyez sur « Associer l\'appareil avec un code d\'appairage ». Restez dans les paramètres : le code se saisit dans cette notification.
Code d\'appairage à 6 chiffres
- Appuyez sur « Saisir le code » et tapez les 6 chiffres affichés dans les paramètres.
Saisissez le code d\'appairage Wi-Fi
Saisissez à nouveau le code
Saisir le code
@@ -2337,7 +2365,8 @@
Téléchargement du client Steam · %1$s
Une installation d\'outil de compatibilité est déjà en cours
Arrêtez la session en cours avant d\'installer des outils de compatibilité
- Aucune version ARM64 trouvée pour %1$s
+ Aucune version %2$s trouvée pour %1$s
+ Anti-triche
Au moins 4 Go libres, plus la taille du téléchargement, sont nécessaires pour installer %1$s
Téléchargement de %1$s %2$s
Nouvelle tentative de téléchargement · essai %1$d sur %2$d
@@ -4204,4 +4233,6 @@
Raccourci en jeu
Afficher le raccourci Smart Glasses
Afficher le bouton flottant Smart Glasses par-dessus le jeu.
+ Profil %1$s utilisé : %2$s
+ Profil par défaut utilisé : %1$s
diff --git a/app/src/main/res/values-hi/strings.xml b/app/src/main/res/values-hi/strings.xml
index 281c5914d5..6666715301 100644
--- a/app/src/main/res/values-hi/strings.xml
+++ b/app/src/main/res/values-hi/strings.xml
@@ -879,7 +879,6 @@
अगली बार गेम लॉन्च होने पर Proton, Wine और ग्राफ़िक्स डायग्नोस्टिक्स शामिल करें। परफ़ॉर्मेंस घटा सकता है और ज़्यादा स्टोरेज ले सकता है।
गेम डीबग लॉग सेव करने के लिए यह सेशन रीस्टार्ट करें
लॉगिंग अपडेट नहीं हो सकी। स्विच जांचें और फिर कोशिश करें।
- डिबगिंग टूल
विस्तृत ग्राफ़िक्स लॉग
Steam इंटरफ़ेस: GPU ड्रॉइंग
Xclipse ड्राइवर जोड़ी के साथ, Steam अपने पेज सॉफ़्टवेयर से ड्रॉ करता है (GPU ड्रॉइंग में टाइलें टूटी हुई दिखीं)। अगर इस फ़ोन पर ठीक दिखे, तो तेज़ Steam इंटरफ़ेस के लिए इसे चालू करें।
@@ -1168,6 +1167,11 @@
एजेंट टूल इंस्टॉल नहीं हुए: %1$s
न भेजें
संलग्न करें
+ फ़ाइलें
+ फ़ोटो की अनुमति दें
+ और फ़ोटो चुनें
+ अभी कोई फ़ोटो नहीं
+ कीबोर्ड
हटाएँ
डिफ़ॉल्ट
सोचने का स्तर
@@ -1304,6 +1308,31 @@
बटन का आकार
एडैप्टिव स्टिक
गेम वाइब्रेशन
+ Redmagic Air Triggers
+ खोलें
+ Air Triggers इस्तेमाल करें
+ RedMagic के ट्रिगर पैनल या मार्कर के बिना शोल्डर ट्रिगर चालू करता है। इसके बजाय वे टच लेआउट के बटन दबाते हैं।
+ लेफ़्ट Air Trigger
+ राइट Air Trigger
+ इस लेआउट के लिए सहेजा गया
+ वाइब्रेशन
+ Air Trigger छूने पर वाइब्रेट करता है
+ स्क्रीन लाइट इफ़ेक्ट
+ Air Trigger छूने पर उसके नीचे स्क्रीन का किनारा रोशन करता है
+ टच एटमॉस्फ़ियर LED इफ़ेक्ट
+ बंद
+ स्थिर
+ पल्स
+ लेफ़्ट Air Trigger का ऐक्शन
+ राइट Air Trigger का ऐक्शन
+ सिंगल टैप
+ लॉन्ग प्रेस
+ रैपिड फ़ायर
+ रैपिड फ़ायर सेटिंग
+ क्लिक फ़्रीक्वेंसी
+ कम
+ सामान्य
+ ज़्यादा
स्टिक का डेड ज़ोन
Steam बटन
QAM बटन
@@ -2285,7 +2314,6 @@
वायरलेस डीबगिंग चालू करें, फिर “Pair device with pairing code” पर टैप करें।
वायरलेस डीबगिंग चालू करें, फिर “Pair device with pairing code” पर टैप करें। Settings में बने रहें: कोड इस नोटिफ़िकेशन में आता है।
6 अंकों का पेयरिंग कोड
- Enter code पर टैप करें और Settings में दिखाए गए 6 अंक टाइप करें।
Wi-Fi पेयरिंग कोड डालें
कोड फिर से आज़माएं
कोड डालें
@@ -2312,7 +2340,8 @@
Steam क्लाइंट डाउनलोड हो रहा है · %1$s
एक कम्पैटिबिलिटी टूल इंस्टॉल पहले से चल रहा है
कम्पैटिबिलिटी टूल इंस्टॉल करने से पहले चल रहा सेशन बंद करें
- %1$s के लिए कोई ARM64 रिलीज़ नहीं मिली
+ %1$s के लिए कोई %2$s रिलीज़ नहीं मिली
+ एंटी-चीट
%1$s इंस्टॉल करने के लिए कम से कम 4 GB खाली जगह और डाउनलोड आकार चाहिए
%1$s %2$s डाउनलोड हो रहा है
डाउनलोड फिर से कोशिश हो रहा है · %2$d में से %1$d प्रयास
@@ -4165,4 +4194,6 @@
गेम में शॉर्टकट
Smart Glasses शॉर्टकट दिखाएँ
गेम के ऊपर तैरता हुआ Smart Glasses बटन दिखाएँ।
+ %1$s प्रोफ़ाइल का उपयोग: %2$s
+ डिफ़ॉल्ट प्रोफ़ाइल का उपयोग: %1$s
diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml
index a74cef1df8..6187af98a0 100644
--- a/app/src/main/res/values-hu/strings.xml
+++ b/app/src/main/res/values-hu/strings.xml
@@ -879,7 +879,6 @@
Proton-, Wine- és grafikai diagnosztika a következő játékindításkor. Csökkentheti a teljesítményt, és több tárhelyet használ.
Indítsa újra ezt a munkamenetet a játék-hibakeresési naplók mentéséhez
Nem sikerült frissíteni a naplózást. Ellenőrizze a kapcsolót, és próbálja újra.
- Hibakeresési eszközök
Részletes grafikai naplók
Steam felület: GPU-rajzolás
Az Xclipse illesztőprogram-párral a Steam szoftveresen rajzolja az oldalait (a GPU-rajzolás hibás csempéket eredményezett). Kapcsolja be a gyorsabb Steam-felületért, ha ezen a telefonon jól néz ki.
@@ -1168,6 +1167,11 @@
Az ügynök eszközei nincsenek telepítve: %1$s
Ne küldd el
Csatolás
+ Fájlok
+ Fotókhoz való hozzáférés engedélyezése
+ További fotók kiválasztása
+ Még nincsenek fotók
+ Billentyűzet
Eltávolítás
Alapértelmezett
Gondolkodási erőfeszítés
@@ -1304,6 +1308,31 @@
Gombméret
Adaptív karok
Játékvibráció
+ Redmagic Air Triggers
+ Megnyitás
+ Air Triggers használata
+ Bekapcsolja a vállravaszokat a RedMagic ravaszpanelje és jelölői nélkül. Helyettük az érintéses elrendezés gombjait nyomják meg.
+ Bal Air Trigger
+ Jobb Air Trigger
+ Ehhez az elrendezéshez mentve
+ Rezgés
+ Rezeg, amikor megérint egy Air Triggert
+ Fényeffektus a képernyőn
+ Érintéskor megvilágítja a képernyő szélét az Air Trigger alatt
+ Érintési hangulat-LED-effektusok
+ Ki
+ Folyamatos
+ Pulzálás
+ Bal Air Trigger művelete
+ Jobb Air Trigger művelete
+ Egy koppintás
+ Hosszú nyomás
+ Gyorstüzelés
+ Gyorstüzelés beállításai
+ Kattintási gyakoriság
+ Alacsony
+ Normál
+ Magas
Kar holtzónája
Steam gomb
QAM gomb
@@ -2285,7 +2314,6 @@
Kapcsolja be a vezeték nélküli hibakeresést, majd koppintson az „Eszköz párosítása párosítási kóddal” lehetőségre.
Kapcsolja be a vezeték nélküli hibakeresést, majd koppintson az „Eszköz párosítása párosítási kóddal” lehetőségre. Maradjon a Beállításokban: a kód ebbe az értesítésbe kerül.
6 számjegyű párosítási kód
- Koppintson a Kód megadására, és írja be a Beállításokban megjelenő 6 számjegyet.
Adja meg a Wi-Fi párosítási kódot
Próbálja meg újra a kódot
Kód megadása
@@ -2312,7 +2340,8 @@
A Steam-kliens letöltése · %1$s
Már fut egy kompatibilitási eszköz telepítése
Állítsa le az aktív munkamenetet a kompatibilitási eszközök telepítése előtt
- Nem található ARM64-es kiadás a %1$s-hez
+ Nem található %2$s-es kiadás a %1$s-hez
+ Csalás elleni védelem
Legalább 4 GB szabad hely, plusz a letöltés mérete szükséges a %1$s telepítéséhez
%1$s %2$s letöltése
A letöltés újrapróbálása · %1$d. próbálkozás a %2$d-ből
@@ -4165,4 +4194,6 @@
Játékon belüli parancsikon
Smart Glasses parancsikon megjelenítése
A játék fölött lebegő Smart Glasses gomb megjelenítése.
+ Használt profil: %1$s – %2$s
+ Alapértelmezett profil használata: %1$s
diff --git a/app/src/main/res/values-in/strings.xml b/app/src/main/res/values-in/strings.xml
index 8bd5840655..dbde063407 100644
--- a/app/src/main/res/values-in/strings.xml
+++ b/app/src/main/res/values-in/strings.xml
@@ -876,7 +876,6 @@
Sertakan diagnostik Proton, Wine, dan grafis pada peluncuran gim berikutnya. Dapat mengurangi performa dan memakai lebih banyak penyimpanan.
Mulai ulang sesi ini untuk menyimpan log debug gim
Tidak dapat memperbarui pencatatan log. Periksa tombolnya lalu coba lagi.
- Alat debug
Log grafis rinci
Antarmuka Steam: rendering GPU
Dengan pasangan driver Xclipse, Steam menggambar halamannya secara perangkat lunak (rendering GPU menampilkan ubin yang rusak). Aktifkan untuk antarmuka Steam yang lebih cepat jika tampilannya terlihat benar di ponsel ini.
@@ -1165,6 +1164,11 @@
Alat agen tidak terpasang: %1$s
Jangan kirim
Lampirkan
+ File
+ Izinkan akses foto
+ Pilih foto lainnya
+ Belum ada foto
+ Keyboard
Hapus
Default
Upaya penalaran
@@ -1298,6 +1302,31 @@
Ukuran tombol
Stik adaptif
Getaran gim
+ Redmagic Air Triggers
+ Buka
+ Gunakan Air Triggers
+ Menyalakan trigger bahu tanpa panel atau penanda trigger RedMagic. Sebagai gantinya, trigger menekan tombol tata letak sentuh.
+ Air Trigger kiri
+ Air Trigger kanan
+ Disimpan untuk tata letak ini
+ Getaran
+ Bergetar saat Air Trigger disentuh
+ Efek cahaya layar
+ Menerangi tepi layar di bawah Air Trigger saat disentuh
+ Efek LED suasana saat disentuh
+ Mati
+ Tetap
+ Denyut
+ Aksi Air Trigger kiri
+ Aksi Air Trigger kanan
+ Ketuk sekali
+ Tekan lama
+ Tembak cepat
+ Setelan tembak cepat
+ Frekuensi klik
+ Rendah
+ Normal
+ Tinggi
Zona mati stik
Tombol Steam
Tombol QAM
@@ -2260,7 +2289,6 @@
Aktifkan Debugging nirkabel, lalu ketuk “Pasangkan perangkat dengan kode pemasangan”.
Aktifkan Debugging nirkabel, lalu ketuk “Pasangkan perangkat dengan kode pemasangan”. Tetap di Setelan: kodenya akan muncul di notifikasi ini.
Kode pemasangan 6 digit
- Ketuk Masukkan kode dan ketikkan 6 digit yang ditampilkan di Setelan.
Masukkan kode pemasangan Wi-Fi
Coba kode lagi
Masukkan kode
@@ -2287,7 +2315,8 @@
Mengunduh klien Steam · %1$s
Instalasi alat kompatibilitas sedang berjalan
Hentikan sesi aktif sebelum menginstal alat kompatibilitas
- Tidak dapat menemukan rilis ARM64 untuk %1$s
+ Tidak dapat menemukan rilis %2$s untuk %1$s
+ Anti-cheat
Setidaknya 4 GB ruang kosong ditambah ukuran unduhan diperlukan untuk menginstal %1$s
Mengunduh %1$s %2$s
Mencoba lagi unduhan · percobaan %1$d dari %2$d
@@ -4135,4 +4164,6 @@
Pintasan dalam game
Tampilkan pintasan Smart Glasses
Tampilkan tombol Smart Glasses mengambang di atas game.
+ Menggunakan profil %1$s: %2$s
+ Menggunakan profil default: %1$s
diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml
index 0d79a90921..cc2e8cdb17 100644
--- a/app/src/main/res/values-it/strings.xml
+++ b/app/src/main/res/values-it/strings.xml
@@ -882,7 +882,6 @@
Includi la diagnostica di Proton, Wine e grafica al prossimo avvio di un gioco. Può ridurre le prestazioni e occupare più spazio.
Riavvia questa sessione per salvare i log di debug dei giochi
Impossibile aggiornare i log. Controlla l\'interruttore e riprova.
- Strumenti di debug
Log grafici dettagliati
Interfaccia Steam: rendering GPU
Con la coppia di driver Xclipse, Steam disegna le pagine via software (il rendering GPU mostrava riquadri danneggiati). Attivala per un\'interfaccia Steam più veloce, se su questo telefono appare corretta.
@@ -1163,6 +1162,11 @@
Strumenti dell’agente non installati: %1$s
Non inviare
Allega
+ File
+ Consenti accesso alle foto
+ Scegli altre foto
+ Ancora nessuna foto
+ Tastiera
Rimuovi
Predefinito
Livello di ragionamento
@@ -1302,6 +1306,31 @@
Dimensione dei tasti
Levette adattive
Vibrazione di gioco
+ Redmagic Air Triggers
+ Apri
+ Usa gli Air Triggers
+ Attiva i grilletti dorsali senza il pannello né gli indicatori di RedMagic. Premono invece i pulsanti del layout touch.
+ Air Trigger sinistro
+ Air Trigger destro
+ Salvato per questo layout
+ Vibrazione
+ Vibra quando tocchi un Air Trigger
+ Effetto luce sullo schermo
+ Illumina il bordo dello schermo sotto un Air Trigger quando lo tocchi
+ Effetti LED d\'atmosfera al tocco
+ Spento
+ Fisso
+ Pulsante
+ Azione dell\'Air Trigger sinistro
+ Azione dell\'Air Trigger destro
+ Tocco singolo
+ Pressione prolungata
+ Fuoco rapido
+ Impostazioni fuoco rapido
+ Frequenza dei clic
+ Bassa
+ Normale
+ Alta
Zona morta dello stick
Tasto Steam
Tasto QAM
@@ -2302,7 +2331,6 @@
Attiva Debug wireless, poi tocca “Accoppia dispositivo con codice di accoppiamento”.
Attiva Debug wireless, poi tocca “Accoppia dispositivo con codice di accoppiamento”. Resta in Impostazioni: il codice va inserito in questa notifica.
Codice di accoppiamento a 6 cifre
- Tocca Inserisci codice e digita le 6 cifre mostrate in Impostazioni.
Inserisci il codice di accoppiamento Wi-Fi
Riprova con il codice
Inserisci codice
@@ -2329,7 +2357,8 @@
Download del client Steam · %1$s
È già in corso l\'installazione di uno strumento di compatibilità
Interrompi la sessione attiva prima di installare strumenti di compatibilità
- Impossibile trovare una release ARM64 per %1$s
+ Impossibile trovare una release %2$s per %1$s
+ Anti-cheat
Per installare %1$s servono almeno 4 GB liberi più la dimensione del download
Download di %1$s %2$s
Nuovo tentativo di download · tentativo %1$d di %2$d
@@ -4204,4 +4233,6 @@
Scorciatoia nel gioco
Mostra scorciatoia Smart Glasses
Mostra il pulsante mobile Smart Glasses sopra il gioco.
+ Profilo %1$s in uso: %2$s
+ Profilo predefinito in uso: %1$s
diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml
index f66a14fc6e..522a0c3464 100644
--- a/app/src/main/res/values-ja/strings.xml
+++ b/app/src/main/res/values-ja/strings.xml
@@ -876,7 +876,6 @@
次回のゲーム起動時にProton、Wine、グラフィックスの診断情報を含めます。パフォーマンスが低下し、ストレージを多く使用する場合があります。
ゲームのデバッグログを保存するにはこのセッションを再起動してください
ログ設定を更新できませんでした。スイッチを確認して、もう一度お試しください。
- デバッグツール
詳細なグラフィックスログ
Steam インターフェース: GPU 描画
Xclipse ドライバーの組み合わせでは、Steam はソフトウェアでページを描画します (GPU 描画ではタイルが乱れました)。この端末で表示が正しければ、オンにすると Steam インターフェースが高速化します。
@@ -1165,6 +1164,11 @@
エージェントのツールが未インストール: %1$s
送信しない
添付
+ ファイル
+ 写真へのアクセスを許可
+ 写真をさらに選択
+ まだ写真がありません
+ キーボード
削除
デフォルト
推論レベル
@@ -1298,6 +1302,31 @@
ボタンのサイズ
アダプティブスティック
ゲームの振動
+ Redmagic エアトリガー
+ 開く
+ エアトリガーを使う
+ RedMagic のトリガーパネルやマーカーを出さずにショルダートリガーをオンにし、タッチレイアウトのボタンを押します。
+ 左エアトリガー
+ 右エアトリガー
+ このレイアウトに保存されます
+ バイブレーション
+ エアトリガーに触れると振動します
+ 画面のライト効果
+ エアトリガーに触れると、その下の画面の端が光ります
+ タッチ時のアンビエントLED効果
+ オフ
+ 常時点灯
+ パルス
+ 左エアトリガーの動作
+ 右エアトリガーの動作
+ シングルタップ
+ 長押し
+ 連射
+ 連射の設定
+ クリック頻度
+ 低
+ 標準
+ 高
スティックのデッドゾーン
Steamボタン
QAMボタン
@@ -2260,7 +2289,6 @@
ワイヤレスデバッグをオンにして、「ペアリングコードでデバイスをペア設定」をタップしてください。
ワイヤレスデバッグをオンにして、「ペアリングコードでデバイスをペア設定」をタップしてください。設定画面のままにしてください:コードはこの通知に入力します。
6桁のペアリングコード
- 「コードを入力」をタップし、設定に表示された6桁の数字を入力してください。
Wi-Fiペアリングコードを入力
コードをもう一度入力
コードを入力
@@ -2287,7 +2315,8 @@
Steamクライアントをダウンロード中 · %1$s
互換性ツールのインストールはすでに実行中です
互換性ツールをインストールする前に、実行中のセッションを停止してください
- %1$sのARM64リリースが見つかりませんでした
+ %1$sの%2$sリリースが見つかりませんでした
+ アンチチート
%1$sのインストールには、ダウンロードサイズに加えて4GB以上の空き容量が必要です
%1$s %2$sをダウンロード中
ダウンロードを再試行中 · %1$d / %2$d回目
@@ -4135,4 +4164,6 @@
ゲーム内ショートカット
Smart Glasses のショートカットを表示
ゲーム画面上に Smart Glasses のフローティングボタンを表示します。
+ %1$s プロファイルを使用中: %2$s
+ デフォルトプロファイルを使用中: %1$s
diff --git a/app/src/main/res/values-ko/strings.xml b/app/src/main/res/values-ko/strings.xml
index dbcf405e3f..8d248636d1 100644
--- a/app/src/main/res/values-ko/strings.xml
+++ b/app/src/main/res/values-ko/strings.xml
@@ -876,7 +876,6 @@
다음 게임 실행 시 Proton, Wine 및 그래픽 진단 정보를 포함합니다. 성능이 저하되고 저장 공간을 더 사용할 수 있습니다.
게임 디버그 로그를 저장하려면 이 세션을 다시 시작하세요
로깅을 업데이트할 수 없습니다. 스위치를 확인하고 다시 시도하세요.
- 디버깅 도구
상세 그래픽 로그
Steam 인터페이스: GPU 렌더링
Xclipse 드라이버 조합에서는 Steam 페이지를 소프트웨어로 그립니다(GPU 렌더링에서는 타일이 깨져 보였습니다). 이 기기에서 정상적으로 보인다면 더 빠른 Steam 인터페이스를 위해 켜세요.
@@ -1165,6 +1164,11 @@
에이전트 도구가 설치되지 않음: %1$s
보내지 않기
첨부
+ 파일
+ 사진 접근 허용
+ 사진 더 선택
+ 아직 사진이 없습니다
+ 키보드
제거
기본
추론 수준
@@ -1298,6 +1302,31 @@
버튼 크기
적응형 스틱
게임 진동
+ Redmagic 에어 트리거
+ 열기
+ 에어 트리거 사용
+ RedMagic 트리거 패널이나 표시 없이 숄더 트리거를 켜고, 대신 터치 레이아웃의 버튼을 누릅니다.
+ 왼쪽 에어 트리거
+ 오른쪽 에어 트리거
+ 이 레이아웃에 저장됨
+ 진동
+ 에어 트리거를 터치하면 진동합니다
+ 화면 조명 효과
+ 에어 트리거를 터치하면 그 아래 화면 가장자리가 밝아집니다
+ 터치 분위기 LED 효과
+ 끄기
+ 상시 점등
+ 펄스
+ 왼쪽 에어 트리거 동작
+ 오른쪽 에어 트리거 동작
+ 한 번 탭
+ 길게 누르기
+ 연사
+ 연사 설정
+ 클릭 빈도
+ 낮음
+ 보통
+ 높음
스틱 데드존
Steam 버튼
QAM 버튼
@@ -2260,7 +2289,6 @@
무선 디버깅을 켠 다음 “페어링 코드로 기기 페어링”을 탭하세요.
무선 디버깅을 켠 다음 “페어링 코드로 기기 페어링”을 탭하세요. 코드는 이 알림에 입력하므로 설정 화면에 머물러 있으세요.
6자리 페어링 코드
- \"코드 입력\"을 탭하고 설정에 표시된 6자리 숫자를 입력하세요.
Wi-Fi 페어링 코드 입력
코드를 다시 입력하세요
코드 입력
@@ -2287,7 +2315,8 @@
Steam 클라이언트 다운로드 중 · %1$s
호환성 도구를 이미 설치하고 있습니다
호환성 도구를 설치하기 전에 실행 중인 세션을 중지하세요
- %1$s의 ARM64 릴리스를 찾을 수 없습니다
+ %1$s의 %2$s 릴리스를 찾을 수 없습니다
+ 안티 치트
%1$s을(를) 설치하려면 다운로드 크기에 더해 최소 4GB의 여유 공간이 필요합니다
%1$s %2$s 다운로드 중
다운로드 재시도 중 · %2$d회 중 %1$d번째
@@ -4135,4 +4164,6 @@
게임 내 바로가기
Smart Glasses 바로가기 표시
게임 위에 떠 있는 Smart Glasses 버튼을 표시합니다.
+ %1$s 프로필 사용 중: %2$s
+ 기본 프로필 사용 중: %1$s
diff --git a/app/src/main/res/values-ms/strings.xml b/app/src/main/res/values-ms/strings.xml
index 2dc5bcea1b..26e9bf9a31 100644
--- a/app/src/main/res/values-ms/strings.xml
+++ b/app/src/main/res/values-ms/strings.xml
@@ -876,7 +876,6 @@
Sertakan diagnostik Proton, Wine dan grafik pada pelancaran permainan seterusnya. Boleh mengurangkan prestasi dan menggunakan lebih banyak storan.
Mulakan semula sesi ini untuk menyimpan log nyahpepijat permainan
Tidak dapat mengemas kini pengelogan. Semak suis dan cuba lagi.
- Alatan penyahpepijatan
Log grafik terperinci
Antara muka Steam: pelukisan GPU
Dengan pasangan pemacu Xclipse, Steam melukis halamannya melalui perisian (pelukisan GPU menghasilkan jubin yang cacat). Hidupkan untuk antara muka Steam yang lebih pantas jika hasilnya kelihatan betul pada telefon ini.
@@ -1165,6 +1164,11 @@
Alat ejen tidak dipasang: %1$s
Jangan hantar
Lampirkan
+ Fail
+ Benarkan akses foto
+ Pilih lebih banyak foto
+ Belum ada foto
+ Papan kekunci
Alih keluar
Lalai
Usaha penaakulan
@@ -1298,6 +1302,31 @@
Saiz butang
Stik adaptif
Getaran permainan
+ Redmagic Air Triggers
+ Buka
+ Guna Air Triggers
+ Menghidupkan pencetus bahu tanpa panel atau penanda pencetus RedMagic. Sebaliknya, ia menekan butang susun atur sentuh.
+ Air Trigger kiri
+ Air Trigger kanan
+ Disimpan untuk susun atur ini
+ Getaran
+ Bergetar apabila Air Trigger disentuh
+ Kesan cahaya skrin
+ Menyalakan tepi skrin di bawah Air Trigger apabila ia disentuh
+ Kesan LED suasana sentuhan
+ Mati
+ Tetap
+ Denyut
+ Tindakan Air Trigger kiri
+ Tindakan Air Trigger kanan
+ Ketik sekali
+ Tekan lama
+ Tembakan pantas
+ Tetapan tembakan pantas
+ Kekerapan klik
+ Rendah
+ Biasa
+ Tinggi
Zon mati kayu bedik
Butang Steam
Butang QAM
@@ -2260,7 +2289,6 @@
Hidupkan Debugging Wayarles, kemudian ketik “Gandingkan peranti dengan kod gandingan”.
Hidupkan Debugging Wayarles, kemudian ketik “Gandingkan peranti dengan kod gandingan”. Kekal dalam Tetapan: kod akan masuk dalam pemberitahuan ini.
Kod gandingan 6 digit
- Ketik Masukkan kod dan taip 6 digit yang dipaparkan dalam Tetapan.
Masukkan kod gandingan Wi-Fi
Cuba kod itu sekali lagi
Masukkan kod
@@ -2287,7 +2315,8 @@
Memuat turun klien Steam · %1$s
Pemasangan alat keserasian sudah berjalan
Hentikan sesi aktif sebelum memasang alat keserasian
- Tidak dapat mencari keluaran ARM64 untuk %1$s
+ Tidak dapat mencari keluaran %2$s untuk %1$s
+ Anti-cheat
Sekurang-kurangnya 4 GB bebas tambah saiz muat turun diperlukan untuk memasang %1$s
Memuat turun %1$s %2$s
Mencuba semula muat turun · percubaan %1$d daripada %2$d
@@ -4135,4 +4164,6 @@
Pintasan dalam permainan
Tunjukkan pintasan Smart Glasses
Tunjukkan butang Smart Glasses terapung di atas permainan.
+ Menggunakan profil %1$s: %2$s
+ Menggunakan profil lalai: %1$s
diff --git a/app/src/main/res/values-nb/strings.xml b/app/src/main/res/values-nb/strings.xml
index 70da47fde8..2a368ae0fa 100644
--- a/app/src/main/res/values-nb/strings.xml
+++ b/app/src/main/res/values-nb/strings.xml
@@ -879,7 +879,6 @@
Ta med diagnostikk for Proton, Wine og grafikk ved neste spillstart. Kan redusere ytelsen og bruke mer lagringsplass.
Start denne sesjonen på nytt for å lagre feilsøkingslogger for spill
Kunne ikke oppdatere loggingen. Sjekk bryteren og prøv igjen.
- Feilsøkingsverktøy
Detaljerte grafikklogger
Steam-grensesnitt: GPU-tegning
Med Xclipse-driverparet tegner Steam sidene sine i programvare (GPU-tegning viste ødelagte fliser). Slå på for et raskere Steam-grensesnitt hvis det ser riktig ut på denne telefonen.
@@ -1168,6 +1167,11 @@
Agentverktøy er ikke installert: %1$s
Ikke send
Legg ved
+ Filer
+ Tillat tilgang til bilder
+ Velg flere bilder
+ Ingen bilder ennå
+ Tastatur
Fjern
Standard
Resonneringsinnsats
@@ -1304,6 +1308,31 @@
Knappestørrelse
Adaptive stikker
Spillvibrasjon
+ Redmagic Air Triggers
+ Åpne
+ Bruk Air Triggers
+ Slår på skuldertriggerne uten RedMagics triggerpanel eller markører. De trykker i stedet på knapper i berøringsoppsettet.
+ Venstre Air Trigger
+ Høyre Air Trigger
+ Lagret for dette oppsettet
+ Vibrering
+ Vibrerer når en Air Trigger berøres
+ Lyseffekt på skjermen
+ Lyser opp skjermkanten under en Air Trigger når den berøres
+ LED-stemningseffekter ved berøring
+ Av
+ Konstant
+ Puls
+ Handling for venstre Air Trigger
+ Handling for høyre Air Trigger
+ Enkelt trykk
+ Langt trykk
+ Hurtigskyting
+ Innstillinger for hurtigskyting
+ Klikkfrekvens
+ Lav
+ Normal
+ Høy
Dødsone for styrespak
Steam-knapp
QAM-knapp
@@ -2285,7 +2314,6 @@
Slå på trådløs feilsøking, og trykk så på «Par enhet med koblingskode».
Slå på trådløs feilsøking, og trykk så på «Par enhet med koblingskode». Hold deg i Innstillinger: koden kommer i denne varslingen.
6-tallers koblingskode
- Trykk på Skriv inn kode og skriv de 6 tallene som vises i Innstillinger.
Skriv inn Wi-Fi-koblingskoden
Prøv koden igjen
Skriv inn kode
@@ -2312,7 +2340,8 @@
Laster ned Steam-klienten · %1$s
En installasjon av et kompatibilitetsverktøy kjører allerede
Avslutt den aktive sesjonen før du installerer kompatibilitetsverktøy
- Fant ingen ARM64-utgivelse for %1$s
+ Fant ingen %2$s-utgivelse for %1$s
+ Anti-juks
Minst 4 GB ledig pluss nedlastingens størrelse er nødvendig for å installere %1$s
Laster ned %1$s %2$s
Prøver nedlastingen igjen · forsøk %1$d av %2$d
@@ -4165,4 +4194,6 @@
Snarvei i spillet
Vis Smart Glasses-snarvei
Vis den flytende Smart Glasses-knappen over spillet.
+ Bruker profilen %1$s: %2$s
+ Bruker standardprofilen: %1$s
diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml
index aa95f349be..12afedf888 100644
--- a/app/src/main/res/values-nl/strings.xml
+++ b/app/src/main/res/values-nl/strings.xml
@@ -879,7 +879,6 @@
Neem bij de volgende gamestart diagnostiek van Proton, Wine en graphics op. Kan de prestaties verlagen en meer opslag gebruiken.
Start deze sessie opnieuw om debuglogs van games op te slaan
Kan logging niet bijwerken. Controleer de schakelaar en probeer het opnieuw.
- Hulpmiddelen voor debuggen
Gedetailleerde grafische logboeken
Steam-interface: GPU-tekenen
Met het Xclipse-driverpaar tekent Steam zijn pagina\'s in software (GPU-tekenen liet gebroken tegels zien). Schakel dit in voor een snellere Steam-interface als het op deze telefoon goed uitziet.
@@ -1168,6 +1167,11 @@
Agenttools niet geïnstalleerd: %1$s
Niet verzenden
Bijvoegen
+ Bestanden
+ Toegang tot foto\'s toestaan
+ Meer foto\'s kiezen
+ Nog geen foto\'s
+ Toetsenbord
Verwijderen
Standaard
Redeneerinspanning
@@ -1304,6 +1308,31 @@
Knopgrootte
Adaptieve sticks
Trillen in games
+ Redmagic Air Triggers
+ Openen
+ Air Triggers gebruiken
+ Zet de schoudertriggers aan zonder het triggerpaneel of de markeringen van RedMagic. Ze drukken in plaats daarvan knoppen van de aanraakindeling in.
+ Linker Air Trigger
+ Rechter Air Trigger
+ Opgeslagen voor deze indeling
+ Trillen
+ Trilt wanneer je een Air Trigger aanraakt
+ Lichteffect op het scherm
+ Laat de schermrand onder een Air Trigger oplichten wanneer je die aanraakt
+ Sfeer-ledeffecten bij aanraken
+ Uit
+ Constant
+ Pulseren
+ Actie van linker Air Trigger
+ Actie van rechter Air Trigger
+ Eén keer tikken
+ Lang indrukken
+ Snelvuur
+ Instellingen voor snelvuur
+ Klikfrequentie
+ Laag
+ Normaal
+ Hoog
Dode zone van stick
Steam-knop
QAM-knop
@@ -2285,7 +2314,6 @@
Schakel draadloze foutopsporing in en tik vervolgens op “Apparaat koppelen met koppelcode”.
Schakel draadloze foutopsporing in en tik vervolgens op “Apparaat koppelen met koppelcode”. Blijf in Instellingen: de code komt in deze melding.
Koppelcode van 6 cijfers
- Tik op Code invoeren en typ de 6 cijfers die in Instellingen worden getoond.
Voer de Wi-Fi-koppelcode in
Probeer de code opnieuw
Code invoeren
@@ -2312,7 +2340,8 @@
Steam-client downloaden · %1$s
Er wordt al een compatibiliteitstool geïnstalleerd
Stop de actieve sessie voordat je compatibiliteitstools installeert
- Kan geen ARM64-release vinden voor %1$s
+ Kan geen %2$s-release vinden voor %1$s
+ Anti-cheat
Om %1$s te installeren is minstens 4 GB vrije ruimte nodig, plus de downloadgrootte
%1$s %2$s downloaden
Download opnieuw proberen · poging %1$d van %2$d
@@ -4165,4 +4194,6 @@
Snelkoppeling in game
Smart Glasses-snelkoppeling tonen
Toon de zwevende Smart Glasses-knop boven het spel.
+ Profiel %1$s in gebruik: %2$s
+ Standaardprofiel in gebruik: %1$s
diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml
index 350871461b..13d2fde1e0 100644
--- a/app/src/main/res/values-pl/strings.xml
+++ b/app/src/main/res/values-pl/strings.xml
@@ -885,7 +885,6 @@
Dołącz diagnostykę Proton, Wine i grafiki przy następnym uruchomieniu gry. Może obniżyć wydajność i zająć więcej miejsca.
Uruchom ponownie tę sesję, aby zapisywać logi debugowania gier
Nie udało się zmienić logowania. Sprawdź przełącznik i spróbuj ponownie.
- Narzędzia debugowania
Szczegółowe logi graficzne
Interfejs Steam: rysowanie przez GPU
Z parą sterowników Xclipse Steam rysuje swoje strony programowo (rysowanie przez GPU dawało uszkodzone kafelki). Włącz, aby przyspieszyć interfejs Steam, jeśli na tym telefonie wygląda poprawnie.
@@ -1174,6 +1173,11 @@
Narzędzia agenta nie są zainstalowane: %1$s
Nie wysyłaj
Załącz
+ Pliki
+ Zezwól na dostęp do zdjęć
+ Wybierz więcej zdjęć
+ Brak zdjęć
+ Klawiatura
Usuń
Domyślny
Poziom rozumowania
@@ -1318,6 +1322,31 @@
Rozmiar przycisków
Adaptacyjne gałki
Wibracje gry
+ Redmagic Air Triggers
+ Otwórz
+ Używaj Air Triggers
+ Włącza spusty naramienne bez panelu i znaczników RedMagic. Zamiast tego naciskają przyciski układu dotykowego.
+ Lewy Air Trigger
+ Prawy Air Trigger
+ Zapisane dla tego układu
+ Wibracje
+ Wibruje po dotknięciu Air Triggera
+ Efekt świetlny na ekranie
+ Podświetla krawędź ekranu pod Air Triggerem po jego dotknięciu
+ Efekty LED nastroju przy dotyku
+ Wyłączone
+ Stałe
+ Pulsowanie
+ Działanie lewego Air Triggera
+ Działanie prawego Air Triggera
+ Pojedyncze dotknięcie
+ Długie naciśnięcie
+ Szybki ogień
+ Ustawienia szybkiego ognia
+ Częstotliwość kliknięć
+ Niska
+ Normalna
+ Wysoka
Martwa strefa drążka
Przycisk Steam
Przycisk QAM
@@ -2337,7 +2366,6 @@
Włącz Debugowanie bezprzewodowe, a potem dotknij „Sparuj urządzenie za pomocą kodu parowania”.
Włącz Debugowanie bezprzewodowe, a potem dotknij „Sparuj urządzenie za pomocą kodu parowania”. Pozostań w Ustawieniach: kod wpiszesz w tym powiadomieniu.
6-cyfrowy kod parowania
- Dotknij „Wpisz kod” i podaj 6 cyfr widocznych w Ustawieniach.
Wpisz kod parowania Wi-Fi
Spróbuj wpisać kod ponownie
Wpisz kod
@@ -2364,7 +2392,8 @@
Pobieranie klienta Steam · %1$s
Instalacja narzędzia zgodności już trwa
Zatrzymaj aktywną sesję przed instalacją narzędzi zgodności
- Nie znaleziono wydania ARM64 dla %1$s
+ Nie znaleziono wydania %2$s dla %1$s
+ Antycheat
Do instalacji %1$s potrzeba co najmniej 4 GB wolnego miejsca plus rozmiar pobierania
Pobieranie %1$s %2$s
Ponawianie pobierania · próba %1$d z %2$d
@@ -4245,4 +4274,6 @@
Skrót w grze
Pokaż skrót Smart Glasses
Pokaż pływający przycisk Smart Glasses nad grą.
+ Używany profil %1$s: %2$s
+ Używany profil domyślny: %1$s
diff --git a/app/src/main/res/values-pt-rPT/strings.xml b/app/src/main/res/values-pt-rPT/strings.xml
index 58c25267da..fe41c32f18 100644
--- a/app/src/main/res/values-pt-rPT/strings.xml
+++ b/app/src/main/res/values-pt-rPT/strings.xml
@@ -882,7 +882,6 @@
Inclui diagnósticos do Proton, do Wine e de gráficos no próximo arranque de um jogo. Pode reduzir o desempenho e ocupar mais armazenamento.
Reinicie esta sessão para guardar os registos de depuração dos jogos
Não foi possível atualizar os registos. Verifique o interruptor e tente novamente.
- Ferramentas de depuração
Registos gráficos detalhados
Interface do Steam: desenho pela GPU
Com o par de controladores Xclipse, o Steam desenha as suas páginas por software (o desenho pela GPU mostrou mosaicos com falhas). Ative para uma interface do Steam mais rápida se esta parecer correta neste telemóvel.
@@ -1163,6 +1162,11 @@
Ferramentas do agente não instaladas: %1$s
Não enviar
Anexar
+ Ficheiros
+ Permitir acesso às fotos
+ Escolher mais fotos
+ Ainda não há fotos
+ Teclado
Remover
Predefinido
Esforço de raciocínio
@@ -1302,6 +1306,31 @@
Tamanho dos botões
Analógicos adaptáveis
Vibração do jogo
+ Redmagic Air Triggers
+ Abrir
+ Utilizar os Air Triggers
+ Liga os gatilhos de ombro sem o painel nem os marcadores da RedMagic. Em vez disso, premem botões do esquema tátil.
+ Air Trigger esquerdo
+ Air Trigger direito
+ Guardado para este esquema
+ Vibração
+ Vibra quando toca num Air Trigger
+ Efeito de luz no ecrã
+ Ilumina a margem do ecrã por baixo de um Air Trigger quando é tocado
+ Efeitos LED de ambiente ao toque
+ Desligado
+ Fixo
+ Pulsar
+ Ação do Air Trigger esquerdo
+ Ação do Air Trigger direito
+ Toque único
+ Premir prolongadamente
+ Disparo rápido
+ Definições de disparo rápido
+ Frequência de cliques
+ Baixa
+ Normal
+ Alta
Zona morta do manípulo
Botão Steam
Botão QAM
@@ -2317,7 +2346,6 @@
Ative a depuração sem fios e toque em «Sincronizar dispositivo com código de sincronização».
Ative a depuração sem fios e toque em «Sincronizar dispositivo com código de sincronização». Fique nas Definições: o código é introduzido nesta notificação.
Código de sincronização de 6 dígitos
- Toque em Introduzir código e escreva os 6 dígitos mostrados nas Definições.
Introduza o código de sincronização Wi-Fi
Introduza o código novamente
Introduzir código
@@ -2344,7 +2372,8 @@
A transferir o cliente Steam · %1$s
Já está em curso a instalação de uma ferramenta de compatibilidade
Pare a sessão ativa antes de instalar ferramentas de compatibilidade
- Não foi possível encontrar uma versão ARM64 de %1$s
+ Não foi possível encontrar uma versão %2$s de %1$s
+ Anti-cheat
São necessários pelo menos 4 GB livres, mais o tamanho da transferência, para instalar %1$s
A transferir %1$s %2$s
A repetir a transferência · tentativa %1$d de %2$d
@@ -4204,4 +4233,6 @@
Atalho no jogo
Mostrar atalho do Smart Glasses
Mostrar o botão flutuante do Smart Glasses sobre o jogo.
+ Perfil %1$s em utilização: %2$s
+ Perfil predefinido em utilização: %1$s
diff --git a/app/src/main/res/values-pt/strings.xml b/app/src/main/res/values-pt/strings.xml
index 08eb2c38de..15d61c10b9 100644
--- a/app/src/main/res/values-pt/strings.xml
+++ b/app/src/main/res/values-pt/strings.xml
@@ -889,7 +889,6 @@
Inclui diagnósticos do Proton, do Wine e de gráficos na próxima inicialização do jogo. Pode reduzir o desempenho e usar mais armazenamento.
Reinicie esta sessão para salvar os logs de depuração dos jogos
Não foi possível atualizar os logs. Verifique a chave e tente novamente.
- Ferramentas de depuração
Logs detalhados de gráficos
Interface do Steam: renderização pela GPU
Com o par de drivers Xclipse, o Steam renderiza suas páginas por software (a renderização pela GPU apresentou blocos quebrados). Ative para ter uma interface do Steam mais rápida se ela aparecer corretamente neste telefone.
@@ -1170,6 +1169,11 @@
Ferramentas do agente não instaladas: %1$s
Não enviar
Anexar
+ Arquivos
+ Permitir acesso às fotos
+ Escolher mais fotos
+ Ainda não há fotos
+ Teclado
Remover
Padrão
Esforço de raciocínio
@@ -1310,6 +1314,31 @@
Tamanho dos botões
Analógicos adaptáveis
Vibração do jogo
+ Redmagic Air Triggers
+ Abrir
+ Usar os Air Triggers
+ Liga os gatilhos de ombro sem o painel nem os marcadores da RedMagic. Em vez disso, eles apertam botões do layout de toque.
+ Air Trigger esquerdo
+ Air Trigger direito
+ Salvo para este layout
+ Vibração
+ Vibra quando um Air Trigger é tocado
+ Efeito de luz na tela
+ Ilumina a borda da tela embaixo de um Air Trigger quando ele é tocado
+ Efeitos de LED de ambiente ao toque
+ Desligado
+ Fixo
+ Pulsar
+ Ação do Air Trigger esquerdo
+ Ação do Air Trigger direito
+ Toque único
+ Toque longo
+ Disparo rápido
+ Configurações de disparo rápido
+ Frequência de cliques
+ Baixa
+ Normal
+ Alta
Zona morta do analógico
Botão Steam
Botão QAM
@@ -2325,7 +2354,6 @@
Ative a depuração por Wi-Fi e toque em “Parear o dispositivo com um código de pareamento”.
Ative a depuração por Wi-Fi e toque em “Parear o dispositivo com um código de pareamento”. Fique nas Configurações: o código é digitado nesta notificação.
Código de pareamento de 6 dígitos
- Toque em Digitar código e insira os 6 dígitos mostrados nas Configurações.
Digite o código de pareamento por Wi-Fi
Tente o código de novo
Digitar código
@@ -2352,7 +2380,8 @@
Baixando o cliente Steam · %1$s
Já há uma instalação de ferramenta de compatibilidade em andamento
Pare a sessão ativa antes de instalar ferramentas de compatibilidade
- Não foi possível encontrar uma versão ARM64 de %1$s
+ Não foi possível encontrar uma versão %2$s de %1$s
+ Anti-cheat
É preciso ter pelo menos 4 GB livres, além do tamanho do download, para instalar %1$s
Baixando %1$s %2$s
Tentando baixar de novo · tentativa %1$d de %2$d
@@ -4212,4 +4241,6 @@
Atalho durante o jogo
Mostrar atalho do Smart Glasses
Mostrar o botão flutuante do Smart Glasses sobre o jogo.
+ Perfil %1$s em uso: %2$s
+ Perfil predefinido em uso: %1$s
diff --git a/app/src/main/res/values-ro/strings.xml b/app/src/main/res/values-ro/strings.xml
index bd89893d52..33d0ad8ffe 100644
--- a/app/src/main/res/values-ro/strings.xml
+++ b/app/src/main/res/values-ro/strings.xml
@@ -882,7 +882,6 @@
Include diagnosticare Proton, Wine și grafică la următoarea lansare a unui joc. Poate reduce performanța și folosește mai mult spațiu.
Repornește această sesiune pentru a salva jurnalele de depanare
Jurnalizarea nu a putut fi actualizată. Verifică comutatorul și încearcă din nou.
- Instrumente de depanare
Jurnale detaliate de grafică
Interfața Steam: desenare GPU
Cu perechea de drivere Xclipse, Steam își desenează paginile în software (desenarea GPU a afișat dale stricate). Activează pentru o interfață Steam mai rapidă dacă arată corect pe acest telefon.
@@ -1171,6 +1170,11 @@
Instrumentele agentului nu sunt instalate: %1$s
Nu trimite
Atașează
+ Fișiere
+ Permite accesul la fotografii
+ Alege mai multe fotografii
+ Încă nu există fotografii
+ Tastatură
Elimină
Implicit
Efort de raționament
@@ -1311,6 +1315,31 @@
Dimensiunea butoanelor
Manșe adaptive
Vibrații de joc
+ Redmagic Air Triggers
+ Deschide
+ Folosește Air Triggers
+ Pornește triggerele de umăr fără panoul sau marcajele RedMagic. În schimb, ele apasă butoane din aranjamentul tactil.
+ Air Trigger stâng
+ Air Trigger drept
+ Salvat pentru acest aranjament
+ Vibrație
+ Vibrează când atingi un Air Trigger
+ Efect de lumină pe ecran
+ Luminează marginea ecranului de sub un Air Trigger când îl atingi
+ Efecte LED de atmosferă la atingere
+ Oprit
+ Constant
+ Puls
+ Acțiunea Air Trigger-ului stâng
+ Acțiunea Air Trigger-ului drept
+ Atingere simplă
+ Apăsare lungă
+ Foc rapid
+ Setări foc rapid
+ Frecvența clicurilor
+ Scăzută
+ Normală
+ Ridicată
Zonă moartă a manetei
Butonul Steam
Butonul QAM
@@ -2311,7 +2340,6 @@
Activează Depanarea wireless, apoi apasă „Asociază dispozitivul cu un cod de asociere”.
Activează Depanarea wireless, apoi apasă „Asociază dispozitivul cu un cod de asociere”. Rămâi în Setări: codul apare în această notificare.
Cod de asociere din 6 cifre
- Apasă Introdu codul și scrie cele 6 cifre arătate în Setări.
Introdu codul de asociere Wi-Fi
Încearcă codul din nou
Introdu codul
@@ -2338,7 +2366,8 @@
Se descarcă clientul Steam · %1$s
O instalare a unui instrument de compatibilitate este deja în curs
Oprește sesiunea activă înainte de a instala instrumente de compatibilitate
- Nu s-a găsit o versiune ARM64 pentru %1$s
+ Nu s-a găsit o versiune %2$s pentru %1$s
+ Anti-cheat
Este necesar cel puțin 4 GB liber, plus dimensiunea descărcării, pentru a instala %1$s
Se descarcă %1$s %2$s
Se reîncearcă descărcarea · tentativa %1$d din %2$d
@@ -4205,4 +4234,6 @@
Comandă rapidă în joc
Afișează comanda rapidă Smart Glasses
Afișează butonul plutitor Smart Glasses peste joc.
+ Se folosește profilul %1$s: %2$s
+ Se folosește profilul implicit: %1$s
diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml
index c75b0aa343..3b174cc427 100644
--- a/app/src/main/res/values-ru/strings.xml
+++ b/app/src/main/res/values-ru/strings.xml
@@ -885,7 +885,6 @@
Добавлять диагностику Proton, Wine и графики при следующем запуске игры. Может снизить производительность и занять больше места.
Перезапустите сессию, чтобы сохранять журналы отладки игр
Не удалось обновить журналирование. Проверьте переключатель и повторите попытку.
- Инструменты отладки
Подробные журналы графики
Интерфейс Steam: отрисовка на GPU
С парой драйверов Xclipse Steam отрисовывает страницы программно (при отрисовке на GPU появлялись битые тайлы). Включите, чтобы ускорить интерфейс Steam, если на этом телефоне он выглядит корректно.
@@ -1174,6 +1173,11 @@
Инструменты агента не установлены: %1$s
Не отправлять
Прикрепить
+ Файлы
+ Разрешить доступ к фото
+ Выбрать ещё фото
+ Пока нет фото
+ Клавиатура
Удалить
По умолчанию
Уровень рассуждений
@@ -1318,6 +1322,31 @@
Размер кнопок
Адаптивные стики
Вибрация в играх
+ Redmagic Air Triggers
+ Открыть
+ Использовать Air Triggers
+ Включает плечевые триггеры без панели и меток RedMagic. Вместо этого они нажимают кнопки сенсорной раскладки.
+ Левый Air Trigger
+ Правый Air Trigger
+ Сохраняется для этой раскладки
+ Вибрация
+ Вибрирует при касании Air Trigger
+ Световой эффект на экране
+ Подсвечивает край экрана под Air Trigger при касании
+ LED-эффекты атмосферы при касании
+ Выкл.
+ Постоянный
+ Пульсация
+ Действие левого Air Trigger
+ Действие правого Air Trigger
+ Одно нажатие
+ Долгое нажатие
+ Быстрая стрельба
+ Настройки быстрой стрельбы
+ Частота нажатий
+ Низкая
+ Обычная
+ Высокая
Мёртвая зона стика
Кнопка Steam
Кнопка QAM
@@ -2338,7 +2367,6 @@
Включите отладку по Wi-Fi и нажмите «Сопряжение устройства с помощью кода».
Включите отладку по Wi-Fi и нажмите «Сопряжение устройства с помощью кода». Не выходите из Настроек: код вводится в этом уведомлении.
6-значный код сопряжения
- Нажмите «Ввести код» и введите 6 цифр, показанных в Настройках.
Введите код сопряжения Wi-Fi
Введите код еще раз
Ввести код
@@ -2365,7 +2393,8 @@
Загрузка клиента Steam · %1$s
Инструмент совместимости уже устанавливается
Остановите текущую сессию перед установкой инструментов совместимости
- Не найден выпуск %1$s для ARM64
+ Не найден выпуск %1$s для %2$s
+ Античит
Для установки %1$s нужно не менее 4 ГБ свободного места плюс размер загрузки
Загрузка %1$s %2$s
Повторная загрузка · попытка %1$d из %2$d
@@ -4246,4 +4275,6 @@
Ярлык в игре
Показывать ярлык Smart Glasses
Показывать плавающую кнопку Smart Glasses поверх игры.
+ Используется профиль %1$s: %2$s
+ Используется профиль по умолчанию: %1$s
diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml
index f3819c7385..5253d6526f 100644
--- a/app/src/main/res/values-sv/strings.xml
+++ b/app/src/main/res/values-sv/strings.xml
@@ -879,7 +879,6 @@
Ta med diagnostik för Proton, Wine och grafik vid nästa spelstart. Kan sänka prestandan och använda mer lagringsutrymme.
Starta om sessionen för att spara felsökningsloggar för spel
Det gick inte att uppdatera loggningen. Kontrollera reglaget och försök igen.
- Felsökningsverktyg
Detaljerade grafikloggar
Steam-gränssnitt: GPU-ritning
Med Xclipse-drivrutinsparet ritar Steam sina sidor i mjukvara (GPU-ritning gav trasiga rutor). Slå på för ett snabbare Steam-gränssnitt om det ser rätt ut på den här telefonen.
@@ -1168,6 +1167,11 @@
Agentens verktyg är inte installerade: %1$s
Skicka inte
Bifoga
+ Filer
+ Tillåt åtkomst till bilder
+ Välj fler bilder
+ Inga bilder än
+ Tangentbord
Ta bort
Standard
Resonemangsnivå
@@ -1304,6 +1308,31 @@
Knappstorlek
Adaptiva spakar
Spelvibration
+ Redmagic Air Triggers
+ Öppna
+ Använd Air Triggers
+ Slår på axelavtryckarna utan RedMagics avtryckarpanel eller markeringar. De trycker i stället på knappar i pekskärmslayouten.
+ Vänster Air Trigger
+ Höger Air Trigger
+ Sparas för den här layouten
+ Vibration
+ Vibrerar när en Air Trigger vidrörs
+ Ljuseffekt på skärmen
+ Lyser upp skärmkanten under en Air Trigger när den vidrörs
+ LED-stämningseffekter vid beröring
+ Av
+ Fast
+ Puls
+ Åtgärd för vänster Air Trigger
+ Åtgärd för höger Air Trigger
+ Enkeltryck
+ Långt tryck
+ Snabbeld
+ Inställningar för snabbeld
+ Klickfrekvens
+ Låg
+ Normal
+ Hög
Styrspakens dödzon
Steam-knappen
QAM-knappen
@@ -2285,7 +2314,6 @@
Slå på trådlös felsökning och tryck sedan på ”Parkoppla enhet med parkopplingskod”.
Slå på trådlös felsökning och tryck sedan på ”Parkoppla enhet med parkopplingskod”. Stanna kvar i Inställningar: koden skrivs in i den här aviseringen.
6-siffrig parkopplingskod
- Tryck på Ange kod och skriv de 6 siffrorna som visas i Inställningar.
Ange Wi-Fi-parkopplingskoden
Försök med koden igen
Ange kod
@@ -2312,7 +2340,8 @@
Laddar ned Steam-klienten · %1$s
En installation av ett kompatibilitetsverktyg pågår redan
Stoppa den aktiva sessionen innan du installerar kompatibilitetsverktyg
- Kunde inte hitta en ARM64-utgåva av %1$s
+ Kunde inte hitta en %2$s-utgåva av %1$s
+ Anti-cheat
Minst 4 GB ledigt utrymme plus nedladdningens storlek krävs för att installera %1$s
Laddar ned %1$s %2$s
Försöker ladda ned igen · försök %1$d av %2$d
@@ -4165,4 +4194,6 @@
Genväg i spelet
Visa Smart Glasses-genväg
Visa den flytande Smart Glasses-knappen ovanpå spelet.
+ Använder profilen %1$s: %2$s
+ Använder standardprofilen: %1$s
diff --git a/app/src/main/res/values-th/strings.xml b/app/src/main/res/values-th/strings.xml
index 21c96ecd2a..7d4e61d40a 100644
--- a/app/src/main/res/values-th/strings.xml
+++ b/app/src/main/res/values-th/strings.xml
@@ -876,7 +876,6 @@
รวมข้อมูลวินิจฉัยของ Proton, Wine และกราฟิกในการเปิดเกมครั้งถัดไป อาจลดประสิทธิภาพและใช้พื้นที่จัดเก็บมากขึ้น
รีสตาร์ทเซสชันนี้เพื่อบันทึกบันทึกดีบักของเกม
อัปเดตการบันทึกไม่ได้ ตรวจสอบสวิตช์แล้วลองใหม่
- เครื่องมือดีบัก
บันทึกกราฟิกโดยละเอียด
อินเทอร์เฟซ Steam: วาดด้วย GPU
ด้วยไดรเวอร์คู่ Xclipse Steam จะวาดหน้าเพจด้วยซอฟต์แวร์ (การวาดด้วย GPU ทำให้ภาพแตกเป็นชิ้น) เปิดตัวเลือกนี้เพื่อให้อินเทอร์เฟซ Steam เร็วขึ้นหากดูปกติบนเครื่องนี้
@@ -1165,6 +1164,11 @@
ยังไม่ได้ติดตั้งเครื่องมือของเอเจนต์: %1$s
ไม่ต้องส่ง
แนบ
+ ไฟล์
+ อนุญาตให้เข้าถึงรูปภาพ
+ เลือกรูปภาพเพิ่ม
+ ยังไม่มีรูปภาพ
+ แป้นพิมพ์
นำออก
ค่าเริ่มต้น
ระดับการใช้เหตุผล
@@ -1298,6 +1302,31 @@
ขนาดปุ่ม
สติ๊กแบบปรับอัตโนมัติ
การสั่นของเกม
+ Redmagic Air Triggers
+ เปิด
+ ใช้ Air Triggers
+ เปิดทริกเกอร์ไหล่โดยไม่แสดงแผงทริกเกอร์หรือเครื่องหมายของ RedMagic และให้กดปุ่มในการจัดวางแบบสัมผัสแทน
+ Air Trigger ซ้าย
+ Air Trigger ขวา
+ บันทึกไว้สำหรับการจัดวางนี้
+ การสั่น
+ สั่นเมื่อแตะ Air Trigger
+ เอฟเฟกต์แสงบนหน้าจอ
+ ทำให้ขอบหน้าจอใต้ Air Trigger สว่างขึ้นเมื่อแตะ
+ เอฟเฟกต์ไฟ LED บรรยากาศเมื่อแตะ
+ ปิด
+ ติดค้าง
+ กะพริบเป็นจังหวะ
+ การทำงานของ Air Trigger ซ้าย
+ การทำงานของ Air Trigger ขวา
+ แตะครั้งเดียว
+ กดค้าง
+ ยิงรัว
+ การตั้งค่ายิงรัว
+ ความถี่ในการคลิก
+ ต่ำ
+ ปกติ
+ สูง
เดดโซนของแอนะล็อกสติ๊ก
ปุ่ม Steam
ปุ่ม QAM
@@ -2260,7 +2289,6 @@
เปิด Wireless debugging แล้วแตะ “Pair device with pairing code”
เปิด Wireless debugging แล้วแตะ “Pair device with pairing code” อยู่ในการตั้งค่าต่อไป: รหัสจะอยู่ในการแจ้งเตือนนี้
รหัสจับคู่ 6 หลัก
- แตะกรอกรหัสแล้วพิมพ์ตัวเลข 6 หลักที่แสดงในการตั้งค่า
กรอกรหัสจับคู่ Wi-Fi
ลองกรอกรหัสอีกครั้ง
กรอกรหัส
@@ -2287,7 +2315,8 @@
กำลังดาวน์โหลดไคลเอนต์ Steam · %1$s
มีการติดตั้งเครื่องมือความเข้ากันได้อื่นกำลังทำงานอยู่แล้ว
หยุดเซสชันที่กำลังทำงานก่อนติดตั้งเครื่องมือความเข้ากันได้
- ไม่พบรุ่นที่เผยแพร่แบบ ARM64 สำหรับ %1$s
+ ไม่พบรุ่นที่เผยแพร่แบบ %2$s สำหรับ %1$s
+ ระบบป้องกันการโกง
ต้องมีพื้นที่ว่างอย่างน้อย 4 GB รวมกับขนาดดาวน์โหลดเพื่อติดตั้ง %1$s
กำลังดาวน์โหลด %1$s %2$s
กำลังลองดาวน์โหลดใหม่ · ครั้งที่ %1$d จาก %2$d
@@ -4135,4 +4164,6 @@
ทางลัดในเกม
แสดงทางลัด Smart Glasses
แสดงปุ่ม Smart Glasses แบบลอยทับบนเกม
+ ใช้โปรไฟล์ %1$s: %2$s
+ ใช้โปรไฟล์เริ่มต้น: %1$s
diff --git a/app/src/main/res/values-tr/strings.xml b/app/src/main/res/values-tr/strings.xml
index acc9089167..03482cffa8 100644
--- a/app/src/main/res/values-tr/strings.xml
+++ b/app/src/main/res/values-tr/strings.xml
@@ -879,7 +879,6 @@
Sonraki oyun başlatmada Proton, Wine ve grafik tanılamalarını ekler. Performansı düşürebilir ve daha fazla depolama kullanabilir.
Oyun hata ayıklama günlüklerini kaydetmek için bu oturumu yeniden başlatın
Günlük kaydı güncellenemedi. Anahtarı kontrol edip tekrar deneyin.
- Hata ayıklama araçları
Ayrıntılı grafik günlükleri
Steam arayüzü: GPU ile çizim
Xclipse sürücü ikilisi kullanıldığında Steam, sayfalarını yazılımla çizer (GPU ile çizimde bozuk döşemeler görüldü). Bu telefonda düzgün görünüyorsa daha hızlı bir Steam arayüzü için açın.
@@ -1160,6 +1159,11 @@
Ajan araçları yüklenmedi: %1$s
Gönderme
Ekle
+ Dosyalar
+ Fotoğraflara erişime izin ver
+ Daha fazla fotoğraf seç
+ Henüz fotoğraf yok
+ Klavye
Kaldır
Varsayılan
Akıl yürütme çabası
@@ -1296,6 +1300,31 @@
Düğme boyutu
Uyarlanabilir çubuklar
Oyun titreşimi
+ Redmagic Air Triggers
+ Aç
+ Air Triggers kullan
+ Omuz tetiklerini RedMagic tetik paneli veya işaretleri olmadan açar. Bunun yerine dokunmatik düzenin düğmelerine basarlar.
+ Sol Air Trigger
+ Sağ Air Trigger
+ Bu düzen için kaydedilir
+ Titreşim
+ Bir Air Trigger\'a dokunulduğunda titrer
+ Ekran ışık efekti
+ Bir Air Trigger\'a dokunulduğunda altındaki ekran kenarını aydınlatır
+ Dokunma atmosfer LED efektleri
+ Kapalı
+ Sabit
+ Nabız
+ Sol Air Trigger işlemi
+ Sağ Air Trigger işlemi
+ Tek dokunma
+ Uzun basma
+ Hızlı ateş
+ Hızlı ateş ayarları
+ Tıklama sıklığı
+ Düşük
+ Normal
+ Yüksek
Çubuk ölü bölgesi
Steam düğmesi
QAM düğmesi
@@ -2277,7 +2306,6 @@
Kablosuz hata ayıklamayı açın, sonra “Eşleştirme koduyla cihaz eşle” seçeneğine dokunun.
Kablosuz hata ayıklamayı açın, sonra “Eşleştirme koduyla cihaz eşle” seçeneğine dokunun. Ayarlar\'dan çıkmayın: kod bu bildirime gelir.
6 haneli eşleştirme kodu
- Kodu gir\'e dokunun ve Ayarlar\'da gösterilen 6 haneyi yazın.
Wi-Fi eşleştirme kodunu girin
Kodu yeniden deneyin
Kodu gir
@@ -2304,7 +2332,8 @@
Steam istemcisi indiriliyor · %1$s
Zaten çalışan bir uyumluluk aracı yüklemesi var
Uyumluluk araçlarını yüklemeden önce etkin oturumu durdurun
- %1$s için bir ARM64 yayını bulunamadı
+ %1$s için bir %2$s yayını bulunamadı
+ Anti-cheat
%1$s\'i yüklemek için indirme boyutuna ek olarak en az 4 GB boş alan gerekir
%1$s %2$s indiriliyor
İndirme yeniden deneniyor · %2$d denemenin %1$d\'i
@@ -4165,4 +4194,6 @@
Oyun içi kısayol
Smart Glasses kısayolunu göster
Oyun üzerinde yüzen Smart Glasses düğmesini göster.
+ %1$s profili kullanılıyor: %2$s
+ Varsayılan profil kullanılıyor: %1$s
diff --git a/app/src/main/res/values-uk/strings.xml b/app/src/main/res/values-uk/strings.xml
index 6ca06df91c..90c756ac29 100644
--- a/app/src/main/res/values-uk/strings.xml
+++ b/app/src/main/res/values-uk/strings.xml
@@ -885,7 +885,6 @@
Додавати діагностику Proton, Wine і графіки під час наступного запуску гри. Може знизити продуктивність і зайняти більше місця.
Перезапустіть цей сеанс, щоб зберігати журнали налагодження ігор
Не вдалося оновити журналювання. Перевірте перемикач і спробуйте ще раз.
- Засоби діагностики
Детальні журнали графіки
Інтерфейс Steam: малювання на GPU
Із парою драйверів Xclipse Steam малює свої сторінки програмно (малювання на GPU давало пошкоджені фрагменти). Увімкніть для швидшого інтерфейсу Steam, якщо на цьому телефоні все виглядає правильно.
@@ -1174,6 +1173,11 @@
Інструменти агента не встановлено: %1$s
Не надсилати
Прикріпити
+ Файли
+ Дозволити доступ до фото
+ Вибрати ще фото
+ Поки немає фото
+ Клавіатура
Видалити
За замовчуванням
Рівень міркувань
@@ -1318,6 +1322,31 @@
Розмір кнопок
Адаптивні стики
Вібрація гри
+ Redmagic Air Triggers
+ Відкрити
+ Використовувати Air Triggers
+ Вмикає плечові тригери без панелі та міток RedMagic. Натомість вони натискають кнопки сенсорної розкладки.
+ Лівий Air Trigger
+ Правий Air Trigger
+ Зберігається для цієї розкладки
+ Вібрація
+ Вібрує під час дотику до Air Trigger
+ Світловий ефект на екрані
+ Підсвічує край екрана під Air Trigger під час дотику
+ LED-ефекти атмосфери під час дотику
+ Вимк.
+ Постійно
+ Пульсація
+ Дія лівого Air Trigger
+ Дія правого Air Trigger
+ Одне торкання
+ Довге натискання
+ Швидка стрільба
+ Налаштування швидкої стрільби
+ Частота натискань
+ Низька
+ Звичайна
+ Висока
Мертва зона стіка
Кнопка Steam
Кнопка QAM
@@ -2337,7 +2366,6 @@
Увімкніть бездротове налагодження, потім торкніться «Прив’язати пристрій за кодом прив’язки».
Увімкніть бездротове налагодження, потім торкніться «Прив’язати пристрій за кодом прив’язки». Залишайтеся в «Налаштуваннях»: код з’явиться в цьому сповіщенні.
6-значний код прив’язки
- Торкніться «Ввести код» і введіть 6 цифр, показаних у «Налаштуваннях».
Введіть код прив’язки Wi-Fi
Спробуйте код ще раз
Ввести код
@@ -2364,7 +2392,8 @@
Завантаження клієнта Steam · %1$s
Встановлення інструмента сумісності вже триває
Зупиніть активний сеанс, перш ніж встановлювати інструменти сумісності
- Не вдалося знайти випуск ARM64 для %1$s
+ Не вдалося знайти випуск %2$s для %1$s
+ Античит
Щоб встановити %1$s, потрібно щонайменше 4 GB вільного місця плюс розмір завантаження
Завантаження %1$s %2$s
Повтор завантаження · спроба %1$d з %2$d
@@ -4245,4 +4274,6 @@
Ярлик у грі
Показувати ярлик Smart Glasses
Показувати плаваючу кнопку Smart Glasses поверх гри.
+ Використовується профіль %1$s: %2$s
+ Використовується профіль за замовчуванням: %1$s
diff --git a/app/src/main/res/values-vi/strings.xml b/app/src/main/res/values-vi/strings.xml
index 420c0c1bf5..70300f0512 100644
--- a/app/src/main/res/values-vi/strings.xml
+++ b/app/src/main/res/values-vi/strings.xml
@@ -876,7 +876,6 @@
Thêm chẩn đoán Proton, Wine và đồ họa vào lần khởi chạy game tiếp theo. Có thể giảm hiệu năng và tốn thêm bộ nhớ.
Khởi động lại phiên này để lưu nhật ký gỡ lỗi game
Không thể cập nhật ghi nhật ký. Hãy kiểm tra công tắc rồi thử lại.
- Công cụ gỡ lỗi
Nhật ký đồ họa chi tiết
Giao diện Steam: vẽ bằng GPU
Với cặp driver Xclipse, Steam vẽ các trang bằng phần mềm (vẽ bằng GPU làm vỡ các ô hiển thị). Bật để có giao diện Steam nhanh hơn nếu hình hiển thị đúng trên máy này.
@@ -1165,6 +1164,11 @@
Chưa cài công cụ của tác tử: %1$s
Không gửi
Đính kèm
+ Tệp
+ Cho phép truy cập ảnh
+ Chọn thêm ảnh
+ Chưa có ảnh
+ Bàn phím
Xóa
Mặc định
Mức độ lập luận
@@ -1298,6 +1302,31 @@
Kích thước nút
Cần thích ứng
Rung khi chơi game
+ Redmagic Air Triggers
+ Mở
+ Dùng Air Triggers
+ Bật trigger vai mà không hiện bảng trigger hay điểm đánh dấu của RedMagic. Thay vào đó, chúng nhấn các nút của bố cục cảm ứng.
+ Air Trigger trái
+ Air Trigger phải
+ Được lưu cho bố cục này
+ Rung
+ Rung khi chạm vào Air Trigger
+ Hiệu ứng ánh sáng trên màn hình
+ Làm sáng cạnh màn hình bên dưới Air Trigger khi chạm vào
+ Hiệu ứng đèn LED không khí khi chạm
+ Tắt
+ Sáng liên tục
+ Nhấp nháy theo nhịp
+ Thao tác của Air Trigger trái
+ Thao tác của Air Trigger phải
+ Chạm một lần
+ Nhấn giữ
+ Bắn nhanh
+ Cài đặt bắn nhanh
+ Tần suất nhấp
+ Thấp
+ Bình thường
+ Cao
Vùng chết của cần điều khiển
Nút Steam
Nút QAM
@@ -2260,7 +2289,6 @@
Bật Gỡ lỗi qua mạng không dây, rồi nhấn “Pair device with pairing code”.
Bật Gỡ lỗi qua mạng không dây, rồi nhấn “Pair device with pairing code”. Ở lại trong Settings: mã sẽ hiện trong thông báo này.
Mã ghép nối 6 số
- Nhấn Enter code và nhập 6 số hiện trong Settings.
Nhập mã ghép nối Wi-Fi
Thử lại mã
Nhập mã
@@ -2287,7 +2315,8 @@
Đang tải client Steam · %1$s
Một lượt cài công cụ tương thích đang chạy
Dừng phiên đang hoạt động trước khi cài công cụ tương thích
- Không tìm thấy bản phát hành ARM64 cho %1$s
+ Không tìm thấy bản phát hành %2$s cho %1$s
+ Anti-cheat
Cần ít nhất 4 GB trống cộng với kích thước tải xuống để cài %1$s
Đang tải %1$s %2$s
Đang thử lại tải · lần %1$d trong %2$d
@@ -4135,4 +4164,6 @@
Lối tắt trong trò chơi
Hiển thị lối tắt Smart Glasses
Hiển thị nút Smart Glasses nổi phía trên trò chơi.
+ Đang dùng hồ sơ %1$s: %2$s
+ Đang dùng hồ sơ mặc định: %1$s
diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml
index eb5407a271..2e606c068a 100644
--- a/app/src/main/res/values-zh-rCN/strings.xml
+++ b/app/src/main/res/values-zh-rCN/strings.xml
@@ -876,7 +876,6 @@
在下次启动游戏时包含 Proton、Wine 和图形诊断信息。可能降低性能并占用更多存储空间。
重启此会话以保存游戏调试日志
无法更新日志设置。请检查开关后重试。
- 调试工具
详细图形日志
Steam 界面:GPU 绘制
使用 Xclipse 驱动组合时,Steam 以软件方式绘制页面(GPU 绘制会出现图块错乱)。若在这台手机上画面正常,开启即可获得更快的 Steam 界面。
@@ -1248,6 +1247,11 @@
智能体工具未安装:%1$s
不发送
添加附件
+ 文件
+ 允许访问照片
+ 选择更多照片
+ 还没有照片
+ 键盘
移除
默认
推理强度
@@ -1381,6 +1385,31 @@
按钮大小
自适应摇杆
游戏震动
+ 红魔肩键
+ 打开
+ 使用肩键
+ 开启肩键,但不显示红魔的肩键面板和屏幕标记。肩键改为按下触控布局中的按钮。
+ 左肩键
+ 右肩键
+ 按此布局保存
+ 振动
+ 触摸肩键时振动
+ 屏幕灯效
+ 触摸肩键时点亮其下方的屏幕边缘
+ 触控氛围灯效
+ 关闭
+ 常亮
+ 脉冲
+ 左肩键动作
+ 右肩键动作
+ 单击
+ 长按
+ 连发
+ 连发设置
+ 点击频率
+ 低
+ 正常
+ 高
摇杆死区
Steam 按钮
QAM 按钮
@@ -2337,7 +2366,6 @@
开启无线调试,然后点按“使用配对码配对设备”。
开启无线调试,然后点按“使用配对码配对设备”。请停留在“设置”中:配对码在此通知中输入。
6 位配对码
- 点按“输入配对码”,然后输入“设置”中显示的 6 位数字。
输入 Wi-Fi 配对码
请重新输入配对码
输入配对码
@@ -2364,7 +2392,8 @@
正在下载 Steam 客户端 · %1$s
已有兼容性工具正在安装
安装兼容性工具前请先停止当前会话
- 找不到 %1$s 的 ARM64 发布版本
+ 找不到 %1$s 的 %2$s 发布版本
+ 反作弊
安装 %1$s 需要至少 4 GB 可用空间外加下载大小
正在下载 %1$s %2$s
正在重试下载 · 第 %1$d 次,共 %2$d 次
@@ -4133,4 +4162,6 @@
游戏内快捷方式
显示 Smart Glasses 快捷方式
在游戏画面上显示悬浮的 Smart Glasses 按钮。
+ 正在使用 %1$s 配置:%2$s
+ 正在使用默认配置:%1$s
diff --git a/app/src/main/res/values-zh-rHK/strings.xml b/app/src/main/res/values-zh-rHK/strings.xml
index 7f4bbd0233..51859bdb29 100644
--- a/app/src/main/res/values-zh-rHK/strings.xml
+++ b/app/src/main/res/values-zh-rHK/strings.xml
@@ -875,7 +875,6 @@
在下次啟動遊戲時加入 Proton、Wine 和圖形診斷資訊。可能降低效能並佔用更多儲存空間。
重新啟動此會話以儲存遊戲偵錯記錄
無法更新記錄設定。請檢查開關後再試一次。
- 偵錯工具
詳細圖形記錄
Steam 介面:GPU 繪製
使用 Xclipse 驅動程式組合時,Steam 會以軟件繪製頁面(GPU 繪製曾出現圖塊破損)。若在這部手機上顯示正常,可開啟以加快 Steam 介面。
@@ -1164,6 +1163,11 @@
智能體工具未安裝:%1$s
不要傳送
附加
+ 檔案
+ 允許存取相片
+ 選擇更多相片
+ 尚未有相片
+ 鍵盤
移除
預設
推理強度
@@ -1297,6 +1301,31 @@
按鍵大小
自動調整搖桿
遊戲震動
+ 紅魔肩鍵
+ 開啟
+ 使用肩鍵
+ 開啟肩鍵,但不顯示紅魔的肩鍵面板和螢幕標記。肩鍵改為按下觸控佈局中的按鈕。
+ 左肩鍵
+ 右肩鍵
+ 按此佈局儲存
+ 震動
+ 觸摸肩鍵時震動
+ 螢幕燈效
+ 觸摸肩鍵時點亮其下方的螢幕邊緣
+ 觸控氛圍燈效
+ 關閉
+ 常亮
+ 脈衝
+ 左肩鍵動作
+ 右肩鍵動作
+ 單擊
+ 長按
+ 連發
+ 連發設定
+ 點擊頻率
+ 低
+ 正常
+ 高
搖桿死區
Steam 按鈕
QAM 按鈕
@@ -2259,7 +2288,6 @@
開啟無線偵錯,然後輕按「使用配對碼配對裝置」。
開啟無線偵錯,然後輕按「使用配對碼配對裝置」。請留在「設定」中:配對碼需在此通知中輸入。
6 位數配對碼
- 輕按「輸入配對碼」,然後輸入「系統設定」中顯示的 6 位數字。
輸入 Wi-Fi 配對碼
請再次輸入配對碼
輸入配對碼
@@ -2286,7 +2314,8 @@
正在下載 Steam 用戶端 · %1$s
已有兼容性工具正在安裝
請先停止目前的會話,再安裝兼容性工具
- 找不到 %1$s 的 ARM64 發佈版本
+ 找不到 %1$s 的 %2$s 發佈版本
+ 防作弊
安裝 %1$s 需要至少 4 GB 可用空間,另加下載大小
正在下載 %1$s %2$s
正在重試下載 · 第 %1$d 次,共 %2$d 次
@@ -4133,4 +4162,6 @@
遊戲內捷徑
顯示 Smart Glasses 捷徑
在遊戲畫面上顯示浮動的 Smart Glasses 按鈕。
+ 正在使用 %1$s 設定檔:%2$s
+ 正在使用預設設定檔:%1$s
diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml
index e52193ca17..6e7d316be3 100644
--- a/app/src/main/res/values-zh-rTW/strings.xml
+++ b/app/src/main/res/values-zh-rTW/strings.xml
@@ -875,7 +875,6 @@
在下次啟動遊戲時加入 Proton、Wine 和圖形診斷資訊。可能降低效能並佔用更多儲存空間。
重新啟動此工作階段以儲存遊戲偵錯日誌
無法更新日誌設定。請檢查開關後再試一次。
- 偵錯工具
詳細圖形記錄
Steam 介面:GPU 繪製
使用 Xclipse 驅動程式組合時,Steam 會改用軟體繪製頁面(GPU 繪製曾出現圖塊破損)。若這支手機上顯示正常,開啟此選項可加快 Steam 介面。
@@ -1164,6 +1163,11 @@
智慧代理工具未安裝:%1$s
不要傳送
附加
+ 檔案
+ 允許存取相片
+ 選擇更多相片
+ 還沒有相片
+ 鍵盤
移除
預設
推理強度
@@ -1297,6 +1301,31 @@
按鍵大小
自適應搖桿
遊戲震動
+ 紅魔肩鍵
+ 開啟
+ 使用肩鍵
+ 開啟肩鍵,但不顯示紅魔的肩鍵面板和螢幕標記。肩鍵改為按下觸控版面配置中的按鈕。
+ 左肩鍵
+ 右肩鍵
+ 依此版面配置儲存
+ 震動
+ 觸碰肩鍵時震動
+ 螢幕燈效
+ 觸碰肩鍵時點亮其下方的螢幕邊緣
+ 觸控氛圍燈效
+ 關閉
+ 恆亮
+ 脈衝
+ 左肩鍵動作
+ 右肩鍵動作
+ 單擊
+ 長按
+ 連發
+ 連發設定
+ 點擊頻率
+ 低
+ 正常
+ 高
搖桿死區
Steam 按鈕
QAM 按鈕
@@ -2259,7 +2288,6 @@
開啟無線偵錯,然後點擊「使用配對碼配對裝置」。
開啟無線偵錯,然後點擊「使用配對碼配對裝置」。請留在「設定」中:配對碼要輸入在這則通知裡。
6 位數配對碼
- 點擊「輸入配對碼」,然後輸入「Android 設定」中顯示的 6 位數字。
輸入 Wi-Fi 配對碼
請再次輸入配對碼
輸入配對碼
@@ -2286,7 +2314,8 @@
正在下載 Steam 用戶端 · %1$s
已有相容性工具正在安裝
安裝相容性工具前,請先停止執行中的工作階段
- 找不到 %1$s 的 ARM64 發行版本
+ 找不到 %1$s 的 %2$s 發行版本
+ 反作弊
安裝 %1$s 需要至少 4 GB 可用空間,再加上下載大小
正在下載 %1$s %2$s
正在重試下載 · 第 %1$d 次,共 %2$d 次
@@ -4133,4 +4162,6 @@
遊戲內捷徑
顯示 Smart Glasses 捷徑
在遊戲畫面上顯示浮動的 Smart Glasses 按鈕。
+ 正在使用 %1$s 設定檔:%2$s
+ 正在使用預設設定檔:%1$s
diff --git a/app/src/main/res/values/pairing_keypad_styles.xml b/app/src/main/res/values/pairing_keypad_styles.xml
new file mode 100644
index 0000000000..6d1b8cd50b
--- /dev/null
+++ b/app/src/main/res/values/pairing_keypad_styles.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index d27bb069ea..746f090aaa 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -999,7 +999,8 @@
Include Proton, Wine and graphics diagnostics on the next game launch. Turns itself off when that session ends. Can reduce performance and use more storage.
Restart this session to save game debug logs
Couldn\'t update logging. Check the switch and try again.
- Debugging tools
+ droiddeckctl
+ Allow command-line control of DroidDeck sessions, input, and logs.
Detailed graphics logs
Steam interface: GPU drawing
With the Xclipse driver pair, Steam draws its pages in software (GPU drawing showed broken tiles). Turn on for a faster Steam interface if it looks right on this phone.
@@ -1065,6 +1066,9 @@
Landscape
Reverse landscape
Fullscreen
+ Launcher fullscreen
+ Session fullscreen
+ Landscape only
Hides the Android status and navigation bars
Shows the Android status and navigation bars
Swipe between pages
@@ -1247,6 +1251,10 @@
Not loaded: %1$s
Waiting for a restart
Kept
+
+ - %d kept build
+ - %d kept builds
+
For another version
Rebuild
Deletes this build from the device
@@ -1349,6 +1357,11 @@
Agent tools not installed: %1$s
Don\'t send
Attach
+ Files
+ Allow photo access
+ Choose more photos
+ No photos yet
+ Keyboard
Remove
Default
Reasoning effort
@@ -1482,7 +1495,7 @@
Wireless debugging needs Wi-Fi. Any network works; it doesn\'t need internet.
Open Settings → Developer options → Wireless debugging and turn it on
Tap “Pair device with pairing code”
- Type the code into the DroidDeck notification
+ Tap ▼ to keep the keypad open. Swipe down if it closes.
In About phone, tap Build number 7 times
Turn on Wireless debugging
Open Wireless debugging, then tap “Pair device with pairing code”
@@ -1513,6 +1526,31 @@
Button size
Adaptive sticks
Game vibration
+ Redmagic Air Triggers
+ Open
+ Use Air Triggers
+ Turns on the shoulder triggers without RedMagic\'s trigger panel or markers. They press buttons of the touch layout instead.
+ Left Air Trigger
+ Right Air Trigger
+ Saved for this layout
+ Vibration
+ Vibrates when an Air Trigger is touched
+ Screen light effect
+ Lights up the screen edge under an Air Trigger when it is touched
+ Touch atmosphere LED effects
+ Off
+ Steady
+ Pulse
+ Left Air Trigger action
+ Right Air Trigger action
+ Single tap
+ Long press
+ Rapid fire
+ Rapid fire settings
+ Click frequency
+ Low
+ Normal
+ High
Stick dead zone
Steam button
QAM button
@@ -2628,10 +2666,11 @@
Turn on Wireless debugging, then tap “Pair device with pairing code”.
Turn on Wireless debugging, then tap “Pair device with pairing code”. Stay in Settings: the code goes in this notification.
6-digit pairing code
- Tap Enter code and type the 6 digits shown in Settings.
+ %1$d of 6 digits entered
+ Delete last digit
Enter the Wi-Fi pairing code
Try the code again
- Enter code
+ Tap ✓ to pair
Setting up Steam
Steam is ready
Tap to go back to DroidDeck. You can turn Wireless debugging off now.
@@ -2658,7 +2697,8 @@
A compatibility tool install is already running
Stop the active session before installing compatibility tools
- Could not find an ARM64 release for %1$s
+ Could not find an %2$s release for %1$s
+ Anti-Cheat
At least 4 GB free plus the download size is required to install %1$s
Downloading %1$s %2$s
Retrying download · attempt %1$d of %2$d
@@ -2871,6 +2911,8 @@
Shared by Steam and Desktop.
Applies live. Shared by Steam and Desktop.
FSR, GSR and NIS apply when enlarging the session image. Sharpen only also works without enlargement.
+ Using %1$s profile: %2$s
+ Using Default profile: %1$s
Filter sharpness
%1$s Sets scaling to %2$s.
Match screen (%1$d×%2$d)
@@ -4442,7 +4484,12 @@
In-game menu
Steam or Desktop options (swipe up)
Steam quick menu (•••)
- Logs
+ Diagnostics
+ UI previews
+ Log files
+ Reset
+ Share, save, or delete individual session logs.
+ Show Dev Harness over the launcher and games.
UI zoo
Screens that are hard to reach, shown only when you pick one
Open
@@ -4491,7 +4538,8 @@
Syncthing
Download settings
Developer tools
- Agent, graphics logs and other tools for testing DroidDeck
+ Show developer tools
+ Show advanced testing and diagnostics controls.
Options
Steam defaults · used each time Steam starts
Desktop defaults · used each time Desktop starts
diff --git a/app/src/test/java/com/droiddeck/launcher/core/DeviceReportBuildDateTest.kt b/app/src/test/java/com/droiddeck/launcher/core/DeviceReportBuildDateTest.kt
new file mode 100644
index 0000000000..21e4ad4206
--- /dev/null
+++ b/app/src/test/java/com/droiddeck/launcher/core/DeviceReportBuildDateTest.kt
@@ -0,0 +1,16 @@
+package com.droiddeck.launcher.core
+
+import org.junit.Assert.assertEquals
+import org.junit.Assert.assertNull
+import org.junit.Test
+
+class DeviceReportBuildDateTest {
+ @Test fun theFirmwareBuildTimeIsShownInUtc() {
+ assertEquals("2024-11-08 17:47 UTC", DeviceReport.buildDate(1_731_088_027_000L))
+ }
+
+ @Test fun anUnsetBuildTimeIsUnknown() {
+ assertNull(DeviceReport.buildDate(0L))
+ assertNull(DeviceReport.buildDate(-1L))
+ }
+}
diff --git a/app/src/test/java/com/droiddeck/launcher/core/WirelessAdbReconnectTest.kt b/app/src/test/java/com/droiddeck/launcher/core/WirelessAdbReconnectTest.kt
new file mode 100644
index 0000000000..71efb6614e
--- /dev/null
+++ b/app/src/test/java/com/droiddeck/launcher/core/WirelessAdbReconnectTest.kt
@@ -0,0 +1,57 @@
+package com.droiddeck.launcher.core
+
+import org.junit.Assert.assertEquals
+import org.junit.Assert.assertNull
+import org.junit.Test
+
+class WirelessAdbReconnectTest {
+ private val local = WirelessAdbFix.LOOPBACK
+ private val old = 35555
+ private val current = 36666
+
+ @Test
+ fun localPortRotationWithoutMdnsUsesPairedKeyFallback() {
+ var scanned = false
+ val result = WirelessAdbFix.chooseConnectPort(
+ local, old, property = { old }, advertised = { accept ->
+ check(!accept(old))
+ null
+ }, answers = { it == old }, authenticatedLocal = {
+ scanned = true
+ current
+ },
+ )
+ assertEquals(current, result)
+ check(scanned)
+ }
+
+ @Test
+ fun localPortFromPropertyAvoidsDiscoveryAndScan() {
+ val result = WirelessAdbFix.chooseConnectPort(
+ local, old, property = { current }, advertised = { error("unexpected NSD") },
+ answers = { it == current }, authenticatedLocal = { error("unexpected scan") },
+ )
+ assertEquals(current, result)
+ }
+
+ @Test
+ fun staleLocalAdvertisementDoesNotBlockNextValidPort() {
+ val result = WirelessAdbFix.chooseConnectPort(
+ local, old, property = { null },
+ advertised = { accept -> listOf(old, 35000, current).firstOrNull(accept) },
+ answers = { it == current }, authenticatedLocal = { error("unexpected scan") },
+ )
+ assertEquals(current, result)
+ }
+
+ @Test
+ fun remoteSavedConnectNeverUsesLocalPropertyOrScan() {
+ val result = WirelessAdbFix.chooseConnectPort(
+ "203.0.113.10", old, property = { error("unexpected local property") },
+ advertised = { accept -> listOf(old).firstOrNull(accept) },
+ answers = { error("unexpected local reachability check") },
+ authenticatedLocal = { error("unexpected loopback scan") },
+ )
+ assertNull(result)
+ }
+}
diff --git a/app/src/test/java/com/droiddeck/launcher/core/WirelessPairingKeypadTest.kt b/app/src/test/java/com/droiddeck/launcher/core/WirelessPairingKeypadTest.kt
new file mode 100644
index 0000000000..975a962b15
--- /dev/null
+++ b/app/src/test/java/com/droiddeck/launcher/core/WirelessPairingKeypadTest.kt
@@ -0,0 +1,38 @@
+package com.droiddeck.launcher.core
+
+import org.junit.Assert.assertEquals
+import org.junit.Assert.assertFalse
+import org.junit.Assert.assertTrue
+import org.junit.Test
+
+class WirelessPairingKeypadTest {
+ @Test fun sixDigitsKeepLeadingZeroesAndRejectExtraKeys() {
+ val pad = WirelessPairingKeypad()
+ assertFalse(pad.ready)
+ listOf(0, 0, 1, 2, 3, 4).forEach { assertTrue(pad.press(it)) }
+ assertTrue(pad.ready)
+ assertFalse(pad.press(5))
+ assertFalse(pad.press(WirelessPairingKeypad.SUBMIT))
+ assertEquals("001234", pad.digits)
+ }
+
+ @Test fun deleteLetsYouCorrectTheLastDigit() {
+ val pad = WirelessPairingKeypad()
+ assertFalse(pad.press(WirelessPairingKeypad.DELETE))
+ "321987".forEach { pad.press(it.digitToInt()) }
+ assertTrue(pad.press(WirelessPairingKeypad.DELETE))
+ assertFalse(pad.ready)
+ assertEquals("32198–", pad.display)
+ assertTrue(pad.press(6))
+ assertEquals("321986", pad.digits)
+ }
+
+ @Test fun startingAnotherAttemptClearsTheCode() {
+ val pad = WirelessPairingKeypad()
+ assertFalse(pad.press(-1))
+ pad.press(7)
+ pad.clear()
+ assertEquals("", pad.digits)
+ assertEquals("––––––", pad.display)
+ }
+}
diff --git a/app/src/test/java/com/droiddeck/launcher/files/AllFilesAccessTest.kt b/app/src/test/java/com/droiddeck/launcher/files/AllFilesAccessTest.kt
index 0737cac0f7..25655e7547 100644
--- a/app/src/test/java/com/droiddeck/launcher/files/AllFilesAccessTest.kt
+++ b/app/src/test/java/com/droiddeck/launcher/files/AllFilesAccessTest.kt
@@ -1,5 +1,6 @@
package com.droiddeck.launcher.files
+import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import org.junit.Test
@@ -37,4 +38,26 @@ class AllFilesAccessTest {
assertFalse(AllFilesAccess.covers("/storage/1A2B-3C4D/Android/obb/com.droiddeck.launcher"))
assertFalse(AllFilesAccess.covers("/data/user/0/com.droiddeck.launcher/files"))
}
+
+ @Test
+ fun stateNamesWhatTheReportShows() {
+ assertEquals("not needed", AllFilesAccess.state(sdk = 29) { false })
+ assertEquals("missing", AllFilesAccess.state(sdk = 34) { false })
+ assertEquals("granted", AllFilesAccess.state(sdk = 34) { true })
+ }
+
+ @Test
+ fun sharedStorageMayHideFilesOnlyWithoutAccess() {
+ assertTrue(AllFilesAccess.mayHideFilesIn("/storage/emulated/0", sdk = 34) { false })
+ assertTrue(AllFilesAccess.mayHideFilesIn("/storage/1A2B-3C4D/Games", sdk = 34) { false })
+ assertFalse(AllFilesAccess.mayHideFilesIn("/storage/emulated/0", sdk = 34) { true })
+ assertFalse(AllFilesAccess.mayHideFilesIn("/storage/emulated/0", sdk = 29) { false })
+ }
+
+ @Test
+ fun appFoldersAndPrivateStorageNeverHideFiles() {
+ assertFalse(AllFilesAccess.mayHideFilesIn("/storage/emulated/0/Android/data/com.droiddeck.launcher/files", sdk = 34) { false })
+ assertFalse(AllFilesAccess.mayHideFilesIn("/data/user/0/com.droiddeck.launcher/files/Games", sdk = 34) { false })
+ assertFalse(AllFilesAccess.mayHideFilesIn("/mnt/media_rw/1A2B-3C4D", sdk = 34) { false })
+ }
}
diff --git a/app/src/test/java/com/droiddeck/launcher/input/RedMagicAirTriggersTest.kt b/app/src/test/java/com/droiddeck/launcher/input/RedMagicAirTriggersTest.kt
new file mode 100644
index 0000000000..83c75a2970
--- /dev/null
+++ b/app/src/test/java/com/droiddeck/launcher/input/RedMagicAirTriggersTest.kt
@@ -0,0 +1,358 @@
+package com.droiddeck.launcher.input
+
+import android.hardware.input.InputManager
+import android.os.Looper
+import android.provider.Settings
+import android.view.InputDevice
+import android.view.KeyCharacterMap
+import android.view.KeyEvent
+import java.io.File
+import java.time.Duration
+import java.util.concurrent.Executor
+import org.junit.After
+import org.junit.Assert.*
+import org.junit.Before
+import org.junit.Test
+import org.junit.runner.RunWith
+import org.robolectric.RobolectricTestRunner
+import org.robolectric.RuntimeEnvironment
+import org.robolectric.Shadows.shadowOf
+import org.robolectric.annotation.Config
+import org.robolectric.shadows.InputDeviceBuilder
+
+@RunWith(RobolectricTestRunner::class)
+@Config(sdk = [34], manifest = Config.NONE, shadows = [JoyConPadTest.RecordingWriter::class])
+class RedMagicAirTriggersTest {
+ private val events = mutableListOf()
+ private val router = InputRouter(object : InputOutput {
+ override fun key(code: Int, down: Boolean) { events += "key:$code:$down" }
+ override fun button(code: Int, down: Boolean) { events += "button:$code:$down" }
+ override fun pointer(dx: Float, dy: Float) {}
+ override fun scroll(steps: Int) {}
+ override fun command(command: InputCommand) { events += command.name }
+ override fun command(command: InputCommand, role: InputRole) { events += "${command.name}:$role" }
+ override fun requestMotion() {}
+ })
+ private val context = RuntimeEnvironment.getApplication()
+ private val bridge = PadBridge(File(context.cacheDir, "air-trigger-input"))
+ private val input = AirTriggerInput(bridge)
+ private val lt = InputSurfaceElement(InputControl.LT, .1f, .1f, .1f, .1f)
+ private val rt = InputSurfaceElement(InputControl.RT, .8f, .1f, .1f, .1f)
+ private val jump = InputSurfaceElement(InputControl.A, .8f, .8f, .1f, .1f, id = "custom:jump", name = "Jump")
+ private val stick = InputSurfaceElement(InputControl.LS, .1f, .7f, .2f, .2f)
+ private val layout = SavedInputLayout("pad", "Pad", listOf(lt, rt, jump, stick))
+
+ @Before fun setup() { bridge.setInputRouter(router); DeckControls.setRouter(router) }
+ @After fun close() { input.close(); bridge.stop(); DeckControls.setRouter(null); DeckControls.releaseAll() }
+
+ private fun bind(vararg actions: Pair) {
+ bridge.setInputProfile(InputProfile("test", elements = mapOf(InputRole.PRIMARY to mapOf(*actions))))
+ }
+ private fun setups(vararg chosen: Pair) = chosen.associate { (trigger, element) -> trigger to AirTriggerSetup(element) }
+ private fun down(trigger: AirTrigger, enabled: Boolean = true, repeat: Int = 0) = input.onKey(trigger, KeyEvent.ACTION_DOWN, repeat, enabled)
+ private fun up(trigger: AirTrigger) = input.onKey(trigger, KeyEvent.ACTION_UP, 0, true)
+ private fun idle(ms: Long) = shadowOf(Looper.getMainLooper()).idleFor(Duration.ofMillis(ms))
+
+ private fun keyboard(id: Int, name: String, vararg keys: Int, external: Boolean = false): InputDevice {
+ val device = InputDeviceBuilder.newBuilder().setId(id).setName(name).setDescriptor("keyboard-$id")
+ .setExternal(external).setSources(InputDevice.SOURCE_KEYBOARD)
+ .setKeyCharacterMap(KeyCharacterMap.load(KeyCharacterMap.VIRTUAL_KEYBOARD)).build()
+ val manager = shadowOf(context.getSystemService(InputManager::class.java))
+ manager.addInputDevice(device)
+ manager.addInputDeviceKeys(id, keys)
+ return device
+ }
+
+ @Test fun onlyTheTriggerDeviceKeysAreAirTriggers() {
+ val triggers = keyboard(10, "nubia_tgk_aw_sar0_ch0")
+ val externalKeyboard = keyboard(11, "Keychron K2", KeyEvent.KEYCODE_F7, KeyEvent.KEYCODE_F8, external = true)
+ assertEquals(AirTrigger.LEFT, AirTrigger.of(KeyEvent.KEYCODE_F7, triggers))
+ assertEquals(AirTrigger.RIGHT, AirTrigger.of(KeyEvent.KEYCODE_F8, triggers))
+ assertNull(AirTrigger.of(KeyEvent.KEYCODE_F7, externalKeyboard))
+ assertNull(AirTrigger.of(KeyEvent.KEYCODE_F8, null))
+ assertNull(AirTrigger.of(KeyEvent.KEYCODE_VOLUME_DOWN, triggers))
+ }
+
+ @Test fun theUnnamedInternalKeyboardCanContainBothTriggers() {
+ val left = KeyEvent.KEYCODE_F7
+ val right = KeyEvent.KEYCODE_F8
+ val merged = keyboard(10, "", left, right, KeyEvent.KEYCODE_POWER)
+ assertEquals(AirTrigger.LEFT, AirTrigger.of(left, merged))
+ assertEquals(AirTrigger.RIGHT, AirTrigger.of(right, merged))
+ assertNull(AirTrigger.of(left, keyboard(11, "", left, right, external = true)))
+ assertNull(AirTrigger.of(left, keyboard(12, "", left)))
+ assertNull(AirTrigger.of(left, keyboard(-1, "", left, right)))
+ }
+
+ @Test fun theTriggerLightUsesTheCodeRedMagicsSettingsGiveTheChosenEffect() {
+ val settings = """{"version":1,"shoulder_effects":{"close":"02000000","steady":"02101009","pulse":"021"},"selection":"02101000"}"""
+ assertEquals("02101009", RedMagicAirTriggers.shoulderEffect(settings, AirTriggerLed.STEADY))
+ assertEquals("02000000", RedMagicAirTriggers.shoulderEffect(settings, AirTriggerLed.OFF))
+ assertEquals("02102000", RedMagicAirTriggers.shoulderEffect(settings, AirTriggerLed.PULSE))
+ assertEquals("02101000", RedMagicAirTriggers.shoulderEffect(null, AirTriggerLed.STEADY))
+ assertEquals("02102000", RedMagicAirTriggers.shoulderEffect("not json", AirTriggerLed.PULSE))
+ }
+
+ @Test fun openingShowsTheIdleLightAndAppliesAgainAfterGameSpacesOwnSetup() {
+ val calls = mutableListOf()
+ val worker = RedMagicAirTriggers.worker
+ val lights = RedMagicAirTriggers.lights
+ RedMagicAirTriggers.worker = Executor { it.run() }
+ RedMagicAirTriggers.lights = object : TriggerLights {
+ override fun request(action: Int) { calls += "$action" }
+ override fun setEffect(effect: String) { calls += effect }
+ }
+ Settings.Global.putString(context.contentResolver, "lighting_shoulder_config_json", """{"shoulder_effects":{"pulse":"02102000"}}""")
+ AirTriggerPrefs.setLed(context, AirTriggerLed.PULSE)
+ try {
+ val opened = listOf("110", "02102000", "107", "109")
+ RedMagicAirTriggers.open(context)
+ assertEquals(opened, calls)
+ shadowOf(Looper.getMainLooper()).idleFor(Duration.ofSeconds(1))
+ assertEquals(opened + opened, calls)
+ RedMagicAirTriggers.restore(context)
+ shadowOf(Looper.getMainLooper()).idleFor(Duration.ofSeconds(10))
+ assertEquals(opened + opened + "111", calls)
+ } finally {
+ RedMagicAirTriggers.worker = worker
+ RedMagicAirTriggers.lights = lights
+ }
+ }
+
+ @Test fun triggersDefaultToTheLayoutTriggersAndFollowAChoiceThatStillExists() {
+ assertEquals(lt, AirTriggerButtons.resolve(layout, AirTrigger.LEFT, null))
+ assertEquals(rt, AirTriggerButtons.resolve(layout, AirTrigger.RIGHT, null))
+ assertEquals(jump, AirTriggerButtons.resolve(layout, AirTrigger.LEFT, "custom:jump"))
+ assertEquals(lt, AirTriggerButtons.resolve(layout, AirTrigger.LEFT, "custom:removed"))
+ assertEquals(listOf(lt, rt, jump), AirTriggerButtons.options(layout))
+ }
+
+ @Test fun aLayoutWithoutTriggersStillOffersTheControllerTriggers() {
+ val buttons = SavedInputLayout("buttons", "Buttons", listOf(jump))
+ assertEquals(listOf("custom:jump", "legacy:lt", "legacy:rt"), AirTriggerButtons.options(buttons).map { it.id })
+ assertEquals("legacy:rt", AirTriggerButtons.resolve(buttons, AirTrigger.RIGHT, null).id)
+ assertEquals("legacy:lt", AirTriggerButtons.resolve(null, AirTrigger.LEFT, null).id)
+ }
+
+ @Test fun touchFeedbackStartsOffWithASteadyLight() {
+ assertFalse(AirTriggerPrefs.vibration(context))
+ assertFalse(AirTriggerPrefs.screenLight(context))
+ assertEquals(AirTriggerLed.STEADY, AirTriggerPrefs.led(context))
+ AirTriggerPrefs.setVibration(context, true)
+ AirTriggerPrefs.setScreenLight(context, true)
+ AirTriggerPrefs.setLed(context, AirTriggerLed.OFF)
+ assertTrue(AirTriggerPrefs.vibration(context))
+ assertTrue(AirTriggerPrefs.screenLight(context))
+ assertEquals(AirTriggerLed.OFF, AirTriggerPrefs.led(context))
+ }
+
+ @Test fun actionsAndRatesAreSavedPerLayoutBesideTheButton() {
+ assertEquals(AirTriggerAction.TAP, AirTriggerPrefs.action(context, "pad", AirTrigger.LEFT))
+ assertEquals(RapidFireRate.NORMAL, AirTriggerPrefs.rate(context, "pad", AirTrigger.LEFT))
+ AirTriggerPrefs.setButton(context, "pad", AirTrigger.LEFT, "custom:jump")
+ AirTriggerPrefs.setAction(context, "pad", AirTrigger.LEFT, AirTriggerAction.RAPID)
+ AirTriggerPrefs.setRate(context, "pad", AirTrigger.LEFT, RapidFireRate.HIGH)
+ assertEquals("custom:jump", AirTriggerPrefs.button(context, "pad", AirTrigger.LEFT))
+ assertEquals(AirTriggerAction.RAPID, AirTriggerPrefs.action(context, "pad", AirTrigger.LEFT))
+ assertEquals(RapidFireRate.HIGH, AirTriggerPrefs.rate(context, "pad", AirTrigger.LEFT))
+ assertEquals(AirTriggerAction.TAP, AirTriggerPrefs.action(context, "pad", AirTrigger.RIGHT))
+ assertEquals(AirTriggerAction.TAP, AirTriggerPrefs.action(context, "other", AirTrigger.LEFT))
+ }
+
+ @Test fun aLongPressLatchesTheButtonUntilTheNextTouch() {
+ val touches = mutableListOf()
+ val latch = AirTriggerInput(bridge, touched = { trigger, down -> touches += "$trigger:$down" })
+ bind("legacy:lt" to InputAction.Keys(listOf(42)))
+ latch.configure(mapOf(AirTrigger.LEFT to AirTriggerSetup(lt, AirTriggerAction.LATCH)))
+ latch.onKey(AirTrigger.LEFT, KeyEvent.ACTION_DOWN, 0, true)
+ assertTrue(latch.onKey(AirTrigger.LEFT, KeyEvent.ACTION_UP, 0, true))
+ idle(1_000)
+ assertEquals(listOf("key:42:true"), events)
+ latch.onKey(AirTrigger.LEFT, KeyEvent.ACTION_DOWN, 0, true)
+ assertEquals(listOf("key:42:true", "key:42:false"), events)
+ latch.onKey(AirTrigger.LEFT, KeyEvent.ACTION_UP, 0, true)
+ latch.close()
+ assertEquals(listOf("key:42:true", "key:42:false"), events)
+ assertEquals(listOf("LEFT:true", "LEFT:false", "LEFT:true", "LEFT:false"), touches)
+ }
+
+ @Test fun aLongPressOnAToggleButtonLetsGoOnTheNextTouch() {
+ val screen = mutableListOf()
+ val latch = AirTriggerInput(bridge, { id, _, held, _ -> screen += "$id:$held"; true })
+ bind("custom:jump" to InputAction.Keys(listOf(57)))
+ latch.configure(mapOf(AirTrigger.LEFT to AirTriggerSetup(jump.copy(toggle = true), AirTriggerAction.LATCH)))
+ latch.onKey(AirTrigger.LEFT, KeyEvent.ACTION_DOWN, 0, true); latch.onKey(AirTrigger.LEFT, KeyEvent.ACTION_UP, 0, true)
+ latch.onKey(AirTrigger.LEFT, KeyEvent.ACTION_DOWN, 0, true); latch.onKey(AirTrigger.LEFT, KeyEvent.ACTION_UP, 0, true)
+ latch.close()
+ assertEquals(listOf("key:57:true", "key:57:false"), events)
+ assertEquals(emptyList(), screen)
+ }
+
+ @Test fun aSingleTapHoldsTheButtonWhileTheTriggerIsTouched() {
+ bind("legacy:lt" to InputAction.Keys(listOf(42)))
+ input.configure(mapOf(AirTrigger.LEFT to AirTriggerSetup(lt, AirTriggerAction.TAP)))
+ down(AirTrigger.LEFT)
+ idle(1_000)
+ assertEquals(listOf("key:42:true"), events)
+ up(AirTrigger.LEFT)
+ assertEquals(listOf("key:42:true", "key:42:false"), events)
+ }
+
+ @Test fun rapidFireClicksAtTheChosenRateWhileHeld() {
+ val rapid = AirTriggerInput(bridge)
+ bind("legacy:lt" to InputAction.Keys(listOf(42)))
+ rapid.configure(mapOf(AirTrigger.LEFT to AirTriggerSetup(lt, AirTriggerAction.RAPID, RapidFireRate.NORMAL)))
+ rapid.onKey(AirTrigger.LEFT, KeyEvent.ACTION_DOWN, 0, true)
+ idle(950)
+ assertEquals(10, events.size)
+ assertEquals("key:42:true", events.first())
+ assertEquals(5, events.count { it == "key:42:true" })
+ rapid.onKey(AirTrigger.LEFT, KeyEvent.ACTION_UP, 0, true)
+ idle(1_000)
+ rapid.close()
+ assertEquals(10, events.size)
+ assertEquals("key:42:false", events.last())
+ }
+
+ @Test fun liftingTheTriggerMidClickEndsRapidFireReleased() {
+ val rapid = AirTriggerInput(bridge)
+ bind("legacy:lt" to InputAction.Keys(listOf(42)))
+ rapid.configure(mapOf(AirTrigger.LEFT to AirTriggerSetup(lt, AirTriggerAction.RAPID, RapidFireRate.HIGH)))
+ rapid.onKey(AirTrigger.LEFT, KeyEvent.ACTION_DOWN, 0, true)
+ idle(120)
+ rapid.onKey(AirTrigger.LEFT, KeyEvent.ACTION_UP, 0, true)
+ idle(500)
+ rapid.close()
+ assertEquals(listOf("key:42:true", "key:42:false", "key:42:true", "key:42:false"), events)
+ }
+
+ @Test fun rapidFireClicksAToggleButtonAsAPlainOneThatEndsReleased() {
+ val screen = mutableListOf()
+ val rapid = AirTriggerInput(bridge, { id, _, held, _ -> screen += "$id:$held"; true })
+ bind("custom:jump" to InputAction.Keys(listOf(57)))
+ rapid.configure(mapOf(AirTrigger.LEFT to AirTriggerSetup(jump.copy(toggle = true), AirTriggerAction.RAPID)))
+ rapid.onKey(AirTrigger.LEFT, KeyEvent.ACTION_DOWN, 0, true)
+ idle(250)
+ rapid.onKey(AirTrigger.LEFT, KeyEvent.ACTION_UP, 0, true)
+ rapid.close()
+ assertEquals(listOf("key:57:true", "key:57:false", "key:57:true", "key:57:false"), events)
+ assertEquals(emptyList(), screen)
+ }
+
+ @Test fun changingTheActionMidPressLetsGoOfTheButtonUntilTheNextTouch() {
+ bind("legacy:lt" to InputAction.Keys(listOf(42)))
+ input.configure(setups(AirTrigger.LEFT to lt))
+ down(AirTrigger.LEFT)
+ input.configure(mapOf(AirTrigger.LEFT to AirTriggerSetup(lt, AirTriggerAction.RAPID)))
+ idle(500)
+ assertTrue(up(AirTrigger.LEFT))
+ assertEquals(listOf("key:42:true", "key:42:false"), events)
+ down(AirTrigger.LEFT)
+ idle(250)
+ up(AirTrigger.LEFT)
+ assertEquals(listOf("key:42:true", "key:42:false", "key:42:true", "key:42:false", "key:42:true", "key:42:false"), events)
+ }
+
+ @Test fun choicesAreSavedPerLayoutAndTheToggleStartsOff() {
+ assertFalse(AirTriggerPrefs.enabled(context))
+ AirTriggerPrefs.setEnabled(context, true)
+ AirTriggerPrefs.setButton(context, "pad", AirTrigger.LEFT, "custom:jump")
+ assertTrue(AirTriggerPrefs.enabled(context))
+ assertEquals("custom:jump", AirTriggerPrefs.button(context, "pad", AirTrigger.LEFT))
+ assertNull(AirTriggerPrefs.button(context, "pad", AirTrigger.RIGHT))
+ assertNull(AirTriggerPrefs.button(context, "other", AirTrigger.LEFT))
+ }
+
+ @Test fun aTriggerPressesTheChosenLayoutButton() {
+ bind("legacy:lt" to InputAction.Keys(listOf(42)), "custom:jump" to InputAction.Keys(listOf(57)))
+ input.configure(setups(AirTrigger.LEFT to lt, AirTrigger.RIGHT to jump))
+ assertTrue(down(AirTrigger.LEFT)); assertTrue(down(AirTrigger.RIGHT))
+ assertTrue(up(AirTrigger.RIGHT)); assertTrue(up(AirTrigger.LEFT))
+ assertEquals(listOf("key:42:true", "key:57:true", "key:57:false", "key:42:false"), events)
+ }
+
+ @Test fun keyRepeatsAndPressesWhileInputIsBlockedAreSwallowed() {
+ bind("legacy:lt" to InputAction.Keys(listOf(42)))
+ input.configure(setups(AirTrigger.LEFT to lt))
+ assertTrue(down(AirTrigger.LEFT, enabled = false))
+ assertTrue(up(AirTrigger.LEFT))
+ assertTrue(down(AirTrigger.LEFT)); assertTrue(down(AirTrigger.LEFT, repeat = 1))
+ assertTrue(up(AirTrigger.LEFT))
+ assertEquals(listOf("key:42:true", "key:42:false"), events)
+ }
+
+ @Test fun switchingOffReleasesAHeldButtonAndLetsTheKeysThrough() {
+ bind("legacy:lt" to InputAction.Keys(listOf(42)))
+ input.configure(setups(AirTrigger.LEFT to lt))
+ assertFalse(down(AirTrigger.RIGHT))
+ down(AirTrigger.LEFT)
+ input.configure(emptyMap())
+ assertEquals(listOf("key:42:true", "key:42:false"), events)
+ assertTrue(up(AirTrigger.LEFT))
+ assertFalse(down(AirTrigger.LEFT))
+ assertEquals(2, events.size)
+ }
+
+ @Test fun aButtonShownOnScreenTakesThePressAndTheTriggersLight() {
+ val screen = mutableListOf()
+ val lights = mutableListOf()
+ val onScreen = AirTriggerInput(bridge, { id, trigger, held, cancelled -> screen += "$id:$trigger:$held:$cancelled"; id == "custom:jump" },
+ { trigger, down -> lights += if (down) trigger.pressLight else trigger.releaseLight })
+ bind("legacy:lt" to InputAction.Keys(listOf(42)), "custom:jump" to InputAction.Keys(listOf(57)))
+ onScreen.configure(setups(AirTrigger.LEFT to lt, AirTrigger.RIGHT to jump))
+ onScreen.onKey(AirTrigger.RIGHT, KeyEvent.ACTION_DOWN, 0, true); onScreen.onKey(AirTrigger.LEFT, KeyEvent.ACTION_DOWN, 0, true)
+ onScreen.onKey(AirTrigger.RIGHT, KeyEvent.ACTION_UP, 0, true); onScreen.onKey(AirTrigger.LEFT, KeyEvent.ACTION_UP, 0, true)
+ onScreen.onKey(AirTrigger.LEFT, KeyEvent.ACTION_DOWN, 0, false); onScreen.onKey(AirTrigger.LEFT, KeyEvent.ACTION_UP, 0, true)
+ onScreen.close()
+ assertEquals(listOf("custom:jump:RIGHT:true:false", "legacy:lt:LEFT:true:false", "custom:jump:RIGHT:false:false"), screen)
+ assertEquals(listOf("key:42:true", "key:42:false"), events)
+ assertEquals(listOf(108, 106, 109, 107), lights)
+ }
+
+ @Test fun switchingOffLetsGoOfTheOnScreenButton() {
+ val screen = mutableListOf()
+ val onScreen = AirTriggerInput(bridge, { id, trigger, held, cancelled -> screen += "$id:$trigger:$held:$cancelled"; true })
+ onScreen.configure(setups(AirTrigger.LEFT to jump))
+ onScreen.onKey(AirTrigger.LEFT, KeyEvent.ACTION_DOWN, 0, true)
+ onScreen.configure(emptyMap())
+ assertTrue(onScreen.onKey(AirTrigger.LEFT, KeyEvent.ACTION_UP, 0, true))
+ assertEquals(listOf("custom:jump:LEFT:true:false", "custom:jump:LEFT:false:true"), screen)
+ }
+
+ @Test fun aForcedReleaseDoesNotRunACommandButtonButAKeyUpDoes() {
+ bind("custom:jump" to InputAction.Command(InputCommand.KEYBOARD))
+ input.configure(setups(AirTrigger.LEFT to jump))
+ down(AirTrigger.LEFT)
+ input.release()
+ up(AirTrigger.LEFT)
+ assertEquals(emptyList(), events)
+ down(AirTrigger.LEFT); up(AirTrigger.LEFT)
+ assertEquals(listOf("KEYBOARD:PRIMARY"), events)
+ }
+
+ @Test fun aToggleLatchedWhileItsButtonWasHiddenIsHandedToTheShownButton() {
+ var shown = false
+ val screen = mutableListOf()
+ val onScreen = AirTriggerInput(bridge, { id, _, held, _ -> screen += "$id:$held"; shown })
+ bind("custom:jump" to InputAction.Keys(listOf(57)))
+ onScreen.configure(setups(AirTrigger.LEFT to jump.copy(toggle = true)))
+ onScreen.onKey(AirTrigger.LEFT, KeyEvent.ACTION_DOWN, 0, true); onScreen.onKey(AirTrigger.LEFT, KeyEvent.ACTION_UP, 0, true)
+ assertEquals(listOf("key:57:true"), events)
+ shown = true
+ onScreen.onKey(AirTrigger.LEFT, KeyEvent.ACTION_DOWN, 0, true)
+ assertEquals(listOf("key:57:true", "key:57:false"), events)
+ onScreen.onKey(AirTrigger.LEFT, KeyEvent.ACTION_UP, 0, true)
+ onScreen.close()
+ assertEquals(listOf("custom:jump:true", "custom:jump:true", "custom:jump:false"), screen)
+ }
+
+ @Test fun choosingAnotherButtonMovesTheTriggerWithoutLeavingTheOldOneHeld() {
+ bind("legacy:lt" to InputAction.Keys(listOf(42)), "custom:jump" to InputAction.Keys(listOf(57)))
+ input.configure(setups(AirTrigger.LEFT to lt))
+ down(AirTrigger.LEFT)
+ input.configure(setups(AirTrigger.LEFT to jump))
+ up(AirTrigger.LEFT)
+ down(AirTrigger.LEFT); up(AirTrigger.LEFT)
+ assertEquals(listOf("key:42:true", "key:42:false", "key:57:true", "key:57:false"), events)
+ }
+}
diff --git a/app/src/test/java/com/droiddeck/launcher/runtime/DesktopLanguageIndexSourceTest.kt b/app/src/test/java/com/droiddeck/launcher/runtime/DesktopLanguageIndexSourceTest.kt
index 3b4b008c50..03bd7746da 100644
--- a/app/src/test/java/com/droiddeck/launcher/runtime/DesktopLanguageIndexSourceTest.kt
+++ b/app/src/test/java/com/droiddeck/launcher/runtime/DesktopLanguageIndexSourceTest.kt
@@ -41,7 +41,18 @@ class DesktopLanguageIndexSourceTest {
context = ApplicationProvider.getApplicationContext()
DownloadSource.init(context)
DownloadSource.setMode(context, DownloadSource.MODE_MIRROR)
+ }
+
+ // Downloads other tests leave running also go through this proxy while it is set, so it is set only around [block].
+ private fun tunnelsDuring(block: () -> Unit): List {
DownloadSource.setProxy(context, "127.0.0.1:${proxy.localPort}")
+ tunnels.clear()
+ try {
+ block()
+ } finally {
+ DownloadSource.setProxy(context, "")
+ }
+ return tunnels.toList()
}
@After fun tearDown() {
@@ -51,12 +62,12 @@ class DesktopLanguageIndexSourceTest {
}
@Test fun mirrorModeWouldOtherwiseSendTheIndexThroughAMirror() {
- Downloader.downloadString(base + "desktop-kde.i18n.txt")
- assertTrue(tunnels.toString(), tunnels.any { host -> DownloadSource.MIRRORS.any { it.host == host } })
+ val seen = tunnelsDuring { Downloader.downloadString(base + "desktop-kde.i18n.txt") }
+ assertTrue(seen.toString(), seen.any { host -> DownloadSource.MIRRORS.any { it.host == host } })
}
@Test fun indexIsFetchedOnlyFromGithubInMirrorMode() {
- assertNull(DesktopLanguage.fetchIndex(base))
- assertEquals(listOf("github.com"), tunnels.toList())
+ val seen = tunnelsDuring { assertNull(DesktopLanguage.fetchIndex(base)) }
+ assertEquals(listOf("github.com"), seen)
}
}
diff --git a/app/src/test/java/com/droiddeck/launcher/session/EnhancedSessionLogShareTest.kt b/app/src/test/java/com/droiddeck/launcher/session/EnhancedSessionLogShareTest.kt
index e02523e97f..e6dd6163d6 100644
--- a/app/src/test/java/com/droiddeck/launcher/session/EnhancedSessionLogShareTest.kt
+++ b/app/src/test/java/com/droiddeck/launcher/session/EnhancedSessionLogShareTest.kt
@@ -14,6 +14,7 @@ import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
import org.robolectric.RuntimeEnvironment
import org.robolectric.annotation.Config
+import java.io.File
import java.io.IOException
import java.io.RandomAccessFile
import java.nio.ByteBuffer
@@ -436,6 +437,53 @@ class EnhancedSessionLogShareTest {
SessionLogShare.clear(app)
}
+ @Test fun theRunningSessionsGameLogIsSharedBeforeSteamsWholeClientLogs() {
+ val previousLogsEnabled = SessionPrefs.logsEnabled(app)
+ val steamLog = File(SessionPrefs.activeSteamRoot(app), "logs/console_log.txt")
+ var started: File? = null
+ try {
+ SessionPrefs.setLogsEnabled(app, true)
+ val session = SessionPaths.beginOrCurrent(app, "live-steam").also { started = it }
+ session.resolve("session.log").writeText("session\n")
+ session.resolve("steam-239250.log").writeText("wine: game log\n")
+ steamLog.apply { parentFile!!.mkdirs(); writeText("steam client history\n".repeat(400)) }
+ val limits = EnhancedShareLimits(maxFilesPerArchive = 16, maxBytesPerFile = 8192, maxBytesTotal = 4096)
+
+ val zip = EnhancedSessionLogShare.createLegacy(app, session, limits = limits)!!
+
+ ZipFile(zip).use { archive ->
+ assertEquals(
+ "wine: game log\n",
+ archive.getInputStream(archive.getEntry("${session.name}/steam-239250.log")).bufferedReader().readText(),
+ )
+ val manifest = JSONObject(archive.getInputStream(archive.getEntry("diagnostics-manifest.json"))
+ .bufferedReader().readText())
+ val entries = manifest.getJSONArray("entries")
+ val records = (0 until entries.length()).map { entries.getJSONObject(it) }
+ assertEquals("captured", records.single { it.optString("entry") == "${session.name}/steam-239250.log" }.getString("status"))
+ val steam = records.single { it.optString("entry") == "${session.name}/steam/console_log.txt" }
+ assertEquals("live-steam", steam.getString("origin"))
+ assertEquals("truncated", steam.getString("status"))
+ assertTrue(archive.getEntry("${session.name}/steam/console_log.txt") != null)
+ }
+
+ val roomy = EnhancedSessionLogShare.createLegacy(app, session)!!
+
+ ZipFile(roomy).use { archive ->
+ assertEquals(
+ "steam client history\n".repeat(400),
+ archive.getInputStream(archive.getEntry("${session.name}/steam/console_log.txt")).bufferedReader().readText(),
+ )
+ }
+ } finally {
+ SessionPaths.take()?.let { SessionPaths.release(app, it) }
+ started?.deleteRecursively()
+ steamLog.delete()
+ SessionPrefs.setLogsEnabled(app, previousLogsEnabled)
+ SessionLogShare.clear(app)
+ }
+ }
+
@Test fun unreadableDiscoverySubtreeKeepsOtherLogsAndMarksTheManifestPartial() {
assumeFilePermissionsEnforced()
assumeFalse(System.getProperty("os.name").startsWith("Windows"))
diff --git a/app/src/test/java/com/droiddeck/launcher/session/OutputPacingTest.kt b/app/src/test/java/com/droiddeck/launcher/session/OutputPacingTest.kt
index 03b7e14f3d..aed120c6f6 100644
--- a/app/src/test/java/com/droiddeck/launcher/session/OutputPacingTest.kt
+++ b/app/src/test/java/com/droiddeck/launcher/session/OutputPacingTest.kt
@@ -42,4 +42,24 @@ class OutputPacingTest {
assertEquals(45, SessionPrefs.compositorFpsLimit(0, 45, hostCap = 60))
assertEquals(SessionPrefs.PIP_FPS, SessionPrefs.compositorFpsLimit(0, 0, pip = true, hostCap = 60))
}
+
+ @Test fun afterPictureInPictureTheLayerStopsVotingThirtyWhileItsOwnOverrideIsStillReported() {
+ val staleOverride = SessionPrefs.hostFrameCap(30f, 120f)
+ assertEquals(SessionPrefs.PIP_FPS, staleOverride)
+ val own = SessionPrefs.compositorFpsLimit(0, 0, pip = false)
+ assertEquals(120f, SessionPrefs.layerFrameRate(own, 120f, false), 0f)
+ assertEquals(staleOverride, SessionPrefs.compositorFpsLimit(0, 0, pip = false, hostCap = staleOverride))
+ assertEquals(SessionPrefs.FPS_UNPACED, SessionPrefs.compositorFpsLimit(0, 0, pip = false, hostCap = SessionPrefs.hostFrameCap(120f, 120f)))
+ }
+
+ @Test fun theLayerVotesOnlyTheSessionsOwnLimits() {
+ assertEquals(SessionPrefs.PIP_FPS.toFloat(), SessionPrefs.layerFrameRate(SessionPrefs.compositorFpsLimit(0, pip = true), 120f, false), 0f)
+ assertEquals(45f, SessionPrefs.layerFrameRate(SessionPrefs.compositorFpsLimit(0, 45), 120f, false), 0f)
+ assertEquals(60f, SessionPrefs.layerFrameRate(SessionPrefs.compositorFpsLimit(60), 120f, false), 0f)
+ assertEquals(120f, SessionPrefs.layerFrameRate(SessionPrefs.FPS_UNPACED, 120f, false), 0f)
+ }
+
+ @Test fun blackFrameInsertionKeepsThePanelRate() {
+ assertEquals(120f, SessionPrefs.layerFrameRate(45, 120f, true), 0f)
+ }
}
diff --git a/app/src/test/java/com/droiddeck/launcher/session/ProtonExtrasTest.kt b/app/src/test/java/com/droiddeck/launcher/session/ProtonExtrasTest.kt
index d975b6b756..33542f0f0e 100644
--- a/app/src/test/java/com/droiddeck/launcher/session/ProtonExtrasTest.kt
+++ b/app/src/test/java/com/droiddeck/launcher/session/ProtonExtrasTest.kt
@@ -78,7 +78,7 @@ class ProtonExtrasTest {
@Test
fun theSourcesInOrder() {
- assertEquals(listOf("ge", "cachyos", "droiddeck", "bionic"), ProtonExtras.tools.map { it.id })
+ assertEquals(listOf("ge", "cachyos", "droiddeck", "anticheat", "bionic"), ProtonExtras.tools.map { it.id })
val droiddeck = tool("droiddeck")
assertEquals("DroidDeck-Proton", droiddeck.name)
assertEquals("DroidDeck-Proton", droiddeck.prefix)
@@ -88,6 +88,13 @@ class ProtonExtrasTest {
assertFalse(droiddeck.assetPattern.containsMatchIn("DroidDeck-Proton-11-7.5-aarch64.sha512sum"))
assertFalse(droiddeck.assetPattern.containsMatchIn("DroidDeck-Proton-11-7.5-aarch64.build-info.json"))
assertFalse(tool("cachyos").assetPattern.containsMatchIn("proton-cachyos-11.0-20261005-slr-x86_64.tar.xz"))
+ val antiCheat = tool("anticheat")
+ assertEquals("Droid-Deck/DroidDeck-Proton", antiCheat.repo)
+ assertEquals("DroidDeck-Proton", antiCheat.prefix)
+ assertTrue(antiCheat.assetPattern.containsMatchIn("DroidDeck-Proton-11-14.3-x86_64.tar.gz"))
+ assertFalse(antiCheat.assetPattern.containsMatchIn("DroidDeck-Proton-11-14.3-x86_64.sha512sum"))
+ assertFalse(antiCheat.assetPattern.containsMatchIn("DroidDeck-Proton-11-14.3-aarch64.tar.gz"))
+ assertFalse(droiddeck.assetPattern.containsMatchIn("DroidDeck-Proton-11-14.3-x86_64.tar.gz"))
}
@Test
@@ -181,6 +188,55 @@ class ProtonExtrasTest {
assertEquals(emptyList(), ProtonExtras.installedIn(File(tools, "missing"), tool("ge")))
}
+ @Test
+ fun x86_64BuildsAreNotTakenForTheArm64Tool() {
+ val tools = temp.newFolder("compatibilitytools.d")
+ for (name in listOf("DroidDeck-Proton 11-7.5", "DroidDeck-Proton-11-14.2-x86_64")) installTool(tools, name)
+ File(tools, "DroidDeck-Proton-11-14.2-x86_64/files/lib/wine/x86_64-unix").mkdirs()
+ File(tools, "DroidDeck-Proton 11-7.5/files/lib/wine/x86_64-unix").mkdirs()
+ File(tools, "DroidDeck-Proton 11-7.5/files/bin-arm64").mkdirs()
+ assertEquals(listOf("DroidDeck-Proton 11-7.5"), ProtonExtras.installedIn(tools, tool("droiddeck")))
+ assertTrue(ProtonExtras.x86_64Build(File(tools, "DroidDeck-Proton-11-14.2-x86_64")))
+ assertEquals(listOf("DroidDeck-Proton-11-14.2-x86_64"), ProtonExtras.installedIn(tools, tool("anticheat")))
+ }
+
+ @Test
+ fun theX86_64BuildIsFetchedOnlyForAnInstalledAntiCheatRuntimeUnlessTheUserRemovedIt() {
+ val context = RuntimeEnvironment.getApplication()
+ val tools = File(LinuxRuntime.rootDir(context), "root/.local/share/Steam/compatibilitytools.d")
+ tools.deleteRecursively()
+ File(context.filesDir, "proton-latest.json").writeText(
+ """{"anticheat":{"tag":"DroidDeck-Proton-11-14.3","at":1}}""")
+ val antiCheat = tool("anticheat")
+ ProtonExtras.setDeclined(context, false, "anticheat")
+ assertNull(ProtonExtras.missing(context, antiCheat) { false })
+ assertEquals("DroidDeck-Proton-11-14.3", ProtonExtras.missing(context, antiCheat) { true })
+ ProtonExtras.setDeclined(context, true, "anticheat")
+ assertNull(ProtonExtras.missing(context, antiCheat) { true })
+ assertFalse(ProtonExtras.declined(context))
+ ProtonExtras.setDeclined(context, false, "anticheat")
+ installTool(tools, "DroidDeck-Proton 11-14.2")
+ File(tools, "DroidDeck-Proton 11-14.2/files/bin-arm64").mkdirs()
+ assertEquals("DroidDeck-Proton-11-14.3", ProtonExtras.missing(context, antiCheat) { true })
+ installTool(tools, "DroidDeck-Proton-11-14.2-x86_64")
+ File(tools, "DroidDeck-Proton-11-14.2-x86_64/files/lib/wine/x86_64-unix").mkdirs()
+ assertNull(ProtonExtras.missing(context, antiCheat) { true })
+ }
+
+ @Test
+ fun anAntiCheatRuntimeInAnyLibraryCounts() {
+ val first = temp.newFolder("library-a")
+ val second = temp.newFolder("library-b")
+ File(second, "steamapps").mkdirs()
+ assertFalse(ProtonExtras.antiCheatRuntimeIn(listOf(first, second)))
+ File(second, "steamapps/appmanifest_1161040.acf").writeText("")
+ assertTrue(ProtonExtras.antiCheatRuntimeIn(listOf(first, second)))
+ assertFalse(ProtonExtras.antiCheatRuntimeIn(listOf(first)))
+ File(first, "steamapps").mkdirs()
+ File(first, "steamapps/appmanifest_1826330.acf").writeText("")
+ assertTrue(ProtonExtras.antiCheatRuntimeIn(listOf(first)))
+ }
+
@Test
fun interruptedBuildsAreNotReportedAsInstalled() {
val tools = temp.newFolder("compatibilitytools.d")
@@ -218,6 +274,7 @@ class ProtonExtrasTest {
.put("ge", JSONObject().put("tag", "GE-Proton11-7").put("at", now - 60_000))
.put("cachyos", JSONObject().put("tag", "cachyos-11.0-20261005-slr").put("at", now - 60_000))
.put("droiddeck", JSONObject().put("tag", "DroidDeck-Proton-11-7.6").put("at", now - ProtonExtras.CHECK_EVERY_MS + 60_000))
+ .put("anticheat", JSONObject().put("tag", "DroidDeck-Proton-11-7.6").put("at", now - 60_000))
File(context.filesDir, "proton-latest.json").writeText(latest.toString())
assertFalse(ProtonExtras.checkLatest(context, now = now))
assertEquals("DroidDeck-Proton-11-7.6", ProtonExtras.update(context, tool("droiddeck")))
diff --git a/app/src/test/java/com/droiddeck/launcher/session/SessionLogShareZipTest.kt b/app/src/test/java/com/droiddeck/launcher/session/SessionLogShareZipTest.kt
index 087c1a9980..94537df59b 100644
--- a/app/src/test/java/com/droiddeck/launcher/session/SessionLogShareZipTest.kt
+++ b/app/src/test/java/com/droiddeck/launcher/session/SessionLogShareZipTest.kt
@@ -10,6 +10,7 @@ import java.util.concurrent.TimeUnit
import java.util.zip.ZipFile
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
+import org.junit.Assert.assertNotNull
import org.junit.Assert.assertTrue
import org.junit.After
import org.junit.Before
@@ -116,6 +117,33 @@ class SessionLogShareZipTest {
}
}
+ @Test fun theSessionsGameLogsAreSharedBeforeBulkySteamClientLogsUseTheBudget() {
+ val session = File(LinuxRuntime.logDir(app), "2026-12-05-08-steam").apply { mkdirs() }
+ val out = File(app.getExternalFilesDir(null), "agent-logs/budget")
+ try {
+ File(session, "session.log").writeText("booted\n")
+ val steam = File(session, "steam").apply { mkdirs() }
+ listOf("console_log.txt", "webhelper_js.txt", "cef_log.txt").forEach {
+ File(steam, it).writeText("client line\n".repeat(600))
+ }
+ File(session, "steam-1568590.log").writeText("Proton: x86-64\nerr:module:load\n")
+ File(session, "games").apply { mkdirs() }.resolve("dxvk.log").writeText("info: DXVK\n")
+ val limits = EnhancedShareLimits(maxFilesPerArchive = 512, maxBytesPerFile = 8192, maxBytesTotal = 6000)
+
+ val zip = EnhancedSessionLogShare.createLegacy(app, session, outputDirectory = out, limits = limits)!!
+ ZipFile(zip).use { archive ->
+ assertNotNull(archive.getEntry("${session.name}/session.log"))
+ val proton = archive.getEntry("${session.name}/steam-1568590.log")!!
+ assertTrue(archive.getInputStream(proton).bufferedReader().readText().contains("err:module:load"))
+ assertTrue(archive.entries().toList().any { it.name.startsWith("${session.name}/games/") })
+ assertTrue(archive.entries().toList().count { it.name.startsWith("${session.name}/steam/") } < 3)
+ }
+ } finally {
+ out.deleteRecursively()
+ session.deleteRecursively()
+ }
+ }
+
@Test fun everyTextFileInTheZipIsScrubbedAndTheStoresAndToolsLogsComeAlong() {
val logs = LinuxRuntime.logDir(app)
val session = File(logs, "2026-10-08-01-steam").apply { mkdirs() }
diff --git a/app/src/test/java/com/droiddeck/launcher/session/SessionPrefsUpscalerTest.kt b/app/src/test/java/com/droiddeck/launcher/session/SessionPrefsUpscalerTest.kt
new file mode 100644
index 0000000000..36708bc145
--- /dev/null
+++ b/app/src/test/java/com/droiddeck/launcher/session/SessionPrefsUpscalerTest.kt
@@ -0,0 +1,79 @@
+package com.droiddeck.launcher.session
+
+import android.content.Context
+import org.json.JSONObject
+import org.junit.Assert.assertEquals
+import org.junit.Assert.assertFalse
+import org.junit.Assert.assertTrue
+import org.junit.Before
+import org.junit.Test
+import org.junit.runner.RunWith
+import org.robolectric.RobolectricTestRunner
+import org.robolectric.RuntimeEnvironment
+import org.robolectric.annotation.Config
+
+@RunWith(RobolectricTestRunner::class)
+@Config(sdk = [28], manifest = Config.NONE)
+class SessionPrefsUpscalerTest {
+ private lateinit var context: Context
+
+ @Before fun setUp() {
+ context = RuntimeEnvironment.getApplication()
+ context.getSharedPreferences("session", Context.MODE_PRIVATE).edit().clear().commit()
+ }
+
+ @Test fun gameOverridesAreIsolatedAndFallBackToTheGlobalFilter() {
+ SessionPrefs.setUpscaler(context, 4)
+ SessionPrefs.setGameUpscaler(context, "12345", 7)
+
+ assertEquals(4, SessionPrefs.upscaler(context))
+ assertEquals(7, SessionPrefs.screenEffectsUpscaler(context, "game:12345"))
+ assertEquals(4, SessionPrefs.screenEffectsUpscaler(context, "game:54321"))
+ assertTrue(SessionPrefs.hasGameUpscalerOverride(context, "12345"))
+ assertFalse(SessionPrefs.hasGameUpscalerOverride(context, "54321"))
+ assertFalse(SessionPrefs.hasScreenEffectsOverride(context, "game:12345"))
+ }
+
+ @Test fun resettingGameOverrideRestoresTheGlobalFilter() {
+ SessionPrefs.setUpscaler(context, 3)
+ SessionPrefs.setGameUpscaler(context, "12345", 6)
+
+ SessionPrefs.clearGameUpscaler(context, "12345")
+
+ assertFalse(SessionPrefs.hasGameUpscalerOverride(context, "12345"))
+ assertEquals(3, SessionPrefs.screenEffectsUpscaler(context, "game:12345"))
+ }
+
+ @Test fun screenEffectsUpscalerApiKeepsGameFiltersSeparateFromScreenEffects() {
+ SessionPrefs.setUpscaler(context, 4)
+ SessionPrefs.setScreenEffectsUpscaler(context, "game:12345", 8)
+
+ assertEquals(8, SessionPrefs.screenEffectsUpscaler(context, "game:12345"))
+ assertFalse(SessionPrefs.hasScreenEffectsOverride(context, "game:12345"))
+ }
+
+ @Test fun legacyGameFilterOverridesRemainReadableAndCanBeReset() {
+ val profile = JSONObject().put("upscaler", 6)
+ val profiles = JSONObject().put("game:12345", profile)
+ context.getSharedPreferences("session", Context.MODE_PRIVATE).edit()
+ .putString("screenEffects.profiles", profiles.toString()).commit()
+
+ assertTrue(SessionPrefs.hasGameUpscalerOverride(context, "12345"))
+ assertEquals(6, SessionPrefs.screenEffectsUpscaler(context, "game:12345"))
+
+ SessionPrefs.clearGameUpscaler(context, "12345")
+
+ assertFalse(SessionPrefs.hasGameUpscalerOverride(context, "12345"))
+ assertEquals(2, SessionPrefs.screenEffectsUpscaler(context, "game:12345"))
+ assertFalse(SessionPrefs.hasScreenEffectsOverride(context, "game:12345"))
+ }
+
+ @Test fun deletingGameScreenEffectsProfileClearsUpscalerOverrideEvenWithoutEffectsProfile() {
+ SessionPrefs.setGameUpscaler(context, "12345", 6)
+
+ SessionPrefs.deleteScreenEffectsProfile(context, "game:12345")
+
+ assertFalse(SessionPrefs.hasGameUpscalerOverride(context, "12345"))
+ assertEquals(SessionPrefs.upscaler(context), SessionPrefs.screenEffectsUpscaler(context, "game:12345"))
+ }
+}
diff --git a/app/src/test/java/com/droiddeck/launcher/session/SessionVisibilityPolicyTest.kt b/app/src/test/java/com/droiddeck/launcher/session/SessionVisibilityPolicyTest.kt
index 708241662e..5bbf3bcc19 100644
--- a/app/src/test/java/com/droiddeck/launcher/session/SessionVisibilityPolicyTest.kt
+++ b/app/src/test/java/com/droiddeck/launcher/session/SessionVisibilityPolicyTest.kt
@@ -5,6 +5,21 @@ import org.junit.Assert.assertTrue
import org.junit.Test
class SessionVisibilityPolicyTest {
+ @Test fun attachmentPickerKeepsTheDockedDrawerAliveDuringActivityStop() {
+ assertFalse(SessionVisibilityPolicy.shouldCloseSecondScreenOnStop(
+ screenOff = false, dockedDrawerOpen = true, attachmentPickerOpen = true,
+ ))
+ assertTrue(SessionVisibilityPolicy.shouldCloseSecondScreenOnStop(
+ screenOff = false, dockedDrawerOpen = true, attachmentPickerOpen = false,
+ ))
+ assertTrue(SessionVisibilityPolicy.shouldCloseSecondScreenOnStop(
+ screenOff = false, dockedDrawerOpen = false, attachmentPickerOpen = true,
+ ))
+ assertFalse(SessionVisibilityPolicy.shouldCloseSecondScreenOnStop(
+ screenOff = true, dockedDrawerOpen = false, attachmentPickerOpen = false,
+ ))
+ }
+
@Test fun handsetScreenStateControlsActivityOnDefaultDisplay() {
assertFalse(SessionVisibilityPolicy.isHidden(true, true, true, false))
assertTrue(SessionVisibilityPolicy.isHidden(true, false, true, true))
diff --git a/app/src/test/java/com/droiddeck/launcher/ui/ComponentDownloadsDrawerTest.kt b/app/src/test/java/com/droiddeck/launcher/ui/ComponentDownloadsDrawerTest.kt
index 4d3f1852a5..f52ae99690 100644
--- a/app/src/test/java/com/droiddeck/launcher/ui/ComponentDownloadsDrawerTest.kt
+++ b/app/src/test/java/com/droiddeck/launcher/ui/ComponentDownloadsDrawerTest.kt
@@ -3,24 +3,31 @@ package com.droiddeck.launcher.ui
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
+import androidx.compose.material3.Text
+import androidx.compose.runtime.State
+import androidx.compose.runtime.mutableStateOf
import androidx.compose.ui.Modifier
import androidx.compose.ui.input.InputMode
import androidx.compose.ui.input.InputModeManager
import androidx.compose.ui.input.key.Key
import androidx.compose.ui.platform.LocalInputModeManager
import androidx.compose.ui.platform.testTag
+import androidx.compose.ui.semantics.SemanticsActions
import androidx.compose.ui.test.assertIsFocused
import androidx.compose.ui.test.ExperimentalTestApi
import androidx.compose.ui.test.assertIsNotEnabled
+import androidx.compose.ui.test.getUnclippedBoundsInRoot
import androidx.compose.ui.test.onNodeWithTag
import androidx.compose.ui.test.onNodeWithText
import androidx.compose.ui.test.performClick
import androidx.compose.ui.test.performKeyInput
+import androidx.compose.ui.test.performSemanticsAction
import androidx.compose.ui.test.pressKey
import androidx.compose.ui.test.requestFocus
import com.droiddeck.launcher.R
import com.droiddeck.launcher.session.ComponentsManager
import org.junit.Assert.assertEquals
+import org.junit.Assert.assertTrue
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
@@ -67,6 +74,29 @@ class ComponentDownloadsDrawerTest {
assertEquals(listOf(nightly), requested)
}
+ @Config(qualifiers = "w800dp-h800dp")
+ @Test fun nightlySelectionSurvivesCrossingTheColumnThreshold() {
+ val stable = ComponentsManager.CatalogItem("dxvk-3.1.1-linux.wcp", "dxvk", "Dxvk-Linux", "https://github.com/example/s", 100, "sha256:test")
+ val nightly = ComponentsManager.CatalogItem("DD-dxvk-3.1.1+153-nightly.wcp", "dxvk", ComponentsManager.DD_NIGHTLY, "https://github.com/example/n", 100, "sha256:test")
+ val twoColumns = mutableStateOf(false)
+ lateinit var menu: MenuHost
+ show(catalog = listOf(stable, nightly), twoColumns = twoColumns, captureHost = { menu = it })
+ val chooser = compose.onNodeWithTag("cmp-download-dxvk")
+ val nightlyRow = compose.onNodeWithText(nightly.file.removeSuffix(".wcp"))
+ val narrowLeft = chooser.getUnclippedBoundsInRoot().left
+ chooser.performSemanticsAction(SemanticsActions.OnClick)
+ compose.onNodeWithText(RuntimeEnvironment.getApplication().getString(R.string.comp_channel_nightly)).performClick()
+ nightlyRow.assertExists()
+ compose.runOnIdle { menu.open = null; twoColumns.value = true }
+ assertTrue(chooser.getUnclippedBoundsInRoot().left > narrowLeft)
+ chooser.performSemanticsAction(SemanticsActions.OnClick)
+ nightlyRow.assertExists()
+ compose.runOnIdle { menu.open = null; twoColumns.value = false }
+ assertEquals(narrowLeft, chooser.getUnclippedBoundsInRoot().left)
+ chooser.performSemanticsAction(SemanticsActions.OnClick)
+ nightlyRow.assertExists()
+ }
+
@Test fun controllerPicksNightlyOnItsTabThenDownloadsItFromTheRow() {
val stable = ComponentsManager.CatalogItem("dxvk-3.1.1-linux.wcp", "dxvk", "Dxvk-Linux", "https://github.com/example/s", 100, "sha256:test")
val nightly = ComponentsManager.CatalogItem("DD-dxvk-3.1.1+153-nightly.wcp", "dxvk", ComponentsManager.DD_NIGHTLY, "https://github.com/example/n", 100, "sha256:test")
@@ -107,18 +137,28 @@ class ComponentDownloadsDrawerTest {
checking: Boolean = false,
onRefresh: () -> Unit = {},
onDownload: (ComponentsManager.CatalogItem) -> Unit = {},
+ twoColumns: State? = null,
+ captureHost: (MenuHost) -> Unit = {},
) {
compose.setContent {
inputMode = LocalInputModeManager.current
DroidDeckTheme {
Column(Modifier.verticalScroll(rememberScrollState())) {
- ComponentDownloadsDrawerGroup(
- host = rememberMenuHost(), catalog = catalog, catalogAt = 0,
- checking = checking,
- packages = listOf(ComponentsManager.Package(stored.file, "dxvk", "2.3", "", 100)),
- downloads = downloads, onRefresh = onRefresh, onDownload = onDownload,
- track = { Modifier.testTag(it) },
- )
+ val host = rememberMenuHost()
+ captureHost(host)
+ val content: @androidx.compose.runtime.Composable () -> Unit = {
+ ComponentDownloadsDrawerGroup(
+ host = host, catalog = catalog, catalogAt = 0,
+ checking = checking,
+ packages = listOf(ComponentsManager.Package(stored.file, "dxvk", "2.3", "", 100)),
+ downloads = downloads, onRefresh = onRefresh, onDownload = onDownload,
+ track = { Modifier.testTag(it) },
+ )
+ }
+ if (twoColumns == null) content() else DrawerColumns(twoColumns.value) {
+ SettingsGroup("Profile") { Text("Profile settings") }
+ content()
+ }
}
}
}
diff --git a/app/src/test/java/com/droiddeck/launcher/ui/DrawerColumnsTest.kt b/app/src/test/java/com/droiddeck/launcher/ui/DrawerColumnsTest.kt
new file mode 100644
index 0000000000..a5201db5b4
--- /dev/null
+++ b/app/src/test/java/com/droiddeck/launcher/ui/DrawerColumnsTest.kt
@@ -0,0 +1,48 @@
+package com.droiddeck.launcher.ui
+
+import androidx.compose.foundation.layout.Box
+import androidx.compose.foundation.layout.height
+import androidx.compose.material3.Text
+import androidx.compose.ui.Modifier
+import androidx.compose.ui.platform.testTag
+import androidx.compose.ui.test.getUnclippedBoundsInRoot
+import androidx.compose.ui.test.onNodeWithTag
+import androidx.compose.ui.test.onNodeWithText
+import androidx.compose.ui.unit.dp
+import org.junit.Assert.assertTrue
+import org.junit.Rule
+import org.junit.Test
+import org.junit.runner.RunWith
+import org.robolectric.RobolectricTestRunner
+import org.robolectric.annotation.Config
+
+@RunWith(RobolectricTestRunner::class)
+@Config(sdk = [28], qualifiers = "w800dp-h600dp")
+class DrawerColumnsTest {
+ @get:Rule val compose = createRobolectricComposeRule()
+
+ @Test fun theComponentNoteStaysInItsGroupAndSixGroupsSplitEvenly() {
+ val note = "Component note"
+ val componentRow = "Component row"
+ compose.setContent {
+ DroidDeckTheme {
+ DrawerColumns(two = true) {
+ repeat(3) { index -> Box(Modifier.height(32.dp).testTag("left-$index")) }
+ DrawerComponentSettingsGroup(note) { Text(componentRow) }
+ repeat(2) { index -> Box(Modifier.height(32.dp).testTag("right-$index")) }
+ }
+ }
+ }
+ val left = (0..2).map { compose.onNodeWithTag("left-$it").getUnclippedBoundsInRoot() }
+ val right = (0..1).map { compose.onNodeWithTag("right-$it").getUnclippedBoundsInRoot() }
+ val group = compose.onNodeWithText(componentRow).getUnclippedBoundsInRoot()
+ val footer = compose.onNodeWithText(note).getUnclippedBoundsInRoot()
+ assertTrue(left.all { it.left == left.first().left })
+ assertTrue(right.all { it.left == right.first().left && it.left > left.first().left })
+ assertTrue(group.left >= right.first().left)
+ assertTrue(footer.left >= right.first().left)
+ assertTrue(footer.top >= group.bottom)
+ assertTrue(right.first().top >= footer.bottom)
+ assertTrue(left.zipWithNext().all { (first, next) -> first.bottom <= next.top })
+ }
+}
diff --git a/app/src/test/java/com/droiddeck/launcher/ui/InputSurfaceTouchTest.kt b/app/src/test/java/com/droiddeck/launcher/ui/InputSurfaceTouchTest.kt
index a42a0bf76c..786ee5203a 100644
--- a/app/src/test/java/com/droiddeck/launcher/ui/InputSurfaceTouchTest.kt
+++ b/app/src/test/java/com/droiddeck/launcher/ui/InputSurfaceTouchTest.kt
@@ -77,6 +77,59 @@ class InputSurfaceTouchTest {
assertFalse(state().isDown(PadState.A))
}
+ @Test fun anOutsideHoldPressesAndLightsTheButtonAlongsideAFinger() {
+ val surface = view.inputSurface
+ val button = (surface.javaClass.getDeclaredField("customCanvas").also { it.isAccessible = true }.get(surface) as ViewGroup).getChildAt(0)
+ fun lit() = button.javaClass.getDeclaredMethod("getHighlighted").also { it.isAccessible = true }.invoke(button) as Boolean
+
+ assertTrue(surface.hold(a.id, 0, true))
+ assertTrue(state().isDown(PadState.A))
+ assertTrue(lit())
+ touch(MotionEvent.ACTION_DOWN, 1 to (800f to 240f))
+ touch(MotionEvent.ACTION_UP, 1 to (800f to 240f))
+ assertTrue(state().isDown(PadState.A))
+ assertTrue(surface.hold(a.id, 0, false))
+ assertFalse(state().isDown(PadState.A))
+ assertFalse(lit())
+ assertFalse(surface.hold("custom:missing", 0, true))
+ }
+
+ @Test fun aCancelledTouchLeavesAnOutsideHoldOnTheButton() {
+ val surface = view.inputSurface
+ assertTrue(surface.hold(a.id, 0, true))
+ touch(MotionEvent.ACTION_DOWN, 1 to (800f to 240f))
+ touch(MotionEvent.ACTION_CANCEL, 1 to (800f to 240f))
+ assertTrue(state().isDown(PadState.A))
+ assertTrue(surface.hold(a.id, 0, false))
+ assertFalse(state().isDown(PadState.A))
+ }
+
+ @Test fun releasingAllInputLetsGoOfAnOutsideHold() {
+ val surface = view.inputSurface
+ val button = (surface.javaClass.getDeclaredField("customCanvas").also { it.isAccessible = true }.get(surface) as ViewGroup).getChildAt(0)
+ fun lit() = button.javaClass.getDeclaredMethod("getHighlighted").also { it.isAccessible = true }.invoke(button) as Boolean
+
+ assertTrue(surface.hold(a.id, 0, true))
+ view.releaseAll()
+ assertFalse(state().isDown(PadState.A))
+ assertFalse(lit())
+ touch(MotionEvent.ACTION_DOWN, 1 to (800f to 240f))
+ assertTrue(state().isDown(PadState.A))
+ touch(MotionEvent.ACTION_UP, 1 to (800f to 240f))
+ assertTrue(surface.hold(a.id, 0, false))
+ assertFalse(state().isDown(PadState.A))
+ }
+
+ @Test fun aCancelledOutsideHoldDoesNotRunTheButtonsCommand() {
+ val surface = view.inputSurface
+ assertTrue(surface.hold(keyboard.id, 0, true))
+ assertTrue(surface.hold(keyboard.id, 0, false, cancelled = true))
+ assertEquals(emptyList(), events)
+ assertTrue(surface.hold(keyboard.id, 0, true))
+ assertTrue(surface.hold(keyboard.id, 0, false))
+ assertEquals(listOf("KEYBOARD:PRIMARY"), events)
+ }
+
@Test fun steamDeckStylingKeepsTheHeldButtonAndItsHitArea() {
val button = a.copy(buttonShape = InputButtonShape.CIRCLE)
show(button)
diff --git a/docs/agent-control.md b/docs/agent-control.md
index 6cce0e77df..f794b6d8c6 100644
--- a/docs/agent-control.md
+++ b/docs/agent-control.md
@@ -40,7 +40,7 @@ Player controls and observations work over authorized ADB on any build: `state`,
`resume`, `wait`, `launch`, `quit`, `focus`, `input`, `ui`, `logs`, `screenshot`, `record`, `pacing`,
`thermal`, `displays`, `wake`, `glasses` (except `glasses raw`), and `access`.
-**Setup > Developer > Debugging tools** is off by default in every build, including debug builds.
+**Setup > Developer > droiddeckctl** is off by default in every build, including debug builds.
It enables `run`, `guest`, `cdp`, all `env` operations, `override`, `prefs`, and `glasses raw`. The
toggle switches directly without a confirmation dialog. The bridge refuses to change it through `ui`
or preference writes. The existing preference key, `setting-agent-commands` test tag, JSON command
@@ -233,7 +233,7 @@ and returns its exit code with the last 160 KiB of stdout and stderr (`--timeout
`cloud down|up ` syncs one game's cloud saves now, without launching it, with the
`result`, `files`, `bytes`, `reason`, `conflicts` and `detail` the game page shows; `--force` takes
that side over conflicts. The store id is the one in the game's install record (`library` shows
-it). Both need Setup > Developer > Debugging tools.
+it). Both need Setup > Developer > droiddeckctl.
`input pad` writes to the session's virtual pad, the one the guest sees, and never reaches the app's
own key handling. To test how DroidDeck's own screens treat a controller (menu focus and outlines,
@@ -243,13 +243,13 @@ controller, and presses the buttons in order: `a b x y lb rb select start guide
d-pad `up down left right`. `--hold` (120 ms) is how long each stays down and `--gap` (400 ms) the
pause after it; a d-pad press always waits at least 20 ms, so Android sees each release before
the next press. The device exists only while the command runs, takes about a second to appear, and
-works without a session or Setup > Developer > Debugging tools. Its name does not start with
+works without a session or Setup > Developer > droiddeckctl. Its name does not start with
`uinput-`, which the app treats as a system virtual device. `UINPUT_UNAVAILABLE` and `UINPUT_FAILED`
mean the same as for `input pen`.
`input pen` does not go through the app. It registers a virtual pen with `adb shell uinput -`, so
Android's own input reader makes the stylus events, as for a built-in pen, and it works on whatever
-is on screen, without a session or Setup > Developer > Debugging tools. Positions are fractions of
+is on screen, without a session or Setup > Developer > droiddeckctl. Positions are fractions of
the screen as shown; `dumpsys input` gives the frame, rotation and size of the display Android maps
internal touchscreens to. `hover` comes near and glides to `--to`; `tap`, `stroke` and `button`
hover for `--hover-ms` (80) before and after the touch or the button press. Each takes
diff --git a/docs/development/anti-cheat.md b/docs/development/anti-cheat.md
new file mode 100644
index 0000000000..d287aea85e
--- /dev/null
+++ b/docs/development/anti-cheat.md
@@ -0,0 +1,54 @@
+# Easy Anti-Cheat and BattlEye
+
+On a Steam Deck, Proton loads Valve's anti-cheat runtimes (Proton EasyAntiCheat Runtime, app 1826330, and
+Proton BattlEye Runtime, app 1161040). Their bridge libraries are x86 only, so the ARM64 DroidDeck-Proton
+cannot load them. Games that need them run an x86-64 DroidDeck-Proton under FEX instead.
+
+## Routing
+
+The Proton launchers (`steam-compatibility`: the built-in DroidDeck-Proton launcher and the wrapper put around
+every tool in `compatibilitytools.d`) check each `run` and `waitforexitandrun` before any ARM64 setup:
+
+- **Condition.** The game folder (`STEAM_COMPAT_INSTALL_PATH`, three levels deep) holds one of
+ `EasyAntiCheat/Settings.json`, `easyanticheat_x64.so`, `BEClient_x64.so` or `BEService_x64.exe`. No
+ title, app ID or device list is involved.
+- **Chosen tool.** Only launches through DroidDeck's own Proton (the built-in launcher or a `DroidDeck-Proton*`
+ folder) are moved. A game set to any other tool, such as GE-Proton, Bionic or Valve's Proton, in DroidDeck or
+ in Steam's Properties, runs on that tool and the launcher logs that it was chosen.
+- **Tool.** The newest `compatibilitytools.d/DroidDeck-Proton*` whose layout is x86-64
+ (`files/lib/wine/x86_64-unix`, no `files/bin-arm64`).
+- **Runtime.** `PROTON_EAC_RUNTIME` or `PROTON_BATTLEYE_RUNTIME` when it already points at a folder with the
+ bridge libraries, otherwise the runtime's folder in any Steam library.
+- **Launch.** `droiddeck-fex proton /proton `: FEX with the Steam Linux Runtime rootfs,
+ keeping the game's own `STEAM_COMPAT_DATA_PATH` prefix.
+
+Without the x86-64 tool or the runtime files the launch stays on ARM64 and the launcher logs why.
+`DROIDDECK_ANTICHEAT=off` in the game's launch options keeps it on ARM64. Picking the x86-64 tool for a
+game in Steam always runs it under FEX.
+
+## Why the x86-64 build needs its own Wine patches
+
+Android kernels use 39-bit user address spaces. Easy Anti-Cheat's launcher maps fixed memory at
+`0x7001_0000_0000`, which FEX serves from emulated guest pages (`tools/fex/patches/0027`). Exclusive load and store pairs on that
+memory are emulated as a compare-and-swap, so hosts without LSE atomics work too. `tools/fex/probes/guest-high-memory.c`
+checks loads, stores, atomics, iovec system calls, `madvise` and code written through a high alias. The x86-64 Wine
+in DroidDeck-Proton carries `ntdll-fixed-allocations-above-host-address-limit.patch` (fixed mappings above
+the host limit go to the emulator) and `ntdll-keep-libc-in-native-syscall-dispatch-range.patch` (the
+re-armed syscall user dispatch range keeps libc native). Stock x86-64 Proton stops after "Hack native
+syscalls" on the same game.
+
+Easy Anti-Cheat's launcher attaches to the game with ptrace, stops it on a `rt_sigprocmask` call, runs its
+own loader and restores the registers it saved at the stop. The call then returns `ENOSYS` without writing
+the old mask, as it does on a desktop kernel. `ntdll-retry-blocking-signals-dropped-by-a-tracer.patch`
+retries the block once when it fails, so Wine never restores an uninitialised mask that blocks `SIGSYS`.
+
+## The container's procfs
+
+Android mounts `/proc` with `hidepid=invisible,gid=3009`, and Easy Anti-Cheat refuses that mount with
+launch error 261. Without root, user namespaces or PID namespaces, no procfs instance without those options
+can be mounted. Every program in the container runs as the app's user and already sees all of the
+container's processes, as it would in a PID-namespaced sandbox on a desktop, so FEX's emulated
+`/proc//mounts` and `/proc//mountinfo` show the proc mount without `hidepid=`, `gid=` and
+`subset=` (`tools/fex/patches/0029`). Only x86 programs under FEX see this view; every other line of the
+table is the host's. Processes of other Android users stay hidden, as host processes do from a desktop
+sandbox.
diff --git a/docs/development/boot-movies.md b/docs/development/boot-movies.md
index 7cb03ce5bb..e4fca523b2 100644
--- a/docs/development/boot-movies.md
+++ b/docs/development/boot-movies.md
@@ -35,6 +35,6 @@ plays without sound rather than louder, and plays nothing if that fails too. Cov
Selecting a movie here sets `bootMovieApplyNext`, so the next session stages the movie as `bigpicture_startup.webm` and
points both sections at it, over a movie Steam had picked; otherwise a movie picked in Steam is left alone and taken over as
the choice here without being staged over Steam's own setting. Settings > Boot movie > Installed has a report button that
-writes what Steam and DroidDeck know to `Download/DroidDeck/boot-movie-report.txt`; it only shows while Debugging tools is on.
+writes what Steam and DroidDeck know to `Download/DroidDeck/boot-movie-report.txt`; it only shows while droiddeckctl is on.
A movie larger than 1920x1080 (4K and the like) is never copied or remuxed as it is: import and staging always convert it
(the converter scales to at most 1280x720), because such movies have made Steam crash while it starts.
diff --git a/docs/development/game-environment.md b/docs/development/game-environment.md
index 6036cc3a7a..8fe41b0a61 100644
--- a/docs/development/game-environment.md
+++ b/docs/development/game-environment.md
@@ -117,7 +117,7 @@ the UI shows a restart reminder instead of enabling logs that would be discarded
| `PROTON_LOG` | `1` |
| `PROTON_LOG_DIR`, `PROTON_CRASH_REPORT_DIR`, `DXVK_LOG_PATH` | The actual session log directory |
| `DXVK_LOG_LEVEL` | `debug` |
-| `VKD3D_DEBUG` | `info` |
+| `VKD3D_DEBUG`, `VKD3D_SHADER_DEBUG` | `warn` |
| `WINEDEBUG` | Valid custom channels plus Proton's standard diagnostic channels |
Diagnostics take precedence over conflicting inherited, shared, or per-game log
@@ -193,6 +193,14 @@ A Unity game under FEX (`UnityPlayer.dll` for Windows builds under Proton,
turns it off: without TSO such games can deadlock or crash (seen with Megabonk
and Crab Game). A FEX preset chosen for the game itself still applies.
+A game that ships the PlayStation PC SDK runtime installer
+(`install_pspc_sdk_runtime.bat`, `PsPcSdkRuntimeInstaller.msi` or
+`PsPcSdkRuntimeManager.msi`, next to the executable, one folder below, or in an
+Unreal launcher's `/Binaries/Win64`) gets FEX's full x87 precision.
+The SDK's obfuscated x87 code depends on full precision; with reduced precision
+the game crashes or hangs at startup (FEX-Emu/FEX#4556, FEX-Emu/FEX#5988). A
+FEX preset or value chosen for the game itself still applies.
+
An Inno Setup installer added as a game runs with the Stability preset's FEX
settings (full TSO, full x87 precision, no multiblock). Under the default
Performance + TSO preset the 32-bit setup stub corrupts its own paths and stops
diff --git a/docs/development/proot-performance.md b/docs/development/proot-performance.md
index 254106016a..26da4c38de 100644
--- a/docs/development/proot-performance.md
+++ b/docs/development/proot-performance.md
@@ -325,7 +325,7 @@ or repeatedly hit a path the wrappers cannot resolve.
### Opt-in tracer profiling
-With **Setup > Developer > Debugging tools** enabled, queue profiling for one session:
+With **Setup > Developer > droiddeckctl** enabled, queue profiling for one session:
```sh
tools/droiddeckctl proot-profile enable --slow-us 1000
diff --git a/docs/development/x86-64-steam-client.md b/docs/development/x86-64-steam-client.md
index ced25e4c70..d4d67c7687 100644
--- a/docs/development/x86-64-steam-client.md
+++ b/docs/development/x86-64-steam-client.md
@@ -216,9 +216,10 @@ alone would then read as an installed client.
NullReferenceException, internal CLR errors). A writable mapping or mprotect now write-protects the
overlapping part of any alias that is already executable, so the first write faults and invalidates.
`FEX_SMCCHECKS=full` was the only workaround; no setting is needed with the patch.
- - `0007-cmake-install-code-without-depends`: CMake 4.5 rejects the `DEPENDS` argument FEX passes to
- `install(CODE ...)` for the guest thunk libraries, so builds with host thunks stopped at configure.
- The guest libraries are external projects in the default build, which `install` already follows.
+ - `0007-cmake-install-code-without-depends` (`Fixed-upstream: FEX-2612`): CMake 4.5 rejects the
+ `DEPENDS` argument FEX passes to `install(CODE ...)` for the guest thunk libraries, so builds with
+ host thunks stopped at configure. The guest libraries are external projects in the default build,
+ which `install` already follows.
- `0008-signal-return-restores-syscall-state`: a guest `rt_sigreturn` is a system call, so FEX's
syscall stub marks every static register as spilled (`InSyscallInfo = 0xFFFF`). When the handler
left RIP alone, the return resumed the interrupted JIT code without passing the stub's reset, and
diff --git a/docs/phantom-processes.md b/docs/phantom-processes.md
index b3bee82824..a0c81c0faf 100644
--- a/docs/phantom-processes.md
+++ b/docs/phantom-processes.md
@@ -499,7 +499,7 @@ handed-off daemons. With only the hook's handoffs off (`DD_SPAWN_DAEMONS=0`), RE
runs in workers (`GuestWorkers.enabled`: the native userland, Android 11+, and the
`childProcessHandoff` session preference, on by default). It does not block Steam. Turning the
preference off (`droiddeckctl prefs set session childProcessHandoff false --type bool`, with
-Setup > Developer > Debugging tools on; see `docs/agent-control.md`) brings back
+Setup > Developer > droiddeckctl on; see `docs/agent-control.md`) brings back
the old behavior and the old requirement.
### C. Plan
diff --git a/docs/settings-map.md b/docs/settings-map.md
index aface4f407..b38a8fdf9f 100644
--- a/docs/settings-map.md
+++ b/docs/settings-map.md
@@ -45,7 +45,8 @@ Links of the form `droiddeck://settings/` open a Settings section direc
| Use as Home screen | Settings › Launcher (`droiddeck://settings/launcher`) | home screen, launcher |
| Launcher orientation | Settings › Launcher (`droiddeck://settings/launcher`) | rotate, portrait |
| Session orientation | Settings › Launcher (`droiddeck://settings/launcher`) | rotate, portrait |
-| Fullscreen | Settings › Launcher (`droiddeck://settings/launcher`) | |
+| Launcher fullscreen | Settings › Launcher (`droiddeck://settings/launcher`) | status bar, navigation bar, portrait |
+| Session fullscreen | Settings › Launcher (`droiddeck://settings/launcher`) | status bar, navigation bar, portrait |
| Swipe between pages | Settings › Launcher (`droiddeck://settings/launcher`) | gesture |
| Controller haptics | Settings › Launcher (`droiddeck://settings/launcher`) | vibration, rumble |
| Dual screen launcher | Settings › Launcher (`droiddeck://settings/launcher`) | thor, second screen, bottom screen |
@@ -58,7 +59,8 @@ Links of the form `droiddeck://settings/` open a Settings section direc
| Game debug logs | Settings › Developer (`droiddeck://settings/developer`) | logs, wine, proton |
| Enhanced diagnostics for next session | Settings › Developer (`droiddeck://settings/developer`) | logs |
| Reset all settings | Settings › Developer (`droiddeck://settings/developer`) | default |
-| Developer tools | Settings › Developer (`droiddeck://settings/developer`) | agent, ai, claude, codex |
+| Show developer tools | Settings › Developer (`droiddeck://settings/developer`) | agent, ai, claude, codex |
+| droiddeckctl | Settings › Developer (`droiddeck://settings/developer`) | debugging tools, cli |
| Detailed graphics logs | Settings › Developer (`droiddeck://settings/developer`) | logs, gpu |
## Tabs
diff --git a/tools/agent/AGENTS.md b/tools/agent/AGENTS.md
index d9b7deb09e..3b2ccd2c84 100644
--- a/tools/agent/AGENTS.md
+++ b/tools/agent/AGENTS.md
@@ -44,8 +44,10 @@ from what tripped agents up on real devices.
running makes Steam show "Game already running" and `launch` time out.
- Session scripts are APK assets, copied into the rootfs at every session start over any local
edit. A Lab build (`dd-lab-build`, see `docs/lab-builds.md`) carries app code and resources only:
- session scripts, native code and assets need a new APK, such as the pull request's CI test build
- (DroidDeck > Updates > Test builds).
+ session scripts, native code, assets and `AndroidManifest.xml` need a new APK, such as the pull
+ request's CI test build (DroidDeck > Updates > Test builds). `dd-lab-build` refuses changes to the
+ manifest, native code, Gradle files and a few startup classes, but builds session script and asset
+ changes without them. To try the rest of a branch, build a copy without those changes.
## Changing DroidDeck
@@ -56,7 +58,12 @@ The source is checked out at `/root/DroidDeck` once the Agent tab's build tools
- `dd-lab-build` builds the checkout as a Lab build and restarts DroidDeck on it. DroidDeck runs the
build in a process of its own and shows its progress; `dd-lab-build` follows its log. Run it in
the background and keep checking, so the user can talk to you meanwhile. The restart ends your
- process, and the conversation continues on the new build.
+ process; DroidDeck starts you again on the new build, in the same conversation, so tell the user
+ what you will check then instead of asking them to message you.
+- To try a change, commit it and go straight to `dd-lab-build`: it compiles the app, so a Gradle
+ compile first only adds time. It refuses changes since the installed build (`apkCommit` in
+ `droiddeckctl state`) that need a new APK. For a branch from a newer `origin/main`, cherry-pick
+ its commits onto a branch from `apkCommit` and build that.
- Python tests run from the repository root: `python3 -m unittest tools.tests.test_x`. Some fail on
the device on `origin/main` too; run them on a worktree of `origin/main` before blaming a change.
- Gradle runs on the device once the build tools are set up, but slowly: run the test classes that cover
diff --git a/tools/droiddeckctl b/tools/droiddeckctl
index 831f5fbf89..b5a09825a5 100755
--- a/tools/droiddeckctl
+++ b/tools/droiddeckctl
@@ -108,7 +108,8 @@ def receiver_call(adb: str, serial: str, method: str, arg: str | None, request:
raise ControlError(f"{PACKAGE} is not running and this shell has no `content` command to start it; open DroidDeck once", "APP_NOT_RUNNING")
call_id = uuid.uuid4().hex[:16]
remote = f"/sdcard/Android/data/{PACKAGE}/files/agent-calls/{call_id}.json"
- command = ["shell", "am", "broadcast", "-a", f"{PACKAGE}.AGENT_CALL", "-p", PACKAGE,
+ # By component: release variants rename the package but not the receiver's intent action.
+ command = ["shell", "am", "broadcast", "-n", f"{PACKAGE}/com.droiddeck.launcher.agent.AgentCallReceiver",
"--es", "method", method, "--es", "id", call_id]
if arg is not None:
command += ["--es", "arg", shlex.quote(arg)]
@@ -599,7 +600,7 @@ def unpack_logs(archive: Path, destination: Path, session_id: str) -> None:
def require_commands(adb: str, serial: str) -> dict:
access = checked(provider_call(adb, serial, "access"), "ACCESS_FAILED")
if access.get("commands") is not True:
- raise ControlError("Debugging tools are off: turn on Setup > Developer > Debugging tools on the device",
+ raise ControlError("droiddeckctl is off: turn on Setup > Developer > droiddeckctl on the device",
"AGENT_COMMANDS_DISABLED")
return access
diff --git a/tools/fex/build-in-arch.sh b/tools/fex/build-in-arch.sh
index dccb24f882..9adc7e93e5 100755
--- a/tools/fex/build-in-arch.sh
+++ b/tools/fex/build-in-arch.sh
@@ -63,6 +63,11 @@ cmake -S fex-src -B fex-build -G Ninja \
${FEX_EXTRA_CXXFLAGS:+-DCMAKE_CXX_FLAGS="$FEX_EXTRA_CXXFLAGS"}
ninja -C fex-build
DESTDIR="$WORK/out" ninja -C fex-build install
+mkdir -p out/usr/local/share/fex-emu
+for p in tools/fex/patches/*.patch; do
+ p=$(basename "$p" .patch)
+ echo "${p#*-}"
+done > out/usr/local/share/fex-emu/.droiddeck-patches
install -Dm755 /usr/bin/unsquashfs out/usr/local/bin/unsquashfs
install -Dm644 "$(readlink -f /usr/lib/libxxhash.so.0)" out/usr/local/lib/libxxhash.so.0
bundled=$(cd out/usr/local/lib && ls -- *.so* | sort -u)
diff --git a/tools/fex/patches/0007-cmake-install-code-without-depends.patch b/tools/fex/patches/0007-cmake-install-code-without-depends.patch
index 6752b40280..83c0e1fb82 100644
--- a/tools/fex/patches/0007-cmake-install-code-without-depends.patch
+++ b/tools/fex/patches/0007-cmake-install-code-without-depends.patch
@@ -1,3 +1,4 @@
+Fixed-upstream: FEX-2612
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8976588..3ae54f4 100644
--- a/CMakeLists.txt
diff --git a/tools/fex/patches/0008-signal-return-restores-syscall-state.patch b/tools/fex/patches/0008-signal-return-restores-syscall-state.patch
index 6592a94550..327fe76a85 100644
--- a/tools/fex/patches/0008-signal-return-restores-syscall-state.patch
+++ b/tools/fex/patches/0008-signal-return-restores-syscall-state.patch
@@ -1,8 +1,8 @@
diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator.cpp b/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator.cpp
-index b4c7b24..643185d 100644
+index 345f4d834..085ff00a2 100644
--- a/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator.cpp
+++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator.cpp
-@@ -264,12 +264,13 @@ void SignalDelegator::RestoreThreadState(FEXCore::Core::InternalThreadState* Thr
+@@ -283,12 +283,13 @@ void SignalDelegator::RestoreThreadState(FEXCore::Core::InternalThreadState* Thr
auto Frame = Thread->CurrentFrame;
if (Context->Flags & ArchHelpers::Context::ContextFlags::CONTEXT_FLAG_INJIT) {
diff --git a/tools/fex/patches/0009-signal-handler-escape-frees-host-stack.patch b/tools/fex/patches/0009-signal-handler-escape-frees-host-stack.patch
index fbeec5ec96..6af2b7eb33 100644
--- a/tools/fex/patches/0009-signal-handler-escape-frees-host-stack.patch
+++ b/tools/fex/patches/0009-signal-handler-escape-frees-host-stack.patch
@@ -1,5 +1,5 @@
diff --git a/Source/Tools/LinuxEmulation/ArchHelpers/MContext.h b/Source/Tools/LinuxEmulation/ArchHelpers/MContext.h
-index 02bb6bf..2e72492 100644
+index 02bb6bfef..2e724929f 100644
--- a/Source/Tools/LinuxEmulation/ArchHelpers/MContext.h
+++ b/Source/Tools/LinuxEmulation/ArchHelpers/MContext.h
@@ -49,6 +49,11 @@ struct X86ContextBackup {
@@ -27,10 +27,10 @@ index 02bb6bf..2e72492 100644
// Arm64 doesn't have a red zone
diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator.cpp b/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator.cpp
-index 643185d..53179c4 100644
+index 085ff00a2..5c79d1092 100644
--- a/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator.cpp
+++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator.cpp
-@@ -136,6 +136,31 @@ void SignalDelegator::SpillSRA(FEXCore::Core::InternalThreadState* Thread, void*
+@@ -155,6 +155,31 @@ void SignalDelegator::SpillSRA(FEXCore::Core::InternalThreadState* Thread, void*
#endif
}
@@ -62,7 +62,7 @@ index 643185d..53179c4 100644
ArchHelpers::Context::ContextBackup* SignalDelegator::StoreThreadState(FEXCore::Core::InternalThreadState* Thread, int Signal, void* ucontext) {
// We can end up getting a signal at any point in our host state
// Jump to a handler that saves all state so we can safely return
-@@ -249,6 +274,19 @@ void SignalDelegator::RestoreThreadState(FEXCore::Core::InternalThreadState* Thr
+@@ -268,6 +293,19 @@ void SignalDelegator::RestoreThreadState(FEXCore::Core::InternalThreadState* Thr
}
OldSP = *reinterpret_cast(GuestSP);
@@ -82,7 +82,7 @@ index 643185d..53179c4 100644
}
uintptr_t NewSP = OldSP;
-@@ -287,6 +325,7 @@ bool SignalDelegator::HandleDispatcherGuestSignal(FEXCore::Core::InternalThreadS
+@@ -306,6 +344,7 @@ bool SignalDelegator::HandleDispatcherGuestSignal(FEXCore::Core::InternalThreadS
auto ContextBackup = StoreThreadState(Thread, Signal, ucontext);
auto Frame = Thread->CurrentFrame;
@@ -90,7 +90,7 @@ index 643185d..53179c4 100644
// Ref count our faults
// We use this to track if it is safe to clear cache
-@@ -336,6 +375,8 @@ bool SignalDelegator::HandleDispatcherGuestSignal(FEXCore::Core::InternalThreadS
+@@ -355,6 +394,8 @@ bool SignalDelegator::HandleDispatcherGuestSignal(FEXCore::Core::InternalThreadS
uint64_t OldGuestSP = Frame->State.gregs[FEXCore::X86State::REG_RSP];
uint64_t NewGuestSP = OldGuestSP;
@@ -99,7 +99,7 @@ index 643185d..53179c4 100644
// altstack is only used if the signal handler was setup with SA_ONSTACK
if (GuestAction->sa_flags & SA_ONSTACK) {
-@@ -345,6 +386,8 @@ bool SignalDelegator::HandleDispatcherGuestSignal(FEXCore::Core::InternalThreadS
+@@ -364,6 +405,8 @@ bool SignalDelegator::HandleDispatcherGuestSignal(FEXCore::Core::InternalThreadS
// Then that means we are hitting recursive signals and we need to walk back the stack correctly
uint64_t AltStackBase = reinterpret_cast(GuestStack->ss_sp);
uint64_t AltStackEnd = AltStackBase + GuestStack->ss_size;
@@ -108,7 +108,7 @@ index 643185d..53179c4 100644
if (OldGuestSP >= AltStackBase && OldGuestSP <= AltStackEnd) {
// We are already in the alt stack, the rest of the code will handle adjusting this
} else {
-@@ -353,6 +396,40 @@ bool SignalDelegator::HandleDispatcherGuestSignal(FEXCore::Core::InternalThreadS
+@@ -372,6 +415,40 @@ bool SignalDelegator::HandleDispatcherGuestSignal(FEXCore::Core::InternalThreadS
}
}
@@ -149,7 +149,7 @@ index 643185d..53179c4 100644
// siginfo_t
siginfo_t* HostSigInfo = reinterpret_cast(info);
-@@ -491,6 +568,8 @@ bool SignalDelegator::HandleSignalPause(FEXCore::Core::InternalThreadState* Thre
+@@ -510,6 +587,8 @@ bool SignalDelegator::HandleSignalPause(FEXCore::Core::InternalThreadState* Thre
// Our ref counting doesn't matter anymore
Thread->CurrentFrame->SignalHandlerRefCounter = 0;
@@ -159,7 +159,7 @@ index 643185d..53179c4 100644
// Set the new PC
if (CTX->IsAddressInCodeBuffer(Thread, ArchHelpers::Context::GetPc(ucontext))) {
diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/ThreadManager.h b/Source/Tools/LinuxEmulation/LinuxSyscalls/ThreadManager.h
-index dfcd4b0..e4a86a9 100644
+index 0f45cf68d..408cddf71 100644
--- a/Source/Tools/LinuxEmulation/LinuxSyscalls/ThreadManager.h
+++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/ThreadManager.h
@@ -83,6 +83,9 @@ struct ThreadStateObject : public FEXCore::Allocator::FEXAllocOperators {
diff --git a/tools/fex/patches/0011-thunk-calls-mark-spilled-state.patch b/tools/fex/patches/0011-thunk-calls-mark-spilled-state.patch
index 626c726b59..cebe184aa2 100644
--- a/tools/fex/patches/0011-thunk-calls-mark-spilled-state.patch
+++ b/tools/fex/patches/0011-thunk-calls-mark-spilled-state.patch
@@ -1,7 +1,8 @@
diff --git a/FEXCore/Source/Interface/Core/Core.cpp b/FEXCore/Source/Interface/Core/Core.cpp
+index 1946dc946..9f04358c5 100644
--- a/FEXCore/Source/Interface/Core/Core.cpp
+++ b/FEXCore/Source/Interface/Core/Core.cpp
-@@ -383,7 +383,11 @@
+@@ -383,7 +383,11 @@ bool ContextImpl::InitCore() {
}
void ContextImpl::HandleCallback(FEXCore::Core::InternalThreadState* Thread, uint64_t RIP) {
@@ -15,9 +16,10 @@ diff --git a/FEXCore/Source/Interface/Core/Core.cpp b/FEXCore/Source/Interface/C
void ContextImpl::ExecuteThread(FEXCore::Core::InternalThreadState* Thread) {
diff --git a/FEXCore/Source/Interface/Core/JIT/BranchOps.cpp b/FEXCore/Source/Interface/Core/JIT/BranchOps.cpp
+index ae3ed51e4..c5e656d2c 100644
--- a/FEXCore/Source/Interface/Core/JIT/BranchOps.cpp
+++ b/FEXCore/Source/Interface/Core/JIT/BranchOps.cpp
-@@ -305,6 +305,9 @@
+@@ -306,6 +306,9 @@ DEF_OP(Thunk) {
PushDynamicRegs(TMP1);
@@ -27,7 +29,7 @@ diff --git a/FEXCore/Source/Interface/Core/JIT/BranchOps.cpp b/FEXCore/Source/In
mov(ARMEmitter::Size::i64Bit, ARMEmitter::Reg::r0, GetReg(Op->ArgPtr));
InsertNamedThunkRelocation(ARMEmitter::Reg::r2, Op->ThunkNameHash);
-@@ -320,6 +323,8 @@
+@@ -321,6 +324,8 @@ DEF_OP(Thunk) {
FillStaticRegs({
.NZCV = false,
});
@@ -37,9 +39,10 @@ diff --git a/FEXCore/Source/Interface/Core/JIT/BranchOps.cpp b/FEXCore/Source/In
DEF_OP(ValidateCode) {
diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator.cpp b/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator.cpp
+index 5c79d1092..e8e04b056 100644
--- a/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator.cpp
+++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator.cpp
-@@ -107,6 +107,10 @@
+@@ -126,6 +126,10 @@ void SignalDelegator::SpillSRA(FEXCore::Core::InternalThreadState* Thread, void*
#ifdef ARCHITECTURE_arm64
Thread->CurrentFrame->State.rip = CTX->RestoreRIPFromHostPC(Thread, ArchHelpers::Context::GetPc(ucontext));
@@ -50,7 +53,7 @@ diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator.cpp b/Sou
for (size_t i = 0; i < Config.SRAGPRCount; i++) {
const uint8_t SRAIdxMap = Config.SRAGPRMapping[i];
if (IgnoreMask & (1U << SRAIdxMap)) {
-@@ -301,12 +305,10 @@
+@@ -320,12 +324,10 @@ void SignalDelegator::RestoreThreadState(FEXCore::Core::InternalThreadState* Thr
if (Context->UContextLocation) {
auto Frame = Thread->CurrentFrame;
@@ -67,7 +70,7 @@ diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator.cpp b/Sou
if (Is64BitMode) {
RestoreFrame_x64(Thread, Context, Frame, ucontext);
-@@ -361,6 +363,9 @@
+@@ -380,6 +382,9 @@ bool SignalDelegator::HandleDispatcherGuestSignal(FEXCore::Core::InternalThreadS
ContextBackup->InSyscallInfo = Thread->CurrentFrame->InSyscallInfo;
Thread->CurrentFrame->InSyscallInfo = 0;
} else {
@@ -78,9 +81,10 @@ diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator.cpp b/Sou
// This is likely to cause issues but in some cases it isn't fatal
// This can also happen if we have put a signal on hold, then we just reenabled the signal
diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator/GuestFramesManagement.cpp b/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator/GuestFramesManagement.cpp
+index fa6260954..e5d92e7c5 100644
--- a/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator/GuestFramesManagement.cpp
+++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator/GuestFramesManagement.cpp
-@@ -131,7 +131,7 @@
+@@ -131,7 +131,7 @@ void SignalDelegator::RestoreFrame_x64(FEXCore::Core::InternalThreadState* Threa
if (Context->OriginalRIP != guest_uctx->uc_mcontext.gregs[FEXCore::x86_64::FEX_REG_RIP] || Context->FaultToTopAndGeneratedException) {
// Restore previous `InSyscallInfo` structure.
@@ -89,7 +93,7 @@ diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator/GuestFram
// Hack! Go back to the top of the dispatcher top
// This is only safe inside the JIT rather than anything outside of it
-@@ -211,7 +211,7 @@
+@@ -211,7 +211,7 @@ void SignalDelegator::RestoreFrame_ia32(FEXCore::Core::InternalThreadState* Thre
// If the guest modified the RIP then we need to take special precautions here
if (Context->OriginalRIP != guest_uctx->sc.ip || Context->FaultToTopAndGeneratedException) {
// Restore previous `InSyscallInfo` structure.
@@ -98,7 +102,7 @@ diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator/GuestFram
// Hack! Go back to the top of the dispatcher top
// This is only safe inside the JIT rather than anything outside of it
-@@ -290,7 +290,7 @@
+@@ -290,7 +290,7 @@ void SignalDelegator::RestoreRTFrame_ia32(FEXCore::Core::InternalThreadState* Th
if (Context->OriginalRIP != guest_uctx->uc.uc_mcontext.gregs[FEXCore::x86::FEX_REG_EIP] || Context->FaultToTopAndGeneratedException) {
// Restore previous `InSyscallInfo` structure.
diff --git a/tools/fex/patches/0012-signal-return-applies-guest-registers.patch b/tools/fex/patches/0012-signal-return-applies-guest-registers.patch
index d97a75bee3..09c8398310 100644
--- a/tools/fex/patches/0012-signal-return-applies-guest-registers.patch
+++ b/tools/fex/patches/0012-signal-return-applies-guest-registers.patch
@@ -1,7 +1,8 @@
diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator.h b/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator.h
+index 9e6820bf6..43898e700 100644
--- a/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator.h
+++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator.h
-@@ -263,6 +263,8 @@
+@@ -266,6 +266,8 @@ private:
FEXCore::Core::CpuStateFrame* Frame, void* ucontext);
void RestoreRTFrame_ia32(FEXCore::Core::InternalThreadState* Thread, ArchHelpers::Context::ContextBackup* Context,
FEXCore::Core::CpuStateFrame* Frame, void* ucontext);
@@ -11,9 +12,10 @@ diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator.h b/Sourc
///< Setup the signal frame for x64.
uint64_t SetupFrame_x64(FEXCore::Core::InternalThreadState* Thread, ArchHelpers::Context::ContextBackup* ContextBackup,
diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator/GuestFramesManagement.cpp b/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator/GuestFramesManagement.cpp
+index e5d92e7c5..38dc524f1 100644
--- a/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator/GuestFramesManagement.cpp
+++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator/GuestFramesManagement.cpp
-@@ -122,6 +122,32 @@
+@@ -122,6 +122,32 @@ static void SetXStateInfo(T* xstate, bool is_avx_enabled) {
}
}
@@ -46,7 +48,7 @@ diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator/GuestFram
void SignalDelegator::RestoreFrame_x64(FEXCore::Core::InternalThreadState* Thread, ArchHelpers::Context::ContextBackup* Context,
FEXCore::Core::CpuStateFrame* Frame, void* ucontext) {
auto* guest_uctx = reinterpret_cast(Context->UContextLocation);
-@@ -202,6 +228,27 @@
+@@ -202,6 +228,27 @@ void SignalDelegator::RestoreFrame_x64(FEXCore::Core::InternalThreadState* Threa
const auto modulo_i = (i + CurrentOffset) % 8;
memcpy(&Frame->State.mm[modulo_i], &fpstate->_st[i], sizeof(Frame->State.mm[0]));
}
@@ -74,7 +76,7 @@ diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator/GuestFram
}
}
-@@ -280,6 +327,17 @@
+@@ -280,6 +327,17 @@ void SignalDelegator::RestoreFrame_ia32(FEXCore::Core::InternalThreadState* Thre
const auto modulo_i = (i + CurrentOffset) % 8;
memcpy(&Frame->State.mm[modulo_i], &fpstate->_st[i], 10);
}
@@ -92,7 +94,7 @@ diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/SignalDelegator/GuestFram
}
}
-@@ -359,6 +417,17 @@
+@@ -359,6 +417,17 @@ void SignalDelegator::RestoreRTFrame_ia32(FEXCore::Core::InternalThreadState* Th
const auto modulo_i = (i + CurrentOffset) % 8;
memcpy(&Frame->State.mm[modulo_i], &fpstate->_st[i], 10);
}
diff --git a/tools/fex/patches/0017-fd-exec-keeps-argv0-and-path.patch b/tools/fex/patches/0017-fd-exec-keeps-argv0-and-path.patch
index 2192b9b0af..9bdad1cebd 100644
--- a/tools/fex/patches/0017-fd-exec-keeps-argv0-and-path.patch
+++ b/tools/fex/patches/0017-fd-exec-keeps-argv0-and-path.patch
@@ -1,8 +1,8 @@
diff --git a/Source/Tools/FEXInterpreter/FEXInterpreter.cpp b/Source/Tools/FEXInterpreter/FEXInterpreter.cpp
-index 2881ad9..abc84f3 100644
+index dd2c18303..e7e88f8f2 100644
--- a/Source/Tools/FEXInterpreter/FEXInterpreter.cpp
+++ b/Source/Tools/FEXInterpreter/FEXInterpreter.cpp
-@@ -518,7 +518,7 @@ int main(int argc, char** argv, char** const envp) {
+@@ -524,7 +524,7 @@ int main(int argc, char** argv, char** const envp) {
FEXCore::Config::Set(FEXCore::Config::CONFIG_APP_CONFIG_NAME, Program.ProgramName);
} else {
// Anonymous program.
@@ -12,7 +12,7 @@ index 2881ad9..abc84f3 100644
}
} else {
diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/Syscalls.cpp b/Source/Tools/LinuxEmulation/LinuxSyscalls/Syscalls.cpp
-index a7a432b..4a77d87 100644
+index a7a432bbd..4a77d8716 100644
--- a/Source/Tools/LinuxEmulation/LinuxSyscalls/Syscalls.cpp
+++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/Syscalls.cpp
@@ -441,7 +441,7 @@ uint64_t ExecveHandler(FEXCore::Core::CpuStateFrame* Frame, const char* pathname
diff --git a/tools/fex/patches/0021-anticheat-ptrace-seccomp-and-proc-emulation.patch b/tools/fex/patches/0021-anticheat-ptrace-seccomp-and-proc-emulation.patch
new file mode 100644
index 0000000000..b070802512
--- /dev/null
+++ b/tools/fex/patches/0021-anticheat-ptrace-seccomp-and-proc-emulation.patch
@@ -0,0 +1,5015 @@
+From: StonkGuy <68372320+StonkGuy@users.noreply.github.com>
+Subject: [PATCH] x86-64 ptrace, seccomp and /proc emulation for anti-cheat launchers
+
+Author: StonkGuy (https://github.com/StonkGuy/FEX)
+Source: https://github.com/StonkGuy/FEX branch eac-2611 (tag eac-2611.1)
+Copyright (c) StonkGuy and FEX contributors, MIT licence
+
+diff --git a/FEXCore/Source/CMakeLists.txt b/FEXCore/Source/CMakeLists.txt
+index 61385d2c3..b515a4a02 100644
+--- a/FEXCore/Source/CMakeLists.txt
++++ b/FEXCore/Source/CMakeLists.txt
+@@ -4,6 +4,7 @@ set(FEXCORE_BASE_SRCS
+ Interface/Config/Config.cpp
+ Utils/Allocator.cpp
+ Utils/FileLoading.cpp
++ Utils/FaultSafeRead.cpp
+ Utils/FileUtils.cpp
+ Utils/ForcedAssert.cpp
+ Utils/LogManager.cpp
+diff --git a/FEXCore/Source/Interface/Config/Config.json.in b/FEXCore/Source/Interface/Config/Config.json.in
+index 6bd89a1e5..860bd4429 100644
+--- a/FEXCore/Source/Interface/Config/Config.json.in
++++ b/FEXCore/Source/Interface/Config/Config.json.in
+@@ -604,6 +604,62 @@
+ "\tfull: Validate code before every run (slow)"
+ ]
+ },
++ "ProfileSampleHz": {
++ "Type": "uint32",
++ "Default": "0",
++ "AffectsCodeGen": "false",
++ "Desc": [
++ "Samples the host PC of the main guest thread this many times per second into /dev/shm/fex--samples (in-process; no ptrace).",
++ "Use with LibraryJITNaming to attribute samples to guest libraries. 0 disables."
++ ]
++ },
++ "ProfileSampleMinThreads": {
++ "Type": "uint32",
++ "Default": "100",
++ "AffectsCodeGen": "false",
++ "Desc": [
++ "ProfileSampleHz starts the sampler in the process that reaches this many guest threads (default 100: the application,",
++ "not the hundreds of helper processes of a Steam/Wine session). 1 samples every process from its first thread.",
++ "0: no sampler thread; each SIGPROF sent from outside stores a snapshot record of the receiving thread (ring in fex--snap)."
++ ]
++ },
++ "ProfileSampleAllThreads": {
++ "Type": "bool",
++ "Default": "false",
++ "AffectsCodeGen": "false",
++ "Desc": [
++ "ProfileSampleHz samples every guest thread instead of only the main one."
++ ]
++ },
++ "SignalTrace": {
++ "Type": "bool",
++ "Default": "false",
++ "AffectsCodeGen": "false",
++ "Desc": [
++ "Records guest signal handling events (host signal arrival, masking decisions, delivery, rt_sigreturn, sigprocmask, kill/tgkill)",
++ "into a ring buffer in /dev/shm/fex--sigtrace. For diagnosing lost signals; decode with tools/harness/sigtrace.py."
++ ]
++ },
++ "SignalMaskFix": {
++ "Type": "bool",
++ "Default": "true",
++ "AffectsCodeGen": "false",
++ "Desc": [
++ "Run guest signal handlers with the signal mask Linux gives them (the interrupted mask plus sa_mask and the signal)",
++ "and restore the interrupted mask at rt_sigreturn. With false FEX blocks only sa_mask and the signal during the handler and keeps",
++ "a stale view of the mask afterwards, so a signal handler that restores its saved mask can unblock the signal it is running for."
++ ]
++ },
++ "SMCHotPageFaults": {
++ "Type": "uint32",
++ "Default": "32",
++ "AffectsCodeGen": "true",
++ "Desc": [
++ "Number of self-modifying-code write faults a guest page may take before FEX stops write-protecting it.",
++ "Instead the JIT verifies the code of every instruction it translates from such a page (like SMCChecks=full, but only for that page).",
++ "Only used with SMCChecks=mtrack. 0 disables the demotion (pages stay write-protected and keep faulting)."
++ ]
++ },
+ "TSOEnabled": {
+ "Type": "bool",
+ "Default": "true",
+@@ -691,6 +747,16 @@
+ "Should only be used for applications that have issues with this set."
+ ]
+ },
++ "EnableCPUIDFaulting": {
++ "Type": "bool",
++ "Default": "false",
++ "AffectsCodeGen": "false",
++ "Desc": [
++ "Honour ARCH_SET_CPUID. When a guest thread calls arch_prctl(ARCH_SET_CPUID, 0), CPUID from that",
++ "thread raises a #GP (SIGSEGV, si_code SI_KERNEL) like Linux with a CPUID-faulting CPU, instead of",
++ "executing transparently. Off by default, so a guest that never asks for it is unaffected."
++ ]
++ },
+ "StartupSleep": {
+ "Type": "uint32",
+ "Default": "0",
+diff --git a/FEXCore/Source/Interface/Context/Context.h b/FEXCore/Source/Interface/Context/Context.h
+index cce4d5113..24118405d 100644
+--- a/FEXCore/Source/Interface/Context/Context.h
++++ b/FEXCore/Source/Interface/Context/Context.h
+@@ -224,8 +224,12 @@ public:
+
+ void OnCodeBufferAllocated(const std::shared_ptr&) override;
+ void ClearCodeCache(FEXCore::Core::InternalThreadState* Thread, bool NewCodeBuffer = true) override;
+- void InvalidateCodeBuffersCodeRange(uint64_t Start, uint64_t Length) override;
+- void InvalidateThreadCachedCodeRange(FEXCore::Core::InternalThreadState* Thread, uint64_t Start, uint64_t Length) override;
++ void InvalidateExecutableRangeCaches() override {
++ ExecutableRangeEpoch.fetch_add(1, std::memory_order_acq_rel);
++ }
++ bool InvalidateCodeBuffersCodeRange(uint64_t Start, uint64_t Length) override;
++ std::atomic ExecutableRangeEpoch {};
++ void InvalidateThreadCachedCodeRange(FEXCore::Core::InternalThreadState* Thread, uint64_t Start, uint64_t Length, bool CodeMayBeCached) override;
+ FEXCore::Utils::WritePriorityMutex::Mutex& GetCodeInvalidationMutex() override {
+ return CodeInvalidationMutex;
+ }
+diff --git a/FEXCore/Source/Interface/Core/Core.cpp b/FEXCore/Source/Interface/Core/Core.cpp
+index 9f04358c5..02d9a280a 100644
+--- a/FEXCore/Source/Interface/Core/Core.cpp
++++ b/FEXCore/Source/Interface/Core/Core.cpp
+@@ -31,6 +31,7 @@ $end_info$
+ #include "Utils/Allocator.h"
+ #include "Utils/Allocator/HostAllocator.h"
+ #include "Utils/crc32.h"
++#include
+ #include
+ #include "Utils/variable_length_integer.h"
+
+@@ -201,8 +202,11 @@ uint32_t ContextImpl::ReconstructCompactedEFLAGS(FEXCore::Core::InternalThreadSt
+ case X86State::RFLAG_SF_RAW_LOC:
+ case X86State::RFLAG_OF_RAW_LOC:
+ case X86State::RFLAG_DF_RAW_LOC:
++ case X86State::RFLAG_NZCV_LOC:
++ case X86State::RFLAG_NZCV_1_LOC:
++ case X86State::RFLAG_NZCV_2_LOC:
++ case X86State::RFLAG_NZCV_3_LOC:
+ // Intentionally do nothing.
+- // These contain multiple bits which can corrupt other members when compacted.
+ break;
+ default: EFLAGS |= uint32_t {Frame->State.flags[i]} << i; break;
+ }
+@@ -645,11 +649,13 @@ ContextImpl::GenerateIR(FEXCore::Core::InternalThreadState* Thread, uint64_t Gue
+ Thread->OpDispatcher->_GuestOpcode(InstAddress - GuestRIP);
+ }
+
+- if (Config.SMCChecks == FEXCore::Config::CONFIG_SMC_FULL || Block.ForceFullSMCDetection) {
++ if (Config.SMCChecks == FEXCore::Config::CONFIG_SMC_FULL || Block.ForceFullSMCDetection || SyscallHandler->IsSMCHotPage(InstAddress)) {
+ auto ExistingCodePtr = reinterpret_cast(Block.Entry + BlockInstructionsLength);
+ auto InstAddressReg = Thread->OpDispatcher->_EntrypointOffset(GPRSize, InstAddress - GuestRIP);
+
+- auto Value = FEXCore::Utils::crc32(ExistingCodePtr, DecodedInfo->InstSize);
++ uint8_t InstBytes[16];
++ const bool Readable = FEXCore::Utils::FaultSafeRead::Copy(InstBytes, ExistingCodePtr, DecodedInfo->InstSize);
++ auto Value = Readable ? FEXCore::Utils::crc32(InstBytes, DecodedInfo->InstSize) : ~0U;
+ auto CRC = WantsDiskCachePatching ?
+ Thread->OpDispatcher->_PatchableGuestCRC(IR::OpSize::i64Bit, Value, (int64_t)ExistingCodePtr, DecodedInfo->InstSize) :
+ Thread->OpDispatcher->Constant(Value);
+@@ -730,6 +736,8 @@ ContextImpl::GenerateIR(FEXCore::Core::InternalThreadState* Thread, uint64_t Gue
+ Thread->OpDispatcher->InvalidOp(DecodedInfo);
+ } else if (Block.BlockStatus == Frontend::Decoder::DecodedBlockStatus::UNIMPLEMENTED_INST) {
+ Thread->OpDispatcher->UnimplementedOp(DecodedInfo);
++ } else if (Block.BlockStatus == Frontend::Decoder::DecodedBlockStatus::TOO_LONG_INST) {
++ Thread->OpDispatcher->PermissionRestrictedOp(DecodedInfo);
+ } else {
+ Thread->OpDispatcher->NoExecOrPartialOp(DecodedInfo);
+ }
+@@ -897,9 +905,10 @@ uintptr_t ContextImpl::CompileBlock(FEXCore::Core::CpuStateFrame* Frame, uint64_
+ auto LoadedCode = Thread->CPUBackend->LoadCachedCode(Hit->HostCode);
+ if (LoadedCode.BlockBegin) {
+ for (auto& CodePage : Hit->GuestPages) {
+- if (Thread->LookupCache->AddBlockExecutableRange(Thread, Hit->EntryPointRIPs, CodePage, FEXCore::Utils::FEX_PAGE_SIZE)) {
++ if (!Thread->LookupCache->HasBlockExecutableRange(CodePage)) {
+ SyscallHandler->MarkGuestExecutableRange(Thread, CodePage, FEXCore::Utils::FEX_PAGE_SIZE);
+ }
++ Thread->LookupCache->AddBlockExecutableRange(Thread, Hit->EntryPointRIPs, CodePage, FEXCore::Utils::FEX_PAGE_SIZE);
+ }
+
+ LOGMAN_THROW_A_FMT(Hit->EntryPointRIPs.size() == Hit->EntryPointHostOffsets.size(), "Mismatched Disk Cache entrypoint pairs!");
+@@ -993,9 +1002,10 @@ uintptr_t ContextImpl::CompileBlock(FEXCore::Core::CpuStateFrame* Frame, uint64_
+ CodePages.reserve(BlockInfo->CodePages.size());
+ CodePages.insert(CodePages.end(), BlockInfo->CodePages.begin(), BlockInfo->CodePages.end());
+ for (auto CodePage : BlockInfo->CodePages) {
+- if (Thread->LookupCache->AddBlockExecutableRange(Thread, BlockInfo->EntryPoints, CodePage, FEXCore::Utils::FEX_PAGE_SIZE)) {
++ if (!Thread->LookupCache->HasBlockExecutableRange(CodePage)) {
+ SyscallHandler->MarkGuestExecutableRange(Thread, CodePage, FEXCore::Utils::FEX_PAGE_SIZE);
+ }
++ Thread->LookupCache->AddBlockExecutableRange(Thread, BlockInfo->EntryPoints, CodePage, FEXCore::Utils::FEX_PAGE_SIZE);
+ }
+ }
+
+@@ -1006,10 +1016,13 @@ uintptr_t ContextImpl::CompileBlock(FEXCore::Core::CpuStateFrame* Frame, uint64_
+ if (DebugData && DebugData->Relocations) {
+ Relocations = *DebugData->Relocations;
+ }
+- std::span GuestCode = {reinterpret_cast(StartAddr), Length};
+- const Frontend::Decoder::DecodedBlockInformation* BlockInfo =
+- NeedsAddGuestCodeRanges ? Thread->FrontendDecoder->GetDecodedBlockInfo() : nullptr;
+- DiskCache.Store(Thread, Region, GuestRIP, *DiskCacheGuestCodeKey, GuestCode, CompiledCode, Relocations, BlockInfo);
++ fextl::vector GuestCodeCopy(Length);
++ if (FEXCore::Utils::FaultSafeRead::Copy(GuestCodeCopy.data(), reinterpret_cast(StartAddr), Length)) {
++ std::span GuestCode = GuestCodeCopy;
++ const Frontend::Decoder::DecodedBlockInformation* BlockInfo =
++ NeedsAddGuestCodeRanges ? Thread->FrontendDecoder->GetDecodedBlockInfo() : nullptr;
++ DiskCache.Store(Thread, Region, GuestRIP, *DiskCacheGuestCodeKey, GuestCode, CompiledCode, Relocations, BlockInfo);
++ }
+ }
+
+ if (CodeMapWriter && Region && Region->FileStartVA != 0) {
+@@ -1055,31 +1068,38 @@ uintptr_t ContextImpl::CompileSingleStep(FEXCore::Core::CpuStateFrame* Frame, ui
+ return (uintptr_t)CodePtr;
+ }
+
+-void ContextImpl::InvalidateCodeBuffersCodeRange(uint64_t Start, uint64_t Length) {
++bool ContextImpl::InvalidateCodeBuffersCodeRange(uint64_t Start, uint64_t Length) {
+ FEXCORE_PROFILE_SCOPED("InvalidateCodeBuffersCodeRange");
+
+ LOGMAN_THROW_A_FMT(CodeInvalidationMutex.try_lock() == false, "CodeInvalidationMutex needs to be unique_locked here");
+ std::scoped_lock lk {CodeBufferListLock};
++ bool Found = false;
+ auto it = CodeBufferList.begin();
+ while (it != CodeBufferList.end()) {
+ if (auto Strong = it->lock()) {
+- Strong->LookupCache->InvalidateRange(Start, Length);
++ Found |= Strong->LookupCache->InvalidateRange(Start, Length);
+ it++;
+ } else {
+ it = CodeBufferList.erase(it);
+ }
+ }
++ return Found;
+ }
+
+-void ContextImpl::InvalidateThreadCachedCodeRange(FEXCore::Core::InternalThreadState* Thread, uint64_t Start, uint64_t Length) {
++void ContextImpl::InvalidateThreadCachedCodeRange(FEXCore::Core::InternalThreadState* Thread, uint64_t Start, uint64_t Length, bool CodeMayBeCached) {
+ LOGMAN_THROW_A_FMT(CodeInvalidationMutex.try_lock() == false, "CodeInvalidationMutex needs to be unique_locked here");
+
+ // Ensures now-modified mappings aren't cached as being in their previous non-executable state.
+ // Accessing FrontendDecoder is safe as the thread's code invalidation mutex must be locked here.
+ Thread->FrontendDecoder->ResetExecutableRangeCache();
+
++ if (!CodeMayBeCached) {
++ return;
++ }
++
+ if (Thread->LookupCache->InvalidateCacheRange(Start, Length)) {
+ FEXCORE_PROFILE_SCOPED("InvalidateCallRet");
++ FEXCORE_PROFILE_INSTANT_INCREMENT(Thread, AccumulatedCallRetFlushCount, 1);
+
+ // This may cause access violations in the thread on Windows as zeroing is not atomic, this is handled by the frontend
+ Allocator::VirtualDontNeed(Thread->CallRetStackBase, FEXCore::Core::InternalThreadState::CALLRET_STACK_SIZE);
+diff --git a/FEXCore/Source/Interface/Core/DiskCache.cpp b/FEXCore/Source/Interface/Core/DiskCache.cpp
+index 3c78b22da..d903216c1 100644
+--- a/FEXCore/Source/Interface/Core/DiskCache.cpp
++++ b/FEXCore/Source/Interface/Core/DiskCache.cpp
+@@ -11,6 +11,7 @@
+ #include
+ #include
+ #include
++#include
+ #include
+ #include
+ #include
+@@ -22,6 +23,23 @@
+ #include
+ #include
+
++namespace {
++template
++bool HashGuestMemory(UpdateFn&& Update, uint64_t Address, uint64_t Size) {
++ uint8_t Buffer[256];
++ while (Size) {
++ const uint64_t Chunk = std::min(Size, sizeof(Buffer));
++ if (!FEXCore::Utils::FaultSafeRead::Copy(Buffer, reinterpret_cast(Address), Chunk)) {
++ return false;
++ }
++ Update(Buffer, Chunk);
++ Address += Chunk;
++ Size -= Chunk;
++ }
++ return true;
++}
++}
++
+ namespace FEXCore {
+
+ namespace DiskCache {
+@@ -576,12 +594,18 @@ namespace DiskCache {
+ }
+ uint64_t HashStart = SubBlock.Entry;
+ // skip over masked in-block data and data/etc gaps between blocks
++ auto Update = [&](const uint8_t* Bytes, uint64_t Size) {
++ XXH3_64bits_update(&HashState, Bytes, Size);
++ };
+ for (auto& DataMask : SubBlock.DataMasks) {
+- XXH3_64bits_update(&HashState, reinterpret_cast(HashStart), DataMask.FieldAddress - HashStart);
++ if (!HashGuestMemory(Update, HashStart, DataMask.FieldAddress - HashStart)) {
++ return std::nullopt;
++ }
+ HashStart = DataMask.FieldAddress + DataMask.ValueSize;
+ }
+- if (HashStart != SubBlock.Entry + SubBlock.Size) {
+- XXH3_64bits_update(&HashState, reinterpret_cast(HashStart), SubBlock.Size - (HashStart - SubBlock.Entry));
++ if (HashStart != SubBlock.Entry + SubBlock.Size &&
++ !HashGuestMemory(Update, HashStart, SubBlock.Size - (HashStart - SubBlock.Entry))) {
++ return std::nullopt;
+ }
+ }
+ GuestCodeKey = XXH3_64bits_digest(&HashState);
+@@ -704,8 +728,13 @@ namespace DiskCache {
+ if (FirstHash || LastFootprintHashed != CurrentFootprint) {
+ XXH3_state_t HashState;
+ XXH3_128bits_reset(&HashState);
++ auto Update = [&](const uint8_t* Bytes, uint64_t Size) {
++ XXH3_128bits_update(&HashState, Bytes, Size);
++ };
+ for (uint32_t i = 0; i < Entry.GuestExtents.size(); i += 2) {
+- XXH3_128bits_update(&HashState, reinterpret_cast(GuestRIP) + Entry.GuestExtents[i], Entry.GuestExtents[i + 1]);
++ if (!HashGuestMemory(Update, GuestRIP + Entry.GuestExtents[i], Entry.GuestExtents[i + 1])) {
++ return std::nullopt;
++ }
+ }
+ LiveGuestHash = XXH3_128bits_digest(&HashState);
+ LastFootprintHashed = CurrentFootprint;
+diff --git a/FEXCore/Source/Interface/Core/DiskCache.h b/FEXCore/Source/Interface/Core/DiskCache.h
+index 0bd3c21e4..0f1490cba 100644
+--- a/FEXCore/Source/Interface/Core/DiskCache.h
++++ b/FEXCore/Source/Interface/Core/DiskCache.h
+@@ -249,7 +249,7 @@ namespace DiskCache {
+ // The current version of the diskcache.
+ // This must be changed any time codegen changes occur!
+ // Be aware of the impact of changing this frequently!
+- static constexpr uint16_t FormatVersion = 52;
++ static constexpr uint16_t FormatVersion = 0x8000 | (1 << 8) | 52;
+
+ static constexpr uint32_t LOOKUP_KEY_MAX_BUCKET_DEPTH = 500;
+
+diff --git a/FEXCore/Source/Interface/Core/Frontend.cpp b/FEXCore/Source/Interface/Core/Frontend.cpp
+index 94e4ac522..18cda8889 100644
+--- a/FEXCore/Source/Interface/Core/Frontend.cpp
++++ b/FEXCore/Source/Interface/Core/Frontend.cpp
+@@ -19,6 +19,7 @@ $end_info$
+ #include
+ #include
+ #include
++#include
+ #include
+ #include
+ #include
+@@ -108,6 +109,11 @@ int32_t Decoder::CheckRangeExecutable(uint64_t Address, uint64_t Size) {
+ }
+ }
+
++ if (const auto Epoch = CTX->ExecutableRangeEpoch.load(std::memory_order_acquire); Epoch != ExecutableRangeEpochSeen) {
++ ExecutableRangeEpochSeen = Epoch;
++ ResetExecutableRangeCache();
++ }
++
+ uint64_t RemainingSize = Size;
+ while (Address < ExecutableRangeBase || Address + RemainingSize > ExecutableRangeEnd) {
+ auto RangeInfo = CTX->SyscallHandler->QueryGuestExecutableRange(Thread, Address);
+@@ -132,8 +138,13 @@ int32_t Decoder::CheckRangeExecutable(uint64_t Address, uint64_t Size) {
+ }
+
+ uint8_t Decoder::ReadByte() {
++ if (InstructionSize >= MAX_INST_SIZE) {
++ HitInstructionLengthLimit = true;
++ return 0;
++ }
++
+ std::optional Byte = PeekByte(0);
+- if (!Byte || InstructionSize == MAX_INST_SIZE) {
++ if (!Byte) {
+ HitNonExecutableRange = true;
+ // Pretend we read 0, the main decode loop will see HitNonExecutableRange and rollback the instruction.
+ return 0;
+@@ -146,8 +157,10 @@ uint8_t Decoder::ReadByte() {
+
+ std::optional Decoder::PeekByte(uint8_t Offset) {
+ uint64_t ByteAddress = reinterpret_cast(InstStream.InstStream + InstructionSize + Offset);
+- if (CheckRangeExecutable(ByteAddress, 1) == 1) {
+- return InstStream.AdjustedInstStream[InstructionSize + Offset];
++ uint8_t Byte;
++ if (CheckRangeExecutable(ByteAddress, 1) == 1 &&
++ FEXCore::Utils::FaultSafeRead::Copy(&Byte, &InstStream.AdjustedInstStream[InstructionSize + Offset], 1)) {
++ return Byte;
+ } else {
+ return std::nullopt;
+ }
+@@ -160,13 +173,24 @@ std::pair Decoder::ReadData(uint8_t Size) {
+ uint64_t Address = reinterpret_cast(InstStream.InstStream + InstructionSize);
+ LastFieldReadOffset = (uint8_t)InstructionSize;
+ LastFieldReadSize = Size;
+- auto ReadableSize = CheckRangeExecutable(Address, Size);
+- if (ReadableSize == Size) {
+- std::memcpy(&Res, &InstStream.AdjustedInstStream[InstructionSize], Size);
+- } else {
+- HitNonExecutableRange = true;
+- // See PeekByte, this specific case may cause some executable memory to read as 0 but it doesn't matter as the entire instruction will be rolled back anyway.
++ int32_t ReadableSize {};
++ if (InstructionSize + Size > MAX_INST_SIZE) [[unlikely]] {
++ const int32_t FetchableSize = InstructionSize < MAX_INST_SIZE ? MAX_INST_SIZE - InstructionSize : 0;
++ ReadableSize = FetchableSize ? CheckRangeExecutable(Address, FetchableSize) : 0;
++ if (ReadableSize != FetchableSize) {
++ HitNonExecutableRange = true;
++ }
++ HitInstructionLengthLimit = true;
+ Res = 0;
++ } else {
++ ReadableSize = CheckRangeExecutable(Address, Size);
++ if (ReadableSize == Size && !FEXCore::Utils::FaultSafeRead::Copy(&Res, &InstStream.AdjustedInstStream[InstructionSize], Size)) {
++ ReadableSize = 0;
++ }
++ if (ReadableSize != Size) {
++ HitNonExecutableRange = true;
++ Res = 0;
++ }
+ }
+
+ // Skip the number of decoded bytes regardless to get instruction size.
+@@ -881,7 +905,7 @@ Decoder::DecodedBlockStatus Decoder::DecodeInstructionImpl(uint64_t PC) {
+
+ for (;;) {
+ if (InstructionSize >= MAX_INST_SIZE) {
+- return DecodedBlockStatus::INVALID_INST;
++ return DecodedBlockStatus::TOO_LONG_INST;
+ }
+ uint8_t Op = ReadByte();
+ switch (Op) {
+@@ -1108,11 +1132,12 @@ void Decoder::DecodeREXIfValid(int8_t ExpectedOffset) {
+ Decoder::DecodedBlockStatus Decoder::DecodeInstruction(uint64_t PC) {
+ // Will be set if DecodeInstructionImpl tries to read non-executable memory
+ HitNonExecutableRange = false;
++ HitInstructionLengthLimit = false;
+ HitBadRelocation = false;
+ HitBreakpoint = ~0U;
+ auto ErrorDuringDecoding = DecodeInstructionImpl(PC);
+
+- if (ErrorDuringDecoding != DecodedBlockStatus::SUCCESS || HitNonExecutableRange || HitBadRelocation) [[unlikely]] {
++ if (ErrorDuringDecoding != DecodedBlockStatus::SUCCESS || HitNonExecutableRange || HitInstructionLengthLimit || HitBadRelocation) [[unlikely]] {
+ // Put an invalid instruction in the stream so the core can raise SIGILL if hit
+ // Error while decoding instruction. We don't know the table or instruction size
+ DecodeInst->TableInfo = nullptr;
+@@ -1134,6 +1159,10 @@ Decoder::DecodedBlockStatus Decoder::DecodeInstruction(uint64_t PC) {
+ return DecodedBlockStatus::BAD_RELOCATION;
+ }
+
++ if (HitInstructionLengthLimit) {
++ return DecodedBlockStatus::TOO_LONG_INST;
++ }
++
+ return ErrorDuringDecoding;
+ } else if (!DecodeInst->TableInfo || (DecodeInst->TableInfo->Type == TYPE_INST && !DecodeInst->TableInfo->OpcodeDispatcher.OpDispatch)) {
+ // If there wasn't an error during decoding but we have no dispatcher for the instruction then claim invalid instruction.
+@@ -1693,6 +1722,7 @@ void Decoder::DecodeLoop(const uint8_t* _InstStream, uint64_t GuestSizePause) {
+ BlockIt->BlockStatus == DecodedBlockStatus::BREAKPOINT_3 ? "Breakpoint" :
+ BlockIt->BlockStatus == DecodedBlockStatus::INVALID_INST ? "Invalid" :
+ BlockIt->BlockStatus == DecodedBlockStatus::NOEXEC_INST ? "NoExec" :
++ BlockIt->BlockStatus == DecodedBlockStatus::TOO_LONG_INST ? "TooLong" :
+ BlockIt->BlockStatus == DecodedBlockStatus::BAD_RELOCATION ? "BadRelocation" :
+ BlockIt->BlockStatus == DecodedBlockStatus::UNIMPLEMENTED_INST ? "Unimplemented" :
+ "PartialDecode",
+diff --git a/FEXCore/Source/Interface/Core/Frontend.h b/FEXCore/Source/Interface/Core/Frontend.h
+index ade14bc44..6d279b22c 100644
+--- a/FEXCore/Source/Interface/Core/Frontend.h
++++ b/FEXCore/Source/Interface/Core/Frontend.h
+@@ -28,6 +28,7 @@ public:
+ INVALID_INST,
+ NOEXEC_INST,
+ PARTIAL_DECODE_INST,
++ TOO_LONG_INST,
+ BAD_RELOCATION,
+ UNIMPLEMENTED_INST,
+ BREAKPOINT_0,
+@@ -93,6 +94,8 @@ public:
+ ExecutableRangeBase = ExecutableRangeEnd = 0;
+ }
+
++ uint64_t ExecutableRangeEpochSeen {};
++
+ private:
+ // To pass any information from instruction prefixes
+ // down into the actual instruction handling machinery.
+@@ -159,6 +162,7 @@ private:
+ uint64_t ExecutableRangeEnd {};
+ bool ExecutableRangeWritable {};
+ bool HitNonExecutableRange {};
++ bool HitInstructionLengthLimit {};
+ bool HitBadRelocation {};
+ uint32_t HitBreakpoint {~0U};
+
+diff --git a/FEXCore/Source/Interface/Core/JIT/BranchOps.cpp b/FEXCore/Source/Interface/Core/JIT/BranchOps.cpp
+index c5e656d2c..7b9c15b61 100644
+--- a/FEXCore/Source/Interface/Core/JIT/BranchOps.cpp
++++ b/FEXCore/Source/Interface/Core/JIT/BranchOps.cpp
+@@ -195,6 +195,21 @@ DEF_OP(ExitFunction) {
+ ARMEmitter::ForwardLabel SkipFullLookup;
+ auto RipReg = GetReg(Op->NewRIP);
+
++ if (Op->Hint == IR::BranchHint::CheckTF || CompilingWithTF) {
++ ARMEmitter::ForwardLabel TFUnset;
++ ldrb(TMP1, STATE_PTR(CpuStateFrame, State.flags[X86State::RFLAG_TF_RAW_LOC]));
++ (void)cbz(ARMEmitter::Size::i32Bit, TMP1, &TFUnset);
++ if (Op->Hint == IR::BranchHint::Return) {
++ add(ARMEmitter::Size::i64Bit, REG_CALLRET_SP, REG_CALLRET_SP, 0x10);
++ } else if (Op->Hint == IR::BranchHint::Call) {
++ stp(ARMEmitter::XReg::zr, ARMEmitter::XReg::zr, REG_CALLRET_SP, -0x10);
++ }
++ str(RipReg.X(), STATE, offsetof(FEXCore::Core::CpuStateFrame, State.rip));
++ ldr(TMP2, STATE, offsetof(FEXCore::Core::CpuStateFrame, Pointers.DispatcherLoopTop));
++ br(TMP2);
++ (void)Bind(&TFUnset);
++ }
++
+ if (Op->Hint == IR::BranchHint::Return) {
+ // First try to pop from the call-ret stack, otherwise follow the normal path (but ending in a ret)
+ ldp(TMP1, TMP2, REG_CALLRET_SP, 0x10);
+diff --git a/FEXCore/Source/Interface/Core/JIT/JIT.cpp b/FEXCore/Source/Interface/Core/JIT/JIT.cpp
+index fa9c8c880..777b4b51d 100644
+--- a/FEXCore/Source/Interface/Core/JIT/JIT.cpp
++++ b/FEXCore/Source/Interface/Core/JIT/JIT.cpp
+@@ -862,6 +862,7 @@ CPUBackend::CompiledCode Arm64JITCore::EmitJITCode(uint64_t Entry, uint64_t Size
+ this->DebugData = DebugData;
+ this->IR = IR;
+ RequiresFarARM64Jumps = false;
++ CompilingWithTF = CheckTF;
+ SSANodeMultiplier = 24;
+
+ // Prepare restart via long jump in case branch encoding fails.
+diff --git a/FEXCore/Source/Interface/Core/JIT/JITClass.h b/FEXCore/Source/Interface/Core/JIT/JITClass.h
+index 55286855f..684ac9d9d 100644
+--- a/FEXCore/Source/Interface/Core/JIT/JITClass.h
++++ b/FEXCore/Source/Interface/Core/JIT/JITClass.h
+@@ -86,6 +86,7 @@ private:
+ // In the rare case when those assumptions are broken, FEX needs to safely restart the JIT.
+ RestartOptions RestartControl {};
+ bool RequiresFarARM64Jumps {};
++ bool CompilingWithTF {};
+ // Default to 6 instructions per SSA node.
+ uint32_t SSANodeMultiplier {24};
+
+diff --git a/FEXCore/Source/Interface/Core/JIT/MiscOps.cpp b/FEXCore/Source/Interface/Core/JIT/MiscOps.cpp
+index d15ef9aee..bc1fb9c19 100644
+--- a/FEXCore/Source/Interface/Core/JIT/MiscOps.cpp
++++ b/FEXCore/Source/Interface/Core/JIT/MiscOps.cpp
+@@ -86,6 +86,34 @@ DEF_OP(Break) {
+ br(TMP1);
+ }
+
++DEF_OP(BreakErrorCode) {
++ auto Op = IROp->C();
++
++ uxth(ARMEmitter::Size::i64Bit, TMP2, GetReg(Op->ErrorCode));
++ ResetStack();
++
++ Core::CpuStateFrame::SynchronousFaultDataStruct State = {
++ .FaultToTopAndGeneratedException = 1,
++ .Signal = Op->Reason.Signal,
++ .TrapNo = Op->Reason.TrapNumber,
++ .si_code = Op->Reason.si_code,
++ .err_code = 0,
++ .FaultAddress = 0,
++ };
++ static_assert(offsetof(Core::CpuStateFrame::SynchronousFaultDataStruct, err_code) == 4, "err_code is bits 32-47");
++
++ uint64_t Constant {};
++ memcpy(&Constant, &State, sizeof(uint64_t));
++
++ LoadConstant(ARMEmitter::Size::i64Bit, TMP1, static_cast(Constant));
++ bfi(ARMEmitter::Size::i64Bit, TMP1, TMP2, 32, 16);
++ str(TMP1, STATE, offsetof(FEXCore::Core::CpuStateFrame, SynchronousFaultData));
++ str(ARMEmitter::XReg::zr, STATE, offsetof(FEXCore::Core::CpuStateFrame, SynchronousFaultData) + 8);
++
++ ldr(TMP1, STATE, offsetof(FEXCore::Core::CpuStateFrame, Pointers.GuestSignal_SynchronousFault));
++ br(TMP1);
++}
++
+ DEF_OP(GetRoundingMode) {
+ auto Dst = GetReg(Node);
+ mrs(Dst, ARMEmitter::SystemRegister::FPCR);
+diff --git a/FEXCore/Source/Interface/Core/LookupCache.h b/FEXCore/Source/Interface/Core/LookupCache.h
+index 391d48560..228d03969 100644
+--- a/FEXCore/Source/Interface/Core/LookupCache.h
++++ b/FEXCore/Source/Interface/Core/LookupCache.h
+@@ -125,7 +125,7 @@ struct GuestToHostMap {
+ return BlockList.erase(Address) != 0;
+ }
+
+- void InvalidateRange(uint64_t Start, uint64_t Length) {
++ bool InvalidateRange(uint64_t Start, uint64_t Length) {
+ auto lk = AcquireWriteLock();
+
+ auto lower = CodePages.lower_bound(Start >> 12);
+@@ -136,7 +136,9 @@ struct GuestToHostMap {
+ Erase(Entry, lk);
+ }
+ }
++ const bool Found = lower != upper;
+ CodePages.erase(lower, upper);
++ return Found;
+ }
+
+ void AddBlockLink(uint64_t GuestDestination, FEXCore::Context::ExitFunctionLinkData* HostLink,
+@@ -144,6 +146,11 @@ struct GuestToHostMap {
+ BlockLinks->insert({{GuestDestination, HostLink}, delinker});
+ }
+
++ bool HasBlockExecutableRange(uint64_t Page, const LookupCacheReadLockToken&) const {
++ auto it = CodePages.find(Page >> 12);
++ return it != CodePages.end() && !it->second.empty();
++ }
++
+ bool AddBlockExecutableRange(const std::ranges::input_range auto& Addresses, uint64_t Start, uint64_t Length, const LookupCacheWriteLockToken&) {
+ bool rv = false;
+
+@@ -282,6 +289,11 @@ public:
+
+ GuestToHostMap* Shared = nullptr;
+
++ bool HasBlockExecutableRange(uint64_t Page) {
++ auto lk = Shared->AcquireReadLock();
++ return Shared->HasBlockExecutableRange(Page, lk);
++ }
++
+ // Appends a list of Block {Address} to CodePages [Start, Start + Length)
+ // Returns true if new pages are marked as containing code
+ bool AddBlockExecutableRange(FEXCore::Core::InternalThreadState* Thread, auto& Addresses, uint64_t Start, uint64_t Length) {
+diff --git a/FEXCore/Source/Interface/Core/OpcodeDispatcher.cpp b/FEXCore/Source/Interface/Core/OpcodeDispatcher.cpp
+index 356fc3bb1..27491cea4 100644
+--- a/FEXCore/Source/Interface/Core/OpcodeDispatcher.cpp
++++ b/FEXCore/Source/Interface/Core/OpcodeDispatcher.cpp
+@@ -138,6 +138,31 @@ void OpDispatchBuilder::IRETOp(OpcodeArgs) {
+
+ const auto GPRSize = GetGPROpSize();
+
++ {
++ auto FaultBlock = CreateNewCodeBlockAfter(GetCurrentBlock());
++ auto ContinueBlock = CreateNewCodeBlockAfter(FaultBlock);
++
++ auto CondJump_ = CondJump(GetRFLAG(FEXCore::X86State::RFLAG_NT_LOC), CondClass::EQ);
++ SetTrueJumpTarget(CondJump_, ContinueBlock);
++ SetFalseJumpTarget(CondJump_, FaultBlock);
++
++ SetCurrentCodeBlock(FaultBlock);
++ StartNewBlock();
++
++ _StoreContextGPR(GPRSize, GetRelocatedPC(Op, -Op->InstSize), offsetof(FEXCore::Core::CPUState, rip));
++
++ IR::BreakDefinition Reason {};
++ Reason.ErrorRegister = 0;
++ Reason.Signal = Core::FAULT_SIGSEGV;
++ Reason.TrapNumber = X86State::X86_TRAPNO_GP;
++ Reason.si_code = 0x80;
++ BlockSetRIP = true;
++ Break(Reason);
++
++ SetCurrentCodeBlock(ContinueBlock);
++ StartNewBlock();
++ }
++
+ Ref SP = _RMWHandle(LoadGPRRegister(X86State::REG_RSP));
+
+ // RIP (64/32/16 bits)
+@@ -164,7 +189,7 @@ void OpDispatchBuilder::IRETOp(OpcodeArgs) {
+ StoreGPRRegister(X86State::REG_RSP, SP);
+ }
+
+- ExitFunction(NewRIP);
++ ExitFunction(NewRIP, BranchHint::CheckTF);
+ BlockSetRIP = true;
+ }
+
+@@ -1230,6 +1255,36 @@ void OpDispatchBuilder::FLAGControlOp(OpcodeArgs) {
+ }
+
+
++void OpDispatchBuilder::MOVSegFSGS64(OpcodeArgs, Ref Selector, uint32_t IndexOffset, uint32_t BaseOffset) {
++ Ref Index = _Bfe(OpSize::i32Bit, 13, 3, Selector);
++ Ref TI = _Bfe(OpSize::i32Bit, 1, 2, Selector);
++ Ref Allowed = _And(OpSize::i32Bit, _Lshr(OpSize::i32Bit, Constant(0x8071), Index), Constant(1));
++ Allowed = _Select(OpSize::i32Bit, OpSize::i32Bit, CondClass::ULT, Index, Constant(16), Allowed, Constant(0));
++ Allowed = _Select(OpSize::i32Bit, OpSize::i32Bit, CondClass::EQ, TI, Constant(0), Allowed, Constant(0));
++
++ auto FaultBlock = CreateNewCodeBlockAfter(GetCurrentBlock());
++ auto ContinueBlock = CreateNewCodeBlockAfter(FaultBlock);
++ auto CondJump_ = CondJump(Allowed, CondClass::NEQ);
++ SetTrueJumpTarget(CondJump_, ContinueBlock);
++ SetFalseJumpTarget(CondJump_, FaultBlock);
++
++ SetCurrentCodeBlock(FaultBlock);
++ StartNewBlock();
++ Ref FaultSelector = LoadSourceGPR_WithOpSize(Op, Op->Src[0], OpSize::i16Bit, Op->Flags);
++ _StoreContextGPR(GetGPROpSize(), GetRelocatedPC(Op, -Op->InstSize), offsetof(FEXCore::Core::CPUState, rip));
++ IR::BreakDefinition Reason {};
++ Reason.Signal = Core::FAULT_SIGSEGV;
++ Reason.TrapNumber = X86State::X86_TRAPNO_GP;
++ Reason.si_code = 0x80;
++ BlockSetRIP = true;
++ BreakErrorCode(_And(OpSize::i32Bit, FaultSelector, Constant(0xfffc)), Reason);
++
++ SetCurrentCodeBlock(ContinueBlock);
++ StartNewBlock();
++ _StoreContextGPR(OpSize::i16Bit, LoadSourceGPR_WithOpSize(Op, Op->Src[0], OpSize::i16Bit, Op->Flags), IndexOffset);
++ _StoreContextGPR(OpSize::i64Bit, Constant(0), BaseOffset);
++}
++
+ void OpDispatchBuilder::MOVSegOp(OpcodeArgs, bool ToSeg) {
+ // In x86-64 mode the accesses to the segment registers end up being constant zero moves
+ // Aside from FS/GS
+@@ -1243,7 +1298,6 @@ void OpDispatchBuilder::MOVSegOp(OpcodeArgs, bool ToSeg) {
+ // selected for the registers
+ // This statement is actually untrue, the instructions will /actually/ load 16bits in to the selector portion of the register!
+ // Tested on a Zen+ CPU, the selector is the portion that is modified!
+- // We don't currently support FS/GS selector modifying, so this needs to be asserted out
+ // The loads here also load the selector, NOT the base
+
+ if (ToSeg) {
+@@ -1283,8 +1337,7 @@ void OpDispatchBuilder::MOVSegOp(OpcodeArgs, bool ToSeg) {
+ _StoreContextGPR(OpSize::i16Bit, Src, offsetof(FEXCore::Core::CPUState, gs_idx));
+ UpdatePrefixFromSegment(Src, FEXCore::X86Tables::DecodeFlags::FLAG_GS_PREFIX);
+ } else {
+- LogMan::Msg::EFmt("We don't support modifying GS selector in 64bit mode!");
+- DecodeFailure = true;
++ MOVSegFSGS64(Op, Src, offsetof(FEXCore::Core::CPUState, gs_idx), offsetof(FEXCore::Core::CPUState, gs_cached));
+ }
+ break;
+ case FEXCore::X86State::REG_RSP: // FS
+@@ -1293,8 +1346,7 @@ void OpDispatchBuilder::MOVSegOp(OpcodeArgs, bool ToSeg) {
+ _StoreContextGPR(OpSize::i16Bit, Src, offsetof(FEXCore::Core::CPUState, fs_idx));
+ UpdatePrefixFromSegment(Src, FEXCore::X86Tables::DecodeFlags::FLAG_FS_PREFIX);
+ } else {
+- LogMan::Msg::EFmt("We don't support modifying FS selector in 64bit mode!");
+- DecodeFailure = true;
++ MOVSegFSGS64(Op, Src, offsetof(FEXCore::Core::CPUState, fs_idx), offsetof(FEXCore::Core::CPUState, fs_cached));
+ }
+ break;
+ default: UnimplementedOp(Op); return;
+@@ -1321,19 +1373,11 @@ void OpDispatchBuilder::MOVSegOp(OpcodeArgs, bool ToSeg) {
+ break;
+ case FEXCore::X86State::REG_RBP: // GS
+ case FEXCore::X86State::REG_R13: // GS
+- if (Is64BitMode) {
+- Segment = Constant(0);
+- } else {
+- Segment = _LoadContextGPR(OpSize::i16Bit, offsetof(FEXCore::Core::CPUState, gs_idx));
+- }
++ Segment = _LoadContextGPR(OpSize::i16Bit, offsetof(FEXCore::Core::CPUState, gs_idx));
+ break;
+ case FEXCore::X86State::REG_RSP: // FS
+ case FEXCore::X86State::REG_R12: // FS
+- if (Is64BitMode) {
+- Segment = Constant(0);
+- } else {
+- Segment = _LoadContextGPR(OpSize::i16Bit, offsetof(FEXCore::Core::CPUState, fs_idx));
+- }
++ Segment = _LoadContextGPR(OpSize::i16Bit, offsetof(FEXCore::Core::CPUState, fs_idx));
+ break;
+ default: UnimplementedOp(Op); return;
+ }
+diff --git a/FEXCore/Source/Interface/Core/OpcodeDispatcher.h b/FEXCore/Source/Interface/Core/OpcodeDispatcher.h
+index d3e523d9b..601db6009 100644
+--- a/FEXCore/Source/Interface/Core/OpcodeDispatcher.h
++++ b/FEXCore/Source/Interface/Core/OpcodeDispatcher.h
+@@ -216,6 +216,10 @@ public:
+ }
+ return _Break(Reason, RelocatedPC);
+ }
++ IRPair BreakErrorCode(Ref ErrorCode, BreakDefinition Reason) {
++ FlushRegisterCache();
++ return _BreakErrorCode(ErrorCode, Reason);
++ }
+ IRPair Thunk(Ref ArgPtr, SHA256Sum ThunkNameHash) {
+ FlushRegisterCache();
+ return _Thunk(ArgPtr, ThunkNameHash);
+@@ -417,6 +421,7 @@ public:
+ void XCHGRAXOp(OpcodeArgs);
+ void SAHFOp(OpcodeArgs);
+ void LAHFOp(OpcodeArgs);
++ void MOVSegFSGS64(OpcodeArgs, Ref Selector, uint32_t IndexOffset, uint32_t BaseOffset);
+ void MOVSegOp(OpcodeArgs, bool ToSeg);
+ void FLAGControlOp(OpcodeArgs);
+ void MOVOffsetOp(OpcodeArgs);
+@@ -1974,8 +1979,8 @@ private:
+ // An exception should still be raised after an instruction that unsets TF, leave the unblocked bit set but unset
+ // the TF bit to cause such behaviour. The handling code at the start of the next block will then unset the
+ // unblocked bit before raising the exception.
+- auto NewPackedTF =
+- _Select(OpSize::i64Bit, OpSize::i64Bit, CondClass::EQ, Value, Constant(0), _And(OpSize::i32Bit, PackedTF, Constant(~1)), Constant(1));
++ auto NewPackedTF = _Select(OpSize::i64Bit, OpSize::i64Bit, CondClass::EQ, Value, Constant(0), _And(OpSize::i32Bit, PackedTF, Constant(~1)),
++ _Select(OpSize::i64Bit, OpSize::i64Bit, CondClass::EQ, PackedTF, Constant(3), Constant(3), Constant(1)));
+ _StoreContextGPR(OpSize::i8Bit, NewPackedTF, ARRAY_OFFSETOF(FEXCore::Core::CPUState, flags, BitOffset));
+ } else {
+ _StoreContextGPR(OpSize::i8Bit, Value, ARRAY_OFFSETOF(FEXCore::Core::CPUState, flags, BitOffset));
+diff --git a/FEXCore/Source/Interface/IR/IR.json b/FEXCore/Source/Interface/IR/IR.json
+index 4b79cf35c..0c01f580d 100644
+--- a/FEXCore/Source/Interface/IR/IR.json
++++ b/FEXCore/Source/Interface/IR/IR.json
+@@ -324,6 +324,12 @@
+ "Break BreakDefinition:$Reason, GPR:$FaultAddress": {
+ "HasSideEffects": true
+ },
++ "BreakErrorCode GPR:$ErrorCode, BreakDefinition:$Reason": {
++ "HasSideEffects": true,
++ "Desc": ["Break whose fault error code is the low 16 bits of $ErrorCode, known only at run time",
++ "(a #GP with a selector as its error code); Reason.ErrorRegister is not used"
++ ]
++ },
+ "CallbackReturn": {
+ "HasSideEffects": true
+ },
+diff --git a/FEXCore/Source/Interface/IR/IREmitter.cpp b/FEXCore/Source/Interface/IR/IREmitter.cpp
+index 6c8ed5d11..d8fd1431e 100644
+--- a/FEXCore/Source/Interface/IR/IREmitter.cpp
++++ b/FEXCore/Source/Interface/IR/IREmitter.cpp
+@@ -23,7 +23,8 @@ static bool IsFragmentExit(FEXCore::IR::IROps Op) {
+ case OP_SYSCALL:
+ case OP_CPUID:
+ case OP_EXITFUNCTION:
+- case OP_BREAK: return true;
++ case OP_BREAK:
++ case OP_BREAKERRORCODE: return true;
+ default: return false;
+ }
+ }
+diff --git a/FEXCore/Source/Utils/FaultSafeRead.cpp b/FEXCore/Source/Utils/FaultSafeRead.cpp
+new file mode 100644
+index 000000000..aaa7a80cf
+--- /dev/null
++++ b/FEXCore/Source/Utils/FaultSafeRead.cpp
+@@ -0,0 +1,46 @@
++// SPDX-License-Identifier: MIT
++#include
++
++#include
++
++namespace FEXCore::Utils::FaultSafeRead {
++#if defined(ARCHITECTURE_arm64) && !defined(_WIN32)
++__attribute__((naked)) static size_t CopyImpl(void* Dest, const void* Src, size_t Size) {
++ __asm volatile(R"(
++ // Early exit if a copy of size zero.
++ cbz x2, 2f;
++
++ 1:
++ .globl FEXCore_FaultSafeRead_FaultInst
++ FEXCore_FaultSafeRead_FaultInst:
++ ldrb w3, [x1], 1; // <- This line can fault.
++ strb w3, [x0], 1;
++ sub x2, x2, 1;
++ cbnz x2, 1b;
++2:
++ mov x0, 0;
++ ret;
++ )" ::
++ : "memory");
++}
++
++extern "C" uint64_t FEXCore_FaultSafeRead_FaultInst;
++
++bool Copy(void* Dest, const void* Src, size_t Size) {
++ return CopyImpl(Dest, Src, Size) == 0;
++}
++
++bool IsFaultLocation(uint64_t PC) {
++ return reinterpret_cast(PC) == &FEXCore_FaultSafeRead_FaultInst;
++}
++#else
++bool Copy(void* Dest, const void* Src, size_t Size) {
++ memcpy(Dest, Src, Size);
++ return true;
++}
++
++bool IsFaultLocation(uint64_t PC) {
++ return false;
++}
++#endif
++}
+diff --git a/FEXCore/include/FEXCore/Core/Context.h b/FEXCore/include/FEXCore/Core/Context.h
+index 7e1d30770..854c5ce1c 100644
+--- a/FEXCore/include/FEXCore/Core/Context.h
++++ b/FEXCore/include/FEXCore/Core/Context.h
+@@ -141,9 +141,11 @@ public:
+ virtual void FlushAndCloseCodeMap() = 0;
+
+ FEX_DEFAULT_VISIBILITY virtual void ClearCodeCache(FEXCore::Core::InternalThreadState* Thread, bool NewCodeBuffer = true) = 0;
+- FEX_DEFAULT_VISIBILITY virtual void InvalidateCodeBuffersCodeRange(uint64_t Start, uint64_t Length) = 0;
++ FEX_DEFAULT_VISIBILITY virtual void InvalidateExecutableRangeCaches() = 0;
++
++ FEX_DEFAULT_VISIBILITY virtual bool InvalidateCodeBuffersCodeRange(uint64_t Start, uint64_t Length) = 0;
+ FEX_DEFAULT_VISIBILITY virtual void
+- InvalidateThreadCachedCodeRange(FEXCore::Core::InternalThreadState* Thread, uint64_t Start, uint64_t Length) = 0;
++ InvalidateThreadCachedCodeRange(FEXCore::Core::InternalThreadState* Thread, uint64_t Start, uint64_t Length, bool CodeMayBeCached = true) = 0;
+ FEX_DEFAULT_VISIBILITY virtual FEXCore::Utils::WritePriorityMutex::Mutex& GetCodeInvalidationMutex() = 0;
+
+ FEX_DEFAULT_VISIBILITY virtual void
+diff --git a/FEXCore/include/FEXCore/Core/CoreState.h b/FEXCore/include/FEXCore/Core/CoreState.h
+index 7c02605f5..98ba8e150 100644
+--- a/FEXCore/include/FEXCore/Core/CoreState.h
++++ b/FEXCore/include/FEXCore/Core/CoreState.h
+@@ -282,6 +282,11 @@ struct alignas(64) CPUState {
+
+ // TODO: This should be moved to the frontend.
+ constexpr static uint32_t DEFAULT_USER_CS = 6;
++ constexpr static uint32_t DEFAULT_USER_DS = 5;
++
++ constexpr static uint32_t DEFAULT_USER_CS_SEL = (DEFAULT_USER_CS << 3) | 3;
++ constexpr static uint32_t DEFAULT_USER_DS_SEL = (DEFAULT_USER_DS << 3) | 3;
++ constexpr static uint32_t DEFAULT_USER32_CS_SEL = 0x23;
+
+ // Follows encoding of the TI bit in segment selector encoding.
+ constexpr static uint32_t SEGMENT_ARRAY_INDEX_GDT = 0;
+diff --git a/FEXCore/include/FEXCore/HLE/SyscallHandler.h b/FEXCore/include/FEXCore/HLE/SyscallHandler.h
+index 0ba0218e3..89e36d52e 100644
+--- a/FEXCore/include/FEXCore/HLE/SyscallHandler.h
++++ b/FEXCore/include/FEXCore/HLE/SyscallHandler.h
+@@ -33,6 +33,10 @@ public:
+ virtual void HandleSyscall(FEXCore::Core::CpuStateFrame* Frame) = 0;
+
+ virtual void MarkGuestExecutableRange(FEXCore::Core::InternalThreadState* Thread, uint64_t Start, uint64_t Length) {}
++
++ virtual bool IsSMCHotPage(uint64_t Address) {
++ return false;
++ }
+ virtual void InvalidateGuestCodeRange(FEXCore::Core::InternalThreadState* Thread, uint64_t Start, uint64_t Length) {}
+ virtual void MarkOvercommitRange(uint64_t Start, uint64_t Length) {}
+ virtual void UnmarkOvercommitRange(uint64_t Start, uint64_t Length) {}
+diff --git a/FEXCore/include/FEXCore/Utils/FaultSafeRead.h b/FEXCore/include/FEXCore/Utils/FaultSafeRead.h
+new file mode 100644
+index 000000000..1fc7213b5
+--- /dev/null
++++ b/FEXCore/include/FEXCore/Utils/FaultSafeRead.h
+@@ -0,0 +1,12 @@
++// SPDX-License-Identifier: MIT
++#pragma once
++#include
++
++#include
++#include
++
++namespace FEXCore::Utils::FaultSafeRead {
++FEX_DEFAULT_VISIBILITY bool Copy(void* Dest, const void* Src, size_t Size);
++
++FEX_DEFAULT_VISIBILITY bool IsFaultLocation(uint64_t PC);
++}
+diff --git a/FEXCore/include/FEXCore/Utils/SHMStats.h b/FEXCore/include/FEXCore/Utils/SHMStats.h
+index c5844fe10..d646c6a2f 100644
+--- a/FEXCore/include/FEXCore/Utils/SHMStats.h
++++ b/FEXCore/include/FEXCore/Utils/SHMStats.h
+@@ -74,7 +74,10 @@ struct ThreadStats {
+ uint64_t AccumulatedDiskCacheHitCount;
+ uint64_t AccumulatedDiskCacheMissCount;
+ uint64_t AccumulatedDiskCacheLookupTime;
+- uint64_t Padding;
++
++ uint64_t AccumulatedInvalidationCount;
++ uint64_t AccumulatedInvalidationTime;
++ uint64_t AccumulatedCallRetFlushCount;
+ };
+
+ // Ensure 16-byte alignment to take advantage of ARM single-copy atomicity.
+diff --git a/Source/Tools/FEXInterpreter/FEXInterpreter.cpp b/Source/Tools/FEXInterpreter/FEXInterpreter.cpp
+index e7e88f8f2..26b8186c8 100644
+--- a/Source/Tools/FEXInterpreter/FEXInterpreter.cpp
++++ b/Source/Tools/FEXInterpreter/FEXInterpreter.cpp
+@@ -602,8 +602,7 @@ int main(int argc, char** argv, char** const envp) {
+ // Create a thread without a RIP or stack pointer setup initially.
+ auto ParentThread = SyscallHandler->TM.CreateThread();
+ SyscallHandler->TM.TrackThread(ParentThread);
+- SignalDelegation->RegisterTLSState(ParentThread);
+- ThunkHandler->RegisterTLSState(ParentThread);
++ SyscallHandler->RegisterTLSState(ParentThread);
+
+ SyscallHandler->DeserializeSeccompFD(ParentThread, FEXSeccompFD);
+
+diff --git a/Source/Tools/LinuxEmulation/ArchHelpers/MContext.h b/Source/Tools/LinuxEmulation/ArchHelpers/MContext.h
+index 2e724929f..62135b824 100644
+--- a/Source/Tools/LinuxEmulation/ArchHelpers/MContext.h
++++ b/Source/Tools/LinuxEmulation/ArchHelpers/MContext.h
+@@ -20,6 +20,7 @@ namespace FEX::ArchHelpers::Context {
+
+ enum ContextFlags : uint32_t {
+ CONTEXT_FLAG_INJIT = (1U << 0),
++ CONTEXT_FLAG_SYSCALLINFO_CLEARED = (1U << 1),
+ };
+
+ #if defined(ASSERTIONS_ENABLED) && ASSERTIONS_ENABLED
+@@ -40,7 +41,11 @@ struct X86ContextBackup {
+ FEXCore::x86_64::_libc_fpstate FPRState;
+ uint64_t sa_mask;
+ uint16_t InSyscallInfo;
++ uint16_t ClearedSyscallInfo;
+ bool FaultToTopAndGeneratedException;
++ uint64_t GuestSignalMask;
++ uint64_t SeccompTrapRIP;
++ uint64_t SavedJITStackSP;
+
+ // Guest state
+ int Signal;
+@@ -72,7 +77,11 @@ struct ArmContextBackup {
+ __uint128_t FPRs[32];
+ uint64_t sa_mask;
+ uint16_t InSyscallInfo;
++ uint16_t ClearedSyscallInfo;
+ bool FaultToTopAndGeneratedException;
++ uint64_t GuestSignalMask;
++ uint64_t SeccompTrapRIP;
++ uint64_t SavedJITStackSP;
+
+ // Guest state
+ int Signal;
+@@ -92,6 +101,11 @@ struct ArmContextBackup {
+ static constexpr int RedZoneSize = 0;
+ };
+
++template
++static inline uint16_t SavedSyscallInfo(const Backup* Context) {
++ return (Context->Flags & CONTEXT_FLAG_SYSCALLINFO_CLEARED) ? Context->ClearedSyscallInfo : Context->InSyscallInfo;
++}
++
+ static inline ucontext_t* GetUContext(void* ucontext) {
+ ucontext_t* _context = (ucontext_t*)ucontext;
+ return _context;
+diff --git a/Source/Tools/LinuxEmulation/CMakeLists.txt b/Source/Tools/LinuxEmulation/CMakeLists.txt
+index 715a8f132..3f02104ea 100644
+--- a/Source/Tools/LinuxEmulation/CMakeLists.txt
++++ b/Source/Tools/LinuxEmulation/CMakeLists.txt
+@@ -10,6 +10,9 @@ add_library(LinuxEmulation STATIC
+ LinuxSyscalls/EmulatedFiles/EmulatedFiles.cpp
+ LinuxSyscalls/FaultSafeUserMemAccess.cpp
+ LinuxSyscalls/FileManagement.cpp
++ LinuxSyscalls/PtraceEmu.cpp
++ LinuxSyscalls/SamplingProfiler.cpp
++ LinuxSyscalls/SignalTrace.cpp
+ LinuxSyscalls/LinuxAllocator.cpp
+ LinuxSyscalls/Seccomp/SeccompEmulator.cpp
+ LinuxSyscalls/Seccomp/BPFEmitter.cpp
+diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/EmulatedFiles/EmulatedFiles.cpp b/Source/Tools/LinuxEmulation/LinuxSyscalls/EmulatedFiles/EmulatedFiles.cpp
+index 2095d4dc5..eb12945e4 100644
+--- a/Source/Tools/LinuxEmulation/LinuxSyscalls/EmulatedFiles/EmulatedFiles.cpp
++++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/EmulatedFiles/EmulatedFiles.cpp
+@@ -10,6 +10,7 @@ $end_info$
+
+ #include "Common/CPUInfo.h"
+ #include "Common/FDUtils.h"
++#include "LinuxSyscalls/PtraceEmu.h"
+ #include "LinuxSyscalls/Syscalls.h"
+ #include "LinuxSyscalls/EmulatedFiles/EmulatedFiles.h"
+
+@@ -24,6 +25,8 @@ $end_info$
+
+ #include
+
++#include
++#include
+ #include
+ #include
+ #include
+@@ -593,6 +596,10 @@ EmulatedFDManager::EmulatedFDManager(FEXCore::Context::Context* ctx)
+ FDReadCreators[procAuxv] = &EmulatedFDManager::ProcAuxv;
+ FDReadCreators["/proc/self/auxv"] = &EmulatedFDManager::ProcAuxv;
+
++ fextl::string procStatus = fextl::fmt::format("/proc/{}/status", getpid());
++ FDReadCreators[procStatus] = &EmulatedFDManager::ProcStatus;
++ FDReadCreators["/proc/self/status"] = &EmulatedFDManager::ProcStatus;
++
+ if (ThreadsConfig > 1) {
+ cpus_online = fextl::fmt::format("0-{}", ThreadsConfig - 1);
+ } else {
+@@ -602,6 +609,20 @@ EmulatedFDManager::EmulatedFDManager(FEXCore::Context::Context* ctx)
+
+ EmulatedFDManager::~EmulatedFDManager() {}
+
++static bool IsProcMapsPath(const char* Path) {
++ if (strncmp(Path, "/proc/", 6) != 0) {
++ return false;
++ }
++ const char* P = Path + 6;
++ if (!isdigit(*P)) {
++ return strcmp(P, "self/maps") == 0;
++ }
++ while (isdigit(*P)) {
++ ++P;
++ }
++ return strcmp(P, "/maps") == 0;
++}
++
+ int32_t EmulatedFDManager::Open(const char* pathname, int flags, uint32_t mode) {
+ auto Creator = FDReadCreators.end();
+ if (pathname) {
+@@ -609,12 +630,148 @@ int32_t EmulatedFDManager::Open(const char* pathname, int flags, uint32_t mode)
+ }
+
+ if (Creator == FDReadCreators.end()) {
++ if (pathname && IsProcMapsPath(pathname)) {
++ return ProcMaps(CTX, AT_FDCWD, pathname, flags, mode);
++ }
+ return -1;
+ }
+
+ return Creator->second(CTX, AT_FDCWD, pathname, flags, mode);
+ }
+
++int32_t EmulatedFDManager::ProcMaps(FEXCore::Context::Context* ctx, int32_t fd, const char* pathname, int32_t flags, mode_t mode) {
++ int HostFD = ::open(pathname, O_RDONLY | O_CLOEXEC);
++ if (HostFD < 0) {
++ return -1;
++ }
++ fextl::string In;
++ char Buf[65536];
++ for (;;) {
++ const ssize_t Len = ::read(HostFD, Buf, sizeof(Buf));
++ if (Len > 0) {
++ In.append(Buf, Len);
++ } else if (Len == 0) {
++ break;
++ } else if (errno != EINTR) {
++ LogMan::Msg::EFmt("ProcMaps: reading {} failed: {}", pathname, errno);
++ ::close(HostFD);
++ return -1;
++ }
++ }
++ ::close(HostFD);
++
++ constexpr uint64_t X86_64TaskSizeMax = (1ULL << 47) - 4096;
++ fextl::string Out;
++ Out.reserve(In.size());
++ size_t Pos = 0;
++ while (Pos < In.size()) {
++ size_t Eol = In.find('\n', Pos);
++ const size_t End = Eol == fextl::string::npos ? In.size() : Eol + 1;
++ const uint64_t Start = strtoull(In.c_str() + Pos, nullptr, 16);
++ if (Start < X86_64TaskSizeMax) {
++ Out.append(In, Pos, End - Pos);
++ }
++ Pos = End;
++ }
++
++ int NewFD = GenTmpFD(pathname, flags);
++ if (NewFD < 0) {
++ LogMan::Msg::EFmt("ProcMaps: memfd_create failed: {}", errno);
++ return -1;
++ }
++ for (size_t Done = 0; Done < Out.size();) {
++ const ssize_t Wrote = ::write(NewFD, Out.data() + Done, Out.size() - Done);
++ if (Wrote > 0) {
++ Done += Wrote;
++ } else if (Wrote < 0 && errno == EINTR) {
++ continue;
++ } else {
++ LogMan::Msg::EFmt("ProcMaps: writing the synthesized file failed: {}", errno);
++ ::close(NewFD);
++ return -1;
++ }
++ }
++ if (::lseek(NewFD, 0, SEEK_SET) != 0) {
++ LogMan::Msg::EFmt("ProcMaps: lseek failed: {}", errno);
++ ::close(NewFD);
++ return -1;
++ }
++ SealTmpFD(NewFD);
++ return NewFD;
++}
++
++int32_t EmulatedFDManager::ProcStatus(FEXCore::Context::Context* ctx, int32_t fd, const char* pathname, int32_t flags, mode_t mode) {
++ char Buf[8192];
++ ssize_t Len = 0;
++ {
++ int HostFD = ::open("/proc/self/status", O_RDONLY | O_CLOEXEC);
++ if (HostFD >= 0) {
++ Len = ::read(HostFD, Buf, sizeof(Buf) - 1);
++ ::close(HostFD);
++ }
++ }
++ if (Len < 0) {
++ Len = 0;
++ }
++ Buf[Len] = '\0';
++
++ uint32_t SeccompMode = SECCOMP_MODE_DISABLED;
++ if (auto* Thread = FEX::HLE::ThreadManager::GetCurrentThreadObject()) {
++ SeccompMode = Thread->SeccompMode;
++ }
++
++ fextl::string Out;
++ Out.reserve(Len + 64);
++ const char* Cursor = Buf;
++ while (*Cursor) {
++ const char* Eol = strchr(Cursor, '\n');
++ const size_t LineLen = Eol ? static_cast(Eol - Cursor) + 1 : strlen(Cursor);
++ if (strncmp(Cursor, "Seccomp:", 8) == 0) {
++ Out += fextl::fmt::format("Seccomp:\t{}\n", SeccompMode);
++ } else if (strncmp(Cursor, "TracerPid:", 10) == 0) {
++ if (FEX::HLE::PtraceEmu::IsAttached()) {
++ Out.append(Cursor, LineLen);
++ } else {
++ Out += "TracerPid:\t0\n";
++ }
++ } else {
++ Out.append(Cursor, LineLen);
++ if (!Eol) {
++ break;
++ }
++ }
++ if (!Eol) {
++ break;
++ }
++ Cursor = Eol + 1;
++ }
++
++ int NewFD = GenTmpFD(pathname, flags);
++ if (NewFD < 0) {
++ LogMan::Msg::EFmt("ProcMaps: memfd_create failed: {}", errno);
++ return -1;
++ }
++ for (size_t Done = 0; Done < Out.size();) {
++ const ssize_t Wrote = ::write(NewFD, Out.data() + Done, Out.size() - Done);
++ if (Wrote > 0) {
++ Done += Wrote;
++ } else if (Wrote < 0 && errno == EINTR) {
++ continue;
++ } else {
++ LogMan::Msg::EFmt("ProcMaps: writing the synthesized file failed: {}", errno);
++ ::close(NewFD);
++ return -1;
++ }
++ }
++ if (::lseek(NewFD, 0, SEEK_SET) != 0) {
++ LogMan::Msg::EFmt("ProcMaps: lseek failed: {}", errno);
++ ::close(NewFD);
++ return -1;
++ }
++ SealTmpFD(NewFD);
++ return NewFD;
++}
++
+ int32_t EmulatedFDManager::ProcAuxv(FEXCore::Context::Context* ctx, int32_t fd, const char* pathname, int32_t flags, mode_t mode) {
+ const auto [auxvBase, auxvSize] = FEX::HLE::_SyscallHandler->GetCodeLoader()->GetAuxv();
+ if (auxvBase == 0) {
+diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/EmulatedFiles/EmulatedFiles.h b/Source/Tools/LinuxEmulation/LinuxSyscalls/EmulatedFiles/EmulatedFiles.h
+index 854232341..b98ef4bda 100644
+--- a/Source/Tools/LinuxEmulation/LinuxSyscalls/EmulatedFiles/EmulatedFiles.h
++++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/EmulatedFiles/EmulatedFiles.h
+@@ -34,6 +34,8 @@ private:
+ fextl::unordered_map FDReadCreators;
+
+ static int32_t ProcAuxv(FEXCore::Context::Context* ctx, int32_t fd, const char* pathname, int32_t flags, mode_t mode);
++ static int32_t ProcMaps(FEXCore::Context::Context* ctx, int32_t fd, const char* pathname, int32_t flags, mode_t mode);
++ static int32_t ProcStatus(FEXCore::Context::Context* ctx, int32_t fd, const char* pathname, int32_t flags, mode_t mode);
+ const uint32_t ThreadsConfig;
+ };
+ } // namespace FEX::EmulatedFile
+diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/FaultSafeUserMemAccess.cpp b/Source/Tools/LinuxEmulation/LinuxSyscalls/FaultSafeUserMemAccess.cpp
+index 6471e6483..7a7e068e2 100644
+--- a/Source/Tools/LinuxEmulation/LinuxSyscalls/FaultSafeUserMemAccess.cpp
++++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/FaultSafeUserMemAccess.cpp
+@@ -1,6 +1,8 @@
+ // SPDX-License-Identifier: MIT
+ #include "LinuxSyscalls/Syscalls.h"
+
++#include
++
+ namespace FEX::HLE::FaultSafeUserMemAccess {
+ #ifdef ARCHITECTURE_arm64
+ __attribute__((naked)) size_t CopyFromUser(void* Dest, const void* Src, size_t Size) {
+@@ -41,6 +43,26 @@ __attribute__((naked)) size_t CopyToUser(void* Dest, const void* Src, size_t Siz
+ : "memory");
+ }
+
++__attribute__((naked)) static size_t StringReadableImpl(const char* Src) {
++ __asm volatile(R"(
++ 1:
++ .globl StringReadable_FaultInst
++ StringReadable_FaultInst:
++ ldrb w1, [x0], 1; // <- This line can fault.
++ cbnz w1, 1b;
++ mov x0, 0;
++ ret;
++ )" ::
++ : "memory");
++}
++
++bool IsStringReadable(const char* Src) {
++ return Src == nullptr || StringReadableImpl(Src) == 0;
++}
++
++extern "C" uint64_t StringReadable_FaultInst;
++void* const StringReadable_FaultLocation = &StringReadable_FaultInst;
++
+ extern "C" uint64_t CopyFromUser_FaultInst;
+ void* const CopyFromUser_FaultLocation = &CopyFromUser_FaultInst;
+
+@@ -157,6 +179,8 @@ bool IsFaultLocation(uint64_t PC) {
+ bool IsMemcpyFault = false;
+ IsMemcpyFault |= reinterpret_cast(PC) == CopyToUser_FaultLocation;
+ IsMemcpyFault |= reinterpret_cast(PC) == CopyFromUser_FaultLocation;
++ IsMemcpyFault |= reinterpret_cast(PC) == StringReadable_FaultLocation;
++ IsMemcpyFault |= FEXCore::Utils::FaultSafeRead::IsFaultLocation(PC);
+ #if defined(ASSERTIONS_ENABLED) && ASSERTIONS_ENABLED && defined(ARCHITECTURE_arm64)
+ IsMemcpyFault |= reinterpret_cast(PC) == UserReadable_FaultLocation;
+ IsMemcpyFault |= reinterpret_cast(PC) == UserWritable_FaultLocation;
+@@ -176,6 +200,10 @@ size_t CopyToUser(void* Dest, const void* Src, size_t Size) {
+ return Size;
+ }
+
++bool IsStringReadable(const char* Src) {
++ return true;
++}
++
+ bool IsFaultLocation(uint64_t PC) {
+ return false;
+ }
+diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/FileManagement.cpp b/Source/Tools/LinuxEmulation/LinuxSyscalls/FileManagement.cpp
+index 2210e4508..62b6a2d27 100644
+--- a/Source/Tools/LinuxEmulation/LinuxSyscalls/FileManagement.cpp
++++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/FileManagement.cpp
+@@ -13,6 +13,7 @@ $end_info$
+ #include "FEXCore/Config/Config.h"
+ #include "LinuxSyscalls/FileManagement.h"
+ #include "LinuxSyscalls/EmulatedFiles/EmulatedFiles.h"
++#include "LinuxSyscalls/PtraceEmu.h"
+ #include "LinuxSyscalls/Syscalls.h"
+ #include "LinuxSyscalls/x64/Syscalls.h"
+
+@@ -954,6 +955,27 @@ uint64_t FileManager::FAccessat2(int dirfd, const char* pathname, int mode, int
+ return ::syscall(SYSCALL_DEF(faccessat2), dirfd, SelfPath, mode, flags);
+ }
+
++static std::optional ReadlinkTraceeExe(const char* Path, char* Buf, size_t BufSize) {
++ if (!Path || strncmp(Path, "/proc/", 6) != 0) {
++ return std::nullopt;
++ }
++ char* End = nullptr;
++ const long Pid = strtol(Path + 6, &End, 10);
++ if (End == Path + 6 || strcmp(End, "/exe") != 0) {
++ return std::nullopt;
++ }
++ const auto Exe = PtraceEmu::TraceeExePath(static_cast(Pid));
++ if (!Exe) {
++ return std::nullopt;
++ }
++ const size_t Len = std::min(BufSize, Exe->size());
++ if (FaultSafeUserMemAccess::CopyToUser(Buf, Exe->data(), Len)) {
++ errno = EFAULT;
++ return -1;
++ }
++ return Len;
++}
++
+ uint64_t FileManager::Readlink(const char* pathname, char* buf, size_t bufsiz) {
+ // calculate the non-self link to exe
+ // Some executables do getpid, stat("/proc/$pid/exe")
+@@ -962,8 +984,16 @@ uint64_t FileManager::Readlink(const char* pathname, char* buf, size_t bufsiz) {
+
+ if (strcmp(pathname, "/proc/self/exe") == 0 || strcmp(pathname, "/proc/thread-self/exe") == 0 || strcmp(pathname, PidSelfPath) == 0) {
+ const auto& App = Filename();
+- strncpy(buf, App.c_str(), bufsiz);
+- return std::min(bufsiz, App.size());
++ const size_t Len = std::min(bufsiz, App.size());
++ if (FaultSafeUserMemAccess::CopyToUser(buf, App.c_str(), Len)) {
++ errno = EFAULT;
++ return -1;
++ }
++ return Len;
++ }
++
++ if (auto Traced = ReadlinkTraceeExe(pathname, buf, bufsiz)) {
++ return *Traced;
+ }
+
+ FDPathTmpData TmpFilename;
+@@ -1039,8 +1069,18 @@ uint64_t FileManager::Readlinkat(int dirfd, const char* pathname, char* buf, siz
+
+ if (Path == "/proc/self/exe" || Path == "/proc/thread-self/exe" || Path == PidSelfPath) {
+ const auto& App = Filename();
+- strncpy(buf, App.c_str(), bufsiz);
+- return std::min(bufsiz, App.size());
++ const size_t Len = std::min(bufsiz, App.size());
++ if (FaultSafeUserMemAccess::CopyToUser(buf, App.c_str(), Len)) {
++ errno = EFAULT;
++ return -1;
++ }
++ return Len;
++ }
++
++ if (!Path.empty() && Path[0] == '/') {
++ if (auto Traced = ReadlinkTraceeExe(Path.c_str(), buf, bufsiz)) {
++ return *Traced;
++ }
+ }
+
+ FDPathTmpData TmpFilename;
+diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/LinuxAllocator.cpp b/Source/Tools/LinuxEmulation/LinuxSyscalls/LinuxAllocator.cpp
+index 7ae8236b3..3be10d097 100644
+--- a/Source/Tools/LinuxEmulation/LinuxSyscalls/LinuxAllocator.cpp
++++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/LinuxAllocator.cpp
+@@ -50,6 +50,7 @@ public:
+
+ void* Mmap(void* addr, size_t length, int prot, int flags, int fd, off_t offset) override;
+ int Munmap(void* addr, size_t length) override;
++ void TrackUnmapped(void* addr, size_t length) override;
+ void* Mremap(void* old_address, size_t old_size, size_t new_size, int flags, void* new_address) override;
+ uint64_t Shmat(int shmid, const void* shmaddr, int shmflg, uint32_t* ResultAddress) override;
+ uint64_t Shmdt(const void* shmaddr) override;
+@@ -333,6 +334,17 @@ int MemAllocator32Bit::Munmap(void* addr, size_t length) {
+ return 0;
+ }
+
++void MemAllocator32Bit::TrackUnmapped(void* addr, size_t length) {
++ std::scoped_lock lk {AllocMutex};
++
++ const uint64_t Addr = reinterpret_cast(addr);
++ const uint64_t PageAddr = std::max(Addr >> FEXCore::Utils::FEX_PAGE_SHIFT, BASE_KEY);
++ const uint64_t PageEnd = std::min(FEXCore::AlignUp(Addr + length, FEXCore::Utils::FEX_PAGE_SIZE) >> FEXCore::Utils::FEX_PAGE_SHIFT, TOP_KEY);
++ if (PageAddr < PageEnd) {
++ SetFreePages(PageAddr, PageEnd - PageAddr);
++ }
++}
++
+ void* MemAllocator32Bit::Mremap(void* old_address, size_t old_size, size_t new_size, int flags, void* new_address) {
+ size_t OldPagesLength = FEXCore::AlignUp(old_size, FEXCore::Utils::FEX_PAGE_SIZE) >> FEXCore::Utils::FEX_PAGE_SHIFT;
+ size_t NewPagesLength = FEXCore::AlignUp(new_size, FEXCore::Utils::FEX_PAGE_SIZE) >> FEXCore::Utils::FEX_PAGE_SHIFT;
+diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/LinuxAllocator.h b/Source/Tools/LinuxEmulation/LinuxSyscalls/LinuxAllocator.h
+index dd6ae074f..c84f85b4a 100644
+--- a/Source/Tools/LinuxEmulation/LinuxSyscalls/LinuxAllocator.h
++++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/LinuxAllocator.h
+@@ -14,6 +14,7 @@ public:
+ virtual ~MemAllocator() = default;
+ virtual void* Mmap(void* addr, size_t length, int prot, int flags, int fd, off_t offset) = 0;
+ virtual int Munmap(void* addr, size_t length) = 0;
++ virtual void TrackUnmapped(void* addr, size_t length) {}
+ virtual void* Mremap(void* old_address, size_t old_size, size_t new_size, int flags, void* new_address) = 0;
+ virtual uint64_t Shmat(int shmid, const void* shmaddr, int shmflg, uint32_t* ResultAddress) = 0;
+ virtual uint64_t Shmdt(const void* shmaddr) = 0;
+diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/PtraceEmu.cpp b/Source/Tools/LinuxEmulation/LinuxSyscalls/PtraceEmu.cpp
+new file mode 100644
+index 000000000..ca4c86063
+--- /dev/null
++++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/PtraceEmu.cpp
+@@ -0,0 +1,838 @@
++// SPDX-License-Identifier: MIT
++
++#include "LinuxSyscalls/PtraceEmu.h"
++#include "LinuxSyscalls/Syscalls.h"
++
++#include
++#include
++
++#include
++#include
++#include
++#include
++#include
++#include
++#include
++#include
++#include
++
++#include
++#include
++#include
++#include
++#include
++#include
++#include
++
++namespace FEX::HLE::PtraceEmu {
++namespace {
++#ifndef NT_X86_XSTATE
++ constexpr uintptr_t NT_X86_XSTATE = 0x202;
++#endif
++
++ enum UserReg : unsigned {
++ R15, R14, R13, R12, Rbp, Rbx, R11, R10, R9, R8, Rax, Rcx, Rdx, Rsi, Rdi, OrigRax, Rip, Cs, Eflags, Rsp, Ss, FsBase, GsBase, Ds, Es, Fs, Gs,
++ };
++ static_assert(Gs + 1 == NumUserRegs);
++
++ constexpr uintptr_t UserDebugRegByteOffset = 848;
++ constexpr uintptr_t UserDebugRegByteEnd = UserDebugRegByteOffset + 8 * sizeof(uint64_t);
++ constexpr uintptr_t UserStructSize = 928;
++
++ constexpr uint64_t UserTaskSizeMax = 0x00007ffffffff000ULL;
++
++ bool DrFieldValid(uint64_t Field, uint64_t* AlignMask) {
++ const uint64_t Len = Field & 0xC;
++ switch (Field & 0x3) {
++ case 0x0:
++ if (Len != 0x0) {
++ return false;
++ }
++ *AlignMask = 0;
++ return true;
++ case 0x1:
++ case 0x3:
++ switch (Len) {
++ case 0x0: *AlignMask = 0; return true;
++ case 0x4: *AlignMask = 1; return true;
++ case 0xC: *AlignMask = 3; return true;
++ case 0x8: *AlignMask = 7; return true;
++ default: return false;
++ }
++ default:
++ return false;
++ }
++ }
++
++ constexpr unsigned DrEnableShift(unsigned N) { return N * 2; }
++ constexpr unsigned DrFieldShift(unsigned N) { return 16 + N * 4; }
++
++ bool DrAddressValid(uint64_t Addr, uint64_t AlignMask) {
++ return Addr < UserTaskSizeMax && (Addr & AlignMask) == 0;
++ }
++
++ bool Dr7Valid(const uint64_t Dr[8], uint64_t NewDr7) {
++ for (unsigned N = 0; N < 4; ++N) {
++ const bool Enabled = (NewDr7 >> DrEnableShift(N)) & 0x3;
++ const bool Registered = Dr[N] != 0;
++ if (!Enabled && !Registered) {
++ continue;
++ }
++ const uint64_t Field = (NewDr7 >> DrFieldShift(N)) & 0xF;
++ uint64_t AlignMask = 0;
++ if (!DrFieldValid(Field, &AlignMask) || !DrAddressValid(Dr[N], AlignMask)) {
++ return false;
++ }
++ }
++ return true;
++ }
++
++ constexpr uint16_t UserCodeSegment = 0x33;
++ constexpr uint16_t UserStackSegment = 0x2b;
++ constexpr uint64_t UserFlags = 0x246;
++ constexpr uint64_t NoOverride = ~0ULL;
++
++ constexpr int X86_PTRACE_GETREGS = 12;
++ constexpr int X86_PTRACE_SETREGS = 13;
++ constexpr int X86_PTRACE_EVENT_EXEC = 4;
++
++ SharedState StaticState {SharedState::MagicValue};
++ SharedState* Current = &StaticState;
++ thread_local uint64_t PendingRip = 0;
++
++ struct OpenSyscall {
++ bool Open = false;
++ uint64_t Nr {};
++ uint64_t Args[6] {};
++ } Previous;
++
++ constexpr const char* SidecarDirs[] = {"/dev/shm", "/tmp"};
++
++ std::string SidecarPath(const char* Dir, const char* Kind, pid_t Pid) {
++ return std::string(Dir) + "/fex-ptrace-" + Kind + "-" + std::to_string(Pid);
++ }
++
++ int OpenSidecar(const char* Kind, pid_t Pid, int Flags) {
++ for (const char* Dir : SidecarDirs) {
++ const int fd = ::open(SidecarPath(Dir, Kind, Pid).c_str(), Flags | O_CLOEXEC, 0600);
++ if (fd >= 0) {
++ return fd;
++ }
++ }
++ return -1;
++ }
++
++ void RemoveSidecar(const char* Kind, pid_t Pid) {
++ for (const char* Dir : SidecarDirs) {
++ ::unlink(SidecarPath(Dir, Kind, Pid).c_str());
++ }
++ }
++
++ bool IsMainThread() {
++ return ::syscall(SYS_gettid) == ::getpid();
++ }
++
++ bool HasHostTracer() {
++ const int fd = ::open("/proc/self/status", O_RDONLY | O_CLOEXEC);
++ if (fd < 0) {
++ return true;
++ }
++ char Buf[2048];
++ const ssize_t n = ::read(fd, Buf, sizeof(Buf) - 1);
++ ::close(fd);
++ if (n <= 0) {
++ return true;
++ }
++ Buf[n] = 0;
++ const char* Tag = strstr(Buf, "TracerPid:");
++ return !Tag || atoi(Tag + sizeof("TracerPid:") - 1) != 0;
++ }
++
++
++ void BuildRegs(const FEXCore::Core::CpuStateFrame* Frame, uint64_t Nr, bool Entry, uint64_t Ret, uint64_t* X) {
++ using namespace FEXCore::X86State;
++ const auto& S = Frame->State;
++ X[R15] = S.gregs[REG_R15];
++ X[R14] = S.gregs[REG_R14];
++ X[R13] = S.gregs[REG_R13];
++ X[R12] = S.gregs[REG_R12];
++ X[Rbp] = S.gregs[REG_RBP];
++ X[Rbx] = S.gregs[REG_RBX];
++ X[R11] = UserFlags;
++ X[R10] = S.gregs[REG_R10];
++ X[R9] = S.gregs[REG_R9];
++ X[R8] = S.gregs[REG_R8];
++ X[Rax] = Entry ? static_cast(-ENOSYS) : Ret;
++ X[Rcx] = S.gregs[REG_RCX];
++ X[Rdx] = S.gregs[REG_RDX];
++ X[Rsi] = S.gregs[REG_RSI];
++ X[Rdi] = S.gregs[REG_RDI];
++ X[OrigRax] = Nr;
++ X[Rip] = S.gregs[REG_RCX] ? S.gregs[REG_RCX] : S.rip;
++ X[Cs] = UserCodeSegment;
++ X[Eflags] = UserFlags;
++ X[Rsp] = S.gregs[REG_RSP];
++ X[Ss] = UserStackSegment;
++ X[FsBase] = S.fs_cached;
++ X[GsBase] = S.gs_cached;
++ X[Ds] = X[Es] = X[Fs] = X[Gs] = 0;
++ }
++
++ void Stop(uint64_t Nr, const uint64_t Args[6], bool Entry, uint64_t Ret, const uint64_t* Regs) {
++ SharedState& S = *Current;
++ if (!HasHostTracer()) {
++ S.SyscallStops = 0;
++ S.Attached = 0;
++ return;
++ }
++ for (unsigned i = 0; i < NumUserRegs; ++i) {
++ S.Regs[i] = Regs[i];
++ }
++ S.PendingNr = Nr;
++ for (unsigned i = 0; i < 6; ++i) {
++ S.PendingArgs[i] = Args[i];
++ }
++ S.PendingRet = Ret;
++ S.PendingIsEntry = Entry ? 1 : 0;
++ S.Pending = 1;
++ ::syscall(SYS_tgkill, ::getpid(), ::syscall(SYS_gettid), SIGSTOP);
++ S.Pending = 0;
++ }
++
++ uint64_t ApplyTracerWrites(FEXCore::Core::CpuStateFrame* Frame, bool Entry) {
++ using namespace FEXCore::X86State;
++ SharedState& S = *Current;
++
++ if (S.FlushLen) {
++ const uint64_t Addr = S.FlushAddr;
++ const uint64_t Len = S.FlushLen;
++ S.FlushLen = 0;
++ FEX::HLE::_SyscallHandler->InvalidateGuestCodeRange(Frame->Thread, Addr, Len);
++ }
++
++ const uint64_t Dirty = S.DirtyMask;
++ if (!Dirty) {
++ return NoOverride;
++ }
++
++ static constexpr int Map[15] = {REG_R15, REG_R14, REG_R13, REG_R12, REG_RBP, REG_RBX, -1, REG_R10, REG_R9, REG_R8, -1, REG_RCX, REG_RDX, REG_RSI, REG_RDI};
++ auto& State = Frame->State;
++ uint64_t Override = NoOverride;
++ for (unsigned i = 0; i < NumUserRegs; ++i) {
++ if (!(Dirty & (1ULL << i))) {
++ continue;
++ }
++ const uint64_t V = S.Regs[i];
++ if (i < 15) {
++ if (Map[i] >= 0) {
++ State.gregs[Map[i]] = V;
++ }
++ } else if (i == Rip) {
++ PendingRip = V;
++ } else if (i == Rsp) {
++ State.gregs[REG_RSP] = V;
++ } else if (i == FsBase) {
++ State.fs_cached = V;
++ } else if (i == GsBase) {
++ State.gs_cached = V;
++ }
++ if (i == Rax && !Entry) {
++ Override = V;
++ }
++ }
++ if (Entry && (Dirty & (1ULL << OrigRax))) {
++ State.gregs[REG_RAX] = S.Regs[OrigRax];
++ }
++ S.DirtyMask = 0;
++ return Override;
++ }
++
++ void PublishSharedPage() {
++ if (Current != &StaticState) {
++ return;
++ }
++ const int fd = OpenSidecar("state", ::getpid(), O_RDWR | O_CREAT | O_TRUNC);
++ if (fd < 0) {
++ return;
++ }
++ if (::ftruncate(fd, 4096) == 0) {
++ void* Page = ::mmap(nullptr, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
++ if (Page != MAP_FAILED) {
++ std::memcpy(Page, &StaticState, sizeof(SharedState));
++ Current = static_cast(Page);
++ }
++ }
++ ::close(fd);
++ }
++
++ struct Remote {
++ uint8_t* Mapped = nullptr;
++ uintptr_t StaticAddr = 0;
++ std::array FpRegs {};
++ bool FpValid = false;
++ std::array XState {};
++ bool XStateValid = false;
++ };
++ std::mutex RemotesLock;
++ std::unordered_map Remotes;
++ std::unordered_map ExePaths;
++
++ uintptr_t FindFexImageBase(pid_t Pid) {
++ static const std::string SelfExe = []() {
++ char Buf[512];
++ const ssize_t n = ::readlink("/proc/self/exe", Buf, sizeof(Buf) - 1);
++ return n > 0 ? std::string(Buf, n) : std::string();
++ }();
++ if (SelfExe.empty()) {
++ return 0;
++ }
++ const std::string Maps = Pid ? "/proc/" + std::to_string(Pid) + "/maps" : "/proc/self/maps";
++ FILE* F = fopen(Maps.c_str(), "r");
++ if (!F) {
++ return 0;
++ }
++ char Line[1024];
++ uintptr_t Lowest = 0;
++ while (fgets(Line, sizeof(Line), F)) {
++ if (!strstr(Line, SelfExe.c_str())) {
++ continue;
++ }
++ unsigned long long Start = 0, End = 0, Offset = 0;
++ if (sscanf(Line, "%llx-%llx %*s %llx", &Start, &End, &Offset) == 3 && Offset == 0 && (!Lowest || Start < Lowest)) {
++ Lowest = Start;
++ }
++ }
++ fclose(F);
++ return Lowest;
++ }
++
++ Remote* Lookup(pid_t Pid) {
++ auto It = Remotes.find(Pid);
++ if (It != Remotes.end()) {
++ return &It->second;
++ }
++ Remote R;
++ const int fd = OpenSidecar("state", Pid, O_RDWR);
++ if (fd >= 0) {
++ void* Page = ::mmap(nullptr, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
++ ::close(fd);
++ if (Page != MAP_FAILED) {
++ R.Mapped = static_cast(Page);
++ }
++ }
++ if (!R.Mapped) {
++ static const uintptr_t SelfBase = FindFexImageBase(0);
++ const uintptr_t TraceeBase = FindFexImageBase(Pid);
++ if (!SelfBase || !TraceeBase) {
++ return nullptr;
++ }
++ R.StaticAddr = TraceeBase + (reinterpret_cast(&StaticState) - SelfBase);
++ }
++ return &Remotes.emplace(Pid, std::move(R)).first->second;
++ }
++
++ void Forget(pid_t Pid, bool Exited) {
++ std::lock_guard lk(RemotesLock);
++ auto It = Remotes.find(Pid);
++ if (It != Remotes.end()) {
++ if (It->second.Mapped) {
++ ::munmap(It->second.Mapped, 4096);
++ }
++ Remotes.erase(It);
++ }
++ RemoveSidecar("state", Pid);
++ if (Exited) {
++ ExePaths.erase(Pid);
++ }
++ }
++
++ void CaptureExecPath(pid_t Pid) {
++ std::lock_guard lk(RemotesLock);
++ Remote* R = Lookup(Pid);
++ if (R && R->Mapped) {
++ auto* S = reinterpret_cast(R->Mapped);
++ if (S->Magic == SharedState::MagicValue && S->ExePath[0]) {
++ ExePaths[Pid] = std::string(S->ExePath, strnlen(S->ExePath, sizeof(S->ExePath)));
++ }
++ }
++ }
++
++ uint64_t HostPtrace(int Request, pid_t Pid, void* Addr, void* Data) {
++ const long R = ::syscall(SYS_ptrace, Request, Pid, Addr, Data);
++ return R == -1 ? static_cast(-errno) : static_cast(R);
++ }
++
++ bool ReadWord(pid_t Pid, size_t Offset, uint64_t* Out) {
++ std::lock_guard lk(RemotesLock);
++ Remote* R = Lookup(Pid);
++ if (!R) {
++ return false;
++ }
++ if (R->Mapped) {
++ *Out = *reinterpret_cast(R->Mapped + Offset);
++ return true;
++ }
++ return ::syscall(SYS_ptrace, PTRACE_PEEKDATA, Pid, R->StaticAddr + Offset, Out) == 0;
++ }
++
++ bool WriteWord(pid_t Pid, size_t Offset, uint64_t Value) {
++ std::lock_guard lk(RemotesLock);
++ Remote* R = Lookup(Pid);
++ if (!R) {
++ return false;
++ }
++ if (R->Mapped) {
++ *reinterpret_cast(R->Mapped + Offset) = Value;
++ return true;
++ }
++ return ::syscall(SYS_ptrace, PTRACE_POKEDATA, Pid, R->StaticAddr + Offset, Value) == 0;
++ }
++
++ bool IsFexTracee(pid_t Pid) {
++ uint64_t Magic = 0;
++ return ReadWord(Pid, offsetof(SharedState, Magic), &Magic) && Magic == SharedState::MagicValue;
++ }
++
++ bool ReadSlot(pid_t Pid, size_t Offset, uint64_t* Out) {
++ return ReadWord(Pid, Offset, Out);
++ }
++
++ void MarkDirty(pid_t Pid, uint64_t Mask) {
++ uint64_t Dirty = 0;
++ ReadWord(Pid, offsetof(SharedState, DirtyMask), &Dirty);
++ WriteWord(Pid, offsetof(SharedState, DirtyMask), Dirty | Mask);
++ }
++
++ constexpr size_t RegOffset(unsigned Index) {
++ return offsetof(SharedState, Regs) + Index * sizeof(uint64_t);
++ }
++
++ bool ReadDebugReg(pid_t Pid, unsigned N, uint64_t* Out) {
++ if (N == 4 || N == 5) {
++ *Out = 0;
++ return true;
++ }
++ if (N > 7) {
++ return false;
++ }
++ return ReadWord(Pid, offsetof(SharedState, DebugRegs) + N * sizeof(uint64_t), Out);
++ }
++
++ int WriteDebugReg(pid_t Pid, unsigned N, uint64_t Value) {
++ if (N == 4 || N == 5) {
++ return -EIO;
++ }
++ if (N <= 3) {
++ if (!DrAddressValid(Value, 0)) {
++ return -EINVAL;
++ }
++ return WriteWord(Pid, offsetof(SharedState, DebugRegs) + N * sizeof(uint64_t), Value) ? 0 : -ESRCH;
++ }
++ if (N == 6) {
++ return WriteWord(Pid, offsetof(SharedState, DebugRegs) + 6 * sizeof(uint64_t), Value) ? 0 : -ESRCH;
++ }
++ uint64_t Dr[8] {};
++ for (unsigned I = 0; I < 8; ++I) {
++ if (!ReadWord(Pid, offsetof(SharedState, DebugRegs) + I * sizeof(uint64_t), &Dr[I])) {
++ return -ESRCH;
++ }
++ }
++ if (!Dr7Valid(Dr, Value)) {
++ return -EINVAL;
++ }
++ return WriteWord(Pid, offsetof(SharedState, DebugRegs) + 7 * sizeof(uint64_t), Value) ? 0 : -ESRCH;
++ }
++
++ Remote* XStateState(pid_t Pid) {
++ std::lock_guard lk(RemotesLock);
++ Remote* R = Lookup(Pid);
++ if (R && !R->XStateValid) {
++ R->XStateValid = true;
++ }
++ return R;
++ }
++
++ Remote* FpState(pid_t Pid) {
++ std::lock_guard lk(RemotesLock);
++ Remote* R = Lookup(Pid);
++ if (R && !R->FpValid) {
++ const uint16_t Fcw = 0x37f;
++ const uint32_t Mxcsr = 0x1f80, MxcsrMask = 0xffff;
++ std::memcpy(&R->FpRegs[0], &Fcw, sizeof(Fcw));
++ std::memcpy(&R->FpRegs[24], &Mxcsr, sizeof(Mxcsr));
++ std::memcpy(&R->FpRegs[28], &MxcsrMask, sizeof(MxcsrMask));
++ R->FpValid = true;
++ }
++ return R;
++ }
++}
++
++
++bool IsAttached() {
++ return Current->Attached != 0;
++}
++
++bool WantsSyscallStops() {
++ return Current->SyscallStops && IsMainThread();
++}
++
++uint64_t SyscallEntryStop(FEXCore::Core::CpuStateFrame* Frame, uint64_t Nr, const uint64_t Args[6]) {
++ uint64_t Regs[NumUserRegs];
++ if (Previous.Open) {
++ BuildRegs(Frame, Previous.Nr, false, 0, Regs);
++ Stop(Previous.Nr, Previous.Args, false, 0, Regs);
++ }
++ BuildRegs(Frame, Nr, true, 0, Regs);
++ Stop(Nr, Args, true, 0, Regs);
++ ApplyTracerWrites(Frame, true);
++
++ const uint64_t NewNr = Frame->State.gregs[FEXCore::X86State::REG_RAX];
++ Previous.Open = Current->SyscallStops != 0;
++ Previous.Nr = NewNr;
++ std::copy(Args, Args + 6, Previous.Args);
++ return NewNr;
++}
++
++uint64_t SyscallExitStop(FEXCore::Core::CpuStateFrame* Frame, uint64_t Nr, const uint64_t Args[6], uint64_t Result) {
++ uint64_t Regs[NumUserRegs];
++ BuildRegs(Frame, Nr, false, Result, Regs);
++ Stop(Nr, Args, false, Result, Regs);
++ const uint64_t Override = ApplyTracerWrites(Frame, false);
++ Previous.Open = false;
++ return Override != NoOverride ? Override : Result;
++}
++
++void OnForkedChild(bool SharesAddressSpace) {
++ if (SharesAddressSpace) {
++ return;
++ }
++ Current = &StaticState;
++ StaticState.SyscallStops = 0;
++ StaticState.Attached = 0;
++ StaticState.Pending = 0;
++ Previous.Open = false;
++}
++
++void ApplyPendingFlush(FEXCore::Core::CpuStateFrame* Frame) {
++ SharedState& S = *Current;
++ if (S.FlushLen) {
++ const uint64_t Addr = S.FlushAddr;
++ const uint64_t Len = S.FlushLen;
++ S.FlushLen = 0;
++ FEX::HLE::_SyscallHandler->InvalidateGuestCodeRange(Frame->Thread, Addr, Len);
++ }
++}
++
++uint64_t TakePendingRip() {
++ const uint64_t Rip = PendingRip;
++ PendingRip = 0;
++ return Rip;
++}
++
++bool TryGuestSignalStop(FEXCore::Core::CpuStateFrame* Frame, int Signal) {
++ if (Signal != SIGTRAP && Signal != SIGSEGV) {
++ return false;
++ }
++ if (!Frame->SynchronousFaultData.FaultToTopAndGeneratedException || !Current->Attached || !IsMainThread()) {
++ return false;
++ }
++
++ uint64_t Regs[NumUserRegs];
++ const uint64_t NoArgs[6] {};
++ BuildRegs(Frame, ~0ULL, false, Frame->State.gregs[FEXCore::X86State::REG_RAX], Regs);
++ Regs[Rip] = Frame->State.rip;
++
++ Current->SignalNumber = static_cast(Signal);
++ Stop(~0ULL, NoArgs, false, 0, Regs);
++ Current->SignalNumber = 0;
++
++ const uint64_t Override = ApplyTracerWrites(Frame, false);
++ if (Override != NoOverride) {
++ Frame->State.gregs[FEXCore::X86State::REG_RAX] = Override;
++ }
++ if (const uint64_t NewRip = TakePendingRip()) {
++ Frame->State.rip = NewRip;
++ }
++ return true;
++}
++
++void RecordExecPath(const std::string& GuestPath) {
++ if (!Current->Attached) {
++ return;
++ }
++ const size_t Len = std::min(GuestPath.size(), sizeof(Current->ExePath) - 1);
++ std::memcpy(Current->ExePath, GuestPath.data(), Len);
++ Current->ExePath[Len] = 0;
++}
++
++
++std::optional TraceeExePath(pid_t Pid) {
++ if (Pid <= 0 || Pid == ::getpid()) {
++ return std::nullopt;
++ }
++ std::lock_guard lk(RemotesLock);
++ auto It = ExePaths.find(Pid);
++ return It != ExePaths.end() ? std::optional(It->second) : std::nullopt;
++}
++
++bool FixupWaitStatus(pid_t Pid, int* Status) {
++ if (!Status || Pid <= 0) {
++ return false;
++ }
++ const int St = *Status;
++
++ if (WIFEXITED(St) || WIFSIGNALED(St)) {
++ Forget(Pid, true);
++ return false;
++ }
++ if (!WIFSTOPPED(St)) {
++ return false;
++ }
++
++ if ((St >> 16) == 0 && (WSTOPSIG(St) == SIGTRAP || WSTOPSIG(St) == SIGSEGV) && IsFexTracee(Pid)) {
++ HostPtrace(PTRACE_CONT, Pid, nullptr, reinterpret_cast(static_cast(WSTOPSIG(St))));
++ return true;
++ }
++
++ if ((St >> 16) == 0 && WSTOPSIG(St) == SIGBUS && IsFexTracee(Pid)) {
++ siginfo_t Info {};
++ if (HostPtrace(PTRACE_GETSIGINFO, Pid, nullptr, &Info) == 0 && Info.si_code == BUS_ADRALN) {
++ HostPtrace(PTRACE_CONT, Pid, nullptr, reinterpret_cast(static_cast(SIGBUS)));
++ return true;
++ }
++ }
++
++ if ((St >> 16) == 0 && WSTOPSIG(St) == SIGPROF && IsFexTracee(Pid)) {
++ HostPtrace(PTRACE_CONT, Pid, nullptr, nullptr);
++ return true;
++ }
++
++ if ((St >> 16) == X86_PTRACE_EVENT_EXEC) {
++ CaptureExecPath(Pid);
++ Forget(Pid, false);
++ }
++
++ if (WSTOPSIG(St) == SIGSTOP) {
++ uint64_t Pending = 0;
++ if (ReadWord(Pid, offsetof(SharedState, Pending), &Pending) && Pending) {
++ uint64_t Signal = 0;
++ ReadWord(Pid, offsetof(SharedState, SignalNumber), &Signal);
++ *Status = (St & ~0xff00) | (static_cast(Signal ? Signal : (SIGTRAP | 0x80)) << 8);
++ }
++ }
++ return false;
++}
++
++bool HandleRequest(int Request, pid_t Pid, void* Addr, void* Data, uint64_t* Result) {
++ switch (Request) {
++ case PTRACE_TRACEME:
++ *Result = HostPtrace(Request, Pid, Addr, Data);
++ if (*Result == 0) {
++ PublishSharedPage();
++ Current->Attached = 1;
++ }
++ return true;
++
++ case PTRACE_KILL:
++ case PTRACE_SEIZE:
++ case PTRACE_INTERRUPT:
++ case PTRACE_SETOPTIONS:
++ case PTRACE_GETEVENTMSG:
++ case PTRACE_SINGLESTEP:
++ case PTRACE_GETSIGINFO: *Result = HostPtrace(Request, Pid, Addr, Data); return true;
++
++ case PTRACE_POKETEXT:
++ case PTRACE_POKEDATA: {
++ *Result = HostPtrace(Request, Pid, Addr, Data);
++ if (*Result == 0 && IsFexTracee(Pid)) {
++ const uint64_t Lo = reinterpret_cast(Addr) & ~0xfffULL;
++ const uint64_t Hi = Lo + 0x2000;
++ uint64_t OldAddr = 0, OldLen = 0;
++ ReadWord(Pid, offsetof(SharedState, FlushAddr), &OldAddr);
++ ReadWord(Pid, offsetof(SharedState, FlushLen), &OldLen);
++ uint64_t NewLo = Lo, NewHi = Hi;
++ if (OldLen) {
++ NewLo = std::min(OldAddr, Lo);
++ NewHi = std::max(OldAddr + OldLen, Hi);
++ }
++ WriteWord(Pid, offsetof(SharedState, FlushAddr), NewLo);
++ WriteWord(Pid, offsetof(SharedState, FlushLen), NewHi - NewLo);
++ }
++ return true;
++ }
++
++ case PTRACE_CONT:
++ case PTRACE_SYSCALL: {
++ uint64_t Magic = 0;
++ if (ReadWord(Pid, offsetof(SharedState, Magic), &Magic) && Magic == SharedState::MagicValue) {
++ WriteWord(Pid, offsetof(SharedState, SyscallStops), Request == PTRACE_SYSCALL ? 1 : 0);
++ WriteWord(Pid, offsetof(SharedState, Attached), 1);
++ }
++ *Result = HostPtrace(PTRACE_CONT, Pid, Addr, Data);
++ return true;
++ }
++
++ case PTRACE_DETACH: {
++ if (IsFexTracee(Pid)) {
++ WriteWord(Pid, offsetof(SharedState, SyscallStops), 0);
++ WriteWord(Pid, offsetof(SharedState, Attached), 0);
++ }
++ *Result = HostPtrace(Request, Pid, Addr, Data);
++ Forget(Pid, false);
++ return true;
++ }
++
++ case PTRACE_PEEKUSER: {
++ const uintptr_t Off = reinterpret_cast(Addr);
++ if ((Off % sizeof(uint64_t)) != 0 || Off >= UserStructSize) {
++ *Result = static_cast(-EIO);
++ return true;
++ }
++ uint64_t V = 0;
++ if (Off < NumUserRegs * sizeof(uint64_t)) {
++ if (!ReadSlot(Pid, RegOffset(Off / 8), &V)) {
++ *Result = static_cast(-ESRCH);
++ return true;
++ }
++ } else if (Off >= UserDebugRegByteOffset && Off < UserDebugRegByteEnd) {
++ if (!ReadDebugReg(Pid, static_cast((Off - UserDebugRegByteOffset) / sizeof(uint64_t)), &V)) {
++ *Result = static_cast(-ESRCH);
++ return true;
++ }
++ }
++ *static_cast(Data) = V;
++ *Result = 0;
++ return true;
++ }
++
++ case PTRACE_POKEUSER: {
++ const uintptr_t Off = reinterpret_cast(Addr);
++ if ((Off % sizeof(uint64_t)) != 0 || Off >= UserStructSize) {
++ *Result = static_cast(-EIO);
++ return true;
++ }
++ if (Off < NumUserRegs * sizeof(uint64_t)) {
++ if (!WriteWord(Pid, RegOffset(Off / 8), reinterpret_cast(Data))) {
++ *Result = static_cast(-ESRCH);
++ return true;
++ }
++ MarkDirty(Pid, 1ULL << (Off / 8));
++ *Result = 0;
++ return true;
++ }
++ if (Off >= UserDebugRegByteOffset && Off < UserDebugRegByteEnd) {
++ *Result = static_cast(WriteDebugReg(Pid, static_cast((Off - UserDebugRegByteOffset) / sizeof(uint64_t)), reinterpret_cast(Data)));
++ return true;
++ }
++ *Result = static_cast(-EIO);
++ return true;
++ }
++
++ case X86_PTRACE_GETREGS: {
++ for (unsigned i = 0; i < NumUserRegs; ++i) {
++ uint64_t V = 0;
++ if (!ReadSlot(Pid, RegOffset(i), &V)) {
++ *Result = static_cast(-ESRCH);
++ return true;
++ }
++ static_cast(Data)[i] = V;
++ }
++ *Result = 0;
++ return true;
++ }
++
++ case X86_PTRACE_SETREGS: {
++ uint64_t Mask = 0;
++ for (unsigned i = 0; i < NumUserRegs; ++i) {
++ if (!WriteWord(Pid, RegOffset(i), static_cast(Data)[i])) {
++ *Result = static_cast(-ESRCH);
++ return true;
++ }
++ Mask |= 1ULL << i;
++ }
++ MarkDirty(Pid, Mask);
++ *Result = 0;
++ return true;
++ }
++
++ case PTRACE_GETREGSET:
++ case PTRACE_SETREGSET: {
++ const auto NtType = reinterpret_cast(Addr);
++ auto* Iov = static_cast(Data);
++ if (!Iov) {
++ return false;
++ }
++ const bool Get = Request == PTRACE_GETREGSET;
++
++ if (NtType == NT_PRSTATUS) {
++ if (Get) {
++ uint64_t Image[NumUserRegs];
++ for (unsigned i = 0; i < NumUserRegs; ++i) {
++ if (!ReadSlot(Pid, RegOffset(i), &Image[i])) {
++ *Result = static_cast(-ESRCH);
++ return true;
++ }
++ }
++ const size_t Len = std::min(Iov->iov_len, sizeof(Image));
++ std::memcpy(Iov->iov_base, Image, Len);
++ Iov->iov_len = Len;
++ } else {
++ const size_t Slots = std::min(Iov->iov_len / sizeof(uint64_t), NumUserRegs);
++ uint64_t Mask = 0;
++ for (size_t i = 0; i < Slots; ++i) {
++ if (!WriteWord(Pid, RegOffset(i), static_cast(Iov->iov_base)[i])) {
++ *Result = static_cast(-ESRCH);
++ return true;
++ }
++ Mask |= 1ULL << i;
++ }
++ MarkDirty(Pid, Mask);
++ Iov->iov_len = NumUserRegs * sizeof(uint64_t);
++ }
++ *Result = 0;
++ return true;
++ }
++
++ if (NtType == NT_PRFPREG) {
++ Remote* R = FpState(Pid);
++ if (!R) {
++ *Result = static_cast(-ESRCH);
++ return true;
++ }
++ const size_t Len = std::min(Iov->iov_len, R->FpRegs.size());
++ if (Get) {
++ std::memcpy(Iov->iov_base, R->FpRegs.data(), Len);
++ } else {
++ std::memcpy(R->FpRegs.data(), Iov->iov_base, Len);
++ }
++ Iov->iov_len = Len;
++ *Result = 0;
++ return true;
++ }
++
++ if (NtType == NT_X86_XSTATE) {
++ Remote* R = XStateState(Pid);
++ if (!R) {
++ *Result = static_cast(-ESRCH);
++ return true;
++ }
++ const size_t Len = std::min(Iov->iov_len, R->XState.size());
++ if (Get) {
++ std::memcpy(Iov->iov_base, R->XState.data(), Len);
++ } else {
++ std::memcpy(R->XState.data(), Iov->iov_base, Len);
++ }
++ Iov->iov_len = Len;
++ *Result = 0;
++ return true;
++ }
++
++ *Result = static_cast(-EINVAL);
++ return true;
++ }
++
++ default: return false;
++ }
++}
++
++}
+diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/PtraceEmu.h b/Source/Tools/LinuxEmulation/LinuxSyscalls/PtraceEmu.h
+new file mode 100644
+index 000000000..59194979a
+--- /dev/null
++++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/PtraceEmu.h
+@@ -0,0 +1,63 @@
++// SPDX-License-Identifier: MIT
++#pragma once
++
++#include
++#include
++#include
++#include
++
++namespace FEXCore::Core {
++struct CpuStateFrame;
++}
++
++namespace FEX::HLE::PtraceEmu {
++
++constexpr unsigned NumUserRegs = 27;
++
++struct SharedState {
++ static constexpr uint64_t MagicValue = 0xFE8E5E57CAFE0001ULL;
++
++ volatile uint64_t Magic;
++ volatile uint64_t SyscallStops;
++ volatile uint64_t Attached;
++ volatile uint64_t Pending;
++ volatile uint64_t PendingIsEntry;
++ volatile uint64_t PendingNr;
++ volatile uint64_t PendingArgs[6];
++ volatile uint64_t PendingRet;
++ volatile uint64_t Regs[NumUserRegs];
++ volatile uint64_t DebugRegs[8];
++ volatile uint64_t DirtyMask;
++ volatile uint64_t SignalNumber;
++ volatile uint64_t FlushAddr;
++ volatile uint64_t FlushLen;
++ char ExePath[1024];
++};
++
++
++bool WantsSyscallStops();
++
++uint64_t SyscallEntryStop(FEXCore::Core::CpuStateFrame* Frame, uint64_t Nr, const uint64_t Args[6]);
++
++uint64_t SyscallExitStop(FEXCore::Core::CpuStateFrame* Frame, uint64_t Nr, const uint64_t Args[6], uint64_t Result);
++
++void OnForkedChild(bool SharesAddressSpace);
++
++void ApplyPendingFlush(FEXCore::Core::CpuStateFrame* Frame);
++
++uint64_t TakePendingRip();
++
++bool TryGuestSignalStop(FEXCore::Core::CpuStateFrame* Frame, int Signal);
++
++void RecordExecPath(const std::string& GuestPath);
++
++bool IsAttached();
++
++
++bool HandleRequest(int Request, pid_t Pid, void* Addr, void* Data, uint64_t* Result);
++
++bool FixupWaitStatus(pid_t Pid, int* Status);
++
++std::optional TraceeExePath(pid_t Pid);
++
++}
+diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/SMCHotPages.h b/Source/Tools/LinuxEmulation/LinuxSyscalls/SMCHotPages.h
+new file mode 100644
+index 000000000..3f36e79fd
+--- /dev/null
++++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/SMCHotPages.h
+@@ -0,0 +1,90 @@
++// SPDX-License-Identifier: MIT
++#pragma once
++
++#include
++#include
++#include
++#include
++
++namespace FEX::HLE {
++
++class SMCHotPageTracker final {
++public:
++ static constexpr uint64_t PageShift = 12;
++
++ bool RecordFault(uint64_t Address, uint32_t FaultThreshold) {
++ if (!FaultThreshold) {
++ return false;
++ }
++ const uint64_t Page = Address >> PageShift;
++ auto& Slot = Counters[Hash(Page) & (CounterSlots - 1)];
++
++ uint64_t Old = Slot.load(std::memory_order_relaxed);
++ uint64_t New;
++ do {
++ const uint64_t Count = (Old >> CountBits) == Page ? (Old & CountMask) + 1 : 1;
++ New = (Page << CountBits) | (Count < CountMask ? Count : CountMask);
++ } while (!Slot.compare_exchange_weak(Old, New, std::memory_order_relaxed));
++
++ return (New & CountMask) == FaultThreshold && MakeHot(Page);
++ }
++
++ bool MarkHot(uint64_t Address) {
++ return MakeHot(Address >> PageShift);
++ }
++
++ bool IsHot(uint64_t Address) const {
++ if (HotCount.load(std::memory_order_relaxed) == 0) {
++ return false;
++ }
++
++ const uint64_t Key = (Address >> PageShift) + 1;
++ for (size_t i = 0, Idx = Hash(Key - 1); i < HotSlots; ++i, ++Idx) {
++ const uint64_t Entry = Hot[Idx & (HotSlots - 1)].load(std::memory_order_relaxed);
++ if (Entry == Key) {
++ return true;
++ }
++ if (Entry == 0) {
++ return false;
++ }
++ }
++ return false;
++ }
++
++private:
++ static constexpr size_t CounterSlots = 4096;
++ static constexpr size_t HotSlots = 2048;
++ static constexpr unsigned CountBits = 20;
++ static constexpr uint64_t CountMask = (1ULL << CountBits) - 1;
++ static_assert((CounterSlots & (CounterSlots - 1)) == 0 && (HotSlots & (HotSlots - 1)) == 0);
++
++ static size_t Hash(uint64_t Page) {
++ return static_cast((Page * 0x9E3779B97F4A7C15ULL) >> 40);
++ }
++
++ bool MakeHot(uint64_t Page) {
++ if (HotCount.load(std::memory_order_relaxed) >= HotSlots / 4 * 3) {
++ return false;
++ }
++
++ const uint64_t Key = Page + 1;
++ for (size_t i = 0, Idx = Hash(Page); i < HotSlots; ++i, ++Idx) {
++ auto& Entry = Hot[Idx & (HotSlots - 1)];
++ uint64_t Expected = 0;
++ if (Entry.compare_exchange_strong(Expected, Key, std::memory_order_relaxed)) {
++ HotCount.fetch_add(1, std::memory_order_relaxed);
++ return true;
++ }
++ if (Expected == Key) {
++ return false;
++ }
++ }
++ return false;
++ }
++
++ std::array, CounterSlots> Counters {};
++ std::array, HotSlots> Hot {};
++ std::atomic HotCount {};
++};
++
++}
+diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/SamplingProfiler.cpp b/Source/Tools/LinuxEmulation/LinuxSyscalls/SamplingProfiler.cpp
+new file mode 100644
+index 000000000..abc3284a3
+--- /dev/null
++++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/SamplingProfiler.cpp
+@@ -0,0 +1,278 @@
++// SPDX-License-Identifier: MIT
++#include "LinuxSyscalls/SamplingProfiler.h"
++#include "LinuxSyscalls/SignalDelegator.h"
++#include "LinuxSyscalls/PtraceEmu.h"
++#include "ArchHelpers/MContext.h"
++
++#include
++#include
++#include
++#include
++
++#include
++#include
++#include
++#include
++#include
++#include
++#include
++#include
++#include
++#include
++#include
++#include
++#include