Compare commits
53 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 466788c006 | |||
| 19e2dba35a | |||
| 0634b4a278 | |||
| ee428deb1e | |||
| 07bc77c7e7 | |||
| 72973fe582 | |||
| c263b6af6f | |||
| e46576b4c3 | |||
| 89bcb73d47 | |||
| 7d81a724ef | |||
| 634686d59b | |||
| d0af14632e | |||
| c87986b276 | |||
| b600b90d53 | |||
| 2b979024cb | |||
| 5f676a6a55 | |||
| 2ab5b37137 | |||
| f6547fac8c | |||
| 9c685c1449 | |||
| aaf1a597ef | |||
| 850fc372b7 | |||
| bad9d8043b | |||
| 8e8e66f880 | |||
| fec5ac2298 | |||
| 19494bc7ac | |||
| 28a78d76fe | |||
| 6b3f8e1b62 | |||
| aacc40254c | |||
| efd26c3e4d | |||
| a8093c2a3c | |||
| 0f8b35c4cd | |||
| 866881d0e3 | |||
| a56b8d3de8 | |||
| e544cb3cf6 | |||
| ca9f2d43be | |||
| e10f55d9db | |||
| 71e035f83b | |||
| 16f2564478 | |||
| 75fda70db2 | |||
| b9e052b3a7 | |||
| 69aff83ef4 | |||
| e07e269bd7 | |||
| 08232ce642 | |||
| d536a66010 | |||
| 8907523ee4 | |||
| 9b1f6801a5 | |||
| ff03ef657a | |||
| 5acddfde16 | |||
| 913a74dbd3 | |||
| cbb92e75d3 | |||
| bd7d0e0466 | |||
| cce77b8d11 | |||
| c2f4449b1c |
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
# SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
@@ -104,8 +104,7 @@ cmake .. -G Ninja \
|
|||||||
-DYUZU_USE_QT_MULTIMEDIA=$MULTIMEDIA \
|
-DYUZU_USE_QT_MULTIMEDIA=$MULTIMEDIA \
|
||||||
-DYUZU_USE_QT_WEB_ENGINE=$WEBENGINE \
|
-DYUZU_USE_QT_WEB_ENGINE=$WEBENGINE \
|
||||||
-DYUZU_USE_FASTER_LD=ON \
|
-DYUZU_USE_FASTER_LD=ON \
|
||||||
-DYUZU_ENABLE_LTO=ON \
|
-DENABLE_LTO=ON \
|
||||||
-DDYNARMIC_ENABLE_LTO=ON \
|
|
||||||
"${EXTRA_CMAKE_FLAGS[@]}"
|
"${EXTRA_CMAKE_FLAGS[@]}"
|
||||||
|
|
||||||
ninja -j${NPROC}
|
ninja -j${NPROC}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash -ex
|
#!/bin/bash -ex
|
||||||
|
|
||||||
# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
# SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
if [ "$COMPILER" == "clang" ]
|
if [ "$COMPILER" == "clang" ]
|
||||||
@@ -32,9 +32,8 @@ cmake .. -G Ninja \
|
|||||||
-DYUZU_ROOM_STANDALONE=OFF \
|
-DYUZU_ROOM_STANDALONE=OFF \
|
||||||
-DYUZU_USE_QT_MULTIMEDIA=${USE_MULTIMEDIA:-false} \
|
-DYUZU_USE_QT_MULTIMEDIA=${USE_MULTIMEDIA:-false} \
|
||||||
-DYUZU_USE_QT_WEB_ENGINE=${USE_WEBENGINE:-false} \
|
-DYUZU_USE_QT_WEB_ENGINE=${USE_WEBENGINE:-false} \
|
||||||
-DYUZU_ENABLE_LTO=ON \
|
-DENABLE_LTO=ON \
|
||||||
-DCMAKE_EXE_LINKER_FLAGS=" /LTCG" \
|
-DCMAKE_EXE_LINKER_FLAGS=" /LTCG" \
|
||||||
-DDYNARMIC_ENABLE_LTO=ON \
|
|
||||||
-DYUZU_USE_BUNDLED_QT=${BUNDLE_QT:-false} \
|
-DYUZU_USE_BUNDLED_QT=${BUNDLE_QT:-false} \
|
||||||
-DUSE_CCACHE=${CCACHE:-false} \
|
-DUSE_CCACHE=${CCACHE:-false} \
|
||||||
-DENABLE_UPDATE_CHECKER=${DEVEL:-true} \
|
-DENABLE_UPDATE_CHECKER=${DEVEL:-true} \
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
From b3622608433c183ba868a1dc8dd9cf285eb3b916 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Dario Petrillo <dario.pk1@gmail.com>
|
||||||
|
Date: Thu, 27 Nov 2025 23:12:38 +0100
|
||||||
|
Subject: [PATCH] avoid extra memset when clearing an empty table
|
||||||
|
|
||||||
|
---
|
||||||
|
include/ankerl/unordered_dense.h | 6 ++++--
|
||||||
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/include/ankerl/unordered_dense.h b/include/ankerl/unordered_dense.h
|
||||||
|
index 0835342..4938212 100644
|
||||||
|
--- a/include/ankerl/unordered_dense.h
|
||||||
|
+++ b/include/ankerl/unordered_dense.h
|
||||||
|
@@ -1490,8 +1490,10 @@ class table : public std::conditional_t<is_map_v<T>, base_table_type_map<T>, bas
|
||||||
|
// modifiers //////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
void clear() {
|
||||||
|
- m_values.clear();
|
||||||
|
- clear_buckets();
|
||||||
|
+ if (!empty()) {
|
||||||
|
+ m_values.clear();
|
||||||
|
+ clear_buckets();
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
|
||||||
|
auto insert(value_type const& value) -> std::pair<iterator, bool> {
|
||||||
@@ -32,8 +32,8 @@ if (PLATFORM_OPENBSD)
|
|||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${CMAKE_SYSROOT}/usr/X11R6/include -D_LIBCPP_PSTL_BACKEND_SERIAL=1")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${CMAKE_SYSROOT}/usr/X11R6/include -D_LIBCPP_PSTL_BACKEND_SERIAL=1")
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L${CMAKE_SYSROOT}/usr/X11R6/lib")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L${CMAKE_SYSROOT}/usr/X11R6/lib")
|
||||||
elseif (PLATFORM_NETBSD)
|
elseif (PLATFORM_NETBSD)
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I${CMAKE_SYSROOT}/usr/X11R7/include")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I${CMAKE_SYSROOT}/usr/X11R7/include -I${CMAKE_SYSROOT}/usr/pkg/include/c++/v1")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${CMAKE_SYSROOT}/usr/X11R7/include")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${CMAKE_SYSROOT}/usr/X11R7/include -I${CMAKE_SYSROOT}/usr/pkg/include/c++/v1")
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L${CMAKE_SYSROOT}/usr/X11R7/lib")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L${CMAKE_SYSROOT}/usr/X11R7/lib")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@@ -246,11 +246,12 @@ cmake_dependent_option(YUZU_USE_BUNDLED_MOLTENVK "Download bundled MoltenVK lib"
|
|||||||
option(YUZU_DISABLE_LLVM "Disable LLVM (useful for CI)" OFF)
|
option(YUZU_DISABLE_LLVM "Disable LLVM (useful for CI)" OFF)
|
||||||
|
|
||||||
set(DEFAULT_ENABLE_OPENSSL ON)
|
set(DEFAULT_ENABLE_OPENSSL ON)
|
||||||
if (ANDROID OR WIN32 OR APPLE OR PLATFORM_SUN)
|
if (ANDROID OR WIN32 OR APPLE OR PLATFORM_SUN OR PLATFORM_OPENBSD)
|
||||||
# - Windows defaults to the Schannel backend.
|
# - Windows defaults to the Schannel backend.
|
||||||
# - macOS defaults to the SecureTransport backend.
|
# - macOS defaults to the SecureTransport backend.
|
||||||
# - Android currently has no SSL backend as the NDK doesn't include any SSL
|
# - Android currently has no SSL backend as the NDK doesn't include any SSL
|
||||||
# library; a proper 'native' backend would have to go through Java.
|
# library; a proper 'native' backend would have to go through Java.
|
||||||
|
# - Solaris and OpenBSD have too old backends
|
||||||
# But you can force builds for those platforms to use OpenSSL if you have
|
# But you can force builds for those platforms to use OpenSSL if you have
|
||||||
# your own copy of it.
|
# your own copy of it.
|
||||||
set(DEFAULT_ENABLE_OPENSSL OFF)
|
set(DEFAULT_ENABLE_OPENSSL OFF)
|
||||||
@@ -263,7 +264,7 @@ endif()
|
|||||||
option(ENABLE_OPENSSL "Enable OpenSSL backend for ISslConnection" ${DEFAULT_ENABLE_OPENSSL})
|
option(ENABLE_OPENSSL "Enable OpenSSL backend for ISslConnection" ${DEFAULT_ENABLE_OPENSSL})
|
||||||
|
|
||||||
set(DEFAULT_YUZU_USE_BUNDLED_OPENSSL OFF)
|
set(DEFAULT_YUZU_USE_BUNDLED_OPENSSL OFF)
|
||||||
if (EXT_DEFAULT OR PLATFORM_SUN)
|
if (EXT_DEFAULT OR PLATFORM_SUN OR PLATFORM_OPENBSD)
|
||||||
set(DEFAULT_YUZU_USE_BUNDLED_OPENSSL ON)
|
set(DEFAULT_YUZU_USE_BUNDLED_OPENSSL ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@@ -575,6 +576,7 @@ add_subdirectory(externals)
|
|||||||
# pass targets from externals
|
# pass targets from externals
|
||||||
find_package(enet)
|
find_package(enet)
|
||||||
find_package(MbedTLS)
|
find_package(MbedTLS)
|
||||||
|
find_package(unordered_dense REQUIRED)
|
||||||
|
|
||||||
if (ARCHITECTURE_x86 OR ARCHITECTURE_x86_64)
|
if (ARCHITECTURE_x86 OR ARCHITECTURE_x86_64)
|
||||||
find_package(xbyak)
|
find_package(xbyak)
|
||||||
|
|||||||
@@ -84,7 +84,11 @@ function(SystemPackageViable JSON_NAME)
|
|||||||
parse_object(${object})
|
parse_object(${object})
|
||||||
|
|
||||||
string(REPLACE " " ";" find_args "${find_args}")
|
string(REPLACE " " ";" find_args "${find_args}")
|
||||||
find_package(${package} ${version} ${find_args} QUIET NO_POLICY_SCOPE)
|
if (${package}_FORCE_BUNDLED)
|
||||||
|
set(${package}_FOUND OFF)
|
||||||
|
else()
|
||||||
|
find_package(${package} ${version} ${find_args} QUIET NO_POLICY_SCOPE)
|
||||||
|
endif()
|
||||||
|
|
||||||
set(${pkg}_VIABLE ${${package}_FOUND} PARENT_SCOPE)
|
set(${pkg}_VIABLE ${${package}_FOUND} PARENT_SCOPE)
|
||||||
set(${pkg}_PACKAGE ${package} PARENT_SCOPE)
|
set(${pkg}_PACKAGE ${package} PARENT_SCOPE)
|
||||||
|
|||||||
@@ -6,225 +6,206 @@
|
|||||||
viewBox="0 0 512 512"
|
viewBox="0 0 512 512"
|
||||||
version="1.1"
|
version="1.1"
|
||||||
id="svg7"
|
id="svg7"
|
||||||
sodipodi:docname="base.svg.2026_01_12_14_43_47.0.svg"
|
sodipodi:docname="EdenLogoLoveWhiteV3.svg"
|
||||||
inkscape:version="1.4.2 (ebf0e94, 2025-05-08)"
|
inkscape:version="1.4.3 (0d15f75, 2025-12-25)"
|
||||||
inkscape:export-filename="base.svg.2026_01_12_14_43_47.0.svg"
|
xml:space="preserve"
|
||||||
|
inkscape:export-filename="dev.eden_emu.eden.png"
|
||||||
inkscape:export-xdpi="96"
|
inkscape:export-xdpi="96"
|
||||||
inkscape:export-ydpi="96"
|
inkscape:export-ydpi="96"
|
||||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
xmlns:svg="http://www.w3.org/2000/svg">
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
|
<metadata
|
||||||
|
id="metadata1">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
|
||||||
|
<dc:creator>
|
||||||
|
<cc:Agent>
|
||||||
|
<dc:title>Madeline_Dev</dc:title>
|
||||||
|
<dc:identifier>mailto:madelvidel@gmail.com</dc:identifier>
|
||||||
|
</cc:Agent>
|
||||||
|
</dc:creator>
|
||||||
|
<dc:date>2025</dc:date>
|
||||||
|
<dc:license
|
||||||
|
rdf:resource="https://www.gnu.org/licenses/gpl-3.0.html" />
|
||||||
|
<dc:rights>2025 Eden Emulator Project</dc:rights>
|
||||||
|
<dc:source>https://git.eden-emu.dev</dc:source>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
<defs
|
<defs
|
||||||
id="defs7">
|
id="defs7"><linearGradient
|
||||||
<linearGradient
|
id="swatch14"
|
||||||
id="linearGradient1"
|
inkscape:swatch="solid"><stop
|
||||||
inkscape:collect="always">
|
style="stop-color:#66003b;stop-opacity:1;"
|
||||||
<stop
|
offset="0"
|
||||||
style="stop-color:#ff2e88;stop-opacity:0.5;"
|
id="stop14" /></linearGradient><linearGradient
|
||||||
offset="0"
|
id="linearGradient1"
|
||||||
id="stop3" />
|
inkscape:collect="always"><stop
|
||||||
<stop
|
style="stop-color:#ffffff;stop-opacity:0.50980395;"
|
||||||
style="stop-color:#bf42f6;stop-opacity:0.5;"
|
offset="0"
|
||||||
offset="0.44631511"
|
id="stop1" /><stop
|
||||||
id="stop4" />
|
style="stop-color:#000000;stop-opacity:0;"
|
||||||
<stop
|
offset="1"
|
||||||
style="stop-color:#5da5ed;stop-opacity:0.5;"
|
id="stop2" /></linearGradient><linearGradient
|
||||||
offset="0.90088946"
|
id="linearGradient11"
|
||||||
id="stop2" />
|
inkscape:collect="always"><stop
|
||||||
</linearGradient>
|
style="stop-color:#9523a7;stop-opacity:0.50980395;"
|
||||||
<linearGradient
|
offset="0"
|
||||||
id="linearGradient138"
|
id="stop11" /><stop
|
||||||
inkscape:collect="always">
|
style="stop-color:#ffabad;stop-opacity:1;"
|
||||||
<stop
|
offset="0.99898213"
|
||||||
style="stop-color:#ff2e88;stop-opacity:1;"
|
id="stop20" /><stop
|
||||||
offset="0"
|
style="stop-color:#ffffff;stop-opacity:0;"
|
||||||
id="stop152" />
|
offset="0.99898213"
|
||||||
<stop
|
id="stop12" /></linearGradient><linearGradient
|
||||||
style="stop-color:#bf42f6;stop-opacity:1;"
|
inkscape:collect="always"
|
||||||
offset="0.44971901"
|
xlink:href="#linearGradient11"
|
||||||
id="stop137" />
|
id="linearGradient12"
|
||||||
<stop
|
x1="109.74531"
|
||||||
style="stop-color:#5da5ed;stop-opacity:1;"
|
y1="106.54533"
|
||||||
offset="0.89793283"
|
x2="431.05463"
|
||||||
id="stop138" />
|
y2="427.85461"
|
||||||
</linearGradient>
|
gradientUnits="userSpaceOnUse"
|
||||||
<linearGradient
|
spreadMethod="reflect"
|
||||||
id="swatch37"
|
gradientTransform="matrix(1.0945321,0,0,1.0945321,-39.661525,-35.159057)" /><linearGradient
|
||||||
inkscape:swatch="solid">
|
inkscape:collect="always"
|
||||||
<stop
|
xlink:href="#linearGradient1"
|
||||||
style="stop-color:#ffffff;stop-opacity:1;"
|
id="linearGradient2"
|
||||||
offset="0"
|
x1="125.40197"
|
||||||
id="stop37" />
|
y1="271.834"
|
||||||
</linearGradient>
|
x2="431.02424"
|
||||||
<linearGradient
|
y2="271.834"
|
||||||
id="swatch28"
|
gradientUnits="userSpaceOnUse"
|
||||||
inkscape:swatch="solid">
|
gradientTransform="matrix(1.0964243,0,0,1.0253208,-40.187969,-20.060025)" /><filter
|
||||||
<stop
|
inkscape:label="Light Contour"
|
||||||
style="stop-color:#252525;stop-opacity:1;"
|
inkscape:menu="Image Paint and Draw"
|
||||||
offset="0"
|
inkscape:menu-tooltip="Uses vertical specular light to draw lines"
|
||||||
id="stop28" />
|
style="color-interpolation-filters:sRGB"
|
||||||
</linearGradient>
|
id="filter11"
|
||||||
<linearGradient
|
x="-0.01907517"
|
||||||
id="swatch27"
|
y="-0.054959154"
|
||||||
inkscape:swatch="solid">
|
width="1.0379885"
|
||||||
<stop
|
height="1.1092314"><feGaussianBlur
|
||||||
style="stop-color:#000000;stop-opacity:1;"
|
in="SourceGraphic"
|
||||||
offset="0"
|
stdDeviation="0.38250006"
|
||||||
id="stop27" />
|
result="result3"
|
||||||
</linearGradient>
|
id="feGaussianBlur9" /><feComponentTransfer
|
||||||
<linearGradient
|
result="result1"
|
||||||
id="swatch15"
|
in="result3"
|
||||||
inkscape:swatch="solid">
|
id="feComponentTransfer9"><feFuncR
|
||||||
<stop
|
type="discrete"
|
||||||
style="stop-color:#ffffff;stop-opacity:1;"
|
tableValues="0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1"
|
||||||
offset="0"
|
id="feFuncR9" /><feFuncG
|
||||||
id="stop16" />
|
type="discrete"
|
||||||
</linearGradient>
|
tableValues="0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1"
|
||||||
<linearGradient
|
id="feFuncG9" /><feFuncB
|
||||||
id="linearGradient14"
|
type="discrete"
|
||||||
inkscape:swatch="gradient">
|
tableValues="0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1"
|
||||||
<stop
|
id="feFuncB9" /></feComponentTransfer><feGaussianBlur
|
||||||
style="stop-color:#ffffff;stop-opacity:1;"
|
result="result5"
|
||||||
offset="0"
|
stdDeviation="0.01"
|
||||||
id="stop14" />
|
id="feGaussianBlur10" /><feBlend
|
||||||
<stop
|
in2="result5"
|
||||||
style="stop-color:#ffffff;stop-opacity:0;"
|
result="result6"
|
||||||
offset="1"
|
mode="lighten"
|
||||||
id="stop15" />
|
in="result5"
|
||||||
</linearGradient>
|
id="feBlend10" /><feColorMatrix
|
||||||
<linearGradient
|
in="result6"
|
||||||
id="swatch9"
|
type="luminanceToAlpha"
|
||||||
inkscape:swatch="solid">
|
result="result2"
|
||||||
<stop
|
id="feColorMatrix10" /><feSpecularLighting
|
||||||
style="stop-color:#ffffff;stop-opacity:1;"
|
surfaceScale="5"
|
||||||
offset="0"
|
result="result9"
|
||||||
id="stop10" />
|
specularExponent="20"
|
||||||
</linearGradient>
|
in="result2"
|
||||||
<linearGradient
|
specularConstant="1"
|
||||||
id="swatch8"
|
id="feSpecularLighting10"><feDistantLight
|
||||||
inkscape:swatch="solid">
|
azimuth="180"
|
||||||
<stop
|
elevation="90"
|
||||||
style="stop-color:#ffffff;stop-opacity:1;"
|
id="feDistantLight10" /></feSpecularLighting><feComposite
|
||||||
offset="0"
|
in2="result6"
|
||||||
id="stop9" />
|
operator="arithmetic"
|
||||||
</linearGradient>
|
in="result9"
|
||||||
<rect
|
k1="0.4"
|
||||||
x="22.627417"
|
k3="0.7"
|
||||||
y="402.76802"
|
result="result3"
|
||||||
width="521.34025"
|
id="feComposite10"
|
||||||
height="248.94868"
|
k2="0"
|
||||||
id="rect24" />
|
k4="0" /><feBlend
|
||||||
<linearGradient
|
in2="result1"
|
||||||
id="linearGradient11"
|
in="result3"
|
||||||
inkscape:collect="always">
|
mode="normal"
|
||||||
<stop
|
result="result8"
|
||||||
style="stop-color:#ff2e88;stop-opacity:1;"
|
id="feBlend11" /><feComposite
|
||||||
offset="0"
|
in2="SourceGraphic"
|
||||||
id="stop11" />
|
in="result8"
|
||||||
<stop
|
operator="in"
|
||||||
style="stop-color:#bf42f6;stop-opacity:1;"
|
result="result7"
|
||||||
offset="0.44971901"
|
id="feComposite11" /></filter></defs><sodipodi:namedview
|
||||||
id="stop154" />
|
id="namedview7"
|
||||||
<stop
|
pagecolor="#ffffff"
|
||||||
style="stop-color:#5da5ed;stop-opacity:1;"
|
bordercolor="#000000"
|
||||||
offset="0.89793283"
|
borderopacity="0.25"
|
||||||
id="stop12" />
|
inkscape:showpageshadow="2"
|
||||||
</linearGradient>
|
inkscape:pageopacity="0.0"
|
||||||
<linearGradient
|
inkscape:pagecheckerboard="0"
|
||||||
inkscape:collect="always"
|
inkscape:deskcolor="#d1d1d1"
|
||||||
xlink:href="#linearGradient138"
|
inkscape:zoom="1.35"
|
||||||
id="linearGradient6"
|
inkscape:cx="254.81481"
|
||||||
gradientUnits="userSpaceOnUse"
|
inkscape:cy="260.37037"
|
||||||
gradientTransform="matrix(1.118028,0,0,1.116699,-46.314723,-42.388667)"
|
inkscape:window-width="1920"
|
||||||
x1="270.39996"
|
inkscape:window-height="1001"
|
||||||
y1="40.000019"
|
inkscape:window-x="-9"
|
||||||
x2="270.39996"
|
inkscape:window-y="-9"
|
||||||
y2="494.39996"
|
inkscape:window-maximized="1"
|
||||||
spreadMethod="pad" />
|
inkscape:current-layer="svg7"
|
||||||
<clipPath
|
showguides="false" /><circle
|
||||||
clipPathUnits="userSpaceOnUse"
|
style="fill:url(#linearGradient12);fill-opacity:1;stroke:#e4e4e4;stroke-width:14.0448;stroke-opacity:1;paint-order:stroke fill markers"
|
||||||
id="clipPath18">
|
id="path8"
|
||||||
<circle
|
cx="256.2999"
|
||||||
style="opacity:1;mix-blend-mode:normal;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:10.8382;stroke-opacity:0.566238;paint-order:stroke fill markers"
|
cy="257.2999"
|
||||||
id="circle18"
|
r="248.67769" /><path
|
||||||
cx="-246.8315"
|
id="path15"
|
||||||
cy="246.8338"
|
style="fill:url(#linearGradient2);fill-opacity:1;stroke:#ffffff;stroke-width:16.9642;stroke-linejoin:round;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.52156866;paint-order:stroke fill markers"
|
||||||
inkscape:label="Circle"
|
d="m 306.72111,24.233031 c 0,0 -11.98397,40.08696 -18.0546,60.431848 -12.96613,9.503601 -21.49377,18.397701 -21.49377,18.397701 0,0 -23.41313,-31.029398 -45.74145,-43.934598 -22.32833,-12.905201 -52.42065,-11.242483 -52.42065,-11.242483 0,0 -12.50052,4e-4 -27.63117,5.537132 -15.13066,5.536732 -21.27107,9.227888 -21.27107,9.227888 0,0 15.35165,-0.410529 37.93799,6.766716 22.58635,7.177243 32.45374,11.484796 32.45374,11.484796 l 31.02752,-6.562453 -8.44161,11.074275 c 0,0 14.80259,8.920284 22.80648,16.917787 8.0039,7.9975 11.73088,12.50812 11.73088,12.50812 0,0 -13.92373,-5.43341 -56.68427,-1.74226 -42.76055,3.69116 -84.86368,56.39265 -84.86368,56.39265 0,0 41.22428,-15.9958 65.5649,-21.32747 24.34062,-5.33166 47.58524,-7.9983 47.58524,-7.9983 0,0 -18.41865,7.3827 -38.15428,38.3474 -19.73564,30.96468 -14.0351,80.18128 -14.0351,80.18128 0,0 31.35774,-59.05848 61.39977,-78.94969 30.04203,-19.89124 36.182,-20.50642 36.182,-20.50642 0,0 -24.1209,48.39514 -33.55015,126.11445 -9.42924,77.71931 30.26089,207.72959 30.26089,207.72959 l 47.80367,-6.97298 c 0,0 -45.61041,-42.24281 -49.55753,-151.33695 -3.94713,-109.09413 16.66479,-174.30453 16.66479,-174.30453 0,0 17.10508,1.23039 42.54213,32.81027 25.43704,31.57987 40.34713,57.41795 40.34713,57.41795 0,0 9.65024,-51.26683 -11.4011,-74.64415 -21.05135,-23.3773 -53.50637,-33.62931 -53.50637,-33.62931 0,0 13.70573,-6.66419 42.10313,-4.71609 28.39738,1.94813 87.30278,27.12897 87.30278,27.12896 0,0 -15.8158,-25.5214 -52.87463,-43.21167 -37.05881,-17.69028 -81.35597,0.29238 -81.35597,0.29238 0,0 4.13589,-15.37277 29.10021,-32.628037 24.96432,-17.25527 56.907,-34.36427 56.907,-34.36427 0,0 -26.3595,1.160335 -55.20025,12.035504 -7.176,2.7059 -14.064,6.299542 -20.36309,10.173104 l 17.40574,-51.051762 z" /><path
|
||||||
r="191.89999" />
|
id="path4-2-6"
|
||||||
</clipPath>
|
style="fill:#ffffff;fill-opacity:0.509804;stroke:#ffffff;stroke-width:8.49614;stroke-dasharray:none;stroke-opacity:0.521569"
|
||||||
<clipPath
|
d="m 105.64857,363.95957 a 27.851731,25.309928 0 0 0 -7.115581,35.20471 27.851731,25.309928 0 0 0 5.656921,5.48617 c 7.16052,5.83605 21.58543,14.65841 45.88391,17.847 37.57172,4.93039 41.7105,10.38005 41.71122,10.381 -4.5e-4,-6e-4 -4.13529,-5.45309 4.14459,-39.11953 5.35491,-21.77281 1.40624,-37.16078 -2.05217,-45.31698 a 27.851731,25.309928 0 0 0 -3.63281,-6.75471 27.851731,25.309928 0 0 0 -38.74027,-6.4662 27.851731,25.309928 0 0 0 -7.11556,35.20472 27.851731,25.309928 0 0 0 -38.74025,-6.46618 z" /><path
|
||||||
clipPathUnits="userSpaceOnUse"
|
id="path4-2-6-1"
|
||||||
id="clipPath22">
|
style="fill:#ffffff;fill-opacity:0.50980395;stroke:#ffffff;stroke-width:6.89965;stroke-dasharray:none;stroke-opacity:0.519962"
|
||||||
<circle
|
d="m 351.29524,378.32915 a 20.862787,22.283365 87.929759 0 0 -28.94663,11.7882 20.862787,22.283365 87.929759 0 0 -1.50914,6.04125 c -1.09835,7.13663 -1.16134,20.16231 7.28339,36.72931 13.0577,25.61689 10.90177,30.69793 10.90138,30.69882 2.4e-4,-5.6e-4 2.16,-5.08045 30.49632,-15.43688 18.32576,-6.69765 27.84648,-16.23659 32.287,-22.14109 a 20.862787,22.283365 87.929759 0 0 3.33646,-5.36755 20.862787,22.283365 87.929759 0 0 -12.45108,-27.05014 20.862787,22.283365 87.929759 0 0 -28.94664,11.78822 20.862787,22.283365 87.929759 0 0 -12.45106,-27.05014 z" /><path
|
||||||
style="opacity:1;mix-blend-mode:normal;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:10.8382;stroke-opacity:0.566238;paint-order:stroke fill markers"
|
id="path4-2-6-1-5"
|
||||||
id="circle22"
|
style="fill:#ffffff;fill-opacity:0.50980395;stroke:#ffffff;stroke-width:6.89965;stroke-dasharray:none;stroke-opacity:0.52156866"
|
||||||
cx="256"
|
d="m 83.024352,249.4105 a 22.283365,20.862787 0 0 0 -29.353581,10.73482 22.283365,20.862787 0 0 0 -1.72639,5.98278 c -1.35544,7.0923 -1.88894,20.10721 5.951801,36.96846 12.12378,26.07187 9.7857,31.07171 9.78528,31.07259 2.6e-4,-5.5e-4 2.34212,-4.99911 31.03406,-14.32513 18.555748,-6.03127 28.414858,-15.22005 33.065768,-20.96029 a 22.283365,20.862787 0 0 0 3.52818,-5.24352 22.283365,20.862787 0 0 0 -11.46577,-27.48227 22.283365,20.862787 0 0 0 -29.353588,10.73483 22.283365,20.862787 0 0 0 -11.46576,-27.48227 z" /><path
|
||||||
cy="256"
|
id="path4-2-6-1-9"
|
||||||
inkscape:label="Circle"
|
style="fill:#ffffff;fill-opacity:0.50980395;stroke:#ffffff;stroke-width:5.01078;stroke-dasharray:none;stroke-opacity:0.519962"
|
||||||
r="191.89999" />
|
d="m 320.97602,291.36362 a 16.625347,14.748181 0 0 0 -21.90036,7.58859 16.625347,14.748181 0 0 0 -1.28804,4.2293 c -1.01128,5.01364 -1.40932,14.21406 4.44057,26.1335 9.0454,18.43055 7.30098,21.965 7.30067,21.96562 2e-4,-3.9e-4 1.74743,-3.53394 23.15415,-10.12663 13.84423,-4.26358 21.19999,-10.75925 24.66998,-14.8171 a 16.625347,14.748181 0 0 0 2.63233,-3.70671 16.625347,14.748181 0 0 0 -8.55447,-19.42758 16.625347,14.748181 0 0 0 -21.90037,7.58859 16.625347,14.748181 0 0 0 -8.55446,-19.42758 z" /><path
|
||||||
</clipPath>
|
id="path4-2-6-1-9-8"
|
||||||
<linearGradient
|
style="fill:#ffffff;fill-opacity:0.50980395;stroke:#ffffff;stroke-width:4.22313;stroke-dasharray:none;stroke-opacity:0.519962"
|
||||||
inkscape:collect="always"
|
d="m 416.90426,193.13811 a 12.322476,14.134158 82.30909 0 0 -17.56469,8.83612 12.322476,14.134158 82.30909 0 0 -0.59553,3.65007 c -0.27175,4.26676 0.45709,11.92642 6.76182,21.10665 9.74867,14.19503 8.68847,17.32338 8.68827,17.3239 1.2e-4,-3.3e-4 1.06282,-3.12827 18.32699,-11.08266 11.16516,-5.14424 16.60821,-11.37802 19.06101,-15.14093 a 12.322476,14.134158 82.30909 0 0 1.788,-3.37453 12.322476,14.134158 82.30909 0 0 -9.45059,-15.07737 12.322476,14.134158 82.30909 0 0 -17.5647,8.83612 12.322476,14.134158 82.30909 0 0 -9.45058,-15.07737 z" /><path
|
||||||
xlink:href="#linearGradient11"
|
id="path4-2-6-1-9-8-4"
|
||||||
id="linearGradient27"
|
style="fill:#ffffff;fill-opacity:0.50980395;stroke:#ffffff;stroke-width:3.48342;stroke-dasharray:none;stroke-opacity:0.519962"
|
||||||
gradientUnits="userSpaceOnUse"
|
d="m 96.169666,99.754795 a 10.296362,11.508677 62.365085 0 0 -7.330189,13.841365 10.296362,11.508677 62.365085 0 0 1.473186,2.6805 c 2.008889,2.93989 6.437543,7.66269 15.415927,10.84633 13.88288,4.92276 14.77391,7.47086 14.77407,7.4713 -1e-4,-2.8e-4 -0.88925,-2.54921 6.69094,-15.67164 4.90232,-8.48655 5.37758,-15.08279 5.10162,-18.6847 a 10.296362,11.508677 62.365085 0 0 -0.5257,-3.042454 10.296362,11.508677 62.365085 0 0 -14.1348,-5.641051 10.296362,11.508677 62.365085 0 0 -7.33021,13.841385 10.296362,11.508677 62.365085 0 0 -14.134844,-5.641035 z" /><path
|
||||||
gradientTransform="translate(-6.9401139e-5,-2.8678628)"
|
id="path4-2-6-1-9-8-4-9-2"
|
||||||
x1="256.00012"
|
style="fill:#ffffff;fill-opacity:0.5117;stroke:#ffffff;stroke-width:3.05139;stroke-dasharray:none;stroke-opacity:0.519962"
|
||||||
y1="102.94693"
|
d="m 296.64657,233.26347 a 8.8114666,10.319195 80.445391 0 0 -11.58972,8.06989 8.8114666,10.319195 80.445391 0 0 0.0366,2.62543 c 0.35019,3.02392 1.86017,8.32306 7.60386,14.09672 8.8812,8.92759 8.51432,11.23624 8.51426,11.23663 5e-5,-2.5e-4 0.36876,-2.30885 11.85385,-9.72788 7.4277,-4.79799 10.57103,-9.75243 11.86523,-12.65455 a 8.8114666,10.319195 80.445391 0 0 0.86244,-2.55882 8.8114666,10.319195 80.445391 0 0 -8.77837,-9.57865 8.8114666,10.319195 80.445391 0 0 -11.58975,8.06989 8.8114666,10.319195 80.445391 0 0 -8.77842,-9.57866 z" /><path
|
||||||
x2="256.00012"
|
id="path4-2-6-1-9-8-4-9-2-6"
|
||||||
y2="409.05307" />
|
style="fill:#ffffff;fill-opacity:0.5117;stroke:#ffffff;stroke-width:2.49738;stroke-dasharray:none;stroke-opacity:0.519962"
|
||||||
<clipPath
|
d="m 403.95446,91.44744 a 7.0950375,8.5844443 82.142743 0 0 -9.64888,6.492875 7.0950375,8.5844443 82.142743 0 0 0.0305,2.112375 c 0.29155,2.43298 1.54866,6.69657 6.33049,11.34195 7.39392,7.18298 7.08848,9.04046 7.08843,9.04078 4e-5,-2.1e-4 0.307,-1.85765 9.86876,-7.82686 6.18383,-3.86038 8.80077,-7.84663 9.87824,-10.18161 a 7.0950375,8.5844443 82.142743 0 0 0.718,-2.05879 7.0950375,8.5844443 82.142743 0 0 -7.30831,-7.706798 7.0950375,8.5844443 82.142743 0 0 -9.64889,6.492875 7.0950375,8.5844443 82.142743 0 0 -7.30834,-7.706797 z" /><path
|
||||||
clipPathUnits="userSpaceOnUse"
|
id="path4-2-6-1-9-8-4-9-5"
|
||||||
id="clipPath128">
|
style="fill:#ffffff;fill-opacity:0.5117;stroke:#ffffff;stroke-width:7.54176;stroke-dasharray:none;stroke-opacity:0.521569"
|
||||||
<circle
|
d="m 410.46352,265.86621 a 24.802737,22.39469 2.0523303 0 0 -30.17074,15.95063 24.802737,22.39469 2.0523303 0 0 -0.74427,6.61415 c -0.12337,7.7333 1.79614,21.62064 13.65297,38.28529 18.33368,25.76802 16.72835,31.4347 16.72811,31.43572 1.4e-4,-6.3e-4 1.60998,-5.66652 31.32518,-20.02007 19.21759,-9.28266 28.27643,-20.56192 32.27921,-27.37361 a 24.802737,22.39469 2.0523303 0 0 2.8654,-6.11021 24.802737,22.39469 2.0523303 0 0 -17.88248,-27.36631 24.802737,22.39469 2.0523303 0 0 -30.17081,15.95066 24.802737,22.39469 2.0523303 0 0 -17.88257,-27.36625 z" /><path
|
||||||
style="fill:none;fill-opacity:1;stroke:#03ffff;stroke-width:0;stroke-dasharray:none;stroke-opacity:1"
|
id="path4-2-6-1-9-8-5"
|
||||||
id="circle128"
|
style="fill:#ffffff;fill-opacity:0.50980395;stroke:#ffffff;stroke-width:3.6405;stroke-dasharray:none;stroke-opacity:0.519962"
|
||||||
cx="256"
|
d="m 114.43099,189.33754 a 10.333135,12.525309 79.004057 0 0 -14.00848,9.75499 10.333135,12.525309 79.004057 0 0 0.0547,3.08382 c 0.43602,3.54457 2.28588,9.73496 9.26636,16.38295 10.79359,10.27954 10.35819,13.00063 10.3581,13.00111 6e-5,-3e-4 0.4377,-2.72141 14.32197,-11.70923 8.9793,-5.8126 12.76786,-11.70785 14.32433,-15.14812 a 10.333135,12.525309 79.004057 0 0 1.03481,-3.02677 10.333135,12.525309 79.004057 0 0 -10.67161,-11.04688 10.333135,12.525309 79.004057 0 0 -14.00848,9.75501 10.333135,12.525309 79.004057 0 0 -10.6716,-11.04688 z" /><path
|
||||||
cy="256"
|
id="path4-2-6-1-9-8-4-9-2-2"
|
||||||
r="192" />
|
style="fill:#ffffff;fill-opacity:0.5117;stroke:#ffffff;stroke-width:3.62674;stroke-dasharray:none;stroke-opacity:0.519962"
|
||||||
</clipPath>
|
d="m 178.56055,273.32338 a 10.656883,12.053184 66.089768 0 0 -7.97821,14.16205 10.656883,12.053184 66.089768 0 0 1.49012,2.79504 c 2.04675,3.07265 6.5954,8.03049 15.94965,11.48124 14.46412,5.33577 15.34612,7.98353 15.34628,7.98398 -8e-5,-2.8e-4 -0.88012,-2.64887 7.3455,-16.0639 5.31973,-8.67576 5.95524,-15.47956 5.74045,-19.20452 a 10.656883,12.053184 66.089768 0 0 -0.48843,-3.15169 10.656883,12.053184 66.089768 0 0 -14.7135,-6.08217 10.656883,12.053184 66.089768 0 0 -7.97826,14.1621 10.656883,12.053184 66.089768 0 0 -14.71355,-6.08215 z" /></svg>
|
||||||
<linearGradient
|
|
||||||
inkscape:collect="always"
|
|
||||||
xlink:href="#linearGradient1"
|
|
||||||
id="linearGradient2"
|
|
||||||
x1="256"
|
|
||||||
y1="64"
|
|
||||||
x2="256"
|
|
||||||
y2="448"
|
|
||||||
gradientUnits="userSpaceOnUse"
|
|
||||||
gradientTransform="matrix(1.3229974,0,0,1.3214002,-82.687336,-82.290326)" />
|
|
||||||
</defs>
|
|
||||||
<sodipodi:namedview
|
|
||||||
id="namedview7"
|
|
||||||
pagecolor="#ffffff"
|
|
||||||
bordercolor="#000000"
|
|
||||||
borderopacity="0.25"
|
|
||||||
inkscape:showpageshadow="2"
|
|
||||||
inkscape:pageopacity="0.0"
|
|
||||||
inkscape:pagecheckerboard="0"
|
|
||||||
inkscape:deskcolor="#d1d1d1"
|
|
||||||
inkscape:zoom="1.4142136"
|
|
||||||
inkscape:cx="261.62951"
|
|
||||||
inkscape:cy="230.87036"
|
|
||||||
inkscape:window-width="1920"
|
|
||||||
inkscape:window-height="1008"
|
|
||||||
inkscape:window-x="1080"
|
|
||||||
inkscape:window-y="351"
|
|
||||||
inkscape:window-maximized="1"
|
|
||||||
inkscape:current-layer="svg7" />
|
|
||||||
<path
|
|
||||||
id="path8-7"
|
|
||||||
style="display:inline;mix-blend-mode:multiply;fill:url(#linearGradient6);fill-opacity:1;fill-rule:nonzero;stroke:url(#linearGradient2);stroke-width:3.9666;stroke-dasharray:none;stroke-opacity:0.566238;paint-order:stroke fill markers"
|
|
||||||
inkscape:label="Circle"
|
|
||||||
d="M 256,2.2792898 A 254.0155,253.71401 0 0 0 150.68475,25.115202 c 19.54414,1.070775 38.74692,5.250294 51.56848,11.647658 14.14361,7.056691 28.63804,19.185961 39.4212,29.347551 h 40.60981 c 1.03847,-0.68139 2.10297,-1.36938 3.1938,-2.05957 5.45602,-15.78533 14.79164,-43.183497 19.49612,-57.0097682 A 254.0155,253.71401 0 0 0 256,2.2792898 Z m 61.57106,7.567234 -18.26098,46.1544672 c 7.79702,-4.13918 16.35655,-7.87447 25.20671,-10.87081 23.1229,-7.828433 43.96931,-10.170904 54.94058,-10.868226 A 254.0155,253.71401 0 0 0 317.57106,9.8465238 Z m 65.39277,26.4001532 c -9.68256,4.806644 -33.05532,16.642034 -55.68217,29.863734 H 424.4677 A 254.0155,253.71401 0 0 0 382.96383,36.246677 Z M 113.90698,45.690231 A 254.0155,253.71401 0 0 0 87.532302,66.110411 H 194.2739 c -1.47402,-0.80231 -2.35141,-1.25949 -2.35141,-1.25949 l 10.4496,-11.83348 -38.40568,7.01234 c 0,1e-5 -12.21537,-4.60266 -40.17313,-12.27223 -3.45336,-0.94731 -6.75329,-1.61824 -9.8863,-2.06732 z m -36.803618,30.18635 a 254.0155,253.71401 0 0 0 -34.88372,43.090929 h 59.976738 c 18.11461,-12.04145 40.14252,-22.882149 62.31266,-24.534159 52.93006,-3.9444 70.16538,1.86342 70.16538,1.86342 0,0 -4.612,-4.8206 -14.51938,-13.36656 -2.72366,-2.34942 -6.0844,-4.77373 -9.52455,-7.05363 z m 174.472868,0 c 4.57322,4.7186 7.29716,7.83565 7.29716,7.83565 0,0 3.53501,-3.18484 9.62532,-7.83565 z m 60.27649,0 c -21.56573,15.45339 -25.4703,27.979669 -25.4703,27.979669 0,0 54.83326,-19.215729 100.70543,-0.31228 11.63986,4.79661 21.58481,10.13159 29.94832,15.42354 h 52.74419 A 254.0155,253.71401 0 0 0 434.89664,75.876581 Z M 36.250648,128.73367 A 254.0155,253.71401 0 0 0 16.372095,171.82459 H 147.45478 c 1.45695,-2.5815 3.06539,-5.08648 4.83979,-7.48982 14.23694,-19.28301 27.92088,-30.0088 36.86047,-35.6011 h -30.25323 c -5.87346,0.93472 -12.04945,1.99094 -18.28166,3.16937 -30.12936,5.69727 -81.157618,22.78945 -81.157618,22.78945 0,0 11.47125,-12.39249 29.11369,-25.95882 z m 265.630492,0 c 33.48676,11.2434 52.42799,26.78443 62.7752,43.09092 h 130.97157 a 254.0155,253.71401 0 0 0 -19.87856,-43.09092 h -44.81136 c 14.85233,11.5863 21.59948,20.9854 21.59948,20.9854 0,0 -33.5226,-12.37087 -66.0646,-20.9854 z m -45.96641,16.27007 c -1.00419,0.0106 -10.12705,0.72026 -44.98966,20.64729 -3.12132,1.78406 -6.25434,3.86182 -9.37468,6.17356 h 41.81911 c 7.17181,-17.34774 12.64083,-26.82085 12.64083,-26.82085 0,0 -0.0287,-7.1e-4 -0.0957,0 z m 14.18088,0.0465 c 0,0 -3.31228,9.32762 -7.30492,26.77438 h 51.78554 C 287.6577,146.14158 270.09561,145.0502 270.09561,145.0502 Z M 13.152456,181.59075 A 254.0155,253.71401 0 0 0 3.927651,224.68167 H 134.1447 c 0.56161,-12.72411 2.67825,-28.50188 8.61499,-43.09092 z m 176.661504,0 c -14.27121,13.10564 -27.60733,29.58761 -37.56073,43.09092 h 73.3721 c 4.47018,-16.79061 9.35068,-31.26371 13.86562,-43.09092 z m 70.85787,0 c -2.41384,11.76417 -4.9032,26.20707 -6.94831,43.09092 H 360.4832 c -8.32133,-10.88917 -20.66988,-26.17008 -36.35141,-43.09092 z m 109.17313,0 c 6.63611,15.24089 6.92441,30.5373 5.57882,43.09092 h 132.64857 a 254.0155,253.71401 0 0 0 -9.22481,-43.09092 z M 2.90181,234.44783 A 254.0155,253.71401 0 0 0 1.984498,255.9933 254.0155,253.71401 0 0 0 2.90181,277.53876 h 211.89923 c 2.25762,-15.52555 5.14325,-29.93448 8.3385,-43.09093 h -77.8863 c -6.46396,9.27617 -10.33076,15.56549 -10.33076,15.56549 0,0 -0.82623,-6.14945 -0.9354,-15.56549 z m 249.72093,0 c -1.3692,13.09684 -2.4456,27.49209 -3.02068,43.09093 h 259.49613 a 254.0155,253.71401 0 0 0 0.91731,-21.54546 254.0155,253.71401 0 0 0 -0.91731,-21.54547 H 374.02584 c -0.445,2.5469 -0.90878,4.89768 -1.32817,7.01751 0,0 -1.69726,-2.53821 -4.94056,-7.01751 z M 3.927651,287.30493 a 254.0155,253.71401 0 0 0 9.224805,43.09091 H 214.04393 c -1.29238,-15.40742 -1.57503,-30.04388 -0.41861,-43.09091 z m 245.385009,0 c -0.30355,13.54349 -0.22032,27.92598 0.36951,43.09091 h 249.16537 a 254.0155,253.71401 0 0 0 9.22481,-43.09091 z M 16.369511,340.16201 a 254.0155,253.71401 0 0 0 19.878554,43.09091 H 221.4677 c -2.69781,-14.4523 -4.96108,-29.01285 -6.4832,-43.09091 z m 233.842379,0 c 1.15864,15.47765 3.81286,29.83979 7.51679,43.09091 h 218.02325 a 254.0155,253.71401 0 0 0 19.87856,-43.09091 z M 42.217052,393.01909 a 254.0155,253.71401 0 0 0 34.88372,43.09093 H 233.09561 c -3.40902,-13.67281 -6.76794,-28.2531 -9.73902,-43.09093 z m 218.490958,0 c 5.34985,16.15926 12.22007,30.51982 19.68733,43.09093 h 154.50389 a 254.0155,253.71401 0 0 0 34.88371,-43.09093 z M 87.529722,445.87618 a 254.0155,253.71401 0 0 0 166.229968,63.8208 c -3.67805,-12.0825 -10.85464,-35.49828 -18.18088,-63.8208 z m 199.010328,0 c 17.5887,26.43772 36.99259,43.60598 47.33592,51.61309 a 254.0155,253.71401 0 0 0 90.59431,-51.61309 z" />
|
|
||||||
<path
|
|
||||||
id="path27"
|
|
||||||
style="display:inline;mix-blend-mode:multiply;fill:none;fill-opacity:1;fill-rule:evenodd;stroke:url(#linearGradient27);stroke-width:3;stroke-linejoin:round;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke fill markers"
|
|
||||||
d="m 318.98012,441.7375 c -9.87518,-6.73978 -64.39137,-49.0272 -67.68975,-127.81978 -3.69298,-88.21893 15.36468,-141.91029 15.36468,-141.91029 0,0 16.00378,0.99513 39.80316,26.53195 23.79939,25.53753 37.74965,46.43102 37.74965,46.43102 3.91262,-19.79992 12.84563,-66.32402 -60.72865,-87.55523 0,0 12.82326,-5.38883 39.3925,-3.81382 26.56907,1.57572 81.6822,21.93799 81.6822,21.93799 0,0 -14.79766,-20.63773 -49.47063,-34.94295 -34.67291,-14.30533 -76.1182,0.23644 -76.1182,0.23644 0,0 3.86959,-12.43127 27.22669,-26.38478 23.35718,-13.9537 49.27409,-26.501533 49.27409,-26.501533 0,0 -21.97854,-0.26548 -47.67725,8.44535 -6.68948,2.267506 -13.15863,5.094213 -19.05208,8.226563 l 16.05803,-40.634103 -4.4617,-1.89059 -5.1305,-0.95965 c 0,0 -11.24072,33.12428 -16.92051,49.576513 -12.13137,7.68489 -20.11005,14.87735 -20.11005,14.87735 0,0 -21.90573,-25.09227 -42.79668,-35.527803 -26.03412,-13.00525 -86.88249,-13.90359 -94.0044,10.401173 0,0 13.56804,-7.884703 34.70032,-2.080917 21.13214,5.803997 30.3644,9.287307 30.3644,9.287307 l 29.02989,-5.30681 -7.89811,8.95527 c 0,0 13.8496,7.21324 21.33822,13.68063 7.48859,6.46722 10.9757,10.11472 10.9757,10.11472 0,0 -13.02739,-4.39388 -53.03507,-1.40893 -40.00771,2.98473 -79.40016,45.60209 -79.40016,45.60209 0,0 38.57037,-12.93531 61.34393,-17.24677 22.77354,-4.31126 44.52166,-6.46757 44.52166,-6.46757 0,0 -17.23298,5.97003 -35.69792,31.00932 -18.46522,25.03987 -13.13146,64.83866 -13.13146,64.83866 0,0 29.33874,-47.7577 57.44675,-63.84249 28.10798,-16.08527 34.0799,-15.6238 34.0799,-15.6238 0,0 -22.56785,39.13486 -31.39017,101.98268 -8.03005,57.2039 26.77689,163.75449 31.1572,178.89699"
|
|
||||||
sodipodi:nodetypes="cscsccscscscsccccccscscccscscscscscsc"
|
|
||||||
inkscape:label="MainOutline"
|
|
||||||
clip-path="url(#clipPath128)"
|
|
||||||
transform="matrix(1.3229974,0,0,1.3214002,-82.687282,-82.278451)" />
|
|
||||||
</svg>
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 256 KiB After Width: | Height: | Size: 256 KiB |
|
Before Width: | Height: | Size: 332 KiB After Width: | Height: | Size: 379 KiB |
@@ -0,0 +1,211 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
width="512"
|
||||||
|
height="512"
|
||||||
|
fill="none"
|
||||||
|
viewBox="0 0 512 512"
|
||||||
|
version="1.1"
|
||||||
|
id="svg7"
|
||||||
|
sodipodi:docname="EdenLogoLoveWhiteV3.svg"
|
||||||
|
inkscape:version="1.4.3 (0d15f75, 2025-12-25)"
|
||||||
|
xml:space="preserve"
|
||||||
|
inkscape:export-filename="dev.eden_emu.eden.png"
|
||||||
|
inkscape:export-xdpi="96"
|
||||||
|
inkscape:export-ydpi="96"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
|
<metadata
|
||||||
|
id="metadata1">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
|
||||||
|
<dc:creator>
|
||||||
|
<cc:Agent>
|
||||||
|
<dc:title>Madeline_Dev</dc:title>
|
||||||
|
<dc:identifier>mailto:madelvidel@gmail.com</dc:identifier>
|
||||||
|
</cc:Agent>
|
||||||
|
</dc:creator>
|
||||||
|
<dc:date>2025</dc:date>
|
||||||
|
<dc:license
|
||||||
|
rdf:resource="https://www.gnu.org/licenses/gpl-3.0.html" />
|
||||||
|
<dc:rights>2025 Eden Emulator Project</dc:rights>
|
||||||
|
<dc:source>https://git.eden-emu.dev</dc:source>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<defs
|
||||||
|
id="defs7"><linearGradient
|
||||||
|
id="swatch14"
|
||||||
|
inkscape:swatch="solid"><stop
|
||||||
|
style="stop-color:#66003b;stop-opacity:1;"
|
||||||
|
offset="0"
|
||||||
|
id="stop14" /></linearGradient><linearGradient
|
||||||
|
id="linearGradient1"
|
||||||
|
inkscape:collect="always"><stop
|
||||||
|
style="stop-color:#ffffff;stop-opacity:0.50980395;"
|
||||||
|
offset="0"
|
||||||
|
id="stop1" /><stop
|
||||||
|
style="stop-color:#000000;stop-opacity:0;"
|
||||||
|
offset="1"
|
||||||
|
id="stop2" /></linearGradient><linearGradient
|
||||||
|
id="linearGradient11"
|
||||||
|
inkscape:collect="always"><stop
|
||||||
|
style="stop-color:#9523a7;stop-opacity:0.50980395;"
|
||||||
|
offset="0"
|
||||||
|
id="stop11" /><stop
|
||||||
|
style="stop-color:#ffabad;stop-opacity:1;"
|
||||||
|
offset="0.99898213"
|
||||||
|
id="stop20" /><stop
|
||||||
|
style="stop-color:#ffffff;stop-opacity:0;"
|
||||||
|
offset="0.99898213"
|
||||||
|
id="stop12" /></linearGradient><linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient11"
|
||||||
|
id="linearGradient12"
|
||||||
|
x1="109.74531"
|
||||||
|
y1="106.54533"
|
||||||
|
x2="431.05463"
|
||||||
|
y2="427.85461"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
spreadMethod="reflect"
|
||||||
|
gradientTransform="matrix(1.0945321,0,0,1.0945321,-39.661525,-35.159057)" /><linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient1"
|
||||||
|
id="linearGradient2"
|
||||||
|
x1="125.40197"
|
||||||
|
y1="271.834"
|
||||||
|
x2="431.02424"
|
||||||
|
y2="271.834"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(1.0964243,0,0,1.0253208,-40.187969,-20.060025)" /><filter
|
||||||
|
inkscape:label="Light Contour"
|
||||||
|
inkscape:menu="Image Paint and Draw"
|
||||||
|
inkscape:menu-tooltip="Uses vertical specular light to draw lines"
|
||||||
|
style="color-interpolation-filters:sRGB"
|
||||||
|
id="filter11"
|
||||||
|
x="-0.01907517"
|
||||||
|
y="-0.054959154"
|
||||||
|
width="1.0379885"
|
||||||
|
height="1.1092314"><feGaussianBlur
|
||||||
|
in="SourceGraphic"
|
||||||
|
stdDeviation="0.38250006"
|
||||||
|
result="result3"
|
||||||
|
id="feGaussianBlur9" /><feComponentTransfer
|
||||||
|
result="result1"
|
||||||
|
in="result3"
|
||||||
|
id="feComponentTransfer9"><feFuncR
|
||||||
|
type="discrete"
|
||||||
|
tableValues="0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1"
|
||||||
|
id="feFuncR9" /><feFuncG
|
||||||
|
type="discrete"
|
||||||
|
tableValues="0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1"
|
||||||
|
id="feFuncG9" /><feFuncB
|
||||||
|
type="discrete"
|
||||||
|
tableValues="0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1"
|
||||||
|
id="feFuncB9" /></feComponentTransfer><feGaussianBlur
|
||||||
|
result="result5"
|
||||||
|
stdDeviation="0.01"
|
||||||
|
id="feGaussianBlur10" /><feBlend
|
||||||
|
in2="result5"
|
||||||
|
result="result6"
|
||||||
|
mode="lighten"
|
||||||
|
in="result5"
|
||||||
|
id="feBlend10" /><feColorMatrix
|
||||||
|
in="result6"
|
||||||
|
type="luminanceToAlpha"
|
||||||
|
result="result2"
|
||||||
|
id="feColorMatrix10" /><feSpecularLighting
|
||||||
|
surfaceScale="5"
|
||||||
|
result="result9"
|
||||||
|
specularExponent="20"
|
||||||
|
in="result2"
|
||||||
|
specularConstant="1"
|
||||||
|
id="feSpecularLighting10"><feDistantLight
|
||||||
|
azimuth="180"
|
||||||
|
elevation="90"
|
||||||
|
id="feDistantLight10" /></feSpecularLighting><feComposite
|
||||||
|
in2="result6"
|
||||||
|
operator="arithmetic"
|
||||||
|
in="result9"
|
||||||
|
k1="0.4"
|
||||||
|
k3="0.7"
|
||||||
|
result="result3"
|
||||||
|
id="feComposite10"
|
||||||
|
k2="0"
|
||||||
|
k4="0" /><feBlend
|
||||||
|
in2="result1"
|
||||||
|
in="result3"
|
||||||
|
mode="normal"
|
||||||
|
result="result8"
|
||||||
|
id="feBlend11" /><feComposite
|
||||||
|
in2="SourceGraphic"
|
||||||
|
in="result8"
|
||||||
|
operator="in"
|
||||||
|
result="result7"
|
||||||
|
id="feComposite11" /></filter></defs><sodipodi:namedview
|
||||||
|
id="namedview7"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#000000"
|
||||||
|
borderopacity="0.25"
|
||||||
|
inkscape:showpageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#d1d1d1"
|
||||||
|
inkscape:zoom="1.35"
|
||||||
|
inkscape:cx="254.81481"
|
||||||
|
inkscape:cy="260.37037"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1001"
|
||||||
|
inkscape:window-x="-9"
|
||||||
|
inkscape:window-y="-9"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg7"
|
||||||
|
showguides="false" /><circle
|
||||||
|
style="fill:url(#linearGradient12);fill-opacity:1;stroke:#e4e4e4;stroke-width:14.0448;stroke-opacity:1;paint-order:stroke fill markers"
|
||||||
|
id="path8"
|
||||||
|
cx="256.2999"
|
||||||
|
cy="257.2999"
|
||||||
|
r="248.67769" /><path
|
||||||
|
id="path15"
|
||||||
|
style="fill:url(#linearGradient2);fill-opacity:1;stroke:#ffffff;stroke-width:16.9642;stroke-linejoin:round;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.52156866;paint-order:stroke fill markers"
|
||||||
|
d="m 306.72111,24.233031 c 0,0 -11.98397,40.08696 -18.0546,60.431848 -12.96613,9.503601 -21.49377,18.397701 -21.49377,18.397701 0,0 -23.41313,-31.029398 -45.74145,-43.934598 -22.32833,-12.905201 -52.42065,-11.242483 -52.42065,-11.242483 0,0 -12.50052,4e-4 -27.63117,5.537132 -15.13066,5.536732 -21.27107,9.227888 -21.27107,9.227888 0,0 15.35165,-0.410529 37.93799,6.766716 22.58635,7.177243 32.45374,11.484796 32.45374,11.484796 l 31.02752,-6.562453 -8.44161,11.074275 c 0,0 14.80259,8.920284 22.80648,16.917787 8.0039,7.9975 11.73088,12.50812 11.73088,12.50812 0,0 -13.92373,-5.43341 -56.68427,-1.74226 -42.76055,3.69116 -84.86368,56.39265 -84.86368,56.39265 0,0 41.22428,-15.9958 65.5649,-21.32747 24.34062,-5.33166 47.58524,-7.9983 47.58524,-7.9983 0,0 -18.41865,7.3827 -38.15428,38.3474 -19.73564,30.96468 -14.0351,80.18128 -14.0351,80.18128 0,0 31.35774,-59.05848 61.39977,-78.94969 30.04203,-19.89124 36.182,-20.50642 36.182,-20.50642 0,0 -24.1209,48.39514 -33.55015,126.11445 -9.42924,77.71931 30.26089,207.72959 30.26089,207.72959 l 47.80367,-6.97298 c 0,0 -45.61041,-42.24281 -49.55753,-151.33695 -3.94713,-109.09413 16.66479,-174.30453 16.66479,-174.30453 0,0 17.10508,1.23039 42.54213,32.81027 25.43704,31.57987 40.34713,57.41795 40.34713,57.41795 0,0 9.65024,-51.26683 -11.4011,-74.64415 -21.05135,-23.3773 -53.50637,-33.62931 -53.50637,-33.62931 0,0 13.70573,-6.66419 42.10313,-4.71609 28.39738,1.94813 87.30278,27.12897 87.30278,27.12896 0,0 -15.8158,-25.5214 -52.87463,-43.21167 -37.05881,-17.69028 -81.35597,0.29238 -81.35597,0.29238 0,0 4.13589,-15.37277 29.10021,-32.628037 24.96432,-17.25527 56.907,-34.36427 56.907,-34.36427 0,0 -26.3595,1.160335 -55.20025,12.035504 -7.176,2.7059 -14.064,6.299542 -20.36309,10.173104 l 17.40574,-51.051762 z" /><path
|
||||||
|
id="path4-2-6"
|
||||||
|
style="fill:#ffffff;fill-opacity:0.509804;stroke:#ffffff;stroke-width:8.49614;stroke-dasharray:none;stroke-opacity:0.521569"
|
||||||
|
d="m 105.64857,363.95957 a 27.851731,25.309928 0 0 0 -7.115581,35.20471 27.851731,25.309928 0 0 0 5.656921,5.48617 c 7.16052,5.83605 21.58543,14.65841 45.88391,17.847 37.57172,4.93039 41.7105,10.38005 41.71122,10.381 -4.5e-4,-6e-4 -4.13529,-5.45309 4.14459,-39.11953 5.35491,-21.77281 1.40624,-37.16078 -2.05217,-45.31698 a 27.851731,25.309928 0 0 0 -3.63281,-6.75471 27.851731,25.309928 0 0 0 -38.74027,-6.4662 27.851731,25.309928 0 0 0 -7.11556,35.20472 27.851731,25.309928 0 0 0 -38.74025,-6.46618 z" /><path
|
||||||
|
id="path4-2-6-1"
|
||||||
|
style="fill:#ffffff;fill-opacity:0.50980395;stroke:#ffffff;stroke-width:6.89965;stroke-dasharray:none;stroke-opacity:0.519962"
|
||||||
|
d="m 351.29524,378.32915 a 20.862787,22.283365 87.929759 0 0 -28.94663,11.7882 20.862787,22.283365 87.929759 0 0 -1.50914,6.04125 c -1.09835,7.13663 -1.16134,20.16231 7.28339,36.72931 13.0577,25.61689 10.90177,30.69793 10.90138,30.69882 2.4e-4,-5.6e-4 2.16,-5.08045 30.49632,-15.43688 18.32576,-6.69765 27.84648,-16.23659 32.287,-22.14109 a 20.862787,22.283365 87.929759 0 0 3.33646,-5.36755 20.862787,22.283365 87.929759 0 0 -12.45108,-27.05014 20.862787,22.283365 87.929759 0 0 -28.94664,11.78822 20.862787,22.283365 87.929759 0 0 -12.45106,-27.05014 z" /><path
|
||||||
|
id="path4-2-6-1-5"
|
||||||
|
style="fill:#ffffff;fill-opacity:0.50980395;stroke:#ffffff;stroke-width:6.89965;stroke-dasharray:none;stroke-opacity:0.52156866"
|
||||||
|
d="m 83.024352,249.4105 a 22.283365,20.862787 0 0 0 -29.353581,10.73482 22.283365,20.862787 0 0 0 -1.72639,5.98278 c -1.35544,7.0923 -1.88894,20.10721 5.951801,36.96846 12.12378,26.07187 9.7857,31.07171 9.78528,31.07259 2.6e-4,-5.5e-4 2.34212,-4.99911 31.03406,-14.32513 18.555748,-6.03127 28.414858,-15.22005 33.065768,-20.96029 a 22.283365,20.862787 0 0 0 3.52818,-5.24352 22.283365,20.862787 0 0 0 -11.46577,-27.48227 22.283365,20.862787 0 0 0 -29.353588,10.73483 22.283365,20.862787 0 0 0 -11.46576,-27.48227 z" /><path
|
||||||
|
id="path4-2-6-1-9"
|
||||||
|
style="fill:#ffffff;fill-opacity:0.50980395;stroke:#ffffff;stroke-width:5.01078;stroke-dasharray:none;stroke-opacity:0.519962"
|
||||||
|
d="m 320.97602,291.36362 a 16.625347,14.748181 0 0 0 -21.90036,7.58859 16.625347,14.748181 0 0 0 -1.28804,4.2293 c -1.01128,5.01364 -1.40932,14.21406 4.44057,26.1335 9.0454,18.43055 7.30098,21.965 7.30067,21.96562 2e-4,-3.9e-4 1.74743,-3.53394 23.15415,-10.12663 13.84423,-4.26358 21.19999,-10.75925 24.66998,-14.8171 a 16.625347,14.748181 0 0 0 2.63233,-3.70671 16.625347,14.748181 0 0 0 -8.55447,-19.42758 16.625347,14.748181 0 0 0 -21.90037,7.58859 16.625347,14.748181 0 0 0 -8.55446,-19.42758 z" /><path
|
||||||
|
id="path4-2-6-1-9-8"
|
||||||
|
style="fill:#ffffff;fill-opacity:0.50980395;stroke:#ffffff;stroke-width:4.22313;stroke-dasharray:none;stroke-opacity:0.519962"
|
||||||
|
d="m 416.90426,193.13811 a 12.322476,14.134158 82.30909 0 0 -17.56469,8.83612 12.322476,14.134158 82.30909 0 0 -0.59553,3.65007 c -0.27175,4.26676 0.45709,11.92642 6.76182,21.10665 9.74867,14.19503 8.68847,17.32338 8.68827,17.3239 1.2e-4,-3.3e-4 1.06282,-3.12827 18.32699,-11.08266 11.16516,-5.14424 16.60821,-11.37802 19.06101,-15.14093 a 12.322476,14.134158 82.30909 0 0 1.788,-3.37453 12.322476,14.134158 82.30909 0 0 -9.45059,-15.07737 12.322476,14.134158 82.30909 0 0 -17.5647,8.83612 12.322476,14.134158 82.30909 0 0 -9.45058,-15.07737 z" /><path
|
||||||
|
id="path4-2-6-1-9-8-4"
|
||||||
|
style="fill:#ffffff;fill-opacity:0.50980395;stroke:#ffffff;stroke-width:3.48342;stroke-dasharray:none;stroke-opacity:0.519962"
|
||||||
|
d="m 96.169666,99.754795 a 10.296362,11.508677 62.365085 0 0 -7.330189,13.841365 10.296362,11.508677 62.365085 0 0 1.473186,2.6805 c 2.008889,2.93989 6.437543,7.66269 15.415927,10.84633 13.88288,4.92276 14.77391,7.47086 14.77407,7.4713 -1e-4,-2.8e-4 -0.88925,-2.54921 6.69094,-15.67164 4.90232,-8.48655 5.37758,-15.08279 5.10162,-18.6847 a 10.296362,11.508677 62.365085 0 0 -0.5257,-3.042454 10.296362,11.508677 62.365085 0 0 -14.1348,-5.641051 10.296362,11.508677 62.365085 0 0 -7.33021,13.841385 10.296362,11.508677 62.365085 0 0 -14.134844,-5.641035 z" /><path
|
||||||
|
id="path4-2-6-1-9-8-4-9-2"
|
||||||
|
style="fill:#ffffff;fill-opacity:0.5117;stroke:#ffffff;stroke-width:3.05139;stroke-dasharray:none;stroke-opacity:0.519962"
|
||||||
|
d="m 296.64657,233.26347 a 8.8114666,10.319195 80.445391 0 0 -11.58972,8.06989 8.8114666,10.319195 80.445391 0 0 0.0366,2.62543 c 0.35019,3.02392 1.86017,8.32306 7.60386,14.09672 8.8812,8.92759 8.51432,11.23624 8.51426,11.23663 5e-5,-2.5e-4 0.36876,-2.30885 11.85385,-9.72788 7.4277,-4.79799 10.57103,-9.75243 11.86523,-12.65455 a 8.8114666,10.319195 80.445391 0 0 0.86244,-2.55882 8.8114666,10.319195 80.445391 0 0 -8.77837,-9.57865 8.8114666,10.319195 80.445391 0 0 -11.58975,8.06989 8.8114666,10.319195 80.445391 0 0 -8.77842,-9.57866 z" /><path
|
||||||
|
id="path4-2-6-1-9-8-4-9-2-6"
|
||||||
|
style="fill:#ffffff;fill-opacity:0.5117;stroke:#ffffff;stroke-width:2.49738;stroke-dasharray:none;stroke-opacity:0.519962"
|
||||||
|
d="m 403.95446,91.44744 a 7.0950375,8.5844443 82.142743 0 0 -9.64888,6.492875 7.0950375,8.5844443 82.142743 0 0 0.0305,2.112375 c 0.29155,2.43298 1.54866,6.69657 6.33049,11.34195 7.39392,7.18298 7.08848,9.04046 7.08843,9.04078 4e-5,-2.1e-4 0.307,-1.85765 9.86876,-7.82686 6.18383,-3.86038 8.80077,-7.84663 9.87824,-10.18161 a 7.0950375,8.5844443 82.142743 0 0 0.718,-2.05879 7.0950375,8.5844443 82.142743 0 0 -7.30831,-7.706798 7.0950375,8.5844443 82.142743 0 0 -9.64889,6.492875 7.0950375,8.5844443 82.142743 0 0 -7.30834,-7.706797 z" /><path
|
||||||
|
id="path4-2-6-1-9-8-4-9-5"
|
||||||
|
style="fill:#ffffff;fill-opacity:0.5117;stroke:#ffffff;stroke-width:7.54176;stroke-dasharray:none;stroke-opacity:0.521569"
|
||||||
|
d="m 410.46352,265.86621 a 24.802737,22.39469 2.0523303 0 0 -30.17074,15.95063 24.802737,22.39469 2.0523303 0 0 -0.74427,6.61415 c -0.12337,7.7333 1.79614,21.62064 13.65297,38.28529 18.33368,25.76802 16.72835,31.4347 16.72811,31.43572 1.4e-4,-6.3e-4 1.60998,-5.66652 31.32518,-20.02007 19.21759,-9.28266 28.27643,-20.56192 32.27921,-27.37361 a 24.802737,22.39469 2.0523303 0 0 2.8654,-6.11021 24.802737,22.39469 2.0523303 0 0 -17.88248,-27.36631 24.802737,22.39469 2.0523303 0 0 -30.17081,15.95066 24.802737,22.39469 2.0523303 0 0 -17.88257,-27.36625 z" /><path
|
||||||
|
id="path4-2-6-1-9-8-5"
|
||||||
|
style="fill:#ffffff;fill-opacity:0.50980395;stroke:#ffffff;stroke-width:3.6405;stroke-dasharray:none;stroke-opacity:0.519962"
|
||||||
|
d="m 114.43099,189.33754 a 10.333135,12.525309 79.004057 0 0 -14.00848,9.75499 10.333135,12.525309 79.004057 0 0 0.0547,3.08382 c 0.43602,3.54457 2.28588,9.73496 9.26636,16.38295 10.79359,10.27954 10.35819,13.00063 10.3581,13.00111 6e-5,-3e-4 0.4377,-2.72141 14.32197,-11.70923 8.9793,-5.8126 12.76786,-11.70785 14.32433,-15.14812 a 10.333135,12.525309 79.004057 0 0 1.03481,-3.02677 10.333135,12.525309 79.004057 0 0 -10.67161,-11.04688 10.333135,12.525309 79.004057 0 0 -14.00848,9.75501 10.333135,12.525309 79.004057 0 0 -10.6716,-11.04688 z" /><path
|
||||||
|
id="path4-2-6-1-9-8-4-9-2-2"
|
||||||
|
style="fill:#ffffff;fill-opacity:0.5117;stroke:#ffffff;stroke-width:3.62674;stroke-dasharray:none;stroke-opacity:0.519962"
|
||||||
|
d="m 178.56055,273.32338 a 10.656883,12.053184 66.089768 0 0 -7.97821,14.16205 10.656883,12.053184 66.089768 0 0 1.49012,2.79504 c 2.04675,3.07265 6.5954,8.03049 15.94965,11.48124 14.46412,5.33577 15.34612,7.98353 15.34628,7.98398 -8e-5,-2.8e-4 -0.88012,-2.64887 7.3455,-16.0639 5.31973,-8.67576 5.95524,-15.47956 5.74045,-19.20452 a 10.656883,12.053184 66.089768 0 0 -0.48843,-3.15169 10.656883,12.053184 66.089768 0 0 -14.7135,-6.08217 10.656883,12.053184 66.089768 0 0 -7.97826,14.1621 10.656883,12.053184 66.089768 0 0 -14.71355,-6.08215 z" /></svg>
|
||||||
|
After Width: | Height: | Size: 15 KiB |
@@ -0,0 +1 @@
|
|||||||
|
#e48cc9ff
|
||||||
|
After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 79 KiB |
@@ -85,6 +85,8 @@ If you have `quazip1_qt6_devel`, uninstall it. It may call `Core5Compat` on CMak
|
|||||||
|
|
||||||
## OpenBSD
|
## OpenBSD
|
||||||
|
|
||||||
|
System boost doesn't have `context` (as of 7.8); so you may need to specify `-DYUZU_USE_CPM=ON -DBoost_FORCE_BUNDLED=ON`.
|
||||||
|
|
||||||
After configuration, you may need to modify `externals/ffmpeg/CMakeFiles/ffmpeg-build/build.make` to use `-j$(nproc)` instead of just `-j`.
|
After configuration, you may need to modify `externals/ffmpeg/CMakeFiles/ffmpeg-build/build.make` to use `-j$(nproc)` instead of just `-j`.
|
||||||
|
|
||||||
`-lc++-experimental` doesn't exist in OpenBSD but the LLVM driver still tries to link against it, to solve just symlink `ln -s /usr/lib/libc++.a /usr/lib/libc++experimental.a`. Builds are currently not working due to lack of `std::jthread` and such, either compile libc++ manually or wait for ports to catch up.
|
`-lc++-experimental` doesn't exist in OpenBSD but the LLVM driver still tries to link against it, to solve just symlink `ln -s /usr/lib/libc++.a /usr/lib/libc++experimental.a`. Builds are currently not working due to lack of `std::jthread` and such, either compile libc++ manually or wait for ports to catch up.
|
||||||
|
|||||||
@@ -277,7 +277,7 @@ For NetBSD +10.1: `pkgin install git cmake boost fmtlib SDL2 catch2 libjwt spirv
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
pkg_add -u
|
pkg_add -u
|
||||||
pkg_add cmake nasm git boost unzip--iconv autoconf-2.72p0 bash ffmpeg glslang gmake llvm-19.1.7p3 qt6 jq fmt nlohmann-json enet boost vulkan-utility-libraries vulkan-headers spirv-headers spirv-tools catch2 sdl2 libusb1-1.0.27
|
pkg_add cmake nasm git boost unzip--iconv autoconf-2.72p0 bash ffmpeg glslang gmake qt6 jq fmt nlohmann-json enet boost vulkan-utility-libraries vulkan-headers spirv-headers spirv-tools catch2 sdl2 libusb1-1.0.29
|
||||||
```
|
```
|
||||||
|
|
||||||
[Caveats](./Caveats.md#openbsd).
|
[Caveats](./Caveats.md#openbsd).
|
||||||
|
|||||||
@@ -82,15 +82,15 @@ You may additionally need the `Qt Extension Pack` extension if building Qt.
|
|||||||
|
|
||||||
# Build speedup
|
# Build speedup
|
||||||
|
|
||||||
If you have an HDD, use ramdisk (build in RAM):
|
If you have an HDD, use ramdisk (build in RAM), approximatedly you need 4GB for a full build with debug symbols:
|
||||||
```sh
|
```sh
|
||||||
sudo mkdir /tmp/ramdisk
|
mkdir /tmp/ramdisk
|
||||||
sudo chmod 777 /tmp/ramdisk
|
chmod 777 /tmp/ramdisk
|
||||||
# about 8GB needed
|
# about 8GB needed
|
||||||
sudo mount -t tmpfs -o size=8G myramdisk /tmp/ramdisk
|
mount -t tmpfs -o size=4G myramdisk /tmp/ramdisk
|
||||||
cmake -B /tmp/ramdisk
|
cmake -B /tmp/ramdisk
|
||||||
cmake --build /tmp/ramdisk -- -j32
|
cmake --build /tmp/ramdisk -- -j32
|
||||||
sudo umount /tmp/ramdisk
|
umount /tmp/ramdisk
|
||||||
```
|
```
|
||||||
|
|
||||||
# Assets and large files
|
# Assets and large files
|
||||||
|
|||||||
@@ -27,11 +27,7 @@ set_directory_properties(PROPERTIES EXCLUDE_FROM_ALL ON)
|
|||||||
|
|
||||||
# Xbyak
|
# Xbyak
|
||||||
if (ARCHITECTURE_x86 OR ARCHITECTURE_x86_64)
|
if (ARCHITECTURE_x86 OR ARCHITECTURE_x86_64)
|
||||||
if (PLATFORM_SUN OR PLATFORM_OPENBSD OR PLATFORM_NETBSD OR PLATFORM_DRAGONFLY)
|
AddJsonPackage(xbyak)
|
||||||
AddJsonPackage(xbyak_sun)
|
|
||||||
else()
|
|
||||||
AddJsonPackage(xbyak)
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# enet
|
# enet
|
||||||
@@ -66,6 +62,9 @@ if (NOT TARGET LLVM::Demangle)
|
|||||||
add_library(LLVM::Demangle ALIAS demangle)
|
add_library(LLVM::Demangle ALIAS demangle)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# unordered_dense
|
||||||
|
AddJsonPackage(unordered-dense)
|
||||||
|
|
||||||
if (YUZU_STATIC_ROOM)
|
if (YUZU_STATIC_ROOM)
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
@@ -244,9 +243,6 @@ if (ENABLE_WEB_SERVICE OR ENABLE_UPDATE_CHECKER)
|
|||||||
AddJsonPackage(cpp-jwt)
|
AddJsonPackage(cpp-jwt)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# unordered_dense
|
|
||||||
AddJsonPackage(unordered-dense)
|
|
||||||
|
|
||||||
# FFMpeg
|
# FFMpeg
|
||||||
if (YUZU_USE_EXTERNAL_FFMPEG OR YUZU_USE_BUNDLED_FFMPEG)
|
if (YUZU_USE_EXTERNAL_FFMPEG OR YUZU_USE_BUNDLED_FFMPEG)
|
||||||
add_subdirectory(ffmpeg)
|
add_subdirectory(ffmpeg)
|
||||||
|
|||||||
@@ -48,23 +48,12 @@
|
|||||||
"0001-fix-missing-decl.patch"
|
"0001-fix-missing-decl.patch"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"xbyak_sun": {
|
|
||||||
"package": "xbyak",
|
|
||||||
"repo": "herumi/xbyak",
|
|
||||||
"tag": "v%VERSION%",
|
|
||||||
"hash": "b40dade90fb0e46a2bd52934f7ce461e37be931b571e58cbe2203bc08ed5b54c7ff1a29026c74c7f9805e4e3f6c9636deca528e6b4a8093ce7eae145218599f1",
|
|
||||||
"git_version": "7.29",
|
|
||||||
"bundled": true,
|
|
||||||
"skip_updates": true
|
|
||||||
},
|
|
||||||
"xbyak": {
|
"xbyak": {
|
||||||
"package": "xbyak",
|
"package": "xbyak",
|
||||||
"repo": "herumi/xbyak",
|
"repo": "herumi/xbyak",
|
||||||
"tag": "v%VERSION%",
|
"tag": "v%VERSION%",
|
||||||
"hash": "1042090405c426e339506c179d53e91d4d545ce9c9f53d8f797caa092d589f913a9bcb9c8f31c4c60870acb954c556e305fb6732c66bc3c8f1cd924f9172def9",
|
"hash": "ac333d7bea1d61865bebebb116201a58db431946aa2f11aa042ef5795c390ff30af4d6c90ed3b3d24443a1d430703b08f14fc13b2fa405c155a241456ed78a47",
|
||||||
"git_version": "7.22",
|
"git_version": "7.33.2"
|
||||||
"bundled": true,
|
|
||||||
"skip_updates": true
|
|
||||||
},
|
},
|
||||||
"oaknut": {
|
"oaknut": {
|
||||||
"repo": "eden-emulator/oaknut",
|
"repo": "eden-emulator/oaknut",
|
||||||
@@ -91,10 +80,13 @@
|
|||||||
"unordered-dense": {
|
"unordered-dense": {
|
||||||
"package": "unordered_dense",
|
"package": "unordered_dense",
|
||||||
"repo": "martinus/unordered_dense",
|
"repo": "martinus/unordered_dense",
|
||||||
"tag": "v%VERSION%",
|
"sha": "7b55cab841",
|
||||||
"hash": "b98b5d4d96f8e0081b184d6c4c1181fae4e41723b54bed4296717d7f417348b48fad0bbcc664cac142b8c8a47e95aa57c1eb1cf6caa855fd782fad3e3ab99e5e",
|
"hash": "d2106f6640f6bfb81755e4b8bfb64982e46ec4a507cacdb38f940123212ccf35a20b43c70c6f01d7bfb8c246d1a16f7845d8052971949cea9def1475e3fa02c8",
|
||||||
"find_args": "CONFIG",
|
"find_args": "CONFIG",
|
||||||
"git_version": "4.8.1"
|
"bundled": true,
|
||||||
|
"patches": [
|
||||||
|
"0001-avoid-memset-when-clearing-an-empty-table.patch"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"mbedtls": {
|
"mbedtls": {
|
||||||
"package": "MbedTLS",
|
"package": "MbedTLS",
|
||||||
@@ -158,7 +150,7 @@
|
|||||||
"package": "SDL2",
|
"package": "SDL2",
|
||||||
"name": "SDL2",
|
"name": "SDL2",
|
||||||
"repo": "crueter-ci/SDL2",
|
"repo": "crueter-ci/SDL2",
|
||||||
"version": "2.32.10-a65111bd2d",
|
"version": "2.32.10-cf5dabd6ea",
|
||||||
"min_version": "2.26.4"
|
"min_version": "2.26.4"
|
||||||
},
|
},
|
||||||
"catch2": {
|
"catch2": {
|
||||||
@@ -192,7 +184,6 @@
|
|||||||
"repo": "libsdl-org/SDL",
|
"repo": "libsdl-org/SDL",
|
||||||
"tag": "release-%VERSION%",
|
"tag": "release-%VERSION%",
|
||||||
"hash": "d5622d6bb7266f7942a7b8ad43e8a22524893bf0c2ea1af91204838d9b78d32768843f6faa248757427b8404b8c6443776d4afa6b672cd8571a4e0c03a829383",
|
"hash": "d5622d6bb7266f7942a7b8ad43e8a22524893bf0c2ea1af91204838d9b78d32768843f6faa248757427b8404b8c6443776d4afa6b672cd8571a4e0c03a829383",
|
||||||
"key": "generic",
|
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"git_version": "2.32.10",
|
"git_version": "2.32.10",
|
||||||
"skip_updates": true
|
"skip_updates": true
|
||||||
@@ -202,7 +193,6 @@
|
|||||||
"repo": "libsdl-org/SDL",
|
"repo": "libsdl-org/SDL",
|
||||||
"sha": "cc016b0046",
|
"sha": "cc016b0046",
|
||||||
"hash": "b8d9873446cdb922387471df9968e078714683046674ef0d0edddf8e25da65a539a3bae83d635496b970237f90b07b36a69f8d7855d450de59311d6d6e8c3dbc",
|
"hash": "b8d9873446cdb922387471df9968e078714683046674ef0d0edddf8e25da65a539a3bae83d635496b970237f90b07b36a69f8d7855d450de59311d6d6e8c3dbc",
|
||||||
"key": "steamdeck",
|
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"skip_updates": "true"
|
"skip_updates": "true"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
# SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
# SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
# SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
||||||
@@ -33,7 +33,7 @@ endif()
|
|||||||
|
|
||||||
if(NOT YUZU_TZDB_PATH STREQUAL "")
|
if(NOT YUZU_TZDB_PATH STREQUAL "")
|
||||||
set(NX_TZDB_BASE_DIR "${YUZU_TZDB_PATH}")
|
set(NX_TZDB_BASE_DIR "${YUZU_TZDB_PATH}")
|
||||||
elseif (MSVC AND NOT CXX_CLANG AND YUZU_ENABLE_LTO)
|
elseif (MSVC AND NOT CXX_CLANG AND ENABLE_LTO)
|
||||||
# TODO(crueter): boot up the windows vm
|
# TODO(crueter): boot up the windows vm
|
||||||
set(NX_TZDB_VERSION "250725")
|
set(NX_TZDB_VERSION "250725")
|
||||||
set(NX_TZDB_ARCHIVE "${CPM_SOURCE_CACHE}/nx_tzdb/${NX_TZDB_VERSION}.zip")
|
set(NX_TZDB_ARCHIVE "${CPM_SOURCE_CACHE}/nx_tzdb/${NX_TZDB_VERSION}.zip")
|
||||||
|
|||||||
@@ -203,6 +203,24 @@ object NativeLibrary {
|
|||||||
|
|
||||||
external fun getDebugKnobAt(index: Int): Boolean
|
external fun getDebugKnobAt(index: Int): Boolean
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the current speed limit to the configured turbo speed.
|
||||||
|
*/
|
||||||
|
external fun setTurboSpeedLimit(enabled: Boolean)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the current speed limit to the configured slow speed.
|
||||||
|
*/
|
||||||
|
external fun setSlowSpeedLimit(enabled: Boolean)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the current speed limit to the configured standard speed.
|
||||||
|
*/
|
||||||
|
external fun setStandardSpeedLimit(enabled: Boolean)
|
||||||
|
|
||||||
|
external fun isTurboMode(): Boolean
|
||||||
|
external fun isSlowMode(): Boolean
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns Vulkan driver version / API version / GPU model
|
* Returns Vulkan driver version / API version / GPU model
|
||||||
*/
|
*/
|
||||||
@@ -614,4 +632,23 @@ object NativeLibrary {
|
|||||||
* Updates the device power state to global variables
|
* Updates the device power state to global variables
|
||||||
*/
|
*/
|
||||||
external fun updatePowerState(percentage: Int, isCharging: Boolean, hasBattery: Boolean)
|
external fun updatePowerState(percentage: Int, isCharging: Boolean, hasBattery: Boolean)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Profile manager native calls
|
||||||
|
*/
|
||||||
|
external fun getAllUsers(): Array<String>?
|
||||||
|
external fun getUserUsername(uuid: String): String?
|
||||||
|
external fun getUserCount(): Long
|
||||||
|
external fun canCreateUser(): Boolean
|
||||||
|
external fun createUser(uuid: String, username: String): Boolean
|
||||||
|
external fun updateUserUsername(uuid: String, username: String): Boolean
|
||||||
|
external fun removeUser(uuid: String): Boolean
|
||||||
|
external fun getCurrentUser(): String?
|
||||||
|
external fun setCurrentUser(uuid: String): Boolean
|
||||||
|
external fun getUserImagePath(uuid: String): String?
|
||||||
|
external fun saveUserImage(uuid: String, imagePath: String): Boolean
|
||||||
|
external fun reloadProfiles()
|
||||||
|
external fun getFirmwareAvatarCount(): Int
|
||||||
|
external fun getFirmwareAvatarImage(index: Int): ByteArray?
|
||||||
|
external fun getDefaultAccountBackupJpeg(): ByteArray
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
||||||
@@ -10,6 +10,7 @@ import android.view.LayoutInflater
|
|||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import org.yuzu.yuzu_emu.databinding.ListItemAddonBinding
|
import org.yuzu.yuzu_emu.databinding.ListItemAddonBinding
|
||||||
import org.yuzu.yuzu_emu.model.Patch
|
import org.yuzu.yuzu_emu.model.Patch
|
||||||
|
import org.yuzu.yuzu_emu.model.PatchType
|
||||||
import org.yuzu.yuzu_emu.model.AddonViewModel
|
import org.yuzu.yuzu_emu.model.AddonViewModel
|
||||||
import org.yuzu.yuzu_emu.viewholder.AbstractViewHolder
|
import org.yuzu.yuzu_emu.viewholder.AbstractViewHolder
|
||||||
|
|
||||||
@@ -31,7 +32,12 @@ class AddonAdapter(val addonViewModel: AddonViewModel) :
|
|||||||
binding.addonSwitch.isChecked = model.enabled
|
binding.addonSwitch.isChecked = model.enabled
|
||||||
|
|
||||||
binding.addonSwitch.setOnCheckedChangeListener { _, checked ->
|
binding.addonSwitch.setOnCheckedChangeListener { _, checked ->
|
||||||
model.enabled = checked
|
if (PatchType.from(model.type) == PatchType.Update && checked) {
|
||||||
|
addonViewModel.enableOnlyThisUpdate(model)
|
||||||
|
notifyDataSetChanged()
|
||||||
|
} else {
|
||||||
|
model.enabled = checked
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val deleteAction = {
|
val deleteAction = {
|
||||||
|
|||||||
@@ -0,0 +1,55 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
package org.yuzu.yuzu_emu.adapters
|
||||||
|
|
||||||
|
import android.graphics.Bitmap
|
||||||
|
import android.view.LayoutInflater
|
||||||
|
import android.view.ViewGroup
|
||||||
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
|
import org.yuzu.yuzu_emu.databinding.ItemFirmwareAvatarBinding
|
||||||
|
|
||||||
|
class FirmwareAvatarAdapter(
|
||||||
|
private val avatars: List<Bitmap>,
|
||||||
|
private val onAvatarSelected: (Bitmap) -> Unit
|
||||||
|
) : RecyclerView.Adapter<FirmwareAvatarAdapter.AvatarViewHolder>() {
|
||||||
|
|
||||||
|
private var selectedPosition = -1
|
||||||
|
|
||||||
|
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): AvatarViewHolder {
|
||||||
|
val binding = ItemFirmwareAvatarBinding.inflate(
|
||||||
|
LayoutInflater.from(parent.context),
|
||||||
|
parent,
|
||||||
|
false
|
||||||
|
)
|
||||||
|
return AvatarViewHolder(binding)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onBindViewHolder(holder: AvatarViewHolder, position: Int) {
|
||||||
|
holder.bind(avatars[position], position == selectedPosition)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun getItemCount(): Int = avatars.size
|
||||||
|
|
||||||
|
inner class AvatarViewHolder(
|
||||||
|
private val binding: ItemFirmwareAvatarBinding
|
||||||
|
) : RecyclerView.ViewHolder(binding.root) {
|
||||||
|
|
||||||
|
fun bind(avatar: Bitmap, isSelected: Boolean) {
|
||||||
|
binding.imageAvatar.setImageBitmap(avatar)
|
||||||
|
binding.root.isChecked = isSelected
|
||||||
|
|
||||||
|
binding.root.setOnClickListener {
|
||||||
|
val previousSelected = selectedPosition
|
||||||
|
selectedPosition = bindingAdapterPosition
|
||||||
|
|
||||||
|
if (previousSelected != -1) {
|
||||||
|
notifyItemChanged(previousSelected)
|
||||||
|
}
|
||||||
|
notifyItemChanged(selectedPosition)
|
||||||
|
|
||||||
|
onAvatarSelected(avatar)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
@@ -7,8 +10,10 @@ import android.net.Uri
|
|||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import androidx.fragment.app.FragmentActivity
|
import androidx.fragment.app.FragmentActivity
|
||||||
|
import org.yuzu.yuzu_emu.R
|
||||||
import org.yuzu.yuzu_emu.databinding.CardFolderBinding
|
import org.yuzu.yuzu_emu.databinding.CardFolderBinding
|
||||||
import org.yuzu.yuzu_emu.fragments.GameFolderPropertiesDialogFragment
|
import org.yuzu.yuzu_emu.fragments.GameFolderPropertiesDialogFragment
|
||||||
|
import org.yuzu.yuzu_emu.model.DirectoryType
|
||||||
import org.yuzu.yuzu_emu.model.GameDir
|
import org.yuzu.yuzu_emu.model.GameDir
|
||||||
import org.yuzu.yuzu_emu.model.GamesViewModel
|
import org.yuzu.yuzu_emu.model.GamesViewModel
|
||||||
import org.yuzu.yuzu_emu.utils.ViewUtils.marquee
|
import org.yuzu.yuzu_emu.utils.ViewUtils.marquee
|
||||||
@@ -31,6 +36,12 @@ class FolderAdapter(val activity: FragmentActivity, val gamesViewModel: GamesVie
|
|||||||
path.text = Uri.parse(model.uriString).path
|
path.text = Uri.parse(model.uriString).path
|
||||||
path.marquee()
|
path.marquee()
|
||||||
|
|
||||||
|
// Set type indicator, shows below folder name, to see if DLC or Games
|
||||||
|
typeIndicator.text = when (model.type) {
|
||||||
|
DirectoryType.GAME -> activity.getString(R.string.games)
|
||||||
|
DirectoryType.EXTERNAL_CONTENT -> activity.getString(R.string.external_content)
|
||||||
|
}
|
||||||
|
|
||||||
buttonEdit.setOnClickListener {
|
buttonEdit.setOnClickListener {
|
||||||
GameFolderPropertiesDialogFragment.newInstance(model)
|
GameFolderPropertiesDialogFragment.newInstance(model)
|
||||||
.show(
|
.show(
|
||||||
|
|||||||
@@ -0,0 +1,112 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
package org.yuzu.yuzu_emu.adapters
|
||||||
|
|
||||||
|
import android.graphics.BitmapFactory
|
||||||
|
import android.view.LayoutInflater
|
||||||
|
import android.view.View
|
||||||
|
import android.view.ViewGroup
|
||||||
|
import androidx.recyclerview.widget.AsyncListDiffer
|
||||||
|
import androidx.recyclerview.widget.DiffUtil
|
||||||
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
|
import org.yuzu.yuzu_emu.R
|
||||||
|
import org.yuzu.yuzu_emu.databinding.ListItemProfileBinding
|
||||||
|
import org.yuzu.yuzu_emu.model.UserProfile
|
||||||
|
import java.io.File
|
||||||
|
import org.yuzu.yuzu_emu.NativeLibrary
|
||||||
|
|
||||||
|
class ProfileAdapter(
|
||||||
|
private val onProfileClick: (UserProfile) -> Unit,
|
||||||
|
private val onEditClick: (UserProfile) -> Unit,
|
||||||
|
private val onDeleteClick: (UserProfile) -> Unit
|
||||||
|
) : RecyclerView.Adapter<ProfileAdapter.ProfileViewHolder>() {
|
||||||
|
|
||||||
|
private var currentUserUUID: String = ""
|
||||||
|
|
||||||
|
private val differ = AsyncListDiffer(this, object : DiffUtil.ItemCallback<UserProfile>() {
|
||||||
|
override fun areItemsTheSame(oldItem: UserProfile, newItem: UserProfile): Boolean {
|
||||||
|
return oldItem.uuid == newItem.uuid
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun areContentsTheSame(oldItem: UserProfile, newItem: UserProfile): Boolean {
|
||||||
|
return oldItem == newItem
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
fun submitList(list: List<UserProfile>) {
|
||||||
|
differ.submitList(list)
|
||||||
|
}
|
||||||
|
|
||||||
|
fun setCurrentUser(uuid: String) {
|
||||||
|
currentUserUUID = uuid
|
||||||
|
notifyDataSetChanged()
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ProfileViewHolder {
|
||||||
|
val binding = ListItemProfileBinding.inflate(
|
||||||
|
LayoutInflater.from(parent.context),
|
||||||
|
parent,
|
||||||
|
false
|
||||||
|
)
|
||||||
|
return ProfileViewHolder(binding)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onBindViewHolder(holder: ProfileViewHolder, position: Int) {
|
||||||
|
holder.bind(differ.currentList[position])
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun getItemCount(): Int = differ.currentList.size
|
||||||
|
|
||||||
|
inner class ProfileViewHolder(private val binding: ListItemProfileBinding) :
|
||||||
|
RecyclerView.ViewHolder(binding.root) {
|
||||||
|
|
||||||
|
fun bind(profile: UserProfile) {
|
||||||
|
binding.textUsername.text = profile.username
|
||||||
|
binding.textUuid.text = formatUUID(profile.uuid)
|
||||||
|
|
||||||
|
val imageFile = File(profile.imagePath)
|
||||||
|
if (imageFile.exists()) {
|
||||||
|
val bitmap = BitmapFactory.decodeFile(profile.imagePath)
|
||||||
|
binding.imageAvatar.setImageBitmap(bitmap)
|
||||||
|
} else {
|
||||||
|
val jpegData = NativeLibrary.getDefaultAccountBackupJpeg()
|
||||||
|
val bitmap = BitmapFactory.decodeByteArray(jpegData, 0, jpegData.size)
|
||||||
|
binding.imageAvatar.setImageBitmap(bitmap)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (profile.uuid == currentUserUUID) {
|
||||||
|
binding.checkContainer.visibility = View.VISIBLE
|
||||||
|
} else {
|
||||||
|
binding.checkContainer.visibility = View.GONE
|
||||||
|
}
|
||||||
|
|
||||||
|
binding.root.setOnClickListener {
|
||||||
|
onProfileClick(profile)
|
||||||
|
}
|
||||||
|
|
||||||
|
binding.buttonEdit.setOnClickListener {
|
||||||
|
onEditClick(profile)
|
||||||
|
}
|
||||||
|
|
||||||
|
binding.buttonDelete.setOnClickListener {
|
||||||
|
onDeleteClick(profile)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun formatUUID(uuid: String): String {
|
||||||
|
if (uuid.length != 32) return uuid
|
||||||
|
return buildString {
|
||||||
|
append(uuid.substring(0, 8))
|
||||||
|
append("-")
|
||||||
|
append(uuid.substring(8, 12))
|
||||||
|
append("-")
|
||||||
|
append(uuid.substring(12, 16))
|
||||||
|
append("-")
|
||||||
|
append(uuid.substring(16, 20))
|
||||||
|
append("-")
|
||||||
|
append(uuid.substring(20, 32))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -11,6 +11,7 @@ import android.widget.RadioGroup
|
|||||||
import android.widget.TextView
|
import android.widget.TextView
|
||||||
import androidx.drawerlayout.widget.DrawerLayout
|
import androidx.drawerlayout.widget.DrawerLayout
|
||||||
import com.google.android.material.color.MaterialColors
|
import com.google.android.material.color.MaterialColors
|
||||||
|
import com.google.android.material.materialswitch.MaterialSwitch
|
||||||
import org.yuzu.yuzu_emu.R
|
import org.yuzu.yuzu_emu.R
|
||||||
import org.yuzu.yuzu_emu.YuzuApplication
|
import org.yuzu.yuzu_emu.YuzuApplication
|
||||||
import org.yuzu.yuzu_emu.features.settings.model.BooleanSetting
|
import org.yuzu.yuzu_emu.features.settings.model.BooleanSetting
|
||||||
@@ -135,6 +136,39 @@ class QuickSettings(val emulationFragment: EmulationFragment) {
|
|||||||
container.addView(itemView)
|
container.addView(itemView)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun addCustomToggle(
|
||||||
|
name: Int,
|
||||||
|
isChecked: Boolean,
|
||||||
|
isEnabled: Boolean,
|
||||||
|
|
||||||
|
container: ViewGroup,
|
||||||
|
callback: (Boolean) -> Unit
|
||||||
|
): MaterialSwitch? {
|
||||||
|
val inflater = LayoutInflater.from(emulationFragment.requireContext())
|
||||||
|
val itemView = inflater.inflate(R.layout.item_quick_settings_menu, container, false)
|
||||||
|
|
||||||
|
val switchContainer = itemView.findViewById<ViewGroup>(R.id.switch_container)
|
||||||
|
val titleView = itemView.findViewById<TextView>(R.id.switch_title)
|
||||||
|
val switchView = itemView.findViewById<MaterialSwitch>(R.id.setting_switch)
|
||||||
|
|
||||||
|
titleView.text = YuzuApplication.appContext.getString(name)
|
||||||
|
switchContainer.visibility = View.VISIBLE
|
||||||
|
|
||||||
|
switchView.isChecked = isChecked
|
||||||
|
|
||||||
|
switchView.setOnCheckedChangeListener { _, checked ->
|
||||||
|
callback(checked)
|
||||||
|
saveSettings()
|
||||||
|
}
|
||||||
|
|
||||||
|
switchContainer.setOnClickListener {
|
||||||
|
switchView.toggle()
|
||||||
|
}
|
||||||
|
container.addView(itemView)
|
||||||
|
|
||||||
|
return switchView
|
||||||
|
}
|
||||||
|
|
||||||
fun addSliderSetting(
|
fun addSliderSetting(
|
||||||
name: Int,
|
name: Int,
|
||||||
container: ViewGroup,
|
container: ViewGroup,
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ enum class BooleanSetting(override val key: String) : AbstractBooleanSetting {
|
|||||||
RENDERER_PROVOKING_VERTEX("provoking_vertex"),
|
RENDERER_PROVOKING_VERTEX("provoking_vertex"),
|
||||||
RENDERER_DESCRIPTOR_INDEXING("descriptor_indexing"),
|
RENDERER_DESCRIPTOR_INDEXING("descriptor_indexing"),
|
||||||
RENDERER_SAMPLE_SHADING("sample_shading"),
|
RENDERER_SAMPLE_SHADING("sample_shading"),
|
||||||
|
GPU_UNSWIZZLE_ENABLED("gpu_unswizzle_enabled"),
|
||||||
PICTURE_IN_PICTURE("picture_in_picture"),
|
PICTURE_IN_PICTURE("picture_in_picture"),
|
||||||
USE_CUSTOM_RTC("custom_rtc_enabled"),
|
USE_CUSTOM_RTC("custom_rtc_enabled"),
|
||||||
BLACK_BACKGROUNDS("black_backgrounds"),
|
BLACK_BACKGROUNDS("black_backgrounds"),
|
||||||
@@ -73,8 +74,6 @@ enum class BooleanSetting(override val key: String) : AbstractBooleanSetting {
|
|||||||
SHOW_SHADERS_BUILDING("show_shaders_building"),
|
SHOW_SHADERS_BUILDING("show_shaders_building"),
|
||||||
|
|
||||||
DEBUG_FLUSH_BY_LINE("flush_line"),
|
DEBUG_FLUSH_BY_LINE("flush_line"),
|
||||||
USE_LRU_CACHE("use_lru_cache"),
|
|
||||||
|
|
||||||
DONT_SHOW_DRIVER_SHADER_WARNING("dont_show_driver_shader_warning"),
|
DONT_SHOW_DRIVER_SHADER_WARNING("dont_show_driver_shader_warning"),
|
||||||
ENABLE_OVERLAY("enable_overlay"),
|
ENABLE_OVERLAY("enable_overlay"),
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ enum class IntSetting(override val key: String) : AbstractIntSetting {
|
|||||||
|
|
||||||
RENDERER_DYNA_STATE("dyna_state"),
|
RENDERER_DYNA_STATE("dyna_state"),
|
||||||
DMA_ACCURACY("dma_accuracy"),
|
DMA_ACCURACY("dma_accuracy"),
|
||||||
|
FRAME_PACING_MODE("frame_pacing_mode"),
|
||||||
AUDIO_OUTPUT_ENGINE("output_engine"),
|
AUDIO_OUTPUT_ENGINE("output_engine"),
|
||||||
MAX_ANISOTROPY("max_anisotropy"),
|
MAX_ANISOTROPY("max_anisotropy"),
|
||||||
THEME("theme"),
|
THEME("theme"),
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
@@ -6,7 +9,10 @@ package org.yuzu.yuzu_emu.features.settings.model
|
|||||||
import org.yuzu.yuzu_emu.utils.NativeConfig
|
import org.yuzu.yuzu_emu.utils.NativeConfig
|
||||||
|
|
||||||
enum class ShortSetting(override val key: String) : AbstractShortSetting {
|
enum class ShortSetting(override val key: String) : AbstractShortSetting {
|
||||||
RENDERER_SPEED_LIMIT("speed_limit");
|
RENDERER_SPEED_LIMIT("speed_limit"),
|
||||||
|
RENDERER_TURBO_SPEED_LIMIT("turbo_speed_limit"),
|
||||||
|
RENDERER_SLOW_SPEED_LIMIT("slow_speed_limit"),
|
||||||
|
;
|
||||||
|
|
||||||
override fun getShort(needsGlobal: Boolean): Short = NativeConfig.getShort(key, needsGlobal)
|
override fun getShort(needsGlobal: Boolean): Short = NativeConfig.getShort(key, needsGlobal)
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,75 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
package org.yuzu.yuzu_emu.features.settings.model.view
|
||||||
|
|
||||||
|
import androidx.annotation.ArrayRes
|
||||||
|
import androidx.annotation.StringRes
|
||||||
|
import org.yuzu.yuzu_emu.features.settings.model.AbstractSetting
|
||||||
|
import org.yuzu.yuzu_emu.features.settings.model.BooleanSetting
|
||||||
|
import org.yuzu.yuzu_emu.features.settings.model.IntSetting
|
||||||
|
|
||||||
|
class GpuUnswizzleSetting(
|
||||||
|
@StringRes titleId: Int = 0,
|
||||||
|
titleString: String = "",
|
||||||
|
@StringRes descriptionId: Int = 0,
|
||||||
|
descriptionString: String = "",
|
||||||
|
@ArrayRes val textureSizeChoicesId: Int,
|
||||||
|
@ArrayRes val textureSizeValuesId: Int,
|
||||||
|
@ArrayRes val streamSizeChoicesId: Int,
|
||||||
|
@ArrayRes val streamSizeValuesId: Int,
|
||||||
|
@ArrayRes val chunkSizeChoicesId: Int,
|
||||||
|
@ArrayRes val chunkSizeValuesId: Int
|
||||||
|
) : SettingsItem(
|
||||||
|
object : AbstractSetting {
|
||||||
|
override val key: String = SettingsItem.GPU_UNSWIZZLE_COMBINED
|
||||||
|
override val defaultValue: Any = false
|
||||||
|
override val isSaveable = true
|
||||||
|
override val isRuntimeModifiable = true
|
||||||
|
override val isSwitchable = true
|
||||||
|
override fun getValueAsString(needsGlobal: Boolean): String = "combined"
|
||||||
|
override fun reset() {
|
||||||
|
BooleanSetting.GPU_UNSWIZZLE_ENABLED.reset()
|
||||||
|
IntSetting.GPU_UNSWIZZLE_TEXTURE_SIZE.reset()
|
||||||
|
IntSetting.GPU_UNSWIZZLE_STREAM_SIZE.reset()
|
||||||
|
IntSetting.GPU_UNSWIZZLE_CHUNK_SIZE.reset()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
titleId,
|
||||||
|
titleString,
|
||||||
|
descriptionId,
|
||||||
|
descriptionString
|
||||||
|
) {
|
||||||
|
override val type = SettingsItem.TYPE_GPU_UNSWIZZLE
|
||||||
|
|
||||||
|
// Check if GPU unswizzle is enabled via the dedicated boolean setting
|
||||||
|
fun isEnabled(needsGlobal: Boolean = false): Boolean =
|
||||||
|
BooleanSetting.GPU_UNSWIZZLE_ENABLED.getBoolean(needsGlobal)
|
||||||
|
|
||||||
|
fun setEnabled(value: Boolean) =
|
||||||
|
BooleanSetting.GPU_UNSWIZZLE_ENABLED.setBoolean(value)
|
||||||
|
|
||||||
|
fun enable() = setEnabled(true)
|
||||||
|
|
||||||
|
fun disable() = setEnabled(false)
|
||||||
|
|
||||||
|
fun getTextureSize(needsGlobal: Boolean = false): Int =
|
||||||
|
IntSetting.GPU_UNSWIZZLE_TEXTURE_SIZE.getInt(needsGlobal)
|
||||||
|
|
||||||
|
fun setTextureSize(value: Int) =
|
||||||
|
IntSetting.GPU_UNSWIZZLE_TEXTURE_SIZE.setInt(value)
|
||||||
|
|
||||||
|
fun getStreamSize(needsGlobal: Boolean = false): Int =
|
||||||
|
IntSetting.GPU_UNSWIZZLE_STREAM_SIZE.getInt(needsGlobal)
|
||||||
|
|
||||||
|
fun setStreamSize(value: Int) =
|
||||||
|
IntSetting.GPU_UNSWIZZLE_STREAM_SIZE.setInt(value)
|
||||||
|
|
||||||
|
fun getChunkSize(needsGlobal: Boolean = false): Int =
|
||||||
|
IntSetting.GPU_UNSWIZZLE_CHUNK_SIZE.getInt(needsGlobal)
|
||||||
|
|
||||||
|
fun setChunkSize(value: Int) =
|
||||||
|
IntSetting.GPU_UNSWIZZLE_CHUNK_SIZE.setInt(value)
|
||||||
|
|
||||||
|
fun reset() = setting.reset()
|
||||||
|
}
|
||||||
@@ -104,8 +104,10 @@ abstract class SettingsItem(
|
|||||||
const val TYPE_SPINBOX = 12
|
const val TYPE_SPINBOX = 12
|
||||||
const val TYPE_LAUNCHABLE = 13
|
const val TYPE_LAUNCHABLE = 13
|
||||||
const val TYPE_PATH = 14
|
const val TYPE_PATH = 14
|
||||||
|
const val TYPE_GPU_UNSWIZZLE = 15
|
||||||
|
|
||||||
const val FASTMEM_COMBINED = "fastmem_combined"
|
const val FASTMEM_COMBINED = "fastmem_combined"
|
||||||
|
const val GPU_UNSWIZZLE_COMBINED = "gpu_unswizzle_combined"
|
||||||
|
|
||||||
val emptySetting = object : AbstractSetting {
|
val emptySetting = object : AbstractSetting {
|
||||||
override val key: String = ""
|
override val key: String = ""
|
||||||
@@ -123,13 +125,6 @@ abstract class SettingsItem(
|
|||||||
// List of all general
|
// List of all general
|
||||||
val settingsItems = HashMap<String, SettingsItem>().apply {
|
val settingsItems = HashMap<String, SettingsItem>().apply {
|
||||||
put(StringInputSetting(StringSetting.DEVICE_NAME, titleId = R.string.device_name))
|
put(StringInputSetting(StringSetting.DEVICE_NAME, titleId = R.string.device_name))
|
||||||
put(
|
|
||||||
SwitchSetting(
|
|
||||||
BooleanSetting.USE_LRU_CACHE,
|
|
||||||
titleId = R.string.use_lru_cache,
|
|
||||||
descriptionId = R.string.use_lru_cache_description
|
|
||||||
)
|
|
||||||
)
|
|
||||||
put(
|
put(
|
||||||
SwitchSetting(
|
SwitchSetting(
|
||||||
BooleanSetting.RENDERER_USE_SPEED_LIMIT,
|
BooleanSetting.RENDERER_USE_SPEED_LIMIT,
|
||||||
@@ -185,6 +180,26 @@ abstract class SettingsItem(
|
|||||||
units = "%"
|
units = "%"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
put(
|
||||||
|
SliderSetting(
|
||||||
|
ShortSetting.RENDERER_TURBO_SPEED_LIMIT,
|
||||||
|
titleId = R.string.turbo_speed_limit,
|
||||||
|
descriptionId = R.string.turbo_speed_limit_description,
|
||||||
|
min = 1,
|
||||||
|
max = 400,
|
||||||
|
units = "%"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
put(
|
||||||
|
SliderSetting(
|
||||||
|
ShortSetting.RENDERER_SLOW_SPEED_LIMIT,
|
||||||
|
titleId = R.string.slow_speed_limit,
|
||||||
|
descriptionId = R.string.slow_speed_limit_description,
|
||||||
|
min = 1,
|
||||||
|
max = 400,
|
||||||
|
units = "%"
|
||||||
|
)
|
||||||
|
)
|
||||||
put(
|
put(
|
||||||
SingleChoiceSetting(
|
SingleChoiceSetting(
|
||||||
IntSetting.CPU_BACKEND,
|
IntSetting.CPU_BACKEND,
|
||||||
@@ -648,6 +663,15 @@ abstract class SettingsItem(
|
|||||||
valuesId = R.array.dmaAccuracyValues
|
valuesId = R.array.dmaAccuracyValues
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
put(
|
||||||
|
SingleChoiceSetting(
|
||||||
|
IntSetting.FRAME_PACING_MODE,
|
||||||
|
titleId = R.string.frame_pacing_mode,
|
||||||
|
descriptionId = R.string.frame_pacing_mode_description,
|
||||||
|
choicesId = R.array.framePacingModeNames,
|
||||||
|
valuesId = R.array.framePacingModeValues
|
||||||
|
)
|
||||||
|
)
|
||||||
put(
|
put(
|
||||||
SwitchSetting(
|
SwitchSetting(
|
||||||
BooleanSetting.RENDERER_ASYNCHRONOUS_SHADERS,
|
BooleanSetting.RENDERER_ASYNCHRONOUS_SHADERS,
|
||||||
@@ -691,6 +715,18 @@ abstract class SettingsItem(
|
|||||||
valuesId = R.array.gpuSwizzleChunkValues
|
valuesId = R.array.gpuSwizzleChunkValues
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
put(
|
||||||
|
GpuUnswizzleSetting(
|
||||||
|
titleId = R.string.gpu_unswizzle_settings,
|
||||||
|
descriptionId = R.string.gpu_unswizzle_settings_description,
|
||||||
|
textureSizeChoicesId = R.array.gpuTextureSizeSwizzleEntries,
|
||||||
|
textureSizeValuesId = R.array.gpuTextureSizeSwizzleValues,
|
||||||
|
streamSizeChoicesId = R.array.gpuSwizzleEntries,
|
||||||
|
streamSizeValuesId = R.array.gpuSwizzleValues,
|
||||||
|
chunkSizeChoicesId = R.array.gpuSwizzleChunkEntries,
|
||||||
|
chunkSizeValuesId = R.array.gpuSwizzleChunkValues
|
||||||
|
)
|
||||||
|
)
|
||||||
put(
|
put(
|
||||||
SingleChoiceSetting(
|
SingleChoiceSetting(
|
||||||
IntSetting.FAST_CPU_TIME,
|
IntSetting.FAST_CPU_TIME,
|
||||||
|
|||||||
@@ -0,0 +1,206 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
package org.yuzu.yuzu_emu.features.settings.ui
|
||||||
|
|
||||||
|
import android.app.Dialog
|
||||||
|
import android.content.DialogInterface
|
||||||
|
import android.os.Bundle
|
||||||
|
import android.view.LayoutInflater
|
||||||
|
import android.widget.ArrayAdapter
|
||||||
|
import androidx.fragment.app.DialogFragment
|
||||||
|
import androidx.fragment.app.activityViewModels
|
||||||
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
|
import org.yuzu.yuzu_emu.R
|
||||||
|
import org.yuzu.yuzu_emu.databinding.DialogGpuUnswizzleBinding
|
||||||
|
import org.yuzu.yuzu_emu.features.settings.model.view.GpuUnswizzleSetting
|
||||||
|
|
||||||
|
class GpuUnswizzleDialogFragment : DialogFragment() {
|
||||||
|
private var position = 0
|
||||||
|
private val settingsViewModel: SettingsViewModel by activityViewModels()
|
||||||
|
private lateinit var binding: DialogGpuUnswizzleBinding
|
||||||
|
|
||||||
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
|
super.onCreate(savedInstanceState)
|
||||||
|
position = requireArguments().getInt(POSITION)
|
||||||
|
|
||||||
|
if (settingsViewModel.clickedItem == null) dismiss()
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
||||||
|
binding = DialogGpuUnswizzleBinding.inflate(LayoutInflater.from(requireContext()))
|
||||||
|
val item = settingsViewModel.clickedItem as GpuUnswizzleSetting
|
||||||
|
|
||||||
|
// Setup texture size dropdown
|
||||||
|
val textureSizeEntries = resources.getStringArray(item.textureSizeChoicesId)
|
||||||
|
val textureSizeValues = resources.getIntArray(item.textureSizeValuesId)
|
||||||
|
val textureSizeAdapter = ArrayAdapter(
|
||||||
|
requireContext(),
|
||||||
|
android.R.layout.simple_dropdown_item_1line,
|
||||||
|
textureSizeEntries.toMutableList()
|
||||||
|
)
|
||||||
|
binding.dropdownTextureSize.setAdapter(textureSizeAdapter)
|
||||||
|
|
||||||
|
// Setup stream size dropdown
|
||||||
|
val streamSizeEntries = resources.getStringArray(item.streamSizeChoicesId)
|
||||||
|
val streamSizeValues = resources.getIntArray(item.streamSizeValuesId)
|
||||||
|
val streamSizeAdapter = ArrayAdapter(
|
||||||
|
requireContext(),
|
||||||
|
android.R.layout.simple_dropdown_item_1line,
|
||||||
|
streamSizeEntries.toMutableList()
|
||||||
|
)
|
||||||
|
binding.dropdownStreamSize.setAdapter(streamSizeAdapter)
|
||||||
|
|
||||||
|
// Setup chunk size dropdown
|
||||||
|
val chunkSizeEntries = resources.getStringArray(item.chunkSizeChoicesId)
|
||||||
|
val chunkSizeValues = resources.getIntArray(item.chunkSizeValuesId)
|
||||||
|
val chunkSizeAdapter = ArrayAdapter(
|
||||||
|
requireContext(),
|
||||||
|
android.R.layout.simple_dropdown_item_1line,
|
||||||
|
chunkSizeEntries.toMutableList()
|
||||||
|
)
|
||||||
|
binding.dropdownChunkSize.setAdapter(chunkSizeAdapter)
|
||||||
|
|
||||||
|
// Load current values
|
||||||
|
val isEnabled = item.isEnabled()
|
||||||
|
binding.switchEnable.isChecked = isEnabled
|
||||||
|
|
||||||
|
if (isEnabled) {
|
||||||
|
val textureSizeIndex = textureSizeValues.indexOf(item.getTextureSize())
|
||||||
|
if (textureSizeIndex >= 0) {
|
||||||
|
binding.dropdownTextureSize.setText(textureSizeEntries[textureSizeIndex], false)
|
||||||
|
}
|
||||||
|
|
||||||
|
val streamSizeIndex = streamSizeValues.indexOf(item.getStreamSize())
|
||||||
|
if (streamSizeIndex >= 0) {
|
||||||
|
binding.dropdownStreamSize.setText(streamSizeEntries[streamSizeIndex], false)
|
||||||
|
}
|
||||||
|
|
||||||
|
val chunkSizeIndex = chunkSizeValues.indexOf(item.getChunkSize())
|
||||||
|
if (chunkSizeIndex >= 0) {
|
||||||
|
binding.dropdownChunkSize.setText(chunkSizeEntries[chunkSizeIndex], false)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// Set default/recommended values when disabling
|
||||||
|
binding.dropdownTextureSize.setText(textureSizeEntries[3], false)
|
||||||
|
binding.dropdownStreamSize.setText(streamSizeEntries[3], false)
|
||||||
|
binding.dropdownChunkSize.setText(chunkSizeEntries[3], false)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Clear adapter filters after setText to fix rotation bug
|
||||||
|
textureSizeAdapter.filter.filter(null)
|
||||||
|
streamSizeAdapter.filter.filter(null)
|
||||||
|
chunkSizeAdapter.filter.filter(null)
|
||||||
|
|
||||||
|
// Enable/disable dropdowns based on switch state
|
||||||
|
updateDropdownsState(isEnabled)
|
||||||
|
binding.switchEnable.setOnCheckedChangeListener { _, checked ->
|
||||||
|
updateDropdownsState(checked)
|
||||||
|
}
|
||||||
|
|
||||||
|
val dialog = MaterialAlertDialogBuilder(requireContext())
|
||||||
|
.setTitle(item.title)
|
||||||
|
.setView(binding.root)
|
||||||
|
.create()
|
||||||
|
|
||||||
|
// Setup button listeners
|
||||||
|
binding.btnDefault.setOnClickListener {
|
||||||
|
// Reset to defaults
|
||||||
|
item.reset()
|
||||||
|
// Refresh values with adapters reset
|
||||||
|
val textureSizeIndex = textureSizeValues.indexOf(item.getTextureSize())
|
||||||
|
if (textureSizeIndex >= 0) {
|
||||||
|
binding.dropdownTextureSize.setText(textureSizeEntries[textureSizeIndex], false)
|
||||||
|
}
|
||||||
|
val streamSizeIndex = streamSizeValues.indexOf(item.getStreamSize())
|
||||||
|
if (streamSizeIndex >= 0) {
|
||||||
|
binding.dropdownStreamSize.setText(streamSizeEntries[streamSizeIndex], false)
|
||||||
|
}
|
||||||
|
val chunkSizeIndex = chunkSizeValues.indexOf(item.getChunkSize())
|
||||||
|
if (chunkSizeIndex >= 0) {
|
||||||
|
binding.dropdownChunkSize.setText(chunkSizeEntries[chunkSizeIndex], false)
|
||||||
|
}
|
||||||
|
// Clear filters
|
||||||
|
textureSizeAdapter.filter.filter(null)
|
||||||
|
streamSizeAdapter.filter.filter(null)
|
||||||
|
chunkSizeAdapter.filter.filter(null)
|
||||||
|
|
||||||
|
settingsViewModel.setAdapterItemChanged(position)
|
||||||
|
settingsViewModel.setShouldReloadSettingsList(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
binding.btnCancel.setOnClickListener {
|
||||||
|
dialog.dismiss()
|
||||||
|
}
|
||||||
|
|
||||||
|
binding.btnOk.setOnClickListener {
|
||||||
|
if (binding.switchEnable.isChecked) {
|
||||||
|
item.enable()
|
||||||
|
// Save the selected values
|
||||||
|
val selectedTextureIndex = textureSizeEntries.indexOf(
|
||||||
|
binding.dropdownTextureSize.text.toString()
|
||||||
|
)
|
||||||
|
if (selectedTextureIndex >= 0) {
|
||||||
|
item.setTextureSize(textureSizeValues[selectedTextureIndex])
|
||||||
|
}
|
||||||
|
|
||||||
|
val selectedStreamIndex = streamSizeEntries.indexOf(
|
||||||
|
binding.dropdownStreamSize.text.toString()
|
||||||
|
)
|
||||||
|
if (selectedStreamIndex >= 0) {
|
||||||
|
item.setStreamSize(streamSizeValues[selectedStreamIndex])
|
||||||
|
}
|
||||||
|
|
||||||
|
val selectedChunkIndex = chunkSizeEntries.indexOf(
|
||||||
|
binding.dropdownChunkSize.text.toString()
|
||||||
|
)
|
||||||
|
if (selectedChunkIndex >= 0) {
|
||||||
|
item.setChunkSize(chunkSizeValues[selectedChunkIndex])
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// Disable GPU unswizzle
|
||||||
|
item.disable()
|
||||||
|
}
|
||||||
|
|
||||||
|
settingsViewModel.setAdapterItemChanged(position)
|
||||||
|
settingsViewModel.setShouldReloadSettingsList(true)
|
||||||
|
dialog.dismiss()
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ensure filters are cleared after dialog is shown
|
||||||
|
binding.root.post {
|
||||||
|
textureSizeAdapter.filter.filter(null)
|
||||||
|
streamSizeAdapter.filter.filter(null)
|
||||||
|
chunkSizeAdapter.filter.filter(null)
|
||||||
|
}
|
||||||
|
|
||||||
|
return dialog
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun updateDropdownsState(enabled: Boolean) {
|
||||||
|
binding.layoutTextureSize.isEnabled = enabled
|
||||||
|
binding.dropdownTextureSize.isEnabled = enabled
|
||||||
|
binding.layoutStreamSize.isEnabled = enabled
|
||||||
|
binding.dropdownStreamSize.isEnabled = enabled
|
||||||
|
binding.layoutChunkSize.isEnabled = enabled
|
||||||
|
binding.dropdownChunkSize.isEnabled = enabled
|
||||||
|
}
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val TAG = "GpuUnswizzleDialogFragment"
|
||||||
|
const val POSITION = "Position"
|
||||||
|
|
||||||
|
fun newInstance(
|
||||||
|
settingsViewModel: SettingsViewModel,
|
||||||
|
item: GpuUnswizzleSetting,
|
||||||
|
position: Int
|
||||||
|
): GpuUnswizzleDialogFragment {
|
||||||
|
val dialog = GpuUnswizzleDialogFragment()
|
||||||
|
val args = Bundle()
|
||||||
|
args.putInt(POSITION, position)
|
||||||
|
dialog.arguments = args
|
||||||
|
settingsViewModel.clickedItem = item
|
||||||
|
return dialog
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
package org.yuzu.yuzu_emu.features.settings.ui
|
package org.yuzu.yuzu_emu.features.settings.ui
|
||||||
@@ -101,6 +101,11 @@ class SettingsAdapter(
|
|||||||
SettingsItem.TYPE_PATH -> {
|
SettingsItem.TYPE_PATH -> {
|
||||||
PathViewHolder(ListItemSettingBinding.inflate(inflater), this)
|
PathViewHolder(ListItemSettingBinding.inflate(inflater), this)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SettingsItem.TYPE_GPU_UNSWIZZLE -> {
|
||||||
|
GpuUnswizzleViewHolder(ListItemSettingBinding.inflate(inflater), this)
|
||||||
|
}
|
||||||
|
|
||||||
else -> {
|
else -> {
|
||||||
HeaderViewHolder(ListItemSettingsHeaderBinding.inflate(inflater), this)
|
HeaderViewHolder(ListItemSettingsHeaderBinding.inflate(inflater), this)
|
||||||
}
|
}
|
||||||
@@ -474,6 +479,14 @@ class SettingsAdapter(
|
|||||||
settingsViewModel.setShouldShowPathResetDialog(true)
|
settingsViewModel.setShouldShowPathResetDialog(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun onGpuUnswizzleClick(item: GpuUnswizzleSetting, position: Int) {
|
||||||
|
GpuUnswizzleDialogFragment.newInstance(
|
||||||
|
settingsViewModel,
|
||||||
|
item,
|
||||||
|
position
|
||||||
|
).show(fragment.childFragmentManager, GpuUnswizzleDialogFragment.TAG)
|
||||||
|
}
|
||||||
|
|
||||||
private class DiffCallback : DiffUtil.ItemCallback<SettingsItem>() {
|
private class DiffCallback : DiffUtil.ItemCallback<SettingsItem>() {
|
||||||
override fun areItemsTheSame(oldItem: SettingsItem, newItem: SettingsItem): Boolean {
|
override fun areItemsTheSame(oldItem: SettingsItem, newItem: SettingsItem): Boolean {
|
||||||
return oldItem.setting.key == newItem.setting.key
|
return oldItem.setting.key == newItem.setting.key
|
||||||
|
|||||||
@@ -227,6 +227,8 @@ class SettingsFragmentPresenter(
|
|||||||
add(StringSetting.DEVICE_NAME.key)
|
add(StringSetting.DEVICE_NAME.key)
|
||||||
add(BooleanSetting.RENDERER_USE_SPEED_LIMIT.key)
|
add(BooleanSetting.RENDERER_USE_SPEED_LIMIT.key)
|
||||||
add(ShortSetting.RENDERER_SPEED_LIMIT.key)
|
add(ShortSetting.RENDERER_SPEED_LIMIT.key)
|
||||||
|
add(ShortSetting.RENDERER_TURBO_SPEED_LIMIT.key)
|
||||||
|
add(ShortSetting.RENDERER_SLOW_SPEED_LIMIT.key)
|
||||||
add(BooleanSetting.USE_DOCKED_MODE.key)
|
add(BooleanSetting.USE_DOCKED_MODE.key)
|
||||||
add(IntSetting.REGION_INDEX.key)
|
add(IntSetting.REGION_INDEX.key)
|
||||||
add(IntSetting.LANGUAGE_INDEX.key)
|
add(IntSetting.LANGUAGE_INDEX.key)
|
||||||
@@ -235,7 +237,6 @@ class SettingsFragmentPresenter(
|
|||||||
|
|
||||||
add(HeaderSetting(R.string.cpu))
|
add(HeaderSetting(R.string.cpu))
|
||||||
add(IntSetting.FAST_CPU_TIME.key)
|
add(IntSetting.FAST_CPU_TIME.key)
|
||||||
add(BooleanSetting.USE_LRU_CACHE.key)
|
|
||||||
add(BooleanSetting.CORE_SYNC_CORE_SPEED.key)
|
add(BooleanSetting.CORE_SYNC_CORE_SPEED.key)
|
||||||
|
|
||||||
add(IntSetting.MEMORY_LAYOUT.key)
|
add(IntSetting.MEMORY_LAYOUT.key)
|
||||||
@@ -266,6 +267,7 @@ class SettingsFragmentPresenter(
|
|||||||
|
|
||||||
add(IntSetting.RENDERER_ACCURACY.key)
|
add(IntSetting.RENDERER_ACCURACY.key)
|
||||||
add(IntSetting.DMA_ACCURACY.key)
|
add(IntSetting.DMA_ACCURACY.key)
|
||||||
|
add(IntSetting.FRAME_PACING_MODE.key)
|
||||||
add(IntSetting.MAX_ANISOTROPY.key)
|
add(IntSetting.MAX_ANISOTROPY.key)
|
||||||
add(IntSetting.RENDERER_VRAM_USAGE_MODE.key)
|
add(IntSetting.RENDERER_VRAM_USAGE_MODE.key)
|
||||||
add(IntSetting.RENDERER_ASTC_DECODE_METHOD.key)
|
add(IntSetting.RENDERER_ASTC_DECODE_METHOD.key)
|
||||||
@@ -283,9 +285,7 @@ class SettingsFragmentPresenter(
|
|||||||
add(BooleanSetting.SKIP_CPU_INNER_INVALIDATION.key)
|
add(BooleanSetting.SKIP_CPU_INNER_INVALIDATION.key)
|
||||||
add(BooleanSetting.FIX_BLOOM_EFFECTS.key)
|
add(BooleanSetting.FIX_BLOOM_EFFECTS.key)
|
||||||
add(BooleanSetting.RENDERER_ASYNCHRONOUS_SHADERS.key)
|
add(BooleanSetting.RENDERER_ASYNCHRONOUS_SHADERS.key)
|
||||||
add(IntSetting.GPU_UNSWIZZLE_TEXTURE_SIZE.key)
|
add(SettingsItem.GPU_UNSWIZZLE_COMBINED)
|
||||||
add(IntSetting.GPU_UNSWIZZLE_STREAM_SIZE.key)
|
|
||||||
add(IntSetting.GPU_UNSWIZZLE_CHUNK_SIZE.key)
|
|
||||||
|
|
||||||
add(HeaderSetting(R.string.extensions))
|
add(HeaderSetting(R.string.extensions))
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,71 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
package org.yuzu.yuzu_emu.features.settings.ui.viewholder
|
||||||
|
|
||||||
|
import android.view.View
|
||||||
|
import org.yuzu.yuzu_emu.R
|
||||||
|
import org.yuzu.yuzu_emu.databinding.ListItemSettingBinding
|
||||||
|
import org.yuzu.yuzu_emu.features.settings.model.view.GpuUnswizzleSetting
|
||||||
|
import org.yuzu.yuzu_emu.features.settings.model.view.SettingsItem
|
||||||
|
import org.yuzu.yuzu_emu.features.settings.ui.SettingsAdapter
|
||||||
|
import org.yuzu.yuzu_emu.utils.ViewUtils.setVisible
|
||||||
|
|
||||||
|
class GpuUnswizzleViewHolder(val binding: ListItemSettingBinding, adapter: SettingsAdapter) :
|
||||||
|
SettingViewHolder(binding.root, adapter) {
|
||||||
|
private lateinit var setting: GpuUnswizzleSetting
|
||||||
|
|
||||||
|
override fun bind(item: SettingsItem) {
|
||||||
|
setting = item as GpuUnswizzleSetting
|
||||||
|
binding.textSettingName.text = setting.title
|
||||||
|
binding.textSettingDescription.setVisible(item.description.isNotEmpty())
|
||||||
|
binding.textSettingDescription.text = item.description
|
||||||
|
|
||||||
|
binding.textSettingValue.setVisible(true)
|
||||||
|
val resMgr = binding.root.context.resources
|
||||||
|
|
||||||
|
if (setting.isEnabled()) {
|
||||||
|
// Show a summary of current settings
|
||||||
|
val textureSizeEntries = resMgr.getStringArray(setting.textureSizeChoicesId)
|
||||||
|
val textureSizeValues = resMgr.getIntArray(setting.textureSizeValuesId)
|
||||||
|
val textureSizeIndex = textureSizeValues.indexOf(setting.getTextureSize())
|
||||||
|
val textureSizeLabel = if (textureSizeIndex >= 0) textureSizeEntries[textureSizeIndex] else "?"
|
||||||
|
|
||||||
|
val streamSizeEntries = resMgr.getStringArray(setting.streamSizeChoicesId)
|
||||||
|
val streamSizeValues = resMgr.getIntArray(setting.streamSizeValuesId)
|
||||||
|
val streamSizeIndex = streamSizeValues.indexOf(setting.getStreamSize())
|
||||||
|
val streamSizeLabel = if (streamSizeIndex >= 0) streamSizeEntries[streamSizeIndex] else "?"
|
||||||
|
|
||||||
|
val chunkSizeEntries = resMgr.getStringArray(setting.chunkSizeChoicesId)
|
||||||
|
val chunkSizeValues = resMgr.getIntArray(setting.chunkSizeValuesId)
|
||||||
|
val chunkSizeIndex = chunkSizeValues.indexOf(setting.getChunkSize())
|
||||||
|
val chunkSizeLabel = if (chunkSizeIndex >= 0) chunkSizeEntries[chunkSizeIndex] else "?"
|
||||||
|
|
||||||
|
binding.textSettingValue.text = "$textureSizeLabel ⋅ $streamSizeLabel ⋅ $chunkSizeLabel"
|
||||||
|
} else {
|
||||||
|
binding.textSettingValue.text = resMgr.getString(R.string.gpu_unswizzle_disabled)
|
||||||
|
}
|
||||||
|
|
||||||
|
binding.buttonClear.setVisible(setting.clearable)
|
||||||
|
binding.buttonClear.setOnClickListener {
|
||||||
|
adapter.onClearClick(setting, bindingAdapterPosition)
|
||||||
|
}
|
||||||
|
|
||||||
|
setStyle(setting.isEditable, binding)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onClick(clicked: View) {
|
||||||
|
if (!setting.isEditable) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
adapter.onGpuUnswizzleClick(setting, bindingAdapterPosition)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onLongClick(clicked: View): Boolean {
|
||||||
|
if (setting.isEditable) {
|
||||||
|
return adapter.onLongClick(setting, bindingAdapterPosition)
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,459 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
package org.yuzu.yuzu_emu.fragments
|
||||||
|
|
||||||
|
import android.app.Activity
|
||||||
|
import android.content.Intent
|
||||||
|
import android.graphics.Bitmap
|
||||||
|
import android.graphics.BitmapFactory
|
||||||
|
import android.graphics.ImageDecoder
|
||||||
|
import android.net.Uri
|
||||||
|
import android.os.Build
|
||||||
|
import android.os.Bundle
|
||||||
|
import android.provider.MediaStore
|
||||||
|
import android.view.LayoutInflater
|
||||||
|
import android.view.View
|
||||||
|
import android.view.ViewGroup
|
||||||
|
import androidx.activity.result.contract.ActivityResultContracts
|
||||||
|
import androidx.core.view.ViewCompat
|
||||||
|
import androidx.core.view.WindowInsetsCompat
|
||||||
|
import androidx.core.view.updatePadding
|
||||||
|
import androidx.core.widget.doAfterTextChanged
|
||||||
|
import androidx.fragment.app.Fragment
|
||||||
|
import androidx.fragment.app.activityViewModels
|
||||||
|
import androidx.lifecycle.lifecycleScope
|
||||||
|
import androidx.navigation.fragment.findNavController
|
||||||
|
import androidx.recyclerview.widget.GridLayoutManager
|
||||||
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
|
import com.google.android.material.transition.MaterialSharedAxis
|
||||||
|
import kotlinx.coroutines.Dispatchers
|
||||||
|
import kotlinx.coroutines.launch
|
||||||
|
import kotlinx.coroutines.withContext
|
||||||
|
import org.yuzu.yuzu_emu.NativeLibrary
|
||||||
|
import org.yuzu.yuzu_emu.R
|
||||||
|
import org.yuzu.yuzu_emu.adapters.FirmwareAvatarAdapter
|
||||||
|
import org.yuzu.yuzu_emu.databinding.FragmentEditUserDialogBinding
|
||||||
|
import org.yuzu.yuzu_emu.model.HomeViewModel
|
||||||
|
import org.yuzu.yuzu_emu.model.ProfileUtils
|
||||||
|
import org.yuzu.yuzu_emu.model.UserProfile
|
||||||
|
import java.io.File
|
||||||
|
import java.io.FileOutputStream
|
||||||
|
import androidx.core.graphics.scale
|
||||||
|
import androidx.core.graphics.createBitmap
|
||||||
|
|
||||||
|
class EditUserDialogFragment : Fragment() {
|
||||||
|
private var _binding: FragmentEditUserDialogBinding? = null
|
||||||
|
private val binding get() = _binding!!
|
||||||
|
|
||||||
|
private val homeViewModel: HomeViewModel by activityViewModels()
|
||||||
|
|
||||||
|
private var currentUUID: String = ""
|
||||||
|
private var isEditMode = false
|
||||||
|
private var selectedImageUri: Uri? = null
|
||||||
|
private var selectedFirmwareAvatar: Bitmap? = null
|
||||||
|
private var hasCustomImage = false
|
||||||
|
private var revertedToDefault = false
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
private const val ARG_UUID = "uuid"
|
||||||
|
private const val ARG_USERNAME = "username"
|
||||||
|
|
||||||
|
fun newInstance(profile: UserProfile?): EditUserDialogFragment {
|
||||||
|
val fragment = EditUserDialogFragment()
|
||||||
|
profile?.let {
|
||||||
|
val args = Bundle()
|
||||||
|
args.putString(ARG_UUID, it.uuid)
|
||||||
|
args.putString(ARG_USERNAME, it.username)
|
||||||
|
fragment.arguments = args
|
||||||
|
}
|
||||||
|
return fragment
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private val imagePickerLauncher = registerForActivityResult(
|
||||||
|
ActivityResultContracts.StartActivityForResult()
|
||||||
|
) { result ->
|
||||||
|
if (result.resultCode == Activity.RESULT_OK) {
|
||||||
|
result.data?.data?.let { uri ->
|
||||||
|
selectedImageUri = uri
|
||||||
|
loadImage(uri)
|
||||||
|
hasCustomImage = true
|
||||||
|
binding.buttonRevertImage.visibility = View.VISIBLE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
|
super.onCreate(savedInstanceState)
|
||||||
|
enterTransition = MaterialSharedAxis(MaterialSharedAxis.X, true)
|
||||||
|
returnTransition = MaterialSharedAxis(MaterialSharedAxis.X, false)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onCreateView(
|
||||||
|
inflater: LayoutInflater,
|
||||||
|
container: ViewGroup?,
|
||||||
|
savedInstanceState: Bundle?
|
||||||
|
): View {
|
||||||
|
_binding = FragmentEditUserDialogBinding.inflate(layoutInflater)
|
||||||
|
return binding.root
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||||
|
super.onViewCreated(view, savedInstanceState)
|
||||||
|
homeViewModel.setStatusBarShadeVisibility(visible = false)
|
||||||
|
|
||||||
|
val existingUUID = arguments?.getString(ARG_UUID)
|
||||||
|
val existingUsername = arguments?.getString(ARG_USERNAME)
|
||||||
|
|
||||||
|
if (existingUUID != null && existingUsername != null) {
|
||||||
|
isEditMode = true
|
||||||
|
currentUUID = existingUUID
|
||||||
|
binding.toolbarNewUser.title = getString(R.string.profile_edit_user)
|
||||||
|
binding.editUsername.setText(existingUsername)
|
||||||
|
binding.textUuid.text = formatUUID(existingUUID)
|
||||||
|
binding.buttonGenerateUuid.visibility = View.GONE
|
||||||
|
|
||||||
|
val imagePath = NativeLibrary.getUserImagePath(existingUUID)
|
||||||
|
val imageFile = File(imagePath)
|
||||||
|
if (imageFile.exists()) {
|
||||||
|
val bitmap = BitmapFactory.decodeFile(imagePath)
|
||||||
|
binding.imageUserAvatar.setImageBitmap(bitmap)
|
||||||
|
hasCustomImage = true
|
||||||
|
binding.buttonRevertImage.visibility = View.VISIBLE
|
||||||
|
} else {
|
||||||
|
loadDefaultAvatar()
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
isEditMode = false
|
||||||
|
currentUUID = ProfileUtils.generateRandomUUID()
|
||||||
|
binding.toolbarNewUser.title = getString(R.string.profile_new_user)
|
||||||
|
binding.textUuid.text = formatUUID(currentUUID)
|
||||||
|
loadDefaultAvatar()
|
||||||
|
}
|
||||||
|
|
||||||
|
binding.toolbarNewUser.setNavigationOnClickListener {
|
||||||
|
findNavController().popBackStack()
|
||||||
|
}
|
||||||
|
|
||||||
|
binding.editUsername.doAfterTextChanged {
|
||||||
|
validateInput()
|
||||||
|
}
|
||||||
|
|
||||||
|
binding.buttonGenerateUuid.setOnClickListener {
|
||||||
|
currentUUID = ProfileUtils.generateRandomUUID()
|
||||||
|
binding.textUuid.text = formatUUID(currentUUID)
|
||||||
|
}
|
||||||
|
|
||||||
|
binding.buttonSelectImage.setOnClickListener {
|
||||||
|
selectImage()
|
||||||
|
}
|
||||||
|
|
||||||
|
binding.buttonRevertImage.setOnClickListener {
|
||||||
|
revertToDefaultImage()
|
||||||
|
}
|
||||||
|
|
||||||
|
if (NativeLibrary.isFirmwareAvailable()) {
|
||||||
|
binding.buttonFirmwareAvatars.visibility = View.VISIBLE
|
||||||
|
binding.buttonFirmwareAvatars.setOnClickListener {
|
||||||
|
showFirmwareAvatarPicker()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
binding.buttonSave.setOnClickListener {
|
||||||
|
saveUser()
|
||||||
|
}
|
||||||
|
|
||||||
|
binding.buttonCancel.setOnClickListener {
|
||||||
|
findNavController().popBackStack()
|
||||||
|
}
|
||||||
|
|
||||||
|
validateInput()
|
||||||
|
setInsets()
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun showFirmwareAvatarPicker() {
|
||||||
|
val dialogView = LayoutInflater.from(requireContext())
|
||||||
|
.inflate(R.layout.dialog_firmware_avatar_picker, null)
|
||||||
|
|
||||||
|
val gridAvatars = dialogView.findViewById<RecyclerView>(R.id.grid_avatars)
|
||||||
|
val progressLoading = dialogView.findViewById<View>(R.id.progress_loading)
|
||||||
|
val textEmpty = dialogView.findViewById<View>(R.id.text_empty)
|
||||||
|
|
||||||
|
val dialog = MaterialAlertDialogBuilder(requireContext())
|
||||||
|
.setTitle(R.string.profile_firmware_avatars)
|
||||||
|
.setView(dialogView)
|
||||||
|
.setNegativeButton(android.R.string.cancel, null)
|
||||||
|
.create()
|
||||||
|
|
||||||
|
dialog.show()
|
||||||
|
|
||||||
|
viewLifecycleOwner.lifecycleScope.launch {
|
||||||
|
val avatars = withContext(Dispatchers.IO) {
|
||||||
|
loadFirmwareAvatars()
|
||||||
|
}
|
||||||
|
|
||||||
|
if (avatars.isEmpty()) {
|
||||||
|
progressLoading.visibility = View.GONE
|
||||||
|
textEmpty.visibility = View.VISIBLE
|
||||||
|
} else {
|
||||||
|
progressLoading.visibility = View.GONE
|
||||||
|
gridAvatars.visibility = View.VISIBLE
|
||||||
|
|
||||||
|
val adapter = FirmwareAvatarAdapter(avatars) { selectedAvatar ->
|
||||||
|
val scaledBitmap = selectedAvatar.scale(256, 256)
|
||||||
|
binding.imageUserAvatar.setImageBitmap(scaledBitmap)
|
||||||
|
selectedFirmwareAvatar = scaledBitmap
|
||||||
|
hasCustomImage = true
|
||||||
|
binding.buttonRevertImage.visibility = View.VISIBLE
|
||||||
|
dialog.dismiss()
|
||||||
|
}
|
||||||
|
|
||||||
|
gridAvatars.apply {
|
||||||
|
layoutManager = GridLayoutManager(requireContext(), 4)
|
||||||
|
this.adapter = adapter
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun loadFirmwareAvatars(): List<Bitmap> {
|
||||||
|
val avatars = mutableListOf<Bitmap>()
|
||||||
|
val count = NativeLibrary.getFirmwareAvatarCount()
|
||||||
|
|
||||||
|
for (i in 0 until count) {
|
||||||
|
try {
|
||||||
|
val imageData = NativeLibrary.getFirmwareAvatarImage(i) ?: continue
|
||||||
|
|
||||||
|
val argbData = IntArray(256 * 256)
|
||||||
|
for (pixel in 0 until 256 * 256) {
|
||||||
|
val offset = pixel * 4
|
||||||
|
val r = imageData[offset].toInt() and 0xFF
|
||||||
|
val g = imageData[offset + 1].toInt() and 0xFF
|
||||||
|
val b = imageData[offset + 2].toInt() and 0xFF
|
||||||
|
val a = imageData[offset + 3].toInt() and 0xFF
|
||||||
|
argbData[pixel] = (a shl 24) or (r shl 16) or (g shl 8) or b
|
||||||
|
}
|
||||||
|
|
||||||
|
val bitmap = Bitmap.createBitmap(argbData, 256, 256, Bitmap.Config.ARGB_8888)
|
||||||
|
avatars.add(bitmap)
|
||||||
|
} catch (e: Exception) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return avatars
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun formatUUID(uuid: String): String {
|
||||||
|
if (uuid.length != 32) return uuid
|
||||||
|
return buildString {
|
||||||
|
append(uuid.substring(0, 8))
|
||||||
|
append("-")
|
||||||
|
append(uuid.substring(8, 12))
|
||||||
|
append("-")
|
||||||
|
append(uuid.substring(12, 16))
|
||||||
|
append("-")
|
||||||
|
append(uuid.substring(16, 20))
|
||||||
|
append("-")
|
||||||
|
append(uuid.substring(20, 32))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun validateInput() {
|
||||||
|
val username = binding.editUsername.text.toString()
|
||||||
|
val isValid = username.isNotEmpty() && username.length <= 32
|
||||||
|
binding.buttonSave.isEnabled = isValid
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun selectImage() {
|
||||||
|
val intent = Intent(Intent.ACTION_PICK).apply {
|
||||||
|
type = "image/*"
|
||||||
|
}
|
||||||
|
imagePickerLauncher.launch(intent)
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun loadImage(uri: Uri) {
|
||||||
|
try {
|
||||||
|
val bitmap = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
||||||
|
val source = ImageDecoder.createSource(requireContext().contentResolver, uri)
|
||||||
|
ImageDecoder.decodeBitmap(source) { decoder, _, _ ->
|
||||||
|
decoder.setTargetSampleSize(1)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
@Suppress("DEPRECATION")
|
||||||
|
MediaStore.Images.Media.getBitmap(requireContext().contentResolver, uri)
|
||||||
|
}
|
||||||
|
|
||||||
|
val croppedBitmap = centerCropBitmap(bitmap, 256, 256)
|
||||||
|
binding.imageUserAvatar.setImageBitmap(croppedBitmap)
|
||||||
|
} catch (e: Exception) {
|
||||||
|
MaterialAlertDialogBuilder(requireContext())
|
||||||
|
.setTitle(R.string.error)
|
||||||
|
.setMessage(getString(R.string.profile_image_load_error, e.message))
|
||||||
|
.setPositiveButton(android.R.string.ok, null)
|
||||||
|
.show()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun loadDefaultAvatar() {
|
||||||
|
val jpegData = NativeLibrary.getDefaultAccountBackupJpeg()
|
||||||
|
val bitmap = BitmapFactory.decodeByteArray(jpegData, 0, jpegData.size)
|
||||||
|
binding.imageUserAvatar.setImageBitmap(bitmap)
|
||||||
|
|
||||||
|
hasCustomImage = false
|
||||||
|
binding.buttonRevertImage.visibility = View.GONE
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun revertToDefaultImage() {
|
||||||
|
selectedImageUri = null
|
||||||
|
selectedFirmwareAvatar = null
|
||||||
|
revertedToDefault = true
|
||||||
|
loadDefaultAvatar()
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun saveUser() {
|
||||||
|
val username = binding.editUsername.text.toString()
|
||||||
|
|
||||||
|
if (isEditMode) {
|
||||||
|
if (NativeLibrary.updateUserUsername(currentUUID, username)) {
|
||||||
|
saveImageIfNeeded()
|
||||||
|
findNavController().popBackStack()
|
||||||
|
} else {
|
||||||
|
showError(getString(R.string.profile_update_failed))
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (NativeLibrary.createUser(currentUUID, username)) {
|
||||||
|
saveImageIfNeeded()
|
||||||
|
findNavController().popBackStack()
|
||||||
|
} else {
|
||||||
|
showError(getString(R.string.profile_create_failed))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun saveImageIfNeeded() {
|
||||||
|
if (revertedToDefault && isEditMode) {
|
||||||
|
val imagePath = NativeLibrary.getUserImagePath(currentUUID)
|
||||||
|
if (imagePath != null) {
|
||||||
|
val imageFile = File(imagePath)
|
||||||
|
if (imageFile.exists()) {
|
||||||
|
imageFile.delete()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!hasCustomImage) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
val bitmapToSave: Bitmap? = when {
|
||||||
|
selectedFirmwareAvatar != null -> selectedFirmwareAvatar
|
||||||
|
selectedImageUri != null -> {
|
||||||
|
val bitmap = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
||||||
|
val source = ImageDecoder.createSource(
|
||||||
|
requireContext().contentResolver,
|
||||||
|
selectedImageUri!!
|
||||||
|
)
|
||||||
|
ImageDecoder.decodeBitmap(source)
|
||||||
|
} else {
|
||||||
|
@Suppress("DEPRECATION")
|
||||||
|
MediaStore.Images.Media.getBitmap(
|
||||||
|
requireContext().contentResolver,
|
||||||
|
selectedImageUri
|
||||||
|
)
|
||||||
|
}
|
||||||
|
centerCropBitmap(bitmap, 256, 256)
|
||||||
|
}
|
||||||
|
|
||||||
|
else -> null
|
||||||
|
}
|
||||||
|
|
||||||
|
if (bitmapToSave == null) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
val tempFile = File(requireContext().cacheDir, "temp_avatar_${currentUUID}.jpg")
|
||||||
|
FileOutputStream(tempFile).use { out ->
|
||||||
|
bitmapToSave.compress(Bitmap.CompressFormat.JPEG, 100, out)
|
||||||
|
}
|
||||||
|
|
||||||
|
NativeLibrary.saveUserImage(currentUUID, tempFile.absolutePath)
|
||||||
|
|
||||||
|
tempFile.delete()
|
||||||
|
} catch (e: Exception) {
|
||||||
|
showError(getString(R.string.profile_image_save_error, e.message))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun centerCropBitmap(source: Bitmap, targetWidth: Int, targetHeight: Int): Bitmap {
|
||||||
|
val sourceWidth = source.width
|
||||||
|
val sourceHeight = source.height
|
||||||
|
|
||||||
|
val scale = maxOf(
|
||||||
|
targetWidth.toFloat() / sourceWidth,
|
||||||
|
targetHeight.toFloat() / sourceHeight
|
||||||
|
)
|
||||||
|
|
||||||
|
val scaledWidth = (sourceWidth * scale).toInt()
|
||||||
|
val scaledHeight = (sourceHeight * scale).toInt()
|
||||||
|
|
||||||
|
val scaledBitmap = source.scale(scaledWidth, scaledHeight)
|
||||||
|
|
||||||
|
val x = (scaledWidth - targetWidth) / 2
|
||||||
|
val y = (scaledHeight - targetHeight) / 2
|
||||||
|
|
||||||
|
return Bitmap.createBitmap(scaledBitmap, x, y, targetWidth, targetHeight)
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun showError(message: String) {
|
||||||
|
MaterialAlertDialogBuilder(requireContext())
|
||||||
|
.setTitle(R.string.error)
|
||||||
|
.setMessage(message)
|
||||||
|
.setPositiveButton(android.R.string.ok, null)
|
||||||
|
.show()
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun setInsets() =
|
||||||
|
ViewCompat.setOnApplyWindowInsetsListener(
|
||||||
|
binding.root
|
||||||
|
) { _: View, windowInsets: WindowInsetsCompat ->
|
||||||
|
val barInsets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars())
|
||||||
|
val cutoutInsets = windowInsets.getInsets(WindowInsetsCompat.Type.displayCutout())
|
||||||
|
|
||||||
|
val leftInset = barInsets.left + cutoutInsets.left
|
||||||
|
val topInset = cutoutInsets.top
|
||||||
|
val rightInset = barInsets.right + cutoutInsets.right
|
||||||
|
val bottomInset = barInsets.bottom + cutoutInsets.bottom
|
||||||
|
|
||||||
|
binding.appbar.updatePadding(
|
||||||
|
left = leftInset,
|
||||||
|
top = topInset,
|
||||||
|
right = rightInset
|
||||||
|
)
|
||||||
|
|
||||||
|
binding.scrollContent.updatePadding(
|
||||||
|
left = leftInset,
|
||||||
|
right = rightInset
|
||||||
|
)
|
||||||
|
|
||||||
|
binding.buttonContainer.updatePadding(
|
||||||
|
left = leftInset,
|
||||||
|
right = rightInset,
|
||||||
|
bottom = bottomInset
|
||||||
|
)
|
||||||
|
|
||||||
|
windowInsets
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
override fun onDestroyView() {
|
||||||
|
super.onDestroyView()
|
||||||
|
_binding = null
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -55,6 +55,7 @@ import androidx.window.layout.WindowInfoTracker
|
|||||||
import androidx.window.layout.WindowLayoutInfo
|
import androidx.window.layout.WindowLayoutInfo
|
||||||
import com.google.android.material.color.MaterialColors
|
import com.google.android.material.color.MaterialColors
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
|
import com.google.android.material.materialswitch.MaterialSwitch
|
||||||
import com.google.android.material.textview.MaterialTextView
|
import com.google.android.material.textview.MaterialTextView
|
||||||
import kotlinx.coroutines.CancellationException
|
import kotlinx.coroutines.CancellationException
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
@@ -1055,11 +1056,47 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
|
|||||||
quickSettings.addPerGameConfigStatusIndicator(container)
|
quickSettings.addPerGameConfigStatusIndicator(container)
|
||||||
}
|
}
|
||||||
|
|
||||||
quickSettings.addBooleanSetting(
|
lateinit var slowSpeed: MaterialSwitch
|
||||||
|
lateinit var turboSpeed: MaterialSwitch
|
||||||
|
|
||||||
|
turboSpeed = quickSettings.addCustomToggle(
|
||||||
|
R.string.turbo_speed_limit,
|
||||||
|
NativeLibrary.isTurboMode(),
|
||||||
|
BooleanSetting.RENDERER_USE_SPEED_LIMIT.getBoolean(false),
|
||||||
|
container
|
||||||
|
) { enabled ->
|
||||||
|
if (enabled)
|
||||||
|
slowSpeed.isChecked = false
|
||||||
|
NativeLibrary.setTurboSpeedLimit(enabled)
|
||||||
|
}!!
|
||||||
|
|
||||||
|
slowSpeed = quickSettings.addCustomToggle(
|
||||||
|
R.string.slow_speed_limit,
|
||||||
|
NativeLibrary.isSlowMode(),
|
||||||
|
BooleanSetting.RENDERER_USE_SPEED_LIMIT.getBoolean(false),
|
||||||
|
container
|
||||||
|
) { enabled ->
|
||||||
|
if (enabled)
|
||||||
|
turboSpeed.isChecked = false
|
||||||
|
NativeLibrary.setSlowSpeedLimit(enabled)
|
||||||
|
}!!
|
||||||
|
|
||||||
|
quickSettings.addCustomToggle(
|
||||||
R.string.frame_limit_enable,
|
R.string.frame_limit_enable,
|
||||||
container,
|
BooleanSetting.RENDERER_USE_SPEED_LIMIT.getBoolean(false),
|
||||||
BooleanSetting.RENDERER_USE_SPEED_LIMIT,
|
true,
|
||||||
)
|
container
|
||||||
|
) { enabled ->
|
||||||
|
if (!enabled) {
|
||||||
|
turboSpeed.isChecked = false
|
||||||
|
slowSpeed.isChecked = false
|
||||||
|
}
|
||||||
|
|
||||||
|
turboSpeed.isEnabled = enabled
|
||||||
|
slowSpeed.isEnabled = enabled
|
||||||
|
|
||||||
|
NativeLibrary.setStandardSpeedLimit(enabled)
|
||||||
|
}!!
|
||||||
|
|
||||||
quickSettings.addSliderSetting(
|
quickSettings.addSliderSetting(
|
||||||
R.string.frame_limit_slider,
|
R.string.frame_limit_slider,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
package org.yuzu.yuzu_emu.fragments
|
package org.yuzu.yuzu_emu.fragments
|
||||||
@@ -110,7 +110,7 @@ class FreedrenoSettingsFragment : Fragment() {
|
|||||||
val commonVars = listOf(
|
val commonVars = listOf(
|
||||||
"TU_DEBUG", "FD_MESA_DEBUG", "IR3_SHADER_DEBUG",
|
"TU_DEBUG", "FD_MESA_DEBUG", "IR3_SHADER_DEBUG",
|
||||||
"FD_RD_DUMP", "FD_RD_DUMP_FRAMES", "FD_RD_DUMP_TESTNAME",
|
"FD_RD_DUMP", "FD_RD_DUMP_FRAMES", "FD_RD_DUMP_TESTNAME",
|
||||||
"TU_BREADCRUMBS"
|
"TU_BREADCRUMBS", "FD_DEV_FEATURES"
|
||||||
)
|
)
|
||||||
|
|
||||||
for (varName in commonVars) {
|
for (varName in commonVars) {
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
@@ -6,11 +9,13 @@ package org.yuzu.yuzu_emu.fragments
|
|||||||
import android.app.Dialog
|
import android.app.Dialog
|
||||||
import android.content.DialogInterface
|
import android.content.DialogInterface
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
|
import android.view.View
|
||||||
import androidx.fragment.app.DialogFragment
|
import androidx.fragment.app.DialogFragment
|
||||||
import androidx.fragment.app.activityViewModels
|
import androidx.fragment.app.activityViewModels
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import org.yuzu.yuzu_emu.R
|
import org.yuzu.yuzu_emu.R
|
||||||
import org.yuzu.yuzu_emu.databinding.DialogFolderPropertiesBinding
|
import org.yuzu.yuzu_emu.databinding.DialogFolderPropertiesBinding
|
||||||
|
import org.yuzu.yuzu_emu.model.DirectoryType
|
||||||
import org.yuzu.yuzu_emu.model.GameDir
|
import org.yuzu.yuzu_emu.model.GameDir
|
||||||
import org.yuzu.yuzu_emu.model.GamesViewModel
|
import org.yuzu.yuzu_emu.model.GamesViewModel
|
||||||
import org.yuzu.yuzu_emu.utils.NativeConfig
|
import org.yuzu.yuzu_emu.utils.NativeConfig
|
||||||
@@ -25,14 +30,18 @@ class GameFolderPropertiesDialogFragment : DialogFragment() {
|
|||||||
val binding = DialogFolderPropertiesBinding.inflate(layoutInflater)
|
val binding = DialogFolderPropertiesBinding.inflate(layoutInflater)
|
||||||
val gameDir = requireArguments().parcelable<GameDir>(GAME_DIR)!!
|
val gameDir = requireArguments().parcelable<GameDir>(GAME_DIR)!!
|
||||||
|
|
||||||
// Restore checkbox state
|
// Hide deepScan for external content, do automatically
|
||||||
binding.deepScanSwitch.isChecked =
|
if (gameDir.type == DirectoryType.EXTERNAL_CONTENT) {
|
||||||
savedInstanceState?.getBoolean(DEEP_SCAN) ?: gameDir.deepScan
|
binding.deepScanSwitch.visibility = View.GONE
|
||||||
|
} else {
|
||||||
|
// Restore checkbox state for game dirs
|
||||||
|
binding.deepScanSwitch.isChecked =
|
||||||
|
savedInstanceState?.getBoolean(DEEP_SCAN) ?: gameDir.deepScan
|
||||||
|
|
||||||
// Ensure that we can get the checkbox state even if the view is destroyed
|
|
||||||
deepScan = binding.deepScanSwitch.isChecked
|
|
||||||
binding.deepScanSwitch.setOnClickListener {
|
|
||||||
deepScan = binding.deepScanSwitch.isChecked
|
deepScan = binding.deepScanSwitch.isChecked
|
||||||
|
binding.deepScanSwitch.setOnClickListener {
|
||||||
|
deepScan = binding.deepScanSwitch.isChecked
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return MaterialAlertDialogBuilder(requireContext())
|
return MaterialAlertDialogBuilder(requireContext())
|
||||||
@@ -41,8 +50,10 @@ class GameFolderPropertiesDialogFragment : DialogFragment() {
|
|||||||
.setPositiveButton(android.R.string.ok) { _: DialogInterface, _: Int ->
|
.setPositiveButton(android.R.string.ok) { _: DialogInterface, _: Int ->
|
||||||
val folderIndex = gamesViewModel.folders.value.indexOf(gameDir)
|
val folderIndex = gamesViewModel.folders.value.indexOf(gameDir)
|
||||||
if (folderIndex != -1) {
|
if (folderIndex != -1) {
|
||||||
gamesViewModel.folders.value[folderIndex].deepScan =
|
if (gameDir.type == DirectoryType.GAME) {
|
||||||
binding.deepScanSwitch.isChecked
|
gamesViewModel.folders.value[folderIndex].deepScan =
|
||||||
|
binding.deepScanSwitch.isChecked
|
||||||
|
}
|
||||||
gamesViewModel.updateGameDirs()
|
gamesViewModel.updateGameDirs()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// SPDX-FileCopyrightText: 2025 Eden Emulator Project
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
package org.yuzu.yuzu_emu.fragments
|
package org.yuzu.yuzu_emu.fragments
|
||||||
@@ -15,11 +15,14 @@ import androidx.fragment.app.Fragment
|
|||||||
import androidx.fragment.app.activityViewModels
|
import androidx.fragment.app.activityViewModels
|
||||||
import androidx.navigation.findNavController
|
import androidx.navigation.findNavController
|
||||||
import androidx.recyclerview.widget.GridLayoutManager
|
import androidx.recyclerview.widget.GridLayoutManager
|
||||||
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import com.google.android.material.transition.MaterialSharedAxis
|
import com.google.android.material.transition.MaterialSharedAxis
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import org.yuzu.yuzu_emu.R
|
import org.yuzu.yuzu_emu.R
|
||||||
import org.yuzu.yuzu_emu.adapters.FolderAdapter
|
import org.yuzu.yuzu_emu.adapters.FolderAdapter
|
||||||
import org.yuzu.yuzu_emu.databinding.FragmentFoldersBinding
|
import org.yuzu.yuzu_emu.databinding.FragmentFoldersBinding
|
||||||
|
import org.yuzu.yuzu_emu.model.DirectoryType
|
||||||
|
import org.yuzu.yuzu_emu.model.GameDir
|
||||||
import org.yuzu.yuzu_emu.model.GamesViewModel
|
import org.yuzu.yuzu_emu.model.GamesViewModel
|
||||||
import org.yuzu.yuzu_emu.model.HomeViewModel
|
import org.yuzu.yuzu_emu.model.HomeViewModel
|
||||||
import org.yuzu.yuzu_emu.ui.main.MainActivity
|
import org.yuzu.yuzu_emu.ui.main.MainActivity
|
||||||
@@ -73,7 +76,25 @@ class GameFoldersFragment : Fragment() {
|
|||||||
|
|
||||||
val mainActivity = requireActivity() as MainActivity
|
val mainActivity = requireActivity() as MainActivity
|
||||||
binding.buttonAdd.setOnClickListener {
|
binding.buttonAdd.setOnClickListener {
|
||||||
mainActivity.getGamesDirectory.launch(Intent(Intent.ACTION_OPEN_DOCUMENT_TREE).data)
|
// Show a model to choose between Game and External Content
|
||||||
|
val options = arrayOf(
|
||||||
|
getString(R.string.games),
|
||||||
|
getString(R.string.external_content)
|
||||||
|
)
|
||||||
|
|
||||||
|
MaterialAlertDialogBuilder(requireContext())
|
||||||
|
.setTitle(R.string.add_folders)
|
||||||
|
.setItems(options) { _, which ->
|
||||||
|
when (which) {
|
||||||
|
0 -> { // Game Folder
|
||||||
|
mainActivity.getGamesDirectory.launch(Intent(Intent.ACTION_OPEN_DOCUMENT_TREE).data)
|
||||||
|
}
|
||||||
|
1 -> { // External Content Folder
|
||||||
|
mainActivity.getExternalContentDirectory.launch(null)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.show()
|
||||||
}
|
}
|
||||||
|
|
||||||
setInsets()
|
setInsets()
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
package org.yuzu.yuzu_emu.fragments
|
package org.yuzu.yuzu_emu.fragments
|
||||||
|
|
||||||
import android.Manifest
|
import android.Manifest
|
||||||
@@ -114,6 +117,17 @@ class HomeSettingsFragment : Fragment() {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
add(
|
||||||
|
HomeSetting(
|
||||||
|
R.string.profile_manager,
|
||||||
|
R.string.profile_manager_description,
|
||||||
|
R.drawable.ic_account_circle,
|
||||||
|
{
|
||||||
|
binding.root.findNavController()
|
||||||
|
.navigate(R.id.action_homeSettingsFragment_to_profileManagerFragment)
|
||||||
|
}
|
||||||
|
)
|
||||||
|
)
|
||||||
add(
|
add(
|
||||||
HomeSetting(
|
HomeSetting(
|
||||||
R.string.gpu_driver_manager,
|
R.string.gpu_driver_manager,
|
||||||
|
|||||||
@@ -0,0 +1,190 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
package org.yuzu.yuzu_emu.fragments
|
||||||
|
|
||||||
|
import android.os.Bundle
|
||||||
|
import android.view.LayoutInflater
|
||||||
|
import android.view.View
|
||||||
|
import android.view.ViewGroup
|
||||||
|
import androidx.core.view.ViewCompat
|
||||||
|
import androidx.core.view.WindowInsetsCompat
|
||||||
|
import androidx.fragment.app.Fragment
|
||||||
|
import androidx.fragment.app.activityViewModels
|
||||||
|
import androidx.navigation.fragment.findNavController
|
||||||
|
import androidx.recyclerview.widget.LinearLayoutManager
|
||||||
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
|
import com.google.android.material.transition.MaterialSharedAxis
|
||||||
|
import org.yuzu.yuzu_emu.NativeLibrary
|
||||||
|
import org.yuzu.yuzu_emu.R
|
||||||
|
import org.yuzu.yuzu_emu.adapters.ProfileAdapter
|
||||||
|
import org.yuzu.yuzu_emu.databinding.FragmentProfileManagerBinding
|
||||||
|
import org.yuzu.yuzu_emu.model.HomeViewModel
|
||||||
|
import org.yuzu.yuzu_emu.model.UserProfile
|
||||||
|
import org.yuzu.yuzu_emu.utils.NativeConfig
|
||||||
|
|
||||||
|
class ProfileManagerFragment : Fragment() {
|
||||||
|
private var _binding: FragmentProfileManagerBinding? = null
|
||||||
|
private val binding get() = _binding!!
|
||||||
|
|
||||||
|
private val homeViewModel: HomeViewModel by activityViewModels()
|
||||||
|
private lateinit var profileAdapter: ProfileAdapter
|
||||||
|
|
||||||
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
|
super.onCreate(savedInstanceState)
|
||||||
|
enterTransition = MaterialSharedAxis(MaterialSharedAxis.X, true)
|
||||||
|
returnTransition = MaterialSharedAxis(MaterialSharedAxis.X, false)
|
||||||
|
reenterTransition = MaterialSharedAxis(MaterialSharedAxis.X, false)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onCreateView(
|
||||||
|
inflater: LayoutInflater,
|
||||||
|
container: ViewGroup?,
|
||||||
|
savedInstanceState: Bundle?
|
||||||
|
): View {
|
||||||
|
_binding = FragmentProfileManagerBinding.inflate(layoutInflater)
|
||||||
|
return binding.root
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||||
|
super.onViewCreated(view, savedInstanceState)
|
||||||
|
homeViewModel.setStatusBarShadeVisibility(visible = false)
|
||||||
|
|
||||||
|
binding.toolbarProfiles.setNavigationOnClickListener {
|
||||||
|
findNavController().popBackStack()
|
||||||
|
}
|
||||||
|
|
||||||
|
setupRecyclerView()
|
||||||
|
loadProfiles()
|
||||||
|
|
||||||
|
binding.buttonAddUser.setOnClickListener {
|
||||||
|
if (NativeLibrary.canCreateUser()) {
|
||||||
|
findNavController().navigate(R.id.action_profileManagerFragment_to_newUserDialog)
|
||||||
|
} else {
|
||||||
|
MaterialAlertDialogBuilder(requireContext())
|
||||||
|
.setTitle(R.string.profile_max_users_title)
|
||||||
|
.setMessage(R.string.profile_max_users_message)
|
||||||
|
.setPositiveButton(android.R.string.ok, null)
|
||||||
|
.show()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
setInsets()
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onResume() {
|
||||||
|
super.onResume()
|
||||||
|
loadProfiles()
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun setupRecyclerView() {
|
||||||
|
profileAdapter = ProfileAdapter(
|
||||||
|
onProfileClick = { profile -> selectProfile(profile) },
|
||||||
|
onEditClick = { profile -> editProfile(profile) },
|
||||||
|
onDeleteClick = { profile -> confirmDeleteProfile(profile) }
|
||||||
|
)
|
||||||
|
binding.listProfiles.apply {
|
||||||
|
layoutManager = LinearLayoutManager(requireContext())
|
||||||
|
adapter = profileAdapter
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun loadProfiles() {
|
||||||
|
val profiles = mutableListOf<UserProfile>()
|
||||||
|
val userUUIDs = NativeLibrary.getAllUsers() ?: emptyArray()
|
||||||
|
val currentUserUUID = NativeLibrary.getCurrentUser()
|
||||||
|
|
||||||
|
for (uuid in userUUIDs) {
|
||||||
|
if (uuid.isNotEmpty()) {
|
||||||
|
val username = NativeLibrary.getUserUsername(uuid)
|
||||||
|
if (!username.isNullOrEmpty()) {
|
||||||
|
val imagePath = NativeLibrary.getUserImagePath(uuid) ?: ""
|
||||||
|
profiles.add(UserProfile(uuid, username, imagePath))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
profileAdapter.submitList(profiles)
|
||||||
|
profileAdapter.setCurrentUser(currentUserUUID ?: "")
|
||||||
|
|
||||||
|
binding.buttonAddUser.isEnabled = NativeLibrary.canCreateUser()
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun selectProfile(profile: UserProfile) {
|
||||||
|
if (NativeLibrary.setCurrentUser(profile.uuid)) {
|
||||||
|
loadProfiles()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private fun editProfile(profile: UserProfile) {
|
||||||
|
val bundle = Bundle().apply {
|
||||||
|
putString("uuid", profile.uuid)
|
||||||
|
putString("username", profile.username)
|
||||||
|
}
|
||||||
|
findNavController().navigate(R.id.action_profileManagerFragment_to_newUserDialog, bundle)
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun confirmDeleteProfile(profile: UserProfile) {
|
||||||
|
val currentUser = NativeLibrary.getCurrentUser()
|
||||||
|
val isCurrentUser = profile.uuid == currentUser
|
||||||
|
|
||||||
|
MaterialAlertDialogBuilder(requireContext())
|
||||||
|
.setTitle(R.string.profile_delete_confirm_title)
|
||||||
|
.setMessage(
|
||||||
|
if (isCurrentUser) {
|
||||||
|
getString(R.string.profile_delete_current_user_message, profile.username)
|
||||||
|
} else {
|
||||||
|
getString(R.string.profile_delete_confirm_message, profile.username)
|
||||||
|
}
|
||||||
|
)
|
||||||
|
.setPositiveButton(R.string.profile_delete) { _, _ ->
|
||||||
|
deleteProfile(profile)
|
||||||
|
}
|
||||||
|
.setNegativeButton(android.R.string.cancel, null)
|
||||||
|
.show()
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun deleteProfile(profile: UserProfile) {
|
||||||
|
val currentUser = NativeLibrary.getCurrentUser()
|
||||||
|
if (!currentUser.isNullOrEmpty() && profile.uuid == currentUser) {
|
||||||
|
val users = NativeLibrary.getAllUsers() ?: emptyArray()
|
||||||
|
for (uuid in users) {
|
||||||
|
if (uuid.isNotEmpty() && uuid != profile.uuid) {
|
||||||
|
NativeLibrary.setCurrentUser(uuid)
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (NativeLibrary.removeUser(profile.uuid)) {
|
||||||
|
loadProfiles()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun setInsets() {
|
||||||
|
ViewCompat.setOnApplyWindowInsetsListener(
|
||||||
|
binding.root
|
||||||
|
) { _: View, windowInsets: WindowInsetsCompat ->
|
||||||
|
val barInsets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars())
|
||||||
|
val cutoutInsets = windowInsets.getInsets(WindowInsetsCompat.Type.displayCutout())
|
||||||
|
|
||||||
|
val leftInsets = barInsets.left + cutoutInsets.left
|
||||||
|
val rightInsets = barInsets.right + cutoutInsets.right
|
||||||
|
|
||||||
|
val fabLayoutParams = binding.buttonAddUser.layoutParams as ViewGroup.MarginLayoutParams
|
||||||
|
fabLayoutParams.leftMargin = leftInsets + 24
|
||||||
|
fabLayoutParams.rightMargin = rightInsets + 24
|
||||||
|
fabLayoutParams.bottomMargin = barInsets.bottom + 24
|
||||||
|
binding.buttonAddUser.layoutParams = fabLayoutParams
|
||||||
|
|
||||||
|
windowInsets
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onDestroyView() {
|
||||||
|
super.onDestroyView()
|
||||||
|
NativeConfig.saveGlobalConfig()
|
||||||
|
_binding = null
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
@@ -48,16 +51,68 @@ class AddonViewModel : ViewModel() {
|
|||||||
?: emptyArray()
|
?: emptyArray()
|
||||||
).toMutableList()
|
).toMutableList()
|
||||||
patchList.sortBy { it.name }
|
patchList.sortBy { it.name }
|
||||||
|
|
||||||
|
// Ensure only one update is enabled
|
||||||
|
ensureSingleUpdateEnabled(patchList)
|
||||||
|
|
||||||
|
removeDuplicates(patchList)
|
||||||
|
|
||||||
_patchList.value = patchList
|
_patchList.value = patchList
|
||||||
isRefreshing.set(false)
|
isRefreshing.set(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private fun ensureSingleUpdateEnabled(patchList: MutableList<Patch>) {
|
||||||
|
val updates = patchList.filter { PatchType.from(it.type) == PatchType.Update }
|
||||||
|
if (updates.size <= 1) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
val enabledUpdates = updates.filter { it.enabled }
|
||||||
|
|
||||||
|
if (enabledUpdates.size > 1) {
|
||||||
|
val nandOrSdmcEnabled = enabledUpdates.find {
|
||||||
|
it.name.contains("(NAND)") || it.name.contains("(SDMC)")
|
||||||
|
}
|
||||||
|
|
||||||
|
val updateToKeep = nandOrSdmcEnabled ?: enabledUpdates.first()
|
||||||
|
|
||||||
|
for (patch in patchList) {
|
||||||
|
if (PatchType.from(patch.type) == PatchType.Update) {
|
||||||
|
patch.enabled = (patch === updateToKeep)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun removeDuplicates(patchList: MutableList<Patch>) {
|
||||||
|
val seen = mutableSetOf<String>()
|
||||||
|
val iterator = patchList.iterator()
|
||||||
|
while (iterator.hasNext()) {
|
||||||
|
val patch = iterator.next()
|
||||||
|
val key = "${patch.name}|${patch.version}|${patch.type}"
|
||||||
|
if (seen.contains(key)) {
|
||||||
|
iterator.remove()
|
||||||
|
} else {
|
||||||
|
seen.add(key)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fun setAddonToDelete(patch: Patch?) {
|
fun setAddonToDelete(patch: Patch?) {
|
||||||
_addonToDelete.value = patch
|
_addonToDelete.value = patch
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun enableOnlyThisUpdate(selectedPatch: Patch) {
|
||||||
|
val currentList = _patchList.value
|
||||||
|
for (patch in currentList) {
|
||||||
|
if (PatchType.from(patch.type) == PatchType.Update) {
|
||||||
|
patch.enabled = (patch === selectedPatch)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fun onDeleteAddon(patch: Patch) {
|
fun onDeleteAddon(patch: Patch) {
|
||||||
when (PatchType.from(patch.type)) {
|
when (PatchType.from(patch.type)) {
|
||||||
PatchType.Update -> NativeLibrary.removeUpdate(patch.programId)
|
PatchType.Update -> NativeLibrary.removeUpdate(patch.programId)
|
||||||
@@ -72,13 +127,27 @@ class AddonViewModel : ViewModel() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if there are multiple update versions
|
||||||
|
val updates = _patchList.value.filter { PatchType.from(it.type) == PatchType.Update }
|
||||||
|
val hasMultipleUpdates = updates.size > 1
|
||||||
|
|
||||||
NativeConfig.setDisabledAddons(
|
NativeConfig.setDisabledAddons(
|
||||||
game!!.programId,
|
game!!.programId,
|
||||||
_patchList.value.mapNotNull {
|
_patchList.value.mapNotNull {
|
||||||
if (it.enabled) {
|
if (it.enabled) {
|
||||||
null
|
null
|
||||||
} else {
|
} else {
|
||||||
it.name
|
if (PatchType.from(it.type) == PatchType.Update) {
|
||||||
|
if (it.name.contains("(NAND)") || it.name.contains("(SDMC)")) {
|
||||||
|
it.name
|
||||||
|
} else if (hasMultipleUpdates) {
|
||||||
|
"Update@${it.numericVersion}"
|
||||||
|
} else {
|
||||||
|
it.name
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
it.name
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}.toTypedArray()
|
}.toTypedArray()
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
@@ -9,5 +12,14 @@ import kotlinx.parcelize.Parcelize
|
|||||||
@Parcelize
|
@Parcelize
|
||||||
data class GameDir(
|
data class GameDir(
|
||||||
val uriString: String,
|
val uriString: String,
|
||||||
var deepScan: Boolean
|
var deepScan: Boolean,
|
||||||
) : Parcelable
|
val type: DirectoryType = DirectoryType.GAME
|
||||||
|
) : Parcelable {
|
||||||
|
// Needed for JNI backward compatability
|
||||||
|
constructor(uriString: String, deepScan: Boolean) : this(uriString, deepScan, DirectoryType.GAME)
|
||||||
|
}
|
||||||
|
|
||||||
|
enum class DirectoryType {
|
||||||
|
GAME,
|
||||||
|
EXTERNAL_CONTENT
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
package org.yuzu.yuzu_emu.model
|
package org.yuzu.yuzu_emu.model
|
||||||
@@ -56,7 +56,7 @@ class GamesViewModel : ViewModel() {
|
|||||||
// Ensure keys are loaded so that ROM metadata can be decrypted.
|
// Ensure keys are loaded so that ROM metadata can be decrypted.
|
||||||
NativeLibrary.reloadKeys()
|
NativeLibrary.reloadKeys()
|
||||||
|
|
||||||
getGameDirs()
|
getGameDirsAndExternalContent()
|
||||||
reloadGames(directoriesChanged = false, firstStartup = true)
|
reloadGames(directoriesChanged = false, firstStartup = true)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -144,11 +144,19 @@ class GamesViewModel : ViewModel() {
|
|||||||
fun addFolder(gameDir: GameDir, savedFromGameFragment: Boolean) =
|
fun addFolder(gameDir: GameDir, savedFromGameFragment: Boolean) =
|
||||||
viewModelScope.launch {
|
viewModelScope.launch {
|
||||||
withContext(Dispatchers.IO) {
|
withContext(Dispatchers.IO) {
|
||||||
NativeConfig.addGameDir(gameDir)
|
when (gameDir.type) {
|
||||||
val isFirstTimeSetup = PreferenceManager.getDefaultSharedPreferences(YuzuApplication.appContext)
|
DirectoryType.GAME -> {
|
||||||
.getBoolean(org.yuzu.yuzu_emu.features.settings.model.Settings.PREF_FIRST_APP_LAUNCH, true)
|
NativeConfig.addGameDir(gameDir)
|
||||||
|
val isFirstTimeSetup = PreferenceManager.getDefaultSharedPreferences(YuzuApplication.appContext)
|
||||||
getGameDirs(!isFirstTimeSetup)
|
.getBoolean(org.yuzu.yuzu_emu.features.settings.model.Settings.PREF_FIRST_APP_LAUNCH, true)
|
||||||
|
getGameDirsAndExternalContent(!isFirstTimeSetup)
|
||||||
|
}
|
||||||
|
DirectoryType.EXTERNAL_CONTENT -> {
|
||||||
|
addExternalContentDir(gameDir.uriString)
|
||||||
|
NativeConfig.saveGlobalConfig()
|
||||||
|
getGameDirsAndExternalContent()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (savedFromGameFragment) {
|
if (savedFromGameFragment) {
|
||||||
@@ -168,8 +176,15 @@ class GamesViewModel : ViewModel() {
|
|||||||
val removedDirIndex = gameDirs.indexOf(gameDir)
|
val removedDirIndex = gameDirs.indexOf(gameDir)
|
||||||
if (removedDirIndex != -1) {
|
if (removedDirIndex != -1) {
|
||||||
gameDirs.removeAt(removedDirIndex)
|
gameDirs.removeAt(removedDirIndex)
|
||||||
NativeConfig.setGameDirs(gameDirs.toTypedArray())
|
when (gameDir.type) {
|
||||||
getGameDirs()
|
DirectoryType.GAME -> {
|
||||||
|
NativeConfig.setGameDirs(gameDirs.filter { it.type == DirectoryType.GAME }.toTypedArray())
|
||||||
|
}
|
||||||
|
DirectoryType.EXTERNAL_CONTENT -> {
|
||||||
|
removeExternalContentDir(gameDir.uriString)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
getGameDirsAndExternalContent()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -177,15 +192,16 @@ class GamesViewModel : ViewModel() {
|
|||||||
fun updateGameDirs() =
|
fun updateGameDirs() =
|
||||||
viewModelScope.launch {
|
viewModelScope.launch {
|
||||||
withContext(Dispatchers.IO) {
|
withContext(Dispatchers.IO) {
|
||||||
NativeConfig.setGameDirs(_folders.value.toTypedArray())
|
val gameDirs = _folders.value.filter { it.type == DirectoryType.GAME }
|
||||||
getGameDirs()
|
NativeConfig.setGameDirs(gameDirs.toTypedArray())
|
||||||
|
getGameDirsAndExternalContent()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun onOpenGameFoldersFragment() =
|
fun onOpenGameFoldersFragment() =
|
||||||
viewModelScope.launch {
|
viewModelScope.launch {
|
||||||
withContext(Dispatchers.IO) {
|
withContext(Dispatchers.IO) {
|
||||||
getGameDirs()
|
getGameDirsAndExternalContent()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -193,16 +209,36 @@ class GamesViewModel : ViewModel() {
|
|||||||
NativeConfig.saveGlobalConfig()
|
NativeConfig.saveGlobalConfig()
|
||||||
viewModelScope.launch {
|
viewModelScope.launch {
|
||||||
withContext(Dispatchers.IO) {
|
withContext(Dispatchers.IO) {
|
||||||
getGameDirs(true)
|
getGameDirsAndExternalContent(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getGameDirs(reloadList: Boolean = false) {
|
private fun getGameDirsAndExternalContent(reloadList: Boolean = false) {
|
||||||
val gameDirs = NativeConfig.getGameDirs()
|
val gameDirs = NativeConfig.getGameDirs().toMutableList()
|
||||||
_folders.value = gameDirs.toMutableList()
|
val externalContentDirs = NativeConfig.getExternalContentDirs().map {
|
||||||
|
GameDir(it, false, DirectoryType.EXTERNAL_CONTENT)
|
||||||
|
}
|
||||||
|
gameDirs.addAll(externalContentDirs)
|
||||||
|
_folders.value = gameDirs
|
||||||
if (reloadList) {
|
if (reloadList) {
|
||||||
reloadGames(true)
|
reloadGames(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private fun addExternalContentDir(path: String) {
|
||||||
|
val currentDirs = NativeConfig.getExternalContentDirs().toMutableList()
|
||||||
|
if (!currentDirs.contains(path)) {
|
||||||
|
currentDirs.add(path)
|
||||||
|
NativeConfig.setExternalContentDirs(currentDirs.toTypedArray())
|
||||||
|
NativeConfig.saveGlobalConfig()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun removeExternalContentDir(path: String) {
|
||||||
|
val currentDirs = NativeConfig.getExternalContentDirs().toMutableList()
|
||||||
|
currentDirs.remove(path)
|
||||||
|
NativeConfig.setExternalContentDirs(currentDirs.toTypedArray())
|
||||||
|
NativeConfig.saveGlobalConfig()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
@@ -12,5 +15,6 @@ data class Patch(
|
|||||||
val version: String,
|
val version: String,
|
||||||
val type: Int,
|
val type: Int,
|
||||||
val programId: String,
|
val programId: String,
|
||||||
val titleId: String
|
val titleId: String,
|
||||||
|
val numericVersion: Long = 0
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
package org.yuzu.yuzu_emu.model
|
||||||
|
|
||||||
|
import android.os.Parcelable
|
||||||
|
import kotlinx.parcelize.Parcelize
|
||||||
|
|
||||||
|
@Parcelize
|
||||||
|
data class UserProfile(
|
||||||
|
val uuid: String,
|
||||||
|
val username: String,
|
||||||
|
val imagePath: String = ""
|
||||||
|
) : Parcelable
|
||||||
|
|
||||||
|
object ProfileUtils {
|
||||||
|
fun generateRandomUUID(): String {
|
||||||
|
val uuid = java.util.UUID.randomUUID()
|
||||||
|
return uuid.toString().replace("-", "")
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -63,6 +63,7 @@ import kotlinx.coroutines.CoroutineScope
|
|||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import kotlinx.coroutines.withContext
|
import kotlinx.coroutines.withContext
|
||||||
|
import androidx.documentfile.provider.DocumentFile
|
||||||
|
|
||||||
class MainActivity : AppCompatActivity(), ThemeProvider {
|
class MainActivity : AppCompatActivity(), ThemeProvider {
|
||||||
private lateinit var binding: ActivityMainBinding
|
private lateinit var binding: ActivityMainBinding
|
||||||
@@ -199,8 +200,7 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
|
|||||||
var artifact = tag
|
var artifact = tag
|
||||||
// Nightly builds have a slightly different format
|
// Nightly builds have a slightly different format
|
||||||
if (NativeLibrary.isNightlyBuild()) {
|
if (NativeLibrary.isNightlyBuild()) {
|
||||||
val splitTag = tag.split('.')
|
artifact = tag.substringAfter('.', tag)
|
||||||
artifact = splitTag.subList(1, splitTag.size - 1).joinToString(".")
|
|
||||||
}
|
}
|
||||||
downloadAndInstallUpdate(tag, artifact)
|
downloadAndInstallUpdate(tag, artifact)
|
||||||
}
|
}
|
||||||
@@ -389,6 +389,13 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val getExternalContentDirectory =
|
||||||
|
registerForActivityResult(ActivityResultContracts.OpenDocumentTree()) { result ->
|
||||||
|
if (result != null) {
|
||||||
|
processExternalContentDir(result)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fun processGamesDir(result: Uri, calledFromGameFragment: Boolean = false) {
|
fun processGamesDir(result: Uri, calledFromGameFragment: Boolean = false) {
|
||||||
contentResolver.takePersistableUriPermission(
|
contentResolver.takePersistableUriPermission(
|
||||||
result,
|
result,
|
||||||
@@ -410,6 +417,27 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
|
|||||||
.show(supportFragmentManager, AddGameFolderDialogFragment.TAG)
|
.show(supportFragmentManager, AddGameFolderDialogFragment.TAG)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun processExternalContentDir(result: Uri) {
|
||||||
|
contentResolver.takePersistableUriPermission(
|
||||||
|
result,
|
||||||
|
Intent.FLAG_GRANT_READ_URI_PERMISSION
|
||||||
|
)
|
||||||
|
|
||||||
|
val uriString = result.toString()
|
||||||
|
val folder = gamesViewModel.folders.value.firstOrNull { it.uriString == uriString }
|
||||||
|
if (folder != null) {
|
||||||
|
Toast.makeText(
|
||||||
|
applicationContext,
|
||||||
|
R.string.folder_already_added,
|
||||||
|
Toast.LENGTH_SHORT
|
||||||
|
).show()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
val externalContentDir = org.yuzu.yuzu_emu.model.GameDir(uriString, false, org.yuzu.yuzu_emu.model.DirectoryType.EXTERNAL_CONTENT)
|
||||||
|
gamesViewModel.addFolder(externalContentDir, savedFromGameFragment = false)
|
||||||
|
}
|
||||||
|
|
||||||
val getProdKey = registerForActivityResult(ActivityResultContracts.OpenDocument()) { result ->
|
val getProdKey = registerForActivityResult(ActivityResultContracts.OpenDocument()) { result ->
|
||||||
if (result != null) {
|
if (result != null) {
|
||||||
processKey(result, "keys")
|
processKey(result, "keys")
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
package org.yuzu.yuzu_emu.utils
|
package org.yuzu.yuzu_emu.utils
|
||||||
@@ -25,6 +25,7 @@ object DirectoryInitialization {
|
|||||||
initializeInternalStorage()
|
initializeInternalStorage()
|
||||||
NativeLibrary.initializeSystem(false)
|
NativeLibrary.initializeSystem(false)
|
||||||
NativeConfig.initializeGlobalConfig()
|
NativeConfig.initializeGlobalConfig()
|
||||||
|
NativeLibrary.reloadProfiles()
|
||||||
migrateSettings()
|
migrateSettings()
|
||||||
areDirectoriesReady = true
|
areDirectoriesReady = true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
// SPDX-FileCopyrightText: 2025 Eden Emulator Project
|
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
|
|
||||||
package org.yuzu.yuzu_emu.utils
|
package org.yuzu.yuzu_emu.utils
|
||||||
|
|
||||||
import android.content.SharedPreferences
|
import android.content.SharedPreferences
|
||||||
@@ -49,6 +49,17 @@ object GameHelper {
|
|||||||
// Remove previous filesystem provider information so we can get up to date version info
|
// Remove previous filesystem provider information so we can get up to date version info
|
||||||
NativeLibrary.clearFilesystemProvider()
|
NativeLibrary.clearFilesystemProvider()
|
||||||
|
|
||||||
|
// Scan External Content directories and register all NSP/XCI files
|
||||||
|
val externalContentDirs = NativeConfig.getExternalContentDirs()
|
||||||
|
for (externalDir in externalContentDirs) {
|
||||||
|
if (externalDir.isNotEmpty()) {
|
||||||
|
val externalDirUri = externalDir.toUri()
|
||||||
|
if (FileUtil.isTreeUriValid(externalDirUri)) {
|
||||||
|
scanExternalContentRecursive(FileUtil.listFiles(externalDirUri), 3)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
val badDirs = mutableListOf<Int>()
|
val badDirs = mutableListOf<Int>()
|
||||||
gameDirs.forEachIndexed { index: Int, gameDir: GameDir ->
|
gameDirs.forEachIndexed { index: Int, gameDir: GameDir ->
|
||||||
val gameDirUri = gameDir.uriString.toUri()
|
val gameDirUri = gameDir.uriString.toUri()
|
||||||
@@ -88,6 +99,33 @@ object GameHelper {
|
|||||||
return games.toList()
|
return games.toList()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// File extensions considered as external content, buuut should
|
||||||
|
// be done better imo.
|
||||||
|
private val externalContentExtensions = setOf("nsp", "xci")
|
||||||
|
|
||||||
|
private fun scanExternalContentRecursive(
|
||||||
|
files: Array<MinimalDocumentFile>,
|
||||||
|
depth: Int
|
||||||
|
) {
|
||||||
|
if (depth <= 0) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
files.forEach {
|
||||||
|
if (it.isDirectory) {
|
||||||
|
scanExternalContentRecursive(
|
||||||
|
FileUtil.listFiles(it.uri),
|
||||||
|
depth - 1
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
val extension = FileUtil.getExtension(it.uri).lowercase()
|
||||||
|
if (externalContentExtensions.contains(extension)) {
|
||||||
|
NativeLibrary.addFileToFilesystemProvider(it.uri.toString())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun addGamesRecursive(
|
private fun addGamesRecursive(
|
||||||
games: MutableList<Game>,
|
games: MutableList<Game>,
|
||||||
files: Array<MinimalDocumentFile>,
|
files: Array<MinimalDocumentFile>,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
||||||
@@ -204,4 +204,12 @@ object NativeConfig {
|
|||||||
external fun getSdmcDir(): String
|
external fun getSdmcDir(): String
|
||||||
@Synchronized
|
@Synchronized
|
||||||
external fun setSdmcDir(path: String)
|
external fun setSdmcDir(path: String)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* External Content Provider
|
||||||
|
*/
|
||||||
|
@Synchronized
|
||||||
|
external fun getExternalContentDirs(): Array<String>
|
||||||
|
@Synchronized
|
||||||
|
external fun setExternalContentDirs(dirs: Array<String>)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
package org.yuzu.yuzu_emu.utils
|
package org.yuzu.yuzu_emu.utils
|
||||||
@@ -144,6 +144,15 @@ object FreedrenoPresets {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
val DEV_FEATURES_UBWC_HINT = FreedrenoPreset(
|
||||||
|
name = "Dev - UBWC Flag Hint",
|
||||||
|
description = "Enable TP UBWC flag hint for development",
|
||||||
|
icon = "ic_dev_features",
|
||||||
|
variables = mapOf(
|
||||||
|
"FD_DEV_FEATURES" to "enable_tp_ubwc_flag_hint=1"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
val PERFORMANCE_DEFAULT = FreedrenoPreset(
|
val PERFORMANCE_DEFAULT = FreedrenoPreset(
|
||||||
name = "Performance - Default",
|
name = "Performance - Default",
|
||||||
description = "Clear all debug options for performance",
|
description = "Clear all debug options for performance",
|
||||||
@@ -159,6 +168,7 @@ object FreedrenoPresets {
|
|||||||
CAPTURE_FRAMES,
|
CAPTURE_FRAMES,
|
||||||
SHADER_DEBUG,
|
SHADER_DEBUG,
|
||||||
GPU_HANG_TRACE,
|
GPU_HANG_TRACE,
|
||||||
|
DEV_FEATURES_UBWC_HINT,
|
||||||
PERFORMANCE_DEFAULT
|
PERFORMANCE_DEFAULT
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
#include <common/fs/path_util.h>
|
#include <common/fs/path_util.h>
|
||||||
#include <common/logging/log.h>
|
#include <common/logging/log.h>
|
||||||
|
#include <common/settings.h>
|
||||||
#include <input_common/main.h>
|
#include <input_common/main.h>
|
||||||
#include "android_config.h"
|
#include "android_config.h"
|
||||||
#include "android_settings.h"
|
#include "android_settings.h"
|
||||||
@@ -69,6 +70,18 @@ void AndroidConfig::ReadPathValues() {
|
|||||||
}
|
}
|
||||||
EndArray();
|
EndArray();
|
||||||
|
|
||||||
|
// Read external content directories
|
||||||
|
Settings::values.external_content_dirs.clear();
|
||||||
|
const int external_dirs_size = BeginArray(std::string("external_content_dirs"));
|
||||||
|
for (int i = 0; i < external_dirs_size; ++i) {
|
||||||
|
SetArrayIndex(i);
|
||||||
|
std::string dir_path = ReadStringSetting(std::string("path"));
|
||||||
|
if (!dir_path.empty()) {
|
||||||
|
Settings::values.external_content_dirs.push_back(dir_path);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
EndArray();
|
||||||
|
|
||||||
const auto nand_dir_setting = ReadStringSetting(std::string("nand_directory"));
|
const auto nand_dir_setting = ReadStringSetting(std::string("nand_directory"));
|
||||||
if (!nand_dir_setting.empty()) {
|
if (!nand_dir_setting.empty()) {
|
||||||
Common::FS::SetEdenPath(Common::FS::EdenPath::NANDDir, nand_dir_setting);
|
Common::FS::SetEdenPath(Common::FS::EdenPath::NANDDir, nand_dir_setting);
|
||||||
@@ -241,6 +254,14 @@ void AndroidConfig::SavePathValues() {
|
|||||||
}
|
}
|
||||||
EndArray();
|
EndArray();
|
||||||
|
|
||||||
|
// Save external content directories
|
||||||
|
BeginArray(std::string("external_content_dirs"));
|
||||||
|
for (size_t i = 0; i < Settings::values.external_content_dirs.size(); ++i) {
|
||||||
|
SetArrayIndex(i);
|
||||||
|
WriteStringSetting(std::string("path"), Settings::values.external_content_dirs[i]);
|
||||||
|
}
|
||||||
|
EndArray();
|
||||||
|
|
||||||
// Save custom NAND directory
|
// Save custom NAND directory
|
||||||
const auto nand_path = Common::FS::GetEdenPathString(Common::FS::EdenPath::NANDDir);
|
const auto nand_path = Common::FS::GetEdenPathString(Common::FS::EdenPath::NANDDir);
|
||||||
WriteStringSetting(std::string("nand_directory"), nand_path,
|
WriteStringSetting(std::string("nand_directory"), nand_path,
|
||||||
|
|||||||
@@ -54,10 +54,6 @@ namespace AndroidSettings {
|
|||||||
Settings::SwitchableSetting<std::string, false> driver_path{linkage, "", "driver_path",
|
Settings::SwitchableSetting<std::string, false> driver_path{linkage, "", "driver_path",
|
||||||
Settings::Category::GpuDriver};
|
Settings::Category::GpuDriver};
|
||||||
|
|
||||||
// LRU Cache
|
|
||||||
Settings::SwitchableSetting<bool> use_lru_cache{linkage, true, "use_lru_cache",
|
|
||||||
Settings::Category::System};
|
|
||||||
|
|
||||||
Settings::Setting<s32> theme{linkage, 0, "theme", Settings::Category::Android};
|
Settings::Setting<s32> theme{linkage, 0, "theme", Settings::Category::Android};
|
||||||
Settings::Setting<s32> theme_mode{linkage, -1, "theme_mode", Settings::Category::Android};
|
Settings::Setting<s32> theme_mode{linkage, -1, "theme_mode", Settings::Category::Android};
|
||||||
Settings::Setting<bool> black_backgrounds{linkage, false, "black_backgrounds",
|
Settings::Setting<bool> black_backgrounds{linkage, false, "black_backgrounds",
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
|
// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
@@ -18,7 +21,7 @@ struct RomMetadata {
|
|||||||
bool isHomebrew;
|
bool isHomebrew;
|
||||||
};
|
};
|
||||||
|
|
||||||
std::unordered_map<std::string, RomMetadata> m_rom_metadata_cache;
|
ankerl::unordered_dense::map<std::string, RomMetadata> m_rom_metadata_cache;
|
||||||
|
|
||||||
RomMetadata CacheRomMetadata(const std::string& path) {
|
RomMetadata CacheRomMetadata(const std::string& path) {
|
||||||
const auto file =
|
const auto file =
|
||||||
|
|||||||
@@ -49,12 +49,17 @@
|
|||||||
#include "common/settings.h"
|
#include "common/settings.h"
|
||||||
#include "common/string_util.h"
|
#include "common/string_util.h"
|
||||||
#include "frontend_common/play_time_manager.h"
|
#include "frontend_common/play_time_manager.h"
|
||||||
|
#include "core/constants.h"
|
||||||
#include "core/core.h"
|
#include "core/core.h"
|
||||||
#include "core/cpu_manager.h"
|
#include "core/cpu_manager.h"
|
||||||
#include "core/crypto/key_manager.h"
|
#include "core/crypto/key_manager.h"
|
||||||
#include "core/file_sys/card_image.h"
|
#include "core/file_sys/card_image.h"
|
||||||
#include "core/file_sys/content_archive.h"
|
#include "core/file_sys/content_archive.h"
|
||||||
|
#include "core/file_sys/control_metadata.h"
|
||||||
#include "core/file_sys/fs_filesystem.h"
|
#include "core/file_sys/fs_filesystem.h"
|
||||||
|
#include "core/file_sys/romfs.h"
|
||||||
|
#include "core/file_sys/nca_metadata.h"
|
||||||
|
#include "core/file_sys/romfs.h"
|
||||||
#include "core/file_sys/submission_package.h"
|
#include "core/file_sys/submission_package.h"
|
||||||
#include "core/file_sys/vfs/vfs.h"
|
#include "core/file_sys/vfs/vfs.h"
|
||||||
#include "core/file_sys/vfs/vfs_real.h"
|
#include "core/file_sys/vfs/vfs_real.h"
|
||||||
@@ -210,6 +215,109 @@ void EmulationSession::ConfigureFilesystemProvider(const std::string& filepath)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const auto extension = Common::ToLower(filepath.substr(filepath.find_last_of('.') + 1));
|
||||||
|
|
||||||
|
if (extension == "nsp") {
|
||||||
|
auto nsp = std::make_shared<FileSys::NSP>(file);
|
||||||
|
if (nsp->GetStatus() == Loader::ResultStatus::Success) {
|
||||||
|
std::map<u64, u32> nsp_versions;
|
||||||
|
std::map<u64, std::string> nsp_version_strings;
|
||||||
|
|
||||||
|
for (const auto& [title_id, nca_map] : nsp->GetNCAs()) {
|
||||||
|
for (const auto& [type_pair, nca] : nca_map) {
|
||||||
|
const auto& [title_type, content_type] = type_pair;
|
||||||
|
|
||||||
|
if (content_type == FileSys::ContentRecordType::Meta) {
|
||||||
|
const auto meta_nca = std::make_shared<FileSys::NCA>(nca->GetBaseFile());
|
||||||
|
if (meta_nca->GetStatus() == Loader::ResultStatus::Success) {
|
||||||
|
const auto section0 = meta_nca->GetSubdirectories();
|
||||||
|
if (!section0.empty()) {
|
||||||
|
for (const auto& meta_file : section0[0]->GetFiles()) {
|
||||||
|
if (meta_file->GetExtension() == "cnmt") {
|
||||||
|
FileSys::CNMT cnmt(meta_file);
|
||||||
|
nsp_versions[cnmt.GetTitleID()] = cnmt.GetTitleVersion();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (content_type == FileSys::ContentRecordType::Control &&
|
||||||
|
title_type == FileSys::TitleType::Update) {
|
||||||
|
auto romfs = nca->GetRomFS();
|
||||||
|
if (romfs) {
|
||||||
|
auto extracted = FileSys::ExtractRomFS(romfs);
|
||||||
|
if (extracted) {
|
||||||
|
auto nacp_file = extracted->GetFile("control.nacp");
|
||||||
|
if (!nacp_file) {
|
||||||
|
nacp_file = extracted->GetFile("Control.nacp");
|
||||||
|
}
|
||||||
|
if (nacp_file) {
|
||||||
|
FileSys::NACP nacp(nacp_file);
|
||||||
|
auto ver_str = nacp.GetVersionString();
|
||||||
|
if (!ver_str.empty()) {
|
||||||
|
nsp_version_strings[title_id] = ver_str;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (const auto& [title_id, nca_map] : nsp->GetNCAs()) {
|
||||||
|
for (const auto& [type_pair, nca] : nca_map) {
|
||||||
|
const auto& [title_type, content_type] = type_pair;
|
||||||
|
|
||||||
|
if (title_type == FileSys::TitleType::Update) {
|
||||||
|
u32 version = 0;
|
||||||
|
auto ver_it = nsp_versions.find(title_id);
|
||||||
|
if (ver_it != nsp_versions.end()) {
|
||||||
|
version = ver_it->second;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string version_string;
|
||||||
|
auto str_it = nsp_version_strings.find(title_id);
|
||||||
|
if (str_it != nsp_version_strings.end()) {
|
||||||
|
version_string = str_it->second;
|
||||||
|
}
|
||||||
|
|
||||||
|
m_manual_provider->AddEntryWithVersion(
|
||||||
|
title_type, content_type, title_id, version, version_string,
|
||||||
|
nca->GetBaseFile());
|
||||||
|
|
||||||
|
LOG_DEBUG(Frontend, "Added NSP update entry - TitleID: {:016X}, Version: {}, VersionStr: {}",
|
||||||
|
title_id, version, version_string);
|
||||||
|
} else {
|
||||||
|
// Use regular AddEntry for non-updates
|
||||||
|
m_manual_provider->AddEntry(title_type, content_type, title_id,
|
||||||
|
nca->GetBaseFile());
|
||||||
|
LOG_DEBUG(Frontend, "Added NSP entry - TitleID: {:016X}, TitleType: {}, ContentType: {}",
|
||||||
|
title_id, static_cast<int>(title_type), static_cast<int>(content_type));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Handle XCI files
|
||||||
|
if (extension == "xci") {
|
||||||
|
FileSys::XCI xci{file};
|
||||||
|
if (xci.GetStatus() == Loader::ResultStatus::Success) {
|
||||||
|
const auto nsp = xci.GetSecurePartitionNSP();
|
||||||
|
if (nsp) {
|
||||||
|
for (const auto& title : nsp->GetNCAs()) {
|
||||||
|
for (const auto& entry : title.second) {
|
||||||
|
m_manual_provider->AddEntry(entry.first.first, entry.first.second, title.first,
|
||||||
|
entry.second->GetBaseFile());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
auto loader = Loader::GetLoader(m_system, file);
|
auto loader = Loader::GetLoader(m_system, file);
|
||||||
if (!loader) {
|
if (!loader) {
|
||||||
return;
|
return;
|
||||||
@@ -226,17 +334,6 @@ void EmulationSession::ConfigureFilesystemProvider(const std::string& filepath)
|
|||||||
m_manual_provider->AddEntry(FileSys::TitleType::Application,
|
m_manual_provider->AddEntry(FileSys::TitleType::Application,
|
||||||
FileSys::GetCRTypeFromNCAType(FileSys::NCA{file}.GetType()),
|
FileSys::GetCRTypeFromNCAType(FileSys::NCA{file}.GetType()),
|
||||||
program_id, file);
|
program_id, file);
|
||||||
} else if (res2 == Loader::ResultStatus::Success &&
|
|
||||||
(file_type == Loader::FileType::XCI || file_type == Loader::FileType::NSP)) {
|
|
||||||
const auto nsp = file_type == Loader::FileType::NSP
|
|
||||||
? std::make_shared<FileSys::NSP>(file)
|
|
||||||
: FileSys::XCI{file}.GetSecurePartitionNSP();
|
|
||||||
for (const auto& title : nsp->GetNCAs()) {
|
|
||||||
for (const auto& entry : title.second) {
|
|
||||||
m_manual_provider->AddEntry(entry.first.first, entry.first.second, title.first,
|
|
||||||
entry.second->GetBaseFile());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1136,6 +1233,39 @@ jboolean Java_org_yuzu_yuzu_1emu_NativeLibrary_getDebugKnobAt(JNIEnv* env, jobje
|
|||||||
return static_cast<jboolean>(Settings::getDebugKnobAt(static_cast<u8>(index)));
|
return static_cast<jboolean>(Settings::getDebugKnobAt(static_cast<u8>(index)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Java_org_yuzu_yuzu_1emu_NativeLibrary_setTurboSpeedLimit(JNIEnv *env, jobject jobj, jboolean enabled) {
|
||||||
|
if (enabled) {
|
||||||
|
Settings::values.use_speed_limit.SetValue(true);
|
||||||
|
Settings::SetSpeedMode(Settings::SpeedMode::Turbo);
|
||||||
|
} else {
|
||||||
|
Settings::SetSpeedMode(Settings::SpeedMode::Standard);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void Java_org_yuzu_yuzu_1emu_NativeLibrary_setSlowSpeedLimit(JNIEnv *env, jobject jobj, jboolean enabled) {
|
||||||
|
if (enabled) {
|
||||||
|
Settings::values.use_speed_limit.SetValue(true);
|
||||||
|
Settings::SetSpeedMode(Settings::SpeedMode::Slow);
|
||||||
|
} else {
|
||||||
|
Settings::SetSpeedMode(Settings::SpeedMode::Standard);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void Java_org_yuzu_yuzu_1emu_NativeLibrary_setStandardSpeedLimit(JNIEnv *env, jobject jobj, jboolean enabled) {
|
||||||
|
Settings::values.use_speed_limit.SetValue(enabled);
|
||||||
|
if (enabled) {
|
||||||
|
Settings::SetSpeedMode(Settings::SpeedMode::Standard);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
jboolean Java_org_yuzu_yuzu_1emu_NativeLibrary_isTurboMode(JNIEnv *env, jobject jobj) {
|
||||||
|
return Settings::values.current_speed_mode.GetValue() == Settings::SpeedMode::Turbo;
|
||||||
|
}
|
||||||
|
|
||||||
|
jboolean Java_org_yuzu_yuzu_1emu_NativeLibrary_isSlowMode(JNIEnv *env, jobject jobj) {
|
||||||
|
return Settings::values.current_speed_mode.GetValue() == Settings::SpeedMode::Slow;
|
||||||
|
}
|
||||||
|
|
||||||
void Java_org_yuzu_yuzu_1emu_NativeLibrary_run(JNIEnv* env, jobject jobj, jstring j_path,
|
void Java_org_yuzu_yuzu_1emu_NativeLibrary_run(JNIEnv* env, jobject jobj, jstring j_path,
|
||||||
jint j_program_index,
|
jint j_program_index,
|
||||||
jboolean j_frontend_initiated) {
|
jboolean j_frontend_initiated) {
|
||||||
@@ -1331,7 +1461,8 @@ jobjectArray Java_org_yuzu_yuzu_1emu_NativeLibrary_getPatchesForFile(JNIEnv* env
|
|||||||
Common::Android::ToJString(env, patch.name),
|
Common::Android::ToJString(env, patch.name),
|
||||||
Common::Android::ToJString(env, patch.version), static_cast<jint>(patch.type),
|
Common::Android::ToJString(env, patch.version), static_cast<jint>(patch.type),
|
||||||
Common::Android::ToJString(env, std::to_string(patch.program_id)),
|
Common::Android::ToJString(env, std::to_string(patch.program_id)),
|
||||||
Common::Android::ToJString(env, std::to_string(patch.title_id)));
|
Common::Android::ToJString(env, std::to_string(patch.title_id)),
|
||||||
|
static_cast<jlong>(patch.numeric_version));
|
||||||
env->SetObjectArrayElement(jpatchArray, i, jpatch);
|
env->SetObjectArrayElement(jpatchArray, i, jpatch);
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
@@ -1678,7 +1809,7 @@ JNIEXPORT jstring JNICALL Java_org_yuzu_yuzu_1emu_NativeLibrary_getUpdateApkUrl(
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string apk_filename = fmt::format("Eden-Android-{}-{}.apk", version_str, variant);
|
const std::string apk_filename = fmt::format("Eden-Android-{}-{}.apk", artifact_str, variant);
|
||||||
const std::string url = fmt::format("{}/{}/releases/download/{}/{}",
|
const std::string url = fmt::format("{}/{}/releases/download/{}/{}",
|
||||||
std::string{Common::g_build_auto_update_website},
|
std::string{Common::g_build_auto_update_website},
|
||||||
std::string{Common::g_build_auto_update_repo},
|
std::string{Common::g_build_auto_update_repo},
|
||||||
@@ -1686,6 +1817,7 @@ JNIEXPORT jstring JNICALL Java_org_yuzu_yuzu_1emu_NativeLibrary_getUpdateApkUrl(
|
|||||||
apk_filename);
|
apk_filename);
|
||||||
|
|
||||||
env->ReleaseStringUTFChars(tag, version_str);
|
env->ReleaseStringUTFChars(tag, version_str);
|
||||||
|
env->ReleaseStringUTFChars(artifact, artifact_str);
|
||||||
env->ReleaseStringUTFChars(packageId, package_id_str);
|
env->ReleaseStringUTFChars(packageId, package_id_str);
|
||||||
return env->NewStringUTF(url.c_str());
|
return env->NewStringUTF(url.c_str());
|
||||||
}
|
}
|
||||||
@@ -1697,4 +1829,388 @@ JNIEXPORT jstring JNICALL Java_org_yuzu_yuzu_1emu_NativeLibrary_getBuildVersion(
|
|||||||
return env->NewStringUTF(Common::g_build_version);
|
return env->NewStringUTF(Common::g_build_version);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
JNIEXPORT jobjectArray JNICALL Java_org_yuzu_yuzu_1emu_NativeLibrary_getAllUsers(
|
||||||
|
JNIEnv* env,
|
||||||
|
[[maybe_unused]] jobject obj) {
|
||||||
|
auto& manager = EmulationSession::GetInstance().System().GetProfileManager();
|
||||||
|
|
||||||
|
manager.ResetUserSaveFile();
|
||||||
|
|
||||||
|
if (manager.GetUserCount() == 0) {
|
||||||
|
manager.CreateNewUser(Common::UUID::MakeRandom(), "Eden");
|
||||||
|
manager.WriteUserSaveFile();
|
||||||
|
}
|
||||||
|
|
||||||
|
const auto& users = manager.GetAllUsers();
|
||||||
|
|
||||||
|
jclass string_class = env->FindClass("java/lang/String");
|
||||||
|
if (!string_class) {
|
||||||
|
return env->NewObjectArray(0, env->FindClass("java/lang/Object"), nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
|
jsize valid_count = 0;
|
||||||
|
for (const auto& user : users) {
|
||||||
|
if (user.IsValid()) {
|
||||||
|
valid_count++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
jobjectArray result = env->NewObjectArray(valid_count, string_class, nullptr);
|
||||||
|
if (!result) {
|
||||||
|
return env->NewObjectArray(0, string_class, nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
|
// fill array sequentially with only valid users
|
||||||
|
jsize array_index = 0;
|
||||||
|
for (const auto& user : users) {
|
||||||
|
if (user.IsValid()) {
|
||||||
|
jstring uuid_str = env->NewStringUTF(user.FormattedString().c_str());
|
||||||
|
if (uuid_str) {
|
||||||
|
env->SetObjectArrayElement(result, array_index++, uuid_str);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
JNIEXPORT jstring JNICALL Java_org_yuzu_yuzu_1emu_NativeLibrary_getUserUsername(
|
||||||
|
JNIEnv* env,
|
||||||
|
[[maybe_unused]] jobject obj,
|
||||||
|
jstring juuid) {
|
||||||
|
auto& manager = EmulationSession::GetInstance().System().GetProfileManager();
|
||||||
|
const auto uuid_string = Common::Android::GetJString(env, juuid);
|
||||||
|
const auto uuid = Common::UUID{uuid_string};
|
||||||
|
|
||||||
|
Service::Account::ProfileBase profile{};
|
||||||
|
if (!manager.GetProfileBase(uuid, profile)) {
|
||||||
|
jstring result = env->NewStringUTF("");
|
||||||
|
return result ? result : env->NewStringUTF("");
|
||||||
|
}
|
||||||
|
|
||||||
|
const auto text = Common::StringFromFixedZeroTerminatedBuffer(
|
||||||
|
reinterpret_cast<const char*>(profile.username.data()), profile.username.size());
|
||||||
|
jstring result = env->NewStringUTF(text.c_str());
|
||||||
|
return result ? result : env->NewStringUTF("");
|
||||||
|
}
|
||||||
|
|
||||||
|
JNIEXPORT jlong JNICALL Java_org_yuzu_yuzu_1emu_NativeLibrary_getUserCount(
|
||||||
|
JNIEnv* env,
|
||||||
|
[[maybe_unused]] jobject obj) {
|
||||||
|
auto& manager = EmulationSession::GetInstance().System().GetProfileManager();
|
||||||
|
return static_cast<jlong>(manager.GetUserCount());
|
||||||
|
}
|
||||||
|
|
||||||
|
JNIEXPORT jboolean JNICALL Java_org_yuzu_yuzu_1emu_NativeLibrary_canCreateUser(
|
||||||
|
JNIEnv* env,
|
||||||
|
[[maybe_unused]] jobject obj) {
|
||||||
|
auto& manager = EmulationSession::GetInstance().System().GetProfileManager();
|
||||||
|
return manager.CanSystemRegisterUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
JNIEXPORT jboolean JNICALL Java_org_yuzu_yuzu_1emu_NativeLibrary_createUser(
|
||||||
|
JNIEnv* env,
|
||||||
|
[[maybe_unused]] jobject obj,
|
||||||
|
jstring juuid,
|
||||||
|
jstring jusername) {
|
||||||
|
auto& manager = EmulationSession::GetInstance().System().GetProfileManager();
|
||||||
|
const auto uuid_string = Common::Android::GetJString(env, juuid);
|
||||||
|
const auto username = Common::Android::GetJString(env, jusername);
|
||||||
|
const auto uuid = Common::UUID{uuid_string};
|
||||||
|
|
||||||
|
const auto result = manager.CreateNewUser(uuid, username);
|
||||||
|
if (result.IsSuccess()) {
|
||||||
|
manager.WriteUserSaveFile();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
JNIEXPORT jboolean JNICALL Java_org_yuzu_yuzu_1emu_NativeLibrary_updateUserUsername(
|
||||||
|
JNIEnv* env,
|
||||||
|
[[maybe_unused]] jobject obj,
|
||||||
|
jstring juuid,
|
||||||
|
jstring jusername) {
|
||||||
|
auto& manager = EmulationSession::GetInstance().System().GetProfileManager();
|
||||||
|
const auto uuid_string = Common::Android::GetJString(env, juuid);
|
||||||
|
const auto username = Common::Android::GetJString(env, jusername);
|
||||||
|
const auto uuid = Common::UUID{uuid_string};
|
||||||
|
|
||||||
|
Service::Account::ProfileBase profile{};
|
||||||
|
if (!manager.GetProfileBase(uuid, profile)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::fill(profile.username.begin(), profile.username.end(), '\0');
|
||||||
|
std::copy(username.begin(), username.end(), profile.username.begin());
|
||||||
|
|
||||||
|
if (manager.SetProfileBase(uuid, profile)) {
|
||||||
|
manager.WriteUserSaveFile();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
JNIEXPORT jboolean JNICALL Java_org_yuzu_yuzu_1emu_NativeLibrary_removeUser(
|
||||||
|
JNIEnv* env,
|
||||||
|
[[maybe_unused]] jobject obj,
|
||||||
|
jstring juuid) {
|
||||||
|
auto& manager = EmulationSession::GetInstance().System().GetProfileManager();
|
||||||
|
const auto uuid_string = Common::Android::GetJString(env, juuid);
|
||||||
|
const auto uuid = Common::UUID{uuid_string};
|
||||||
|
|
||||||
|
const auto user_index = manager.GetUserIndex(uuid);
|
||||||
|
if (!user_index) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Settings::values.current_user.GetValue() == static_cast<s32>(*user_index)) {
|
||||||
|
Settings::values.current_user = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (manager.RemoveUser(uuid)) {
|
||||||
|
manager.WriteUserSaveFile();
|
||||||
|
manager.ResetUserSaveFile();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
JNIEXPORT jstring JNICALL Java_org_yuzu_yuzu_1emu_NativeLibrary_getCurrentUser(
|
||||||
|
JNIEnv* env,
|
||||||
|
[[maybe_unused]] jobject obj) {
|
||||||
|
auto& manager = EmulationSession::GetInstance().System().GetProfileManager();
|
||||||
|
const auto user_id = manager.GetUser(Settings::values.current_user.GetValue());
|
||||||
|
if (!user_id) {
|
||||||
|
jstring result = env->NewStringUTF("");
|
||||||
|
return result ? result : env->NewStringUTF("");
|
||||||
|
}
|
||||||
|
jstring result = env->NewStringUTF(user_id->FormattedString().c_str());
|
||||||
|
return result ? result : env->NewStringUTF("");
|
||||||
|
}
|
||||||
|
|
||||||
|
JNIEXPORT jboolean JNICALL Java_org_yuzu_yuzu_1emu_NativeLibrary_setCurrentUser(
|
||||||
|
JNIEnv* env,
|
||||||
|
[[maybe_unused]] jobject obj,
|
||||||
|
jstring juuid) {
|
||||||
|
auto& manager = EmulationSession::GetInstance().System().GetProfileManager();
|
||||||
|
const auto uuid_string = Common::Android::GetJString(env, juuid);
|
||||||
|
const auto uuid = Common::UUID{uuid_string};
|
||||||
|
|
||||||
|
const auto index = manager.GetUserIndex(uuid);
|
||||||
|
if (index) {
|
||||||
|
Settings::values.current_user = static_cast<s32>(*index);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
JNIEXPORT jstring JNICALL Java_org_yuzu_yuzu_1emu_NativeLibrary_getUserImagePath(
|
||||||
|
JNIEnv* env,
|
||||||
|
[[maybe_unused]] jobject obj,
|
||||||
|
jstring juuid) {
|
||||||
|
const auto uuid_string = Common::Android::GetJString(env, juuid);
|
||||||
|
const auto uuid = Common::UUID{uuid_string};
|
||||||
|
|
||||||
|
const auto path = Common::FS::GetEdenPath(Common::FS::EdenPath::NANDDir) /
|
||||||
|
fmt::format("system/save/8000000000000010/su/avators/{}.jpg", uuid.FormattedString());
|
||||||
|
|
||||||
|
jstring result = Common::Android::ToJString(env, Common::FS::PathToUTF8String(path));
|
||||||
|
return result ? result : env->NewStringUTF("");
|
||||||
|
}
|
||||||
|
|
||||||
|
JNIEXPORT jboolean JNICALL Java_org_yuzu_yuzu_1emu_NativeLibrary_saveUserImage(
|
||||||
|
JNIEnv* env,
|
||||||
|
[[maybe_unused]] jobject obj,
|
||||||
|
jstring juuid,
|
||||||
|
jstring jimagePath) {
|
||||||
|
const auto uuid_string = Common::Android::GetJString(env, juuid);
|
||||||
|
const auto uuid = Common::UUID{uuid_string};
|
||||||
|
const auto image_source = Common::Android::GetJString(env, jimagePath);
|
||||||
|
|
||||||
|
const auto dest_path = Common::FS::GetEdenPath(Common::FS::EdenPath::NANDDir) /
|
||||||
|
fmt::format("system/save/8000000000000010/su/avators/{}.jpg", uuid.FormattedString());
|
||||||
|
|
||||||
|
const auto dest_dir = dest_path.parent_path();
|
||||||
|
if (!Common::FS::CreateDirs(dest_dir)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
std::filesystem::copy_file(image_source, dest_path,
|
||||||
|
std::filesystem::copy_options::overwrite_existing);
|
||||||
|
return true;
|
||||||
|
} catch (const std::filesystem::filesystem_error& e) {
|
||||||
|
LOG_ERROR(Common_Filesystem, "Failed to copy image file: {}", e.what());
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
JNIEXPORT void JNICALL Java_org_yuzu_yuzu_1emu_NativeLibrary_reloadProfiles(
|
||||||
|
JNIEnv* env,
|
||||||
|
[[maybe_unused]] jobject obj) {
|
||||||
|
auto& manager = EmulationSession::GetInstance().System().GetProfileManager();
|
||||||
|
manager.ResetUserSaveFile();
|
||||||
|
|
||||||
|
// create a default user if non exist
|
||||||
|
if (manager.GetUserCount() == 0) {
|
||||||
|
manager.CreateNewUser(Common::UUID::MakeRandom(), "Eden");
|
||||||
|
manager.WriteUserSaveFile();
|
||||||
|
}
|
||||||
|
|
||||||
|
LOG_INFO(Service_ACC, "Profile manager reloaded, user count: {}", manager.GetUserCount());
|
||||||
|
}
|
||||||
|
|
||||||
|
// for firmware avatar images
|
||||||
|
static std::vector<uint8_t> DecompressYaz0(const FileSys::VirtualFile& file) {
|
||||||
|
if (!file) {
|
||||||
|
return std::vector<uint8_t>();
|
||||||
|
}
|
||||||
|
|
||||||
|
uint32_t magic{};
|
||||||
|
file->ReadObject(&magic, 0);
|
||||||
|
if (magic != Common::MakeMagic('Y', 'a', 'z', '0')) {
|
||||||
|
return std::vector<uint8_t>();
|
||||||
|
}
|
||||||
|
|
||||||
|
uint32_t decoded_length{};
|
||||||
|
file->ReadObject(&decoded_length, 4);
|
||||||
|
decoded_length = Common::swap32(decoded_length);
|
||||||
|
|
||||||
|
std::size_t input_size = file->GetSize() - 16;
|
||||||
|
std::vector<uint8_t> input(input_size);
|
||||||
|
file->ReadBytes(input.data(), input_size, 16);
|
||||||
|
|
||||||
|
uint32_t input_offset{};
|
||||||
|
uint32_t output_offset{};
|
||||||
|
std::vector<uint8_t> output(decoded_length);
|
||||||
|
|
||||||
|
uint16_t mask{};
|
||||||
|
uint8_t header{};
|
||||||
|
|
||||||
|
while (output_offset < decoded_length) {
|
||||||
|
if ((mask >>= 1) == 0) {
|
||||||
|
if (input_offset >= input.size()) break;
|
||||||
|
header = input[input_offset++];
|
||||||
|
mask = 0x80;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((header & mask) != 0) {
|
||||||
|
if (output_offset >= output.size() || input_offset >= input.size()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
output[output_offset++] = input[input_offset++];
|
||||||
|
} else {
|
||||||
|
if (input_offset + 1 >= input.size()) break;
|
||||||
|
uint8_t byte1 = input[input_offset++];
|
||||||
|
uint8_t byte2 = input[input_offset++];
|
||||||
|
|
||||||
|
uint32_t dist = ((byte1 & 0xF) << 8) | byte2;
|
||||||
|
uint32_t position = output_offset - (dist + 1);
|
||||||
|
|
||||||
|
uint32_t length = byte1 >> 4;
|
||||||
|
if (length == 0) {
|
||||||
|
if (input_offset >= input.size()) break;
|
||||||
|
length = static_cast<uint32_t>(input[input_offset++]) + 0x12;
|
||||||
|
} else {
|
||||||
|
length += 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (uint32_t i = 0; i < length && output_offset < decoded_length; ++i) {
|
||||||
|
output[output_offset++] = output[position++];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return output;
|
||||||
|
}
|
||||||
|
|
||||||
|
static FileSys::VirtualDir GetFirmwareAvatarDirectory() {
|
||||||
|
constexpr u64 AvatarImageDataId = 0x010000000000080AULL;
|
||||||
|
|
||||||
|
auto* bis_system = EmulationSession::GetInstance().System().GetFileSystemController().GetSystemNANDContents();
|
||||||
|
if (!bis_system) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
const auto nca = bis_system->GetEntry(AvatarImageDataId, FileSys::ContentRecordType::Data);
|
||||||
|
if (!nca) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
const auto romfs = nca->GetRomFS();
|
||||||
|
if (!romfs) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
const auto extracted = FileSys::ExtractRomFS(romfs);
|
||||||
|
if (!extracted) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
return extracted->GetSubdirectory("chara");
|
||||||
|
}
|
||||||
|
|
||||||
|
JNIEXPORT jint JNICALL Java_org_yuzu_yuzu_1emu_NativeLibrary_getFirmwareAvatarCount(
|
||||||
|
JNIEnv* env,
|
||||||
|
[[maybe_unused]] jobject obj) {
|
||||||
|
const auto chara_dir = GetFirmwareAvatarDirectory();
|
||||||
|
if (!chara_dir) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int count = 0;
|
||||||
|
for (const auto& item : chara_dir->GetFiles()) {
|
||||||
|
if (item->GetExtension() == "szs") {
|
||||||
|
count++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return count;
|
||||||
|
}
|
||||||
|
|
||||||
|
JNIEXPORT jbyteArray JNICALL Java_org_yuzu_yuzu_1emu_NativeLibrary_getFirmwareAvatarImage(
|
||||||
|
JNIEnv* env,
|
||||||
|
[[maybe_unused]] jobject obj,
|
||||||
|
jint index) {
|
||||||
|
const auto chara_dir = GetFirmwareAvatarDirectory();
|
||||||
|
if (!chara_dir) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
int current_index = 0;
|
||||||
|
for (const auto& item : chara_dir->GetFiles()) {
|
||||||
|
if (item->GetExtension() != "szs") {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (current_index == index) {
|
||||||
|
auto image_data = DecompressYaz0(item);
|
||||||
|
if (image_data.empty()) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
jbyteArray result = env->NewByteArray(image_data.size());
|
||||||
|
if (result) {
|
||||||
|
env->SetByteArrayRegion(result, 0, image_data.size(),
|
||||||
|
reinterpret_cast<const jbyte*>(image_data.data()));
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
current_index++;
|
||||||
|
}
|
||||||
|
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
JNIEXPORT jbyteArray JNICALL Java_org_yuzu_yuzu_1emu_NativeLibrary_getDefaultAccountBackupJpeg(
|
||||||
|
JNIEnv* env,
|
||||||
|
[[maybe_unused]] jobject obj) {
|
||||||
|
jbyteArray result = env->NewByteArray(Core::Constants::ACCOUNT_BACKUP_JPEG.size());
|
||||||
|
if (result) {
|
||||||
|
env->SetByteArrayRegion(result, 0, Core::Constants::ACCOUNT_BACKUP_JPEG.size(),
|
||||||
|
reinterpret_cast<const jbyte*>(Core::Constants::ACCOUNT_BACKUP_JPEG.data()));
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
} // extern "C"
|
} // extern "C"
|
||||||
|
|||||||
@@ -583,4 +583,26 @@ void Java_org_yuzu_yuzu_1emu_utils_NativeConfig_setSdmcDir(JNIEnv* env, jobject
|
|||||||
Common::FS::SetEdenPath(Common::FS::EdenPath::SDMCDir, path);
|
Common::FS::SetEdenPath(Common::FS::EdenPath::SDMCDir, path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
jobjectArray Java_org_yuzu_yuzu_1emu_utils_NativeConfig_getExternalContentDirs(JNIEnv* env,
|
||||||
|
jobject obj) {
|
||||||
|
const auto& dirs = Settings::values.external_content_dirs;
|
||||||
|
jobjectArray jdirsArray =
|
||||||
|
env->NewObjectArray(dirs.size(), Common::Android::GetStringClass(),
|
||||||
|
Common::Android::ToJString(env, ""));
|
||||||
|
for (size_t i = 0; i < dirs.size(); ++i) {
|
||||||
|
env->SetObjectArrayElement(jdirsArray, i, Common::Android::ToJString(env, dirs[i]));
|
||||||
|
}
|
||||||
|
return jdirsArray;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Java_org_yuzu_yuzu_1emu_utils_NativeConfig_setExternalContentDirs(JNIEnv* env, jobject obj,
|
||||||
|
jobjectArray jdirs) {
|
||||||
|
Settings::values.external_content_dirs.clear();
|
||||||
|
const int size = env->GetArrayLength(jdirs);
|
||||||
|
for (int i = 0; i < size; ++i) {
|
||||||
|
auto jdir = static_cast<jstring>(env->GetObjectArrayElement(jdirs, i));
|
||||||
|
Settings::values.external_content_dirs.push_back(Common::Android::GetJString(env, jdir));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} // extern "C"
|
} // extern "C"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -258,6 +258,11 @@ Java_org_yuzu_yuzu_1emu_utils_NativeFreedrenoConfig_setFreedrenoEnv(
|
|||||||
}
|
}
|
||||||
|
|
||||||
LOG_INFO(Frontend, "[Freedreno] Set {}={}", var_name, value);
|
LOG_INFO(Frontend, "[Freedreno] Set {}={}", var_name, value);
|
||||||
|
|
||||||
|
if (var_name == "FD_DEV_FEATURES") {
|
||||||
|
LOG_INFO(Frontend, "[Freedreno] FD_DEV_FEATURES enabled: {}", value);
|
||||||
|
}
|
||||||
|
|
||||||
return JNI_TRUE;
|
return JNI_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
// SPDX-FileCopyrightText: 2024 yuzu Emulator Project
|
// SPDX-FileCopyrightText: 2024 yuzu Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
@@ -18,7 +21,7 @@
|
|||||||
#include "input_common/drivers/virtual_gamepad.h"
|
#include "input_common/drivers/virtual_gamepad.h"
|
||||||
#include "native.h"
|
#include "native.h"
|
||||||
|
|
||||||
std::unordered_map<std::string, std::unique_ptr<AndroidConfig>> map_profiles;
|
ankerl::unordered_dense::map<std::string, std::unique_ptr<AndroidConfig>> map_profiles;
|
||||||
|
|
||||||
bool IsHandheldOnly() {
|
bool IsHandheldOnly() {
|
||||||
const auto npad_style_set =
|
const auto npad_style_set =
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24">
|
||||||
|
<path
|
||||||
|
android:fillColor="?attr/colorControlNormal"
|
||||||
|
android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10s10,-4.48 10,-10S17.52,2 12,2zM12,5c1.66,0 3,1.34 3,3s-1.34,3 -3,3s-3,-1.34 -3,-3S10.34,5 12,5zM12,19.2c-2.5,0 -4.71,-1.28 -6,-3.22c0.03,-1.99 4,-3.08 6,-3.08c1.99,0 5.97,1.09 6,3.08C16.71,17.92 14.5,19.2 12,19.2z" />
|
||||||
|
</vector>
|
||||||
|
Before Width: | Height: | Size: 267 KiB After Width: | Height: | Size: 288 KiB |
|
Before Width: | Height: | Size: 95 KiB After Width: | Height: | Size: 136 KiB |
|
Before Width: | Height: | Size: 122 KiB After Width: | Height: | Size: 168 KiB |
|
Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 100 KiB |
@@ -11,7 +11,7 @@
|
|||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="vertical"
|
||||||
android:padding="16dp"
|
android:padding="16dp"
|
||||||
android:layout_gravity="center_vertical">
|
android:layout_gravity="center_vertical">
|
||||||
|
|
||||||
@@ -23,12 +23,25 @@
|
|||||||
android:layout_gravity="center_vertical|start"
|
android:layout_gravity="center_vertical|start"
|
||||||
android:requiresFadingEdge="horizontal"
|
android:requiresFadingEdge="horizontal"
|
||||||
android:textAlignment="viewStart"
|
android:textAlignment="viewStart"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toTopOf="@+id/type_indicator"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/button_layout"
|
app:layout_constraintEnd_toStartOf="@+id/button_layout"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
tools:text="@string/select_gpu_driver_default" />
|
tools:text="@string/select_gpu_driver_default" />
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/type_indicator"
|
||||||
|
style="@style/TextAppearance.Material3.LabelSmall"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="4dp"
|
||||||
|
android:textColor="?attr/colorOnSurfaceVariant"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/button_layout"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/path"
|
||||||
|
tools:text="Games" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/button_layout"
|
android:id="@+id/button_layout"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|||||||
@@ -0,0 +1,39 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:padding="16dp">
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="300dp">
|
||||||
|
|
||||||
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
|
android:id="@+id/grid_avatars"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:clipToPadding="false" />
|
||||||
|
|
||||||
|
<ProgressBar
|
||||||
|
android:id="@+id/progress_loading"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_empty"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:text="@string/profile_firmware_avatars_unavailable"
|
||||||
|
android:textAppearance="?attr/textAppearanceBodyMedium"
|
||||||
|
android:textColor="?attr/colorOnSurfaceVariant"
|
||||||
|
android:gravity="center"
|
||||||
|
android:padding="16dp"
|
||||||
|
android:visibility="gone" />
|
||||||
|
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
@@ -0,0 +1,96 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:scrollbars="vertical">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:padding="24dp">
|
||||||
|
|
||||||
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
||||||
|
android:id="@+id/switch_enable"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="16dp"
|
||||||
|
android:text="@string/gpu_unswizzle_enable" />
|
||||||
|
|
||||||
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
|
android:id="@+id/layout_texture_size"
|
||||||
|
style="@style/Widget.Material3.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="12dp"
|
||||||
|
android:hint="@string/gpu_unswizzle_texture_size">
|
||||||
|
|
||||||
|
<com.google.android.material.textfield.MaterialAutoCompleteTextView
|
||||||
|
android:id="@+id/dropdown_texture_size"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:inputType="none" />
|
||||||
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
|
|
||||||
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
|
android:id="@+id/layout_stream_size"
|
||||||
|
style="@style/Widget.Material3.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="12dp"
|
||||||
|
android:hint="@string/gpu_unswizzle_stream_size">
|
||||||
|
|
||||||
|
<com.google.android.material.textfield.MaterialAutoCompleteTextView
|
||||||
|
android:id="@+id/dropdown_stream_size"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:inputType="none" />
|
||||||
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
|
|
||||||
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
|
android:id="@+id/layout_chunk_size"
|
||||||
|
style="@style/Widget.Material3.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:hint="@string/gpu_unswizzle_chunk_size">
|
||||||
|
|
||||||
|
<com.google.android.material.textfield.MaterialAutoCompleteTextView
|
||||||
|
android:id="@+id/dropdown_chunk_size"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:inputType="none" />
|
||||||
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="24dp"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:gravity="end"
|
||||||
|
android:spacing="8dp">
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/btn_default"
|
||||||
|
style="@style/Widget.Material3.Button.TextButton"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/gpu_unswizzle_default_button" />
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/btn_cancel"
|
||||||
|
style="@style/Widget.Material3.Button.TextButton"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@android:string/cancel" />
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/btn_ok"
|
||||||
|
style="@style/Widget.Material3.Button.TextButton"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@android:string/ok" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
</ScrollView>
|
||||||
@@ -0,0 +1,226 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="?attr/colorSurface">
|
||||||
|
|
||||||
|
<com.google.android.material.appbar.AppBarLayout
|
||||||
|
android:id="@+id/appbar"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
|
<com.google.android.material.appbar.MaterialToolbar
|
||||||
|
android:id="@+id/toolbar_new_user"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="?attr/actionBarSize"
|
||||||
|
app:title="@string/profile_new_user"
|
||||||
|
app:navigationIcon="@drawable/ic_back"
|
||||||
|
app:titleCentered="false" />
|
||||||
|
|
||||||
|
</com.google.android.material.appbar.AppBarLayout>
|
||||||
|
|
||||||
|
<androidx.core.widget.NestedScrollView
|
||||||
|
android:id="@+id/scroll_content"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:clipToPadding="false"
|
||||||
|
android:paddingBottom="88dp"
|
||||||
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:paddingHorizontal="24dp"
|
||||||
|
android:paddingVertical="16dp">
|
||||||
|
|
||||||
|
<com.google.android.material.card.MaterialCardView
|
||||||
|
android:layout_width="128dp"
|
||||||
|
android:layout_height="128dp"
|
||||||
|
android:layout_gravity="center_horizontal"
|
||||||
|
android:layout_marginBottom="24dp"
|
||||||
|
style="@style/Widget.Material3.CardView.Elevated"
|
||||||
|
app:cardCornerRadius="64dp"
|
||||||
|
app:cardElevation="4dp">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/image_user_avatar"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:scaleType="centerCrop"
|
||||||
|
android:contentDescription="@string/profile_avatar"
|
||||||
|
tools:src="@drawable/ic_account_circle" />
|
||||||
|
|
||||||
|
</com.google.android.material.card.MaterialCardView>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:gravity="center"
|
||||||
|
android:layout_marginBottom="24dp">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:gravity="center">
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/button_select_image"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:text="@string/profile_select_image"
|
||||||
|
style="@style/Widget.Material3.Button.TonalButton"
|
||||||
|
app:icon="@drawable/ic_add"
|
||||||
|
android:layout_marginEnd="4dp" />
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/button_firmware_avatars"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:text="@string/profile_firmware_avatars"
|
||||||
|
style="@style/Widget.Material3.Button.TonalButton"
|
||||||
|
app:icon="@drawable/ic_account_circle"
|
||||||
|
android:layout_marginStart="4dp"
|
||||||
|
android:visibility="gone" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/button_revert_image"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
|
android:text="@string/profile_revert_image"
|
||||||
|
style="@style/Widget.Material3.Button.TextButton"
|
||||||
|
android:visibility="gone" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="24dp"
|
||||||
|
android:hint="@string/profile_username">
|
||||||
|
|
||||||
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
android:id="@+id/edit_username"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:inputType="text"
|
||||||
|
android:maxLength="32"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:minHeight="48dp" />
|
||||||
|
|
||||||
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
|
|
||||||
|
<com.google.android.material.card.MaterialCardView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="16dp"
|
||||||
|
style="@style/Widget.Material3.CardView.Filled"
|
||||||
|
app:cardCornerRadius="16dp">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:padding="16dp">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/profile_uuid"
|
||||||
|
android:textAppearance="?attr/textAppearanceLabelMedium"
|
||||||
|
android:textColor="?attr/colorOnSurfaceVariant"
|
||||||
|
android:layout_marginBottom="8dp" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:gravity="center_vertical">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_uuid"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:textAppearance="?attr/textAppearanceBodyMedium"
|
||||||
|
android:fontFamily="monospace"
|
||||||
|
android:textIsSelectable="true"
|
||||||
|
tools:text="12345678-1234-1234-1234-123456789012" />
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/button_generate_uuid"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/profile_generate"
|
||||||
|
style="@style/Widget.Material3.Button.TextButton"
|
||||||
|
app:icon="@drawable/ic_refresh"
|
||||||
|
app:iconGravity="textStart" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/profile_uuid_description"
|
||||||
|
android:textAppearance="?attr/textAppearanceBodySmall"
|
||||||
|
android:textColor="?attr/colorOnSurfaceVariant"
|
||||||
|
android:layout_marginTop="8dp" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</com.google.android.material.card.MaterialCardView>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</androidx.core.widget.NestedScrollView>
|
||||||
|
|
||||||
|
<com.google.android.material.card.MaterialCardView
|
||||||
|
android:id="@+id/button_layout"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="bottom"
|
||||||
|
style="@style/Widget.Material3.CardView.Elevated"
|
||||||
|
app:cardCornerRadius="0dp"
|
||||||
|
app:cardElevation="8dp">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:id="@+id/button_container"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:padding="16dp"
|
||||||
|
android:paddingBottom="24dp">
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/button_cancel"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:layout_marginEnd="8dp"
|
||||||
|
android:text="@android:string/cancel"
|
||||||
|
style="@style/Widget.Material3.Button.TonalButton" />
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/button_save"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:layout_marginStart="8dp"
|
||||||
|
android:text="@string/save"
|
||||||
|
style="@style/Widget.Material3.Button" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</com.google.android.material.card.MaterialCardView>
|
||||||
|
|
||||||
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="?attr/colorSurface"
|
||||||
|
android:fitsSystemWindows="true">
|
||||||
|
|
||||||
|
<com.google.android.material.appbar.AppBarLayout
|
||||||
|
android:id="@+id/appbar"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:fitsSystemWindows="true">
|
||||||
|
|
||||||
|
<com.google.android.material.appbar.MaterialToolbar
|
||||||
|
android:id="@+id/toolbar_profiles"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="?attr/actionBarSize"
|
||||||
|
app:title="@string/profile_manager"
|
||||||
|
app:navigationIcon="@drawable/ic_back"
|
||||||
|
app:titleCentered="false" />
|
||||||
|
|
||||||
|
</com.google.android.material.appbar.AppBarLayout>
|
||||||
|
|
||||||
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
|
android:id="@+id/list_profiles"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:clipToPadding="false"
|
||||||
|
android:paddingTop="8dp"
|
||||||
|
android:paddingBottom="96dp"
|
||||||
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
||||||
|
tools:listitem="@layout/list_item_profile" />
|
||||||
|
|
||||||
|
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
|
||||||
|
android:id="@+id/button_add_user"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="bottom|end"
|
||||||
|
android:layout_margin="24dp"
|
||||||
|
android:text="@string/profile_add_user"
|
||||||
|
android:contentDescription="@string/profile_add_user"
|
||||||
|
app:icon="@drawable/ic_add"
|
||||||
|
app:iconGravity="start"
|
||||||
|
app:layout_behavior="com.google.android.material.behavior.HideBottomViewOnScrollBehavior" />
|
||||||
|
|
||||||
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<com.google.android.material.card.MaterialCardView
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_margin="4dp"
|
||||||
|
style="@style/Widget.Material3.CardView.Elevated"
|
||||||
|
app:cardCornerRadius="12dp"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
android:checkable="true">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/image_avatar"
|
||||||
|
android:layout_width="72dp"
|
||||||
|
android:layout_height="72dp"
|
||||||
|
android:scaleType="centerCrop"
|
||||||
|
android:contentDescription="@string/profile_avatar" />
|
||||||
|
|
||||||
|
</com.google.android.material.card.MaterialCardView>
|
||||||
@@ -0,0 +1,125 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<com.google.android.material.card.MaterialCardView
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="16dp"
|
||||||
|
android:layout_marginVertical="6dp"
|
||||||
|
style="@style/Widget.Material3.CardView.Filled"
|
||||||
|
app:cardCornerRadius="16dp"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true">
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:padding="12dp">
|
||||||
|
|
||||||
|
<com.google.android.material.card.MaterialCardView
|
||||||
|
android:id="@+id/avatar_container"
|
||||||
|
android:layout_width="56dp"
|
||||||
|
android:layout_height="56dp"
|
||||||
|
style="@style/Widget.Material3.CardView.Elevated"
|
||||||
|
app:cardCornerRadius="28dp"
|
||||||
|
app:cardElevation="1dp"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/image_avatar"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:scaleType="centerCrop"
|
||||||
|
tools:src="@drawable/ic_account_circle"
|
||||||
|
android:contentDescription="@string/profile_avatar" />
|
||||||
|
|
||||||
|
</com.google.android.material.card.MaterialCardView>
|
||||||
|
|
||||||
|
<com.google.android.material.card.MaterialCardView
|
||||||
|
android:id="@+id/check_container"
|
||||||
|
android:layout_width="20dp"
|
||||||
|
android:layout_height="20dp"
|
||||||
|
android:visibility="gone"
|
||||||
|
style="@style/Widget.Material3.CardView.Filled"
|
||||||
|
app:cardBackgroundColor="?attr/colorPrimary"
|
||||||
|
app:cardCornerRadius="10dp"
|
||||||
|
app:cardElevation="2dp"
|
||||||
|
app:layout_constraintEnd_toEndOf="@id/avatar_container"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@id/avatar_container"
|
||||||
|
tools:visibility="visible">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/icon_check"
|
||||||
|
android:layout_width="14dp"
|
||||||
|
android:layout_height="14dp"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:src="@drawable/ic_check"
|
||||||
|
app:tint="?attr/colorOnPrimary"
|
||||||
|
android:contentDescription="@string/profile_current_user" />
|
||||||
|
|
||||||
|
</com.google.android.material.card.MaterialCardView>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/text_container"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:layout_marginStart="12dp"
|
||||||
|
android:layout_marginEnd="8dp"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/avatar_container"
|
||||||
|
app:layout_constraintEnd_toStartOf="@id/button_edit"
|
||||||
|
app:layout_constraintTop_toTopOf="@id/avatar_container"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@id/avatar_container">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_username"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textAppearance="?attr/textAppearanceTitleMedium"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:ellipsize="end"
|
||||||
|
tools:text="User Name" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_uuid"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="2dp"
|
||||||
|
android:textAppearance="?attr/textAppearanceBodySmall"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:ellipsize="middle"
|
||||||
|
android:textColor="?attr/colorOnSurfaceVariant"
|
||||||
|
tools:text="12345678-1234-1234-1234-123456789012" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/button_edit"
|
||||||
|
android:layout_width="40dp"
|
||||||
|
android:layout_height="40dp"
|
||||||
|
style="@style/Widget.Material3.Button.IconButton"
|
||||||
|
app:icon="@drawable/ic_edit"
|
||||||
|
app:iconTint="?attr/colorOnSurfaceVariant"
|
||||||
|
app:layout_constraintEnd_toStartOf="@id/button_delete"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
android:contentDescription="@string/profile_edit" />
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/button_delete"
|
||||||
|
android:layout_width="40dp"
|
||||||
|
android:layout_height="40dp"
|
||||||
|
style="@style/Widget.Material3.Button.IconButton"
|
||||||
|
app:icon="@drawable/ic_delete"
|
||||||
|
app:iconTint="?attr/colorError"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
android:contentDescription="@string/profile_delete" />
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
</com.google.android.material.card.MaterialCardView>
|
||||||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 203 KiB |
@@ -36,6 +36,9 @@
|
|||||||
<action
|
<action
|
||||||
android:id="@+id/action_homeSettingsFragment_to_gameFoldersFragment"
|
android:id="@+id/action_homeSettingsFragment_to_gameFoldersFragment"
|
||||||
app:destination="@id/gameFoldersFragment" />
|
app:destination="@id/gameFoldersFragment" />
|
||||||
|
<action
|
||||||
|
android:id="@+id/action_homeSettingsFragment_to_profileManagerFragment"
|
||||||
|
app:destination="@id/profileManagerFragment" />
|
||||||
</fragment>
|
</fragment>
|
||||||
|
|
||||||
<fragment
|
<fragment
|
||||||
@@ -186,5 +189,17 @@
|
|||||||
app:nullable="true"
|
app:nullable="true"
|
||||||
android:defaultValue="@null" />
|
android:defaultValue="@null" />
|
||||||
</fragment>
|
</fragment>
|
||||||
|
<fragment
|
||||||
|
android:id="@+id/profileManagerFragment"
|
||||||
|
android:name="org.yuzu.yuzu_emu.fragments.ProfileManagerFragment"
|
||||||
|
android:label="ProfileManagerFragment" >
|
||||||
|
<action
|
||||||
|
android:id="@+id/action_profileManagerFragment_to_newUserDialog"
|
||||||
|
app:destination="@id/newUserDialogFragment" />
|
||||||
|
</fragment>
|
||||||
|
<fragment
|
||||||
|
android:id="@+id/newUserDialogFragment"
|
||||||
|
android:name="org.yuzu.yuzu_emu.fragments.EditUserDialogFragment"
|
||||||
|
android:label="NewUserDialogFragment" />
|
||||||
|
|
||||||
</navigation>
|
</navigation>
|
||||||
|
|||||||
@@ -94,9 +94,6 @@
|
|||||||
|
|
||||||
<string name="use_sync_core">مزامنة سرعة النواة</string>
|
<string name="use_sync_core">مزامنة سرعة النواة</string>
|
||||||
<string name="use_sync_core_description">قم بمزامنة سرعة النواة مع النسبة المئوية للسرعة القصوى لتحسين الأداء دون تغيير السرعة الفعلية للعبة.</string>
|
<string name="use_sync_core_description">قم بمزامنة سرعة النواة مع النسبة المئوية للسرعة القصوى لتحسين الأداء دون تغيير السرعة الفعلية للعبة.</string>
|
||||||
<string name="use_lru_cache">تمكين ذاكرة التخزين المؤقتة LRU</string>
|
|
||||||
<string name="use_lru_cache_description">قم بتمكين أو تعطيل ذاكرة التخزين المؤقتة الأقل استخدامًا (LRU)، مما يزيد من الأداء عن طريق توفير استخدام معالج وحدة المعالجة المركزية. قد تواجه بعض الألعاب مشكلات مع هذا الإعداد، لذا قم بتعطيله إذا لم يتم تشغيل اللعبة أو تعطلت بشكل عشوائي.</string>
|
|
||||||
|
|
||||||
<string name="cpuopt_unsafe_host_mmu">تمكين محاكاة MMU المضيف</string>
|
<string name="cpuopt_unsafe_host_mmu">تمكين محاكاة MMU المضيف</string>
|
||||||
<string name="cpuopt_unsafe_host_mmu_description">يعمل هذا التحسين على تسريع وصول الذاكرة بواسطة البرنامج الضيف. يؤدي تمكينه إلى إجراء عمليات قراءة/كتابة ذاكرة الضيف مباشرة في الذاكرة والاستفادة من MMU المضيف. يؤدي تعطيل هذا إلى إجبار جميع عمليات الوصول إلى الذاكرة على استخدام محاكاة MMU البرمجية.</string>
|
<string name="cpuopt_unsafe_host_mmu_description">يعمل هذا التحسين على تسريع وصول الذاكرة بواسطة البرنامج الضيف. يؤدي تمكينه إلى إجراء عمليات قراءة/كتابة ذاكرة الضيف مباشرة في الذاكرة والاستفادة من MMU المضيف. يؤدي تعطيل هذا إلى إجبار جميع عمليات الوصول إلى الذاكرة على استخدام محاكاة MMU البرمجية.</string>
|
||||||
<string name="debug_knobs">مقابض تصحيح الأخطاء</string>
|
<string name="debug_knobs">مقابض تصحيح الأخطاء</string>
|
||||||
|
|||||||
@@ -58,9 +58,6 @@
|
|||||||
|
|
||||||
<string name="use_sync_core">مزامنة سرعة النواة</string>
|
<string name="use_sync_core">مزامنة سرعة النواة</string>
|
||||||
<string name="use_sync_core_description">خێرایی تیکەکانی ناوک ڕێکبخە لەگەڵ ڕێژەی خێرایی بەرزترین بۆ باشترکردنی کارایی بەبێ گۆڕینی خێرایی ڕاستەقینەی یارییەکە.</string>
|
<string name="use_sync_core_description">خێرایی تیکەکانی ناوک ڕێکبخە لەگەڵ ڕێژەی خێرایی بەرزترین بۆ باشترکردنی کارایی بەبێ گۆڕینی خێرایی ڕاستەقینەی یارییەکە.</string>
|
||||||
<string name="use_lru_cache">تمكين ذاكرة التخزين المؤقت LRU</string>
|
|
||||||
<string name="use_lru_cache_description">چالاک یان ناچالاککردنی کاشەی LRU، کارایی باشتر دەکات بە هەڵگرتنی بەکارهێنانی پرۆسەی CPU. هەندێک یاری کێشەی لەگەڵ هەیە، بەتایبەتی TotK 1.2.1، بۆیە بیخەوێنە ئەگەر یاریەکە نەگەڕێت یان بە هەڕەمەکی بشکێت.</string>
|
|
||||||
|
|
||||||
<string name="cpuopt_unsafe_host_mmu">چالاککردنی میمیکردنی MMU میواندە</string>
|
<string name="cpuopt_unsafe_host_mmu">چالاککردنی میمیکردنی MMU میواندە</string>
|
||||||
<string name="cpuopt_unsafe_host_mmu_description">ئەم باشکردنە خێرایی دەستکەوتنی بیرگە لەلایەن پرۆگرامی میوانەکە زیاد دەکات. چالاککردنی وای لێدەکات کە خوێندنەوە/نووسینەکانی بیرگەی میوانەکە ڕاستەوخۆ لە بیرگە ئەنجام بدرێت و میمیکردنی MMU میواندە بەکاربهێنێت. ناچالاککردنی ئەمە هەموو دەستکەوتنەکانی بیرگە ڕەت دەکاتەوە لە بەکارهێنانی میمیکردنی MMU نەرمەکاڵا.</string>
|
<string name="cpuopt_unsafe_host_mmu_description">ئەم باشکردنە خێرایی دەستکەوتنی بیرگە لەلایەن پرۆگرامی میوانەکە زیاد دەکات. چالاککردنی وای لێدەکات کە خوێندنەوە/نووسینەکانی بیرگەی میوانەکە ڕاستەوخۆ لە بیرگە ئەنجام بدرێت و میمیکردنی MMU میواندە بەکاربهێنێت. ناچالاککردنی ئەمە هەموو دەستکەوتنەکانی بیرگە ڕەت دەکاتەوە لە بەکارهێنانی میمیکردنی MMU نەرمەکاڵا.</string>
|
||||||
<!-- NVDEC Emulation -->
|
<!-- NVDEC Emulation -->
|
||||||
|
|||||||
@@ -90,9 +90,6 @@
|
|||||||
|
|
||||||
<string name="use_sync_core">Synchronizovat rychlost jádra</string>
|
<string name="use_sync_core">Synchronizovat rychlost jádra</string>
|
||||||
<string name="use_sync_core_description">Synchronizuje rychlost jádra s nastaveným limitem rychlosti, aby se zlepšil výkon bez zrychlení samotné hry.</string>
|
<string name="use_sync_core_description">Synchronizuje rychlost jádra s nastaveným limitem rychlosti, aby se zlepšil výkon bez zrychlení samotné hry.</string>
|
||||||
<string name="use_lru_cache">Zapnout mezipaměť LRU</string>
|
|
||||||
<string name="use_lru_cache_description">Zapne, nebo vypne mezipaměť LRU (Least Recently Used). Ta zvyšuje výkon tím, že šetří využití procesoru. Některé hry s tímto mohou mít problém, takže pokud se hra nespustí, nebo náhodně padá, tuto volbu vypněte.</string>
|
|
||||||
|
|
||||||
<string name="cpuopt_unsafe_host_mmu">Povolit emulaci hostitelské MMU</string>
|
<string name="cpuopt_unsafe_host_mmu">Povolit emulaci hostitelské MMU</string>
|
||||||
<string name="cpuopt_unsafe_host_mmu_description">Tato optimalizace zrychluje hostovanému programu přístupy do paměti. Zapnutím této funkce se čtení i zápisy do paměti provádějí přímo a využívají hostitelskou MMU. Při vypnutí musí všechny přístupy do paměti použít softwarovou emulaci MMU. </string>
|
<string name="cpuopt_unsafe_host_mmu_description">Tato optimalizace zrychluje hostovanému programu přístupy do paměti. Zapnutím této funkce se čtení i zápisy do paměti provádějí přímo a využívají hostitelskou MMU. Při vypnutí musí všechny přístupy do paměti použít softwarovou emulaci MMU. </string>
|
||||||
<string name="debug_knobs">Ladící parametry</string>
|
<string name="debug_knobs">Ladící parametry</string>
|
||||||
|
|||||||
@@ -90,9 +90,6 @@
|
|||||||
|
|
||||||
<string name="use_sync_core">Kern-Geschwindigkeit synchronisieren</string>
|
<string name="use_sync_core">Kern-Geschwindigkeit synchronisieren</string>
|
||||||
<string name="use_sync_core_description">Synchronisiert die Taktrate des Kerns mit der maximalen Geschwindigkeit, um die Leistung zu verbessern, ohne die tatsächliche Spielgeschwindigkeit zu verändern.</string>
|
<string name="use_sync_core_description">Synchronisiert die Taktrate des Kerns mit der maximalen Geschwindigkeit, um die Leistung zu verbessern, ohne die tatsächliche Spielgeschwindigkeit zu verändern.</string>
|
||||||
<string name="use_lru_cache">LRU-Cache aktivieren</string>
|
|
||||||
<string name="use_lru_cache_description">Aktivieren oder deaktivieren Sie den LRU-Cache, um die Leistung durch Einsparung von CPU-Prozessorauslastung zu verbessern. Einige Spiele haben Probleme damit, insbesondere TotK 1.2.1, deaktivieren Sie es also, wenn das Spiel nicht startet oder zufällig abstürzt.</string>
|
|
||||||
|
|
||||||
<string name="cpuopt_unsafe_host_mmu">Host-MMU-Emulation aktivieren</string>
|
<string name="cpuopt_unsafe_host_mmu">Host-MMU-Emulation aktivieren</string>
|
||||||
<string name="cpuopt_unsafe_host_mmu_description">Diese Optimierung beschleunigt Speicherzugriffe durch das Gastprogramm. Wenn aktiviert, erfolgen Speicherlese- und -schreibvorgänge des Gastes direkt im Speicher und nutzen die MMU des Hosts. Das Deaktivieren erzwingt die Verwendung der Software-MMU-Emulation für alle Speicherzugriffe.</string>
|
<string name="cpuopt_unsafe_host_mmu_description">Diese Optimierung beschleunigt Speicherzugriffe durch das Gastprogramm. Wenn aktiviert, erfolgen Speicherlese- und -schreibvorgänge des Gastes direkt im Speicher und nutzen die MMU des Hosts. Das Deaktivieren erzwingt die Verwendung der Software-MMU-Emulation für alle Speicherzugriffe.</string>
|
||||||
<string name="debug_knobs">Debug-Regler</string>
|
<string name="debug_knobs">Debug-Regler</string>
|
||||||
|
|||||||
@@ -75,9 +75,6 @@
|
|||||||
|
|
||||||
<string name="use_sync_core">Sincronizar la velocidad del núcleo</string>
|
<string name="use_sync_core">Sincronizar la velocidad del núcleo</string>
|
||||||
<string name="use_sync_core_description">Sincroniza la velocidad del núcleo con el porcentaje máximo de velocidad para mejorar el rendimiento sin alterar la velocidad real del juego.</string>
|
<string name="use_sync_core_description">Sincroniza la velocidad del núcleo con el porcentaje máximo de velocidad para mejorar el rendimiento sin alterar la velocidad real del juego.</string>
|
||||||
<string name="use_lru_cache">Habilitar caché LRU</string>
|
|
||||||
<string name="use_lru_cache_description">Habilite o deshabilite la caché menos utilizada recientemente (LRU), aumentando el rendimiento al ahorrar el uso del proceso de la CPU. Algunos juegos pueden ver problemas con esta configuración, así que desactívela si el juego no arranca o se bloquea aleatoriamente.</string>
|
|
||||||
|
|
||||||
<string name="cpuopt_unsafe_host_mmu">Habilitar emulación de MMU del anfitrión</string>
|
<string name="cpuopt_unsafe_host_mmu">Habilitar emulación de MMU del anfitrión</string>
|
||||||
<string name="cpuopt_unsafe_host_mmu_description">Esta optimización acelera el acceso a la memoria del programa invitado. Al habilitarla, las lecturas y escrituras de la memoria del invitado se realizan directamente en la memoria y utilizan la MMU del anfitrión. Al deshabilitarla, todos los accesos a la memoria utilizan el software de emulación de la MMU.</string>
|
<string name="cpuopt_unsafe_host_mmu_description">Esta optimización acelera el acceso a la memoria del programa invitado. Al habilitarla, las lecturas y escrituras de la memoria del invitado se realizan directamente en la memoria y utilizan la MMU del anfitrión. Al deshabilitarla, todos los accesos a la memoria utilizan el software de emulación de la MMU.</string>
|
||||||
<!-- NVDEC Emulation -->
|
<!-- NVDEC Emulation -->
|
||||||
|
|||||||
@@ -60,8 +60,6 @@
|
|||||||
<string name="sync_memory_operations_description">اطمینان از سازگاری دادهها بین عملیات محاسباتی و حافظه. این گزینه ممکن است مشکلات برخی بازیها را رفع کند، اما در برخی موارد ممکن است عملکرد را کاهش دهد. به نظر میرسد بازیهای با Unreal Engine 4 بیشترین تأثیر را داشته باشند.</string>
|
<string name="sync_memory_operations_description">اطمینان از سازگاری دادهها بین عملیات محاسباتی و حافظه. این گزینه ممکن است مشکلات برخی بازیها را رفع کند، اما در برخی موارد ممکن است عملکرد را کاهش دهد. به نظر میرسد بازیهای با Unreal Engine 4 بیشترین تأثیر را داشته باشند.</string>
|
||||||
<string name="buffer_reorder_disable">غیرفعال کردن مرتبسازی مجدد بافر</string>
|
<string name="buffer_reorder_disable">غیرفعال کردن مرتبسازی مجدد بافر</string>
|
||||||
<string name="buffer_reorder_disable_description">در صورت انتخاب، مرتبسازی مجدد آپلودهای حافظه نگاشتشده غیرفعال میشود که امکان ارتباط آپلودها با ترسیمات خاص را فراهم میکند. ممکن است در برخی موارد عملکرد را کاهش دهد.</string>
|
<string name="buffer_reorder_disable_description">در صورت انتخاب، مرتبسازی مجدد آپلودهای حافظه نگاشتشده غیرفعال میشود که امکان ارتباط آپلودها با ترسیمات خاص را فراهم میکند. ممکن است در برخی موارد عملکرد را کاهش دهد.</string>
|
||||||
<string name="use_lru_cache">فعالسازی حافظه نهان LRU</string>
|
|
||||||
<string name="use_lru_cache_description">حافظه پنهان LRU را فعال یا غیرفعال کنید تا با کاهش استفاده از پردازنده، عملکرد بهبود یابد. برخی بازیها مانند TotK 1.2.1 با این ویژگی مشکل دارند، در صورت عدم راهاندازی یا قطعی تصادفی بازی، آن را غیرفعال کنید.</string>
|
|
||||||
<string name="dyna_state">حالت پویای گسترده</string>
|
<string name="dyna_state">حالت پویای گسترده</string>
|
||||||
<string name="dyna_state_description">تعداد قابلیتهایی که میتوان در حالت Extended Dynamic State استفاده کرد را کنترل میکند. اعداد بالاتر قابلیتهای بیشتری را فعال کرده و میتوانند عملکرد را افزایش دهند، اما ممکن است با برخی درایورها و فروشندگان مشکلاتی ایجاد کنند. مقدار پیشفرض بسته به سیستم و قابلیتهای سختافزاری شما ممکن است متفاوت باشد. این مقدار را میتوان تغییر داد تا زمانی که پایداری و کیفیت بصری بهتری حاصل شود.</string>
|
<string name="dyna_state_description">تعداد قابلیتهایی که میتوان در حالت Extended Dynamic State استفاده کرد را کنترل میکند. اعداد بالاتر قابلیتهای بیشتری را فعال کرده و میتوانند عملکرد را افزایش دهند، اما ممکن است با برخی درایورها و فروشندگان مشکلاتی ایجاد کنند. مقدار پیشفرض بسته به سیستم و قابلیتهای سختافزاری شما ممکن است متفاوت باشد. این مقدار را میتوان تغییر داد تا زمانی که پایداری و کیفیت بصری بهتری حاصل شود.</string>
|
||||||
<string name="disabled">غیرفعال</string>
|
<string name="disabled">غیرفعال</string>
|
||||||
|
|||||||
@@ -75,9 +75,6 @@
|
|||||||
|
|
||||||
<string name="use_sync_core">Synchroniser la vitesse du cœur</string>
|
<string name="use_sync_core">Synchroniser la vitesse du cœur</string>
|
||||||
<string name="use_sync_core_description">Synchronise la vitesse du cœur avec le pourcentage de vitesse maximal pour améliorer les performances sans modifier la vitesse réelle du jeu.</string>
|
<string name="use_sync_core_description">Synchronise la vitesse du cœur avec le pourcentage de vitesse maximal pour améliorer les performances sans modifier la vitesse réelle du jeu.</string>
|
||||||
<string name="use_lru_cache">Activer le cache LRU</string>
|
|
||||||
<string name="use_lru_cache_description">Active ou désactive le cache LRU (Least Recently Used) pour améliorer les performances en réduisant l’utilisation du processeur. Certains jeux peuvent rencontrer des problèmes avec ce réglage ; désactivez-le si le jeu ne démarre pas ou plante de manière aléatoire.</string>
|
|
||||||
|
|
||||||
<string name="cpuopt_unsafe_host_mmu">Activer l\'émulation de la MMU hôte</string>
|
<string name="cpuopt_unsafe_host_mmu">Activer l\'émulation de la MMU hôte</string>
|
||||||
<string name="cpuopt_unsafe_host_mmu_description">Cette optimisation accélère les accès mémoire par le programme invité. L\'activer entraîne que les lectures/écritures mémoire de l\'invité sont effectuées directement en mémoire et utilisent la MMU de l\'hôte. Désactiver cela force tous les accès mémoire à utiliser l\'émulation logicielle de la MMU.</string>
|
<string name="cpuopt_unsafe_host_mmu_description">Cette optimisation accélère les accès mémoire par le programme invité. L\'activer entraîne que les lectures/écritures mémoire de l\'invité sont effectuées directement en mémoire et utilisent la MMU de l\'hôte. Désactiver cela force tous les accès mémoire à utiliser l\'émulation logicielle de la MMU.</string>
|
||||||
<string name="debug_knobs">Boutons de débogage</string>
|
<string name="debug_knobs">Boutons de débogage</string>
|
||||||
|
|||||||
@@ -62,9 +62,6 @@
|
|||||||
|
|
||||||
<string name="use_sync_core">סנכרון מהירות ליבה</string>
|
<string name="use_sync_core">סנכרון מהירות ליבה</string>
|
||||||
<string name="use_sync_core_description">סנכרן את מהירות הליבה לאחוז המהירות המרבי כדי לשפר ביצועים מבלי לשנות את מהירות המשחק בפועל.</string>
|
<string name="use_sync_core_description">סנכרן את מהירות הליבה לאחוז המהירות המרבי כדי לשפר ביצועים מבלי לשנות את מהירות המשחק בפועל.</string>
|
||||||
<string name="use_lru_cache">הפעלת מטמון LRU</string>
|
|
||||||
<string name="use_lru_cache_description">הפעל או השבת מטמון LRU לשיפור ביצועים על ידי חיסכון בשימוש במעבד. לחלק מהמשחקים כמו TotK 1.2.1 יש בעיות - השבת אם המשחק לא עולה או קורס באקראי.</string>
|
|
||||||
|
|
||||||
<string name="cpuopt_unsafe_host_mmu">הפעל אמולציית MMU מארח</string>
|
<string name="cpuopt_unsafe_host_mmu">הפעל אמולציית MMU מארח</string>
|
||||||
<string name="cpuopt_unsafe_host_mmu_description">אופטימיזציה זו מאיצה את גישת הזיכרון על ידי התוכנית האורחת. הפעלתה גורמת לכך שפעולות קריאה/כתיבה לזיכרון האורח מתבצעות ישירות לזיכרון ומשתמשות ב-MMU של המארח. השבתת זאת מאלצת את כל גישות הזיכרון להשתמש באמולציית MMU תוכנתית.</string>
|
<string name="cpuopt_unsafe_host_mmu_description">אופטימיזציה זו מאיצה את גישת הזיכרון על ידי התוכנית האורחת. הפעלתה גורמת לכך שפעולות קריאה/כתיבה לזיכרון האורח מתבצעות ישירות לזיכרון ומשתמשות ב-MMU של המארח. השבתת זאת מאלצת את כל גישות הזיכרון להשתמש באמולציית MMU תוכנתית.</string>
|
||||||
<string name="debug_knobs_description">לשימוש בפיתוח בלבד.</string>
|
<string name="debug_knobs_description">לשימוש בפיתוח בלבד.</string>
|
||||||
|
|||||||
@@ -58,9 +58,6 @@
|
|||||||
|
|
||||||
<string name="use_sync_core">Magsebesség szinkronizálása</string>
|
<string name="use_sync_core">Magsebesség szinkronizálása</string>
|
||||||
<string name="use_sync_core_description">A mag sebességének szinkronizálása a maximális sebesség százalékával a teljesítmény javítása érdekében a játék tényleges sebességének megváltoztatása nélkül.</string>
|
<string name="use_sync_core_description">A mag sebességének szinkronizálása a maximális sebesség százalékával a teljesítmény javítása érdekében a játék tényleges sebességének megváltoztatása nélkül.</string>
|
||||||
<string name="use_lru_cache">LRU gyorsítótár engedélyezése</string>
|
|
||||||
<string name="use_lru_cache_description">Engedélyezi vagy letiltja az LRU gyorsítótárat, növelve a teljesítményt a CPU használat csökkentésével. Néhány játéknak (különösen a TotK 1.2.1-nek) problémája lehet vele - tiltsa le, ha a játék nem indul el vagy véletlenszerűen összeomlik.</string>
|
|
||||||
|
|
||||||
<string name="cpuopt_unsafe_host_mmu">Gazda MMU emuláció engedélyezése</string>
|
<string name="cpuopt_unsafe_host_mmu">Gazda MMU emuláció engedélyezése</string>
|
||||||
<string name="cpuopt_unsafe_host_mmu_description">Ez az optimalizáció gyorsítja a vendégprogram memória-hozzáférését. Engedélyezése esetén a vendég memóriaolvasási/írási műveletei közvetlenül a memóriában történnek, és kihasználják a gazda MMU-ját. Letiltás esetén minden memória-hozzáférés a szoftveres MMU emulációt használja.</string>
|
<string name="cpuopt_unsafe_host_mmu_description">Ez az optimalizáció gyorsítja a vendégprogram memória-hozzáférését. Engedélyezése esetén a vendég memóriaolvasási/írási műveletei közvetlenül a memóriában történnek, és kihasználják a gazda MMU-ját. Letiltás esetén minden memória-hozzáférés a szoftveres MMU emulációt használja.</string>
|
||||||
<!-- NVDEC Emulation -->
|
<!-- NVDEC Emulation -->
|
||||||
|
|||||||
@@ -77,9 +77,6 @@
|
|||||||
|
|
||||||
<string name="use_sync_core">Sinkronisasi Kecepatan Inti</string>
|
<string name="use_sync_core">Sinkronisasi Kecepatan Inti</string>
|
||||||
<string name="use_sync_core_description">Sinkronkan kecepatan inti dengan persentase kecepatan maksimum untuk meningkatkan performa tanpa mengubah kecepatan sebenarnya dari permainan.</string>
|
<string name="use_sync_core_description">Sinkronkan kecepatan inti dengan persentase kecepatan maksimum untuk meningkatkan performa tanpa mengubah kecepatan sebenarnya dari permainan.</string>
|
||||||
<string name="use_lru_cache">Aktifkan LRU Cache</string>
|
|
||||||
<string name="use_lru_cache_description">Aktifkan atau nonaktifkan cache LRU untuk meningkatkan performa dengan mengurangi penggunaan proses CPU. Beberapa game seperti TotK 1.2.1 memiliki masalah - nonaktifkan jika game tidak mau berjalan atau crash acak.</string>
|
|
||||||
|
|
||||||
<string name="cpuopt_unsafe_host_mmu">Aktifkan Emulasi MMU Host</string>
|
<string name="cpuopt_unsafe_host_mmu">Aktifkan Emulasi MMU Host</string>
|
||||||
<string name="cpuopt_unsafe_host_mmu_description">Optimasi ini mempercepat akses memori oleh program tamu. Mengaktifkannya menyebabkan pembacaan/penulisan memori tamu dilakukan langsung ke memori dan memanfaatkan MMU Host. Menonaktifkan ini memaksa semua akses memori menggunakan Emulasi MMU Perangkat Lunak.</string>
|
<string name="cpuopt_unsafe_host_mmu_description">Optimasi ini mempercepat akses memori oleh program tamu. Mengaktifkannya menyebabkan pembacaan/penulisan memori tamu dilakukan langsung ke memori dan memanfaatkan MMU Host. Menonaktifkan ini memaksa semua akses memori menggunakan Emulasi MMU Perangkat Lunak.</string>
|
||||||
<!-- NVDEC Emulation -->
|
<!-- NVDEC Emulation -->
|
||||||
|
|||||||
@@ -75,9 +75,6 @@
|
|||||||
|
|
||||||
<string name="use_sync_core">Sincronizza velocità core</string>
|
<string name="use_sync_core">Sincronizza velocità core</string>
|
||||||
<string name="use_sync_core_description">Sincronizza la velocità del core con la percentuale massima di velocità per migliorare le prestazioni senza alterare la velocità effettiva del gioco.</string>
|
<string name="use_sync_core_description">Sincronizza la velocità del core con la percentuale massima di velocità per migliorare le prestazioni senza alterare la velocità effettiva del gioco.</string>
|
||||||
<string name="use_lru_cache">Abilita cache LRU</string>
|
|
||||||
<string name="use_lru_cache_description">Abilita o disabilita la cache LRU per migliorare le prestazioni riducendo l\'uso della CPU. Alcuni giochi come TotK 1.2.1 hanno problemi - disabilitalo se il gioco non si avvia o crasha casualmente.</string>
|
|
||||||
|
|
||||||
<string name="cpuopt_unsafe_host_mmu">Abilita l\'emulazione della MMU nell\'host</string>
|
<string name="cpuopt_unsafe_host_mmu">Abilita l\'emulazione della MMU nell\'host</string>
|
||||||
<string name="cpuopt_unsafe_host_mmu_description">Questa ottimizzazione accelera gli accessi alla memoria da parte del programma guest. Abilitandola, le letture/scritture della memoria guest vengono eseguite direttamente in memoria e sfruttano la MMU host. Disabilitandola, tutti gli accessi alla memoria sono costretti a utilizzare l\'emulazione software della MMU.</string>
|
<string name="cpuopt_unsafe_host_mmu_description">Questa ottimizzazione accelera gli accessi alla memoria da parte del programma guest. Abilitandola, le letture/scritture della memoria guest vengono eseguite direttamente in memoria e sfruttano la MMU host. Disabilitandola, tutti gli accessi alla memoria sono costretti a utilizzare l\'emulazione software della MMU.</string>
|
||||||
<!-- NVDEC Emulation -->
|
<!-- NVDEC Emulation -->
|
||||||
|
|||||||
@@ -58,9 +58,6 @@
|
|||||||
|
|
||||||
<string name="use_sync_core">コア速度の同期</string>
|
<string name="use_sync_core">コア速度の同期</string>
|
||||||
<string name="use_sync_core_description">コアの速度を最大速度パーセンテージに同期させ、ゲームの実際の速度を変えずにパフォーマンスを向上させます。</string>
|
<string name="use_sync_core_description">コアの速度を最大速度パーセンテージに同期させ、ゲームの実際の速度を変えずにパフォーマンスを向上させます。</string>
|
||||||
<string name="use_lru_cache">LRUキャッシュを有効化</string>
|
|
||||||
<string name="use_lru_cache_description">LRUキャッシュを有効/無効にし、CPUプロセスの使用を節約してパフォーマンスを向上させます。TotK 1.2.1など一部のゲームで問題が発生する可能性があるため、ゲームが起動しない場合やランダムにクラッシュする場合は無効にしてください。</string>
|
|
||||||
|
|
||||||
<string name="cpuopt_unsafe_host_mmu">ホストMMUエミュレーションを有効化</string>
|
<string name="cpuopt_unsafe_host_mmu">ホストMMUエミュレーションを有効化</string>
|
||||||
<string name="cpuopt_unsafe_host_mmu_description">この最適化により、ゲストプログラムによるメモリアクセスが高速化されます。有効にすると、ゲストのメモリ読み書きが直接メモリ内で実行され、ホストのMMUを利用します。無効にすると、すべてのメモリアクセスでソフトウェアMMUエミュレーションが使用されます。</string>
|
<string name="cpuopt_unsafe_host_mmu_description">この最適化により、ゲストプログラムによるメモリアクセスが高速化されます。有効にすると、ゲストのメモリ読み書きが直接メモリ内で実行され、ホストのMMUを利用します。無効にすると、すべてのメモリアクセスでソフトウェアMMUエミュレーションが使用されます。</string>
|
||||||
<!-- NVDEC Emulation -->
|
<!-- NVDEC Emulation -->
|
||||||
|
|||||||
@@ -58,9 +58,6 @@
|
|||||||
|
|
||||||
<string name="use_sync_core">코어 속도 동기화</string>
|
<string name="use_sync_core">코어 속도 동기화</string>
|
||||||
<string name="use_sync_core_description">코어 틱 속도를 최대 속도 백분율과 동기화하여 게임의 실제 속도를 변경하지 않고 성능을 향상시킵니다.</string>
|
<string name="use_sync_core_description">코어 틱 속도를 최대 속도 백분율과 동기화하여 게임의 실제 속도를 변경하지 않고 성능을 향상시킵니다.</string>
|
||||||
<string name="use_lru_cache">LRU 캐시 사용</string>
|
|
||||||
<string name="use_lru_cache_description">LRU 캐시를 활성화 또는 비활성화하여 CPU 프로세스 사용을 절약하고 성능을 향상시킵니다. TotK 1.2.1을 포함한 일부 게임에서 문제가 발생할 수 있으므로 게임이 부팅되지 않거나 무작위로 충돌하는 경우 비활성화하세요.</string>
|
|
||||||
|
|
||||||
<string name="cpuopt_unsafe_host_mmu">호스트 MMU 에뮬레이션 사용</string>
|
<string name="cpuopt_unsafe_host_mmu">호스트 MMU 에뮬레이션 사용</string>
|
||||||
<string name="cpuopt_unsafe_host_mmu_description">이 최적화는 게스트 프로그램의 메모리 접근 속도를 높입니다. 활성화하면 게스트의 메모리 읽기/쓰기가 메모리에서 직접 수행되고 호스트의 MMU를 활용합니다. 비활성화하면 모든 메모리 접근에 소프트웨어 MMU 에뮬레이션을 사용하게 됩니다.</string>
|
<string name="cpuopt_unsafe_host_mmu_description">이 최적화는 게스트 프로그램의 메모리 접근 속도를 높입니다. 활성화하면 게스트의 메모리 읽기/쓰기가 메모리에서 직접 수행되고 호스트의 MMU를 활용합니다. 비활성화하면 모든 메모리 접근에 소프트웨어 MMU 에뮬레이션을 사용하게 됩니다.</string>
|
||||||
<!-- NVDEC Emulation -->
|
<!-- NVDEC Emulation -->
|
||||||
|
|||||||
@@ -58,9 +58,6 @@
|
|||||||
|
|
||||||
<string name="use_sync_core">Synkroniser kjernespeed</string>
|
<string name="use_sync_core">Synkroniser kjernespeed</string>
|
||||||
<string name="use_sync_core_description">Synkroniser kjernens hastighet med maksimal hastighetsprosent for å forbedre ytelsen uten å endre spillets faktiske hastighet.</string>
|
<string name="use_sync_core_description">Synkroniser kjernens hastighet med maksimal hastighetsprosent for å forbedre ytelsen uten å endre spillets faktiske hastighet.</string>
|
||||||
<string name="use_lru_cache">Aktiver LRU-mellomlager</string>
|
|
||||||
<string name="use_lru_cache_description">Aktiver eller deaktiver LRU-mellomlager for å forbedre ytelsen ved å spare CPU-prosessorbruk. Noen spill som TotK 1.2.1 har problemer med dette - deaktiver hvis spillet ikke starter eller krasjer tilfeldig.</string>
|
|
||||||
|
|
||||||
<string name="cpuopt_unsafe_host_mmu">Aktiver verts-MMU-emulering</string>
|
<string name="cpuopt_unsafe_host_mmu">Aktiver verts-MMU-emulering</string>
|
||||||
<string name="cpuopt_unsafe_host_mmu_description">Denne optimaliseringen fremskynder minnetilgang av gjesteprogrammet. Hvis aktivert, utføres gjestens minnelesing/skriving direkte i minnet og bruker vertens MMU. Deaktivering tvinger alle minnetilganger til å bruke programvarebasert MMU-emulering.</string>
|
<string name="cpuopt_unsafe_host_mmu_description">Denne optimaliseringen fremskynder minnetilgang av gjesteprogrammet. Hvis aktivert, utføres gjestens minnelesing/skriving direkte i minnet og bruker vertens MMU. Deaktivering tvinger alle minnetilganger til å bruke programvarebasert MMU-emulering.</string>
|
||||||
<!-- NVDEC Emulation -->
|
<!-- NVDEC Emulation -->
|
||||||
|
|||||||
@@ -90,9 +90,6 @@
|
|||||||
|
|
||||||
<string name="use_sync_core">Synchronizuj prędkość rdzenia</string>
|
<string name="use_sync_core">Synchronizuj prędkość rdzenia</string>
|
||||||
<string name="use_sync_core_description">Synchronizuje prędkość rdzenia z maksymalnym procentem prędkości, aby poprawić wydajność bez zmiany rzeczywistej prędkości gry.</string>
|
<string name="use_sync_core_description">Synchronizuje prędkość rdzenia z maksymalnym procentem prędkości, aby poprawić wydajność bez zmiany rzeczywistej prędkości gry.</string>
|
||||||
<string name="use_lru_cache">Włącz pamięć podręczną LRU</string>
|
|
||||||
<string name="use_lru_cache_description">Włącz lub wyłącz pamięć podręczną LRU, aby poprawić wydajność poprzez zmniejszenie użycia procesora. Niektóre gry, takie jak TotK 1.2.1, mogą mieć problemy - wyłącz, jeśli gra się nie uruchamia lub losowo zawiesza.</string>
|
|
||||||
|
|
||||||
<string name="cpuopt_unsafe_host_mmu">Włącz emulację MMU hosta</string>
|
<string name="cpuopt_unsafe_host_mmu">Włącz emulację MMU hosta</string>
|
||||||
<string name="cpuopt_unsafe_host_mmu_description">Ta optymalizacja przyspiesza dostęp do pamięci przez program gościa. Włączenie powoduje, że odczyty/zapisy pamięci gościa są wykonywane bezpośrednio w pamięci i wykorzystują MMU hosta. Wyłączenie wymusza użycie programowej emulacji MMU dla wszystkich dostępów do pamięci.</string>
|
<string name="cpuopt_unsafe_host_mmu_description">Ta optymalizacja przyspiesza dostęp do pamięci przez program gościa. Włączenie powoduje, że odczyty/zapisy pamięci gościa są wykonywane bezpośrednio w pamięci i wykorzystują MMU hosta. Wyłączenie wymusza użycie programowej emulacji MMU dla wszystkich dostępów do pamięci.</string>
|
||||||
<string name="debug_knobs">Przełączniki debugowania</string>
|
<string name="debug_knobs">Przełączniki debugowania</string>
|
||||||
|
|||||||
@@ -84,9 +84,6 @@
|
|||||||
|
|
||||||
<string name="use_sync_core">Sincronizar Velocidade do Núcleo</string>
|
<string name="use_sync_core">Sincronizar Velocidade do Núcleo</string>
|
||||||
<string name="use_sync_core_description">Aumenta a velocidade do ciclo do núcleo até o máximo para melhorar o desempenho, mantendo a velocidade real do jogo inalterada.</string>
|
<string name="use_sync_core_description">Aumenta a velocidade do ciclo do núcleo até o máximo para melhorar o desempenho, mantendo a velocidade real do jogo inalterada.</string>
|
||||||
<string name="use_lru_cache">Ativar Cache LRU</string>
|
|
||||||
<string name="use_lru_cache_description">O cache Least Recently Used (LRU, ou Itens Menos Usados) aumenta o desempenho, economizando o uso do processador. Alguns jogos podem apresentar problemas com esta configuração. Desative-a caso o jogo não inicie ou trave aleatoriamente.</string>
|
|
||||||
|
|
||||||
<string name="cpuopt_unsafe_host_mmu">Ativar Emulação da MMU do Sistema</string>
|
<string name="cpuopt_unsafe_host_mmu">Ativar Emulação da MMU do Sistema</string>
|
||||||
<string name="cpuopt_unsafe_host_mmu_description">Esta otimização acelera o acesso à memória pelo programa. Ao ativá-la, leituras e gravações são feitas diretamente na memória, usando a MMU (Unidade de Gerenciamento de Memória) do sistema. Ao desativar, todos os acessos passam a utilizar a Emulação de MMU por Software.</string>
|
<string name="cpuopt_unsafe_host_mmu_description">Esta otimização acelera o acesso à memória pelo programa. Ao ativá-la, leituras e gravações são feitas diretamente na memória, usando a MMU (Unidade de Gerenciamento de Memória) do sistema. Ao desativar, todos os acessos passam a utilizar a Emulação de MMU por Software.</string>
|
||||||
<string name="debug_knobs">Controles de Depuração</string>
|
<string name="debug_knobs">Controles de Depuração</string>
|
||||||
|
|||||||
@@ -58,9 +58,6 @@
|
|||||||
|
|
||||||
<string name="use_sync_core">Sincronizar velocidade do núcleo</string>
|
<string name="use_sync_core">Sincronizar velocidade do núcleo</string>
|
||||||
<string name="use_sync_core_description">Sincroniza a velocidade do núcleo com a percentagem máxima de velocidade para melhorar o desempenho sem alterar a velocidade real do jogo.</string>
|
<string name="use_sync_core_description">Sincroniza a velocidade do núcleo com a percentagem máxima de velocidade para melhorar o desempenho sem alterar a velocidade real do jogo.</string>
|
||||||
<string name="use_lru_cache">Ativar cache LRU</string>
|
|
||||||
<string name="use_lru_cache_description">Ative ou desative a cache LRU para melhorar desempenho poupando uso do processador. Alguns jogos como TotK 1.2.1 têm problemas - desative se o jogo não iniciar ou falhar aleatoriamente.</string>
|
|
||||||
|
|
||||||
<string name="cpuopt_unsafe_host_mmu">Ativar Emulação de MMU do Anfitrião</string>
|
<string name="cpuopt_unsafe_host_mmu">Ativar Emulação de MMU do Anfitrião</string>
|
||||||
<string name="cpuopt_unsafe_host_mmu_description">Esta otimização acelera os acessos à memória pelo programa convidado. Ativar faz com que as leituras/escritas de memória do convidado sejam efetuadas diretamente na memória e utilizem a MMU do Anfitrião. Desativar força todos os acessos à memória a usar a Emulação de MMU por Software.</string>
|
<string name="cpuopt_unsafe_host_mmu_description">Esta otimização acelera os acessos à memória pelo programa convidado. Ativar faz com que as leituras/escritas de memória do convidado sejam efetuadas diretamente na memória e utilizem a MMU do Anfitrião. Desativar força todos os acessos à memória a usar a Emulação de MMU por Software.</string>
|
||||||
<!-- NVDEC Emulation -->
|
<!-- NVDEC Emulation -->
|
||||||
|
|||||||
@@ -92,9 +92,6 @@
|
|||||||
|
|
||||||
<string name="use_sync_core">Синхронизация скорости ядра</string>
|
<string name="use_sync_core">Синхронизация скорости ядра</string>
|
||||||
<string name="use_sync_core_description">Синхронизирует скорость ядра с максимальным процентом скорости для улучшения производительности без изменения фактической скорости игры.</string>
|
<string name="use_sync_core_description">Синхронизирует скорость ядра с максимальным процентом скорости для улучшения производительности без изменения фактической скорости игры.</string>
|
||||||
<string name="use_lru_cache">Включить LRU-кеш</string>
|
|
||||||
<string name="use_lru_cache_description">Включите или отключите кэш LRU (наименее недавно использованный), повышая производительность за счёт снижения нагрузки на ЦП. Некоторые игры могут работать с ним некорректно (например, TotK 1.2.1), поэтому отключите, если игра не запускается или случайно вылетает.</string>
|
|
||||||
|
|
||||||
<string name="cpuopt_unsafe_host_mmu">Включить эмуляцию MMU хоста</string>
|
<string name="cpuopt_unsafe_host_mmu">Включить эмуляцию MMU хоста</string>
|
||||||
<string name="cpuopt_unsafe_host_mmu_description">Эта оптимизация ускоряет доступ к памяти гостевой программой. При включении операции чтения/записи памяти гостя выполняются напрямую в памяти с использованием MMU хоста. Отключение заставляет все обращения к памяти использовать программную эмуляцию MMU.</string>
|
<string name="cpuopt_unsafe_host_mmu_description">Эта оптимизация ускоряет доступ к памяти гостевой программой. При включении операции чтения/записи памяти гостя выполняются напрямую в памяти с использованием MMU хоста. Отключение заставляет все обращения к памяти использовать программную эмуляцию MMU.</string>
|
||||||
<string name="debug_knobs">Настройки отладки</string>
|
<string name="debug_knobs">Настройки отладки</string>
|
||||||
|
|||||||
@@ -56,9 +56,6 @@
|
|||||||
|
|
||||||
<string name="use_sync_core">Синхронизујте брзину језгре</string>
|
<string name="use_sync_core">Синхронизујте брзину језгре</string>
|
||||||
<string name="use_sync_core_description">Синхронизујте језгро Тицк Брзина брзине максималне брзине да бисте побољшали перформансе без измене стварне брзине игре.</string>
|
<string name="use_sync_core_description">Синхронизујте језгро Тицк Брзина брзине максималне брзине да бисте побољшали перформансе без измене стварне брзине игре.</string>
|
||||||
<string name="use_lru_cache">Омогући ЛРУ кеш</string>
|
|
||||||
<string name="use_lru_cache_description">Омогућите или онемогућите најмање недавно коришћене (ЛРУ) кеш меморије, све веће перформансе штедећи употребу процеса ЦПУ-а. Неке игре са њом имају проблеме, посебно тотк 1.2.1, тако да онемогућите ако се игра не покрене или се руши насумично.</string>
|
|
||||||
|
|
||||||
<string name="cpuopt_unsafe_host_mmu">Омогући емулацију MMU домаћина</string>
|
<string name="cpuopt_unsafe_host_mmu">Омогући емулацију MMU домаћина</string>
|
||||||
<string name="cpuopt_unsafe_host_mmu_description">Ова оптимизација убрзава приступ меморији од стране гостујућег програма. Укључивање изазива да се читања/уписа меморије госта обављају директно у меморији и користе MMU домаћина. Искључивање присиљава све приступе меморији да користе софтверску емулацију MMU.</string>
|
<string name="cpuopt_unsafe_host_mmu_description">Ова оптимизација убрзава приступ меморији од стране гостујућег програма. Укључивање изазива да се читања/уписа меморије госта обављају директно у меморији и користе MMU домаћина. Искључивање присиљава све приступе меморији да користе софтверску емулацију MMU.</string>
|
||||||
<!-- NVDEC Emulation -->
|
<!-- NVDEC Emulation -->
|
||||||
|
|||||||
@@ -94,9 +94,6 @@
|
|||||||
|
|
||||||
<string name="use_sync_core">Синхронізувати швидкість ядра</string>
|
<string name="use_sync_core">Синхронізувати швидкість ядра</string>
|
||||||
<string name="use_sync_core_description">Синхронізує швидкість ядра з максимальним відсотком швидкості для покращення продуктивності без зміни реальної швидкості гри.</string>
|
<string name="use_sync_core_description">Синхронізує швидкість ядра з максимальним відсотком швидкості для покращення продуктивності без зміни реальної швидкості гри.</string>
|
||||||
<string name="use_lru_cache">Увімкнути LRU-кеш</string>
|
|
||||||
<string name="use_lru_cache_description">Увімкніть або вимкніть кеш LRU (Least Recently Used) для покращення продуктивності шляхом зменшення навантаження на CPU. Деякі ігри (зокрема TotK 1.2.1) можуть працювати некоректно - вимкніть, якщо гра не запускається або раптово вилітає.</string>
|
|
||||||
|
|
||||||
<string name="cpuopt_unsafe_host_mmu">Увімкнути емуляцію MMU хоста</string>
|
<string name="cpuopt_unsafe_host_mmu">Увімкнути емуляцію MMU хоста</string>
|
||||||
<string name="cpuopt_unsafe_host_mmu_description">Ця оптимізація пришвидшує доступ до пам\'яті гостьовою програмою. Увімкнення призводить до того, що читання/запис пам\'яті гостя виконуються безпосередньо в пам\'яті та використовують MMU хоста. Вимкнення змушує всі звернення до пам\'яті використовувати програмну емуляцію MMU.</string>
|
<string name="cpuopt_unsafe_host_mmu_description">Ця оптимізація пришвидшує доступ до пам\'яті гостьовою програмою. Увімкнення призводить до того, що читання/запис пам\'яті гостя виконуються безпосередньо в пам\'яті та використовують MMU хоста. Вимкнення змушує всі звернення до пам\'яті використовувати програмну емуляцію MMU.</string>
|
||||||
<string name="debug_knobs">Зневаджувальні регулятори</string>
|
<string name="debug_knobs">Зневаджувальні регулятори</string>
|
||||||
|
|||||||
@@ -58,9 +58,6 @@
|
|||||||
|
|
||||||
<string name="use_sync_core">Đồng bộ tốc độ lõi</string>
|
<string name="use_sync_core">Đồng bộ tốc độ lõi</string>
|
||||||
<string name="use_sync_core_description">Đồng bộ tốc độ lõi với tỷ lệ phần trăm tốc độ tối đa để cải thiện hiệu suất mà không làm thay đổi tốc độ thực tế của trò chơi.</string>
|
<string name="use_sync_core_description">Đồng bộ tốc độ lõi với tỷ lệ phần trăm tốc độ tối đa để cải thiện hiệu suất mà không làm thay đổi tốc độ thực tế của trò chơi.</string>
|
||||||
<string name="use_lru_cache">Bật bộ nhớ đệm LRU</string>
|
|
||||||
<string name="use_lru_cache_description">Bật hoặc tắt bộ nhớ đệm LRU để cải thiện hiệu suất bằng cách tiết kiệm quy trình sử dụng CPU. Một số trò chơi như TotK 1.2.1 có vấn đề - hãy tắt nếu trò chơi không khởi động hoặc bị treo ngẫu nhiên.</string>
|
|
||||||
|
|
||||||
<string name="cpuopt_unsafe_host_mmu">Bật giả lập MMU Máy chủ</string>
|
<string name="cpuopt_unsafe_host_mmu">Bật giả lập MMU Máy chủ</string>
|
||||||
<string name="cpuopt_unsafe_host_mmu_description">Tối ưu hóa này tăng tốc độ truy cập bộ nhớ của chương trình khách. Bật nó lên khiến các thao tác đọc/ghi bộ nhớ khách được thực hiện trực tiếp vào bộ nhớ và sử dụng MMU của Máy chủ. Tắt tính năng này buộc tất cả quyền truy cập bộ nhớ phải sử dụng Giả lập MMU Phần mềm.</string>
|
<string name="cpuopt_unsafe_host_mmu_description">Tối ưu hóa này tăng tốc độ truy cập bộ nhớ của chương trình khách. Bật nó lên khiến các thao tác đọc/ghi bộ nhớ khách được thực hiện trực tiếp vào bộ nhớ và sử dụng MMU của Máy chủ. Tắt tính năng này buộc tất cả quyền truy cập bộ nhớ phải sử dụng Giả lập MMU Phần mềm.</string>
|
||||||
<!-- NVDEC Emulation -->
|
<!-- NVDEC Emulation -->
|
||||||
|
|||||||
@@ -94,9 +94,6 @@
|
|||||||
|
|
||||||
<string name="use_sync_core">同步核心速度</string>
|
<string name="use_sync_core">同步核心速度</string>
|
||||||
<string name="use_sync_core_description">将核心速度与最大速度百分比同步,在不改变游戏实际速度的情况下提高性能。</string>
|
<string name="use_sync_core_description">将核心速度与最大速度百分比同步,在不改变游戏实际速度的情况下提高性能。</string>
|
||||||
<string name="use_lru_cache">启用LRU缓存</string>
|
|
||||||
<string name="use_lru_cache_description">启用或禁用LRU缓存,通过节省CPU进程使用来提高性能。某些游戏可能存在问题,特别是TotK 1.2.1,如果游戏无法启动或随机崩溃,请禁用此选项。</string>
|
|
||||||
|
|
||||||
<string name="cpuopt_unsafe_host_mmu">启用主机 MMU 模拟</string>
|
<string name="cpuopt_unsafe_host_mmu">启用主机 MMU 模拟</string>
|
||||||
<string name="cpuopt_unsafe_host_mmu_description">此优化可加速来宾程序的内存访问。启用后,来宾内存读取/写入将直接在内存中执行并利用主机的 MMU。禁用此功能将强制所有内存访问使用软件 MMU 模拟。</string>
|
<string name="cpuopt_unsafe_host_mmu_description">此优化可加速来宾程序的内存访问。启用后,来宾内存读取/写入将直接在内存中执行并利用主机的 MMU。禁用此功能将强制所有内存访问使用软件 MMU 模拟。</string>
|
||||||
<string name="debug_knobs">调试开关</string>
|
<string name="debug_knobs">调试开关</string>
|
||||||
|
|||||||
@@ -90,9 +90,6 @@
|
|||||||
|
|
||||||
<string name="use_sync_core">同步核心速度</string>
|
<string name="use_sync_core">同步核心速度</string>
|
||||||
<string name="use_sync_core_description">將核心速度與最大速度百分比同步,在不改變遊戲實際速度的情況下提高效能。</string>
|
<string name="use_sync_core_description">將核心速度與最大速度百分比同步,在不改變遊戲實際速度的情況下提高效能。</string>
|
||||||
<string name="use_lru_cache">啟用LRU快取</string>
|
|
||||||
<string name="use_lru_cache_description">啟用或停用LRU快取,透過節省CPU進程使用率來提高效能。某些遊戲可能存在問題,特別是薩爾達傳說:王國之淚 v1.2.1(更新),如果遊戲無法啟動或隨機崩潰,請停用此選項。</string>
|
|
||||||
|
|
||||||
<string name="cpuopt_unsafe_host_mmu">啟用主機 MMU 模擬</string>
|
<string name="cpuopt_unsafe_host_mmu">啟用主機 MMU 模擬</string>
|
||||||
<string name="cpuopt_unsafe_host_mmu_description">此最佳化可加速來賓程式的記憶體存取。啟用後,來賓記憶體讀取/寫入將直接在記憶體中執行並利用主機的 MMU。停用此功能將強制所有記憶體存取使用軟體 MMU 模擬。</string>
|
<string name="cpuopt_unsafe_host_mmu_description">此最佳化可加速來賓程式的記憶體存取。啟用後,來賓記憶體讀取/寫入將直接在記憶體中執行並利用主機的 MMU。停用此功能將強制所有記憶體存取使用軟體 MMU 模擬。</string>
|
||||||
<string name="debug_knobs">偵錯開關</string>
|
<string name="debug_knobs">偵錯開關</string>
|
||||||
|
|||||||
@@ -530,6 +530,21 @@
|
|||||||
<item>2</item>
|
<item>2</item>
|
||||||
</integer-array>
|
</integer-array>
|
||||||
|
|
||||||
|
<string-array name="framePacingModeNames">
|
||||||
|
<item>@string/frame_pacing_mode_target_Auto</item>
|
||||||
|
<item>@string/frame_pacing_mode_target_30</item>
|
||||||
|
<item>@string/frame_pacing_mode_target_60</item>
|
||||||
|
<item>@string/frame_pacing_mode_target_120</item>
|
||||||
|
<item>@string/frame_pacing_mode_target_240</item>
|
||||||
|
</string-array>
|
||||||
|
<integer-array name="framePacingModeValues">
|
||||||
|
<item>0</item>
|
||||||
|
<item>1</item>
|
||||||
|
<item>2</item>
|
||||||
|
<item>3</item>
|
||||||
|
<item>4</item>
|
||||||
|
</integer-array>
|
||||||
|
|
||||||
<string-array name="appletEntries">
|
<string-array name="appletEntries">
|
||||||
<item>@string/applet_hle</item>
|
<item>@string/applet_hle</item>
|
||||||
<item>@string/applet_lle</item>
|
<item>@string/applet_lle</item>
|
||||||
|
|||||||